File Editor
Directories:
.. (Back)
ai-assistant
ai-chat
blog-stats
blogging-prompt
blogroll
business-hours
button
calendly
contact-info
cookie-consent
donations
editor-assets
eventbrite
gif
goodreads
google-calendar
google-docs-embed
image-compare
images
instagram-gallery
like
mailchimp
map
markdown
nextdoor
opentable
payment-buttons
payments-intro
paywall
pinterest
podcast-player
premium-content
rating-star
recipe
recurring-payments
related-posts
repeat-visitor
send-a-message
sharing-button
sharing-buttons
simple-payments
slideshow
story
subscriber-login
subscriptions
tiled-gallery
tock
top-posts
voice-to-content
wordads
Files:
712.js
components.css
components.js.LICENSE.txt
components.rtl.css
editor-beta.asset.php
editor-beta.css
editor-beta.js
editor-beta.js.LICENSE.txt
editor-beta.rtl.css
editor-experimental.asset.php
editor-experimental.css
editor-experimental.js
editor-experimental.js.LICENSE.txt
editor-experimental.rtl.css
editor-no-post-editor.asset.php
editor-no-post-editor.css
editor-no-post-editor.js
editor-no-post-editor.js.LICENSE.txt
editor-no-post-editor.rtl.css
editor.asset.php
editor.css
editor.js
editor.js.LICENSE.txt
editor.rtl.css
frontend-nudge.html
swiper.css
swiper.rtl.css
upgrade-nudge.html
Create New File
Create
Edit File: editor-no-post-editor.js
/*! For license information please see editor-no-post-editor.js.LICENSE.txt */ (()=>{var e,t,r,n,a={7675:(e,t,r)=>{"use strict";r.d(t,{y:()=>l});var n=r(76416),a=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r};const o="text/event-stream",s=1e3,i="last-event-id";function l(e,t){var{signal:r,headers:l,onopen:u,onmessage:A,onclose:g,onerror:d,openWhenHidden:p,fetch:m}=t,h=a(t,["signal","headers","onopen","onmessage","onclose","onerror","openWhenHidden","fetch"]);return new Promise(((t,a)=>{const E=Object.assign({},l);let f;function C(){f.abort(),document.hidden||I()}E.accept||(E.accept=o),p||document.addEventListener("visibilitychange",C);let B=s,b=0;function k(){document.removeEventListener("visibilitychange",C),window.clearTimeout(b),f.abort()}null==r||r.addEventListener("abort",(()=>{k(),t()}));const y=null!=m?m:window.fetch,v=null!=u?u:c;async function I(){var r;f=new AbortController;try{const r=await y(e,Object.assign(Object.assign({},h),{headers:E,signal:f.signal}));await v(r),await(0,n.q5)(r.body,(0,n.iv)((0,n.VL)((e=>{e?E[i]=e:delete E[i]}),(e=>{B=e}),A))),null==g||g(),k(),t()}catch(e){if(!f.signal.aborted)try{const t=null!==(r=null==d?void 0:d(e))&&void 0!==r?r:B;window.clearTimeout(b),b=window.setTimeout(I,t)}catch(e){k(),a(e)}}}I()}))}function c(e){const t=e.headers.get("content-type");if(!(null==t?void 0:t.startsWith(o)))throw new Error(`Expected content-type to be ${o}, Actual: ${t}`)}},76416:(e,t,r)=>{"use strict";async function n(e,t){const r=e.getReader();let n;for(;!(n=await r.read()).done;)t(n.value)}function a(e){let t,r,n,a=!1;return function(o){void 0===t?(t=o,r=0,n=-1):t=function(e,t){const r=new Uint8Array(e.length+t.length);return r.set(e),r.set(t,e.length),r}(t,o);const s=t.length;let i=0;for(;r<s;){a&&(10===t[r]&&(i=++r),a=!1);let o=-1;for(;r<s&&-1===o;++r)switch(t[r]){case 58:-1===n&&(n=r-i);break;case 13:a=!0;case 10:o=r}if(-1===o)break;e(t.subarray(i,o),n),i=r,n=-1}i===s?t=void 0:0!==i&&(t=t.subarray(i),r-=i)}}function o(e,t,r){let n=s();const a=new TextDecoder;return function(o,i){if(0===o.length)null==r||r(n),n=s();else if(i>0){const r=a.decode(o.subarray(0,i)),s=i+(32===o[i+1]?2:1),l=a.decode(o.subarray(s));switch(r){case"data":n.data=n.data?n.data+"\n"+l:l;break;case"event":n.event=l;break;case"id":e(n.id=l);break;case"retry":const r=parseInt(l,10);isNaN(r)||t(n.retry=r)}}}}function s(){return{data:"",event:"",id:"",retry:void 0}}r.d(t,{VL:()=>o,iv:()=>a,q5:()=>n})},95723:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(84265);let a,o,s,i;const l=/<(\/)?(\w+)\s*(\/)?>/g;function c(e,t,r,n,a){return{element:e,tokenStart:t,tokenLength:r,prevOffset:n,leadingTextStart:a,children:[]}}const u=e=>{const t="object"==typeof e,r=t&&Object.values(e);return t&&r.length&&r.every((e=>(0,n.isValidElement)(e)))};function A(e){const t=function(){const e=l.exec(a);if(null===e)return["no-more-tokens"];const t=e.index,[r,n,o,s]=e,i=r.length;if(s)return["self-closed",o,t,i];if(n)return["closer",o,t,i];return["opener",o,t,i]}(),[r,u,A,p]=t,m=i.length,h=A>o?o:null;if(!e[u])return g(),!1;switch(r){case"no-more-tokens":if(0!==m){const{leadingTextStart:e,tokenStart:t}=i.pop();s.push(a.substr(e,t))}return g(),!1;case"self-closed":return 0===m?(null!==h&&s.push(a.substr(h,A-h)),s.push(e[u]),o=A+p,!0):(d(c(e[u],A,p)),o=A+p,!0);case"opener":return i.push(c(e[u],A,p,A+p,h)),o=A+p,!0;case"closer":if(1===m)return function(e){const{element:t,leadingTextStart:r,prevOffset:o,tokenStart:l,children:c}=i.pop(),u=e?a.substr(o,e-o):a.substr(o);u&&c.push(u);null!==r&&s.push(a.substr(r,l-r));s.push((0,n.cloneElement)(t,null,...c))}(A),o=A+p,!0;const t=i.pop(),r=a.substr(t.prevOffset,A-t.prevOffset);t.children.push(r),t.prevOffset=A+p;const l=c(t.element,t.tokenStart,t.tokenLength,A+p);return l.children=t.children,d(l),o=A+p,!0;default:return g(),!1}}function g(){const e=a.length-o;0!==e&&s.push(a.substr(o,e))}function d(e){const{element:t,tokenStart:r,tokenLength:o,prevOffset:s,children:l}=e,c=i[i.length-1],u=a.substr(c.prevOffset,r-c.prevOffset);u&&c.children.push(u),c.children.push((0,n.cloneElement)(t,null,...l)),c.prevOffset=s||r+o}t.default=(e,t)=>{if(a=e,o=0,s=[],i=[],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(A(t));return(0,n.createElement)(n.Fragment,null,...s)}},82170:(e,t,r)=>{"use strict";var n=r(98504);Object.defineProperty(t,"__esModule",{value:!0});var a={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 A.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=n(r(95723)),s=r(84265);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(a,e)||e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var i=r(81649);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(a,e)||e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var l=r(98219);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(a,e)||e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))}));var c=n(r(52595)),u=n(r(54852)),A=n(r(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,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({children:e,...t}){let r="";return n.Children.toArray(e).forEach((e=>{"string"==typeof e&&""!==e.trim()&&(r+=e)})),(0,n.createElement)("div",{dangerouslySetInnerHTML:{__html:r},...t})};var n=r(84265)},81649:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createPortal",{enumerable:!0,get:function(){return n.createPortal}}),Object.defineProperty(t,"createRoot",{enumerable:!0,get:function(){return a.createRoot}}),Object.defineProperty(t,"findDOMNode",{enumerable:!0,get:function(){return n.findDOMNode}}),Object.defineProperty(t,"flushSync",{enumerable:!0,get:function(){return n.flushSync}}),Object.defineProperty(t,"hydrate",{enumerable:!0,get:function(){return n.hydrate}}),Object.defineProperty(t,"hydrateRoot",{enumerable:!0,get:function(){return a.hydrateRoot}}),Object.defineProperty(t,"render",{enumerable:!0,get:function(){return n.render}}),Object.defineProperty(t,"unmountComponentAtNode",{enumerable:!0,get:function(){return n.unmountComponentAtNode}});var n=r(75795),a=r(18950)},84265:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Children",{enumerable:!0,get:function(){return n.Children}}),Object.defineProperty(t,"Component",{enumerable:!0,get:function(){return n.Component}}),Object.defineProperty(t,"Fragment",{enumerable:!0,get:function(){return n.Fragment}}),Object.defineProperty(t,"PureComponent",{enumerable:!0,get:function(){return n.PureComponent}}),Object.defineProperty(t,"StrictMode",{enumerable:!0,get:function(){return n.StrictMode}}),Object.defineProperty(t,"Suspense",{enumerable:!0,get:function(){return n.Suspense}}),Object.defineProperty(t,"cloneElement",{enumerable:!0,get:function(){return n.cloneElement}}),t.concatChildren=function(...e){return e.reduce(((e,t,r)=>(n.Children.forEach(t,((t,a)=>{t&&"string"!=typeof t&&(t=(0,n.cloneElement)(t,{key:[r,a].join()})),e.push(t)})),e)),[])},Object.defineProperty(t,"createContext",{enumerable:!0,get:function(){return n.createContext}}),Object.defineProperty(t,"createElement",{enumerable:!0,get:function(){return n.createElement}}),Object.defineProperty(t,"createRef",{enumerable:!0,get:function(){return n.createRef}}),Object.defineProperty(t,"forwardRef",{enumerable:!0,get:function(){return n.forwardRef}}),Object.defineProperty(t,"isValidElement",{enumerable:!0,get:function(){return n.isValidElement}}),Object.defineProperty(t,"lazy",{enumerable:!0,get:function(){return n.lazy}}),Object.defineProperty(t,"memo",{enumerable:!0,get:function(){return n.memo}}),Object.defineProperty(t,"startTransition",{enumerable:!0,get:function(){return n.startTransition}}),t.switchChildrenNodeName=function(e,t){return e&&n.Children.map(e,((e,r)=>{if("string"==typeof e?.valueOf())return(0,n.createElement)(t,{key:r},e);const{children:a,...o}=e.props;return(0,n.createElement)(t,{key:r,...o},a)}))},Object.defineProperty(t,"useCallback",{enumerable:!0,get:function(){return n.useCallback}}),Object.defineProperty(t,"useContext",{enumerable:!0,get:function(){return n.useContext}}),Object.defineProperty(t,"useDebugValue",{enumerable:!0,get:function(){return n.useDebugValue}}),Object.defineProperty(t,"useDeferredValue",{enumerable:!0,get:function(){return n.useDeferredValue}}),Object.defineProperty(t,"useEffect",{enumerable:!0,get:function(){return n.useEffect}}),Object.defineProperty(t,"useId",{enumerable:!0,get:function(){return n.useId}}),Object.defineProperty(t,"useImperativeHandle",{enumerable:!0,get:function(){return n.useImperativeHandle}}),Object.defineProperty(t,"useInsertionEffect",{enumerable:!0,get:function(){return n.useInsertionEffect}}),Object.defineProperty(t,"useLayoutEffect",{enumerable:!0,get:function(){return n.useLayoutEffect}}),Object.defineProperty(t,"useMemo",{enumerable:!0,get:function(){return n.useMemo}}),Object.defineProperty(t,"useReducer",{enumerable:!0,get:function(){return n.useReducer}}),Object.defineProperty(t,"useRef",{enumerable:!0,get:function(){return n.useRef}}),Object.defineProperty(t,"useState",{enumerable:!0,get:function(){return n.useState}}),Object.defineProperty(t,"useSyncExternalStore",{enumerable:!0,get:function(){return n.useSyncExternalStore}}),Object.defineProperty(t,"useTransition",{enumerable:!0,get:function(){return n.useTransition}});var n=r(51609)},54852:(e,t,r)=>{"use strict";var n=r(98504);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.hasPrefix=E,t.renderAttributes=x,t.renderComponent=Q,t.renderElement=_,t.renderNativeComponent=w,t.renderStyle=j;var a=r(21214),o=r(61433),s=r(89877),i=r(84265),l=n(r(94468));const{Provider:c,Consumer:u}=(0,i.createContext)(void 0),A=(0,i.forwardRef)((()=>null)),g=new Set(["string","boolean","number"]),d=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),p=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"]),m=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"]),h=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 E(e,t){return t.some((t=>0===e.indexOf(t)))}function f(e){return"key"===e||"children"===e}function C(e,t){return"style"===e?j(t):t}const B=["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)),{}),b=["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)),{}),k=["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 y(e){switch(e){case"htmlFor":return"for";case"className":return"class"}const t=e.toLowerCase();return b[t]?b[t]:B[t]?(0,o.paramCase)(B[t]):k[t]?k[t]:t}function v(e){return e.startsWith("--")?e:E(e,["ms","O","Moz","Webkit"])?"-"+(0,o.paramCase)(e):(0,o.paramCase)(e)}function I(e,t){return"number"!=typeof t||0===t||h.has(e)?t:t+"px"}function _(e,t,r={}){if(null==e||!1===e)return"";if(Array.isArray(e))return S(e,t,r);switch(typeof e){case"string":return(0,s.escapeHTML)(e);case"number":return e.toString()}const{type:n,props:a}=e;switch(n){case i.StrictMode:case i.Fragment:return S(a.children,t,r);case l.default:const{children:e,...n}=a;return w(Object.keys(n).length?"div":null,{...n,dangerouslySetInnerHTML:{__html:e}},t,r)}switch(typeof n){case"string":return w(n,a,t,r);case"function":return n.prototype&&"function"==typeof n.prototype.render?Q(n,a,t,r):_(n(a,r),t,r)}switch(n&&n.$$typeof){case c.$$typeof:return S(a.children,a.value,r);case u.$$typeof:return _(a.children(t||n._currentValue),t,r);case A.$$typeof:return _(n.render(a),t,r)}return""}function w(e,t,r,n={}){let a="";if("textarea"===e&&t.hasOwnProperty("value")){a=S(t.value,r,n);const{value:e,...o}=t;t=o}else t.dangerouslySetInnerHTML&&"string"==typeof t.dangerouslySetInnerHTML.__html?a=t.dangerouslySetInnerHTML.__html:void 0!==t.children&&(a=S(t.children,r,n));if(!e)return a;const o=x(t);return d.has(e)?"<"+e+o+"/>":"<"+e+o+">"+a+"</"+e+">"}function Q(e,t,r,n={}){const a=new e(t,n);"function"==typeof a.getChildContext&&Object.assign(n,a.getChildContext());return _(a.render(),r,n)}function S(e,t,r={}){let n="";e=Array.isArray(e)?e:[e];for(let a=0;a<e.length;a++){n+=_(e[a],t,r)}return n}function x(e){let t="";for(const r in e){const n=y(r);if(!(0,s.isValidAttributeName)(n))continue;let a=C(r,e[r]);if(!g.has(typeof a))continue;if(f(r))continue;const o=p.has(n);if(o&&!1===a)continue;const i=o||E(r,["data-","aria-"])||m.has(n);("boolean"!=typeof a||i)&&(t+=" "+n,o||("string"==typeof a&&(a=(0,s.escapeAttribute)(a)),t+='="'+a+'"'))}return t}function j(e){if(!(0,a.isPlainObject)(e))return e;let t;for(const r in e){const n=e[r];if(null==n)continue;t?t+=";":t="";t+=v(r)+":"+I(r,n)}return t}t.default=_},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)},51113:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(86087);const a=(0,n.forwardRef)((function({icon:e,size:t=24,...r},a){return(0,n.cloneElement)(e,{width:t,height:t,...r,ref:a})}))},71797:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(5573),a=r(10790);const o=(0,a.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)(n.Path,{d:"m14.5 6.5-1 1 3.7 3.7H4v1.6h13.2l-3.7 3.7 1 1 5.6-5.5z"})})},62510:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(5573),a=r(10790);const o=(0,a.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)(n.Path,{d:"M12 3.9 6.5 9.5l1 1 3.8-3.7V20h1.5V6.8l3.7 3.7 1-1z"})})},57003:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(5573),a=r(10790);const o=(0,a.jsx)(n.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)(n.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v3.5h-15V5c0-.3.2-.5.5-.5zm8 5.5h6.5v3.5H13V10zm-1.5 3.5h-7V10h7v3.5zm-7 5.5v-4h7v4.5H5c-.3 0-.5-.2-.5-.5zm14.5.5h-6V15h6.5v4c0 .3-.2.5-.5.5z"})})},83883:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(5573),a=r(10790);const o=(0,a.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)(n.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"})})},68888:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(5573),a=r(10790);const o=(0,a.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)(n.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})})},29115:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(5573),a=r(10790);const o=(0,a.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)(n.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})})},31249:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(5573),a=r(10790);const o=(0,a.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)(n.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})})},10991:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(5573),a=r(10790);const o=(0,a.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)(n.Path,{d:"m13.06 12 6.47-6.47-1.06-1.06L12 10.94 5.53 4.47 4.47 5.53 10.94 12l-6.47 6.47 1.06 1.06L12 13.06l6.47 6.47 1.06-1.06L13.06 12Z"})})},53512:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(5573),a=r(10790);const o=(0,a.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)(n.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"})})},84066:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(5573),a=r(10790);const o=(0,a.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)(n.Path,{d:"M12 3.3c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8s-4-8.8-8.8-8.8zm6.5 5.5h-2.6C15.4 7.3 14.8 6 14 5c2 .6 3.6 2 4.5 3.8zm.7 3.2c0 .6-.1 1.2-.2 1.8h-2.9c.1-.6.1-1.2.1-1.8s-.1-1.2-.1-1.8H19c.2.6.2 1.2.2 1.8zM12 18.7c-1-.7-1.8-1.9-2.3-3.5h4.6c-.5 1.6-1.3 2.9-2.3 3.5zm-2.6-4.9c-.1-.6-.1-1.1-.1-1.8 0-.6.1-1.2.1-1.8h5.2c.1.6.1 1.1.1 1.8s-.1 1.2-.1 1.8H9.4zM4.8 12c0-.6.1-1.2.2-1.8h2.9c-.1.6-.1 1.2-.1 1.8 0 .6.1 1.2.1 1.8H5c-.2-.6-.2-1.2-.2-1.8zM12 5.3c1 .7 1.8 1.9 2.3 3.5H9.7c.5-1.6 1.3-2.9 2.3-3.5zM10 5c-.8 1-1.4 2.3-1.8 3.8H5.5C6.4 7 8 5.6 10 5zM5.5 15.3h2.6c.4 1.5 1 2.8 1.8 3.7-1.8-.6-3.5-2-4.4-3.7zM14 19c.8-1 1.4-2.2 1.8-3.7h2.6C17.6 17 16 18.4 14 19z"})})},19783:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(5573),a=r(10790);const o=(0,a.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)(n.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"})})},76277:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(5573),a=r(10790);const o=(0,a.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)(n.Path,{d:"m6.734 16.106 2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.158 1.093-1.028-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734Z"})})},21679:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(5573),a=r(10790);const o=(0,a.jsxs)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,a.jsx)(n.Path,{d:"m7 6.5 4 2.5-4 2.5z"}),(0,a.jsx)(n.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m5 3c-1.10457 0-2 .89543-2 2v14c0 1.1046.89543 2 2 2h14c1.1046 0 2-.8954 2-2v-14c0-1.10457-.8954-2-2-2zm14 1.5h-14c-.27614 0-.5.22386-.5.5v10.7072l3.62953-2.6465c.25108-.1831.58905-.1924.84981-.0234l2.92666 1.8969 3.5712-3.4719c.2911-.2831.7545-.2831 1.0456 0l2.9772 2.8945v-9.3568c0-.27614-.2239-.5-.5-.5zm-14.5 14.5v-1.4364l4.09643-2.987 2.99567 1.9417c.2936.1903.6798.1523.9307-.0917l3.4772-3.3806 3.4772 3.3806.0228-.0234v2.5968c0 .2761-.2239.5-.5.5h-14c-.27614 0-.5-.2239-.5-.5z"})]})},78938:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(5573),a=r(10790);const o=(0,a.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)(n.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})})},41417:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(5573),a=r(10790);const o=(0,a.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)(n.Path,{d:"M4 6h12V4.5H4V6Zm16 4.5H4V9h16v1.5ZM4 15h16v-1.5H4V15Zm0 4.5h16V18H4v1.5Z"})})},88669:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(5573),a=r(10790);const o=(0,a.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)(n.Path,{d:"M8.001 3.984V9.47c0 1.518-.98 2.5-2.499 2.5h-.5v-1.5h.5c.69 0 1-.31 1-1V6.984H4v-3h4.001ZM4 20h9v-1.5H4V20Zm16-4H4v-1.5h16V16ZM13.001 3.984V9.47c0 1.518-.98 2.5-2.499 2.5h-.5v-1.5h.5c.69 0 1-.31 1-1V6.984H9v-3h4.001Z"})})},69457:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(5573),a=r(10790);const o=(0,a.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)(n.Path,{d:"m7.3 9.7 1.4 1.4c.2-.2.3-.3.4-.5 0 0 0-.1.1-.1.3-.5.4-1.1.3-1.6L12 7 9 4 7.2 6.5c-.6-.1-1.1 0-1.6.3 0 0-.1 0-.1.1-.3.1-.4.2-.6.4l1.4 1.4L4 11v1h1l2.3-2.3zM4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4z"})})},40502:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(5573),a=r(10790);const o=(0,a.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)(n.Path,{d:"M7 7.2h8.2L13.5 9l1.1 1.1 3.6-3.6-3.5-4-1.1 1 1.9 2.3H7c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.2-.5zm13.8 4V11h-1.5v.3c0 1.1 0 3.5-1 4.5-.3.3-.7.5-1.3.5H8.8l1.7-1.7-1.1-1.1L5.9 17l3.5 4 1.1-1-1.9-2.3H17c.9 0 1.7-.3 2.3-.9 1.5-1.4 1.5-4.2 1.5-5.6z"})})},90254:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(5573),a=r(10790);const o=(0,a.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)(n.Path,{d:"M6.08 10.103h2.914L9.657 12h1.417L8.23 4H6.846L4 12h1.417l.663-1.897Zm1.463-4.137.994 2.857h-2l1.006-2.857ZM11 16H4v-1.5h7V16Zm1 0h8v-1.5h-8V16Zm-4 4H4v-1.5h4V20Zm7-1.5V20H9v-1.5h6Z"})})},11269:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(5573),a=r(10790);const o=(0,a.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)(n.Path,{d:"m4 5.5h2v6.5h1.5v-6.5h2v-1.5h-5.5zm16 10.5h-16v-1.5h16zm-7 4h-9v-1.5h9z"})})},76673:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(5573),a=r(10790);const o=(0,a.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)(n.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 5.5A2.25 2.25 0 0 0 9.878 7h4.244A2.251 2.251 0 0 0 12 5.5ZM12 4a3.751 3.751 0 0 0-3.675 3H5v1.5h1.27l.818 8.997a2.75 2.75 0 0 0 2.739 2.501h4.347a2.75 2.75 0 0 0 2.738-2.5L17.73 8.5H19V7h-3.325A3.751 3.751 0 0 0 12 4Zm4.224 4.5H7.776l.806 8.861a1.25 1.25 0 0 0 1.245 1.137h4.347a1.25 1.25 0 0 0 1.245-1.137l.805-8.861Z"})})},95789:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(5573),a=r(10790);const o=(0,a.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)(n.Path,{d:"M18.3 11.7c-.6-.6-1.4-.9-2.3-.9H6.7l2.9-3.3-1.1-1-4.5 5L8.5 16l1-1-2.7-2.7H16c.5 0 .9.2 1.3.5 1 1 1 3.4 1 4.5v.3h1.5v-.2c0-1.5 0-4.3-1.5-5.7z"})})},83822:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(5573),a=r(10790);const o=(0,a.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)(n.Path,{d:"m11.3 17.2-5-5c-.1-.1-.1-.3 0-.4l2.3-2.3-1.1-1-2.3 2.3c-.7.7-.7 1.8 0 2.5l5 5H7.5v1.5h5.3v-5.2h-1.5v2.6zm7.5-6.4-5-5h2.7V4.2h-5.2v5.2h1.5V6.8l5 5c.1.1.1.3 0 .4l-2.3 2.3 1.1 1.1 2.3-2.3c.6-.7.6-1.9-.1-2.5z"})})},7326:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(5573),a=r(10790);const o=(0,a.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)(n.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"})})},90311:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(5573),a=r(10790);const o=(0,a.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",children:(0,a.jsx)(n.Path,{d:"M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm1.13 9.38l.35-6.46H8.52l.35 6.46h2.26zm-.09 3.36c.24-.23.37-.55.37-.96 0-.42-.12-.74-.36-.97s-.59-.35-1.06-.35-.82.12-1.07.35-.37.55-.37.97c0 .41.13.73.38.96.26.23.61.34 1.06.34s.8-.11 1.05-.34z"})})},51889:(e,t,r)=>{"use strict";r.d(t,{$4:()=>o,fZ:()=>s,xQ:()=>i});var n=r(54715),a=r(82769);function o(e,t){return 0===t?e.toLowerCase():(0,a.l3)(e,t)}function s(e,t){return 0===t?e.toLowerCase():(0,a.$7)(e)}function i(e,t){return void 0===t&&(t={}),(0,a.fL)(e,(0,n.Cl)({transform:o},t))}},91859:(e,t,r)=>{"use strict";r.d(t,{D:()=>i,f:()=>s});var n=r(54715),a=r(2532),o=r(21644);function s(e){return(0,o.R)(e.toLowerCase())}function i(e,t){return void 0===t&&(t={}),(0,a.W)(e,(0,n.Cl)({delimiter:" ",transform:s},t))}},61433:(e,t,r)=>{"use strict";r.r(t),r.d(t,{camelCase:()=>n.xQ,camelCaseTransform:()=>n.$4,camelCaseTransformMerge:()=>n.fZ,capitalCase:()=>a.D,capitalCaseTransform:()=>a.f,constantCase:()=>o.F,dotCase:()=>s.a,headerCase:()=>i.u,noCase:()=>l.W,paramCase:()=>c.c,pascalCase:()=>u.fL,pascalCaseTransform:()=>u.l3,pascalCaseTransformMerge:()=>u.$7,pathCase:()=>A.y,sentenceCase:()=>g.o,sentenceCaseTransform:()=>g.u,snakeCase:()=>d.L});var n=r(51889),a=r(91859),o=r(55633),s=r(19382),i=r(22774),l=r(2532),c=r(74572),u=r(82769),A=r(70320),g=r(82682),d=r(68963)},55633:(e,t,r)=>{"use strict";r.d(t,{F:()=>s});var n=r(54715),a=r(2532),o=r(88415);function s(e,t){return void 0===t&&(t={}),(0,a.W)(e,(0,n.Cl)({delimiter:"_",transform:o.l},t))}},87399:e=>{!function(){"use strict";var t=[],r=3988292384;function n(e){var t,n,a,o,s=-1;for(t=0,a=e.length;t<a;t+=1){for(o=255&(s^e[t]),n=0;n<8;n+=1)1&~o?o>>>=1:o=o>>>1^r;s=s>>>8^o}return~s}function a(e,r){var n,o,s;if(void 0!==a.crc&&r&&e||(a.crc=~0,e)){for(n=a.crc,o=0,s=e.length;o<s;o+=1)n=n>>>8^t[255&(n^e[o])];return a.crc=n,~n}}!function(){var e,n,a;for(n=0;n<256;n+=1){for(e=n,a=0;a<8;a+=1)1&e?e=r^e>>>1:e>>>=1;t[n]=e>>>0}}(),e.exports=function(e,t){var r;e="string"==typeof e?(r=e,Array.prototype.map.call(r,(function(e){return e.charCodeAt(0)}))):e;return((t?n(e):a(e))>>>0).toString(16)},e.exports.direct=n,e.exports.table=a}()},19382:(e,t,r)=>{"use strict";r.d(t,{a:()=>o});var n=r(54715),a=r(2532);function o(e,t){return void 0===t&&(t={}),(0,a.W)(e,(0,n.Cl)({delimiter:"."},t))}},39904:(e,t)=>{"use strict";var r=/^[-!#$%&'*+\/0-9=?A-Z^_a-z{|}~](\.?[-!#$%&'*+\/0-9=?A-Z^_a-z`{|}~])*@[a-zA-Z0-9](-*\.?[a-zA-Z0-9])*\.[a-zA-Z](-?[a-zA-Z0-9])+$/;t.validate=function(e){if(!e)return!1;if(e.length>254)return!1;if(!r.test(e))return!1;var t=e.split("@");return!(t[0].length>64)&&!t[1].split(".").some((function(e){return e.length>63}))}},2467:e=>{"use strict";var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(r,n){function a(r){e.removeListener(t,o),n(r)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",a),r([].slice.call(arguments))}m(e,t,o,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeof e.on&&m(e,"error",t,r)}(e,a,{once:!0})}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function i(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function c(e,t,r,n){var a,o,s,c;if(i(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),s=o[t]),void 0===s)s=o[t]=r,++e._eventsCount;else if("function"==typeof s?s=o[t]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),(a=l(e))>0&&s.length>a&&!s.warned){s.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=s.length,c=u,console&&console.warn&&console.warn(c)}return e}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function A(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},a=u.bind(n);return a.listener=r,n.wrapFn=a,a}function g(e,t,r){var n=e._events;if(void 0===n)return[];var a=n[t];return void 0===a?[]:"function"==typeof a?r?[a.listener||a]:[a]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(a):p(a,a.length)}function d(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function p(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function m(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function a(o){n.once&&e.removeEventListener(t,a),r(o)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return l(this)},o.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var a="error"===e,o=this._events;if(void 0!==o)a=a&&void 0===o.error;else if(!a)return!1;if(a){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var i=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw i.context=s,i}var l=o[e];if(void 0===l)return!1;if("function"==typeof l)n(l,this,t);else{var c=l.length,u=p(l,c);for(r=0;r<c;++r)n(u[r],this,t)}return!0},o.prototype.addListener=function(e,t){return c(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return c(this,e,t,!0)},o.prototype.once=function(e,t){return i(t),this.on(e,A(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return i(t),this.prependListener(e,A(this,e,t)),this},o.prototype.removeListener=function(e,t){var r,n,a,o,s;if(i(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(a=-1,o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){s=r[o].listener,a=o;break}if(a<0)return this;0===a?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,a),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,s||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var a,o=Object.keys(r);for(n=0;n<o.length;++n)"removeListener"!==(a=o[n])&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},o.prototype.listeners=function(e){return g(this,e,!0)},o.prototype.rawListeners=function(e){return g(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):d.call(e,t)},o.prototype.listenerCount=d,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},60633:function(e){e.exports=function(){"use strict";var e=/^(b|B)$/,t={iec:{bits:["bit","Kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["bit","Kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},r={iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]},n={floor:Math.floor,ceil:Math.ceil};function a(a){var o,s,i,l,c,u,A,g,d,p,m,h,E,f,C,B,b,k,y,v,I,_=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},w=[],Q=0;if(isNaN(a))throw new TypeError("Invalid number");if(i=!0===_.bits,C=!0===_.unix,h=!0===_.pad,s=_.base||10,E=void 0!==_.round?_.round:C?1:2,A=void 0!==_.locale?_.locale:"",g=_.localeOptions||{},B=void 0!==_.separator?_.separator:"",b=void 0!==_.spacer?_.spacer:C?"":" ",y=_.symbols||{},k=2===s?_.standard||"iec":"jedec",m=_.output||"string",c=!0===_.fullform,u=_.fullforms instanceof Array?_.fullforms:[],o=void 0!==_.exponent?_.exponent:-1,v=n[_.roundingMethod]||Math.round,d=(p=Number(a))<0,l=s>2?1e3:1024,I=!1===isNaN(_.precision)?parseInt(_.precision,10):0,d&&(p=-p),(-1===o||isNaN(o))&&(o=Math.floor(Math.log(p)/Math.log(l)))<0&&(o=0),o>8&&(I>0&&(I+=8-o),o=8),"exponent"===m)return o;if(0===p)w[0]=0,f=w[1]=C?"":t[k][i?"bits":"bytes"][o];else{Q=p/(2===s?Math.pow(2,10*o):Math.pow(1e3,o)),i&&(Q*=8)>=l&&o<8&&(Q/=l,o++);var S=Math.pow(10,o>0?E:0);w[0]=v(Q*S)/S,w[0]===l&&o<8&&void 0===_.exponent&&(w[0]=1,o++),f=w[1]=10===s&&1===o?i?"kbit":"kB":t[k][i?"bits":"bytes"][o],C&&(w[1]=w[1].charAt(0),e.test(w[1])&&(w[0]=Math.floor(w[0]),w[1]=""))}if(d&&(w[0]=-w[0]),I>0&&(w[0]=w[0].toPrecision(I)),w[1]=y[w[1]]||w[1],!0===A?w[0]=w[0].toLocaleString():A.length>0?w[0]=w[0].toLocaleString(A,g):B.length>0&&(w[0]=w[0].toString().replace(".",B)),h&&!1===Number.isInteger(w[0])&&E>0){var x=B||".",j=w[0].toString().split(x),L=j[1]||"",N=L.length,T=E-N;w[0]="".concat(j[0]).concat(x).concat(L.padEnd(N+T,"0"))}return c&&(w[1]=u[o]?u[o]:r[k][o]+(i?"bit":"byte")+(1===w[0]?"":"s")),"array"===m?w:"object"===m?{value:w[0],symbol:w[1],exponent:o,unit:f}:w.join(b)}return a.partial=function(e){return function(t){return a(t,e)}},a}()},22774:(e,t,r)=>{"use strict";r.d(t,{u:()=>o});var n=r(54715),a=r(91859);function o(e,t){return void 0===t&&(t={}),(0,a.D)(e,(0,n.Cl)({delimiter:"-"},t))}},21214:(e,t)=>{"use strict";function r(e){return"[object Object]"===Object.prototype.toString.call(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.isPlainObject=function(e){var t,n;return!1!==r(e)&&(void 0===(t=e.constructor)||!1!==r(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}},49475:function(e,t){var r,n;n="undefined"!=typeof self?self:"undefined"!=typeof window||"undefined"!=typeof window?window:this,e.exports=function(n){"use strict";var a,o=(n=n||{}).Base64,s="2.6.4",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=function(e){for(var t={},r=0,n=e.length;r<n;r++)t[e.charAt(r)]=r;return t}(i),c=String.fromCharCode,u=function(e){if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?c(192|t>>>6)+c(128|63&t):c(224|t>>>12&15)+c(128|t>>>6&63)+c(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return c(240|t>>>18&7)+c(128|t>>>12&63)+c(128|t>>>6&63)+c(128|63&t)},A=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,g=function(e){return e.replace(A,u)},d=function(e){var t=[0,2,1][e.length%3],r=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0);return[i.charAt(r>>>18),i.charAt(r>>>12&63),t>=2?"=":i.charAt(r>>>6&63),t>=1?"=":i.charAt(63&r)].join("")},p=n.btoa&&"function"==typeof n.btoa?function(e){return n.btoa(e)}:function(e){if(e.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return e.replace(/[\s\S]{1,3}/g,d)},m=function(e){return p(g(String(e)))},h=function(e){return e.replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"})).replace(/=/g,"")},E=function(e,t){return t?h(m(e)):m(e)},f=function(e){return E(e,!0)};n.Uint8Array&&(a=function(e,t){for(var r="",n=0,a=e.length;n<a;n+=3){var o=e[n],s=e[n+1],l=e[n+2],c=o<<16|s<<8|l;r+=i.charAt(c>>>18)+i.charAt(c>>>12&63)+(void 0!==s?i.charAt(c>>>6&63):"=")+(void 0!==l?i.charAt(63&c):"=")}return t?h(r):r});var C,B=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,b=function(e){switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return c(55296+(t>>>10))+c(56320+(1023&t));case 3:return c((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return c((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},k=function(e){return e.replace(B,b)},y=function(e){var t=e.length,r=t%4,n=(t>0?l[e.charAt(0)]<<18:0)|(t>1?l[e.charAt(1)]<<12:0)|(t>2?l[e.charAt(2)]<<6:0)|(t>3?l[e.charAt(3)]:0),a=[c(n>>>16),c(n>>>8&255),c(255&n)];return a.length-=[0,0,2,1][r],a.join("")},v=n.atob&&"function"==typeof n.atob?function(e){return n.atob(e)}:function(e){return e.replace(/\S{1,4}/g,y)},I=function(e){return v(String(e).replace(/[^A-Za-z0-9\+\/]/g,""))},_=function(e){return k(v(e))},w=function(e){return String(e).replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})).replace(/[^A-Za-z0-9\+\/]/g,"")},Q=function(e){return _(w(e))};n.Uint8Array&&(C=function(e){return Uint8Array.from(I(w(e)),(function(e){return e.charCodeAt(0)}))});var S=function(){var e=n.Base64;return n.Base64=o,e};if(n.Base64={VERSION:s,atob:I,btoa:p,fromBase64:Q,toBase64:E,utob:g,encode:E,encodeURI:f,btou:k,decode:Q,noConflict:S,fromUint8Array:a,toUint8Array:C},"function"==typeof Object.defineProperty){var x=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}};n.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",x((function(){return Q(this)}))),Object.defineProperty(String.prototype,"toBase64",x((function(e){return E(this,e)}))),Object.defineProperty(String.prototype,"toBase64URI",x((function(){return E(this,!0)})))}}return n.Meteor&&(Base64=n.Base64),e.exports?e.exports.Base64=n.Base64:void 0===(r=function(){return n.Base64}.apply(t,[]))||(e.exports=r),{Base64:n.Base64}}(n)},25700:(e,t,r)=>{"use strict";r.d(t,{g:()=>n});function n(e){return e.toLowerCase()}},20305:e=>{"use strict";function t(e,t,r,n){var a=Number(e[t].meta.id+1).toString(),o="";return"string"==typeof n.docId&&(o="-"+n.docId+"-"),o+a}function r(e,t){var r=Number(e[t].meta.id+1).toString();return e[t].meta.subId>0&&(r+=":"+e[t].meta.subId),"["+r+"]"}function n(e,t,r,n,a){var o=a.rules.footnote_anchor_name(e,t,r,n,a),s=a.rules.footnote_caption(e,t,r,n,a),i=o;return e[t].meta.subId>0&&(i+=":"+e[t].meta.subId),'<sup class="footnote-ref"><a href="#fn'+o+'" id="fnref'+i+'">'+s+"</a></sup>"}function a(e,t,r){return(r.xhtmlOut?'<hr class="footnotes-sep" />\n':'<hr class="footnotes-sep">\n')+'<section class="footnotes">\n<ol class="footnotes-list">\n'}function o(){return"</ol>\n</section>\n"}function s(e,t,r,n,a){var o=a.rules.footnote_anchor_name(e,t,r,n,a);return e[t].meta.subId>0&&(o+=":"+e[t].meta.subId),'<li id="fn'+o+'" class="footnote-item">'}function i(){return"</li>\n"}function l(e,t,r,n,a){var o=a.rules.footnote_anchor_name(e,t,r,n,a);return e[t].meta.subId>0&&(o+=":"+e[t].meta.subId),' <a href="#fnref'+o+'" class="footnote-backref">↩︎</a>'}e.exports=function(e){var c=e.helpers.parseLinkLabel,u=e.utils.isSpace;e.renderer.rules.footnote_ref=n,e.renderer.rules.footnote_block_open=a,e.renderer.rules.footnote_block_close=o,e.renderer.rules.footnote_open=s,e.renderer.rules.footnote_close=i,e.renderer.rules.footnote_anchor=l,e.renderer.rules.footnote_caption=r,e.renderer.rules.footnote_anchor_name=t,e.block.ruler.before("reference","footnote_def",(function(e,t,r,n){var a,o,s,i,l,c,A,g,d,p,m,h=e.bMarks[t]+e.tShift[t],E=e.eMarks[t];if(h+4>E)return!1;if(91!==e.src.charCodeAt(h))return!1;if(94!==e.src.charCodeAt(h+1))return!1;for(l=h+2;l<E;l++){if(32===e.src.charCodeAt(l))return!1;if(93===e.src.charCodeAt(l))break}if(l===h+2)return!1;if(l+1>=E||58!==e.src.charCodeAt(++l))return!1;if(n)return!0;for(l++,e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.refs||(e.env.footnotes.refs={}),c=e.src.slice(h+2,l-2),e.env.footnotes.refs[":"+c]=-1,(A=new e.Token("footnote_reference_open","",1)).meta={label:c},A.level=e.level++,e.tokens.push(A),a=e.bMarks[t],o=e.tShift[t],s=e.sCount[t],i=e.parentType,m=l,g=d=e.sCount[t]+l-(e.bMarks[t]+e.tShift[t]);l<E&&(p=e.src.charCodeAt(l),u(p));)9===p?d+=4-d%4:d++,l++;return e.tShift[t]=l-m,e.sCount[t]=d-g,e.bMarks[t]=m,e.blkIndent+=4,e.parentType="footnote",e.sCount[t]<e.blkIndent&&(e.sCount[t]+=e.blkIndent),e.md.block.tokenize(e,t,r,!0),e.parentType=i,e.blkIndent-=4,e.tShift[t]=o,e.sCount[t]=s,e.bMarks[t]=a,(A=new e.Token("footnote_reference_close","",-1)).level=--e.level,e.tokens.push(A),!0}),{alt:["paragraph","reference"]}),e.inline.ruler.after("image","footnote_inline",(function(e,t){var r,n,a,o,s=e.posMax,i=e.pos;return!(i+2>=s)&&(94===e.src.charCodeAt(i)&&(91===e.src.charCodeAt(i+1)&&(r=i+2,!((n=c(e,i+1))<0)&&(t||(e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.list||(e.env.footnotes.list=[]),a=e.env.footnotes.list.length,e.md.inline.parse(e.src.slice(r,n),e.md,e.env,o=[]),e.push("footnote_ref","",0).meta={id:a},e.env.footnotes.list[a]={content:e.src.slice(r,n),tokens:o}),e.pos=n+1,e.posMax=s,!0))))})),e.inline.ruler.after("footnote_inline","footnote_ref",(function(e,t){var r,n,a,o,s=e.posMax,i=e.pos;if(i+3>s)return!1;if(!e.env.footnotes||!e.env.footnotes.refs)return!1;if(91!==e.src.charCodeAt(i))return!1;if(94!==e.src.charCodeAt(i+1))return!1;for(n=i+2;n<s;n++){if(32===e.src.charCodeAt(n))return!1;if(10===e.src.charCodeAt(n))return!1;if(93===e.src.charCodeAt(n))break}return n!==i+2&&(!(n>=s)&&(n++,r=e.src.slice(i+2,n-1),void 0!==e.env.footnotes.refs[":"+r]&&(t||(e.env.footnotes.list||(e.env.footnotes.list=[]),e.env.footnotes.refs[":"+r]<0?(a=e.env.footnotes.list.length,e.env.footnotes.list[a]={label:r,count:0},e.env.footnotes.refs[":"+r]=a):a=e.env.footnotes.refs[":"+r],o=e.env.footnotes.list[a].count,e.env.footnotes.list[a].count++,e.push("footnote_ref","",0).meta={id:a,subId:o,label:r}),e.pos=n,e.posMax=s,!0)))})),e.core.ruler.after("inline","footnote_tail",(function(e){var t,r,n,a,o,s,i,l,c,u,A=!1,g={};if(e.env.footnotes&&(e.tokens=e.tokens.filter((function(e){return"footnote_reference_open"===e.type?(A=!0,c=[],u=e.meta.label,!1):"footnote_reference_close"===e.type?(A=!1,g[":"+u]=c,!1):(A&&c.push(e),!A)})),e.env.footnotes.list)){for(s=e.env.footnotes.list,i=new e.Token("footnote_block_open","",1),e.tokens.push(i),t=0,r=s.length;t<r;t++){for((i=new e.Token("footnote_open","",1)).meta={id:t,label:s[t].label},e.tokens.push(i),s[t].tokens?(l=[],(i=new e.Token("paragraph_open","p",1)).block=!0,l.push(i),(i=new e.Token("inline","",0)).children=s[t].tokens,i.content=s[t].content,l.push(i),(i=new e.Token("paragraph_close","p",-1)).block=!0,l.push(i)):s[t].label&&(l=g[":"+s[t].label]),l&&(e.tokens=e.tokens.concat(l)),o="paragraph_close"===e.tokens[e.tokens.length-1].type?e.tokens.pop():null,a=s[t].count>0?s[t].count:1,n=0;n<a;n++)(i=new e.Token("footnote_anchor","",0)).meta={id:t,subId:n,label:s[t].label},e.tokens.push(i);o&&e.tokens.push(o),i=new e.Token("footnote_close","",-1),e.tokens.push(i)}i=new e.Token("footnote_block_close","",-1),e.tokens.push(i)}}))}},47876:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={placeholder:"NisihrgiIKl_knpYJtfg",pulse:"R2i0K45dEF157drbVRPI"}},85335:()=>{},25196:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={global:"_fUXxnSp5pagKBp9gSN7"}},54746:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={wrapper:"h2NGkiVs1r1nf85LtJpF","conversion-notice":"k3Apzwo3v9n0IaHbB8tf"}},44997:e=>{var t=1e3,r=60*t,n=60*r,a=24*n,o=7*a,s=365.25*a;function i(e,t,r,n){var a=t>=1.5*r;return Math.round(e/r)+" "+n+(a?"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 i=/^(-?(?:\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(!i)return;var l=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return l*s;case"weeks":case"week":case"w":return l*o;case"days":case"day":case"d":return l*a;case"hours":case"hour":case"hrs":case"hr":case"h":return l*n;case"minutes":case"minute":case"mins":case"min":case"m":return l*r;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>=a)return i(e,o,a,"day");if(o>=n)return i(e,o,n,"hour");if(o>=r)return i(e,o,r,"minute");if(o>=t)return i(e,o,t,"second");return e+" ms"}(e):function(e){var o=Math.abs(e);if(o>=a)return Math.round(e/a)+"d";if(o>=n)return Math.round(e/n)+"h";if(o>=r)return Math.round(e/r)+"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,r)=>{"use strict";r.d(t,{W:()=>s});var n=r(25700),a=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],o=/[^A-Z0-9]+/gi;function s(e,t){void 0===t&&(t={});for(var r=t.splitRegexp,s=void 0===r?a:r,l=t.stripRegexp,c=void 0===l?o:l,u=t.transform,A=void 0===u?n.g:u,g=t.delimiter,d=void 0===g?" ":g,p=i(i(e,s,"$1\0$2"),c,"\0"),m=0,h=p.length;"\0"===p.charAt(m);)m++;for(;"\0"===p.charAt(h-1);)h--;return p.slice(m,h).split("\0").map(A).join(d)}function i(e,t,r){return t instanceof RegExp?e.replace(t,r):t.reduce((function(e,t){return e.replace(t,r)}),e)}},74572:(e,t,r)=>{"use strict";r.d(t,{c:()=>o});var n=r(54715),a=r(19382);function o(e,t){return void 0===t&&(t={}),(0,a.a)(e,(0,n.Cl)({delimiter:"-"},t))}},82769:(e,t,r)=>{"use strict";r.d(t,{$7:()=>s,fL:()=>i,l3:()=>o});var n=r(54715),a=r(2532);function o(e,t){var r=e.charAt(0),n=e.substr(1).toLowerCase();return t>0&&r>="0"&&r<="9"?"_"+r+n:""+r.toUpperCase()+n}function s(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}function i(e,t){return void 0===t&&(t={}),(0,a.W)(e,(0,n.Cl)({delimiter:"",transform:o},t))}},70320:(e,t,r)=>{"use strict";r.d(t,{y:()=>o});var n=r(54715),a=r(19382);function o(e,t){return void 0===t&&(t={}),(0,a.a)(e,(0,n.Cl)({delimiter:"/"},t))}},14936:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var n=r(87399),a=r.n(n),o=r(10067),s=r.n(o),i=r(11264),l=r.n(i);const c=s()("photon"),u={width:"w",height:"h",letterboxing:"lb",removeLetterboxing:"ulb"},A="__domain__.invalid",g=`https://${A}`,d="https://i0.wp.com";function p(e,t){let r;try{r=new URL(e,g)}catch{return null}const n="https:"===r.protocol,o=new URL(d);if(s=r.host,/^i[0-2]\.wp\.com$/.test(s))o.pathname=r.pathname,o.hostname=n?"i0.wp.com":r.hostname;else{if(r.search)return null;let e=r.href.replace(`${r.protocol}/`,"");"blob:"===r.protocol&&(e=r.pathname.replace("://","//")),r.hostname===A&&(e=r.pathname),o.pathname=e,o.hostname=function(e,t){if(t)return"i0.wp.com";const r=a()(e),n=l()(r),o="i"+Math.floor(3*n());return c('determined server "%s" to use with "%s"',o,e),o+".wp.com"}(e,"https:"===o.protocol),n&&o.searchParams.set("ssl","1")}var s;if(t)for(const[e,r]of Object.entries(t))"host"!==e&&"hostname"!==e?"secure"!==e||r?o.searchParams.set(u[e]??e,r.toString()):o.protocol="http:":o.hostname=r;return c("generated Photon URL: %s",o.href),o.href}},15762:(e,t,r)=>{"use strict";var n=r(53761);function a(){}function o(){}o.resetWarningCache=a,e.exports=function(){function e(e,t,r,a,o,s){if(s!==n){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:a};return r.PropTypes=r,r}},28120:(e,t,r)=>{e.exports=r(15762)()},53761:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},87072:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>f});const n=2147483647,a=36,o=/^xn--/,s=/[^\0-\x7F]/,i=/[\x2E\u3002\uFF0E\uFF61]/g,l={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},c=Math.floor,u=String.fromCharCode;function A(e){throw new RangeError(l[e])}function g(e,t){const r=e.split("@");let n="";r.length>1&&(n=r[0]+"@",e=r[1]);const a=function(e,t){const r=[];let n=e.length;for(;n--;)r[n]=t(e[n]);return r}((e=e.replace(i,".")).split("."),t).join(".");return n+a}function d(e){const t=[];let r=0;const n=e.length;for(;r<n;){const a=e.charCodeAt(r++);if(a>=55296&&a<=56319&&r<n){const n=e.charCodeAt(r++);56320==(64512&n)?t.push(((1023&a)<<10)+(1023&n)+65536):(t.push(a),r--)}else t.push(a)}return t}const p=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},m=function(e,t,r){let n=0;for(e=r?c(e/700):e>>1,e+=c(e/t);e>455;n+=a)e=c(e/35);return c(n+36*e/(e+38))},h=function(e){const t=[],r=e.length;let o=0,s=128,i=72,l=e.lastIndexOf("-");l<0&&(l=0);for(let r=0;r<l;++r)e.charCodeAt(r)>=128&&A("not-basic"),t.push(e.charCodeAt(r));for(let g=l>0?l+1:0;g<r;){const l=o;for(let t=1,s=a;;s+=a){g>=r&&A("invalid-input");const l=(u=e.charCodeAt(g++))>=48&&u<58?u-48+26:u>=65&&u<91?u-65:u>=97&&u<123?u-97:a;l>=a&&A("invalid-input"),l>c((n-o)/t)&&A("overflow"),o+=l*t;const d=s<=i?1:s>=i+26?26:s-i;if(l<d)break;const p=a-d;t>c(n/p)&&A("overflow"),t*=p}const d=t.length+1;i=m(o-l,d,0==l),c(o/d)>n-s&&A("overflow"),s+=c(o/d),o%=d,t.splice(o++,0,s)}var u;return String.fromCodePoint(...t)},E=function(e){const t=[],r=(e=d(e)).length;let o=128,s=0,i=72;for(const r of e)r<128&&t.push(u(r));const l=t.length;let g=l;for(l&&t.push("-");g<r;){let r=n;for(const t of e)t>=o&&t<r&&(r=t);const d=g+1;r-o>c((n-s)/d)&&A("overflow"),s+=(r-o)*d,o=r;for(const r of e)if(r<o&&++s>n&&A("overflow"),r===o){let e=s;for(let r=a;;r+=a){const n=r<=i?1:r>=i+26?26:r-i;if(e<n)break;const o=e-n,s=a-n;t.push(u(p(n+o%s,0))),e=c(o/s)}t.push(u(p(e,0))),i=m(s,d,g===l),s=0,++g}++s,++o}return t.join("")},f={version:"2.3.1",ucs2:{decode:d,encode:e=>String.fromCodePoint(...e)},decode:h,encode:E,toASCII:function(e){return g(e,(function(e){return s.test(e)?"xn--"+E(e):e}))},toUnicode:function(e){return g(e,(function(e){return o.test(e)?h(e.slice(4).toLowerCase()):e}))}}},21782:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>_});var n,a=r(51609),o=r.n(a),s=Object.defineProperty,i=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,u=(e,t,r)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,A=(e,t)=>{for(var r in t||(t={}))l.call(t,r)&&u(e,r,t[r]);if(i)for(var r of i(t))c.call(t,r)&&u(e,r,t[r]);return e},g=(e,t)=>{var r={};for(var n in e)l.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&i)for(var n of i(e))t.indexOf(n)<0&&c.call(e,n)&&(r[n]=e[n]);return r};(e=>{const t=class{constructor(e,r,n,a){if(this.version=e,this.errorCorrectionLevel=r,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version value out of range");if(a<-1||a>7)throw new RangeError("Mask value out of range");this.size=4*e+17;let s=[];for(let e=0;e<this.size;e++)s.push(!1);for(let e=0;e<this.size;e++)this.modules.push(s.slice()),this.isFunction.push(s.slice());this.drawFunctionPatterns();const i=this.addEccAndInterleave(n);if(this.drawCodewords(i),-1==a){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const r=this.getPenaltyScore();r<e&&(a=t,e=r),this.applyMask(t)}}o(0<=a&&a<=7),this.mask=a,this.applyMask(a),this.drawFormatBits(a),this.isFunction=[]}static encodeText(r,n){const a=e.QrSegment.makeSegments(r);return t.encodeSegments(a,n)}static encodeBinary(r,n){const a=e.QrSegment.makeBytes(r);return t.encodeSegments([a],n)}static encodeSegments(e,r,a=1,s=40,l=-1,c=!0){if(!(t.MIN_VERSION<=a&&a<=s&&s<=t.MAX_VERSION)||l<-1||l>7)throw new RangeError("Invalid value");let u,A;for(u=a;;u++){const n=8*t.getNumDataCodewords(u,r),a=i.getTotalBits(e,u);if(a<=n){A=a;break}if(u>=s)throw new RangeError("Data too long")}for(const e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])c&&A<=8*t.getNumDataCodewords(u,e)&&(r=e);let g=[];for(const t of e){n(t.mode.modeBits,4,g),n(t.numChars,t.mode.numCharCountBits(u),g);for(const e of t.getData())g.push(e)}o(g.length==A);const d=8*t.getNumDataCodewords(u,r);o(g.length<=d),n(0,Math.min(4,d-g.length),g),n(0,(8-g.length%8)%8,g),o(g.length%8==0);for(let e=236;g.length<d;e^=253)n(e,8,g);let p=[];for(;8*p.length<g.length;)p.push(0);return g.forEach(((e,t)=>p[t>>>3]|=e<<7-(7&t))),new t(u,r,p,l)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let r=0;r<t;r++)for(let n=0;n<t;n++)0==r&&0==n||0==r&&n==t-1||r==t-1&&0==n||this.drawAlignmentPattern(e[r],e[n]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.errorCorrectionLevel.formatBits<<3|e;let r=t;for(let e=0;e<10;e++)r=r<<1^1335*(r>>>9);const n=21522^(t<<10|r);o(n>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,a(n,e));this.setFunctionModule(8,7,a(n,6)),this.setFunctionModule(8,8,a(n,7)),this.setFunctionModule(7,8,a(n,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,a(n,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,a(n,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,a(n,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;o(t>>>18==0);for(let e=0;e<18;e++){const r=a(t,e),n=this.size-11+e%3,o=Math.floor(e/3);this.setFunctionModule(n,o,r),this.setFunctionModule(o,n,r)}}drawFinderPattern(e,t){for(let r=-4;r<=4;r++)for(let n=-4;n<=4;n++){const a=Math.max(Math.abs(n),Math.abs(r)),o=e+n,s=t+r;0<=o&&o<this.size&&0<=s&&s<this.size&&this.setFunctionModule(o,s,2!=a&&4!=a)}}drawAlignmentPattern(e,t){for(let r=-2;r<=2;r++)for(let n=-2;n<=2;n++)this.setFunctionModule(e+n,t+r,1!=Math.max(Math.abs(n),Math.abs(r)))}setFunctionModule(e,t,r){this.modules[t][e]=r,this.isFunction[t][e]=!0}addEccAndInterleave(e){const r=this.version,n=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(r,n))throw new RangeError("Invalid argument");const a=t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][r],s=t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][r],i=Math.floor(t.getNumRawDataModules(r)/8),l=a-i%a,c=Math.floor(i/a);let u=[];const A=t.reedSolomonComputeDivisor(s);for(let r=0,n=0;r<a;r++){let a=e.slice(n,n+c-s+(r<l?0:1));n+=a.length;const o=t.reedSolomonComputeRemainder(a,A);r<l&&a.push(0),u.push(a.concat(o))}let g=[];for(let e=0;e<u[0].length;e++)u.forEach(((t,r)=>{(e!=c-s||r>=l)&&g.push(t[e])}));return o(g.length==i),g}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let r=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let n=0;n<this.size;n++)for(let o=0;o<2;o++){const s=t-o,i=!(t+1&2)?this.size-1-n:n;!this.isFunction[i][s]&&r<8*e.length&&(this.modules[i][s]=a(e[r>>>3],7-(7&r)),r++)}}o(r==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let r=0;r<this.size;r++){let n;switch(e){case 0:n=(r+t)%2==0;break;case 1:n=t%2==0;break;case 2:n=r%3==0;break;case 3:n=(r+t)%3==0;break;case 4:n=(Math.floor(r/3)+Math.floor(t/2))%2==0;break;case 5:n=r*t%2+r*t%3==0;break;case 6:n=(r*t%2+r*t%3)%2==0;break;case 7:n=((r+t)%2+r*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][r]&&n&&(this.modules[t][r]=!this.modules[t][r])}}getPenaltyScore(){let e=0;for(let r=0;r<this.size;r++){let n=!1,a=0,o=[0,0,0,0,0,0,0];for(let s=0;s<this.size;s++)this.modules[r][s]==n?(a++,5==a?e+=t.PENALTY_N1:a>5&&e++):(this.finderPenaltyAddHistory(a,o),n||(e+=this.finderPenaltyCountPatterns(o)*t.PENALTY_N3),n=this.modules[r][s],a=1);e+=this.finderPenaltyTerminateAndCount(n,a,o)*t.PENALTY_N3}for(let r=0;r<this.size;r++){let n=!1,a=0,o=[0,0,0,0,0,0,0];for(let s=0;s<this.size;s++)this.modules[s][r]==n?(a++,5==a?e+=t.PENALTY_N1:a>5&&e++):(this.finderPenaltyAddHistory(a,o),n||(e+=this.finderPenaltyCountPatterns(o)*t.PENALTY_N3),n=this.modules[s][r],a=1);e+=this.finderPenaltyTerminateAndCount(n,a,o)*t.PENALTY_N3}for(let r=0;r<this.size-1;r++)for(let n=0;n<this.size-1;n++){const a=this.modules[r][n];a==this.modules[r][n+1]&&a==this.modules[r+1][n]&&a==this.modules[r+1][n+1]&&(e+=t.PENALTY_N2)}let r=0;for(const e of this.modules)r=e.reduce(((e,t)=>e+(t?1:0)),r);const n=this.size*this.size,a=Math.ceil(Math.abs(20*r-10*n)/n)-1;return o(0<=a&&a<=9),e+=a*t.PENALTY_N4,o(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2));let r=[6];for(let n=this.size-7;r.length<e;n-=t)r.splice(1,0,n);return r}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version number out of range");let r=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;r-=(25*t-10)*t-55,e>=7&&(r-=36)}return o(208<=r&&r<=29648),r}static getNumDataCodewords(e,r){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let r=[];for(let t=0;t<e-1;t++)r.push(0);r.push(1);let n=1;for(let a=0;a<e;a++){for(let e=0;e<r.length;e++)r[e]=t.reedSolomonMultiply(r[e],n),e+1<r.length&&(r[e]^=r[e+1]);n=t.reedSolomonMultiply(n,2)}return r}static reedSolomonComputeRemainder(e,r){let n=r.map((e=>0));for(const a of e){const e=a^n.shift();n.push(0),r.forEach(((r,a)=>n[a]^=t.reedSolomonMultiply(r,e)))}return n}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let r=0;for(let n=7;n>=0;n--)r=r<<1^285*(r>>>7),r^=(t>>>n&1)*e;return o(r>>>8==0),r}finderPenaltyCountPatterns(e){const t=e[1];o(t<=3*this.size);const r=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(r&&e[0]>=4*t&&e[6]>=t?1:0)+(r&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,r){return e&&(this.finderPenaltyAddHistory(t,r),t=0),t+=this.size,this.finderPenaltyAddHistory(t,r),this.finderPenaltyCountPatterns(r)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};let r=t;function n(e,t,r){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(let n=t-1;n>=0;n--)r.push(e>>>n&1)}function a(e,t){return!!(e>>>t&1)}function o(e){if(!e)throw new Error("Assertion error")}r.MIN_VERSION=1,r.MAX_VERSION=40,r.PENALTY_N1=3,r.PENALTY_N2=3,r.PENALTY_N3=40,r.PENALTY_N4=10,r.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],r.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=r;const s=class{constructor(e,t,r){if(this.mode=e,this.numChars=t,this.bitData=r,t<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}static makeBytes(e){let t=[];for(const r of e)n(r,8,t);return new s(s.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!s.isNumeric(e))throw new RangeError("String contains non-numeric characters");let t=[];for(let r=0;r<e.length;){const a=Math.min(e.length-r,3);n(parseInt(e.substr(r,a),10),3*a+1,t),r+=a}return new s(s.Mode.NUMERIC,e.length,t)}static makeAlphanumeric(e){if(!s.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");let t,r=[];for(t=0;t+2<=e.length;t+=2){let a=45*s.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t));a+=s.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t+1)),n(a,11,r)}return t<e.length&&n(s.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t)),6,r),new s(s.Mode.ALPHANUMERIC,e.length,r)}static makeSegments(e){return""==e?[]:s.isNumeric(e)?[s.makeNumeric(e)]:s.isAlphanumeric(e)?[s.makeAlphanumeric(e)]:[s.makeBytes(s.toUtf8ByteArray(e))]}static makeEci(e){let t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)n(e,8,t);else if(e<16384)n(2,2,t),n(e,14,t);else{if(!(e<1e6))throw new RangeError("ECI assignment value out of range");n(6,3,t),n(e,21,t)}return new s(s.Mode.ECI,0,t)}static isNumeric(e){return s.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return s.ALPHANUMERIC_REGEX.test(e)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let r=0;for(const n of e){const e=n.mode.numCharCountBits(t);if(n.numChars>=1<<e)return 1/0;r+=4+e+n.bitData.length}return r}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let r=0;r<e.length;r++)"%"!=e.charAt(r)?t.push(e.charCodeAt(r)):(t.push(parseInt(e.substr(r+1,2),16)),r+=2);return t}};let i=s;i.NUMERIC_REGEX=/^[0-9]*$/,i.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,i.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=i})(n||(n={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};let r=t;r.LOW=new t(0,1),r.MEDIUM=new t(1,0),r.QUARTILE=new t(2,3),r.HIGH=new t(3,2),e.Ecc=r})(t=e.QrCode||(e.QrCode={}))})(n||(n={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};let r=t;r.NUMERIC=new t(1,[10,12,14]),r.ALPHANUMERIC=new t(2,[9,11,13]),r.BYTE=new t(4,[8,16,16]),r.KANJI=new t(8,[8,10,12]),r.ECI=new t(7,[0,0,0]),e.Mode=r})(t=e.QrSegment||(e.QrSegment={}))})(n||(n={}));var d=n,p={L:d.QrCode.Ecc.LOW,M:d.QrCode.Ecc.MEDIUM,Q:d.QrCode.Ecc.QUARTILE,H:d.QrCode.Ecc.HIGH},m=128,h="L",E="#FFFFFF",f="#000000",C=!1;function B(e,t=0){const r=[];return e.forEach((function(e,n){let a=null;e.forEach((function(o,s){if(!o&&null!==a)return r.push(`M${a+t} ${n+t}h${s-a}v1H${a+t}z`),void(a=null);if(s!==e.length-1)o&&null===a&&(a=s);else{if(!o)return;null===a?r.push(`M${s+t},${n+t} h1v1H${s+t}z`):r.push(`M${a+t},${n+t} h${s+1-a}v1H${a+t}z`)}}))})),r.join("")}function b(e,t){return e.slice().map(((e,r)=>r<t.y||r>=t.y+t.h?e:e.map(((e,r)=>(r<t.x||r>=t.x+t.w)&&e))))}function k(e,t,r,n){if(null==n)return null;const a=r?4:0,o=e.length+2*a,s=Math.floor(.1*t),i=o/t,l=(n.width||s)*i,c=(n.height||s)*i,u=null==n.x?e.length/2-l/2:n.x*i,A=null==n.y?e.length/2-c/2:n.y*i;let g=null;if(n.excavate){let e=Math.floor(u),t=Math.floor(A);g={x:e,y:t,w:Math.ceil(l+u-e),h:Math.ceil(c+A-t)}}return{x:u,y:A,h:c,w:l,excavation:g}}var y=function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}return!0}();function v(e){const t=e,{value:r,size:n=m,level:s=h,bgColor:i=E,fgColor:l=f,includeMargin:c=C,style:u,imageSettings:v}=t,I=g(t,["value","size","level","bgColor","fgColor","includeMargin","style","imageSettings"]),_=null==v?void 0:v.src,w=(0,a.useRef)(null),Q=(0,a.useRef)(null),[S,x]=(0,a.useState)(!1);(0,a.useEffect)((()=>{if(null!=w.current){const e=w.current,t=e.getContext("2d");if(!t)return;let a=d.QrCode.encodeText(r,p[s]).getModules();const o=c?4:0,u=a.length+2*o,A=k(a,n,c,v),g=Q.current,m=null!=A&&null!==g&&g.complete&&0!==g.naturalHeight&&0!==g.naturalWidth;m&&null!=A.excavation&&(a=b(a,A.excavation));const h=window.devicePixelRatio||1;e.height=e.width=n*h;const E=n/u*h;t.scale(E,E),t.fillStyle=i,t.fillRect(0,0,u,u),t.fillStyle=l,y?t.fill(new Path2D(B(a,o))):a.forEach((function(e,r){e.forEach((function(e,n){e&&t.fillRect(n+o,r+o,1,1)}))})),m&&t.drawImage(g,A.x+o,A.y+o,A.w,A.h)}})),(0,a.useEffect)((()=>{x(!1)}),[_]);const j=A({height:n,width:n},u);let L=null;return null!=_&&(L=o().createElement("img",{src:_,key:_,style:{display:"none"},onLoad:()=>{x(!0)},ref:Q})),o().createElement(o().Fragment,null,o().createElement("canvas",A({style:j,height:n,width:n,ref:w},I)),L)}function I(e){const t=e,{value:r,size:n=m,level:a=h,bgColor:s=E,fgColor:i=f,includeMargin:l=C,imageSettings:c}=t,u=g(t,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]);let y=d.QrCode.encodeText(r,p[a]).getModules();const v=l?4:0,I=y.length+2*v,_=k(y,n,l,c);let w=null;null!=c&&null!=_&&(null!=_.excavation&&(y=b(y,_.excavation)),w=o().createElement("image",{xlinkHref:c.src,height:_.h,width:_.w,x:_.x+v,y:_.y+v,preserveAspectRatio:"none"}));const Q=B(y,v);return o().createElement("svg",A({height:n,width:n,viewBox:`0 0 ${I} ${I}`},u),o().createElement("path",{fill:s,d:`M0,0 h${I}v${I}H0z`,shapeRendering:"crispEdges"}),o().createElement("path",{fill:i,d:Q,shapeRendering:"crispEdges"}),w)}var _=e=>{const t=e,{renderAs:r}=t,n=g(t,["renderAs"]);return"svg"===r?o().createElement(I,A({},n)):o().createElement(v,A({},n))}},24588:(e,t)=>{"use strict";var r=Object.prototype.hasOwnProperty;function n(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}function a(e){try{return encodeURIComponent(e)}catch(e){return null}}t.stringify=function(e,t){t=t||"";var n,o,s=[];for(o in"string"!=typeof t&&(t="?"),e)if(r.call(e,o)){if((n=e[o])||null!=n&&!isNaN(n)||(n=""),o=a(o),n=a(n),null===o||null===n)continue;s.push(o+"="+n)}return s.length?t+s.join("&"):""},t.parse=function(e){for(var t,r=/([^=?#&]+)=?([^&]*)/g,a={};t=r.exec(e);){var o=n(t[1]),s=n(t[2]);null===o||null===s||o in a||(a[o]=s)}return a}},18950:(e,t,r)=>{"use strict";var n=r(75795);t.createRoot=n.createRoot,t.hydrateRoot=n.hydrateRoot},96811:e=>{"use strict";e.exports=function(e,t){if(t=t.split(":")[0],!(e=+e))return!1;switch(t){case"http":case"ws":return 80!==e;case"https":case"wss":return 443!==e;case"ftp":return 21!==e;case"gopher":return 70!==e;case"file":return!1}return 0!==e}},94107:(e,t,r)=>{"use strict";r.d(t,{A:()=>v});var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var r=-1;return e.some((function(e,n){return e[0]===t&&(r=n,!0)})),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var r=e(this.__entries__,t),n=this.__entries__[r];return n&&n[1]},t.prototype.set=function(t,r){var n=e(this.__entries__,t);~n?this.__entries__[n][1]=r:this.__entries__.push([t,r])},t.prototype.delete=function(t){var r=this.__entries__,n=e(r,t);~n&&r.splice(n,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var r=0,n=this.__entries__;r<n.length;r++){var a=n[r];e.call(t,a[1],a[0])}},t}()}(),a="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,o="undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),s="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(o):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var i=["top","right","bottom","left","width","height","size","weight"],l="undefined"!=typeof MutationObserver,c=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var r=!1,n=!1,a=0;function o(){r&&(r=!1,e()),n&&l()}function i(){s(o)}function l(){var e=Date.now();if(r){if(e-a<2)return;n=!0}else r=!0,n=!1,setTimeout(i,t);a=e}return l}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,r=t.indexOf(e);~r&&t.splice(r,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){a&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){a&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,r=void 0===t?"":t;i.some((function(e){return!!~r.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),u=function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var a=n[r];Object.defineProperty(e,a,{value:t[a],enumerable:!1,writable:!1,configurable:!0})}return e},A=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||o},g=f(0,0,0,0);function d(e){return parseFloat(e)||0}function p(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce((function(t,r){return t+d(e["border-"+r+"-width"])}),0)}function m(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return g;var n=A(e).getComputedStyle(e),a=function(e){for(var t={},r=0,n=["top","right","bottom","left"];r<n.length;r++){var a=n[r],o=e["padding-"+a];t[a]=d(o)}return t}(n),o=a.left+a.right,s=a.top+a.bottom,i=d(n.width),l=d(n.height);if("border-box"===n.boxSizing&&(Math.round(i+o)!==t&&(i-=p(n,"left","right")+o),Math.round(l+s)!==r&&(l-=p(n,"top","bottom")+s)),!function(e){return e===A(e).document.documentElement}(e)){var c=Math.round(i+o)-t,u=Math.round(l+s)-r;1!==Math.abs(c)&&(i-=c),1!==Math.abs(u)&&(l-=u)}return f(a.left,a.top,i,l)}var h="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof A(e).SVGGraphicsElement}:function(e){return e instanceof A(e).SVGElement&&"function"==typeof e.getBBox};function E(e){return a?h(e)?function(e){var t=e.getBBox();return f(0,0,t.width,t.height)}(e):m(e):g}function f(e,t,r,n){return{x:e,y:t,width:r,height:n}}var C=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=f(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=E(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),B=function(e,t){var r,n,a,o,s,i,l,c=(n=(r=t).x,a=r.y,o=r.width,s=r.height,i="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(i.prototype),u(l,{x:n,y:a,width:o,height:s,top:a,right:n+o,bottom:s+a,left:n}),l);u(this,{target:e,contentRect:c})},b=function(){function e(e,t,r){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof A(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new C(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof A(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new B(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),k="undefined"!=typeof WeakMap?new WeakMap:new n,y=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=c.getInstance(),n=new b(t,r,this);k.set(this,n)};["observe","unobserve","disconnect"].forEach((function(e){y.prototype[e]=function(){var t;return(t=k.get(this))[e].apply(t,arguments)}}));const v=void 0!==o.ResizeObserver?o.ResizeObserver:y},11264:e=>{"use strict";var t=256,r=[],n=window,a=Math.pow(t,6),o=Math.pow(2,52),s=2*o,i=255,l=Math.random;function c(e){var r,n=e.length,a=this,o=0,s=a.i=a.j=0,l=a.S=[];for(n||(e=[n++]);o<t;)l[o]=o++;for(o=0;o<t;o++)l[o]=l[s=i&s+e[o%n]+(r=l[o])],l[s]=r;(a.g=function(e){for(var r,n=0,o=a.i,s=a.j,l=a.S;e--;)r=l[o=i&o+1],n=n*t+l[i&(l[o]=l[s=i&s+r])+(l[s]=r)];return a.i=o,a.j=s,n})(t)}function u(e,t){var r,n=[],a=(typeof e)[0];if(t&&"o"==a)for(r in e)try{n.push(u(e[r],t-1))}catch(e){}return n.length?n:"s"==a?e:e+"\0"}function A(e,t){for(var r,n=e+"",a=0;a<n.length;)t[i&a]=i&(r^=19*t[i&a])+n.charCodeAt(a++);return g(t)}function g(e){return String.fromCharCode.apply(0,e)}e.exports=function(i,l){if(l&&!0===l.global)return l.global=!1,Math.random=e.exports(i,l),l.global=!0,Math.random;var d=[],p=(A(u(l&&l.entropy||!1?[i,g(r)]:0 in arguments?i:function(e){try{return n.crypto.getRandomValues(e=new Uint8Array(t)),g(e)}catch(e){return[+new Date,n,n.navigator&&n.navigator.plugins,n.screen,g(r)]}}(),3),d),new c(d));return A(g(p.S),r),function(){for(var e=p.g(6),r=a,n=0;e<o;)e=(e+n)*t,r*=t,n=p.g(1);for(;e>=s;)e/=2,r/=2,n>>>=1;return(e+n)/r}},e.exports.resetGlobal=function(){Math.random=l},A(Math.random(),r)},82682:(e,t,r)=>{"use strict";r.d(t,{o:()=>i,u:()=>s});var n=r(54715),a=r(2532),o=r(21644);function s(e,t){var r=e.toLowerCase();return 0===t?(0,o.R)(r):r}function i(e,t){return void 0===t&&(t={}),(0,a.W)(e,(0,n.Cl)({delimiter:" ",transform:s},t))}},68963:(e,t,r)=>{"use strict";r.d(t,{L:()=>o});var n=r(54715),a=r(19382);function o(e,t){return void 0===t&&(t={}),(0,a.a)(e,(0,n.Cl)({delimiter:"_"},t))}},48931:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(1455),a=r.n(n);const o="default"in a()?a().default:a()},87286:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(10067),a=r.n(n),o=r(53664);const s=a()("jetpack-ai-client:ask-question");async function i(e,{postId:t=null,fromCache:r=!1,feature:n,functions:a,model:i}={}){return s("Asking question: %o. options: %o",e,{postId:t,fromCache:r,feature:n,functions:a,model:i}),new o.A({question:e,options:{postId:t,feature:n,fromCache:r,functions:a,model:i}})}},31439:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(10067),a=r.n(n),o=r(51391);const s=a()("jetpack-ai-client:ask-question-sync");async function i(e,t={}){s("Asking question with no streaming: %o. options: %o",e,t);let r=null;try{r=(await(0,o.A)()).token}catch(e){return s("Error getting token: %o",e),Promise.reject(e)}const n={...Array.isArray(e)?{messages:e}:{question:e},...t,stream:!1},a={Authorization:`Bearer ${r}`,"Content-Type":"application/json"};try{const e=await fetch("https://public-api.wordpress.com/wpcom/v2/jetpack-ai-query",{method:"POST",headers:a,body:JSON.stringify(n)}).then((e=>e.json()));return e?.data?.status&&e?.data?.status>200?(s("Error generating prompt: %o",e),Promise.reject(e)):e.choices?.[0]?.message?.content}catch(e){return s("Error asking question: %o",e),Promise.reject(e)}}},57745:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(10067),a=r.n(n),o=r(51391);const s=a()("jetpack-ai-client:audio-transcription");async function i(e,t,r){s("Transcribing audio: %o. Feature: %o",e,t);let n="";try{n=(await(0,o.A)()).token}catch(e){return s("Error getting token: %o",e),Promise.reject(e)}const a=new FormData;a.append("audio_file",e);try{const e={Authorization:`Bearer ${n}`},o="https://public-api.wordpress.com/wpcom/v2/jetpack-ai-transcription"+(t?`?feature=${t}`:"");return fetch(o,{method:"POST",body:a,headers:e,signal:r??void 0}).then((e=>(s("Transcription response: %o",e),e.ok?e.json().then((e=>e?.text)):e.json().then((e=>Promise.reject(e))))))}catch(e){return s("Transcription error response: %o",e),Promise.reject(e)}}},70629:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(94715),a=r(13022),o=r(51609),s=r.n(o),i=r(6754);function l({className:e,disabled:t=!1,value:r="",placeholder:o="",isTransparent:l=!1,state:c="init",onChange:u,banner:A=null,error:g=null,actions:d=null,message:p=null,promptUserInputRef:m=null,wrapperRef:h=null}){return s().createElement("div",{className:(0,a.A)("jetpack-components-ai-control__container-wrapper",e),ref:h},g,s().createElement("div",{className:"jetpack-components-ai-control__container"},A,s().createElement("div",{className:(0,a.A)("jetpack-components-ai-control__wrapper",{"is-transparent":l})},s().createElement(i.A,{state:c}),s().createElement("div",{className:"jetpack-components-ai-control__input-wrapper"},s().createElement(n.PlainText,{value:r,onChange:u,placeholder:o,className:"jetpack-components-ai-control__input",disabled:t,ref:m})),d),p))}},71417:(e,t,r)=>{"use strict";r.d(t,{A:()=>b});var n=r(56427),a=r(29491),o=r(86087),s=r(27723),i=r(51113),l=r(31249),c=r(62510),u=r(76673),A=r(40502),g=r(83883),d=r(10067),p=r.n(d),m=r(51609),h=r.n(m),E=r(63098),f=r(70629);const __=s.__,C=p()("jetpack-ai-client:block-ai-control");function B({disabled:e=!1,value:t="",placeholder:r="",showAccept:s=!1,acceptLabel:d=__("Accept","jetpack"),showButtonLabels:p=!0,isTransparent:m=!1,state:B="init",showGuideLine:b=!1,customFooter:k=null,onChange:y,onSend:v,onStop:I,onAccept:_,onDiscard:w,showRemove:Q=!1,banner:S=null,error:x=null},j){const L="requesting"===B||"suggesting"===B,[N,T]=(0,o.useState)(!1),[R,P]=(0,o.useState)(t||null),D=(0,o.useRef)(null);(0,o.useImperativeHandle)(j,(()=>D.current)),(0,o.useEffect)((()=>{N&&D?.current?.focus()}),[N]);const M=(0,o.useCallback)((()=>{P(t),T(!1),v?.(t)}),[t]),F=(0,o.useCallback)((e=>{y?.(e),"init"!==B&&T(R?e!==R:e.length>0)}),[R,B]),O=(0,o.useCallback)((()=>{w?.()}),[]),U=(0,o.useCallback)((()=>{C("cancelEdit, revert to last value",R),y?.(R||""),T(!1)}),[R]);(0,a.useKeyboardShortcut)("mod+enter",(()=>{s&&_?.()}),{target:D}),(0,a.useKeyboardShortcut)("enter",(e=>{e.preventDefault(),M()}),{target:D});const H=h().createElement(h().Fragment,null,(!s||N)&&h().createElement("div",{className:"jetpack-components-ai-control__controls-prompt_button_wrapper"},L?h().createElement(n.Button,{className:"jetpack-components-ai-control__controls-prompt_button",onClick:I,variant:"secondary",label:__("Stop request","jetpack")},p?__("Stop","jetpack"):h().createElement(i.A,{icon:l.A})):h().createElement(h().Fragment,null,N&&h().createElement(n.Button,{className:"jetpack-components-ai-control__controls-prompt_button",onClick:U,variant:"secondary",label:__("Cancel","jetpack")},p?__("Cancel","jetpack"):h().createElement(i.A,{icon:l.A})),Q&&!N&&!t?.length&&w&&h().createElement(n.Button,{className:"jetpack-components-ai-control__controls-prompt_button",onClick:O,variant:"secondary",label:__("Cancel","jetpack")},p?__("Cancel","jetpack"):h().createElement(i.A,{icon:l.A})),t?.length>0&&h().createElement(n.Button,{className:"jetpack-components-ai-control__controls-prompt_button",onClick:M,variant:"primary",disabled:!t?.length||e,label:__("Send request","jetpack")},p?__("Generate","jetpack"):h().createElement(i.A,{icon:c.A})))),s&&!N&&h().createElement("div",{className:"jetpack-components-ai-control__controls-prompt_button_wrapper"},(t?.length>0||null===R)&&h().createElement(n.ButtonGroup,null,h().createElement(n.Button,{className:"jetpack-components-ai-control__controls-prompt_button",label:__("Discard","jetpack"),onClick:O,tooltipPosition:"top"},h().createElement(i.A,{icon:u.A})),h().createElement(n.Button,{className:"jetpack-components-ai-control__controls-prompt_button",label:__("Regenerate","jetpack"),onClick:()=>v?.(t),tooltipPosition:"top",disabled:!t?.length||null===t||e},h().createElement(i.A,{icon:A.A}))),h().createElement(n.Button,{className:"jetpack-components-ai-control__controls-prompt_button",onClick:_,variant:"primary",label:d},p?d:h().createElement(i.A,{icon:g.A})))),z=b&&!L&&!N&&(k||h().createElement(E.Yj,null));return h().createElement(f.A,{disabled:e||L,value:t,placeholder:r,isTransparent:m,state:B,onChange:F,banner:S,error:x,actions:H,message:z,promptUserInputRef:D})}const b=(0,m.forwardRef)(B)},61:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var n=r(56427),a=r(29491),o=r(86087),s=r(27723),i=r(51113),l=r(31249),c=r(62510),u=r(95789),A=r(51609),g=r.n(A),d=r(63098),p=r(70629);const __=s.__;function m({className:e,disabled:t=!1,value:r="",placeholder:s="",showButtonLabels:A=!0,isTransparent:m=!1,state:h="init",showGuideLine:E=!1,error:f,requestsRemaining:C,showUpgradeMessage:B=!1,showFairUsageMessage:b=!1,upgradeUrl:k,wrapperRef:y,onChange:v,onSend:I,onStop:_,onClose:w,onUndo:Q,onUpgrade:S,onTryAgain:x},j){const L="requesting"===h||"suggesting"===h,[N,T]=(0,o.useState)(!1),[R,P]=(0,o.useState)(r||null),D=(0,o.useRef)(null);(0,o.useImperativeHandle)(j,(()=>D.current)),(0,o.useEffect)((()=>{N&&D?.current?.focus()}),[N]);const M=(0,o.useCallback)((()=>{P(r),T(!1),I?.(r)}),[I,r]),F=(0,o.useCallback)((e=>{v?.(e),"init"!==h&&T(R?e!==R:e.length>0)}),[v,R,h]),O=(0,o.useCallback)((()=>{_?.()}),[_]),U=(0,o.useCallback)((()=>{w?.()}),[w]),H=(0,o.useCallback)((()=>{Q?.()}),[Q]),z=(0,o.useCallback)((e=>{S?.(e)}),[S]),q=(0,o.useCallback)((()=>{x?.()}),[x]);(0,a.useKeyboardShortcut)("enter",(e=>{e.preventDefault(),M()}),{target:D});const V=g().createElement(g().Fragment,null,L?g().createElement(n.Button,{className:"jetpack-components-ai-control__controls-prompt_button",onClick:O,variant:"secondary",label:__("Stop request","jetpack")},A?__("Stop","jetpack"):g().createElement(i.A,{icon:l.A})):g().createElement(g().Fragment,null,r?.length>0&&g().createElement("div",{className:"jetpack-components-ai-control__controls-prompt_button_wrapper"},g().createElement(n.Button,{className:"jetpack-components-ai-control__controls-prompt_button",onClick:M,variant:"primary",disabled:!r?.length||t,label:__("Send request","jetpack")},A?__("Generate","jetpack"):g().createElement(i.A,{icon:c.A}))),r?.length<=0&&"done"===h&&g().createElement("div",{className:"jetpack-components-ai-control__controls-prompt_button_wrapper"},g().createElement(n.ButtonGroup,null,g().createElement(n.Button,{className:"jetpack-components-ai-control__controls-prompt_button",label:__("Undo","jetpack"),onClick:H,tooltipPosition:"top"},g().createElement(i.A,{icon:u.A})),g().createElement(n.Button,{className:"jetpack-components-ai-control__controls-prompt_button",label:__("Close","jetpack"),onClick:U,variant:"tertiary"},__("Close","jetpack"))))));let G=null;return f?.message?G=g().createElement(d.Kw,{error:f.message,code:f.code,onTryAgainClick:q,onUpgradeClick:z,upgradeUrl:k}):b?G=g().createElement(d.k9,null):B?G=g().createElement(d.AK,{requestsRemaining:C,onUpgradeClick:z,upgradeUrl:k}):E&&(G=g().createElement(d.Yj,null)),g().createElement(p.A,{className:e,disabled:t||L,value:r,placeholder:s,isTransparent:m,state:h,onChange:F,actions:V,message:G,promptUserInputRef:D,wrapperRef:y})}const h=(0,A.forwardRef)(m)},42299:(e,t,r)=>{"use strict";r.d(t,{FC:()=>a.A,N0:()=>n.A});r(70629);var n=r(71417),a=r(61)},6754:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(56427),a=r(13022);function o({state:e}){return React.createElement("div",{className:(0,a.A)("jetpack-ai-status-indicator__icon-wrapper",{[`is-${e}`]:!0})},React.createElement(n.Spinner,null))}},68203:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(32569);function a({duration:e,className:t}){return React.createElement("span",{className:t},(0,n.f)(e,{addDecimalPart:!1}))}},32569:(e,t,r)=>{"use strict";function n(e,{addDecimalPart:t=!1,showMinutes:r=!0,showHours:n=!1}={}){const a=Math.floor(e/36e5),o=Math.floor(e/6e4)%60,s=Math.floor(e/1e3)%60,i=Math.floor(e/10)%100,l=[a>0||n?a.toString().padStart(2,"0")+":":"",a>0||o>0||r?o.toString().padStart(2,"0")+":":"",s.toString().padStart(2,"0")];return t&&l.push("."+i.toString().padStart(2,"0")),l.join("")}r.d(t,{f:()=>n})},27802:(e,t,r)=>{"use strict";r.d(t,{AK:()=>s.AK,FC:()=>n.FC,N0:()=>n.N0,wS:()=>a.A,z3:()=>o.A});var n=r(42299),a=r(6754),o=r(68203),s=r(63098)},63098:(e,t,r)=>{"use strict";r.d(t,{AK:()=>B,Kw:()=>b,Yj:()=>f,k9:()=>C});var n=r(56427),a=r(86087),o=r(27723),s=r(83883),i=r(51113),l=r(71797),c=r(13022),u=r(42154),A=r(78836);const __=o.__,g="warning",d="error",p="success",m="info",h={[m]:null,[g]:null,[d]:u.A,[p]:s.A};function E({severity:e=m,icon:t=null,showSidebarIcon:r=!1,onSidebarIconClick:a=()=>{},children:o}){return React.createElement("div",{className:(0,c.A)("jetpack-ai-assistant__message",`jetpack-ai-assistant__message-severity-${e}`)},(h[e]||t)&&React.createElement(i.A,{icon:h[e]||t}),React.createElement("div",{className:"jetpack-ai-assistant__message-content"},o),r&&React.createElement(n.Button,{className:"jetpack-ai-assistant__message-sidebar",onClick:a},React.createElement(i.A,{size:20,icon:l.A})))}function f(){return React.createElement(E,null,React.createElement("span",null,__("AI-generated content could be inaccurate or biased.","jetpack")),React.createElement(n.ExternalLink,{href:"https://automattic.com/ai-guidelines"},__("Learn more","jetpack")))}function C(){const e=__("You've reached this month's request limit, per our <link>fair usage policy</link>","jetpack"),t=(0,a.createInterpolateElement)(e,{link:React.createElement(n.ExternalLink,{href:"https://jetpack.com/redirect/?source=ai-assistant-fair-usage-policy"})});return React.createElement(E,{severity:g},t)}function B({requestsRemaining:e,severity:t,onUpgradeClick:r,upgradeUrl:a}){let s=t;return null==s&&(s=e>0?m:g),React.createElement(E,{severity:s},React.createElement("span",null,(0,o.sprintf)( // translators: %1$d: number of requests remaining __("You have %1$d requests remaining.","jetpack"),e)),React.createElement(n.Button,{variant:"link",onClick:r,href:a,target:a?"_blank":null},__("Upgrade now","jetpack")))}function b({error:e,code:t,onTryAgainClick:r,onUpgradeClick:a,upgradeUrl:s}){const i=e||__("Something went wrong","jetpack");return React.createElement(E,{severity:d},React.createElement("span",null,(0,o.sprintf)( // translators: %1$d: A dynamic error message __("Error: %1$s","jetpack"),i)),t===A.Or?React.createElement(n.Button,{variant:"link",onClick:a,href:s,target:s?"_blank":null},__("Upgrade now","jetpack")):React.createElement(n.Button,{variant:"link",onClick:r},__("Try again","jetpack")))}},2166:(e,t,r)=>{"use strict";r.d(t,{R:()=>s});var n=r(51609),a=r.n(n);const o=(0,n.createContext)({}),s=({value:e,children:t})=>a().createElement(o.Provider,{value:e,children:t})},13965:(e,t,r)=>{"use strict";r.d(t,{Rb:()=>n.R});var n=r(2166);r(59886),r(53471)},53471:(e,t,r)=>{"use strict";r(51609),r(78836),r(13965)},59886:(e,t,r)=>{"use strict";var n=r(29491),a=r(86087),o=r(51609),s=r.n(o),i=r(46219),l=r(13965);(0,n.createHigherOrderComponent)((e=>t=>{const{suggestion:r,error:n,requestingState:o,request:c,stopSuggestion:u,eventSource:A}=(0,i.Ay)(),g=(0,a.useMemo)((()=>({suggestion:r,requestingError:n,requestingState:o,eventSource:A,requestSuggestion:c,stopSuggestion:u})),[r,n,o,A,c,u]);return s().createElement(l.Rb,{value:g},s().createElement(e,t))}),"withAiDataProvider")},46219:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>c,fC:()=>i});var n=r(86087),a=r(27723),o=r(87286),s=r(78836);const __=a.__;function i(e){switch(e){case s.Or:return{code:s.Or,message:__("You have reached the limit of requests for this site.","jetpack"),severity:"info"};case s.L9:return{code:s.L9,message:__("Your request was unclear. Mind trying again?","jetpack"),severity:"info"};case s.AZ:return{code:s.AZ,message:__("Jetpack AI services are currently unavailable. Sorry for the inconvenience.","jetpack"),severity:"info"};case s.ud:return{code:s.ud,message:__("This request has been flagged by our moderation system. Please try to rephrase it and try again.","jetpack"),severity:"info"};case s.cT:return{code:s.cT,message:__("The content is too large to be processed all at once. Please try to shorten it or divide it into smaller parts.","jetpack"),severity:"info"};case s.mA:default:return{code:s.mA,message:__("It was not possible to process your request. Mind trying again?","jetpack"),severity:"info"}}}function l(e){return e.replace(/^<\|start_header_id\|>assistant<\|end_header_id\|>[\n]+/,"")}function c({prompt:e,autoRequest:t=!1,askQuestionOptions:r={},initialRequestingState:a="init",onSuggestion:c,onDone:u,onStop:A,onError:g,onAllErrors:d}={}){const[p,m]=(0,n.useState)(a),[h,E]=(0,n.useState)(""),[f,C]=(0,n.useState)(),B=(0,n.useRef)(void 0),b=(0,n.useCallback)((e=>{const t=l(e?.detail);t&&(E(t),c?.(t))}),[c]),k=(0,n.useCallback)((e=>{L();const t=l(e?.detail);u?.(t),m("done")}),[u]),y=(0,n.useCallback)((e=>{d?.(e?.detail)}),[d]),v=(0,n.useCallback)((e=>{B?.current?.close(),m("error"),C(i(e)),g?.(i(e))}),[g]),I=(0,n.useCallback)((()=>v(s.Or)),[]),_=(0,n.useCallback)((()=>v(s.L9)),[]),w=(0,n.useCallback)((()=>v(s.AZ)),[]),Q=(0,n.useCallback)((()=>v(s.ud)),[]),S=(0,n.useCallback)((()=>v(s.mA)),[]),x=(0,n.useCallback)((async(e,t={...r})=>{if(C(void 0),m("requesting"),B.current=await(0,o.A)(e,t),!B?.current)return;const n=B.current;m("suggesting"),n.addEventListener("suggestion",b),n.addEventListener(s.Or,I),n.addEventListener(s.L9,_),n.addEventListener(s.AZ,w),n.addEventListener(s.ud,Q),n.addEventListener(s.mA,S),n.addEventListener(s.zn,y),n.addEventListener("done",k)}),[k,I,_,w,Q,S,b]),j=(0,n.useCallback)((()=>{m("init"),E(""),C(void 0)}),[]),L=(0,n.useCallback)((()=>{if(!B?.current)return;const e=B?.current;e.close(),e.removeEventListener("suggestion",b),e.removeEventListener(s.Or,I),e.removeEventListener(s.L9,_),e.removeEventListener(s.AZ,w),e.removeEventListener(s.ud,Q),e.removeEventListener(s.mA,S),e.removeEventListener("done",k)}),[B,b,I,_,w,Q,S,k]),N=(0,n.useCallback)((()=>{L(),A?.(),m("done")}),[A]);return(0,n.useEffect)((()=>{if(e?.length)return t&&x(e,r),()=>{N()}}),[t,e,x,N]),{suggestion:h,error:f,requestingState:p,request:x,stopSuggestion:N,reset:j,handleErrorQuotaExceededError:I,eventSource:B.current}}},7804:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(86087),a=r(27723),o=r(10067),s=r.n(o),i=r(57745);const __=a.__,l=s()("jetpack-ai-client:use-audio-transcription"),c=e=>{if("string"==typeof e)return e;if("code"in e)switch(e.code){case"error_quota_exceeded":return __("You exceeded your current quota, please check your plan details.","jetpack");case"jetpack_ai_missing_audio_param":return __("The audio_file is required to perform a transcription.","jetpack");case"jetpack_ai_service_unavailable":return __("The Jetpack AI service is temporarily unavailable.","jetpack");case"file_size_not_supported":return __("The provided audio file is too big.","jetpack");case"file_type_not_supported":return __("The provided audio file type is not supported.","jetpack");case"jetpack_ai_error":return __("There was an error processing the transcription request.","jetpack");default:return e.message}return"message"in e?e.message:__("There was an error processing the transcription request.","jetpack")};function u({feature:e,onReady:t,onError:r}){const[a,o]=(0,n.useState)(""),[s,u]=(0,n.useState)(""),[A,g]=(0,n.useState)(!1),d=(0,n.useRef)(null);return{transcriptionResult:a,isTranscribingAudio:A,transcriptionError:s,transcribeAudio:(0,n.useCallback)((n=>{l("Transcribing audio"),o(""),u(""),g(!0);const a=new AbortController;d.current=a,(0,i.A)(n,e,a.signal).then((e=>{o(e),t?.(e)})).catch((e=>{a.signal.aborted||(u(e.message),r?.(c(e)))})).finally((()=>g(!1)))}),[i.A,o,u,g]),cancelTranscription:(0,n.useCallback)((()=>{d.current?.abort(),o(""),u(""),g(!1)}),[d,o,u,g])}}},66859:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(86087),a=r(27723);const __=a.__,o=25e6,s=1500,i=["audio/mpeg","audio/mp3","audio/ogg","audio/flac","audio/x-flac","audio/m4a","audio/x-m4a","audio/mp4","audio/wav","audio/wave","audio/x-wav","audio/webm"];function l(){const[e,t]=(0,n.useState)(!1);return{isValidatingAudio:e,validateAudio:(0,n.useCallback)(((e,r,n)=>{if(t(!0),e?.size>o)return t(!1),n(__("The audio file is too large. The maximum file size is 25MB.","jetpack"));const a=e instanceof File;if(a&&!i.includes(e.type))return t(!1),n(__("The audio file type is not supported. Please use a supported audio file type.","jetpack"));const l=new AudioContext;e.arrayBuffer().then((o=>{l.decodeAudioData(o,(function(o){const i=Math.ceil(o.duration);return i>s?(t(!1),n(__("The audio file is too long. The maximum recording time is 25 minutes.","jetpack"))):(t(!1),r({duration:i,isFile:a,size:e?.size}))}))}))}),[t])}}},66223:(e,t,r)=>{"use strict";r.d(t,{Hu:()=>a,Wp:()=>n});const n="auto",a="none"},62614:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>u});var n=r(10067),a=r.n(n),o=r(31439),s=r(51391);const i=a()("ai-client:use-image-generator"),l=(e,t)=>{const r=4e3-t;return e.length>r?e.substring(0,r-6)+" [...]":e},c=async(e,t,r)=>{const n=((e,t)=>{if(t){const r=`I need a Stable Diffusion prompt to generate a featured image for a blog post based on this user-provided image description:\n\n${t.length>1e3?t.substring(0,1e3):t}\n\nThe image should be a photo. Make sure you highlight the main suject of the image description, and include brief details about the light and style of the image.\nInclude a request to use high resolution and produce a highly detailed image, with sharp focus.\nReturn just the prompt, without comments.\n\nFor additional context, this is the post content:\n\n`;return r+l(e,r.length)}return"I need a Stable Diffusion prompt to generate a featured image for a blog post with the following content.\nThe image should be a photo. Make sure you highlight the main suject of the content, and include brief details about the light and style of the image.\nInclude a request to use high resolution and produce a highly detailed image, with sharp focus.\nReturn just the prompt, without comments. The content is:\n\n"+l(e,412)})(e,t);return await(0,o.A)(n,{feature:r})},u=()=>{const e=async function(e){let t="";try{t=(await(0,s.A)()).token}catch(e){return i("Error getting token: %o",e),Promise.reject(e)}try{const r="https://public-api.wordpress.com/wpcom/v2/jetpack-ai-image",n={Authorization:`Bearer ${t}`,"Content-Type":"application/json"},a=await fetch(r,{method:"POST",headers:n,body:JSON.stringify(e)}).then((e=>e.json()));return a?.data?.status&&a?.data?.status>200?(i("Error generating image: %o",a),Promise.reject(a)):a}catch(e){return i("Error generating image: %o",e),Promise.reject(e)}};return{generateImage:async function({feature:t,postContent:r,responseFormat:n="url",userPrompt:a}){try{i("Generating image");const o=((e,t)=>{if(t){const r=`I need a cover image for a blog post based on this user prompt:\n\n${t.length>1e3?t.substring(0,1e3):t}\n\nBefore creating the image, identify the main topic of the user prompt and relate it to the post content.\nDo not represent the whole content in one image, keep it simple and just represent one single idea.\nDo not add details, detailed explanations or highlights from the content, just represent the main idea as if it was a photograph.\nDo not use collages or compositions with multiple elements or scenes. Stick to one single scene. Do not compose unrealistic scenes.\nIf the content describes facts, objects or concepts from the real world, represent them on a realistic style and do not make unreal compositions.\nIf the content is more abstract, use a more abstract style to represent the main idea.\nMake sure the light and the style are visually appealing.\nDo not add text to the image.\n\nFor additional context, this is the post content:\n\n`;return r+l(e,r.length)}const r="I need a cover image for a blog post.\nBefore creating the image, identify the main topic of the content and only represent it.\nDo not represent the whole content in one image, keep it simple and just represent one single idea.\nDo not add details, detailed explanations or highlights from the content, just represent the main idea as if it was a photograph.\nDo not use collages or compositions with multiple elements or scenes. Stick to one single scene. Do not compose unrealistic scenes.\nIf the content describes facts, objects or concepts from the real world, represent them on a realistic style and do not make unreal compositions.\nIf the content is more abstract, use a more abstract style to represent the main idea.\nMake sure the light and the style are visually appealing.\nDo not add text to the image.\n\nThis is the post content:\n\n";return r+l(e,838)})(r,a),s={prompt:o,response_format:n,feature:t,size:"1792x1024"};return await e(s)}catch(e){return i("Error generating image: %o",e),Promise.reject(e)}},generateImageWithStableDiffusion:async function({feature:t,postContent:r,userPrompt:n}){try{i("Generating image with Stable Diffusion");const a={prompt:await c(r,n,t),feature:t,model:"stable-diffusion"};return await e(a)}catch(e){return i("Error generating image: %o",e),Promise.reject(e)}},generateImageWithParameters:e}}},96657:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(86087);const a="audio/mp4;codecs=mp4a",o="audio/mp4",s="audio/webm";function i({onDone:e}={}){const t=(0,n.useRef)(null),[r,i]=(0,n.useState)("inactive"),l=(0,n.useRef)(!1),c=(0,n.useRef)(0),[u,A]=(0,n.useState)(0),g=(0,n.useRef)(null),[d,p]=(0,n.useState)(null),m=(0,n.useRef)([]).current,[h,E]=(0,n.useState)(null),f=(0,n.useRef)(null);function C(){return MediaRecorder.isTypeSupported(a)?new Blob(m,{type:o}):new Blob(m,{type:s})}const B=(0,n.useCallback)((e=>{if(v(),!e)return t?.current?.start();e<100&&(e=100),c.current=Date.now(),t?.current?.start(e)}),[]),b=(0,n.useCallback)((()=>{l.current=!0,t?.current?.pause(),A((e=>e+Date.now()-c.current))}),[]),k=(0,n.useCallback)((()=>{l.current=!1,t?.current?.resume(),c.current=Date.now()}),[]),y=(0,n.useCallback)((()=>{t?.current?.stop(),"recording"===r&&A((e=>e+Date.now()-c.current))}),[]),v=(0,n.useCallback)((()=>{m.length=0,p(null),E(null),A(0),l.current=!1,c.current=0}),[]),I=(0,n.useCallback)((()=>{t?.current&&(t.current.removeEventListener("start",Q),t.current.removeEventListener("stop",S),t.current.removeEventListener("pause",x),t.current.removeEventListener("resume",j),t.current.removeEventListener("dataavailable",L),t.current=null)}),[]),_=(0,n.useCallback)((()=>{if(i("inactive"),v(),I(),!navigator.mediaDevices?.getUserMedia)return;const e=new AudioContext;f.current=e.createAnalyser();navigator.mediaDevices.getUserMedia({audio:!0}).then((r=>{g.current=r;e.createMediaStreamSource(r).connect(f.current),MediaRecorder.isTypeSupported(a)?t.current=new MediaRecorder(r,{mimeType:a}):t.current=new MediaRecorder(r,{mimeType:s}),t.current.addEventListener("start",Q),t.current.addEventListener("stop",S),t.current.addEventListener("pause",x),t.current.addEventListener("resume",j),t.current.addEventListener("dataavailable",L)})).catch((e=>{throw e}))}),[]),w=(0,n.useCallback)((e=>{y(),E("string"==typeof e?e:e.message),i("error")}),[]);function Q(){i("recording")}function S(){const t=C();e?.(t),m.length=0}function x(){i("paused")}function j(){i("recording")}function L(e){const{data:t}=e;t?.size&&(m.push(t),p(C()),l.current||A((e=>{const t=Date.now(),r=t-c.current;return c.current=t,e+r})))}return(0,n.useEffect)((()=>(_(),()=>{g.current&&g.current.getTracks().forEach((e=>e.stop())),I()})),[]),{state:r,blob:d,error:h,duration:u,analyser:f.current,onError:w,controls:{start:B,pause:b,resume:k,stop:y,reset:_}}}},93869:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(63162),a=r(47143),o=r(86087),s=r(10067);const i=r.n(s)()("ai-client:save-to-media-library");function l(){const[e,t]=(0,o.useState)(!1),{getSettings:r}=(0,a.useSelect)((e=>e("core/block-editor")),[]);return{isLoading:e,saveToMediaLibrary:(e,a)=>{const o=r();return new Promise(((r,s)=>{t(!0),i("Fetching image from URL"),fetch(e).then((e=>{i("Transforming response to blob"),e.blob().then((e=>{i("Uploading blob to media library");const l=Array();a?l.push(new File([e],a)):l.push(e),o.mediaUpload({allowedTypes:["image"],filesList:l,onFileChange([e]){(0,n.isBlobURL)(e?.url)||(e&&(i("Image uploaded to media library",e),r(e)),t(!1))},onError(e){i("Error uploading image to media library:",e),s(e),t(!1)}})})).catch((e=>{i("Error transforming response to blob:",e?.message),s(e?.message),t(!1)}))})).catch((e=>{i("Error fetching image from URL:",e?.message),s(e?.message),t(!1)}))}))}}}},97784:(e,t,r)=>{"use strict";r.d(t,{A:()=>c,u:()=>l});var n=r(86087),a=r(10067),o=r.n(a),s=r(46219);const i=o()("jetpack-ai-client:use-transcription-post-processing"),l="voice-to-content-simple-draft";function c({feature:e,onReady:t,onError:r,onUpdate:a}){const[o,l]=(0,n.useState)(""),[c,u]=(0,n.useState)(""),[A,g]=(0,n.useState)(!1),d=(0,n.useCallback)((e=>{l(e),a?.(e)}),[l,a]),p=(0,n.useCallback)((e=>{l(e),a?.(e),t?.(e)}),[l,a,t]),m=(0,n.useCallback)((e=>{u(e.message),r?.(e.message)}),[u,r]),{request:h,stopSuggestion:E}=(0,s.Ay)({onSuggestion:d,onDone:p,onError:m});return{postProcessingResult:o,isProcessingTranscription:A,postProcessingError:c,processTranscription:(0,n.useCallback)(((t,r)=>{i("Post-processing transcription"),l(""),u(""),g(!0);h([{role:"jetpack-ai",context:{type:t,content:r}}],{feature:e})}),[l,u,g,h,e]),cancelTranscriptionProcessing:(0,n.useCallback)((()=>{E(),g(!1)}),[E,g])}}},30151:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(56427),a=r(51609),o=r.n(a);const s=o().createElement(n.SVG,{viewBox:"0 0 32 32",width:"32",height:"32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"ai-assistant-icon"},o().createElement(n.Path,{className:"spark-first",d:"M9.33301 5.33325L10.4644 8.20188L13.333 9.33325L10.4644 10.4646L9.33301 13.3333L8.20164 10.4646L5.33301 9.33325L8.20164 8.20188L9.33301 5.33325Z"}),o().createElement(n.Path,{className:"spark-second",d:"M21.3333 5.33333L22.8418 9.15817L26.6667 10.6667L22.8418 12.1752L21.3333 16L19.8248 12.1752L16 10.6667L19.8248 9.15817L21.3333 5.33333Z"}),o().createElement(n.Path,{className:"spark-third",d:"M14.6667 13.3333L16.5523 18.1144L21.3333 20L16.5523 21.8856L14.6667 26.6667L12.781 21.8856L8 20L12.781 18.1144L14.6667 13.3333Z"}))},42154:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(56427);const a=React.createElement(n.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement(n.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M10 3.95833C6.66328 3.95833 3.95833 6.66327 3.95833 9.99999C3.95833 13.3367 6.66328 16.0417 10 16.0417C13.3367 16.0417 16.0417 13.3367 16.0417 9.99999C16.0417 6.66327 13.3367 3.95833 10 3.95833ZM2.70833 9.99999C2.70833 5.97292 5.97292 2.70833 10 2.70833C14.0271 2.70833 17.2917 5.97292 17.2917 9.99999C17.2917 14.0271 14.0271 17.2917 10 17.2917C5.97292 17.2917 2.70833 14.0271 2.70833 9.99999Z"}),React.createElement(n.Path,{d:"M10.8333 5.83333H9.16667V10.8333H10.8333V5.83333Z"}),React.createElement(n.Path,{d:"M10.8333 12.5H9.16667V14.1667H10.8333V12.5Z"}))},91396:(e,t,r)=>{"use strict";r.d(t,{Qr:()=>s.A,Vo:()=>a.A,cj:()=>n.A,ni:()=>o.A});var n=r(30151),a=r(81353),o=(r(95007),r(96626),r(4416),r(25680)),s=r(67205)},81353:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(56427),a=r(51609),o=r.n(a);const s=o().createElement(n.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/SVG"},o().createElement(n.Path,{d:"M12 4.75C11.0479 4.75 10.1052 4.93753 9.22554 5.30187C8.34593 5.66622 7.5467 6.20025 6.87348 6.87348C6.20025 7.5467 5.66622 8.34593 5.30187 9.22554C4.93753 10.1052 4.75 11.0479 4.75 12C4.75 12.9521 4.93753 13.8948 5.30187 14.7745C5.66622 15.6541 6.20025 16.4533 6.87348 17.1265C7.5467 17.7997 8.34593 18.3338 9.22554 18.6981C10.1052 19.0625 11.0479 19.25 12 19.25C13.9228 19.25 15.7669 18.4862 17.1265 17.1265C18.4862 15.7669 19.25 13.9228 19.25 12C19.25 10.0772 18.4862 8.23312 17.1265 6.87348C15.7669 5.51384 13.9228 4.75 12 4.75ZM3.25 12C3.25 9.67936 4.17187 7.45376 5.81282 5.81282C7.45376 4.17187 9.67936 3.25 12 3.25C14.3206 3.25 16.5462 4.17187 18.1872 5.81282C19.8281 7.45376 20.75 9.67936 20.75 12C20.75 14.3206 19.8281 16.5462 18.1872 18.1872C16.5462 19.8281 14.3206 20.75 12 20.75C9.67936 20.75 7.45376 19.8281 5.81282 18.1872C4.17187 16.5462 3.25 14.3206 3.25 12Z",fill:"#008710"}),o().createElement(n.Rect,{x:"10.5",y:"8.25",width:"3",height:"4.875",rx:"1.5",fill:"#008710"}),o().createElement(n.Path,{d:"M15 11.25C15 11.644 14.9224 12.0341 14.7716 12.3981C14.6209 12.762 14.3999 13.0927 14.1213 13.3713C13.8427 13.6499 13.512 13.8709 13.1481 14.0216C12.7841 14.1724 12.394 14.25 12 14.25C11.606 14.25 11.2159 14.1724 10.8519 14.0216C10.488 13.8709 10.1573 13.6499 9.87868 13.3713C9.6001 13.0927 9.37913 12.762 9.22836 12.3981C9.0776 12.0341 9 11.644 9 11.25",stroke:"#008710",strokeWidth:"1.125",strokeLinecap:"round"}),o().createElement(n.Path,{d:"M11.4375 15.75C11.4375 16.0607 11.6893 16.3125 12 16.3125C12.3107 16.3125 12.5625 16.0607 12.5625 15.75L11.4375 15.75ZM11.4375 14.25L11.4375 15.75L12.5625 15.75L12.5625 14.25L11.4375 14.25Z",fill:"#008710"}))},95007:(e,t,r)=>{"use strict";var n=r(56427),a=r(51609),o=r.n(a);n.SVG,n.Path,n.Path},25680:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(56427),a=r(51609),o=r.n(a);const s=o().createElement(n.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/SVG"},o().createElement(n.Path,{d:"M12 4.75C11.0479 4.75 10.1052 4.93753 9.22554 5.30187C8.34593 5.66622 7.5467 6.20025 6.87348 6.87348C6.20025 7.5467 5.66622 8.34593 5.30187 9.22554C4.93753 10.1052 4.75 11.0479 4.75 12C4.75 12.9521 4.93753 13.8948 5.30187 14.7745C5.66622 15.6541 6.20025 16.4533 6.87348 17.1265C7.5467 17.7997 8.34593 18.3338 9.22554 18.6981C10.1052 19.0625 11.0479 19.25 12 19.25C13.9228 19.25 15.7669 18.4862 17.1265 17.1265C18.4862 15.7669 19.25 13.9228 19.25 12C19.25 10.0772 18.4862 8.23312 17.1265 6.87348C15.7669 5.51384 13.9228 4.75 12 4.75ZM3.25 12C3.25 9.67936 4.17187 7.45376 5.81282 5.81282C7.45376 4.17187 9.67936 3.25 12 3.25C14.3206 3.25 16.5462 4.17187 18.1872 5.81282C19.8281 7.45376 20.75 9.67936 20.75 12C20.75 14.3206 19.8281 16.5462 18.1872 18.1872C16.5462 19.8281 14.3206 20.75 12 20.75C9.67936 20.75 7.45376 19.8281 5.81282 18.1872C4.17187 16.5462 3.25 14.3206 3.25 12Z",fill:"#008710"}),o().createElement(n.Rect,{x:"12.75",y:"9",width:"2.25",height:"6",fill:"#008710"}),o().createElement(n.Rect,{x:"9",y:"9",width:"2.25",height:"6",fill:"#008710"}))},96626:(e,t,r)=>{"use strict";var n=r(56427),a=r(51609),o=r.n(a);n.SVG,n.Path,n.Path},4416:(e,t,r)=>{"use strict";var n=r(56427),a=r(51609),o=r.n(a);n.SVG,n.Path,n.Rect},67205:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(56427),a=r(51609),o=r.n(a);const s=o().createElement(n.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o().createElement(n.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12.5 10C12.5 11.3807 11.3807 12.5 10 12.5C8.61929 12.5 7.5 11.3807 7.5 10C7.5 8.61929 8.61929 7.5 10 7.5C11.3807 7.5 12.5 8.61929 12.5 10ZM14 10C14 12.2091 12.2091 14 10 14C7.79086 14 6 12.2091 6 10C6 7.79086 7.79086 6 10 6C12.2091 6 14 7.79086 14 10ZM16.75 21V19C16.75 17.4812 15.5188 16.25 14 16.25L6 16.25C4.48122 16.25 3.25 17.4812 3.25 19V21H4.75L4.75 19C4.75 18.3096 5.30964 17.75 6 17.75L14 17.75C14.6904 17.75 15.25 18.3096 15.25 19V21H16.75Z",fill:"currentColor"}),o().createElement(n.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.976 16.3599C21.2507 14.5642 22.0001 12.3695 22.0001 9.99969C22.0001 7.63128 21.2515 5.43769 19.9782 3.64258L18.754 4.50967C19.8537 6.05996 20.5001 7.95434 20.5001 9.99969C20.5001 12.0464 19.8528 13.9419 18.7519 15.4928L19.976 16.3599ZM17.3357 14.4897C18.2357 13.222 18.7648 11.6727 18.7648 9.99969C18.7648 8.32808 18.2365 6.77984 17.3379 5.51279L16.1137 6.37988C16.8387 7.4021 17.2648 8.65114 17.2648 9.99969C17.2648 11.3496 16.8378 12.5998 16.1116 13.6226L17.3357 14.4897Z",fill:"currentColor"}))},96865:(e,t,r)=>{"use strict";r.d(t,{AK:()=>g.AK,AZ:()=>d.AZ,E0:()=>s.A,FC:()=>g.FC,Hu:()=>u.Hu,KJ:()=>m.K,Kf:()=>c.Ay,L9:()=>d.L9,N0:()=>g.N0,OO:()=>p.OO,Or:()=>d.Or,Qr:()=>A.Qr,R0:()=>n.A,Tg:()=>m.T,Vo:()=>A.Vo,Wp:()=>u.Wp,_E:()=>p.Hh,be:()=>o.A,cT:()=>d.cT,cj:()=>A.cj,mA:()=>d.mA,ni:()=>A.ni,o2:()=>a.Ay,rh:()=>p.rh,rr:()=>l.A,uH:()=>d.uH,ud:()=>d.ud,wS:()=>g.wS,xA:()=>i.A,z3:()=>g.z3});r(51391),r(53664),r(87286);var n=r(31439),a=(r(57745),r(46219)),o=r(96657),s=r(7804),i=r(97784),l=r(66859),c=r(62614),u=r(66223),A=r(91396),g=r(27802),d=(r(13965),r(78836)),p=r(72586),m=r(23101)},51391:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(85985),a=r(10067),o=r.n(a),s=r(48931);const i=o()("jetpack-ai-client:jwt"),l="jetpack-ai-jwt",c=12e4;async function u({apiNonce:e,siteId:t,expirationTime:r}={}){e=e||window.JP_CONNECTION_INITIAL_STATE.apiNonce,t=t||window.JP_CONNECTION_INITIAL_STATE.siteSuffix,r=r||c;const a=localStorage.getItem(l);let o,u=null;if(a)try{u=JSON.parse(a)}catch(e){i("Error parsing token",e)}if(u&&u?.expire>Date.now())return i("Using cached token"),u;const A=(0,n.Sy)();o=A?await(0,s.A)({path:"/wpcom/v2/sites/"+t+"/jetpack-openai-query/jwt",method:"POST"}):await(0,s.A)({path:"/jetpack/v4/jetpack-ai-jwt?_cacheBuster="+Date.now(),credentials:"same-origin",headers:{"X-WP-Nonce":e},method:"POST"});const g={token:o.token,blogId:A?t:o.blog_id,expire:Date.now()+r};return i("Storing new token"),localStorage.setItem(l,JSON.stringify(g)),g}},72586:(e,t,r)=>{"use strict";r.d(t,{Hh:()=>n.Hh,OO:()=>n.OO,rh:()=>n.rh});var n=r(55166)},68641:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(21147);const a={paragraph:e=>e.replaceAll("\n","<br />")},o={emDelimiter:"_",headingStyle:"atx"},s={strikethrough:{filter:["del","s"],replacement:function(e){return"~~"+e+"~~"}}};class i{constructor({options:e={},rules:t={},keep:r=[],remove:a=[],fixes:i=[]}={}){this.fixes=i,this.turndownService=new n.A({...o,...e}),this.turndownService.keep(r),this.turndownService.remove(a);const l={...s,...t};for(const e in l)this.turndownService.addRule(e,l[e])}render({content:e}){const t=this.turndownService.turndown(e);return this.fixes.reduce(((e,t)=>a[t](e)),t)}}},55166:(e,t,r)=>{"use strict";r.d(t,{Hh:()=>s,OO:()=>n.A,rh:()=>i});var n=r(68641);const a=new(r(31737).A),o=new n.A,s=({content:e,rules:t,extension:r})=>a.render({content:e,rules:t,extension:r}),i=({content:e})=>o.render({content:e})},31737:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(97158);const a=e=>e.replaceAll("\x3c!-- wp:list-item --\x3e","").replaceAll("\x3c!-- /wp:list-item --\x3e","").replaceAll("\x3c!-- wp:list --\x3e","").replaceAll("\x3c!-- /wp:list --\x3e","").replaceAll("<li>","\x3c!-- wp:list-item --\x3e<li>").replaceAll("</li>","</li>\x3c!-- /wp:list-item --\x3e").replaceAll("<ol>",'\x3c!-- wp:list {"ordered":true} --\x3e<ol>').replaceAll("</ol>","</ol>\x3c!-- /wp:list --\x3e").replaceAll("<ul>","\x3c!-- wp:list --\x3e<ul>").replaceAll("</ul>","</ul>\x3c!-- /wp:list --\x3e"),o={list:(e,t=!1)=>{const r=e.replace(/<li>\s+<p>/g,"<li>").replace(/<\/p>\s+<\/li>/g,"</li>");return t?a(r):r},listItem:(e,t=!1)=>t?a(e.replace(/^<[ou]l>\s*/g,"").replace(/\s*<\/[ou]l>\s*$/g,"")):e,paragraph:(e,t=!1)=>t?e.replaceAll(/\s*<br \/>\s*/g,"<br />"):e,table:(e,t=!1,{hasFixedLayout:r=!1})=>t?e.startsWith("\x3c!-- wp:table")?e:`\x3c!-- wp:table { "hasFixedLayout":${r?"true":"false"} } --\x3e${e}\x3c!-- /wp:table --\x3e`:e},s={breaks:!0},i=["list"];class l{constructor(e=s){this.markdownConverter=new n.A(e)}render({content:e,rules:t=i,extension:r=!1}){const n=this.markdownConverter.render(e);return t.reduce(((e,t)=>o[t](e,r)),n)}}},21902:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=()=>React.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"jetpack-ai-logo-generator-icon"},React.createElement("path",{d:"M6.99976 3.99994L7.84828 6.15141L9.99976 6.99994L7.84828 7.84847L6.99976 9.99994L6.15123 7.84847L3.99976 6.99994L6.15123 6.15141L6.99976 3.99994Z"}),React.createElement("path",{d:"M16 4L17.1314 6.86863L20 8L17.1314 9.13137L16 12L14.8686 9.13137L12 8L14.8686 6.86863L16 4Z"}),React.createElement("path",{d:"M11 10L12.4142 13.5858L16 15L12.4142 16.4142L11 20L9.58579 16.4142L6 15L9.58579 13.5858L11 10Z"}))},11574:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=()=>React.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"jetpack-ai-logo-generator-icon"},React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.9291 7.96836L10.7308 17.6492L6.2145 14.2911L7.10952 13.0873L10.4221 15.5504L16.7253 7.07333L17.9291 7.96836Z"}))},47621:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=()=>React.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"jetpack-ai-logo-generator-icon"},React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.2927 13.7485C18.5014 17.0423 15.5366 19.4901 12 19.4901C8.92508 19.4901 6.28236 17.6396 5.12469 14.9915L8.79556 12.8139L12.2508 14.0309C12.482 14.1123 12.7383 14.0756 12.9374 13.9327L15.8243 11.8601L15.9039 11.8992C16.1998 12.0451 16.6072 12.249 17.0533 12.4807C17.8331 12.8857 18.6946 13.3572 19.2927 13.7485ZM19.499 12.1129C18.9341 11.7788 18.3001 11.4379 17.7447 11.1495C17.287 10.9118 16.8698 10.7031 16.5672 10.5539C16.4158 10.4792 16.2928 10.4193 16.2074 10.378L16.1085 10.3303L16.0824 10.3177L16.0729 10.3132C15.8261 10.1954 15.5347 10.2214 15.3126 10.3809L12.3802 12.4861L8.9634 11.2827C8.75395 11.2089 8.52258 11.2318 8.3316 11.3451L4.65716 13.5248C4.55414 13.0294 4.5 12.5161 4.5 11.9901C4.5 7.84798 7.85786 4.49011 12 4.49011C16.1421 4.49011 19.5 7.84798 19.5 11.9901C19.5 12.0311 19.4997 12.072 19.499 12.1129ZM21 11.9901C21 16.9607 16.9706 20.9901 12 20.9901C7.02944 20.9901 3 16.9607 3 11.9901C3 7.01955 7.02944 2.99011 12 2.99011C16.9706 2.99011 21 7.01955 21 11.9901Z"}))},97034:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=()=>React.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"jetpack-ai-logo-generator-icon"},React.createElement("path",{d:"M7 6.49011L11 8.99011L7 11.4901V6.49011Z"}),React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 2.99011C3.89543 2.99011 3 3.88554 3 4.99011V18.9901C3 20.0947 3.89543 20.9901 5 20.9901H19C20.1046 20.9901 21 20.0947 21 18.9901V4.99011C21 3.88554 20.1046 2.99011 19 2.99011H5ZM19 4.49011H5C4.72386 4.49011 4.5 4.71397 4.5 4.99011V15.6973L8.12953 13.0508C8.38061 12.8677 8.71858 12.8584 8.97934 13.0274L11.906 14.9243L15.4772 11.4524C15.7683 11.1694 16.2317 11.1694 16.5228 11.4524L19.5 14.3469V4.99011C19.5 4.71397 19.2761 4.49011 19 4.49011ZM4.5 18.9901V17.5537L8.59643 14.5667L11.5921 16.5084C11.8857 16.6987 12.2719 16.6607 12.5228 16.4167L16 13.0361L19.4772 16.4167L19.5 16.3933V18.9901C19.5 19.2663 19.2761 19.4901 19 19.4901H5C4.72386 19.4901 4.5 19.2663 4.5 18.9901Z"}))},6019:(e,t,r)=>{"use strict";r.d(t,{Q:()=>o});var n=r(56427),a=r(78867);const o=({variant:e="error"})=>{const t=(0,a.A)();return"muted"===e?React.createElement("span",{className:"jetpack-ai-fair-usage-notice-muted-variant"},t):"error"===e?React.createElement(n.Notice,{status:"error",isDismissible:!1,className:"jetpack-ai-fair-usage-notice"},t):null}},95933:(e,t,r)=>{"use strict";r.d(t,{x:()=>o});var n=r(56427),a=r(27723);const __=a.__,o=({onCancel:e,onRetry:t})=>{const r=__("We are sorry. There was an error loading your Jetpack AI plan data. Please, try again.","jetpack"),a=__("We are sorry. There was an error loading your Jetpack AI plan data. Please, reload the page and try again.","jetpack");return React.createElement("div",{className:"jetpack-ai-logo-generator-modal__notice-message-wrapper"},React.createElement("div",{className:"jetpack-ai-logo-generator-modal__notice-message"},React.createElement("span",{className:"jetpack-ai-logo-generator-modal__loading-message"},t?r:a)),React.createElement("div",{className:"jetpack-ai-logo-generator-modal__notice-actions"},React.createElement(n.Button,{variant:"tertiary",onClick:e},__("Cancel","jetpack")),t&&React.createElement(n.Button,{variant:"primary",onClick:t},__("Try again","jetpack"))))}},76194:(e,t,r)=>{"use strict";r.d(t,{N:()=>i});var n=r(27723),a=r(51609),o=r.n(a),s=r(42669);const __=n.__,i=({state:e="loadingFeature"})=>{const t=__("Loading…","jetpack"),r=__("Analyzing your site to create the perfect logo…","jetpack"),n=__("Generating logo…","jetpack");return o().createElement("div",{className:"jetpack-ai-logo-generator-modal__loading-wrapper"},o().createElement(s.$,null),o().createElement("span",{className:"jetpack-ai-logo-generator-modal__loading-message"},"loadingFeature"===e&&t,"analyzing"===e&&r,"generating"===e&&n))}},64537:(e,t,r)=>{"use strict";r.d(t,{T:()=>w});var n=r(85985),a=r(56427),o=r(47143),s=r(27723),i=r(51113),l=r(53512),c=r(13022),u=r(10067),A=r.n(u),g=r(51609),d=r(61356),p=r(60674),m=r(88725),h=r(44461),E=r(19362),f=r(74423),C=r(95933),B=r(76194),b=r(32623),k=r(34706),y=r(11114),v=r(35421),I=r(48204);const __=s.__,_=A()("jetpack-ai-calypso:generator-modal"),w=({isOpen:e,onClose:t,onApplyLogo:r,onReload:s=null,siteDetails:u,context:A,placement:w})=>{const{tracks:Q}=(0,n.st)(),{recordEvent:S}=Q,{setSiteDetails:x,fetchAiAssistantFeature:j,loadLogoHistory:L,setIsLoadingHistory:N}=(0,o.useDispatch)(f.E),{getIsRequestingAiAssistantFeature:T}=(0,o.select)(f.E),[R,P]=(0,g.useState)(null),[D,M]=(0,g.useState)(),F=(0,g.useRef)(!0),O=(0,g.useRef)(!1),[U,H]=(0,g.useState)(!1),[z,q]=(0,g.useState)(!1),{selectedLogo:V,getAiAssistantFeature:G,generateFirstPrompt:$,generateLogo:Z,setContext:W,tierPlansEnabled:Y,site:K,requireUpgrade:J}=(0,m.A)(),{featureFetchError:X,setFeatureFetchError:ee,firstLogoPromptFetchError:te,clearErrors:re}=(0,h.A)(),ne=u?.ID,[ae,oe]=(0,g.useState)(!1),{nextTierCheckoutURL:se}=(0,p.Q)(),ie=G(),le=(0,g.useCallback)((async()=>{try{P("analyzing"),S(d.vm,{context:A,tool:"first-prompt"});const e=await $();M(e),P("generating"),await Z({prompt:e}),P(null)}catch(e){_("Error generating first logo",e),P(null)}}),[A,$,Z]),ce=(0,g.useCallback)((async()=>{try{if(!ne)throw new Error("Site ID is missing");if(!ie?.featuresControl?.["logo-generator"]?.enabled)throw ee("Failed to fetch feature data"),new Error("Failed to fetch feature data");const e=!(0,E.NP)(String(ne)),t=ie?.costs?.["jetpack-ai-logo-generator"]?.logo??d._S,r=1,n=ie?.currentTier?.limit||0,a=ie?.currentTier?.value||0,o=ie?.usagePeriod?.requestsCount||0,s=!(Y?1===a:a>0)&&!!ie?.nextTier&&!e&&(Y?n-o<t+r:n<o);if(H(0===a),q(s),0===a||s)return void P(null);if(N(!0),await(0,E.Pv)(String(ne)),L(ne),e)return P(null),void N(!1);if(J)return P(null),void N(!1);K&&K.name&&K.description&&K.name!==__("Site Title","jetpack")?le():(P(null),N(!1))}catch(e){_("Error fetching feature",e),P(null),N(!1)}}),[ie,le,L,E.Pv,E.NP,ne,J,ee]),ue=(0,g.useCallback)((async()=>{W(A),S(d.iz,{context:A,placement:w}),ce()}),[W,A,w,ce]),Ae=()=>{F.current=!0,t(),P(null),H(!1),q(!1),re(),oe(!1),N(!1),S(d.ub,{context:A,placement:w})},ge=(0,g.useCallback)((()=>{s&&(Ae(),O.current=!1,s())}),[s,Ae]),de=e=>{oe(!0),r?.(e)},pe=()=>{S(d.$i,{context:A})};let me;return(0,g.useEffect)((()=>{if(ne&&x(u),!O.current){T()||(O.current=!0,j())}}),[ne,u,x,T]),(0,g.useEffect)((()=>{e&&F.current&&(F.current=!1,ue())}),[e,ue]),me=R?React.createElement(B.N,{state:R}):X||te?React.createElement(C.x,{onCancel:Ae,onRetry:s?ge:null}):U||z?React.createElement(v.R,{onCancel:Ae,upgradeURL:se,reason:U?"feature":"requests"}):React.createElement(React.Fragment,null,!ae&&React.createElement(y.X,{initialPrompt:D}),React.createElement(k.s,{logo:V,onApplyLogo:de,logoAccepted:ae,siteId:String(ne)}),ae?React.createElement("div",{className:"jetpack-ai-logo-generator__accept"},React.createElement(I.H,null),React.createElement("div",{className:"jetpack-ai-logo-generator__accept-actions"},React.createElement(a.Button,{variant:"primary",onClick:Ae},__("Close","jetpack")))):React.createElement(React.Fragment,null,React.createElement(b.N,null),React.createElement("div",{className:"jetpack-ai-logo-generator__footer"},React.createElement(a.Button,{variant:"link",className:"jetpack-ai-logo-generator__feedback-button",href:"https://jetpack.com/redirect/?source=jetpack-ai-feedback",target:"_blank",onClick:pe},React.createElement("span",null,__("Provide feedback","jetpack")),React.createElement(i.A,{icon:l.A,className:"icon"}))))),React.createElement(React.Fragment,null,e&&React.createElement(a.Modal,{className:"jetpack-ai-logo-generator-modal",onRequestClose:Ae,shouldCloseOnClickOutside:!1,shouldCloseOnEsc:!1,title:__("Jetpack AI Logo Generator","jetpack")},React.createElement("div",{className:(0,c.A)("jetpack-ai-logo-generator-modal__body",{"notice-modal":U||z||X||te})},me)))}},32623:(e,t,r)=>{"use strict";r.d(t,{N:()=>c});var n=r(85985),a=r(56427),o=r(13022),s=r(26076),i=r(61356),l=r(88725);const c=()=>{const{tracks:e}=(0,n.st)(),{recordEvent:t}=e,{logos:r,selectedLogo:c,setSelectedLogoIndex:u,context:A,isLoadingHistory:g}=(0,l.A)(),d=e=>{const t=new URL(e);return t.searchParams.has("resize")||t.searchParams.append("resize","48,48"),t.toString()};return React.createElement("div",{className:"jetpack-ai-logo-generator__carousel"},!r.length&&g&&React.createElement(a.Button,{disabled:!0,className:(0,o.A)("jetpack-ai-logo-generator__carousel-logo")},React.createElement("img",{height:"48",width:"48",src:s,alt:"loading"})),!r.length&&!g&&React.createElement("div",null," "),r.map(((e,n)=>React.createElement(a.Button,{key:e.url,className:(0,o.A)("jetpack-ai-logo-generator__carousel-logo",{"is-selected":e.url===c.url}),onClick:()=>(e=>{t(i.Nt,{context:A,logos_count:r.length,selected_logo:e+1}),u(e)})(n)},React.createElement("img",{src:d(e.url),alt:e.description})))))}},42669:(e,t,r)=>{"use strict";r.d(t,{$:()=>o});var n=r(13022),a=r(26076);const o=({className:e=null})=>React.createElement("img",{src:a,alt:"Loading",className:(0,n.A)("jetpack-ai-logo-generator-modal__loader",e)})},34706:(e,t,r)=>{"use strict";r.d(t,{s:()=>_});var n=r(85985),a=r(56427),o=r(47143),s=r(27723),i=r(10067),l=r.n(i),c=r(11574),u=r(47621),A=r(97034),g=r(61356),d=r(88725),p=r(44461),m=r(19362),h=r(74423),E=r(42669);const __=s.__,f=l()("jetpack-ai-calypso:logo-presenter"),C=({siteId:e})=>{const{tracks:t}=(0,n.st)(),{recordEvent:r}=t,{saveLogo:s,selectedLogo:i,isSavingLogoToLibrary:l,logos:u,selectedLogoIndex:p,context:E}=(0,d.A)(),C=!!i?.mediaId,{loadLogoHistory:B}=(0,o.useDispatch)(h.E),b=__("Saving…","jetpack"),k=__("Saved","jetpack");return l||C?React.createElement(a.Button,{className:"jetpack-ai-logo-generator-modal-presenter__action"},React.createElement(a.Icon,{icon:l?React.createElement(A.A,null):React.createElement(c.A,null)}),React.createElement("span",{className:"action-text"},l?b:k)):React.createElement(a.Button,{className:"jetpack-ai-logo-generator-modal-presenter__action",onClick:async()=>{if(!C&&!l){r(g.h4,{context:E,logos_count:u.length,selected_logo:p?p+1:0});try{const t=await s(i);(0,m.H)({siteId:e,url:i.url,newUrl:t.mediaURL,mediaId:t.mediaId}),B(e)}catch(e){f("Error saving logo",e)}}}},React.createElement(a.Icon,{icon:React.createElement(A.A,null)}),React.createElement("span",{className:"action-text"},__("Save in Library","jetpack")))},B=({onApplyLogo:e})=>{const{tracks:t}=(0,n.st)(),{recordEvent:r}=t,{isSavingLogoToLibrary:o,selectedLogo:s,logos:i,selectedLogoIndex:l,context:c}=(0,d.A)();return React.createElement(a.Button,{className:"jetpack-ai-logo-generator-modal-presenter__action",onClick:async()=>{o||(r(g.Zb,{context:c,logos_count:i.length,selected_logo:null!=l?l+1:0}),e?.(s?.mediaId))},disabled:o||!s?.mediaId,variant:"secondary"},React.createElement(a.Icon,{icon:React.createElement(u.A,null)}),React.createElement("span",{className:"action-text"},__("Use on block","jetpack")))},b=()=>React.createElement(React.Fragment,null,React.createElement(E.$,{className:"jetpack-ai-logo-generator-modal-presenter__logo"}),React.createElement("span",{className:"jetpack-ai-logo-generator-modal-presenter__loading-text"},__("Generating new logo…","jetpack"))),k=()=>React.createElement(React.Fragment,null,React.createElement(E.$,{className:"jetpack-ai-logo-generator-modal-presenter__logo"}),React.createElement("span",{className:"jetpack-ai-logo-generator-modal-presenter__loading-text"},__("Fetching previous logos…","jetpack"))),y=()=>React.createElement(React.Fragment,null,React.createElement("div",{style:{width:0,height:"229px"}}),React.createElement("span",{className:"jetpack-ai-logo-generator-modal-presenter__loading-text"},__("Once you generate a logo, it will show up here","jetpack"))),v=({siteId:e,logo:t,onApplyLogo:r})=>React.createElement(React.Fragment,null,React.createElement("img",{src:t.url,alt:t.description,className:"jetpack-ai-logo-generator-modal-presenter__logo"}),React.createElement("div",{className:"jetpack-ai-logo-generator-modal-presenter__action-wrapper"},React.createElement("span",{className:"jetpack-ai-logo-generator-modal-presenter__description"},t.description),React.createElement("div",{className:"jetpack-ai-logo-generator-modal-presenter__actions"},React.createElement(C,{siteId:e}),React.createElement(B,{onApplyLogo:r})))),I=({logo:e})=>React.createElement(React.Fragment,null,React.createElement("img",{src:e.url,alt:e.description,className:"jetpack-ai-logo-generator-modal-presenter__logo"}),React.createElement("div",{className:"jetpack-ai-logo-generator-modal-presenter__success-wrapper"},React.createElement(a.Icon,{icon:React.createElement(c.A,null)}),React.createElement("span",null,__("Your new logo was set to the block!","jetpack")))),_=({logo:e=null,loading:t=!1,onApplyLogo:r,logoAccepted:n=!1,siteId:a})=>{const{isRequestingImage:o}=(0,d.A)(),{saveToLibraryError:s,logoUpdateError:i}=(0,p.A)();let l;return e||o?e?l=t||o?React.createElement(b,null):n?React.createElement(I,{logo:e}):React.createElement(v,{siteId:String(a),logo:e,onApplyLogo:r}):(f("No logo provided, history still loading or logo being generated"),l=React.createElement(k,null)):l=React.createElement(y,null),React.createElement("div",{className:"jetpack-ai-logo-generator-modal-presenter__wrapper"},React.createElement("div",{className:"jetpack-ai-logo-generator-modal-presenter"},React.createElement("div",{className:"jetpack-ai-logo-generator-modal-presenter__content"},l),!n&&React.createElement("div",{className:"jetpack-ai-logo-generator-modal-presenter__rectangle"})),s&&React.createElement("div",{className:"jetpack-ai-logo-generator__prompt-error"},__("Error saving the logo to your library. Please try again.","jetpack")),i&&React.createElement("div",{className:"jetpack-ai-logo-generator__prompt-error"},__("Error applying the logo to your site. Please try again.","jetpack")))}},11114:(e,t,r)=>{"use strict";r.d(t,{K:()=>B,X:()=>b});var n=r(85985),a=r(56427),o=r(27723),s=r(51113),i=r(19783),l=r(10067),c=r.n(l),u=r(51609),A=r(66223),g=r(21902),d=r(61356),p=r(60674),m=r(88725),h=r(44461),E=r(6019),f=r(64024);const __=o.__,C=c()("jetpack-ai-calypso:prompt-box"),B=({prompt:e="",setPrompt:t=()=>{},disabled:r=!1,generateHandler:n=()=>{},placeholder:o="",buttonLabel:s=""})=>{const i=(0,u.useRef)(null),l=e?.length>=d.N3;return React.createElement("div",{className:"jetpack-ai-logo-generator__prompt-query"},React.createElement("div",{role:"textbox",tabIndex:0,ref:i,contentEditable:!r,suppressContentEditableWarning:!0,className:"prompt-query__input",onInput:e=>{t(e.target.textContent||"")},onPaste:e=>{e.preventDefault();const r=e.currentTarget.ownerDocument.getSelection();if(!r||!r.rangeCount)return;const n=e.clipboardData.getData("text/plain");r.deleteFromDocument();r.getRangeAt(0).insertNode(document.createTextNode(n)),r.collapseToEnd(),t(i.current?.textContent||"")},onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),n()),e.stopPropagation()},"data-placeholder":o}),React.createElement(a.Button,{variant:"primary",className:"jetpack-ai-logo-generator__prompt-submit",onClick:n,disabled:r||!l},s||__("Generate","jetpack")))},b=({initialPrompt:e=""})=>{const{tracks:t}=(0,n.st)(),{recordEvent:r}=t,[l,c]=(0,u.useState)(e),[b,k]=(0,u.useState)(0),{enhancePromptFetchError:y,logoFetchError:v}=(0,h.A)(),{nextTierCheckoutURL:I,hasNextTier:_}=(0,p.Q)(),w=l?.length>=d.N3,[Q,S]=(0,u.useState)(!1),[x,j]=(0,u.useState)(null),[L,N]=(0,u.useState)([]),{generateLogo:T,enhancePrompt:R,setIsEnhancingPrompt:P,isBusy:D,isEnhancingPrompt:M,site:F,getAiAssistantFeature:O,requireUpgrade:U,context:H,tierPlansEnabled:z,imageStyles:q,guessStyle:V}=(0,m.A)(),G=__("Enhancing…","jetpack"),$=__("Enhance prompt","jetpack"),Z=M?G:$,W=(0,u.useRef)(null),Y=(0,u.useCallback)((async()=>{C("Enhancing prompt",l),P(!0),r(d.vm,{context:H,tool:"enhance-prompt"});try{const e=await R({prompt:l});c(e),P(!1)}catch(e){C("Error enhancing prompt",e),P(!1)}}),[H,R,l,P]),K=O(String(F?.id||"")),J=K?.currentTier?.value||0,X=K?.usagePeriod?.requestsCount||0,ee=1===J;(0,u.useEffect)((()=>{k(J-X<=0?0:J-X)}),[J,X]),(0,u.useEffect)((()=>{W.current&&W.current.textContent!==l&&(W.current.textContent=l)}),[l]),(0,u.useEffect)((()=>{q&&q.length>0?(N([q.find((({value:e})=>e===A.Hu)),q.find((({value:e})=>e===A.Wp)),...q.filter((({value:e})=>![A.Hu,A.Wp].includes(e)))].filter((e=>e))),S(!0),j(A.Hu)):(N([]),S(!1),j(null))}),[q]);const te=(0,u.useCallback)((async()=>{if(C(H),x===A.Wp){P(!0),r(d.Tk,{context:H,tool:"image"});const e=await V(l)||A.Hu;j(e),r(d.vm,{context:H,tool:"image",style:e}),P(!1),T({prompt:l,style:e})}else r(d.vm,{context:H,tool:"image",style:x}),T({prompt:l,style:x})}),[H,T,l,x]),re=(0,u.useCallback)((e=>{C("change style",e),j(e),r(d.UO,{context:H,style:e})}),[H,j,r]);return React.createElement("div",{className:"jetpack-ai-logo-generator__prompt"},React.createElement("div",{className:"jetpack-ai-logo-generator__prompt-header"},React.createElement("div",{className:"jetpack-ai-logo-generator__prompt-label"},__("Describe your site:","jetpack")),React.createElement("div",{className:"jetpack-ai-logo-generator__prompt-actions"},React.createElement(a.Button,{variant:"link",disabled:D||U||!w,onClick:Y},React.createElement(g.A,null),Z)),Q&&React.createElement(a.SelectControl,{__nextHasNoMarginBottom:!0,value:x,options:L,onChange:re,disabled:D||U})),React.createElement(B,{prompt:l,setPrompt:c,generateHandler:te,disabled:D||U,placeholder:__("Describe your site or simply ask for a logo specifying some details about it","jetpack")}),React.createElement("div",{className:"jetpack-ai-logo-generator__prompt-footer"},!ee&&!U&&React.createElement("div",{className:"jetpack-ai-logo-generator__prompt-requests"},React.createElement("div",null,(0,o.sprintf)( // translators: %u is the number of requests __("%u requests remaining.","jetpack"),b)),_&&React.createElement(React.Fragment,null," ",React.createElement(a.Button,{variant:"link",href:I,target:"_blank",onClick:()=>{r(d.AN,{context:H,placement:d.Cn})}},__("Upgrade","jetpack")))," ",React.createElement(a.Tooltip,{text:__("Logo generation costs 10 requests; prompt enhancement costs 1 request each","jetpack"),placement:"bottom"},React.createElement(s.A,{className:"prompt-footer__icon",icon:i.A}))),U&&z&&React.createElement(f.G,null),U&&!z&&React.createElement(E.Q,null),y&&React.createElement("div",{className:"jetpack-ai-logo-generator__prompt-error"},__("Error enhancing prompt. Please try again.","jetpack")),v&&React.createElement("div",{className:"jetpack-ai-logo-generator__prompt-error"},__("Error generating logo. Please try again.","jetpack"))))}},64024:(e,t,r)=>{"use strict";r.d(t,{G:()=>g});var n=r(85985),a=r(56427),o=r(86087),s=r(27723),i=r(51113),l=r(90311),c=r(61356),u=r(60674),A=r(88725);const __=s.__,g=()=>{const{tracks:e}=(0,n.st)(),{recordEvent:t}=e,r=__("Upgrade","jetpack"),s=(0,o.createInterpolateElement)(__("Not enough requests left to generate a logo. <strong>Upgrade now to increase it.</strong>","jetpack"),{strong:React.createElement("strong",null)}),{nextTierCheckoutURL:g}=(0,u.Q)(),{context:d}=(0,A.A)();return React.createElement("div",{className:"jetpack-upgrade-plan-banner"},React.createElement("div",{className:"jetpack-upgrade-plan-banner__wrapper"},React.createElement("div",null,React.createElement(i.A,{className:"jetpack-upgrade-plan-banner__icon",icon:l.A}),React.createElement("span",{className:"jetpack-upgrade-plan-banner__banner-description"},s)),React.createElement(a.Button,{href:g,target:"_blank",className:"is-primary",onClick:()=>{t(c.AN,{context:d,placement:c.tF})}},r)))}},35421:(e,t,r)=>{"use strict";r.d(t,{R:()=>c});var n=r(85985),a=r(56427),o=r(27723),s=r(3924),i=r(61356),l=r(88725);const __=o.__,c=({onCancel:e,upgradeURL:t,reason:r})=>{const{tracks:o}=(0,n.st)(),{recordEvent:c}=o,u=__("Upgrade your Jetpack AI for access to logo generation. This upgrade will also increase the amount of monthly requests you can use in for all AI-powered features.","jetpack"),A=__("Not enough requests left to generate a logo. Upgrade your Jetpack AI to increase the amount of requests you can use in all AI-powered features.","jetpack"),g=(0,s.A)("ai-logo-generator-fair-usage-policy",{anchor:"usage-limitations-and-upgrades"}),{context:d}=(0,l.A)();return React.createElement("div",{className:"jetpack-ai-logo-generator-modal__notice-message-wrapper"},React.createElement("div",{className:"jetpack-ai-logo-generator-modal__notice-message"},React.createElement("span",{className:"jetpack-ai-logo-generator-modal__loading-message"},"feature"===r?u:A)," ",React.createElement(a.Button,{variant:"link",href:g,target:"_blank"},__("Learn more about Jetpack AI.","jetpack"))),React.createElement("div",{className:"jetpack-ai-logo-generator-modal__notice-actions"},React.createElement(a.Button,{variant:"tertiary",onClick:e},__("Cancel","jetpack")),React.createElement(a.Button,{variant:"primary",href:t,target:"_blank",onClick:()=>{c(i.AN,{context:d,placement:i.Tz}),e()}},__("Upgrade","jetpack"))))}},48204:(e,t,r)=>{"use strict";r.d(t,{H:()=>l});var n=r(56427),a=r(27723),o=r(53512),s=r(13022),i=r(36791);const __=a.__,l=({className:e=null,onVisitBlankTarget:t})=>React.createElement("div",{className:(0,s.A)("jetpack-ai-logo-generator-modal-visit-site-banner",e)},React.createElement("div",{className:"jetpack-ai-logo-generator-modal-visit-site-banner__jetpack-logo"},React.createElement("img",{src:i,alt:"Jetpack"})),React.createElement("div",{className:"jetpack-ai-logo-generator-modal-visit-site-banner__content"},React.createElement("strong",null,__("Do you want to know all the amazing things you can do with Jetpack AI?","jetpack")),React.createElement("span",null,__("Generate and tweak content, create forms, get feedback and much more.","jetpack")),React.createElement("div",null,React.createElement(n.Button,{variant:"link",href:"https://jetpack.com/redirect/?source=logo_generator_learn_more_about_jetpack_ai",target:"_blank",onClick:t||null},__("Learn more about Jetpack AI","jetpack"),React.createElement(n.Icon,{icon:o.A,size:20})))))},61356:(e,t,r)=>{"use strict";r.d(t,{$i:()=>c,AN:()=>u,Cn:()=>d,N3:()=>h,Nt:()=>l,Tk:()=>g,Tz:()=>p,UO:()=>A,Zb:()=>i,_S:()=>E,h4:()=>s,iz:()=>n,tF:()=>m,ub:()=>a,vm:()=>o});const n="jetpack_ai_logo_generator_modal_open",a="jetpack_ai_logo_generator_modal_close",o="jetpack_ai_logo_generator_generate",s="jetpack_ai_logo_generator_save",i="jetpack_ai_logo_generator_use",l="jetpack_ai_logo_generator_navigate",c="jetpack_ai_logo_generator_feedback",u="jetpack_ai_upgrade_button",A="jetpack_ai_logo_generator_switch_style",g="jetpack_ai_logo_generator_guess_style",d="input_footer",p="free_user_screen",m="upgrade_prompt",h=3,E=10},60674:(e,t,r)=>{"use strict";r.d(t,{Q:()=>s});var n=r(85985),a=r(47143),o=r(74423);const s=()=>{const{nextTier:e,tierPlansEnabled:t}=(0,a.useSelect)((e=>{const t=e(o.E);return{nextTier:t.getAiAssistantFeature().nextTier,tierPlansEnabled:t.getAiAssistantFeature().tierPlansEnabled}}),[]),r=!(0,n.d9)()&&!(0,n.Sy)(),s=r?"jetpack-ai-upgrade-url-for-jetpack-sites":"jetpack-ai-yearly-tier-upgrade-nudge",i=(0,n.GE)(),l=`https://wordpress.com/home/${i}`,c=new URL("https://jetpack.com/redirect/");c.searchParams.set("source",s),c.searchParams.set("site",i),c.searchParams.set("path",t?`jetpack_ai_yearly:-q-${e?.limit}`:"jetpack_ai_yearly"),r||c.searchParams.set("query",`redirect_to=${encodeURIComponent(l)}`);return{nextTierCheckoutURL:c.toString(),hasNextTier:!!e}}},78867:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(47143),a=r(86087),o=r(27723),s=r(3924),i=r(74423);const __=o.__,l=()=>{const{usagePeriod:e}=(0,n.useSelect)((e=>({usagePeriod:e(i.E).getAiAssistantFeature().nextTier})),[]),t=(e=>{const t=__("You've reached this month's request limit, per our <link>fair usage policy</link>.","jetpack");if(!e)return t; // Translators: %s is the date when the requests will reset. const r=__("Requests will reset on %s.","jetpack");return`${t} ${(0,o.sprintf)(r,e)}`})((e=>{if(!e?.nextStart)return null;const t=new Date(e.nextStart);return t.toLocaleString("default",{month:"long"})+" "+t.getDate()})(e)),r=(0,s.A)("ai-logo-generator-fair-usage-policy",{anchor:"jetpack-ai-usage-limit"});return(0,a.createInterpolateElement)(t,{link:React.createElement("a",{href:r,target:"_blank",rel:"noreferrer"})})}},88725:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var n=r(47143),a=r(10067),o=r.n(a),s=r(51609),i=r(31439),l=r(62614),c=r(93869),u=r(51391),A=r(19362),g=r(28229),d=r(74423),p=r(44461);const m=o()("jetpack-ai-calypso:use-logo-generator"),h=()=>{const{setSelectedLogoIndex:e,setIsSavingLogoToLibrary:t,setIsApplyingLogo:r,setIsRequestingImage:a,setIsEnhancingPrompt:o,increaseAiAssistantRequestsCount:h,addLogoToHistory:E,setContext:f,setIsLoadingHistory:C}=(0,n.useDispatch)(d.E),{logos:B,selectedLogoIndex:b,selectedLogo:k,siteDetails:y,isSavingLogoToLibrary:v,isApplyingLogo:I,isEnhancingPrompt:_,isBusy:w,isRequestingImage:Q,getAiAssistantFeature:S,requireUpgrade:x,context:j,tierPlansEnabled:L,isLoadingHistory:N}=(0,n.useSelect)((e=>{const t=e(d.E);return{logos:t.getLogos(),selectedLogoIndex:t.getSelectedLogoIndex(),selectedLogo:t.getSelectedLogo(),siteDetails:t.getSiteDetails(),isSavingLogoToLibrary:t.getIsSavingLogoToLibrary(),isApplyingLogo:t.getIsApplyingLogo(),isRequestingImage:t.getIsRequestingImage(),isEnhancingPrompt:t.getIsEnhancingPrompt(),isBusy:t.getIsBusy(),getAiAssistantFeature:t.getAiAssistantFeature,requireUpgrade:t.getRequireUpgrade(),context:t.getContext(),tierPlansEnabled:t.getTierPlansEnabled(),isLoadingHistory:t.getIsLoadingHistory()}}),[]),{setFirstLogoPromptFetchError:T,setEnhancePromptFetchError:R,setLogoFetchError:P,setSaveToLibraryError:D,setLogoUpdateError:M}=(0,p.A)(),{generateImageWithParameters:F}=(0,l.Ay)(),{saveToMediaLibrary:O}=(0,c.A)(),{ID:U=null,name:H=null,description:z=null}=y||{},q=U?String(U):null,V=S(q),G=V?.costs?.["jetpack-ai-logo-generator"]?.logo,$=V?.featuresControl?.["logo-generator"],Z=$?.styles||[],W=(0,s.useCallback)((async function(){T(null),h();try{const e=await(0,u.A)();if(!e||!e.token)throw new Error("No token provided");m("Generating first prompt for site");const t={question:`Generate a simple and short prompt asking for a logo based on the site's name and description, keeping the same language.\nExample for a site named "The minimalist fashion blog", described as "Daily inspiration for all things fashion": A logo for a minimalist fashion site focused on daily sartorial inspiration with a clean and modern aesthetic that is sleek and sophisticated.\nAnother example, now for a site called "El observatorio de aves", described as "Un sitio dedicado a nuestros compañeros y compañeras entusiastas de la observación de aves.": Un logo para un sitio web dedicado a la observación de aves, capturando la esencia de la naturaleza y la pasión por la avifauna en un diseño elegante y representativo, reflejando una estética natural y apasionada por la vida silvestre.\n\nSite name: ${H}\nSite description: ${z}`,feature:"jetpack-ai-logo-generator",stream:!1},r="https://public-api.wordpress.com/wpcom/v2/jetpack-ai-query",n={Authorization:`Bearer ${e.token}`,"Content-Type":"application/json"},a=await fetch(r,{method:"POST",headers:n,body:JSON.stringify(t)}).then((e=>e.json()));return a?.choices?.[0]?.message?.content}catch(e){throw h(-1),T(e),e}}),[T,h,H,z]),Y=(0,s.useCallback)((async function(e){if(P(null),!Z||!Z.length)return null;const t=[{role:"jetpack-ai",context:{type:"ai-assistant-guess-logo-style",request:e,name:H,description:z}}];try{const e=await(0,i.A)(t,{feature:"jetpack-ai-logo-generator"});if(!e)return null;const r=Z.find((({value:t})=>t===e));return r?r.value:null}catch(e){m("Error guessing style",e),Promise.reject(e)}}),[Z,H,z]),K=(0,s.useCallback)((async function({prompt:e,style:t=null}){P(null);try{const r=await(0,u.A)();if(!r||!r.token)throw new Error("No token provided");if("auto"===t)throw new Error("Auto style is not supported");m("Generating image with prompt",e);const n={prompt:`I NEED to test how the tool works with extremely simple prompts. DO NOT add any detail, just use it AS-IS:\nCreate a single text-free iconic vector logo that symbolically represents the user request, using abstract or symbolic imagery.\nThe design should be modern, with either a vivid color scheme full of gradients or a color scheme that's monochromatic. Use any of those styles based on the user request mood.\nEnsure the logo is set against a clean solid background.\nEnsure the logo works in small sizes.\nThe imagery in the logo should subtly hint at the mood of the user request but DO NOT use any text, letters, or the name of the site on the imagery.\nThe image should contain a single icon, without variations, color palettes or different versions.\n\nUser request:${e}`,messages:t?[{role:"jetpack-ai",context:{type:"ai-assistant-generate-logo",request:e,name:H,description:z,style:t}}]:[],feature:"jetpack-ai-logo-generator",response_format:"b64_json",style:t||""};return await F(n)}catch(e){throw P(e),e}}),[H,z]),J=(0,s.useCallback)((async e=>{D(null);try{if(m("Saving logo for site"),e.mediaId)return{mediaId:e.mediaId,mediaURL:e.url};const r={mediaId:0,mediaURL:""};t(!0);const{id:n,url:a}=await O(e.url,"site-logo.png");return r.mediaId=parseInt(n),r.mediaURL=a,r}catch(e){throw D(e),e}finally{t(!1)}}),[t,D]),X=(0,s.useCallback)((async()=>{M(null);try{if(!q||!k)throw new Error("Missing siteId or logo");m("Applying logo for site",q),r(!0);const{mediaId:e}=k;if(!e)throw new Error("Missing mediaId");await(0,g.Z)({siteId:q,imageId:String(e)})}catch(e){throw M(e),e}finally{r(!1)}}),[k,r,M,q]),ee=(0,s.useCallback)((e=>{E(e),(0,A.hm)({...e,siteId:String(q)})}),[q,E,A.hm]),te=(0,s.useCallback)((async function({prompt:e,style:t}){m("Generating logo for site"),a(!0);try{if(!G)throw new Error("Missing cost information");let r;h(G);try{if(r=await K({prompt:e,style:t}),!r||!r.data.length)throw new Error("No image returned")}catch(e){throw h(-G),e}const n={url:"data:image/png;base64,"+r.data[0].b64_json,description:e};try{const t=await J(n);ee({url:t.mediaURL,description:e,mediaId:t.mediaId})}catch(e){throw ee(n),e}}finally{a(!1)}}),[G,h,J,ee,K]);return{logos:B,selectedLogoIndex:b,selectedLogo:k,setSelectedLogoIndex:e,site:{id:q,name:H,description:z},generateFirstPrompt:W,saveLogo:J,applyLogo:X,generateImage:K,enhancePrompt:async function({prompt:e}){R(null),h();try{const t=await(0,u.A)();if(!t||!t.token)throw new Error("No token provided");m("Enhancing prompt",e);const r={messages:[{role:"system",content:"Enhance the prompt you receive.\nThe prompt is meant for generating a logo. Return the same prompt enhanced, and make each enhancement wrapped in brackets.\nDo not add any mention to text, letters, typography or the name of the site in the prompt.\nFor example: user's prompt: A logo for an ice cream shop. Returned prompt: A logo for an ice cream shop [that is pink] [and vibrant]."},{role:"user",content:e}],feature:"jetpack-ai-logo-generator",stream:!1},n="https://public-api.wordpress.com/wpcom/v2/jetpack-ai-query",a={Authorization:`Bearer ${t.token}`,"Content-Type":"application/json"},o=await fetch(n,{method:"POST",headers:a,body:JSON.stringify(r)}).then((e=>e.json()));return o?.choices?.[0]?.message?.content}catch(e){throw h(-1),R(e),e}},storeLogo:ee,generateLogo:te,setIsEnhancingPrompt:o,setIsRequestingImage:a,setIsSavingLogoToLibrary:t,setIsApplyingLogo:r,setContext:f,isEnhancingPrompt:_,isRequestingImage:Q,isSavingLogoToLibrary:v,isApplyingLogo:I,isBusy:w,getAiAssistantFeature:S,requireUpgrade:x,context:j,tierPlansEnabled:L,isLoadingHistory:N,setIsLoadingHistory:C,imageStyles:Z,guessStyle:Y}}},44461:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(47143),a=r(74423);const o=()=>{const{setFeatureFetchError:e,setFirstLogoPromptFetchError:t,setEnhancePromptFetchError:r,setLogoFetchError:o,setSaveToLibraryError:s,setLogoUpdateError:i}=(0,n.useDispatch)(a.E),{featureFetchError:l,firstLogoPromptFetchError:c,enhancePromptFetchError:u,logoFetchError:A,saveToLibraryError:g,logoUpdateError:d}=(0,n.useSelect)((e=>{const t=e(a.E);return{featureFetchError:t.getFeatureFetchError(),firstLogoPromptFetchError:t.getFirstLogoPromptFetchError(),enhancePromptFetchError:t.getEnhancePromptFetchError(),logoFetchError:t.getLogoFetchError(),saveToLibraryError:t.getSaveToLibraryError(),logoUpdateError:t.getLogoUpdateError()}}),[]);return{setFeatureFetchError:e,setFirstLogoPromptFetchError:t,setEnhancePromptFetchError:r,setLogoFetchError:o,setSaveToLibraryError:s,setLogoUpdateError:i,clearErrors:()=>{e(null),t(null),r(null),o(null),s(null),i(null)},featureFetchError:l,firstLogoPromptFetchError:c,enhancePromptFetchError:u,logoFetchError:A,saveToLibraryError:g,logoUpdateError:d}}},23101:(e,t,r)=>{"use strict";r.d(t,{K:()=>a.K,T:()=>n.T});var n=r(64537),a=r(11114)},19362:(e,t,r)=>{"use strict";r.d(t,{$t:()=>i,H:()=>s,NP:()=>l,Pv:()=>c,hm:()=>o});var n=r(13858);const a=10;function o({siteId:e,url:t,description:r,mediaId:n}){const o=i(e),s={url:t,description:r,mediaId:n};return o.push(s),localStorage.setItem(`logo-history-${e}`,JSON.stringify(o.slice(-a))),s}function s({siteId:e,url:t,newUrl:r,mediaId:n}){const o=i(e),s=o.findIndex((e=>e.url===t));return s>-1&&(o[s].url=r,o[s].mediaId=n),localStorage.setItem(`logo-history-${e}`,JSON.stringify(o.slice(-a))),o[s]}function i(e){const t=localStorage.getItem(`logo-history-${e}`);let r=t?JSON.parse(t):[];return Array.isArray(r)||(r=[]),r=r.slice(-a),r=r.filter((e=>"object"==typeof e&&"string"==typeof e.url&&"string"==typeof e.description)).map((e=>({url:e.url,description:e.description,mediaId:e.mediaId}))),r}function l(e){return 0===i(e).length}async function c(e){const t=i(e).filter((({mediaId:e})=>void 0!==e)).map((({mediaId:t})=>new Promise(((r,a)=>{(0,n.T)({siteId:e,mediaId:t}).then((e=>r({mediaId:t,exists:e}))).catch((e=>a(e)))}))));try{(await Promise.all(t)).filter((({exists:e})=>!e)).forEach((({mediaId:t})=>function({siteId:e,mediaId:t}){const r=i(e),n=r.findIndex((e=>e.mediaId===t));-1!==n&&(r.splice(n,1),localStorage.setItem(`logo-history-${e}`,JSON.stringify(r)))}({siteId:e,mediaId:t})))}catch(e){}}},13858:(e,t,r)=>{"use strict";r.d(t,{T:()=>a});var n=r(48931);async function a({mediaId:e}){const t=Number(e);if(Number.isNaN(t))return!1;try{return await(0,n.A)({path:`/wp/v2/media/${Number(e)}`,method:"GET"}),!0}catch(e){const t=e?.data?.status;if(404===t)return!1;throw e}}},28229:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(22746);async function a({siteId:e,imageId:t}){const r={site_logo:t,site_icon:t};return(0,n.A)({path:`/sites/${String(e)}/settings`,apiVersion:"v2",apiNamespace:"wp/v2",body:r,query:"source=jetpack-ai",method:"POST"})}},22746:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(48931);const a=5;let o=0;async function s(e){if(o+=1,o>a)throw o-=1,new Error("Too many requests");return(0,n.A)(e).finally((()=>{o-=1}))}},9624:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(19362),a=r(22746),o=r(9938);const s={storeAiAssistantFeature:e=>({type:o.UU,feature:e}),fetchAiAssistantFeature:()=>async({dispatch:e})=>{e({type:o.ql});try{const t=await(0,a.A)({path:"/wpcom/v2/jetpack-ai/ai-assistant-feature",query:"force=wpcom"});if(t.data)throw new Error("Failed to fetch");e(s.storeAiAssistantFeature(function(e){return{hasFeature:!!e["has-feature"],isOverLimit:!!e["is-over-limit"],requestsCount:e["requests-count"],requestsLimit:e["requests-limit"],requireUpgrade:!!e["site-require-upgrade"],errorMessage:e["error-message"],errorCode:e["error-code"],upgradeType:e["upgrade-type"],usagePeriod:{currentStart:e["usage-period"]?.["current-start"],nextStart:e["usage-period"]?.["next-start"],requestsCount:e["usage-period"]?.["requests-count"]||0},currentTier:e["current-tier"],nextTier:e["next-tier"],tierPlansEnabled:!!e["tier-plans-enabled"],costs:e.costs,featuresControl:e["features-control"]}}(t)))}catch(t){e({type:o.Rx,error:t})}},increaseAiAssistantRequestsCount:(e=1)=>({dispatch:t})=>{t({type:o.Lg,count:e})},setAiAssistantFeatureRequireUpgrade:(e=!0)=>({type:o.Kt,requireUpgrade:e}),setTierPlansEnabled:(e=!0)=>({type:o.c1,tierPlansEnabled:e}),setSiteDetails:e=>({type:o.Bz,siteDetails:e}),setSelectedLogoIndex:e=>({type:o.BG,selectedLogoIndex:e}),addLogoToHistory:e=>({type:o.sG,logo:e}),setIsSavingLogoToLibrary:e=>({type:o.E6,isSavingLogoToLibrary:e}),setIsApplyingLogo:e=>({type:o.Ep,isApplyingLogo:e}),updateSelectedLogo:(e,t)=>({type:o.r_,mediaId:e,url:t}),setIsRequestingImage:e=>({type:o.vk,isRequestingImage:e}),setIsEnhancingPrompt:e=>({type:o.O5,isEnhancingPrompt:e}),loadLogoHistory(e){const t=(0,n.$t)(e);return{type:o.ZI,history:t}},setFeatureFetchError:e=>({type:o.Rx,error:e}),setFirstLogoPromptFetchError:e=>({type:o.MQ,error:e}),setEnhancePromptFetchError:e=>({type:o.gG,error:e}),setLogoFetchError:e=>({type:o.q_,error:e}),setSaveToLibraryError:e=>({type:o.x0,error:e}),setLogoUpdateError:e=>({type:o.FN,error:e}),setContext:e=>({type:o.kZ,context:e}),setIsLoadingHistory:e=>({type:o.hY,isLoadingHistory:e})},i=s},9938:(e,t,r)=>{"use strict";r.d(t,{BG:()=>d,Bz:()=>l,E6:()=>m,Ep:()=>h,FN:()=>w,GB:()=>c,Kt:()=>s,Lg:()=>o,MQ:()=>y,O5:()=>C,Rx:()=>k,UU:()=>n,ZI:()=>B,c1:()=>i,gG:()=>v,hY:()=>b,kZ:()=>g,mx:()=>A,nb:()=>u,q_:()=>I,ql:()=>a,r_:()=>E,sG:()=>p,vk:()=>f,x0:()=>_});const n="STORE_AI_ASSISTANT_FEATURE",a="REQUEST_AI_ASSISTANT_FEATURE",o="INCREASE_AI_ASSISTANT_REQUESTS_COUNT",s="SET_AI_ASSISTANT_FEATURE_REQUIRE_UPGRADE",i="SET_TIER_PLANS_ENABLED",l="SET_SITE_DETAILS",c=20,u=3e3,A=3,g="SET_CONTEXT",d="SET_SELECTED_LOGO_INDEX",p="ADD_LOGO_TO_HISTORY",m="SET_IS_SAVING_LOGO_TO_LIBRARY",h="SET_IS_APPLYING_LOGO",E="SAVE_SELECTED_LOGO",f="SET_IS_REQUESTING_IMAGE",C="SET_IS_ENHANCING_PROMPT",B="SET_SITE_HISTORY",b="SET_IS_LOADING_HISTORY",k="SET_FEATURE_FETCH_ERROR",y="SET_FIRST_LOGO_PROMPT_FETCH_ERROR",v="SET_ENHANCE_PROMPT_FETCH_ERROR",I="SET_LOGO_FETCH_ERROR",_="SET_SAVE_TO_LIBRARY_ERROR",w="SET_LOGO_UPDATE_ERROR"},74423:(e,t,r)=>{"use strict";r.d(t,{E:()=>i});var n=r(47143),a=r(9624),o=r(23695),s=r(80037);const i="jetpack-ai/logo-generator",l=(0,n.createReduxStore)(i,{__experimentalUseThunks:!0,actions:a.A,reducer:o.A,selectors:s.A});(0,n.register)(l)},94891:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(9938);const a={siteDetails:{},features:{aiAssistantFeature:{hasFeature:!0,isOverLimit:!1,requestsCount:0,requestsLimit:n.GB,requireUpgrade:!1,errorMessage:"",errorCode:"",upgradeType:"default",currentTier:{slug:"ai-assistant-tier-free",value:0,limit:20},usagePeriod:{currentStart:"",nextStart:"",requestsCount:0},nextTier:null,tierPlansEnabled:!1,_meta:{isRequesting:!1,asyncRequestCountdown:n.mx,asyncRequestTimerId:0,isRequestingImage:!1},featuresControl:{"logo-generator":{enabled:!1,styles:[]}}}},history:[],selectedLogoIndex:0}},23695:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(61356),a=r(9938),o=r(94891);function s(e=o.A,t){switch(t.type){case a.ql:return{...e,_meta:{...e._meta??{},featureFetchError:null},features:{...e.features,aiAssistantFeature:{...e.features.aiAssistantFeature,_meta:{...e?.features?.aiAssistantFeature?._meta,isRequesting:!0,asyncRequestCountdown:a.mx,asyncRequestTimerId:0}}}};case a.UU:{const r={"jetpack-ai-logo-generator":{logo:n._S}};return{...e,features:{...e.features,aiAssistantFeature:{costs:r,...t.feature,requireUpgrade:t.feature?.requireUpgrade||0===t.feature?.currentTier?.value,_meta:{...e?.features?.aiAssistantFeature?._meta,isRequesting:!1}}}}}case a.Lg:{const r=e?.features?.aiAssistantFeature?.usagePeriod||{requestsCount:0},n=(e?.features?.aiAssistantFeature?.requestsCount||0)+(t.count??1);r.requestsCount+=t.count??1;const o=e?.features?.aiAssistantFeature?.currentTier?.value,s=void 0===o&&!e?.features?.aiAssistantFeature?.hasFeature||0===o,i=void 0===o&&e?.features?.aiAssistantFeature?.hasFeature||1===o;let l=e?.features?.aiAssistantFeature?.currentTier?.limit||a.GB;i?l=a.nb:s&&(l=e?.features?.aiAssistantFeature?.requestsLimit);const c=(i||s?n:e?.features?.aiAssistantFeature?.usagePeriod?.requestsCount||0)>=l,u=s||c&&null!==e?.features?.aiAssistantFeature?.nextTier;return{...e,features:{...e.features,aiAssistantFeature:{...e.features.aiAssistantFeature,isOverLimit:c,requestsCount:n,requireUpgrade:u,usagePeriod:{...r}}}}}case a.Kt:return{...e,features:{...e.features,aiAssistantFeature:{...e.features.aiAssistantFeature,requireUpgrade:t.requireUpgrade,...t.requireUpgrade?{isOverLimit:!0}:{}}}};case a.c1:return{...e,features:{...e.features,aiAssistantFeature:{...e.features.aiAssistantFeature,tierPlansEnabled:t.tierPlansEnabled}}};case a.Bz:return{...e,siteDetails:t.siteDetails};case a.BG:return{...e,selectedLogoIndex:t.selectedLogoIndex};case a.sG:{const r=[...e.history,t.logo];return{...e,history:r,selectedLogoIndex:r.length-1}}case a.E6:return{...e,_meta:{...e._meta??{},isSavingLogoToLibrary:t.isSavingLogoToLibrary}};case a.Ep:return{...e,_meta:{...e._meta??{},isApplyingLogo:t.isApplyingLogo}};case a.r_:{const r=e.history?.[e.selectedLogoIndex];return{...e,history:[...e.history.slice(0,e.selectedLogoIndex),{...r,mediaId:t.mediaId,url:t.url},...e.history.slice(e.selectedLogoIndex+1)]}}case a.vk:return{...e,_meta:{...e._meta??{},isRequestingImage:t.isRequestingImage}};case a.O5:return{...e,_meta:{...e._meta??{},isEnhancingPrompt:t.isEnhancingPrompt}};case a.ZI:return{...e,history:t.history,selectedLogoIndex:t.history?.length?t.history.length-1:0};case a.Rx:return{...e,features:{...e.features,aiAssistantFeature:{...e?.features?.aiAssistantFeature,_meta:{...e?.features?.aiAssistantFeature?._meta,isRequesting:!1}}},_meta:{...e._meta??{},featureFetchError:t.error}};case a.MQ:return{...e,_meta:{...e._meta??{},firstLogoPromptFetchError:t.error}};case a.gG:return{...e,_meta:{...e._meta??{},enhancePromptFetchError:t.error}};case a.q_:return{...e,_meta:{...e._meta??{},logoFetchError:t.error}};case a.x0:return{...e,_meta:{...e._meta??{},saveToLibraryError:t.error}};case a.FN:return{...e,_meta:{...e._meta??{},logoUpdateError:t.error}};case a.kZ:return{...e,_meta:{...e._meta??{},context:t.context}};case a.hY:return{...e,_meta:{...e._meta??{},isLoadingHistory:t.isLoadingHistory}}}return e}},80037:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(61356);const a={getAiAssistantFeature(e){const t={...e.features.aiAssistantFeature};return delete t._meta,t},getSiteDetails:e=>e.siteDetails,getIsRequestingAiAssistantFeature:e=>e.features.aiAssistantFeature?._meta?.isRequesting??!1,getLogos:e=>e.history??[],getSelectedLogoIndex:e=>e.selectedLogoIndex??null,getSelectedLogo:e=>e.history?.[e.selectedLogoIndex]??null,getIsSavingLogoToLibrary:e=>e._meta?.isSavingLogoToLibrary??!1,getIsApplyingLogo:e=>e._meta?.isApplyingLogo??!1,getIsEnhancingPrompt:e=>e._meta?.isEnhancingPrompt??!1,getIsRequestingImage:e=>e._meta?.isRequestingImage??!1,getIsBusy:e=>a.getIsApplyingLogo(e)||a.getIsSavingLogoToLibrary(e)||a.getIsRequestingImage(e)||a.getIsEnhancingPrompt(e),getRequireUpgrade(e){const t=e.features.aiAssistantFeature;if(!t?.tierPlansEnabled)return t?.requireUpgrade;const r=t?.costs?.["jetpack-ai-logo-generator"]?.logo??n._S,a=t?.currentTier?.value||0,o=t?.usagePeriod?.requestsCount||0,s=1===a,i=!t?.nextTier;return e.features.aiAssistantFeature?.requireUpgrade||!s&&!i&&a-o<r},getFeatureFetchError:e=>e._meta?.featureFetchError??null,getFirstLogoPromptFetchError:e=>e._meta?.firstLogoPromptFetchError??null,getEnhancePromptFetchError:e=>e._meta?.enhancePromptFetchError??null,getLogoFetchError:e=>e._meta?.logoFetchError??null,getSaveToLibraryError:e=>e._meta?.saveToLibraryError??null,getLogoUpdateError:e=>e._meta?.logoUpdateError??null,getContext:e=>e._meta?.context??"",getTierPlansEnabled:e=>e.features.aiAssistantFeature?.tierPlansEnabled??!1,getIsLoadingHistory:e=>e._meta?.isLoadingHistory??!1},o=a},53664:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(7675),a=r(10067),o=r.n(a),s=r(46219),i=r(51391),l=r(78836);const c=o()("jetpack-ai-client:suggestions-event-source");class u extends EventTarget{constructor(e){super(),this.fullMessage="",this.fullFunctionCall={name:"",arguments:""},this.isPromptClear=!1,this.controller=new AbortController,this.initEventSource(e)}async initEventSource({url:e,question:t,token:r,options:a={}}){if(!r)try{c("Token was not provided, requesting one..."),r=(await(0,i.A)()).token}catch(e){return void this.processErrorEvent(e)}const o={};if(Number.isInteger(parseInt(a.postId))&&(o.post_id=+a.postId),!e){const t=new URL("https://public-api.wordpress.com/wpcom/v2/jetpack-ai-query");a?.fromCache&&t.searchParams.append("stream_cache","true"),e=t.toString(),c("URL not provided, using default: %o",e)}Array.isArray(t)?o.messages=t:o.question=t,a?.feature?.length&&(c("Feature: %o",a.feature),o.feature=a.feature),a?.functions?.length&&(c("Functions: %o",a.functions),o.functions=a.functions),a?.model?.length&&(c("Model: %o",a.model),o.model=a.model),this.errorUnclearPromptTriggered=!1,await(0,n.y)(e,{openWhenHidden:!0,method:"POST",headers:{"Content-type":"application/json",Authorization:"Bearer "+r},body:JSON.stringify(o),onclose:()=>{c("Stream closed")},onerror:e=>{throw this.processErrorEvent(e),e},onmessage:e=>{this.processEvent(e)},onopen:async e=>{if(e.ok)return;let t;throw e.status>=400&&e.status<=500&&![413,422,429].includes(e.status)&&(c("Connection error: %o",e),t=l.mA,this.dispatchEvent(new CustomEvent(l.mA,{detail:e}))),503===e.status&&(t=l.AZ,this.dispatchEvent(new CustomEvent(l.AZ))),413===e.status&&(t=l.cT,this.dispatchEvent(new CustomEvent(l.cT))),422===e.status&&(t=l.ud,this.dispatchEvent(new CustomEvent(l.ud))),429===e.status&&(t=l.Or,this.dispatchEvent(new CustomEvent(l.Or))),this.dispatchEvent(new CustomEvent(l.zn,{detail:(0,s.fC)(t)})),new Error},signal:this.controller.signal})}checkForUnclearPrompt(){if(this.isPromptClear)return;const e=this.fullMessage.replace(/__|(\*\*)/g,"");if(e.startsWith("JETPACK_AI_ERROR")){if(this.errorUnclearPromptTriggered)return;this.errorUnclearPromptTriggered=!0,this.dispatchEvent(new CustomEvent(l.L9)),c("Unclear error prompt dispatched"),this.dispatchEvent(new CustomEvent(l.zn,{detail:(0,s.fC)(l.L9)}))}else"JETPACK_AI_ERROR".startsWith(e)?c(this.fullMessage):this.isPromptClear=!0}close(){this.controller.abort()}processEvent(e){if("[DONE]"===e.data){if(this.errorUnclearPromptTriggered)return;if(this.fullMessage.length)return this.dispatchEvent(new CustomEvent("done",{detail:this.fullMessage})),void c("Done: %o",this.fullMessage);if(this.fullFunctionCall.name.length)return this.dispatchEvent(new CustomEvent("function_done",{detail:this.fullFunctionCall})),void c("Done: %o",this.fullFunctionCall)}let t;try{t=JSON.parse(e.data)}catch(t){return void c("Error parsing JSON",e,t)}const{delta:r}=t?.choices?.[0]??{delta:{content:null,function_call:null}},n=r.content,a=r.function_call;n&&(this.fullMessage+=n,this.checkForUnclearPrompt(),this.isPromptClear&&(this.dispatchEvent(new CustomEvent("chunk",{detail:n})),c("suggestion: %o",this.fullMessage),this.dispatchEvent(new CustomEvent("suggestion",{detail:this.fullMessage})))),a&&(null!=a.name&&(this.fullFunctionCall.name+=a.name),null!=a.arguments&&(this.fullFunctionCall.arguments+=a.arguments),this.dispatchEvent(new CustomEvent("functionCallChunk",{detail:this.fullFunctionCall})))}processErrorEvent(e){c("onerror: %o",e),this.dispatchEvent(new CustomEvent(l.mA,{detail:e})),this.dispatchEvent(new CustomEvent(l.zn,{detail:(0,s.fC)(l.mA)}))}}},78836:(e,t,r)=>{"use strict";r.d(t,{AZ:()=>a,L9:()=>c,Or:()=>o,cT:()=>i,mA:()=>l,uH:()=>n.u,ud:()=>s,zn:()=>u});var n=r(97784);const a="error_service_unavailable",o="error_quota_exceeded",s="error_moderation",i="error_context_too_large",l="error_network",c="error_unclear_prompt",u="error_response"},90372:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(10067);const a=r.n(n)()("dops:analytics");let o,s;window._tkq=window._tkq||[],window.ga=window.ga||function(){(window.ga.q=window.ga.q||[]).push(arguments)},window.ga.l=+new Date;const i={initialize:function(e,t,r){i.setUser(e,t),i.setSuperProps(r),i.identifyUser()},setGoogleAnalyticsEnabled:function(e,t=null){this.googleAnalyticsEnabled=e,this.googleAnalyticsKey=t},setMcAnalyticsEnabled:function(e){this.mcAnalyticsEnabled=e},setUser:function(e,t){s={ID:e,username:t}},setSuperProps:function(e){o=e},assignSuperProps:function(e){o=Object.assign(o||{},e)},mc:{bumpStat:function(e,t){const r=function(e,t){let r="";if("object"==typeof e){for(const t in e)r+="&x_"+encodeURIComponent(t)+"="+encodeURIComponent(e[t]);a("Bumping stats %o",e)}else r="&x_"+encodeURIComponent(e)+"="+encodeURIComponent(t),a('Bumping stat "%s" in group "%s"',t,e);return r}(e,t);i.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom-no-pv"+r+"&t="+Math.random())},bumpStatWithPageView:function(e,t){const r=function(e,t){let r="";if("object"==typeof e){for(const t in e)r+="&"+encodeURIComponent(t)+"="+encodeURIComponent(e[t]);a("Built stats %o",e)}else r="&"+encodeURIComponent(e)+"="+encodeURIComponent(t),a('Built stat "%s" in group "%s"',t,e);return r}(e,t);i.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom"+r+"&t="+Math.random())}},pageView:{record:function(e,t){i.tracks.recordPageView(e),i.ga.recordPageView(e,t)}},purchase:{record:function(e,t,r,n,a,o,s){i.ga.recordPurchase(e,t,r,n,a,o,s)}},tracks:{recordEvent:function(e,t){t=t||{},0===e.indexOf("akismet_")||0===e.indexOf("jetpack_")?(o&&(a("- Super Props: %o",o),t=Object.assign(t,o)),a('Record event "%s" called with props %s',e,JSON.stringify(t)),window._tkq.push(["recordEvent",e,t])):a('- Event name must be prefixed by "akismet_" or "jetpack_"')},recordJetpackClick:function(e){const t="object"==typeof e?e:{target:e};i.tracks.recordEvent("jetpack_wpa_click",t)},recordPageView:function(e){i.tracks.recordEvent("akismet_page_view",{path:e})},setOptOut:function(e){a("Pushing setOptOut: %o",e),window._tkq.push(["setOptOut",e])}},ga:{initialized:!1,initialize:function(){let e={};i.ga.initialized||(s&&(e={userId:"u-"+s.ID}),window.ga("create",this.googleAnalyticsKey,"auto",e),i.ga.initialized=!0)},recordPageView:function(e,t){i.ga.initialize(),a("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,r,n){i.ga.initialize();let o="Recording Event ~ [Category: "+e+"] [Action: "+t+"]";void 0!==r&&(o+=" [Option Label: "+r+"]"),void 0!==n&&(o+=" [Option Value: "+n+"]"),a(o),this.googleAnalyticsEnabled&&window.ga("send","event",e,t,r,n)},recordPurchase:function(e,t,r,n,a,o,s){window.ga("require","ecommerce"),window.ga("ecommerce:addTransaction",{id:e,revenue:n,currency:s}),window.ga("ecommerce:addItem",{id:e,name:t,sku:r,price:a,quantity:o}),window.ga("ecommerce:send")}},identifyUser:function(){s&&window._tkq.push(["identifyUser",s.ID,s.username])},setProperties:function(e){window._tkq.push(["setProperties",e])},clearedIdentity:function(){window._tkq.push(["clearIdentity"])}},l=i},11876:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(13022),a=r(51609),o=r.n(a),s=r(47876);const i=({children:e=null,width:t=null,height:r=null,className:a=""})=>o().createElement("div",{className:(0,n.A)(s.A.placeholder,a),style:{width:t,height:r}},e)},36281:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(21782);const a=({value:e="https://jetpack.com",bgColor:t,fgColor:r,level:a,includeMargin:o,imageSettings:s,renderAs:i="canvas",size:l=248})=>React.createElement(n.Ay,{value:e,size:l,bgColor:t,fgColor:r,level:a,includeMargin:o,imageSettings:s,renderAs:i})},56461:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(28120),a=r.n(n),o=r(51609),s=r.n(o);r(85335);const i=({color:e="#FFFFFF",className:t="",size:r=20})=>{const n=t+" jp-components-spinner",a={width:r,height:r,fontSize:r,borderTopColor:e},o={borderTopColor:e,borderRightColor:e};return s().createElement("div",{className:n},s().createElement("div",{className:"jp-components-spinner__outer",style:a},s().createElement("div",{className:"jp-components-spinner__inner",style:o})))};i.propTypes={color:a().string,className:a().string,size:a().number};const l=i},50723:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>g});var n=r(51609),a=r.n(n),o=r(25196);const s={"--font-headline-medium":"48px","--font-headline-small":"36px","--font-title-medium":"24px","--font-title-small":"20px","--font-body":"16px","--font-body-small":"14px","--font-body-extra-small":"12px","--font-title-large":"var(--font-headline-small)","--font-label":"var(--font-body-extra-small)"},i={"--jp-black":"#000000","--jp-black-80":"#2c3338","--jp-white":"#ffffff","--jp-white-off":"#f9f9f6","--jp-gray":"#dcdcde","--jp-gray-0":"#F6F7F7","--jp-gray-5":"var(--jp-gray)","--jp-gray-10":"#C3C4C7","--jp-gray-20":"#A7AAAD","--jp-gray-40":"#787C82","--jp-gray-50":"#646970","--jp-gray-60":"#50575E","--jp-gray-70":"#3C434A","--jp-gray-80":"#2C3338","--jp-gray-90":"#1d2327","--jp-gray-off":"#e2e2df","--jp-red-0":"#F7EBEC","--jp-red-5":"#FACFD2","--jp-red-40":"#E65054","--jp-red-50":"#D63638","--jp-red-60":"#B32D2E","--jp-red-70":"#8A2424","--jp-red-80":"#691C1C","--jp-red":"#d63639","--jp-yellow-5":"#F5E6B3","--jp-yellow-10":"#F2CF75","--jp-yellow-20":"#F0C930","--jp-yellow-30":"#DEB100","--jp-yellow-40":"#C08C00","--jp-yellow-50":"#9D6E00","--jp-yellow-60":"#7D5600","--jp-blue-20":"#68B3E8","--jp-blue-40":"#1689DB","--jp-pink":"#C9356E","--jp-green-0":"#f0f2eb","--jp-green-5":"#d0e6b8","--jp-green-10":"#9dd977","--jp-green-20":"#64ca43","--jp-green-30":"#2fb41f","--jp-green-40":"#069e08","--jp-green-50":"#008710","--jp-green-60":"#007117","--jp-green-70":"#005b18","--jp-green-80":"#004515","--jp-green-90":"#003010","--jp-green-100":"#001c09","--jp-green":"#069e08","--jp-green-primary":"var( --jp-green-40 )","--jp-green-secondary":"var( --jp-green-30 )"},l={"--jp-border-radius":"4px","--jp-menu-border-height":"1px","--jp-underline-thickness":"2px"},c={"--spacing-base":"8px"},u={},A=(e,t,r)=>{const n={...s,...i,...l,...c};for(const t in n)e.style.setProperty(t,n[t]);r&&e.classList.add(o.A.global),t&&(u[t]={provided:!0,root:e})},g=({children:e=null,targetDom:t,id:r,withGlobalStyles:o=!0})=>{const s=(0,n.useRef)(),i=u?.[r]?.provided;return(0,n.useLayoutEffect)((()=>{if(!i)return t?A(t,r,o):void(s?.current&&A(s.current,r,o))}),[t,s,i,r,o]),t?a().createElement(a().Fragment,null,e):a().createElement("div",{ref:s},e)}},3924:(e,t,r)=>{"use strict";function n(e,t={}){const r={};let n;if("undefined"!=typeof window&&(n=window?.JP_CONNECTION_INITIAL_STATE?.calypsoEnv),0===e.search("https://")){const t=new URL(e);e=`https://${t.host}${t.pathname}`,r.url=encodeURIComponent(e)}else r.source=encodeURIComponent(e);for(const e in t)r[e]=encodeURIComponent(t[e]);!Object.keys(r).includes("site")&&"undefined"!=typeof jetpack_redirects&&Object.hasOwn(jetpack_redirects,"currentSiteRawUrl")&&(r.site=jetpack_redirects.currentBlogID??jetpack_redirects.currentSiteRawUrl),n&&(r.calypso_env=n);return"https://jetpack.com/redirect/?"+Object.keys(r).map((e=>e+"="+r[e])).join("&")}r.d(t,{A:()=>n})},85985:(e,t,r)=>{"use strict";r.d(t,{$i:()=>n.A,BT:()=>i.A,Cq:()=>g.C,Dk:()=>l.Dk,FB:()=>s.A,GE:()=>a.A,GT:()=>l.GT,Q4:()=>l.Q4,Sy:()=>o.Sy,W4:()=>l.W4,aq:()=>l.aq,d9:()=>o.d9,gB:()=>c.A,pP:()=>o.pP,q7:()=>A.A,sH:()=>l.sH,sh:()=>g.s,st:()=>u.A,tu:()=>l.tu});var n=r(34972),a=r(54815),o=r(62634),s=r(60703),i=(r(82034),r(65595)),l=r(53265),c=r(49354),u=r(73489),A=r(76923),g=(r(15877),r(30335));r(88290)},15877:(e,t,r)=>{"use strict";r(51609)},30335:(e,t,r)=>{"use strict";r.d(t,{C:()=>s,s:()=>o});var n=r(86087),a=r(19334);function o(e){const t={};let r="span",a=e.icon;const o=document.createElement("div");o.innerHTML=e.icon;const s=o.querySelector("svg");return s&&(r="svg",a=s.innerHTML,Array.from(s.attributes).forEach((({nodeName:e,nodeValue:r})=>t[e]=r))),(0,n.createElement)(r,{...t,dangerouslySetInnerHTML:{__html:a||""}})}function s(e){return{src:o(e),foreground:(0,a.A)()}}},19334:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(62634);const a="#069e08";function o(){return(0,n.d9)()||(0,n.Sy)()?null:a}},34972:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});const n="Jetpack_Editor_Initial_State";function a(){return"object"==typeof window?window?.[n]??null:null}},60703:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(34972);function a(e){const t=(0,n.A)(),r=t?.available_blocks?.[e]?.available??!1,a=t?.available_blocks?.[e]?.unavailable_reason??"unknown";return{available:r,...!r&&{details:t?.available_blocks?.[e]?.details??[],unavailableReason:a}}}},54815:(e,t,r)=>{"use strict";function n(){return window&&window.Jetpack_Editor_Initial_State&&window.Jetpack_Editor_Initial_State.siteFragment?window.Jetpack_Editor_Initial_State.siteFragment:null}r.d(t,{A:()=>n})},73489:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(90372),a=r(39384),o=r(86087);const{tracks:s}=n.A,{recordEvent:i}=s,l=({pageViewEventName:e=null,pageViewNamespace:t="jetpack",pageViewSuffix:r="page_view",pageViewEventProperties:l={}}={})=>{const[c,u]=(0,o.useState)(!1),{isUserConnected:A,isRegistered:g,userConnectionData:d={}}=(0,a.useConnection)(),{wpcomUser:{login:p,ID:m}={},blogId:h}=d.currentUser||{},E=(0,o.useCallback)((async(e,t={})=>{A&&m&&p&&i(e,t)}),[A,m,p]);return(0,o.useEffect)((()=>{A&&m&&p&&h&&n.A.initialize(m,p,{blog_id:h})}),[h,m,p,A]),(0,o.useEffect)((()=>{const n=e?`${t}_${e}_${r}`:null;g&&n&&(c||(E(n,l),u(!0)))}),[c,t,e,r,g,l,E]),{recordEvent:E,tracks:s}}},76923:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(47143),a=r(86087),o=r(88290);const s=e=>{const{isModuleActive:t,isChangingStatus:r,isLoadingModules:s}=(0,n.useSelect)((t=>{const r=t(o.F);return{isModuleActive:r.isModuleActive(e),isChangingStatus:r.isModuleUpdating(e),isLoadingModules:r.areModulesLoading(e)}}),[e]),{updateJetpackModuleStatus:i}=(0,n.useDispatch)(o.F),l=(0,a.useCallback)((t=>i({name:e,active:t})),[e,i]);return(0,a.useMemo)((()=>({isLoadingModules:s,isChangingStatus:r,isModuleActive:t,changeStatus:l})),[s,r,t,l])}},49354:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(34972);function a(){return(0,n.A)()?.jetpack?.is_current_user_connected??!1}},27105:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>A,E9:()=>u});var n=r(47143),a=r(62634),o=r(94478),s=r(88290);const i="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:i,options:e}}const A={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,n.select)(s.F).getJetpackModules();return yield u(t),!1}finally{yield c(e.name,!1)}},setJetpackModules:u,fetchModules:function*(){if((0,a.Sy)())return!0;try{yield l(!0);const e=yield(0,o.wz)();return yield u({data:e}),!0}catch(e){const t=(0,n.select)(s.F).getJetpackModules();return yield u(t),!1}finally{yield l(!1)}}}},94478:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>c,sB:()=>l,wz:()=>i});var n=r(1455),a=r.n(n);const o="FETCH_JETPACK_MODULES",s="UPDATE_JETPACK_MODULE_STATUS",i=()=>({type:o}),l=e=>({type:s,settings:e}),c={[o]:function(){return a()({path:"/jetpack/v4/module/all",method:"GET"})},[s]:function({settings:e}){return a()({path:`/jetpack/v4/module/${e.name}/active`,method:"POST",data:{active:e.active}})}}},88290:(e,t,r)=>{"use strict";r.d(t,{F:()=>c});var n=r(47143),a=r(27105),o=r(94478),s=r(38862),i=r(62701),l=r(31640);const c="jetpack-modules",u=(0,n.createReduxStore)(c,{reducer:s.A,actions:a.Ay,controls:o.Ay,resolvers:i.A,selectors:l.A});(0,n.register)(u);const A=window?.Initial_State?.getModules||window?.Jetpack_Editor_Initial_State?.modules||null;null!==A&&(0,n.dispatch)(c).setJetpackModules({data:{...A}})},38862:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});const n={isLoading:!1,isUpdating:{},data:{}},a=(e=n,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,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(27105),a=r(94478);const o={getJetpackModules:function*(){try{const e=yield(0,a.wz)();if(e)return(0,n.E9)({data:e})}catch(e){console.error(e)}}}},31640:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(62634);const a={getJetpackModules:e=>e.data,isModuleActive:(e,t)=>(0,n.Sy)()||(e?.data?.[t]?.activated??!1),areModulesLoading:e=>e.isLoading??!1,isModuleUpdating:(e,t)=>e?.isUpdating?.[t]??!1}},53265:(e,t,r)=>{"use strict";r.d(t,{Dk:()=>m,GT:()=>E,Q4:()=>u,W4:()=>A,aq:()=>g,sH:()=>h,tu:()=>d});var n=r(27723),a=r(93832),o=r(66087),s=r(34972),i=r(60703),l=r(54815),c=r(62634);const __=n.__;function u({planSlug:e,plan:t,postId:r,postType:n}){const s=(0,o.startsWith)(e,"jetpack_")?e:(0,o.get)(t,["path_slug"]),i=(void 0===n?()=>{const e=new URLSearchParams(window.location.search);return(0,a.addQueryArgs)(window.location.protocol+`//${(0,l.A)().replace("::","/")}/wp-admin/site-editor.php`,{postId:e.get("postId"),postType:e.get("postType"),plan_upgraded:1})}:()=>{const e=["page","post"].includes(n)?"":"edit";return(0,c.Sy)()?(0,a.addQueryArgs)("/"+(0,o.compact)([e,n,(0,l.A)(),r]).join("/"),{plan_upgraded:1}):(0,a.addQueryArgs)(window.location.protocol+`//${(0,l.A)().replace("::","/")}/wp-admin/post.php`,{action:"edit",post:r,plan_upgraded:1})})();return(0,c.d9)()?(0,a.addQueryArgs)(`https://wordpress.com/plans/${(0,l.A)()}`,{redirect_to:i,customerType:"business"}):s&&(0,a.addQueryArgs)(`https://wordpress.com/checkout/${(0,l.A)()}/${s}`,{redirect_to:i})}function A(e){if(!e)return!1;const t=/^jetpack\//.test(e)?e.substr(8,e.length):e,{available:r,unavailableReason:n}=(0,i.A)(t);return!r&&"missing_plan"===n}function g(e,t){return"missing_plan"===e&&t.required_plan}function d(e){if(!e)return!1;const t=/^jetpack\//.test(e)?e.substr(8,e.length):e,{details:r,unavailableReason:n}=(0,i.A)(t);return g(n,r)}const p=[{name:"core/cover",mediaPlaceholder:!0,mediaReplaceFlow:!0,fileType:"video",description:__("Upgrade your plan to use video covers","jetpack")},{name:"core/audio",mediaPlaceholder:!0,mediaReplaceFlow:!0,fileType:"audio",description:__("Upgrade your plan to upload audio","jetpack")}];function m(){return(0,o.get)((0,s.A)(),"jetpack.enable_upgrade_nudge",!1)}const h=e=>(0,o.map)(p,"name").includes(e),E=e=>(0,o.head)((0,o.filter)(p,(({name:t})=>t===e)))},82034:(e,t,r)=>{"use strict";r(92279)},62634:(e,t,r)=>{"use strict";r.d(t,{Sy:()=>o,d9:()=>s,pP:()=>i});var n=r(34972);function a(){return"object"==typeof window&&"string"==typeof window._currentSiteType?window._currentSiteType:null}function o(){return"simple"===a()}function s(){return"atomic"===a()}function i(){const e=(0,n.A)();return e?.jetpack?.is_private_site??!1}},65595:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(96072),a=r.n(n),o=r(29491);const s=e=>(0,o.createHigherOrderComponent)((t=>r=>React.createElement(t,a()({},r,{className:r.name===e?"has-warning is-interactive":r.className}))),"withHasWarningIsInteractiveClassNames")},52068:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>b});var n=r(82170),a=r(96865),o=r(56427),s=r(27723),i=r(90254),l=r(69457),c=r(88669),u=r(41417),A=r(57003),g=(r(51609),r(95396)),d=r(64425),p=r(47264),m=r(2162),h=r(62402);const __=s.__,E="simplify",f="make-longer",C="make-shorter",B={default:[{name:__("Correct spelling and grammar","jetpack"),key:"correct-spelling",aiSuggestion:d.yy,icon:i.A}],"core/paragraph":[{name:__("Simplify","jetpack"),key:E,aiSuggestion:d.A4,icon:l.A},{name:__("Summarize","jetpack"),key:"summarize",aiSuggestion:d.UA,icon:c.A},{name:__("Expand","jetpack"),key:f,aiSuggestion:d.br,icon:u.A},{name:__("Make shorter","jetpack"),key:C,aiSuggestion:d.fD,icon:u.A}],"core/list-item":[{name:__("Simplify","jetpack"),key:E,aiSuggestion:d.A4,icon:l.A},{name:__("Expand","jetpack"),key:f,aiSuggestion:d.br,icon:u.A},{name:__("Make shorter","jetpack"),key:C,aiSuggestion:d.fD,icon:u.A}],"core/list":g.L.includes("core/list")?[{name:__("Simplify","jetpack"),key:E,aiSuggestion:d.A4,icon:l.A},{name:__("Expand","jetpack"),key:f,aiSuggestion:d.br,icon:u.A},{name:__("Make shorter","jetpack"),key:C,aiSuggestion:d.fD,icon:u.A}]:[{name:__("Turn list into a table","jetpack"),key:"turn-into-table",aiSuggestion:d.pE,icon:A.A,options:{userPrompt:"make a table from this list, do not enclose the response in a code block"}},{name:__("Write a post from this list","jetpack"),key:"write-post-from-list",aiSuggestion:d.pE,icon:l.A,options:{userPrompt:"Write a post based on the list items. Include a title as first order heading and try to use secondary headings for each entry"}}]};function b({blockType:e,disabled:t=!1,onAskAiAssistant:r,onRequestSuggestion:s}){const i=B[e]??[];return(0,n.createElement)(n.Fragment,null,t&&(0,n.createElement)(o.Notice,{status:"warning",isDismissible:!1,className:"jetpack-ai-assistant__info"},__("Add content to activate the tools below","jetpack")),(0,n.createElement)(o.MenuGroup,null,(0,n.createElement)(o.MenuItem,{icon:a.cj,iconPosition:"left",key:"key-ai-assistant",onClick:r,disabled:t},(0,n.createElement)("div",{className:"jetpack-ai-assistant__menu-item"},__("Ask AI Assistant","jetpack"))),[...B.default,...i].map((e=>(0,n.createElement)(o.MenuItem,{icon:e?.icon,iconPosition:"left",key:`key-${e.key}`,onClick:()=>{s(e.aiSuggestion,{...e.options??{}},e.name)},disabled:t},(0,n.createElement)("div",{className:"jetpack-ai-assistant__menu-item"},e.name)))),(0,n.createElement)(h.hN,{onChange:e=>{s(d.eJ,{tone:e},`${h.uQ}: ${(0,p.Z)(e)}`)},disabled:t}),(0,n.createElement)(m.HU,{onChange:(e,t)=>{s(d.Gm,{language:e},`${m.u0}: ${t}`)},disabled:t})))}},32249:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(82170),a=r(3924),o=r(56427),s=r(27723);const __=s.__;const i=function(){const e=(0,a.A)("jetpack-ai-feedback");return(0,n.createElement)("div",{className:"jetpack-ai-feedback-control"},(0,n.createElement)(o.BaseControl,null,(0,n.createElement)(o.BaseControl.VisualLabel,null,__("Feedback","jetpack")),(0,n.createElement)("p",null,__("Your feedback is valuable in our commitment to refine and improve this feature.","jetpack")),(0,n.createElement)(o.ExternalLink,{href:e},__("Share your feedback","jetpack"))))}},2162:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>h,HU:()=>E,u0:()=>g});var n=r(82170),a=r(85985),o=r(56427),s=r(27723),i=r(51113),l=r(29115),c=r(84066);r(51609);const __=s.__,u=["en","es","fr","de","it","pt","ru","zh","ja","ar","hi","ko"],A=window?.Jetpack_Editor_Initial_State?.siteLocale||navigator?.language,g=__("Translate","jetpack"),d=A?.split("-")[0]||"en",p=(A?.split("-"),{en:{label:__("English","jetpack")},es:{label:__("Spanish","jetpack")},fr:{label:__("French","jetpack")},de:{label:__("German","jetpack")},it:{label:__("Italian","jetpack")},pt:{label:__("Portuguese","jetpack")},ru:{label:__("Russian","jetpack")},zh:{label:__("Chinese","jetpack")},ja:{label:__("Japanese","jetpack")},ar:{label:__("Arabic","jetpack")},hi:{label:__("Hindi","jetpack")},ko:{label:__("Korean","jetpack")}}),m=({value:e,onChange:t})=>{const r=[...u.filter((e=>e!==d))];return u.includes(d)&&r.unshift(d),(0,n.createElement)(o.MenuGroup,{label:__("Select language","jetpack")},r.map((r=>(0,n.createElement)(o.MenuItem,{key:`key-${r}`,onClick:()=>t(r+" ("+p[r].label+")",p[r].label),isSelected:e===r},p[r].label))))};function h({value:e=d,label:t=g,onChange:r,disabled:s=!1}){const{tracks:l}=(0,a.st)();return s?(0,n.createElement)(o.Tooltip,{text:t},(0,n.createElement)(o.Button,{disabled:!0},(0,n.createElement)(i.A,{icon:c.A}))):(0,n.createElement)(o.ToolbarDropdownMenu,{icon:c.A,label:t,popoverProps:{variant:"toolbar"},onToggle:e=>{e&&l.recordEvent("jetpack_ai_assistant_block_toolbar_menu_show",{tool:"i18n"})}},(()=>(0,n.createElement)(m,{value:e,onChange:r})))}function E({value:e=d,label:t=g,onChange:r,disabled:a=!1}){return(0,n.createElement)(o.DropdownMenu,{className:"ai-assistant__i18n-dropdown",icon:c.A,label:t,toggleProps:{children:(0,n.createElement)(n.Fragment,null,(0,n.createElement)("div",{className:"ai-assistant__i18n-dropdown__toggle-label"},t),(0,n.createElement)(i.A,{icon:l.A})),disabled:a}},(({onClose:t})=>(0,n.createElement)(m,{onChange:(...e)=>{r(...e),t()},value:e})))}},99050:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>m});var n=r(82170),a=r(85985),o=r(56427),s=r(27723),i=r(78938);const __=s.__,l="make-longer",c="makeLonger",u="make-shorter",A="makeShorter",g="summarize",d="summarize",p=[{name:__("Summarize","jetpack"),key:g,aiSuggestion:d},{name:__("Make longer","jetpack"),key:l,aiSuggestion:c},{name:__("Make shorter","jetpack"),key:u,aiSuggestion:A}];function m({key:e,label:t=__("Improve","jetpack"),exclude:r=[],onChange:s,disabled:l=!1}){const{tracks:c}=(0,a.st)();return l?(0,n.createElement)(o.Tooltip,{text:t},(0,n.createElement)(o.Button,{disabled:!0},(0,n.createElement)(o.Icon,{icon:i.A}))):(0,n.createElement)(o.ToolbarDropdownMenu,{icon:i.A,label:t,popoverProps:{variant:"toolbar"},onToggle:e=>{e&&c.recordEvent("jetpack_ai_assistant_block_toolbar_menu_show",{tool:"improve"})}},(()=>{const a=p.filter((e=>!r.includes(e.key)));return(0,n.createElement)(o.MenuGroup,{label:t},a.map((t=>(0,n.createElement)(o.MenuItem,{key:`key-${t.key}`,onClick:()=>s(t.aiSuggestion,{contentType:"generated"}),isSelected:e===t.key},t.name))))}))}},33468:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>m});var n=r(82170),a=r(85985),o=r(56427),s=r(27723),i=r(78938),l=r(41417),c=r(90254),u=r(69457),A=r(88669),g=r(11269);const __=s.__,d=[{label:__("Post about…","jetpack"),description:{original:"Write a post about ",translated:__("Write a post about","jetpack")+" "}},{label:__("Informative article on…","jetpack"),description:{original:"Craft an informative article explaining ",translated:__("Craft an informative article explaining","jetpack")+" "}},{label:__("Step-by-step tutorial on…","jetpack"),description:{original:"Write a step-by-step tutorial on ",translated:__("Write a step-by-step tutorial on","jetpack")+" "}},{label:__("Motivational post on…","jetpack"),description:{original:"Create a motivational post on ",translated:__("Create a motivational post on","jetpack")+" "}}],p=[{label:__("Say it differently…","jetpack"),description:{original:"Rewrite it in a way that ",translated:__("Rewrite it in a way that","jetpack")+" "}},{label:__("Add…","jetpack"),description:{original:"Add more details about ",translated:__("Add more details about","jetpack")+" "}},{label:__("Remove…","jetpack"),description:{original:"Remove unnecessary details about ",translated:__("Remove unnecessary details about","jetpack")+" "}}];function m({hasContentBefore:e,hasContent:t,hasPostTitle:r,contentIsLoaded:s,onPromptSelect:m,onSuggestionSelect:h}){const E=__("Write with AI…","jetpack"),{tracks:f}=(0,a.st)();return(0,n.createElement)(o.ToolbarDropdownMenu,{className:"jetpack-ai-assistant__templates-control",icon:null,label:E,text:E,onToggle:e=>{e&&f.recordEvent("jetpack_ai_assistant_block_toolbar_menu_show",{tool:"write-with-ai"})}},(({onClose:a})=>s?(0,n.createElement)(o.MenuGroup,{label:__("Write…","jetpack")},p.map(((e,t)=>(0,n.createElement)(o.MenuItem,{icon:i.A,iconPosition:"left",key:`key-${t}`,onClick:()=>{a(),m(e.description)}},e.label)))):(0,n.createElement)(n.Fragment,null,e&&(0,n.createElement)(o.MenuGroup,{label:__("Based on preceding content…","jetpack")},(0,n.createElement)(o.MenuItem,{icon:l.A,iconPosition:"left",onClick:()=>h("continue")},__("Continue writing","jetpack")),(0,n.createElement)(o.MenuItem,{icon:c.A,iconPosition:"left",onClick:()=>h("correctSpelling")},__("Correct spelling and grammar","jetpack")),(0,n.createElement)(o.MenuItem,{icon:u.A,iconPosition:"left",onClick:()=>h("simplify")},__("Simplify","jetpack"))),t&&(0,n.createElement)(o.MenuGroup,{label:__("Based on entire content…","jetpack")},t&&(0,n.createElement)(o.MenuItem,{icon:A.A,iconPosition:"left",onClick:()=>h("summarize")},__("Summarize","jetpack")),t&&(0,n.createElement)(o.MenuItem,{icon:g.A,iconPosition:"left",onClick:()=>h("generateTitle")},__("Generate a post title","jetpack"))),(0,n.createElement)(o.MenuGroup,{label:__("Write…","jetpack")},r&&(0,n.createElement)(o.MenuItem,{icon:i.A,iconPosition:"left",onClick:()=>h("titleSummary")},__("Summary based on title","jetpack")),d.map(((e,t)=>(0,n.createElement)(o.MenuItem,{icon:i.A,iconPosition:"left",key:`key-${t}`,onClick:()=>{a(),m(e.description)}},e.label)))))))}},23e3:(e,t,r)=>{"use strict";r.d(t,{A:()=>f,Q:()=>E});var n=r(82170),a=r(3924),o=r(85985),s=r(56427),i=r(86087),l=r(27723),c=r(10067),u=r.n(c),A=r(56333),g=r(92169),d=r(61297),p=r(7503),m=r(93094);const __=l.__,h=u()("jetpack-ai-assistant:upgrade-prompt"),E=({variant:e="error"})=>{const t=(()=>{const{usagePeriod:e}=(0,d.A)(),t=(e=>{const t=__("You've reached this month's request limit, per our <link>fair usage policy</link>.","jetpack");if(!e)return t; // Translators: %s is the date when the requests will reset. const r=__("Requests will reset on %s.","jetpack");return`${t} ${(0,l.sprintf)(r,e)}`})((e=>{if(!e?.nextStart)return null;const t=new Date(e.nextStart);return t.toLocaleString("default",{month:"long"})+" "+t.getDate()})(e));return(0,i.createInterpolateElement)(t,{link:(0,n.createElement)("a",{href:"https://jetpack.com/redirect/?source=ai-assistant-fair-usage-policy",target:"_blank",rel:"noreferrer"})})})();return"muted"===e?(0,n.createElement)("span",{className:"jetpack-ai-fair-usage-notice-muted-variant"},t):"error"===e?(0,n.createElement)(s.Notice,{status:"error",isDismissible:!1,className:"jetpack-ai-fair-usage-notice"},t):null},f=e=>{const{upgradeType:t,currentTier:r}=(0,d.A)();return 1===r?.value?(0,n.createElement)(E,null):"vip"===t?(({description:e=null,useLightNudge:t=!1})=>{const r=t?m.U:A.c,a=(0,i.createInterpolateElement)(__("You've reached the Jetpack AI rate limit. <strong>Please reach out to your VIP account team.</strong>","jetpack"),{strong:(0,n.createElement)("strong",null)});return(0,n.createElement)(r,{buttonText:null,checkoutUrl:null,className:"jetpack-ai-upgrade-banner",description:e||a,goToCheckoutPage:null,isRedirecting:null,visible:!0,align:null,title:null,context:null})})({description:e.description,useLightNudge:e?.useLightNudge}):(({placement:e=null,description:t=null,useLightNudge:r=!1})=>{const s=r?m.U:A.c,{checkoutUrl:c}=(0,g.A)(),u=(0,p.C)(),{nextTier:E,tierPlansEnabled:f,currentTier:C,requestsCount:B}=(0,d.A)(),{tracks:b}=(0,o.st)(),k=(0,i.useCallback)((()=>{h("upgrade",e),b.recordEvent("jetpack_ai_upgrade_button",{current_tier_slug:C?.slug,requests_count:B,placement:e})}),[C,B,b,e]),y=(0,i.useCallback)((()=>{h("contact us",e),b.recordEvent("jetpack_ai_upgrade_contact_us",{placement:e})}),[b,e]);if(!u){const e=(0,i.createInterpolateElement)(__("Congratulations on exploring Jetpack AI and reaching the free requests limit! <strong>Reach out to the site administrator to upgrade and keep using Jetpack AI.</strong>","jetpack"),{strong:(0,n.createElement)("strong",null)});return(0,n.createElement)(s,{showButton:!1,className:"jetpack-ai-upgrade-banner",description:t||e,visible:!0,align:null,title:null,context:null})}if(f){if(!E){const e=(0,a.A)("jetpack-ai-tiers-more-requests-contact"),r=__("You have reached the request limit for your current plan.","jetpack");return(0,n.createElement)(s,{buttonText:__("Contact Us","jetpack"),description:t||r,className:"jetpack-ai-upgrade-banner",checkoutUrl:e,visible:!0,align:null,title:null,context:null,goToCheckoutPage:y,target:"_blank"})}const e=(0,i.createInterpolateElement)((0,l.sprintf)(/* Translators: number of requests */ __("You have reached the requests limit for your current plan. <strong>Upgrade now to increase your requests limit to %d.</strong>","jetpack"),E.limit),{strong:(0,n.createElement)("strong",null)});return(0,n.createElement)(s,{buttonText:(0,l.sprintf)(/* Translators: number of requests */ __("Upgrade to %d requests","jetpack"),E.limit),checkoutUrl:c,className:"jetpack-ai-upgrade-banner",description:t||e,goToCheckoutPage:k,visible:!0,align:"center",title:null,context:null,target:"_blank"})}return(0,n.createElement)(s,{buttonText:"Upgrade",checkoutUrl:c,className:"jetpack-ai-upgrade-banner",description:(0,i.createInterpolateElement)(__("Congratulations on exploring Jetpack AI and reaching the free requests limit! <strong>Upgrade now to keep using it.</strong>","jetpack"),{strong:(0,n.createElement)("strong",null)}),goToCheckoutPage:k,visible:!0,align:null,title:null,context:null,target:"_blank"})})(e)}},93094:(e,t,r)=>{"use strict";r.d(t,{U:()=>s});var n=r(82170),a=r(56427),o=r(27723);const __=o.__,s=({title:e,description:t,buttonText:r=null,checkoutUrl:o=null,goToCheckoutPage:s=null,isRedirecting:i=!1,showButton:l=!0,target:c="_top"})=>{const u=__("Redirecting…","jetpack");return(0,n.createElement)("div",{className:"jetpack-upgrade-plan-banner-light"},(0,n.createElement)(a.Notice,{status:"error",isDismissible:!1},(0,n.createElement)("p",null,e&&(0,n.createElement)("strong",null,e),t," ",l&&(0,n.createElement)(a.Button,{href:i?null:o,onClick:s,variant:"link",target:c},i?u:r))))}},62402:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>m,US:()=>u,hN:()=>p,uQ:()=>A});var n=r(82170),a=r(96865),o=r(85985),s=r(56427),i=r(27723),l=r(29115);r(51609);const __=i.__,c=["formal","informal","optimistic","humorous","serious","skeptical","empathetic","confident","passionate","provocative"],u="formal",A=__("Change tone","jetpack"),g={formal:{label:__("Formal","jetpack"),emoji:"🎩"},informal:{label:__("Informal","jetpack"),emoji:"😊"},optimistic:{label:__("Optimistic","jetpack"),emoji:"😃"},humorous:{label:__("Humorous","jetpack"),emoji:"😂"},serious:{label:__("Serious","jetpack"),emoji:"😐"},skeptical:{label:__("Skeptical","jetpack"),emoji:"🤨"},empathetic:{label:__("Empathetic","jetpack"),emoji:"💗"},confident:{label:__("Confident","jetpack"),emoji:"😎"},passionate:{label:__("Passionate","jetpack"),emoji:"❤️"},provocative:{label:__("Provocative","jetpack"),emoji:"🔥"}},d=({value:e,onChange:t})=>(0,n.createElement)(s.MenuGroup,{label:__("Select tone","jetpack")},c.map((r=>(0,n.createElement)(s.MenuItem,{key:`key-${r}`,onClick:()=>t(r),isSelected:e===r},`${g[r].emoji} ${g[r].label}`))));function p({label:e=A,value:t=u,onChange:r,disabled:o=!1}){return(0,n.createElement)(s.DropdownMenu,{icon:a.Qr,label:e,className:"ai-assistant__tone-dropdown",popoverProps:{variant:"toolbar"},toggleProps:{children:(0,n.createElement)(n.Fragment,null,(0,n.createElement)("div",{className:"ai-assistant__tone-dropdown__toggle-label"},e),(0,n.createElement)(s.Icon,{icon:l.A})),disabled:o}},(({onClose:e})=>(0,n.createElement)(d,{value:t,onChange:t=>{r(t),e()}})))}function m({value:e=u,onChange:t,disabled:r=!1}){const{tracks:i}=(0,o.st)();return r?(0,n.createElement)(s.Tooltip,{text:A},(0,n.createElement)(s.Button,{disabled:!0},(0,n.createElement)(s.Icon,{icon:a.Qr}))):(0,n.createElement)(s.ToolbarDropdownMenu,{icon:a.Qr,label:A,popoverProps:{variant:"toolbar"},disabled:r,onToggle:e=>{e&&i.recordEvent("jetpack_ai_assistant_block_toolbar_menu_show",{tool:"tone"})}},(()=>(0,n.createElement)(d,{value:e,onChange:t})))}},51698:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var n=r(82170),a=r(94715),o=r(56427),s=r(27723),i=r(83883),l=r(83822),c=r(64425),u=r(2162),A=r(99050),g=r(33468),d=r(62402);const __=s.__,p=({contentIsLoaded:e,getSuggestionFromOpenAI:t,retryRequest:r,handleAcceptContent:s,handleTryAgain:p,showRetry:m,contentBefore:h,hasPostTitle:E,wholeContent:f,setUserPrompt:C,recordEvent:B,isGeneratingTitle:b})=>(0,n.createElement)(n.Fragment,null,(0,n.createElement)(a.BlockControls,null,!m&&(0,n.createElement)(n.Fragment,null,(0,n.createElement)(o.ToolbarGroup,null,(0,n.createElement)(g.Ay,{hasContentBefore:!!h?.length,hasContent:!!f?.length,hasPostTitle:E,contentIsLoaded:e,onPromptSelect:e=>{B("jetpack_editor_ai_assistant_block_toolbar_button_click",{type:"prompt-template",prompt:e.original}),C(e.translated)},onSuggestionSelect:e=>{B("jetpack_editor_ai_assistant_block_toolbar_button_click",{type:"suggestion",suggestion:e}),t(e)}})),(0,n.createElement)(a.BlockControls,{group:"block"},(0,n.createElement)(d.Ay,{value:"neutral",onChange:r=>{B("jetpack_editor_ai_assistant_block_toolbar_button_click",{type:"suggestion",suggestion:c.eJ}),t(c.eJ,{tone:r,contentType:e?"generated":null})},disabled:!e&&!f?.length}),(0,n.createElement)(u.Ay,{value:"en",onChange:r=>{B("jetpack_editor_ai_assistant_block_toolbar_button_click",{type:"suggestion",suggestion:c.Gm}),t(c.Gm,{language:r,contentType:e?"generated":null})},disabled:!e&&!f?.length}),(0,n.createElement)(A.Ay,{onChange:t,exclude:b?["summarize"]:[],disabled:!e}))),(m||p)&&(0,n.createElement)(o.ToolbarGroup,null,!m&&e&&p&&(0,n.createElement)(o.ToolbarButton,{onClick:p},__("Try Again","jetpack")),m&&e&&(0,n.createElement)(o.ToolbarButton,{icon:i.A,onClick:s},__("Accept","jetpack")),m&&(0,n.createElement)(o.ToolbarButton,{icon:l.A,onClick:r},__("Retry","jetpack")))))},3586:(e,t,r)=>{"use strict";r.d(t,{A:()=>Q});var n=r(82170),a=r(96865),o=r(85985),s=r(94715),i=r(74997),l=r(56427),c=r(29491),u=r(47143),A=r(86087),g=r(27723),d=r(13022),p=r(27970),m=r(56199),h=r(2274),E=r(58164),f=r(32249),C=r(23e3),B=r(51698),b=r(4393),k=r(92169),y=r(61297),v=r(44732),I=r(76695),_=r(7503);const __=g.__,w="post"===window?.Jetpack_Editor_Initial_State?.screenBase;function Q({attributes:e,setAttributes:t,clientId:r,isSelected:g}){const[Q,S]=(0,A.useState)(null),{tracks:x}=(0,o.st)(),{getBlock:j}=(0,u.useSelect)("core/block-editor"),L=(0,A.useRef)(null),N=(0,A.useRef)(null),{replaceBlocks:T,removeBlock:R}=(0,u.useDispatch)("core/block-editor"),{editPost:P}=(0,u.useDispatch)("core/editor"),{isOverLimit:D,requireUpgrade:M,increaseRequestsCount:F,requestsCount:O,requestsLimit:U,currentTier:H,loading:z,tierPlansEnabled:q}=(0,y.A)(),V=Math.max(U-O,0),{autosaveAndRedirect:G}=(0,k.A)(),$=(0,E.Bd)(H),Z=()=>{setTimeout((()=>{L.current?.focus?.()}),100)},W=()=>{setTimeout((()=>{N.current?.focus?.()}),100)},Y=(0,c.useViewportMatch)("medium","<"),K=(0,A.useRef)(null),{getSuggestionFromOpenAI:J,stopSuggestion:X,showRetry:ee,contentBefore:te,postTitle:re,retryRequest:ne,wholeContent:ae,requestingState:oe,error:se}=(0,b.A)({onSuggestionDone:(0,A.useCallback)((()=>{Z(),F()}),[F]),onUnclearPrompt:(0,A.useCallback)((()=>{W(),F()}),[F]),onModeration:Z,attributes:e,clientId:r,content:e.content,tracks:x,userPrompt:e.userPrompt,requireUpgrade:M,initialRequestingState:e.requestingState,contentRef:K,blockRef:N}),ie="requesting"===oe,le=["requesting","suggesting"].includes(oe),ce=(0,_.x)(),{productPageUrl:ue}=(0,v.A)(),Ae=(0,I.y)(r);(0,A.useEffect)((()=>{if(!Ae)return;const e=JSON.parse(localStorage.getItem(Ae));if(!e)return;const{type:t,options:r}=e;localStorage.removeItem(Ae),J(t,r)}),[Ae,J]),(0,A.useEffect)((()=>{se&&S(!1)}),[se]),(0,A.useEffect)((()=>{["init","done"].includes(oe)&&t({requestingState:oe})}),[oe,t]);const ge=!!e.content,de="generateTitle"===e.promptType,pe=__("Accept","jetpack"),me=__("Accept title","jetpack"),he=de?me:pe,Ee=async()=>{let t=[],n=(0,a._E)({content:e.content||""});if(n?.split("\n").length>1&&n?.split("\n")?.[0]?.match(/^<h1>.*<\/h1>$/)&&!re){const e=n.split("\n"),t=e.shift();n=e.join("\n"),P({title:t.replace(/<[^>]*>/g,"")})}t=(0,i.rawHandler)({HTML:n}),await T(r,t);const o=(e=>{let t=null;return e.forEach((e=>{const r=document.querySelector(`.wp-block[data-block="${e.clientId}"]`);if(!r)return;"true"===r.contentEditable&&(t=r);const n=r.querySelectorAll("[contenteditable=true]");t=n.length?n[n.length-1]:t})),t})(t);o&&(e=>{const t=e.ownerDocument.getSelection();t.selectAllChildren(e),t.collapseToEnd(),e.focus()})(o)},fe=()=>{Ee(),x.recordEvent("jetpack_ai_assistant_block_accept",{feature:"ai-assistant"})},Ce=()=>{w?(P({title:e.content?e.content.trim():""}),R(r),x.recordEvent("jetpack_ai_assistant_block_accept",{feature:"ai-assistant"})):fe()},Be=()=>{X(),Z(),x.recordEvent("jetpack_ai_assistant_block_stop",{feature:"ai-assistant"})},be=(0,s.useBlockProps)({ref:N,className:(0,d.A)({"is-waiting-response":ie})}),ke=__("Ask Jetpack AI…","jetpack"),ye=__("Write about… Make a table for…","jetpack"),ve=(0,n.createElement)(n.Fragment,null,D&&g&&(0,n.createElement)(C.A,{placement:"ai-assistant-block"}),!ce&&(0,n.createElement)(h.A,{block:"AI Assistant"})),Ie=(0,n.createElement)(n.Fragment,null,se?.message&&!Q&&"error_quota_exceeded"!==se?.code&&(0,n.createElement)(l.Notice,{status:se.status,isDismissible:!1,className:"jetpack-ai-assistant__error"},se.message)),_e=D&&$===E.Ti?(0,n.createElement)(C.Q,{variant:"muted"}):null,we=(0,A.useCallback)((e=>{e.preventDefault(),x.recordEvent("jetpack_ai_upgrade_button",{current_tier_slug:H?.slug,requests_count:O,placement:"jetpack_ai_assistant_block"}),G(e)}),[x,H,O,G]);return(0,n.createElement)(l.KeyboardShortcuts,{bindGlobal:!0,shortcuts:{esc:()=>{["requesting","suggesting"].includes(oe)&&Be()}}},(0,n.createElement)("div",be,ge&&(0,n.createElement)("div",{ref:K,className:"jetpack-ai-assistant__content"},(0,n.createElement)(A.RawHTML,null,(0,a._E)({content:e.content||""}))),(0,n.createElement)(s.InspectorControls,null,_e&&(0,n.createElement)("div",{className:"block-editor-block-card",style:{paddingTop:0}},(0,n.createElement)("span",{className:"block-editor-block-icon"}),_e),(0,n.createElement)("div",{className:"block-editor-block-card",style:{paddingTop:0}},(0,n.createElement)("span",{className:"block-editor-block-icon"}),(0,n.createElement)(l.ExternalLink,{href:ue},__("Discover all features","jetpack"))),($===E._X||q&&$!==E.Ti)&&(0,n.createElement)(l.PanelBody,{initialOpen:!0},(0,n.createElement)(l.PanelRow,null,(0,n.createElement)(p.A,{placement:m.k}))),(0,n.createElement)(l.PanelBody,{initialOpen:!0},(0,n.createElement)(l.PanelRow,null,(0,n.createElement)(f.A,null)))),!le&&ce&&!M&&(0,n.createElement)(B.A,{isWaitingState:le,contentIsLoaded:ge,getSuggestionFromOpenAI:J,retryRequest:ne,handleAcceptContent:fe,handleAcceptTitle:Ce,handleTryAgain:null,showRetry:ee,contentBefore:te,hasPostTitle:!!re?.length,wholeContent:ae,promptType:e.promptType,setUserPrompt:e=>{if(!L?.current)return;L.current.focus(),t({userPrompt:e})},recordEvent:x.recordEvent,isGeneratingTitle:de}),(0,n.createElement)(a.N0,{ref:L,disabled:M||!ce,value:e.userPrompt,placeholder:e?.content?ke:ye,onChange:e=>{S(!0),t({userPrompt:e})},onSend:()=>{((...e)=>{J(...e),W()})("userPrompt"),x.recordEvent("jetpack_ai_assistant_block_generate",{feature:"ai-assistant"})},onStop:Be,onAccept:()=>{de?Ce():fe()},onDiscard:()=>{const n=e?.content===j(r).attributes?.content;t({content:e?.originalContent,promptType:void 0,messages:e?.originalMessages}),Ee(),n?x.recordEvent("jetpack_ai_assistant_block_dismiss"):x.recordEvent("jetpack_ai_assistant_block_discard",{feature:"ai-assistant"})},state:oe,isTransparent:M||!ce,showButtonLabels:!Y,showAccept:"init"!==oe&&ge&&!le,acceptLabel:he,showGuideLine:ge,showRemove:e?.content?.length>0,banner:ve,error:Ie,customFooter:V%5!=0&&1!==O||z||$!==E._X?null:(0,n.createElement)(a.AK,{requestsRemaining:V,onUpgradeClick:we})})))}},61351:(e,t,r)=>{"use strict";var n=r(94375),a=r(54681),o=r(3586),s=r(13802);r(99800);(0,n.M)(a,{edit:o.A,save:()=>null,transforms:s.Ay})},10603:(e,t,r)=>{"use strict";r.d(t,{mt:()=>s});var n=r(96865),a=r(74997),o=r(47143);class s{renderRules=[];firstUpdate=!0;behavior="dropdown";isChildBlock=!1;feature="ai-assistant";adjustPosition=!0;startOpen=!1;hideOnBlockFocus=!0;constructor(e,t=[]){this.clientId=e,this.renderRules=t}getBlock(){const{getBlock:e}=(0,o.select)("core/block-editor");return e(this.clientId)}getContent(){const e=this.getBlock();return t=(0,a.getBlockContent)(e),(0,n.rh)({content:t});var t}renderContent(e){return function(e,t=[]){return(0,n._E)({content:e,rules:t,extension:!0})}(e,this.renderRules)}onSuggestion(e){if(!e)return;const t=this.renderContent(e);this.replaceBlockContent(t)}onDone(e){this.firstUpdate=!0}replaceBlockContent(e){const[t]=(0,a.rawHandler)({HTML:e});if(!t)return;const{updateBlockAttributes:r,replaceInnerBlocks:n,__unstableMarkNextChangeAsNotPersistent:s}=(0,o.dispatch)("core/block-editor");this.firstUpdate?this.firstUpdate=!1:s(),r(this.clientId,t.attributes),s(),n(this.clientId,t.innerBlocks)}getExtensionInputPlaceholder(){return null}}},67607:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});var n=r(82170),a=r(96865),o=r(85985),s=r(86087),i=r(27723),l=r(13022),c=(r(51609),r(92169)),u=r(61297);const __=i.__,A=(0,l.A)("jetpack-ai-assistant-extension-ai-input","wp-block");function g({customPlaceholder:e,className:t,requestingState:r,requestingError:i,inputRef:g,wrapperRef:d,action:p,blockType:m,feature:h,request:E,stopSuggestion:f,close:C,undo:B,tryAgain:b}){const k=e||__("Ask Jetpack AI to edit…","jetpack"),[y,v]=(0,s.useState)(""),[I,_]=(0,s.useState)(k),{checkoutUrl:w}=(0,c.A)(),{tracks:Q}=(0,o.st)(),[S,x]=(0,s.useState)(0),[j,L]=(0,s.useState)(!1),{requireUpgrade:N,requestsCount:T,requestsLimit:R,loading:P,nextTier:D,currentTier:M}=(0,u.A)(),F=(0,s.useMemo)((()=>N||["requesting","suggesting"].includes(r)),[N,r]),O=(0,s.useMemo)((()=>N&&1===M?.value),[N,M]),U=(0,s.useCallback)((()=>{Q.recordEvent("jetpack_ai_assistant_extension_generate",{block_type:m,feature:h}),E?.(y)}),[m,h,E,Q,y]),H=(0,s.useCallback)((()=>{Q.recordEvent("jetpack_ai_assistant_extension_stop",{block_type:m}),f?.()}),[m,f,Q]);const z=(0,s.useCallback)((()=>{Q.recordEvent("jetpack_ai_assistant_undo",{block_type:m}),B?.()}),[m,Q,B]),q=(0,s.useCallback)((()=>{Q.recordEvent("jetpack_ai_upgrade_button",{current_tier_slug:M?.slug,requests_count:T,placement:"jetpack_ai_assistant_extension"})}),[M?.slug,T,Q]),V=(0,s.useCallback)((()=>{Q.recordEvent("jetpack_ai_assistant_try_again",{block_type:m}),b?.()}),[m,Q,b]);return(0,s.useEffect)((()=>{["init","done"].includes(r)&&v("")}),[r]),(0,s.useEffect)((()=>{_(p||k),p&&v("")}),[p,k]),(0,s.useEffect)((()=>{L(!P&&!!D&&0===y.length)}),[P,D,y]),(0,s.useEffect)((()=>{const e=Math.max(R-T,0);x(e)}),[R,T]),(0,n.createElement)(a.FC,{className:(0,l.A)(A,t),placeholder:I,disabled:F,value:y,state:r,showGuideLine:!0,error:i,requestsRemaining:S,showUpgradeMessage:j,showFairUsageMessage:O,upgradeUrl:w,onChange:v,onSend:U,onStop:H,onClose:function(){C?.()},onUndo:z,onUpgrade:q,onTryAgain:V,wrapperRef:d,ref:g})}},31124:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n=r(82170),a=r(96865),o=r(85985),s=r(56427),i=r(86087),l=r(27723),c=r(52068),u=r(76695),A=r(2612);const __=l.__;function g({blockType:e,onClose:t,onAskAiAssistant:r,onRequestSuggestion:a}){const{canTransformToAIAssistant:o,transformToAIAssistant:s,getSelectedBlockClientIds:l}=(0,u.A)(),A=(0,i.useCallback)((n=>{const i=l(),[c]=i;i.length<2||!o({clientId:c,blockName:e})?(n?a?.(n.promptType,n.options,n.humanText):r?.(),t?.()):s({request:n})}),[e,o,l,r,t,a,s]);return(0,n.createElement)(c.Ay,{blockType:e,onRequestSuggestion:(e,t,r)=>{A({promptType:e,options:t,humanText:r})},onAskAiAssistant:async()=>{A()},disabled:!1})}function d({behavior:e,blockType:t,label:r=__("AI Assistant","jetpack"),onAskAiAssistant:l,onRequestSuggestion:c}){const{tracks:u}=(0,o.st)(),d=(0,i.useContext)(A.B),p=(0,i.useCallback)((e=>{e&&u.recordEvent("jetpack_ai_assistant_extension_toolbar_menu_show",{block_type:t})}),[t,u]),m=(0,i.useCallback)((()=>{u.recordEvent("jetpack_editor_ai_assistant_extension_toolbar_prompt_show",{block_type:t}),l?.()}),[t,l,u]),h=(0,i.useCallback)(((e,r,n)=>{u.recordEvent("jetpack_editor_ai_assistant_extension_toolbar_button_click",{suggestion:e,block_type:t}),c?.(e,r,n)}),[t,c,u]);return(0,n.createElement)(s.Dropdown,{popoverProps:{variant:"toolbar"},renderToggle:({isOpen:t,onToggle:o})=>(0,n.createElement)(s.ToolbarButton,{className:"jetpack-ai-assistant__button",showTooltip:!0,onClick:()=>{if("function"!=typeof e)switch(e){case"action":m();break;case"dropdown":o()}else e({onToggle:o,onAskAiAssistant:l,context:d})},"aria-haspopup":"true","aria-expanded":t,label:r,icon:a.cj}),onToggle:p,renderContent:({onClose:e})=>(0,n.createElement)(g,{onClose:e,blockType:t,onAskAiAssistant:m,onRequestSuggestion:h})})}},95396:(e,t,r)=>{"use strict";r.d(t,{L:()=>a,l:()=>n});const n=["jetpack/field-name","jetpack/field-email","jetpack/field-text","jetpack/field-textarea","jetpack/field-checkbox","jetpack/field-date","jetpack/field-telephone","jetpack/field-url","jetpack/field-checkbox-multiple","jetpack/field-radio","jetpack/field-select","jetpack/field-consent","jetpack/button"],a=["core/heading","core/paragraph","core/list-item","core/list","jetpack/contact-form",...n]},2612:(e,t,r)=>{"use strict";r.d(t,{B:()=>m,Q:()=>h});var n=r(86087),a=r(10067),o=r.n(a),s=r(10603),i=r(95396),l=r(42160),c=r(47007),u=r(75430),A=r(24310),g=r(63904);const d=o()("jetpack-ai-assistant:extensions:get-block-handler"),p={"core/heading":l.T,"core/paragraph":g.d,"core/list-item":A.g,"core/list":u.b,"jetpack/contact-form":c.p,...i.l.reduce(((e,t)=>({...e,[t]:c.g})),{})},m=(0,n.createContext)({});function h(e,t){let r=p[e];r||(d(`No handler found for block type: ${e}. Using default handler.`),r=s.mt);const n=new r(t);return{onSuggestion:n.onSuggestion.bind(n),onDone:n.onDone.bind(n),getContent:n.getContent.bind(n),getExtensionInputPlaceholder:n.getExtensionInputPlaceholder.bind(n),behavior:n.behavior,isChildBlock:n.isChildBlock,feature:n.feature,adjustPosition:n.adjustPosition,startOpen:n.startOpen,hideOnBlockFocus:n.hideOnBlockFocus}}},42160:(e,t,r)=>{"use strict";r.d(t,{T:()=>a});var n=r(10603);class a extends n.mt{constructor(e){super(e,[])}onSuggestion(e){const t=this.getBlock();if(e.startsWith("#")||(e=`${"#".repeat(t?.attributes?.level||1)} ${e}`),e.match(/^#*\s*$/))return;const r=this.renderContent(e);this.replaceBlockContent(r)}}},14602:(e,t,r)=>{"use strict";r.d(t,{g:()=>o});var n=r(47143),a=r(10603);class o extends a.mt{jetpackFormBlockName="jetpack/contact-form";constructor(e){super(e,[]),this.behavior=this.handleBehavior,this.isChildBlock=!0,this.hideOnBlockFocus=!1}handleBehavior=({context:e})=>{const t=(0,n.dispatch)("core/block-editor"),{getBlockParentsByBlockName:r}=(0,n.select)("core/block-editor"),a=r(this.clientId,this.jetpackFormBlockName)?.[0];t.selectBlock(a),e?.[this.jetpackFormBlockName]?.handleAskAiAssistant?.()}}},47007:(e,t,r)=>{"use strict";r.d(t,{g:()=>c.g,p:()=>u});var n=r(74997),a=r(47143),o=r(27723),s=r(62514),i=r(96568),l=r(10603),c=r(14602);const __=o.__;class u extends l.mt{currentListOfValidBlocks=[];constructor(e){super(e,[]),this.behavior="action",this.feature="jetpack-form-ai-extension",this.adjustPosition=!1,this.startOpen=!0,this.hideOnBlockFocus=!1}setContent(e,t=!1){const{replaceInnerBlocks:r}=(0,a.dispatch)("core/block-editor"),o=e.replace(/<!-- (\/)*wp:jetpack\/(contact-)*form ({[^}]*} )*(\/)*-->/g,""),l=(0,i.d)(o),c=(0,n.parse)(l).filter((e=>e.isValid&&!["core/freeform","core/missing","core/html"].includes(e.name)));let u=!1;if(c.length<this.currentListOfValidBlocks.length)c.push(this.currentListOfValidBlocks[this.currentListOfValidBlocks.length-1]);else if(c.length===this.currentListOfValidBlocks.length&&c.length>0){const e=c[c.length-1],t=this.currentListOfValidBlocks[c.length-1];u=!(0,s.w)(e,t)}if(c.length>0&&(c.length!==this.currentListOfValidBlocks.length||u)&&(r(this.clientId,c),this.currentListOfValidBlocks=c),t){const e=c.filter((e=>"jetpack/button"===e.name));if(this.currentListOfValidBlocks=this.currentListOfValidBlocks||[],e.length>1){let t=0;this.currentListOfValidBlocks=this.currentListOfValidBlocks.filter((r=>"jetpack/button"!==r.name||(t++,t===e.length))),r(this.clientId,this.currentListOfValidBlocks)}else 0===e.length&&r(this.clientId,[...this.currentListOfValidBlocks,(0,n.createBlock)("jetpack/button",{label:__("Submit","jetpack"),element:"button",text:__("Submit","jetpack"),borderRadius:8,lock:{remove:!0}})]);this.currentListOfValidBlocks=[]}}getExtensionInputPlaceholder(){if(!this.getContent()){const e=[__("Example: a contact form with name, email, and message fields","jetpack"),__("Example: a pizza ordering form with name, address, phone number and toppings","jetpack"),__("Example: a survey form with multiple choice questions","jetpack")];return e[Math.floor(Math.random()*e.length)]}const e=[__("Example: remove email field","jetpack"),__("Example: make email optional","jetpack"),__("Example: add message field and make it required","jetpack")];return e[Math.floor(Math.random()*e.length)]}getContent(){const e=this.getBlock();if(!e)return"";const{innerBlocks:t}=e;return t?.length?t.reduce(((e,t)=>e+(0,n.serialize)(t)+"\n\n"),""):""}onSuggestion(e){this.setContent(e)}onDone(e){this.setContent(e,!0)}}},10821:(e,t,r)=>{"use strict";r.d(t,{Bi:()=>i});var n=r(74997),a=r(47143),o=r(7503);const s=(0,r(48499).C)("ai-assistant-support");function i(){if(!(0,n.getBlockType)("jetpack/ai-assistant"))return!1;if(!s)return!1;if(!(0,o.x)())return!1;const{errorCode:e}=(0,a.select)("wordpress-com/plans")?.getAiAssistantFeature?.()||{};if(e)return!1;const{getHiddenBlockTypes:t}=(0,a.select)("core/edit-post")||{};return!(t?.()||[]).includes("jetpack/ai-assistant")}},91184:(e,t,r)=>{"use strict";r.d(t,{Y:()=>o});var n=r(95396),a=r(10821);function o(e){return!!(0,a.Bi)()&&!!n.L.includes(e)}},24310:(e,t,r)=>{"use strict";r.d(t,{g:()=>a});var n=r(10603);class a extends n.mt{constructor(e){super(e,["listItem"]),this.isChildBlock=!0}}},75430:(e,t,r)=>{"use strict";r.d(t,{b:()=>a});var n=r(10603);class a extends n.mt{constructor(e){super(e,["list"])}}},63904:(e,t,r)=>{"use strict";r.d(t,{d:()=>i});var n=r(96865),a=r(74997),o=r(10603);const s=new n.OO({fixes:["paragraph"]});class i extends o.mt{constructor(e){super(e,["paragraph"])}getContent(){const e=this.getBlock();return t=(0,a.getBlockContent)(e),s.render({content:t});var t}}},99800:(e,t,r)=>{"use strict";var n=r(82170),a=r(96865),o=r(94715),s=r(29491),i=r(47143),l=r(86087),c=r(52619),u=r(13022),A=r(10067),g=r.n(A),d=(r(51609),r(61297)),p=r(32735),m=r(4e4),h=r(67607),E=r(31124),f=r(2612),C=r(91184);const B=g()("jetpack-ai-assistant:extensions:with-ai-extension"),b={"core/heading":"heading","core/paragraph":"paragraph","core/list-item":"list-item","core/list":"list","jetpack/contact-form":"form-ai"},k={group:"block"},y=(0,s.createHigherOrderComponent)((e=>t=>{const{clientId:r,isSelected:s,name:c,isSelectionEnabled:A}=t,g=(0,l.useRef)(null),C=(0,l.useRef)(0),y=(0,l.useRef)(null),v=(0,l.useRef)(""),I=(0,l.useRef)(null),_=(0,l.useRef)(document),w=(0,l.useRef)([]),[Q,S]=(0,l.useState)(""),x=(0,l.useRef)(null),j=(0,l.useRef)(null),{undo:L}=(0,i.useDispatch)("core/editor"),{postId:N}=(0,i.useSelect)((e=>{const{getCurrentPostId:t}=e("core/editor");return{postId:t()}}),[]),{id:T,className:R}=(0,o.useBlockProps)({className:(0,u.A)({[c?.replace?.("/","-")]:!0})}),{increaseRequestsCount:P,dequeueAsyncRequest:D,requireUpgrade:M}=(0,d.A)(),{snapToBottom:F,enableAutoScroll:O,disableAutoScroll:U}=(0,p.A)({current:_?.current?.getElementById(T)},void 0,!0),H=(0,l.useCallback)((()=>{I.current?.focus()}),[]),{onSuggestion:z,onDone:q,getContent:V,getExtensionInputPlaceholder:G,behavior:$,isChildBlock:Z,feature:W,adjustPosition:Y,startOpen:K,hideOnBlockFocus:J}=(0,l.useMemo)((()=>(0,f.Q)(c,r)),[c,r]),X=G(),[ee,te]=(0,l.useState)(K),re=(0,l.useCallback)((()=>{te((e=>!e))}),[]),ne=(0,l.useCallback)((({promptType:e,options:t})=>{const r=V(),n=b[c];return[...w.current,{role:"jetpack-ai",context:{type:(0,m.p$)(e,n),content:r,request:t?.userPrompt,tone:t?.tone,language:t?.language,is_follow_up:w.current.length>0}}]}),[c,V]),ae=(0,l.useCallback)((e=>{const t=e||_.current.getElementById(T);t&&g.current&&t.style.setProperty("padding-bottom",`calc(${C.current+16}px + ${v.current||"0px"} )`,"important")}),[T]),oe=(0,l.useCallback)((e=>{z(e),Y&&ae(),F()}),[z,Y,F,ae]),se=(0,l.useCallback)((e=>{if(U(),q(e),P(),S(""),x.current?.message){const e={role:"assistant",content:V()};if(w.current.push(x.current.message,e),w.current.length>20){w.current.splice(0,w.current.length-20);const e=w.current.findIndex((e=>"jetpack-ai"===e.role));-1!==e&&(w.current=w.current.slice(e),w.current[0].context={...w.current[0].context,is_follow_up:!1})}}x.current=null,setTimeout((()=>{Y&&ae(),H()}),100)}),[U,q,P,V,Y,H,ae]),ie=(0,l.useCallback)((e=>{U(),S(""),B("Request error",e),e.code!==a.mA&&e.code!==a.Or&&P()}),[U,P]),{request:le,stopSuggestion:ce,requestingState:ue,error:Ae,reset:ge}=(0,a.o2)({onSuggestion:oe,onDone:se,onError:ie,askQuestionOptions:{postId:N,feature:W}});(0,l.useEffect)((()=>{j.current=ue}),[ue]);const de=(0,l.useCallback)(((e,t,r)=>{if(te(!0),M)return;r&&S(r);const n=ne({promptType:e,options:t});B("Request suggestion",e,t);const a=n[n.length-1];x.current={promptType:e,options:t,humanText:r,message:a},D(),O(),le(n)}),[D,O,ne,le,M]),pe=(0,l.useCallback)((e=>{const t={userPrompt:e};O(),de("userPrompt",t)}),[O,de]),me=(0,l.useCallback)((()=>{U(),ce(),H()}),[U,ce,H]),he=(0,l.useCallback)((()=>{x.current&&de(x.current.promptType,x.current.options,x.current.humanText)}),[x,de]),Ee=(0,l.useCallback)((()=>{te(!1),ge(),S(""),x.current=null,w.current=[]}),[ge]),fe=(0,l.useCallback)((async()=>{await L(),Ee()}),[L,Ee]);(0,l.useEffect)((()=>{s||Ee()}),[s,Ee]),(0,l.useEffect)((()=>{I.current&&A&&(_.current=I.current.ownerDocument,H())}),[ee,H,A]),(0,l.useEffect)((()=>{let e=_.current.getElementById(T);if(e&&Y)return ee&&!y.current&&g.current?(v.current=e.style.paddingBottom,y.current=new ResizeObserver((([t])=>{if(e=_.current.getElementById(T),C.current=t.contentRect.height,e&&g.current&&C.current>0){ae(e);const{marginBottom:t}=getComputedStyle(e),r=parseFloat(t);g.current.style.setProperty("margin-top",`-${C.current+r}px`,"important"),g.current.style.setProperty("margin-bottom",`${r+16}px`,"important")}})),y.current.observe(g.current)):y.current&&(e.style.paddingBottom=v.current,y.current.disconnect(),y.current=null,C.current=0),()=>{y.current&&y.current.disconnect()}}),[ae,Y,r,y,T,ee]),(0,l.useEffect)((()=>{if(J&&ee){const e=_.current.getElementById(T),t=()=>{["requesting","suggesting"].includes(j.current)||(te(!1),e?.removeEventListener("focusin",t))};return e?.addEventListener("focusin",t),()=>{e?.removeEventListener("focusin",t)}}}),[J,ee,T]);const Ce=(0,n.createElement)(n.Fragment,null,(0,n.createElement)(e,t),ee&&(0,n.createElement)(h.A,{customPlaceholder:X||null,className:R,requestingState:ue,requestingError:Ae,wrapperRef:g,inputRef:I,action:Q,blockType:c,feature:W,request:pe,stopSuggestion:me,close:Ee,undo:fe,tryAgain:he}),(0,n.createElement)(o.BlockControls,k,(0,n.createElement)(E.A,{blockType:c,onAskAiAssistant:re,onRequestSuggestion:de,behavior:$})));if(Z)return Ce;const Be={value:{[c]:{handleAskAiAssistant:re,handleRequestSuggestion:de}}};return(0,n.createElement)(f.B.Provider,Be,Ce)}),"blockEditWithAiComponents");(0,c.addFilter)("blocks.registerBlockType","jetpack/ai-assistant-support/with-ai-extension",(function(e,t){return(0,C.Y)(t)?{...e,edit:y(e.edit),supports:{...e.supports,"jetpack/ai":{assistant:!0}}}:e}),100)},4393:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n=r(96865),a=r(47143),o=r(86087),s=r(10067),i=r.n(s),l=r(62402),c=r(64425),u=r(16597),A=r(32735);const g=i()("jetpack-ai-assistant:error"),d=({attributes:e,clientId:t,content:r,tracks:s,userPrompt:i,onSuggestionDone:d,onUnclearPrompt:p,onModeration:m,requireUpgrade:h,initialRequestingState:E,contentRef:f,blockRef:C})=>{const[B,b]=(0,o.useState)(!1),[k,y]=(0,o.useState)(""),{updateBlockAttributes:v}=(0,a.useDispatch)("core/block-editor"),{dequeueAiAssistantFeatureAsyncRequest:I,setAiAssistantFeatureRequireUpgrade:_}=(0,a.useDispatch)("wordpress-com/plans"),{snapToBottom:w,enableAutoScroll:Q,disableAutoScroll:S}=(0,A.A)(C,f),x=(0,a.useSelect)((e=>e("core/editor").getEditedPostAttribute("title"))),j=(0,a.useSelect)((e=>e("core/editor").getCurrentPostId())),L=(0,o.useRef)([]),N=(0,o.useRef)(void 0),{request:T,stopSuggestion:R,handleErrorQuotaExceededError:P,requestingState:D,error:M}=(0,n.o2)({onSuggestion:e=>{v(t,{content:e?.replaceAll(c.uV,"")}),w()},onDone:e=>{const r=e.replaceAll(c.uV,""),n={role:"assistant",content:r};L.current.push(N.current,n),L.current.length>20&&L.current.splice(0,L.current.length-20),v(t,{content:r,messages:L.current}),w(),S(),d?.()},onStop:()=>{w(),S(),d?.()},onError:e=>{switch(e?.code){case n.cT:b(!1);break;case n.ud:b(!1),m?.();break;case n.mA:case n.AZ:b(!0);break;case n.Or:b(!1),_(!0);break;case n.L9:p?.()}},onAllErrors:e=>{g(e)},initialRequestingState:E,askQuestionOptions:{postId:j,feature:"ai-assistant",functions:{}}}),F=["requesting","suggesting"].includes(D),O=async(n,a={})=>{if(I(),h)return P(),void b(!1);if(a={retryRequest:!1,tone:l.US,...a},F)return;b(!1);let o=k;if(s.recordEvent("jetpack_ai_chat_completion",{post_id:j}),L.current=[...e.messages]??[],N.current={},a.retryRequest)N.current=o[o.length-1];else{const s=e?.isLayoutBuldingModeEnable?(0,u.rJ)(t):(0,u.aB)();o=(0,c.jf)({generatedContent:r,allPostContent:s,postContentAbove:(0,u.b$)(t),currentPostTitle:x,options:a,userPrompt:a?.userPrompt||i,type:n,isGeneratingTitle:"generateTitle"===e.promptType}),N.current=o.pop(),o=[...o,...L.current],o.push(N.current),y(o),"generateTitle"!==e.promptType&&v(t,{promptType:n})}try{Q(),await T(o)}catch(e){g(e),b(!0),S()}};return{setShowRetry:b,showRetry:B,postTitle:x,contentBefore:(0,u.b$)(t),wholeContent:(0,u.aB)(),requestingState:D,error:M,getSuggestionFromOpenAI:O,stopSuggestion:R,retryRequest:()=>O("",{retryRequest:!0})}}},92169:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(3924),a=r(85985),o=r(10617),s=r(61297);const i=()=>{const e=new URLSearchParams(window.location.search),t=(0,a.GE)();return(0,a.Sy)()&&e.has("post")?`https://wordpress.com/post/${t}/${e.get("post")}`:`https://wordpress.com/home/${t}`};function l(){const{nextTier:e,tierPlansEnabled:t}=(0,s.A)(),r=i(),l=(0,n.A)("jetpack-ai-yearly-tier-upgrade-nudge",{site:(0,a.GE)(),path:t?`jetpack_ai_yearly:-q-${e?.limit}`:"jetpack_ai_yearly",query:`redirect_to=${encodeURIComponent(r)}`}),c=(0,n.A)("jetpack-ai-upgrade-url-for-jetpack-sites",{site:(0,a.GE)(),path:"jetpack_ai_yearly"}),u=(0,a.d9)()||(0,a.Sy)()?l:c,{autosaveAndRedirect:A,isRedirecting:g}=(0,o.A)(u);return{checkoutUrl:u,autosaveAndRedirect:A,isRedirecting:g}}},61297:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(47143),a=r(58164);function o(){const{data:e,loading:t,requestsLimit:r,requestsCount:o}=(0,n.useSelect)((e=>{const{getAiAssistantFeature:t,getIsRequestingAiAssistantFeature:r}=e("wordpress-com/plans"),n=t(),{currentTier:o,usagePeriod:s,requestsCount:i,requestsLimit:l}=n,c=(0,a.Bd)(o),u=o?.limit||l,A=c===a._X?i:s?.requestsCount,g=c===a._X?l:u;return{data:n,loading:r(),requestsCount:A,requestsLimit:g}}),[]),{fetchAiAssistantFeature:s,increaseAiAssistantRequestsCount:i,dequeueAiAssistantFeatureAsyncRequest:l}=(0,n.useDispatch)("wordpress-com/plans");return{...e,requestsCount:o,requestsLimit:r,loading:t,error:null,refresh:s,increaseRequestsCount:i,dequeueAsyncRequest:l}}},44732:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(3924),a=r(85985),o=r(10617);function s(){const e=(0,a.$i)()?.jetpack?.is_my_jetpack_available,t=e?`${(0,a.$i)()?.adminUrl||""}admin.php?page=my-jetpack#/jetpack-ai`:(0,n.A)("org-ai"),{autosaveAndRedirect:r,isRedirecting:s}=(0,o.A)(t);return{productPageUrl:t,autosaveAndRedirect:r,isRedirecting:s,isMyJetpackAvailable:e}}},75956:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(90372),a=r(86087);const o=window?.Jetpack_Editor_Initial_State?.tracksUserData||null,s=parseInt(window?.Jetpack_Editor_Initial_State?.wpcomBlogId)||0,i=()=>((0,a.useEffect)((()=>{o&&n.A.initialize(o?.userid,o?.username,s?{blog_id:s}:{})}),[]),n.A)},32735:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(86087),a=r(10067);const o=r.n(a)()("jetpack-ai-assistant:use-auto-scroll"),s=(e,t,r=!1)=>{const a=(0,n.useRef)(null),s=(0,n.useRef)(null),i=(0,n.useRef)(!1),l=(0,n.useRef)(!1),c=(0,n.useRef)(!1),u=(0,n.useRef)(!1),A=(0,n.useRef)({scrollPadding:"",scrollMargin:""}),g=(0,n.useCallback)((()=>{o("enabling ignore scroll"),l.current=!0}),[]),d=(0,n.useCallback)((()=>{i.current&&c.current&&!l.current&&g()}),[g]),p=(0,n.useCallback)((()=>{i.current=!0,l.current=!1,c.current=!1,u.current=!1,a.current?.addEventListener("scroll",d),o("enabling auto scroll")}),[d]),m=(0,n.useCallback)((()=>{i.current=!1,l.current=!1,c.current=!1,u.current=!1,a.current?.removeEventListener("scroll",d),s.current?.style&&(s.current.style.scrollPadding=A.current.scrollPadding,s.current.style.scrollMargin=A.current.scrollMargin),a.current=null,o("disabling auto scroll")}),[d]),h=(0,n.useCallback)((()=>{if(!i.current||l.current)return;const n=r?e?.current:t?.current?.firstElementChild?.lastElementChild;n&&!u.current&&(c.current=!0,u.current=!0,a?.current?.removeEventListener?.("scroll",d),n?.scrollIntoView({block:"end",inline:"end"}),setTimeout((()=>{u.current=!1,a?.current?.addEventListener?.("scroll",d)}),200))}),[e,t,r,d]),E=(0,n.useCallback)((e=>{if(null==e)return null;if("BODY"===e?.nodeName)return e;if(e?.ownerDocument!==document)return e.ownerDocument;const{overflow:t}=window.getComputedStyle(e);return t.split(" ").every((e=>"auto"===e||"scroll"===e))?e:e?.parentElement?E(e?.parentElement):e}),[]);return(0,n.useEffect)((()=>{const t=E(e?.current?.parentElement);!a.current&&t&&(a.current=t,s.current=t instanceof HTMLElement?t:t.documentElement,A.current={scrollPadding:s.current.style.scrollPadding,scrollMargin:s.current.style.scrollMargin},i.current&&(s.current.style.scrollPadding="80px",s.current.style.scrollMargin="10px"))}),[e,E]),{snapToBottom:h,enableAutoScroll:p,disableAutoScroll:m}}},76695:(e,t,r)=>{"use strict";r.d(t,{A:()=>c,y:()=>l});var n=r(85985),a=r(47143),o=r(51609),s=r(16597),i=r(13802);function l(e){return`ai-assistant-block-${e}`}const c=()=>{const{replaceBlock:e,removeBlocks:t}=(0,a.useDispatch)("core/block-editor"),r=(0,a.useSelect)((e=>e("core/block-editor")),[]),{getSelectedBlockClientIds:c,getBlocksByClientId:u,getBlock:A,getBlockParents:g}=r,{tracks:d}=(0,n.st)();return{canTransformToAIAssistant:(0,o.useCallback)((({clientId:e,blockName:t})=>{if(!A(e))return!1;if(!i.y7.includes(t))return!1;const r=g(e);if(0===r.length)return!0;const n=A(r[r.length-1]);return!["core/list","core/list-item"].includes(n.name)}),[A,g]),transformToAIAssistant:(0,o.useCallback)((({request:r}={})=>{const n=c(),a=u(n),o=(0,s.Sb)(a),[A]=a,[g,...p]=n,m={...A?.attributes||{},content:o},h=(0,i.rr)(A.name,m);if(r?.promptType){d.recordEvent("jetpack_editor_ai_assistant_extension_toolbar_button_click",{suggestion:r.promptType,block_type:A.name});const e={clientId:g,type:r.promptType,options:{...r.options,contentType:"generated",fromExtension:!0}};localStorage.setItem(l(h.clientId),JSON.stringify(e))}else d.recordEvent("jetpack_ai_assistant_prompt_show",{block_type:A.name});e(g,h),t(p)}),[u,c,t,e,d]),getSelectedBlockClientIds:c}}},7503:(e,t,r)=>{"use strict";r.d(t,{C:()=>A,x:()=>u});var n=r(85985),a=r(10067),o=r.n(a);const s=window?.JP_CONNECTION_INITIAL_STATE,i=o()("jetpack-ai-assistant:connection");let l=!1;const c=e=>{l||(i(e),l=!0)};function u(){return(0,n.Sy)()?(c("Simple site connected ✅"),!0):(0,n.d9)()?(c("Atomic site connected ✅"),!0):s?.connectionStatus?.isUserConnected?(c("Jetpack user is connected ✅"),!0):(c("User is not connected ❌"),!1)}function A(){if((0,n.Sy)())return!0;return!1==!(s?.userConnectionData?.currentUser?.permissions??{}).manage_options}},4e4:(e,t,r)=>{"use strict";r.d(t,{J1:()=>i,K6:()=>l,p$:()=>u});var n=r(64425);const a="title",o="content",s=null;function i(e){return{role:"jetpack-ai",context:{type:"ai-assistant-initial-prompt",for:u(e)}}}function l({generatedContent:e,allPostContent:t,postContentAbove:r,currentPostTitle:a,options:o,type:s,userPrompt:i,isGeneratingTitle:l}){const u=[],A="generated"===o?.contentType;let g=null;switch(s){case n.im:g=a;break;case n.sn:case n.A4:case n.yy:g=r;break;case n.vE:g=t;break;case n.br:case n.fD:g=e;break;case n.eJ:case n.UA:case n.Gm:g=A?e:t;break;case n.pE:g=e||t}const d=function(e,t){return!e&&t&&t.length>0?{role:"jetpack-ai",context:{type:"ai-assistant-relevant-content",content:t}}:null}(s===n.pE?!!e?.length:A,g);return d&&u.push(d),u.push({role:"jetpack-ai",context:c({generatedContent:e,allPostContent:t,postContentAbove:r,currentPostTitle:a,options:o,type:s,userPrompt:i,isGeneratingTitle:l})}),u}function c({options:e,type:t,userPrompt:r,isGeneratingTitle:i}){const l=function(e,t,r){return e?a:!t||r?o:s}(i,"generated"===e?.contentType,e?.fromExtension||!1);return{type:u(t),...l?{subject:l}:{},...t===n.eJ&&e?.tone?{tone:e.tone}:{},...t===n.Gm&&e?.language?{language:e.language}:{},...t===n.pE&&r?{request:r}:{}}}function u(e,t){const r={[n.im]:"ai-assistant-summary-by-title",[n.sn]:"ai-assistant-continue-writing",[n.A4]:"ai-assistant-simplify",[n.yy]:"ai-assistant-correct-spelling",[n.vE]:"ai-assistant-generate-title",[n.br]:"ai-assistant-make-longer",[n.fD]:"ai-assistant-make-shorter",[n.eJ]:"ai-assistant-change-tone",[n.UA]:"ai-assistant-summarize",[n.Gm]:"ai-assistant-change-language",[n.pE]:"ai-assistant-user-prompt"};return"form-ai"===t?"form-ai-extension":t?`${r[e]}-${t}-extension`:r[e]}},64425:(e,t,r)=>{"use strict";r.d(t,{A4:()=>s,Gm:()=>d,UA:()=>g,br:()=>c,eJ:()=>A,fD:()=>u,im:()=>a,jf:()=>h,pE:()=>p,sn:()=>o,uV:()=>m,vE:()=>l,yy:()=>i});var n=r(4e4);const a="titleSummary",o="continue",s="simplify",i="correctSpelling",l="generateTitle",c="makeLonger",u="makeShorter",A="changeTone",g="summarize",d="changeLanguage",p="userPrompt",m="````";function h({generatedContent:e,allPostContent:t,postContentAbove:r,currentPostTitle:a,options:o,type:s,userPrompt:i,isGeneratingTitle:l}){return[(0,n.J1)(s),...(0,n.K6)({generatedContent:e,allPostContent:t,postContentAbove:r,currentPostTitle:a,options:o,type:s,userPrompt:i,isGeneratingTitle:l})]}},16597:(e,t,r)=>{"use strict";r.d(t,{Sb:()=>l,aB:()=>i,b$:()=>s,rJ:()=>c});var n=r(96865),a=r(74997),o=r(47143);function s(e){if(!e)return"";const t=(0,o.select)("core/block-editor"),r=t.getBlockIndex(e),s=t.getBlocks().slice(0,r)??[];return s?.length?(0,n.rh)({content:(0,a.serialize)(s)}):""}function i(){const e=(0,o.select)("core/block-editor").getBlocks();return e?.length?(0,n.rh)({content:(0,a.serialize)(e)}):""}function l(e){return e.filter((e=>null!=e)).map((e=>(0,a.getBlockContent)(e))).join("\n\n")}function c(e){const t=(0,o.select)("core/block-editor").getBlock(e);return t?.innerBlocks?.length?l(t.innerBlocks):""}},47264:(e,t,r)=>{"use strict";function n(e){return e&&"string"==typeof e?e.charAt(0).toUpperCase()+e.slice(1):""}r.d(t,{Z:()=>n})},62514:(e,t,r)=>{"use strict";r.d(t,{w:()=>o});const n=e=>{delete e.clientId;for(const t of e.innerBlocks??[])n(t);return e},a=e=>n((e=>JSON.parse(JSON.stringify(e)))(e));function o(e,t){const r=a(e),n=a(t);return JSON.stringify(r)===JSON.stringify(n)}},96568:(e,t,r)=>{"use strict";function n(e){const t=document.createElement("div");return t.innerHTML=e,t.innerHTML}r.d(t,{d:()=>n})},48499:(e,t,r)=>{"use strict";function n(e){return!0===window?.Jetpack_Editor_Initial_State?.available_blocks?.[e]?.available}r.d(t,{C:()=>n})},13802:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>c,rr:()=>l,y7:()=>s});var n=r(96865),a=r(74997),o=r(54681);const s=["core/heading","core/paragraph","core/list"],i=[];function l(e,t){const{content:r,...s}=t;let i=r;"core/heading"===e&&t?.level&&(i=i.replace(/<(\/?)h\d([^>]*)>/g,`<$1h${t.level}$2>`));const l=(0,n.rh)({content:i}),c=[];return c.push({role:"jetpack-ai",context:{type:"ai-assistant-relevant-content",content:l}}),(0,a.createBlock)(o.name,{...s,content:l,originalContent:l,messages:c,originalMessages:c})}for(const e of s)i.push({type:"block",blocks:[e],isMatch:()=>s.includes(e),transform:(t,r)=>{const n=(0,a.getSaveContent)(e,t,r);return l(e,{...t,content:n})}});const c={from:i}},60487:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});var n=r(82170),a=r(56427),o=r(86087),s=r(27723),i=r(13022),l=r(66087);const __=s.__,c="09:00",u="17:00";class A extends o.Component{renderInterval=(e,t)=>{const{day:r}=this.props,{opening:s,closing:l}=e;return(0,n.createElement)(o.Fragment,{key:t},(0,n.createElement)("div",{className:"business-hours__row"},(0,n.createElement)("div",{className:(0,i.A)(r.name,"business-hours__day")},0===t&&this.renderDayToggle()),(0,n.createElement)("div",{className:(0,i.A)(r.name,"business-hours__hours")},(0,n.createElement)(a.TextControl,{__nextHasNoMarginBottom:!0,type:"time",label:__("Opening","jetpack"),value:s,className:"business-hours__open",placeholder:c,onChange:e=>{this.setHour(e,"opening",t)}}),(0,n.createElement)(a.TextControl,{__nextHasNoMarginBottom:!0,type:"time",label:__("Closing","jetpack"),value:l,className:"business-hours__close",placeholder:u,onChange:e=>{this.setHour(e,"closing",t)}})),(0,n.createElement)("div",{className:"business-hours__remove"},r.hours.length>1&&(0,n.createElement)(a.Button,{isSmall:!0,variant:"link",icon:"trash",label:__("Remove Hours","jetpack"),onClick:()=>{this.removeInterval(t)}}))),t===r.hours.length-1&&(0,n.createElement)("div",{className:"business-hours__row business-hours-row__add"},(0,n.createElement)("div",{className:(0,i.A)(r.name,"business-hours__day")}," "),(0,n.createElement)("div",{className:(0,i.A)(r.name,"business-hours__hours")},(0,n.createElement)(a.Button,{variant:"link",label:__("Add Hours","jetpack"),onClick:this.addInterval},__("Add Hours","jetpack"))),(0,n.createElement)("div",{className:"business-hours__remove"}," ")))};setHour=(e,t,r)=>{const{day:n,attributes:a,setAttributes:o}=this.props,{days:s}=a;o({days:s.map((a=>a.name===n.name?{...a,hours:a.hours.map(((n,a)=>a===r?{...n,[t]:e}:n))}:a))})};toggleClosed=e=>{const{day:t,attributes:r,setAttributes:n}=this.props,{days:a}=r;n({days:a.map((r=>{if(r.name===t.name){const t=e?[{opening:c,closing:u}]:[];return{...r,hours:t}}return r}))})};addInterval=()=>{const{day:e,attributes:t,setAttributes:r}=this.props,{days:n}=t;e.hours.push({opening:"",closing:""}),r({days:n.map((t=>t.name===e.name?{...t,hours:e.hours}:t))})};removeInterval=e=>{const{day:t,attributes:r,setAttributes:n}=this.props,{days:a}=r;n({days:a.map((r=>t.name===r.name?{...r,hours:r.hours.filter(((t,r)=>e!==r))}:r))})};isClosed(){const{day:e}=this.props;return(0,l.isEmpty)(e.hours)}renderDayToggle(){const{day:e,localization:t}=this.props;return(0,n.createElement)(o.Fragment,null,(0,n.createElement)("span",{className:"business-hours__day-name"},t.days[e.name]),(0,n.createElement)(a.ToggleControl,{__nextHasNoMarginBottom:!0,label:this.isClosed()?__("Closed","jetpack"):__("Open","jetpack"),checked:!this.isClosed(),onChange:this.toggleClosed}))}renderClosed(){const{day:e}=this.props;return(0,n.createElement)("div",{className:"business-hours__row business-hours-row__closed"},(0,n.createElement)("div",{className:(0,i.A)(e.name,"business-hours__day")},this.renderDayToggle()),(0,n.createElement)("div",{className:(0,i.A)(e.name,"closed","business-hours__hours")}," "),(0,n.createElement)("div",{className:"business-hours__remove"}," "))}render(){const{day:e}=this.props;return this.isClosed()?this.renderClosed():e.hours.map(this.renderInterval)}}const g=A},39943:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(82170),a=r(86087),o=r(27723),s=r(66087);const _x=o._x,i="undefined"!=typeof window&&window.navigator?.language||"en",l=Intl?.DateTimeFormat?new Intl.DateTimeFormat(i,{hour:"numeric",minute:"numeric",hour12:!0}):null;class c extends a.Component{formatTime(e){const[t,r]=e.split(":");if(!t||!r)return!1;const n=new Date;return n.setHours(t),n.setMinutes(r),l?l.format(n):e}renderInterval=(e,t)=>{const{day:r}=this.props,a=r.hours;return(0,n.createElement)("span",{key:t},(0,o.sprintf)("%1$s - %2$s",this.formatTime(e.opening),this.formatTime(e.closing)),a.length>1+t&&(0,n.createElement)("span",null,", "))};render(){const{day:e,localization:t}=this.props,r=e.hours.filter((e=>this.formatTime(e.opening)&&this.formatTime(e.closing)));return(0,n.createElement)("div",{className:"jetpack-business-hours__item"},(0,n.createElement)("dt",{className:e.name},t.days[e.name]),(0,n.createElement)("dd",null,(0,s.isEmpty)(r)?_x("Closed","business is closed on a full day","jetpack"):r.map(this.renderInterval),(0,n.createElement)("br",null)))}}const u=c},39155:(e,t,r)=>{"use strict";r.d(t,{A:()=>C});var n=r(96072),a=r.n(n),o=r(82170),s=r(85985),i=r(1455),l=r.n(i),c=r(94715),u=r(56427),A=r(38443),g=r(86087),d=r(27723),p=r(9050),m=r(60487),h=r(39943);const __=d.__,E=(0,s.sh)(p),f={days:{Sun:__("Sunday","jetpack"),Mon:__("Monday","jetpack"),Tue:__("Tuesday","jetpack"),Wed:__("Wednesday","jetpack"),Thu:__("Thursday","jetpack"),Fri:__("Friday","jetpack"),Sat:__("Saturday","jetpack")},startOfWeek:0},C=e=>{const{attributes:t,isSelected:r}=e,n=(0,c.useBlockProps)(),[s,i]=(0,g.useState)(f),[d,p]=(0,g.useState)(!1),{days:C}=t,{startOfWeek:B}=s,b=C.concat(C.slice(0,B)).slice(B);let k;if((0,g.useEffect)((()=>{l()({path:"/wpcom/v2/business-hours/localized-week"}).then((e=>{i(e),p(!0)}),(()=>{i(f),p(!0)}))}),[]),d)if(r)k=(0,o.createElement)("div",{className:"is-edit"},b.map(((t,r)=>(0,o.createElement)(m.A,a()({key:r,day:t,localization:s},e)))));else{const e=(0,A.getSettings)(),{formats:{time:t}}=e;k=(0,o.createElement)("dl",{className:"jetpack-business-hours"},b.map(((e,r)=>(0,o.createElement)(h.A,{key:r,day:e,localization:s,timeFormat:t}))))}else k=(0,o.createElement)(u.Placeholder,{icon:E,label:__("Loading business hours","jetpack")});return(0,o.createElement)("div",n,k)}},71410:(e,t,r)=>{"use strict";var n=r(82170),a=r(94375),o=r(9050),s=r(39155);(0,a.M)(o,{edit:e=>(0,n.createElement)(s.A,e),save:()=>null})},7325:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(56427),a=r(66087);const o=(0,n.withFallbackStyles)(((e,t)=>{const{backgroundColor:r,textColor:n}=t,o=(0,a.get)(r,"color"),s=!(0,a.get)(n,"color")&&e?e.querySelector('[contenteditable="true"]'):null;return{fallbackBackgroundColor:o||!e?void 0:getComputedStyle(e).backgroundColor,fallbackTextColor:n||!s?void 0:getComputedStyle(s).color}}))},28310:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(20710);const a={element:{type:"string",enum:["a","button","input"]},saveInPostContent:{type:"boolean",default:!1},uniqueId:{type:"string"},passthroughAttributes:{type:"object"},text:{type:"string"},placeholder:{type:"string"},url:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string",validator:n.A},backgroundColor:{type:"string"},customBackgroundColor:{type:"string",validator:n.A},gradient:{type:"string"},customGradient:{type:"string"},borderRadius:{type:"number"},width:{type:"string"}}},12365:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(82170),a=r(56427),o=r(86087),s=r(27723),i=r(8746);const __=s.__;function l({borderRadius:e="",setAttributes:t}){const r=(0,o.useCallback)((e=>t({borderRadius:e})),[t]);return(0,n.createElement)(a.PanelBody,{title:__("Border Settings","jetpack")},(0,n.createElement)(a.RangeControl,{__nextHasNoMarginBottom:!0,allowReset:!0,initialPosition:i.hc,label:__("Border radius","jetpack"),max:i.Bs,min:i.rG,onChange:r,value:e}))}},10179:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(82170),a=r(94715),o=r(27723);const __=o.__;function s({isGradientAvailable:e,backgroundColor:t,fallbackBackgroundColor:r,fallbackTextColor:o,gradientValue:s,setBackgroundColor:i,setGradient:l,setTextColor:c,textColor:u}){const A=(0,n.createElement)(a.ContrastChecker,{backgroundColor:t.color,fallbackBackgroundColor:r,fallbackTextColor:o,isLargeText:!1,textColor:u.color});return e?(0,n.createElement)(a.__experimentalPanelColorGradientSettings,{settings:[{colorValue:u.color,label:__("Text Color","jetpack"),onColorChange:c},{colorValue:t.color,gradientValue:s,label:__("Background","jetpack"),onColorChange:i,onGradientChange:l}],title:__("Background & Text Color","jetpack")},A):(0,n.createElement)(a.PanelColorSettings,{colorSettings:[{value:u.color,onChange:c,label:__("Text Color","jetpack")},{value:t.color,onChange:i,label:__("Background","jetpack")}],title:__("Background & Text Color","jetpack")},A)}},8746:(e,t,r)=>{"use strict";r.d(t,{Bs:()=>s,Uc:()=>a,hc:()=>o,rG:()=>i});var n=r(94715);const a=!!n.__experimentalUseGradient,o=5,s=50,i=0},2761:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(82170),a=r(47143),o=r(38062),s=r(12365),i=r(10179);function l({attributes:e,backgroundColor:t,clientId:r,context:l,fallbackBackgroundColor:c,fallbackTextColor:u,setAttributes:A,setBackgroundColor:g,setTextColor:d,textColor:p,gradientValue:m,setGradient:h,isGradientAvailable:E}){const{align:f,borderRadius:C}=e,B="jetpack/parentBlockWidth"in l,b=B?l["jetpack/parentBlockWidth"]:e.width,k=(0,a.useSelect)((e=>{const{getBlock:t,getBlockRootClientId:n}=e("core/block-editor");return t(n(r))})),{updateBlockAttributes:y}=(0,a.useDispatch)("core/block-editor");return(0,n.createElement)(n.Fragment,null,(0,n.createElement)(i.A,{backgroundColor:t,fallbackBackgroundColor:c,fallbackTextColor:u,gradientValue:m,setBackgroundColor:g,setGradient:h,setTextColor:d,textColor:p,isGradientAvailable:E}),(0,n.createElement)(s.A,{borderRadius:C,setAttributes:A}),(0,n.createElement)(o.D,{align:f,width:b,onChange:e=>{B?y(k.clientId,{width:e}):A({width:e})}}))}},55903:(e,t,r)=>{"use strict";r.d(t,{A:()=>m});var n=r(96072),a=r.n(n),o=r(82170),s=r(94715),i=r(29491),l=r(27723),c=r(13022),u=r(89303),A=r(7325),g=r(8746),d=r(2761),p=r(81177);const __=l.__;const m=(0,i.compose)((0,s.withColors)({backgroundColor:"background-color"},{textColor:"color"}),A.A)((function(e){const{attributes:t,backgroundColor:r,className:n,clientId:i,context:l,setAttributes:A,textColor:m}=e,{borderRadius:h,element:E,placeholder:f,text:C,width:B,fontSize:b}=t,k="jetpack/parentBlockWidth"in l;(0,p.A)({attributes:t,clientId:i,setAttributes:A}),(0,u.A)({attributes:t,disableEffects:k,setAttributes:A});const{gradientClass:y,gradientValue:v,setGradient:I}=g.Uc?(0,s.__experimentalUseGradient)({gradientAttribute:"gradient",customGradientAttribute:"customGradient"}):{},_=(0,s.useBlockProps)({className:(0,c.A)("wp-block-button",n)}),w=(0,c.A)("wp-block-button__link",{"has-background":r.color||v,[r.class]:!v&&r.class,"has-text-color":m.color,[m.class]:m.class,[y]:y,"no-border-radius":0===h,"has-custom-width":!!B,[`has-${b}-font-size`]:!!b,"has-custom-font-size":!!b}),Q={...!r.color&&v?{background:v}:{backgroundColor:r.color},fontSize:t.style?.typography?.fontSize,color:m.color,borderRadius:h?h+"px":void 0,width:B};return(0,o.createElement)("div",_,(0,o.createElement)(s.RichText,{allowedFormats:"input"===E?[]:void 0,className:w,disableLineBreaks:"input"===E,onChange:e=>A({text:e}),placeholder:f||__("Add text…","jetpack"),style:Q,value:C,withoutInteractiveFormatting:!0}),(0,o.createElement)(s.InspectorControls,null,(0,o.createElement)(d.A,a()({gradientValue:v,setGradient:I,isGradientAvailable:g.Uc},e))))}))},45878:(e,t,r)=>{"use strict";var n=r(94375),a=r(5383);(0,n.A)(a.U,a.W)},36270:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(82170),a=r(56427);const o=(0,n.createElement)(a.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,n.createElement)(a.Path,{d:"M19 6.5H5c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7c0-1.1-.9-2-2-2zm.5 9c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v7zM8 13h8v-1.5H8V13z"}))},5383:(e,t,r)=>{"use strict";r.d(t,{U:()=>c,W:()=>u});var n=r(27723),a=r(97969),o=r(28310),s=r(55903),i=r(36270),l=r(85154);const __=n.__,c="button",u={apiVersion:3,title:__("Button","jetpack"),icon:i.A,category:(0,a.A)("design","layout"),keywords:[],supports:{html:!1,inserter:!1,align:["left","center","right"],typography:{fontSize:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}}},styles:[{name:"fill",label:__("Fill","jetpack"),isDefault:!0},{name:"outline",label:__("Outline","jetpack")}],attributes:o.A,edit:s.A,save:l.A,usesContext:["jetpack/parentBlockWidth"]}},85154:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(96072),a=r.n(n),o=r(82170),s=r(94715),i=r(13022),l=r(8746);function c({attributes:e,blockName:t,uniqueId:r}){const{backgroundColor:n,borderRadius:c,className:u,customBackgroundColor:A,customGradient:g,customTextColor:d,gradient:p,saveInPostContent:m,text:h,textColor:E,url:f,width:C,fontSize:B}=e;if(!m)return null;const b=s.useBlockProps.save(),k=(0,s.getColorClassName)("background-color",n),y=l.Uc?(0,s.__experimentalGetGradientClass)(p):void 0,v=(0,s.getColorClassName)("color",E),I=(0,i.A)("wp-block-button","jetpack-submit-button",u,b?.className,{[`wp-block-jetpack-${t}`]:t}),_=(0,i.A)("wp-block-button__link",{"has-text-color":E||d,[v]:v,"has-background":n||p||A||g,[k]:k,[y]:y,"no-border-radius":0===c,"has-custom-width":!!C,[`has-${B}-font-size`]:!!B,"has-custom-font-size":!!B}),w={background:g||void 0,backgroundColor:k||g||p?void 0:A,fontSize:e.style?.typography?.fontSize,color:v?void 0:d,borderRadius:c?c+"px":void 0,width:C};return(0,o.createElement)("div",a()({},b,{className:I}),(0,o.createElement)(s.RichText.Content,{className:_,"data-id-attr":r||"placeholder",href:f,id:r,rel:"noopener noreferrer",role:"button",style:w,tagName:"a",target:"_blank",value:h}))}},81177:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(47143),a=r(86087),o=r(66087);function s({attributes:e,clientId:t,setAttributes:r}){const{passthroughAttributes:s}=e,{attributesToSync:i}=(0,n.useSelect)((r=>{const{getBlockAttributes:n,getBlockRootClientId:a}=r("core/block-editor"),i=n(a(t))||{},l=(0,o.mapValues)(s,(e=>i[e]));return{attributesToSync:(0,o.pickBy)(l,((t,r)=>t!==e[r]))}}));(0,a.useEffect)((()=>{(0,o.isEmpty)(i)||r(i)}),[i,r])}},95816:(e,t,r)=>{"use strict";r.d(t,{a:()=>n});const n="https://calendly.com/wpcom/jetpack-block-example"},99723:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>A});var n=r(82170),a=r(85985),o=r(94715),s=r(56427),i=r(27723),l=r(5873);const __=i.__,_x=i._x,c=({onEditClick:e})=>(0,n.createElement)(s.ToolbarGroup,null,(0,n.createElement)(s.ToolbarButton,{onClick:()=>e(!0)},__("Edit","jetpack"))),u=e=>{const{attributes:{hideEventTypeDetails:t,url:r},defaultClassName:o,embedCode:i,parseEmbedCode:l,setAttributes:c,setEmbedCode:u}=e;let A=null;return r&&(A=(0,a.d9)()||(0,a.Sy)()?"https://wordpress.com/support/wordpress-editor/blocks/calendly-block/#customize-the-calendly-block":"https://jetpack.com/support/jetpack-blocks/calendly-block/#customizing-a-calendly-block"),(0,n.createElement)(n.Fragment,null,(0,n.createElement)(s.PanelBody,{PanelBody:!0,title:__("Calendar settings","jetpack"),initialOpen:!1},(0,n.createElement)("form",{onSubmit:l,className:`${o}-embed-form-sidebar`},(0,n.createElement)("input",{type:"text",id:"embedCode",onChange:e=>u(e.target.value),placeholder:__("Calendly web address or embed code…","jetpack"),value:i||"",className:"components-placeholder__input"}),(0,n.createElement)("div",null,(0,n.createElement)(s.Button,{variant:"secondary",type:"submit"},_x("Embed","button label","jetpack")))),(0,n.createElement)(s.ToggleControl,{__nextHasNoMarginBottom:!0,label:__("Hide event type details","jetpack"),checked:t,onChange:()=>c({hideEventTypeDetails:!t})})),A&&(0,n.createElement)(s.Notice,{className:`${o}-color-notice`,isDismissible:!1},(0,n.createElement)(s.ExternalLink,{href:A},__("Explore more customization options.","jetpack"))))},A=e=>{const{attributes:t,clientId:r,isEditingUrl:a,setAttributes:s,setIsEditingUrl:i}=e,{style:A,url:g}=t,d=[{value:"inline",label:__("Inline","jetpack")},{value:"link",label:__("Link","jetpack")}];return(0,n.createElement)(n.Fragment,null,g&&!a&&(0,n.createElement)(o.BlockControls,null,(0,n.createElement)(c,{onEditClick:i})),g&&(0,n.createElement)(l.A,{clientId:r,styleOptions:d,onSelectStyle:s,activeStyle:A,attributes:t,viewportWidth:500}),(0,n.createElement)(o.InspectorControls,null,(0,n.createElement)(u,e)))}},19493:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(82170),a=r(74997),o=r(27723),s=r(20710);const __=o.__,i={attributes:{backgroundColor:{type:"string",default:"ffffff",validator:s.A},submitButtonText:{type:"string",default:__("Schedule time with me","jetpack")},submitButtonTextColor:{type:"string"},submitButtonBackgroundColor:{type:"string"},submitButtonClasses:{type:"string"},hideEventTypeDetails:{type:"boolean",default:!1},primaryColor:{type:"string",default:"00A2FF",validator:s.A},textColor:{type:"string",default:"4D5055",validator:s.A},style:{type:"string",default:"inline",validValues:["inline","link"]},url:{type:"string",validator:e=>!e||e.startsWith("https://calendly.com/")},backgroundButtonColor:{type:"string"},textButtonColor:{type:"string"},customBackgroundButtonColor:{type:"string",validator:s.A},customTextButtonColor:{type:"string",validator:s.A}},migrate:e=>{const{submitButtonText:t,submitButtonTextColor:r,submitButtonBackgroundColor:n,submitButtonClasses:o,backgroundButtonColor:s,textButtonColor:i,customBackgroundButtonColor:l,customTextButtonColor:c,...u}=e,A={text:(g=e).submitButtonText||__("Schedule time with me","jetpack"),textColor:g.submitButtonTextColor||g.textButtonColor,customTextColor:g.customTextButtonColor,backgroundColor:g.submitButtonBackgroundColor||g.backgroundButtonColor,customBackgroundColor:g.customBackgroundButtonColor,url:g.url};var g;return[u,[(0,a.createBlock)("jetpack/button",{element:"a",uniqueId:"calendly-widget-id",...A})]]},save:({attributes:{url:e}})=>(0,n.createElement)("a",{href:e},e)}},52385:(e,t,r)=>{"use strict";r.d(t,{A:()=>v});var n=r(96072),a=r.n(n),o=r(82170),s=r(85985),i=r(94715),l=r(74997),c=r(56427),u=r(47143),A=r(86087),g=r(27723),d=r(13022),p=r(66087),m=r(78218),h=r(56145),E=r(13248),f=r(95816),C=r(99723),B=r(38028);const __=g.__,_x=g._x,b="jetpack/button",k={element:"a",text:__("Schedule time with me","jetpack"),uniqueId:"calendly-widget-id",url:f.a},y=(0,s.sh)(E);const v=(0,c.withNotices)((function(e){const{attributes:t,clientId:r,name:n,noticeOperations:s,noticeUI:g,setAttributes:v}=e,I=(0,l.getBlockDefaultClassName)(n),_=(0,m.y)(E.attributes,t);(0,p.isEqual)(_,t)||v(_);const{backgroundColor:w,hideEventTypeDetails:Q,primaryColor:S,textColor:x,style:j,url:L}=_,[N,T]=(0,A.useState)(L),[R,P]=(0,A.useState)(!1),[D,M]=(0,A.useState)(!1),[F,O]=(0,A.useState)({}),U=(0,i.useBlockProps)(),H=()=>{s.removeAllNotices(),s.createErrorNotice(__("Your calendar couldn't be embedded. Please double check your URL or code.","jetpack"))};(0,A.useEffect)((()=>{L&&f.a!==L&&"link"!==j&&(0,h.A)(L,M).catch((()=>{v({url:void 0}),H()}))}),[]);const z=e=>{if(!e)return void H();e.preventDefault();const t=(0,B.a9)(N);if(t){if(t.buttonAttributes&&"link"===t.style){const e=(0,u.select)("core/editor").getBlocksByClientId(r);e.length&&e[0].innerBlocks.forEach((e=>{(0,u.dispatch)("core/editor").updateBlockAttributes(e.clientId,t.buttonAttributes)})),O(t.buttonAttributes)}(0,h.A)(t.url,M).then((()=>{const e=(0,m.y)(E.attributes,t);v(e),P(!1),s.removeAllNotices()})).catch((()=>{v({url:void 0}),H()}))}else H()},q=(0,o.createElement)("div",{className:"wp-block-embed is-loading"},(0,o.createElement)(c.Spinner,null),(0,o.createElement)("p",null,__("Embedding…","jetpack"))),V=(0,o.createElement)(c.Placeholder,{label:__("Calendly","jetpack"),instructions:__("Enter your Calendly web address or embed code below.","jetpack"),icon:y,notices:g},(0,o.createElement)("form",{onSubmit:z},(0,o.createElement)("input",{type:"text",id:"embedCode",onChange:e=>T(e.target.value),placeholder:__("Calendly web address or embed code…","jetpack"),value:N||"",className:"components-placeholder__input"}),(0,o.createElement)("div",null,(0,o.createElement)(c.Button,{variant:"secondary",type:"submit"},_x("Embed","button label","jetpack")))),(0,o.createElement)("div",{className:`${I}-learn-more`},(0,o.createElement)(c.ExternalLink,{href:"https://help.calendly.com/hc/en-us/articles/223147027-Embed-options-overview"},__("Need help finding your embed code?","jetpack")))),G=(0,o.createElement)(o.Fragment,null,(0,o.createElement)("div",{className:`${I}-overlay`}),(0,o.createElement)("iframe",{src:(()=>{const e=new URLSearchParams({embed_domain:"wordpress.com",embed_type:"Inline",hide_event_type_details:Q?1:0,background_color:w,primary_color:S,text_color:x});return`${L}?${e}`})(),width:"100%",height:"100%",frameBorder:"0","data-origwidth":"100%","data-origheight":"100%",title:"Calendly"})),$=(0,o.createElement)(i.InnerBlocks,{template:[[b,{...k,...F,passthroughAttributes:{url:"url"}}]],templateLock:"all"});return D?q:(0,o.createElement)("div",a()({},U,{className:(0,d.A)(U.className,{[`calendly-style-${j}`]:L&&!R})}),(0,o.createElement)(C.Ay,a()({},e,{defaultClassName:I,embedCode:N,isEditingUrl:R,parseEmbedCode:z,setEmbedCode:T,setIsEditingUrl:P})),L&&!R?"inline"===j?G:$:V)}))},60312:(e,t,r)=>{"use strict";var n=r(74997),a=r(94375),o=r(13248),s=r(19493),i=r(52385),l=r(2668),c=r(38028);(0,a.M)(o,{edit:i.A,save:l.A,transforms:{from:[{type:"raw",isMatch:e=>"P"===e.nodeName&&c.QL.test(e.textContent),transform:e=>{const t=(0,c.a9)(e.textContent);return(0,n.createBlock)("jetpack/calendly",t)}}]},deprecated:[s.A]})},2668:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(82170),a=r(94715);function o(){const e=a.useBlockProps.save();return(0,n.createElement)("div",e,(0,n.createElement)(a.InnerBlocks.Content,null))}},38028:(e,t,r)=>{"use strict";r.d(t,{QL:()=>n,a9:()=>a});const n=/(^|\/\/)(calendly\.com[^"']*)/i,a=e=>{if(!e)return;const t=(e=>{const t=e.match(n);if(t)return"https://"+t[2]})(e);if(!t)return;const r=(e=>{const t={},r=new URL(e);if(t.url=r.origin+r.pathname,!r.search)return t;const n=new URLSearchParams(r.search),a=n.get("background_color"),o=n.get("primary_color"),s=n.get("text_color"),i=/^[A-Za-z0-9]{6}$/;return n.get("hide_event_type_details")&&(t.hideEventTypeDetails=n.get("hide_event_type_details")),a&&a.match(i)&&(t.backgroundColor=a),o&&o.match(i)&&(t.primaryColor=o),s&&s.match(i)&&(t.textColor=s),t})(t),a=(e=>e.indexOf("data-url")>0?"inline":e.indexOf("initPopupWidget")>0||e.indexOf("initBadgeWidget")>0?"link":void 0)(e);if(a&&(r.style=a),"link"===a){r.buttonAttributes={};const t=(e=>{let t=e.match(/false;">([^<]+)<\//);return t?t[1]:(t=e.match(/text: '([^']*?)'/),t?t[1]:void 0)})(e);t&&(r.buttonAttributes.text=t);const n=(e=>{const t=e.match(/textColor: '([^']*?)'/);if(t)return t[1]})(e);n&&(r.buttonAttributes.textColor=void 0,r.buttonAttributes.customTextColor=n);const a=(e=>{const t=e.match(/color: '([^']*?)'/);if(t)return t[1]})(e);a&&(r.buttonAttributes.backgroundColor=void 0,r.buttonAttributes.customBackgroundColor=a)}return r}},98091:(e,t,r)=>{"use strict";r.d(t,{A:()=>A});var n=r(82170),a=r(94715),o=r(56427),s=r(86087),i=r(27723),l=r(13022),c=r(81942);const __=i.__;class u extends s.Component{constructor(...e){super(...e),this.preventEnterKey=this.preventEnterKey.bind(this)}preventEnterKey(e){"Enter"===e.key&&e.preventDefault()}render(){const{attributes:{address:e,addressLine2:t,addressLine3:r,city:i,region:u,postal:A,country:g,linkToGoogleMaps:d},isSelected:p,setAttributes:m}=this.props,h=[e,t,r,i,u,A,g].some((e=>""!==e)),E=(0,l.A)({"jetpack-address-block":!0,"is-selected":p}),f=(0,n.createElement)(o.ToggleControl,{__nextHasNoMarginBottom:!0,label:__("Link address to Google Maps","jetpack"),checked:d,onChange:e=>m({linkToGoogleMaps:e})});return(0,n.createElement)("div",{className:E},!p&&h&&(0,c.A)(this.props),(p||!h)&&(0,n.createElement)(s.Fragment,null,(0,n.createElement)(a.PlainText,{value:e,placeholder:__("Street Address","jetpack"),"aria-label":__("Street Address","jetpack"),onChange:e=>m({address:e}),onKeyDown:this.preventEnterKey}),(0,n.createElement)(a.PlainText,{value:t,placeholder:__("Address Line 2","jetpack"),"aria-label":__("Address Line 2","jetpack"),onChange:e=>m({addressLine2:e}),onKeyDown:this.preventEnterKey}),(0,n.createElement)(a.PlainText,{value:r,placeholder:__("Address Line 3","jetpack"),"aria-label":__("Address Line 3","jetpack"),onChange:e=>m({addressLine3:e}),onKeyDown:this.preventEnterKey}),(0,n.createElement)(a.PlainText,{value:i,placeholder:__("City","jetpack"),"aria-label":__("City","jetpack"),onChange:e=>m({city:e}),onKeyDown:this.preventEnterKey}),(0,n.createElement)(a.PlainText,{value:u,placeholder:__("State/Province/Region","jetpack"),"aria-label":__("State/Province/Region","jetpack"),onChange:e=>m({region:e}),onKeyDown:this.preventEnterKey}),(0,n.createElement)(a.PlainText,{value:A,placeholder:__("Postal/Zip Code","jetpack"),"aria-label":__("Postal/Zip Code","jetpack"),onChange:e=>m({postal:e}),onKeyDown:this.preventEnterKey}),(0,n.createElement)(a.PlainText,{value:g,placeholder:__("Country","jetpack"),"aria-label":__("Country","jetpack"),onChange:e=>m({country:e}),onKeyDown:this.preventEnterKey}),f))}}const A=u},39563:(e,t,r)=>{"use strict";r.d(t,{U:()=>u,W:()=>A});var n=r(82170),a=r(56427),o=r(86087),s=r(27723),i=r(62289),l=r(98091),c=r(81942);const __=s.__,_x=s._x,u="address",A={title:__("Address","jetpack"),description:__("Lets you add a physical address with Schema markup.","jetpack"),keywords:[_x("location","block search term","jetpack"),_x("direction","block search term","jetpack"),_x("place","block search term","jetpack")],icon:(0,i.A)((0,n.createElement)(o.Fragment,null,(0,n.createElement)(a.Path,{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zM7 9c0-2.76 2.24-5 5-5s5 2.24 5 5c0 2.88-2.88 7.19-5 9.88C9.92 16.21 7 11.85 7 9z"}),(0,n.createElement)(a.Circle,{cx:"12",cy:"9",r:"2.5"}))),category:"grow",attributes:{address:{type:"string",default:""},addressLine2:{type:"string",default:""},addressLine3:{type:"string",default:""},city:{type:"string",default:""},region:{type:"string",default:""},postal:{type:"string",default:""},country:{type:"string",default:""},linkToGoogleMaps:{type:"boolean",default:!1}},parent:["jetpack/contact-info"],edit:l.A,save:c.A}},81942:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(82170),a=r(86087),o=r(27723);const __=o.__,s=({attributes:{address:e,addressLine2:t,addressLine3:r,city:o,region:s,postal:i,country:l}})=>(0,n.createElement)(a.Fragment,null,e&&(0,n.createElement)("div",{className:"jetpack-address__address jetpack-address__address1"},e),t&&(0,n.createElement)("div",{className:"jetpack-address__address jetpack-address__address2"},t),r&&(0,n.createElement)("div",{className:"jetpack-address__address jetpack-address__address3"},r),o&&!(s||i)&&(0,n.createElement)("div",{className:"jetpack-address__city"},o),o&&(s||i)&&(0,n.createElement)("div",null,(0,n.createElement)("span",{className:"jetpack-address__city"},o),", ",(0,n.createElement)("span",{className:"jetpack-address__region"},s)," ",(0,n.createElement)("span",{className:"jetpack-address__postal"},i)),!o&&(s||i)&&(0,n.createElement)("div",null,(0,n.createElement)("span",{className:"jetpack-address__region"},s)," ",(0,n.createElement)("span",{className:"jetpack-address__postal"},i)),l&&(0,n.createElement)("div",{className:"jetpack-address__country"},l)),i=({attributes:{address:e,addressLine2:t,addressLine3:r,city:n,region:a,postal:o,country:s}})=>{let i=a?`+${a},`:"";i=o?`${i}+${o}`:i;return`https://www.google.com/maps/search/${e?`${e},`:""}${t?`${t},`:""}${r?`${r},`:""}${n?`+${n},`:""}${i}${s?`+${s}`:""}`.replace(" ","+")},l=e=>(({address:e,addressLine2:t,addressLine3:r,city:n,region:a,postal:o,country:s})=>[e,t,r,n,a,o,s].some((e=>""!==e)))(e.attributes)&&(0,n.createElement)("div",{className:e.className},e.attributes.linkToGoogleMaps&&(0,n.createElement)("a",{href:i(e),target:"_blank",rel:"noopener noreferrer",title:__("Open address in Google Maps","jetpack")},(0,n.createElement)(s,e)),!e.attributes.linkToGoogleMaps&&(0,n.createElement)(s,e))},44246:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(96072),a=r.n(n),o=r(82170),s=r(94715),i=r(13022);const l=["jetpack/markdown","jetpack/address","jetpack/email","jetpack/phone","jetpack/map","jetpack/business-hours","core/paragraph","core/image","core/heading","core/gallery","core/list","core/quote","core/shortcode","core/audio","core/code","core/cover","core/html","core/separator","core/spacer","core/subhead","core/video"],c=[["jetpack/email"],["jetpack/phone"],["jetpack/address"]],u=e=>{const{isSelected:t}=e,r=(0,s.useBlockProps)();return(0,o.createElement)("div",a()({},r,{className:(0,i.A)(r.className,{"jetpack-contact-info-block":!0,"is-selected":t})}),(0,o.createElement)(s.InnerBlocks,{allowedBlocks:l,templateLock:!1,template:c}))}},25907:(e,t,r)=>{"use strict";var n=r(74997),a=r(94375),o=r(39563),s=r(75173),i=r(44246),l=r(90951),c=r(70063),u=r(36611);(0,a.M)(s,{edit:i.A,save:u.A,transforms:{from:[{type:"block",blocks:["core/legacy-widget"],isMatch:({idBase:e,instance:t})=>!!t?.raw&&"widget_contact_info"===e,transform:({instance:e})=>{let t=[(0,n.createBlock)("core/heading",{content:e.raw.title}),(0,n.createBlock)("jetpack/email",{email:e.raw.email}),(0,n.createBlock)("jetpack/phone",{phone:e.raw.phone}),(0,n.createBlock)("jetpack/address",{address:e.raw.address})];return e.raw.hours&&(t=[...t,(0,n.createBlock)("core/paragraph",{content:e.raw.hours})]),e.raw.showmap&&e.raw.address&&(t=[...t,(0,n.createBlock)("jetpack/map",{address:e.raw.address})]),(0,n.createBlock)("jetpack/contact-info",{},t)}}]}},[{name:o.U,settings:o.W},{name:l.U,settings:l.W},{name:c.U,settings:c.W}])},43167:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(27723),a=r(64882),o=r(27266);const __=n.__,s=e=>{const{setAttributes:t}=e;return(0,a.A)("email",e,__("Email","jetpack"),o.A,(e=>t({email:e})))}},90951:(e,t,r)=>{"use strict";r.d(t,{U:()=>c,W:()=>u});var n=r(82170),a=r(56427),o=r(27723),s=r(62289),i=r(43167),l=r(27266);const __=o.__,_x=o._x,c="email",u={title:__("Email Address","jetpack"),description:__("Lets you add an email address with an automatically generated click-to-email link.","jetpack"),keywords:["e-mail","email",_x("message","block search term","jetpack")],icon:(0,s.A)((0,n.createElement)(a.Path,{d:"M22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6zm-2 0l-8 5-8-5h16zm0 12H4V8l8 5 8-5v10z"})),category:"grow",attributes:{email:{type:"string",default:""}},edit:i.A,save:l.A,parent:["jetpack/contact-info"]}},27266:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(82170),a=r(86087),o=r(39904);const s=({attributes:{email:e},className:t})=>e&&(0,n.createElement)("div",{className:t},e.split(/(\s+)/).map(((e,t)=>{const r=e.replace(/([.,/#!$%^&*;:{}=\-_`~()\][])+$/g,"");return e.indexOf("@")&&o.validate(r)?e===r?(0,n.createElement)("a",{href:`mailto:${e}`,key:t},e):(0,n.createElement)(a.Fragment,{key:t},(0,n.createElement)("a",{href:`mailto:${e}`,key:t},r),(0,n.createElement)(a.Fragment,null,e.slice(-(e.length-r.length)))):(0,n.createElement)(a.Fragment,{key:t},e)})))},42711:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(27723),a=r(64882),o=r(84330);const __=n.__,s=e=>{const{setAttributes:t}=e;return(0,a.A)("phone",e,__("Phone number","jetpack"),o.A,(e=>t({phone:e})))}},70063:(e,t,r)=>{"use strict";r.d(t,{U:()=>c,W:()=>u});var n=r(82170),a=r(56427),o=r(27723),s=r(62289),i=r(42711),l=r(84330);const __=o.__,_x=o._x,c="phone",u={title:__("Phone Number","jetpack"),description:__("Lets you add a phone number with an automatically generated click-to-call link.","jetpack"),keywords:[_x("mobile","block search term","jetpack"),_x("telephone","block search term","jetpack"),_x("cell","block search term","jetpack")],icon:(0,s.A)((0,n.createElement)(a.Path,{d:"M6.54 5c.06.89.21 1.76.45 2.59l-1.2 1.2c-.41-1.2-.67-2.47-.76-3.79h1.51m9.86 12.02c.85.24 1.72.39 2.6.45v1.49c-1.32-.09-2.59-.35-3.8-.75l1.2-1.19M7.5 3H4c-.55 0-1 .45-1 1 0 9.39 7.61 17 17 17 .55 0 1-.45 1-1v-3.49c0-.55-.45-1-1-1-1.24 0-2.45-.2-3.57-.57-.1-.04-.21-.05-.31-.05-.26 0-.51.1-.71.29l-2.2 2.2c-2.83-1.45-5.15-3.76-6.59-6.59l2.2-2.2c.28-.28.36-.67.25-1.02C8.7 6.45 8.5 5.25 8.5 4c0-.55-.45-1-1-1z"})),category:"grow",attributes:{phone:{type:"string",default:""}},parent:["jetpack/contact-info"],edit:i.A,save:l.A}},84330:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(82170);const a=({attributes:{phone:e},className:t})=>e&&(0,n.createElement)("div",{className:t},function(e){const t=e.match(/\d+\.\d+|\d+\b|\d+(?=\w)/g);if(!t)return e;const r=e.indexOf(t[0]);let a=r?e.substring(r-1):e,o=r?e.substring(0,r):"",s=a.replace(/\D/g,"");return/[0-9/+/(]/.test(a[0])?(o=o.slice(0,-1),"+"===a[0]&&(s="+"+s)):a=a.substring(1),[o.trim()?(0,n.createElement)("span",{key:"phonePrefix",className:"phone-prefix"},o):null,(0,n.createElement)("a",{key:"phoneNumber",href:`tel:${s}`},a)]}(e))},36611:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(82170),a=r(94715);const o=()=>{const e=a.useBlockProps.save();return(0,n.createElement)("div",e,(0,n.createElement)(a.InnerBlocks.Content,null))}},75800:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(82170),a=r(4567),o=r(3975),s=r(94715),i=r(86087),l=r(13022),c=r(72730);const u=({className:e=null,currency:t=null,defaultValue:r=null,disabled:u=!1,label:A="",onChange:g=null,value:d=""})=>{const[p,m]=(0,i.useState)((0,a.Ay)(d,t,{symbol:""})),[h,E]=(0,i.useState)(!1),[f,C]=(0,i.useState)(!1),B=(0,i.useRef)(null),b=(0,i.useCallback)(((e,r)=>{m((n=>{if(e!==n){const n=(0,c.C_)(e,t);n&&n>=(0,c.dv)(t)?(C(!1),r&&g?.(n)):C(!0)}return e}))}),[t,g]),k=()=>{B.current&&(B.current.focus(),E(!0))};return(0,i.useEffect)((()=>{if(!B.current)return;const e=B.current,n=()=>{E(!1),p||b((0,a.Ay)(r,t,{symbol:""}))};return e.addEventListener("blur",n),()=>{e.removeEventListener("blur",n)}}),[t,r,p,B,b]),(0,i.useEffect)((()=>{h||f||m((0,a.Ay)(d,t,{symbol:""}))}),[t,h,f,d]),(0,i.useEffect)((()=>{b((0,a.Ay)(d,t,{symbol:""}))}),[t,d]),(0,n.createElement)("div",{className:(0,l.A)("donations__amount",e,{"has-focus":h,"has-error":f}),role:"button",tabIndex:0,onClick:k,onKeyDown:k},o.y[t].symbol,u?(0,n.createElement)("div",{className:"donations__amount-value"},(0,a.Ay)(d||r,t,{symbol:""})):(0,n.createElement)(s.RichText,{allowedFormats:[],"aria-label":A,onChange:e=>b(e,!0),placeholder:(0,a.Ay)(r,t,{symbol:""}),ref:B,value:p,withoutInteractiveFormatting:!0}))}},57018:(e,t,r)=>{"use strict";r.d(t,{A:()=>A});var n=r(82170),a=r(3975),o=r(85985),s=r(94715),i=r(56427),l=r(27723),c=r(48558),u=r(72730);const __=l.__,A=e=>{const{attributes:t,setAttributes:r}=e,{currency:l,oneTimeDonation:A,monthlyDonation:g,annualDonation:d,showCustomAmount:p}=t,m=(e,n)=>{const a={"1 month":"monthlyDonation","1 year":"annualDonation"}[e],o=t[a];r({[a]:{...o,show:n}})};return(0,n.createElement)(n.Fragment,null,(0,n.createElement)(s.BlockControls,null,(0,n.createElement)(i.ToolbarGroup,null,(0,n.createElement)(i.ToolbarItem,null,(()=>(0,n.createElement)(i.Dropdown,{contentClassName:"jetpack-donations__currency-popover",renderToggle:({onToggle:e,isOpen:t})=>(0,n.createElement)(i.Button,{className:"jetpack-donations__currency-toggle",icon:(0,n.createElement)(n.Fragment,null,l+" - "+a.y[l].symbol,(0,n.createElement)(i.Dashicon,{icon:"arrow-down"})),label:__("Change currency","jetpack"),onClick:e,onKeyDown:r=>{t||r.keyCode!==c.DOWN||(r.preventDefault(),r.stopPropagation(),e())}}),renderContent:({onClose:e})=>(0,n.createElement)(i.MenuGroup,null,Object.keys(u.VK).map((t=>(0,n.createElement)(i.MenuItem,{isSelected:t===l,icon:t===l?"yes":"",onClick:()=>{(e=>{const t=(0,u.Xj)(e);r({currency:e,oneTimeDonation:{...A,amounts:t},monthlyDonation:{...g,amounts:t},annualDonation:{...d,amounts:t}})})(t),e()},key:`jetpack-donations-currency-${t}`},t+" - "+a.y[t].symbol))))}))))),(0,n.createElement)(s.InspectorControls,null,(0,n.createElement)(i.PanelBody,{title:__("Settings","jetpack")},(0,n.createElement)(i.ToggleControl,{checked:g.show,onChange:e=>m("1 month",e),label:__("Show monthly donations","jetpack"),__nextHasNoMarginBottom:!0}),(0,n.createElement)(i.ToggleControl,{checked:d.show,onChange:e=>m("1 year",e),label:__("Show annual donations","jetpack"),__nextHasNoMarginBottom:!0}),(0,n.createElement)(i.ToggleControl,{checked:p,onChange:e=>r({showCustomAmount:e}),label:__("Show custom amount option","jetpack"),__nextHasNoMarginBottom:!0}),(0,n.createElement)(i.ExternalLink,{href:`https://wordpress.com/earn/payments/${(0,o.GE)()}`},__("View donation earnings","jetpack")))))}},27718:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(82170),a=r(4567),o=r(3975),s=r(94715),i=r(27723),l=r(72730);const __=i.__,c={attributes:{currency:{type:"string",default:"USD"},oneTimeDonation:{type:"object",default:{show:!0,planId:null,amounts:[5,15,100],heading:__("Make a one-time donation","jetpack"),extraText:__("Your contribution is appreciated.","jetpack"),buttonText:__("Donate","jetpack")}},monthlyDonation:{type:"object",default:{show:!0,planId:null,amounts:[5,15,100],heading:__("Make a monthly donation","jetpack"),extraText:__("Your contribution is appreciated.","jetpack"),buttonText:__("Donate monthly","jetpack")}},annualDonation:{type:"object",default:{show:!0,planId:null,amounts:[5,15,100],heading:__("Make a yearly donation","jetpack"),extraText:__("Your contribution is appreciated.","jetpack"),buttonText:__("Donate yearly","jetpack")}},showCustomAmount:{type:"boolean",default:!0},chooseAmountText:{type:"string",default:__("Choose an amount","jetpack")},customAmountText:{type:"string",default:__("Or enter a custom amount","jetpack")}},supports:{html:!1},save:({attributes:e})=>{const{currency:t,oneTimeDonation:r,monthlyDonation:i,annualDonation:c,showCustomAmount:u,chooseAmountText:A,customAmountText:g}=e;if(!r||!r.show||-1===r.planId)return null;const d={"one-time":{title:__("One-Time","jetpack")},...i.show&&{"1 month":{title:__("Monthly","jetpack")}},...c.show&&{"1 year":{title:__("Yearly","jetpack")}}};return(0,n.createElement)("div",null,(0,n.createElement)("div",{className:"donations__container"},Object.keys(d).length>1&&(0,n.createElement)("div",{className:"donations__nav"},Object.entries(d).map((([e,{title:t}])=>(0,n.createElement)("div",{role:"button",tabIndex:0,className:"donations__nav-item",key:`jetpack-donations-nav-item-${e} `,"data-interval":e},t)))),(0,n.createElement)("div",{className:"donations__content"},(0,n.createElement)("div",{className:"donations__tab"},(0,n.createElement)(s.RichText.Content,{tagName:"h4",className:"donations__one-time-item",value:r.heading}),i.show&&(0,n.createElement)(s.RichText.Content,{tagName:"h4",className:"donations__monthly-item",value:i.heading}),c.show&&(0,n.createElement)(s.RichText.Content,{tagName:"h4",className:"donations__annual-item",value:c.heading}),(0,n.createElement)(s.RichText.Content,{tagName:"p",value:A}),(0,n.createElement)("div",{className:"donations__amounts donations__one-time-item"},r.amounts.map((e=>(0,n.createElement)("div",{key:e,className:"donations__amount","data-amount":e},(0,a.Ay)(e,t))))),i.show&&(0,n.createElement)("div",{className:"donations__amounts donations__monthly-item"},i.amounts.map((e=>(0,n.createElement)("div",{key:e,className:"donations__amount","data-amount":e},(0,a.Ay)(e,t))))),c.show&&(0,n.createElement)("div",{className:"donations__amounts donations__annual-item"},c.amounts.map((e=>(0,n.createElement)("div",{key:e,className:"donations__amount","data-amount":e},(0,a.Ay)(e,t))))),u&&(0,n.createElement)(n.Fragment,null,(0,n.createElement)(s.RichText.Content,{tagName:"p",value:g}),(0,n.createElement)("div",{className:"donations__amount donations__custom-amount"},o.y[t].symbol,(0,n.createElement)("div",{className:"donations__amount-value","data-currency":t,"data-empty-text":(0,a.Ay)(100*(0,l.dv)(t),t,{symbol:""})}))),(0,n.createElement)("div",{className:"donations__separator"},"——"),(0,n.createElement)(s.RichText.Content,{tagName:"p",className:"donations__one-time-item",value:r.extraText}),i.show&&(0,n.createElement)(s.RichText.Content,{tagName:"p",className:"donations__monthly-item",value:i.extraText}),c.show&&(0,n.createElement)(s.RichText.Content,{tagName:"p",className:"donations__annual-item",value:c.extraText}),(0,n.createElement)("div",{className:"wp-block-button donations__donate-button-wrapper donations__one-time-item"},(0,n.createElement)(s.RichText.Content,{tagName:"a",className:"wp-block-button__link donations__donate-button donations__one-time-item",value:r.buttonText})),i.show&&(0,n.createElement)("div",{className:"wp-block-button donations__donate-button-wrapper donations__monthly-item"},(0,n.createElement)(s.RichText.Content,{tagName:"a",className:"wp-block-button__link donations__donate-button donations__monthly-item",value:i.buttonText})),c.show&&(0,n.createElement)("div",{className:"wp-block-button donations__donate-button-wrapper donations__annual-item"},(0,n.createElement)(s.RichText.Content,{tagName:"a",className:"wp-block-button__link donations__donate-button donations__annual-item",value:c.buttonText}))))))}}},31152:(e,t,r)=>{"use strict";r.d(t,{A:()=>k});var n=r(96072),a=r.n(n),o=r(82170),s=r(56461),i=r(94715),l=r(47143),c=r(86087),u=r(27723),A=r(2274),g=r(53796),d=r(72730),p=r(27574),m=r(26247),h=r(16521),E=r(3696),f=r(70975),C=r(93033),B=r(79085),b=r(36580);const __=u.__,k=e=>{const{attributes:t,setAttributes:r}=e,{currency:n}=t,u=(0,i.useBlockProps)(),[k,y]=(0,c.useState)(""),[v,I]=(0,c.useState)([]),_=(0,m.A)(),{lockPostSaving:w,unlockPostSaving:Q}=(0,l.useDispatch)("core/editor"),S=(0,l.useSelect)((e=>e("core/editor").getCurrentPost()),[]),x=(0,l.useSelect)((e=>e("core/editor").isPostSavingLocked()),[]),j=(0,l.useSelect)((e=>e(h.M).getConnectUrl()||""),[]),{setConnectUrl:L,setConnectedAccountDefaultCurrency:N}=(0,l.useDispatch)(E.EF),T=(0,l.useSelect)((e=>e(E.EF).getConnectedAccountDefaultCurrency()));(0,c.useEffect)((()=>{if(!n&&T&&!x){const e=T.toUpperCase(),t=!!d.VK[e];r(t?{currency:e}:{currency:"USD"})}}),[n,T,x,r]);const R=e=>{y(e)};let P;return(0,c.useEffect)((()=>{w("donations");const e=e=>e.reduce(((e,{id:t,currency:r,type:a,interval:o})=>(r===n&&"donation"===a&&(e[o]=t),e)),{});(0,C.A)("donation").then((t=>{if(!t&&"object"!=typeof t||t.errors)return Q("donations"),void y(__("Could not load data from WordPress.com.","jetpack"));L((0,p.A)(S.id,t.connect_url)),N(t?.connected_account_default_currency?.toUpperCase());const r=e(t.products);return(e=>{const t=Object.keys(e);return t.includes("one-time")&&t.includes("1 month")&&t.includes("1 year")})(r)?(I(r),void Q("donations")):t.connect_url?(I({"one-time":-1,"1 month":-1,"1 year":-1}),void Q("donations")):(n&&(0,f.A)(n).then((t=>{I(e(t)),Q("donations")}),R),void Q("donations"))}),R)}),[w,n,S.id,L,N,Q]),P=_?k?(0,o.createElement)(B.A,{error:k}):j?(0,o.createElement)(g.V,{blockName:"donations"}):n?(0,o.createElement)(b.A,a()({},e,{products:v})):(0,o.createElement)(s.A,{color:"black"}):(0,o.createElement)(A.A,{block:"Donations Form",explanation:__("Connect your WordPress.com account to enable donations.","jetpack")}),(0,o.createElement)("div",u,P)}},46197:(e,t,r)=>{"use strict";var n=r(94375),a=r(87325),o=r(27718),s=r(31152),i=r(47693);(0,n.M)(a,{edit:s.A,save:i.A,deprecated:[o.A]})},70975:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(1455),a=r.n(n);const o=async e=>{try{return await a()({path:"/wpcom/v2/memberships/products",method:"POST",data:{type:"donation",currency:e,is_editable:!1}})}catch(e){return Promise.reject(e.message)}}},93033:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(1455),a=r.n(n),o=r(93832);const s=async(e=null)=>{const t=new URLSearchParams(window.location.search),r=(0,o.addQueryArgs)("/wpcom/v2/memberships/status",{source:"https://wordpress.com"===t.get("origin")?"gutenberg-wpcom":"gutenberg",...e&&{type:e},is_editable:!1});try{return await a()({path:r,method:"GET"})}catch(e){return Promise.reject(e.message)}}},79085:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(82170),a=r(56427),o=r(27723);const __=o.__,s=({error:e})=>(0,n.createElement)(a.Placeholder,{icon:"lock",label:__("Donations","jetpack"),instructions:e})},47693:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(82170),a=r(94715);const o=(0,r(75703).O)(),s=({attributes:e})=>{const{fallbackLinkUrl:t,oneTimeDonation:r,monthlyDonation:s,annualDonation:i}=e;if(!r||!r.show||!r.planId||-1===r.planId)return null;const l=a.useBlockProps.save();return(0,n.createElement)("div",l,(0,n.createElement)(a.RichText.Content,{tagName:"h4",value:o.oneTimeDonation?.heading}),(0,n.createElement)(a.RichText.Content,{tagName:"p",value:r.extraText??o.extraText}),(0,n.createElement)(a.RichText.Content,{tagName:"a",className:"jetpack-donations-fallback-link",href:t,rel:"noopener noreferrer noamphtml",target:"_blank",value:o.oneTimeDonation?.buttonText}),s.show&&(0,n.createElement)(n.Fragment,null,(0,n.createElement)("hr",{className:"donations__separator"}),(0,n.createElement)(a.RichText.Content,{tagName:"h4",value:o.monthlyDonation?.heading}),(0,n.createElement)(a.RichText.Content,{tagName:"p",value:s.extraText??o.extraText}),(0,n.createElement)(a.RichText.Content,{tagName:"a",className:"jetpack-donations-fallback-link",href:t,rel:"noopener noreferrer noamphtml",target:"_blank",value:o.monthlyDonation?.buttonText})),i.show&&(0,n.createElement)(n.Fragment,null,(0,n.createElement)("hr",{className:"donations__separator"}),(0,n.createElement)(a.RichText.Content,{tagName:"h4",value:o.annualDonation?.heading}),(0,n.createElement)(a.RichText.Content,{tagName:"p",value:i.extraText??o.extraText}),(0,n.createElement)(a.RichText.Content,{tagName:"a",className:"jetpack-donations-fallback-link",href:t,rel:"noopener noreferrer noamphtml",target:"_blank",value:o.annualDonation?.buttonText})))}},62225:(e,t,r)=>{"use strict";r.d(t,{A:()=>A});var n=r(82170),a=r(94715),o=r(47143),s=r(27723),i=r(72730),l=r(75800),c=r(75703);const __=s.__,u=(0,c.O)(),A=({activeTab:e,attributes:t,setAttributes:r})=>{const{currency:c,oneTimeDonation:A,monthlyDonation:g,annualDonation:d,showCustomAmount:p,chooseAmountText:m=u.chooseAmountText,customAmountText:h=u.customAmountText}=t,E={"one-time":"oneTimeDonation","1 month":"monthlyDonation","1 year":"annualDonation"}[e],f=e=>t[E][e],C=(e,n)=>{const a=t[E];r({[E]:{...a,[e]:n}})},B=(0,i.Xj)(c),b=f("amounts"),k=(0,o.useSelect)((e=>e("core/rich-text").getFormatTypes()),[]).map((e=>e.name)).filter((e=>"core/link"!==e));return(0,n.createElement)("div",{className:"donations__tab"},(0,n.createElement)(a.RichText,{tagName:"h4",placeholder:__("Write a message…","jetpack"),value:f("heading")||u[E]?.heading,onChange:e=>C("heading",e)}),(0,n.createElement)(a.RichText,{tagName:"p",placeholder:__("Write a message…","jetpack"),value:m,onChange:e=>r({chooseAmountText:e})}),(0,n.createElement)("div",{className:"donations__amounts"},b.map(((e,t)=>(0,n.createElement)(l.A,{currency:c,defaultValue:B[t],label:(0,s.sprintf)( // translators: %d: Tier level e.g: "1", "2", "3" __("Tier %d","jetpack"),t+1),key:`jetpack-donations-amount-${t}`,onChange:e=>((e,t)=>{const r=[...b];r[t]=e,C("amounts",r)})(e,t),value:e})))),p&&(0,n.createElement)(n.Fragment,null,(0,n.createElement)(a.RichText,{tagName:"p",placeholder:__("Write a message…","jetpack"),value:h,onChange:e=>r({customAmountText:e})}),(0,n.createElement)(l.A,{currency:c,label:__("Custom amount","jetpack"),defaultValue:100*(0,i.dv)(c),className:"donations__custom-amount",disabled:!0})),(0,n.createElement)("hr",{className:"donations__separator"}),(0,n.createElement)(a.RichText,{tagName:"p",placeholder:__("Write a message…","jetpack"),value:f("extraText")??u.extraText,onChange:e=>C("extraText",e)}),(0,n.createElement)("div",{className:"wp-block-button donations__donate-button-wrapper"},(0,n.createElement)(a.RichText,{className:"wp-block-button__link donations__donate-button",placeholder:__("Write a message…","jetpack"),value:f("buttonText")||u[E]?.buttonText,onChange:e=>{return t=e,void r({oneTimeDonation:{...A,buttonText:t},monthlyDonation:{...g,buttonText:t},annualDonation:{...d,buttonText:t}});var t},allowedFormats:k})))}},36580:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(82170),a=r(86087),o=r(27723),s=r(13022),i=r(57018),l=r(62225);const __=o.__,c=e=>{const{attributes:t,products:r,setAttributes:o}=e,{oneTimeDonation:c,monthlyDonation:u,annualDonation:A}=t,[g,d]=(0,a.useState)("one-time"),p=(0,a.useCallback)((e=>g===e),[g]),m={"one-time":{title:__("One-Time","jetpack")},...u.show&&{"1 month":{title:__("Monthly","jetpack")}},...A.show&&{"1 year":{title:__("Yearly","jetpack")}}};return(0,a.useEffect)((()=>{c.planId===r["one-time"]&&u.planId===r["1 month"]&&A.planId===r["1 year"]||o({...r["one-time"]&&{oneTimeDonation:{...c,planId:r["one-time"]}},...r["1 month"]&&{monthlyDonation:{...u,planId:r["1 month"]}},...r["1 year"]&&{annualDonation:{...A,planId:r["1 year"]}}})}),[c,u,A,o,r]),(0,a.useEffect)((()=>{!u.show&&p("1 month")&&d("one-time"),!A.show&&p("1 year")&&d("one-time")}),[u,A,d,p]),(0,n.createElement)(n.Fragment,null,(0,n.createElement)("div",{className:"donations__container"},Object.keys(m).length>1&&(0,n.createElement)("div",{className:"donations__nav"},Object.entries(m).map((([e,{title:t}])=>(0,n.createElement)("div",{role:"button",tabIndex:0,className:(0,s.A)("donations__nav-item",{"is-active":p(e)}),onClick:()=>d(e),onKeyDown:()=>d(e),key:`jetpack-donations-nav-item-${e} `},t)))),(0,n.createElement)("div",{className:"donations__content"},(0,n.createElement)(l.A,{activeTab:g,attributes:t,setAttributes:o}))),(0,n.createElement)(i.A,e))}},75703:(e,t,r)=>{"use strict";function n(){if("undefined"==typeof window)return{};const e=window.Jetpack_DonationsBlock?.defaultTexts;return"object"!=typeof e?{}:e}r.d(t,{O:()=>n})},36850:(e,t,r)=>{"use strict";r.d(t,{GY:()=>a,_t:()=>n,gQ:()=>o});const n=/^\s*https?:\/\/(?:www\.)?(?:eventbrite\.[a-z.]+)\/e\/[^/]*?(\d+)\/?(?:\?[^/]*)?\s*$/i,a=/^\s*https?:\/\/(?:.+\.)?(?:eventbrite\.[a-z.]+)\/?(?:\?[^/]*)?\s*$/i,o="https://www.eventbrite.com/e/test-event-tickets-123456789"},38449:(e,t,r)=>{"use strict";r.d(t,{o:()=>c,s:()=>u});var n=r(82170),a=r(56427),o=r(27723),s=r(5873),i=r(72660);const __=o.__,_x=o._x,l=[{value:"inline",label:__("In-page Embed","jetpack"),preview:(0,n.createElement)("div",{className:"block-editor-block-preview__container"},(0,n.createElement)("img",{src:i,alt:__("In page Eventbrite checkout example","jetpack")}))},{value:"modal",label:__("Button & Modal","jetpack")}],c=({setEditingUrl:e})=>(0,n.createElement)(a.ToolbarGroup,null,(0,n.createElement)(a.ToolbarButton,{className:"components-toolbar__control",label:__("Edit URL","jetpack"),icon:"edit",onClick:()=>e(!0)})),u=({attributes:e,clientId:t,setAttributes:r})=>(0,n.createElement)(s.A,{title:_x("Embed Type","option for how the embed displays on a page, e.g. inline or as a modal","jetpack"),clientId:t,styleOptions:l,onSelectStyle:r,activeStyle:e.style,attributes:e,viewportWidth:130})},77629:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=[r(87879).A]},87879:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(82170),a=r(94715),o=r(74997),s=r(27723),i=r(13022),l=r(66087);const _x=s._x,c=["text","backgroundColor","textColor","customBackgroundColor","customTextColor","borderRadius"];const u={attributes:{url:{type:"string",validator:e=>!e||e.startsWith("http")},eventId:{type:"number"},useModal:{type:"boolean"},style:{type:"string"},text:{type:"string",default:_x("Register","verb: e.g. register for an event.","jetpack")},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},borderRadius:{type:"number"}},migrate:e=>{const{className:t,style:r}=e;let n=r;n||(n=e.useModal?"modal":"inline");const a={...(0,l.omit)(e,["useModal",...c]),className:t&&t.replace("is-style-outline",""),style:n},s=(0,l.pick)(e,c);return[a,[(0,o.createBlock)("jetpack/button",{element:"a",text:s.text||_x("Register","verb: e.g. register for an event.","jetpack"),...s,uniqueId:"eventbrite-widget-id",className:t&&-1!==t.indexOf("is-style-outline")?"is-style-outline":""})]]},save:function({attributes:e}){const{eventId:t,useModal:r,url:o,style:s}=e;if(t)return r||"modal"===s?function(e){const{backgroundColor:t,borderRadius:r,customBackgroundColor:o,customTextColor:s,eventId:l,text:c,textColor:u,url:A}=e,g=(0,a.getColorClassName)("color",u),d=(0,a.getColorClassName)("background-color",t),p=(0,i.A)("wp-block-button__link",{"has-text-color":u||s,[g]:g,"has-background":t||o,[d]:d,"no-border-radius":0===r}),m={backgroundColor:d?void 0:o,color:g?void 0:s,borderRadius:r?r+"px":void 0};return(0,n.createElement)("div",{className:"wp-block-button"},(0,n.createElement)(a.RichText.Content,{className:p,href:A,id:`eventbrite-widget-${l}`,rel:"noopener noreferrer",role:"button",style:m,tagName:"a",target:"_blank",value:c}))}(e):o&&(0,n.createElement)("a",{className:"eventbrite__direct-link",href:o},o)},isEligible:(e,t)=>("modal"===e.style||e.useModal)&&((0,l.isEmpty)(t)||(0,l.some)((0,l.pick)(e,c),Boolean))}},56311:(e,t,r)=>{"use strict";r.d(t,{A:()=>B});var n=r(96072),a=r.n(n),o=r(82170),s=r(94715),i=r(56427),l=r(86087),c=r(27723),u=r(78218),A=r(56145),g=r(82306),d=r(36850),p=r(38449),m=r(50013),h=r(68332),E=r(72055),f=r(12074);const __=c.__,_x=c._x,C={name:"jetpack/button",attributes:{element:"a",text:_x("Register","verb: e.g. register for an event.","jetpack"),uniqueId:"eventbrite-widget-id"}},B=(0,i.withNotices)((e=>{const{attributes:t,noticeOperations:r,onReplace:n,setAttributes:c}=e,{url:B,style:b}=t,k=(0,s.useBlockProps)(),[y,v]=(0,l.useState)(!1),[I,_]=(0,l.useState)(t.url||""),[w,Q]=(0,l.useState)(!1),S=!w&&B&&!d._t.test(B),x=(0,l.useCallback)((()=>{r.removeAllNotices(),r.createErrorNotice((0,o.createElement)(o.Fragment,null,__("Sorry, this content could not be embedded.","jetpack")," ",(0,o.createElement)(i.Button,{variant:"link",onClick:()=>(0,f.pG)(I,n)},_x("Convert block to link","button label","jetpack"))))}),[r,n,I]),j=(0,l.useCallback)((e=>{if(!e||d.gQ===e||"modal"===b)return;const t=(0,f.HE)(e);if(t){const n={eventId:t,url:e};(0,A.A)(n.url,Q).then((e=>{const t=(0,u.y)(g.attributes,{...n,url:e});c(t),_(e),r.removeAllNotices()})).catch((()=>{c({eventId:void 0,url:void 0}),x()}))}else x()}),[b,r,x,c,_,Q]);let L;return(0,l.useEffect)((()=>{j(B)}),[B,j]),L=w?(0,o.createElement)(h.A,null):y||!B||S?(0,o.createElement)(m.A,a()({},e,{editedUrl:I,onChange:e=>_(e.target.value),onSubmit:e=>{e&&e.preventDefault(),j((0,f.pJ)(I)),v(!1)}})):(0,o.createElement)(o.Fragment,null,(0,o.createElement)(p.s,e),(0,o.createElement)(s.BlockControls,null,(0,o.createElement)(p.o,{setEditingUrl:v})),"modal"===b?(0,o.createElement)(s.InnerBlocks,{template:[[C.name,C.attributes]],templateLock:"all"}):(0,o.createElement)(E.A,e)),(0,o.createElement)("div",k,L)}))},34590:(e,t,r)=>{"use strict";var n=r(74997),a=r(94375),o=r(82306),s=r(36850),i=r(77629),l=r(56311),c=r(52074);(0,a.M)(o,{edit:l.A,save:c.A,transforms:{from:[{type:"raw",isMatch:e=>"P"===e.nodeName&&(s._t.test(e.textContent)||s.GY.test(e.textContent)),transform:e=>(0,n.createBlock)("jetpack/eventbrite",{url:e.textContent.trim()})}]},deprecated:i.A})},50013:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(82170),a=r(85985),o=r(56427),s=r(27723),i=r(82306);r(12074);const __=s.__,_x=s._x,l=(0,a.sh)(i),c=({className:e,noticeUI:t,editedUrl:r,onChange:s,onSubmit:i})=>{const c=(0,a.Sy)()||(0,a.d9)()?"http://support.wordpress.com/wordpress-editor/blocks/eventbrite-block/":"https://jetpack.com/support/jetpack-blocks/eventbrite-block/";return(0,n.createElement)("div",{className:e},(0,n.createElement)(o.Placeholder,{label:__("Eventbrite Checkout","jetpack"),instructions:__("Paste a link to an Eventbrite event to embed ticket checkout.","jetpack"),icon:l,notices:t},(0,n.createElement)("form",{onSubmit:i},(0,n.createElement)("input",{type:"url",value:r,className:"components-placeholder__input","aria-label":__("Eventbrite URL","jetpack"),placeholder:__("Enter an event URL to embed here…","jetpack"),onChange:s}),(0,n.createElement)(o.Button,{variant:"secondary",type:"submit"},_x("Embed","submit button label","jetpack"))),(0,n.createElement)("div",{className:"components-placeholder__learn-more"},(0,n.createElement)(o.ExternalLink,{href:c},__("Learn more about Eventbrite embeds","jetpack")))))}},68332:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(82170),a=r(56427),o=r(27723);const __=o.__,s=()=>(0,n.createElement)("div",{className:"wp-block-embed is-loading"},(0,n.createElement)(a.Spinner,null),(0,n.createElement)("p",null,__("Embedding…","jetpack")))},72055:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(82170),a=r(56427);const o=({className:e,attributes:t})=>{const{eventId:r}=t;if(!r)return;const o=`eventbrite-widget-${r}`,s=`\n\t\t\t<script src="https://www.eventbrite.com/static/widgets/eb_widgets.js"><\/script>\n\t\t\t<style>\n\t\t\t\t/* Prevent scrollbar on the embed preview */\n\t\t\t\tbody {\n\t\t\t\t\toverflow: hidden;\n\t\t\t\t}\n\t\t\t\t/* Eventbrite embeds have a CSS height transition on loading, which causes <Sandbox>\n\t\t\t\tto not recognise the resizing. We need to disable that transition. */\n\t\t\t\t* {\n\t\t\t\t\ttransition: none !important;\n\t\t\t\t}\n\t\t\t</style>\n\t\t\t<script>\n\t\t\t\twindow.EBWidgets.createWidget({\n\t\t\t\t\twidgetType: 'checkout',\n\t\t\t\t\teventId: ${r},\n\t\t\t\t\tiframeContainerId: '${o}',\n\t\t\t\t});\n\t\t\t<\/script>\n\t\t\t<div id="${o}"></div>\n\t\t`;return(0,n.createElement)("div",{className:e},(0,n.createElement)(a.SandBox,{html:s}),(0,n.createElement)("div",{className:"block-library-embed__interactive-overlay"}))}},52074:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(82170),a=r(94715);function o({attributes:e}){const{eventId:t,style:r,url:o}=e;if(!t)return;let s;"modal"===r?s=(0,n.createElement)(a.InnerBlocks.Content,null):o&&(s=(0,n.createElement)("a",{className:"eventbrite__direct-link",href:o},o));const i=a.useBlockProps.save();return(0,n.createElement)("div",i,s)}},12074:(e,t,r)=>{"use strict";r.d(t,{HE:()=>i,pG:()=>s,pJ:()=>l});var n=r(82170),a=r(74997),o=r(86087);function s(e,t){const r=(0,n.createElement)("a",{href:e},e);t((0,a.createBlock)("core/paragraph",{content:(0,o.renderToString)(r)}))}function i(e){if(!e)return null;const t=e.match(/(\d+)\/?(?:\?[^/]*)?\s*$/);return t&&t[1]?parseInt(t[1],10):null}function l(e=""){return e&&"string"==typeof e?e.trim():null}},26053:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(82170),a=r(56427),o=r(86087),s=r(27723);const __=s.__;const i=(0,o.forwardRef)((function({onSubmit:e,onChange:t,value:r=""},o){return(0,n.createElement)("form",{className:"wp-block-jetpack-gif_input-container",onSubmit:e},(0,n.createElement)("input",{type:"text",className:"wp-block-jetpack-gif_input components-placeholder__input",placeholder:__("Enter search terms, e.g. cat…","jetpack"),value:r,onChange:t,ref:o,"aria-labelledby":"wp-block-jetpack-gif_search-button"}),(0,n.createElement)(a.Button,{id:"wp-block-jetpack-gif_search-button",variant:"secondary",type:"submit"},__("Search","jetpack")))}))},83690:(e,t,r)=>{"use strict";r.d(t,{T:()=>n});const n="t1PkR1Vq0mzHueIFBvZSZErgFs9NBmYW"},86121:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(82170),a=r(94715),o=r(56427);function s(){return(0,n.createElement)(a.InspectorControls,null,(0,n.createElement)(o.PanelBody,{className:"components-panel__body-gif-branding"},(0,n.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 202 22"},(0,n.createElement)(o.Path,{d:"M4.6 5.9H0v10h1.6v-3.1h3c4.8 0 4.8-6.9 0-6.9zm0 5.4h-3v-4h3c2.6.1 2.6 4 0 4zM51.2 12.3c2-.3 2.7-1.7 2.7-3.1 0-1.7-1.2-3.3-3.5-3.3h-4.6v10h1.6v-3.4h2.1l3 3.4h1.9l-.2-.3-3-3.3zM47.4 11V7.4h3c1.3 0 1.9.9 1.9 1.8s-.6 1.8-1.9 1.8h-3zM30.6 13.6L28 5.9h-1.1l-2.5 7.7-2.6-7.7H20l3.7 10H25l1.4-3.5L27.5 9l1.1 3.4 1.3 3.5h1.4l3.5-10h-1.7z"}),(0,n.createElement)(o.Path,{d:"M14.4 5.7c-3 0-5.1 2.2-5.1 5.2 0 2.6 1.6 5.1 5.1 5.1 3.5 0 5.1-2.5 5.1-5.2-.1-2.6-1.7-5.1-5.1-5.1zm-.1 8.9c-2.5 0-3.5-1.9-3.5-3.7 0-2.2 1.2-3.8 3.5-3.8 2.4 0 3.5 2 3.5 3.8.1 2-1 3.7-3.5 3.7zM57.7 11.6h5.5v-1.5h-5.5V7.4h5.7V5.9h-7.3v10h7.3v-1.6h-5.7zM38 14.3v-2.7h5.5v-1.5H38V7.4h5.7V5.9h-7.3v10h7.3v-1.6zM93 10.3l-2.7-4.4h-1.9V6l3.8 5.8v4.1h1.6v-4.1l4-5.8v-.1h-2zM69.3 5.9h-3.8v10h3.8c3.5 0 5.1-2.5 5-5.1-.1-2.5-1.6-4.9-5-4.9zm0 8.4h-2.2V7.4h2.2c2.3 0 3.4 1.7 3.4 3.4s-1 3.5-3.4 3.5zM86.3 10.7c.9-.4 1.4-1.1 1.4-2 0-2-1.5-2.8-3.4-2.8h-4.6v10h4.6c2 0 3.7-.7 3.7-2.8 0-.8-.5-2-1.7-2.4zm-5-3.4h3c1.2 0 1.8.7 1.8 1.4 0 .8-.6 1.3-1.8 1.3h-3V7.3zm3 7.1h-3v-2.9h3c.9 0 2.1.5 2.1 1.6 0 1-1.2 1.3-2.1 1.3zM113.9 13.3h5.3V16c-1.2.9-2.9 1.1-4 1.1-4.2 0-5.6-3.3-5.6-6 0-4.1 2.2-6.1 5.6-6.1 1.4 0 3.2.4 4.8 1.8l3.4-3.4C120.7.6 118.1 0 115.2 0c-7.8 0-11.4 5.6-11.4 11s3.1 10.9 11.4 10.9c4 0 7.6-1.4 8.9-4.1V8.6h-10.2v4.7zM171.9 8.5h-7.4V.6h-5.9v20.8h5.9v-7.8h7.4v7.8h5.9V.6h-5.9zM195.1.6l-4.5 7.1-4.3-7.1h-6.6v.2l7.9 12.3v8.3h5.9v-8.3L201.8.9V.6zM127.4.6h5.9v20.8h-5.9zM147.6.6h-10.1v20.8h5.9v-5.6h4.2c5.6-.1 8.3-3.4 8.3-7.6.1-4.1-2.7-7.6-8.3-7.6zm0 10.2h-4.2V5.6h4.2c1.6 0 2.5 1.2 2.5 2.6 0 1.4-.9 2.6-2.5 2.6z"}))))}},9695:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});var n=r(96072),a=r.n(n),o=r(82170),s=r(85985),i=r(94715),l=r(56427),c=r(86087),u=r(27723),A=r(13022),g=r(5564),d=r(26053),p=r(86121),m=r(65465),h=r(38770);const __=u.__,E=(0,s.sh)(g);const f=function({attributes:e,setAttributes:t,isSelected:r}){const{align:n,caption:s,giphyUrl:u,searchText:f,paddingTop:C}=e,[B,b]=(0,c.useState)(!1),k=(0,c.createRef)(),{isFetching:y,giphyData:v,fetchGiphyData:I}=(0,m.A)(),_=(0,i.useBlockProps)(),w=()=>{k.current.focus(),b(!1)};(0,c.useEffect)((()=>{v&&v[0]&&t((0,h.Er)(v[0]))}),[v,t]);const Q=async t=>{if(t.preventDefault(),!e.searchText||y)return;const r=await(0,h.ID)(e.searchText);r&&I(r)},S=e=>t({searchText:e.target.value});return(0,o.createElement)("div",a()({},_,{className:(0,A.A)(_.className,`align${n}`)}),(0,o.createElement)(p.A,null),u?(0,o.createElement)("figure",null,r&&(0,o.createElement)(d.A,{onSubmit:Q,onChange:S,value:f,ref:k}),r&&v&&v.length>1&&(0,o.createElement)("div",{className:"wp-block-jetpack-gif_thumbnails-container"},v.map((e=>{const r={backgroundImage:`url(${e.images.downsized_still.url})`};return(0,o.createElement)("button",{className:"wp-block-jetpack-gif_thumbnail-container",key:e.id,onClick:r=>{r.preventDefault(),(e=>{t((0,h.Er)(e))})(e)},style:r})}))),(0,o.createElement)("div",{className:"wp-block-jetpack-gif-wrapper",style:{paddingTop:C}},(0,o.createElement)("div",{className:"wp-block-jetpack-gif_cover",onClick:w,onKeyDown:w,role:"button",tabIndex:"0"}),(0,o.createElement)("iframe",{src:u,title:f})),(!i.RichText.isEmpty(s)||r)&&!!u&&(0,o.createElement)(i.RichText,{className:"wp-block-jetpack-gif-caption gallery-caption",inlineToolbar:!0,isSelected:B,onFocus:()=>b(!1),onChange:e=>t({caption:e}),placeholder:__("Write caption…","jetpack"),tagName:"figcaption",value:s})):(0,o.createElement)(l.Placeholder,{className:"wp-block-jetpack-gif_placeholder",icon:E,label:g.title,instructions:__("Search for a term or paste a Giphy URL","jetpack")},(0,o.createElement)(d.A,{onSubmit:Q,onChange:S,value:f,ref:k})))}},55734:(e,t,r)=>{"use strict";var n=r(94375),a=r(5564),o=r(9695);(0,n.M)(a,{edit:o.A,save:()=>null})},65465:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(86087);const a=(e=[])=>{const[t,r]=(0,n.useState)(!1),[a,o]=(0,n.useState)(e),[s,i]=(0,n.useState)("");return(0,n.useEffect)((()=>{if(!s)return;(async()=>{r(!0);const e=await fetch(s).then((e=>!!e.ok&&e)).catch((()=>!1));if(e){const t=await e.json(),r=void 0!==t.data.images?[t.data]:t.data;r[0].images&&o(r)}r(!1)})()}),[s]),{isFetching:t,giphyData:a,fetchGiphyData:i}}},38770:(e,t,r)=>{"use strict";r.d(t,{Er:()=>A,ID:()=>l});var n=r(56145),a=r(83690);const o=e=>`https://api.giphy.com/v1/gifs/search?q=${encodeURIComponent(e)}&api_key=${encodeURIComponent(a.T)}&limit=10`,s=e=>`https://api.giphy.com/v1/gifs/${encodeURIComponent(e)}?api_key=${encodeURIComponent(a.T)}`,i=(e="",t)=>{const r=e.split(t);return r[r.length-1]},l=(e="")=>new Promise((t=>{let r=null;if((e=e.trim()).match(/^https:\/\/gph\.is\/(?:[a-zA-Z0-9]+\/)?[a-zA-Z0-9]+$/i))(0,n.A)(e).then((n=>{n.startsWith("https://giphy.com/gifs/")?(r=i(n,"-"),t(s(r))):t(o(e))}));else{const n=/^https?:\/\/(media\.|i\.)?giphy\.com\/(embed|gifs|media)?\/?([-\w]*)(\/giphy)?(\.gif)?$/,a=e.match(n);a&&a[3]&&(r=i(a[3],"-")),r&&t(s(r)),t(o(e))}})),c=e=>`${Math.floor(e.images.original.height/e.images.original.width*100)}%`,u=e=>e?.embed_url,A=e=>({giphyUrl:u(e),paddingTop:c(e)})},43123:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(82170),a=r(56427),o=r(27723);const __=o.__,_x=o._x,s=e=>{const{className:t,embedValue:r,onChange:o,onSubmit:s}=e;return(0,n.createElement)(a.PanelBody,{title:__("Calendar settings","jetpack"),initialOpen:!1},(0,n.createElement)("form",{onSubmit:s,className:t},(0,n.createElement)("textarea",{type:"text",value:r,className:"components-placeholder__input","aria-label":__("Google Calendar URL or iframe","jetpack"),placeholder:__("Enter URL or iframe to embed here…","jetpack"),onChange:o}),(0,n.createElement)(a.Button,{variant:"secondary",type:"submit"},_x("Embed","button label","jetpack"))))}},70777:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var n=r(82170),a=r(85985),o=r(94715),s=r(74997),i=r(56427),l=r(29491),c=r(86087),u=r(27723),A=r(26873),g=r(76862),d=r(43123),p=r(23972);const __=u.__,_x=u._x,m=(0,a.sh)(g);const h=(0,l.compose)(i.withNotices,(0,A.withViewportMatch)({isMobile:"< small"}))((function(e){const{attributes:{url:t,height:r},isMobile:l,isSelected:u,name:A,noticeOperations:g,noticeUI:h,setAttributes:E}=e,f=(0,o.useBlockProps)(),[C,B]=(0,c.useState)(t||""),[b,k]=(0,c.useState)(!1),[y,v]=(0,c.useState)(!1);(0,c.useEffect)((()=>{!u&&y&&v(!1)}),[u,y]);const I=()=>{v(!0)},_=e=>{e&&e.preventDefault();const t=(0,p.tW)(C.trim());if(!p._t.test(t.url))return g.removeAllNotices(),void g.createErrorNotice(__("Your calendar couldn't be embedded. Please double check your URL or Embed Code. Please note, you need to use the 'Public URL' or 'Embed Code', the 'Shareable Link' will not work.","jetpack"));E(t),k(!1),g.removeAllNotices()},w=(0,s.getBlockDefaultClassName)(A),Q=`<iframe src="${t}" style="border:0" scrolling="no" frameborder="0" height="${l?"300":r}"></iframe>`,S=(0,n.createElement)(i.ExternalLink,{href:"https://en.support.wordpress.com/google-calendar/"},__("Enable Permissions for the calendar you want to share","jetpack")),x=(0,n.createElement)(o.InspectorControls,null,(0,n.createElement)(d.A,{className:`${w}-embed-form-sidebar`,embedValue:C,onChange:e=>B(e.target.value),onSubmit:_}));let j;if(b||!t){const e=(0,a.Sy)()||(0,a.d9)()?"https://en.support.wordpress.com/wordpress-editor/blocks/google-calendar/":"https://jetpack.com/support/jetpack-blocks/google-calendar/";j=(0,n.createElement)(n.Fragment,null,x,(0,n.createElement)(i.Placeholder,{label:__("Google Calendar","jetpack"),icon:m,notices:h},(0,n.createElement)("ol",{className:`${w}-placeholder-instructions`},(0,n.createElement)("li",null,S),(0,n.createElement)("li",null,__("Paste the embed code you copied from your Google Calendar below","jetpack"))),(L=`${w}-embed-form-editor`,(0,n.createElement)("form",{onSubmit:_,className:L},(0,n.createElement)("textarea",{type:"text",value:C,className:"components-placeholder__input","aria-label":__("Google Calendar URL or iframe","jetpack"),placeholder:__("Enter URL or iframe to embed here…","jetpack"),onChange:e=>B(e.target.value)}),(0,n.createElement)(i.Button,{variant:"secondary",type:"submit"},_x("Embed","button label","jetpack")))),(0,n.createElement)("div",{className:`${w}-placeholder-links`},(0,n.createElement)(i.ExternalLink,{href:e},__("Learn more","jetpack")))))}else j=(0,n.createElement)(n.Fragment,null,x,(0,n.createElement)("div",null,(0,n.createElement)(i.SandBox,{html:Q,onFocus:I}),!y&&(0,n.createElement)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:I})));var L;return(0,n.createElement)("div",f,j)}))},29280:(e,t,r)=>{"use strict";var n=r(74997),a=r(94375),o=r(76862),s=r(70777),i=r(23636),l=r(23972);(0,a.M)(o,{edit:s.A,save:i.A,transforms:{from:[{type:"shortcode",tag:"googleapps",isMatch:function(e){return"calendar"===e.named.domain},attributes:{url:{type:"string",shortcode:({named:{domain:e,dir:t,query:r}})=>`https://${e}.google.com/${t}?${r}`}}},{type:"raw",isMatch:e=>"P"===e.nodeName&&l._t.test(e.textContent),transform:e=>(0,n.createBlock)("jetpack/google-calendar",{url:e.textContent.trim()})},{type:"raw",isMatch:e=>"FIGURE"===e.nodeName&&l.fF.test(e.innerHTML),transform:e=>{const{url:t,height:r}=(0,l.HW)(e.innerHTML.trim());return(0,n.createBlock)("jetpack/google-calendar",{url:t,height:r})}}]}})},23636:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(96072),a=r.n(n),o=r(82170),s=r(94715);const i=({attributes:{url:e}})=>{const t=s.useBlockProps.save();return(0,o.createElement)("a",a()({},t,{href:e}),e)}},23972:(e,t,r)=>{"use strict";r.d(t,{HW:()=>c,_t:()=>a,fF:()=>o,tW:()=>u});const n="s*https?://calendar.google.com/calendar",a=new RegExp(`^${n}`,"i"),o=new RegExp(`<iframe((?:\\s+\\w+=(['"]).*?\\2)*)\\s+src=(["'])(${n}.*?)\\3((?:\\s+\\w+=(['"]).*?\\6)*)`,"i"),s=new RegExp(`${n}\\?cid=([-A-Za-z0-9+/]+={0,3})`,"i"),i=/\s+(\w+)=(["'])(.*?)\2/gi;function l(e){const t=s.exec(e);if(t)return"https://calendar.google.com/calendar/embed?src="+encodeURIComponent(atob(t[1]))}function c(e){const t=o.exec(e);if(!t)return;const r={};return t.forEach(((e,t)=>{if(0===t)return;if(a.test(e))return void(r.url=e);let n;for(;null!==(n=i.exec(e));)r[n[1]]=n[3]})),{url:r.url,width:r.width,height:r.height}}function u(e){return o.test(e)?c(e):s.test(e)?{url:l(e)}:{url:e}}},80427:(e,t,r)=>{"use strict";r.d(t,{B:()=>a,V:()=>n});const n=30,a="jetpack-new-instagram-connection"},57926:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(82170),a=r(56427),o=r(27723),s=r(80427);const __=o.__,_n=o._n;function i({accountImageTotal:e,attributes:t,currentUserConnected:r,disconnectFromService:i,shouldRenderSidebarNotice:l,setAttributes:c}){const{accessToken:u,columns:A,count:g,instagramUser:d,isStackedOnMobile:p,spacing:m}=t;return(0,n.createElement)(n.Fragment,null,(0,n.createElement)(a.PanelBody,{title:__("Account Settings","jetpack")},(0,n.createElement)(a.PanelRow,null,(0,n.createElement)("span",null,__("Account","jetpack")),(0,n.createElement)(a.ExternalLink,{href:`https://www.instagram.com/${d}/`},"@",d)),r&&(0,n.createElement)(a.PanelRow,null,(0,n.createElement)(a.Button,{isDestructive:!0,variant:"link",onClick:()=>i(u)},__("Disconnect your account","jetpack")))),(0,n.createElement)(a.PanelBody,{title:__("Display Settings","jetpack")},l?(()=>{const t=e?(0,o.sprintf)(/* translators: placeholder is a number. */ _n("There is currently only %s post in your Instagram account.","There are currently only %s posts in your Instagram account.",e,"jetpack"),e):__("There are currently no posts in your Instagram account.","jetpack");return(0,n.createElement)("div",{className:"wp-block-jetpack-instagram-gallery__count-notice"},(0,n.createElement)(a.Notice,{isDismissible:!1,status:"info"},t))})():null,(0,n.createElement)(a.RangeControl,{__nextHasNoMarginBottom:!0,label:__("Number of Posts","jetpack"),value:g,onChange:e=>c({count:e}),min:1,max:s.V}),(0,n.createElement)(a.RangeControl,{__nextHasNoMarginBottom:!0,label:__("Number of Columns","jetpack"),value:A,onChange:e=>c({columns:e}),min:1,max:6}),(0,n.createElement)(a.RangeControl,{__nextHasNoMarginBottom:!0,label:__("Image Spacing (px)","jetpack"),value:m,onChange:e=>c({spacing:e}),min:0,max:50}),(0,n.createElement)(a.ToggleControl,{__nextHasNoMarginBottom:!0,label:__("Stack on mobile","jetpack"),checked:p,onChange:()=>c({isStackedOnMobile:!p})})))}},11148:(e,t,r)=>{"use strict";r.d(t,{A:()=>b});var n=r(96072),a=r.n(n),o=r(82170),s=r(85985),i=r(94715),l=r(56427),c=r(86087),u=r(27723),A=r(13022),g=r(66087),d=r(78218),p=r(89525),m=r(80427),h=r(57926),E=r(86975),f=r(49783),C=r(53495),B=r(80619);const __=u.__,b=(0,l.withNotices)((e=>{const t=(0,i.useBlockProps)(),{attributes:r,isSelected:n,noticeOperations:u,noticeUI:b,setAttributes:k}=e,{accessToken:y,align:v,columns:I,count:_,isStackedOnMobile:w,spacing:Q}=r;(0,c.useEffect)((()=>{const e=(0,d.y)(p.attributes,r);(0,g.isEqual)(e,r)||k(e)}),[r,k]);const[S,x]=(0,c.useState)(y),{isRequestingWpcomConnectUrl:j,wpcomConnectUrl:L}=(0,C.A)(),{images:N,isLoadingGallery:T,setImages:R}=(0,B.A)({accessToken:y,noticeOperations:u,setAttributes:k,setSelectedAccount:x}),{connectToService:P,disconnectFromService:D,isConnecting:M,isRequestingUserConnections:F,userConnections:O}=(0,f.A)({accessToken:y,noticeOperations:u,selectedAccount:S,setAttributes:k,setImages:R,setSelectedAccount:x}),U=(0,s.gB)(),H=_>N.length?N.length:_,z=!T&&(!y||(0,g.isEmpty)(N)),q=!z,V=y&&T&&(0,g.isEmpty)(N),G=!z&&!V,$=(0,A.A)(t.className,{[`align${v}`]:v}),Z=(0,A.A)("wp-block-jetpack-instagram-gallery__grid",`wp-block-jetpack-instagram-gallery__grid-columns-${I}`,{"is-stacked-on-mobile":w}),W={gridGap:Q,"--latest-instagram-posts-spacing":Q?`${Q}px`:void 0},Y={padding:Q},K=()=>{S&&m.B!==S?k({accessToken:S,instagramUser:(0,g.find)(O,{token:S}).username}):P()};return(0,o.createElement)("div",a()({},t,{className:$}),z&&(0,o.createElement)(l.Placeholder,{icon:"instagram",instructions:U?F||O.length?void 0:__("Connect to Instagram to start sharing your images.","jetpack"):__("First, you'll need to connect your WordPress.com account.","jetpack"),label:__("Latest Instagram Posts","jetpack"),notices:b},U?(()=>{const e=O.length>0,t=[...(0,g.map)(O,(e=>({label:`@${e.username}`,value:e.token}))),{label:__("Add a new account","jetpack"),value:m.B}],r=M||F||e&&!S;return(0,o.createElement)("div",null,e&&(0,o.createElement)(l.RadioControl,{label:__("Select your Instagram account:","jetpack"),onChange:e=>x(e),options:t,selected:S}),m.B===S&&(0,o.createElement)("p",{className:"wp-block-jetpack-instagram-gallery__new-account-instructions"},__("If you are currently logged in to Instagram on this device, you might need to log out of it first.","jetpack")),(0,o.createElement)(l.Button,{disabled:r,variant:"primary",onClick:K},M&&__("Connecting…","jetpack"),F&&__("Loading your connections…","jetpack"),!M&&!F&&__("Connect to Instagram","jetpack")))})():(0,o.createElement)(l.Button,{disabled:j||!L,href:L,variant:"secondary"},__("Connect to WordPress.com","jetpack"))),V&&(0,o.createElement)("div",{className:"wp-block-embed is-loading"},(0,o.createElement)(l.Spinner,null),(0,o.createElement)("p",null,__("Embedding…","jetpack"))),G&&(0,o.createElement)("div",{className:Z,style:W},(0,g.times)(n?_:H,(e=>(0,o.createElement)("span",{className:(0,A.A)("wp-block-jetpack-instagram-gallery__grid-post"),key:e,style:Y},(e=>{if(N[e]){const t=N[e];return(0,o.createElement)(E.A,{alt:t.title||t.url,src:t.url,attributes:r,spacing:Q})}return(0,o.createElement)("img",{alt:__("Latest Instagram Posts placeholder","jetpack"),src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNMyc2tBwAEOgG/c94mJwAAAABJRU5ErkJggg=="})})(e))))),q&&(0,o.createElement)(i.InspectorControls,null,(0,o.createElement)(h.A,{accountImageTotal:N.length,attributes:r,currentUserConnected:U,disconnectFromService:D,shouldRenderSidebarNotice:q&&!V&&N.length<_,setAttributes:k})))}))},92585:(e,t,r)=>{"use strict";var n=r(74997),a=r(94375),o=r(89525),s=r(11148),i=r(85793);(0,a.M)(o,{edit:s.A,save:i.A,transforms:{from:[{type:"block",blocks:["core/legacy-widget"],isMatch:({idBase:e,instance:t})=>!!t?.raw&&"wpcom_instagram_widget"===e,transform:({instance:e})=>(0,n.createBlock)("jetpack/instagram-gallery",{columns:e.raw.columns,count:e.raw.count,accessToken:e.raw.token_id})}]}})},86975:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(82170),a=r(86087),o=r(13022);function s({src:e,alt:t,spacing:r}){const[s,i]=(0,a.useState)(!1),[l,c]=(0,a.useState)("auto"),u=(0,a.useRef)(void 0),A=()=>{i(!0),c("auto")};(0,a.useEffect)((()=>{const t=e;if(t){const e=new window.Image;e.src=t,e.onload=A}u.current&&c(u.current.parentNode.getBoundingClientRect().width)}),[e]);const g=-1*r,d=(0,o.A)("wp-block-jetpack-instagram-gallery__placeholder",{"is-loaded":s}),p=s?{margin:g}:{margin:g,height:l},m=(0,o.A)({"is-loaded":s});return(0,n.createElement)("span",{style:p,className:d},(0,n.createElement)("img",{alt:t,className:m,ref:u,src:e}))}},85793:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(82170),a=r(94715);const o=({attributes:{instagramUser:e}})=>{const t=a.useBlockProps.save();return e&&(0,n.createElement)("div",t,(0,n.createElement)("a",{href:`https://www.instagram.com/${e}/`,rel:"noopener noreferrer",target:"_blank"},`https://www.instagram.com/${e}/`))}},49783:(e,t,r)=>{"use strict";r.d(t,{A:()=>A});var n=r(85985),a=r(51119),o=r(1455),s=r.n(o),i=r(86087),l=r(27723),c=r(66087),u=r(80427);const __=l.__;function A({accessToken:e,noticeOperations:t,selectedAccount:r,setAttributes:o,setImages:l,setSelectedAccount:A}){const[g,d]=(0,i.useState)(!1),[p,m]=(0,i.useState)(!1),[h,E]=(0,i.useState)([]),f=(0,n.gB)();(0,i.useEffect)((()=>{!e&&f&&(m(!0),s()({path:"/wpcom/v2/instagram-gallery/connections"}).then((e=>{m(!1),E(e)})).catch((()=>{m(!1),E([])})))}),[e,f]),(0,i.useEffect)((()=>{u.B===r||(0,c.find)(h,{token:r})||A(void 0)}),[r,A,h]);return{connectToService:()=>{t.removeAllNotices(),d(!0),s()({path:"/wpcom/v2/instagram-gallery/connect-url"}).then((e=>{const t=new a.A;t.open(e,"connect-to-instagram-popup","toolbar=0,location=0,menubar=0,"+t.getScreenCenterSpecs(700,700)),t.on("message",(({keyring_id:e})=>{if(d(!1),e){const t=e.toString();o({accessToken:t}),A(t)}})),t.on("close",(e=>{"connect-to-instagram-popup"===e&&d(!1)}))})).catch((()=>{t.createErrorNotice(__("An error occurred. Please try again later.","jetpack")),d(!1)}))},disconnectFromService:()=>{t.removeAllNotices(),o({accessToken:void 0,instagramUser:void 0}),l([])},isConnecting:g,isRequestingUserConnections:p,userConnections:h}}},53495:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(85985),a=r(1455),o=r.n(a),s=r(47143),i=r(86087),l=r(93832);function c(){const{isAutoDraft:e}=(0,s.useSelect)((e=>{const{status:t}=e("core/editor").getCurrentPost();return{isAutoDraft:"auto-draft"===t}})),{savePost:t}=(0,s.useDispatch)("core/editor"),[r,a]=(0,i.useState)(),[c,u]=(0,i.useState)(!1),A=(0,n.gB)();return(0,i.useEffect)((()=>{A||r||c||(e?t():(u(!0),o()({path:(0,l.addQueryArgs)("/jetpack/v4/connection/url",{from:"jetpack-block-editor",redirect:window.location.href})}).then((e=>{a(e),u(!1)}))))}),[A,e,c,t,r]),{isRequestingWpcomConnectUrl:c,wpcomConnectUrl:r}}},80619:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(1455),a=r.n(n),o=r(86087),s=r(27723),i=r(93832),l=r(66087),c=r(80427);const __=s.__;function u({accessToken:e,noticeOperations:t,setAttributes:r,setSelectedAccount:n}){const[s,u]=(0,o.useState)([]),[A,g]=(0,o.useState)(!1);return(0,o.useEffect)((()=>{e&&(t.removeAllNotices(),g(!0),a()({path:(0,i.addQueryArgs)("/wpcom/v2/instagram-gallery/gallery",{access_token:e,count:c.V})}).then((({external_name:e,images:a})=>{if(g(!1),!a||!(0,l.isArray)(a))return t.createErrorNotice(__("An error occurred. Please try again later.","jetpack")),u([]),r({accessToken:void 0,instagramUser:void 0}),void n(void 0);(0,l.isEmpty)(a)&&t.createErrorNotice(__("No images were found in your Instagram account.","jetpack")),r({instagramUser:e}),u(a)})).catch((()=>{g(!1),u([]),r({accessToken:void 0,instagramUser:void 0}),n(void 0)})))}),[e,r,n]),{images:s,isLoadingGallery:A,setImages:u}}},40483:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(82170),a=r(94715),o=r(56427),s=r(27723),i=r(13022),l=r(54790);const __=s.__,c={name:"jetpack/button",attributes:{element:"button",text:__("Join my Mailchimp audience","jetpack"),uniqueId:"mailchimp-widget-id"}},u=({attributes:e,setAttributes:t,audition:r})=>{const{emailPlaceholder:s=l.Bd,consentText:u=l.Do,processingLabel:A=l.HD,successLabel:g=l.XO,errorLabel:d=l.Ys}=e,p={[l.k1]:A,[l.EM]:g,[l.Dc]:d}[r];return(0,n.createElement)("div",{className:(0,i.A)({[`${l.j7}_notication-audition`]:r})},(0,n.createElement)(o.TextControl,{__nextHasNoMarginBottom:!0,"aria-label":s,className:`${l.j7}_text-input`,disabled:!0,onChange:()=>!1,placeholder:s,title:__("You can edit the email placeholder in the sidebar.","jetpack"),type:"email"}),(0,n.createElement)(a.InnerBlocks,{template:[[c.name,c.attributes]],templateLock:"all"}),(0,n.createElement)(a.RichText,{tagName:"p",placeholder:__("Write consent text","jetpack"),value:u,onChange:e=>t({consentText:e}),inlineToolbar:!0}),r&&(0,n.createElement)("div",{className:`${l.j7}_notification ${l.j7}_${r}`,role:r===l.Dc?"alert":"status"},p))}},54790:(e,t,r)=>{"use strict";r.d(t,{Bd:()=>A,Dc:()=>s,Do:()=>g,EM:()=>o,HD:()=>d,JA:()=>c,XO:()=>p,Ys:()=>m,an:()=>l,gI:()=>u,j7:()=>i,k1:()=>a});var n=r(27723);const __=n.__,a="processing",o="success",s="error",i="wp-block-jetpack-mailchimp",l=0,c=1,u=2,A=__("Enter your email","jetpack"),g=__("By clicking submit, you agree to share your email address with the site owner and Mailchimp to receive marketing, updates, and other emails from the site owner. Use the unsubscribe link in those emails to opt out at any time.","jetpack"),d=__("Processing…","jetpack"),p=__("Success! You're on the list.","jetpack"),m=__("Whoops! There was an error and we couldn't process your subscription. Please reload the page and try again.","jetpack")},20093:(e,t,r)=>{"use strict";r.d(t,{o:()=>A});var n=r(82170),a=r(94715),o=r(56427),s=r(86087),i=r(27723),l=r(54790),c=r(60462);const __=i.__,u=({auditionNotification:e,clearAudition:t,setAttributes:r,emailPlaceholder:a=l.Bd,processingLabel:s=l.HD,successLabel:i=l.XO,errorLabel:u=l.Ys,interests:A,signupFieldTag:g,signupFieldValue:d,connectURL:p})=>(0,n.createElement)(n.Fragment,null,(0,n.createElement)(o.PanelBody,{title:__("Text Elements","jetpack")},(0,n.createElement)(o.TextControl,{__nextHasNoMarginBottom:!0,label:__("Email Placeholder","jetpack"),value:a,onChange:e=>{r({emailPlaceholder:e}),t()}})),(0,n.createElement)(o.PanelBody,{title:__("Notifications","jetpack")},(0,n.createElement)(o.TextControl,{__nextHasNoMarginBottom:!0,label:__("Processing text","jetpack"),value:s,onChange:t=>{r({processingLabel:t}),e(l.k1)}}),(0,n.createElement)(o.TextControl,{__nextHasNoMarginBottom:!0,label:__("Success text","jetpack"),value:i,onChange:t=>{r({successLabel:t}),e(l.EM)}}),(0,n.createElement)(o.TextControl,{__nextHasNoMarginBottom:!0,label:__("Error text","jetpack"),value:u,onChange:t=>{r({errorLabel:t}),e(l.Dc)}})),(0,n.createElement)(o.PanelBody,{title:__("Mailchimp Groups","jetpack")},(0,n.createElement)(c.A,{interests:A,onChange:(e,t)=>{const n=[...new Set([...A,e])].filter((r=>!(r===e&&!t)&&r));r({interests:n})}}),(0,n.createElement)(o.ExternalLink,{href:"https://mailchimp.com/help/send-groups-audience/"},__("Learn about groups","jetpack"))),(0,n.createElement)(o.PanelBody,{title:__("Signup Location Tracking","jetpack")},(0,n.createElement)(o.TextControl,{__nextHasNoMarginBottom:!0,label:__("Signup Field Tag","jetpack"),placeholder:__("SIGNUP","jetpack"),value:g,onChange:e=>r({signupFieldTag:e})}),(0,n.createElement)(o.TextControl,{__nextHasNoMarginBottom:!0,label:__("Signup Field Value","jetpack"),placeholder:__("website","jetpack"),value:d,onChange:e=>r({signupFieldValue:e})}),(0,n.createElement)(o.ExternalLink,{href:"https://mailchimp.com/help/determine-webpage-signup-location/"},__("Learn about signup location tracking","jetpack"))),(0,n.createElement)(o.PanelBody,{title:__("Mailchimp Connection","jetpack")},(0,n.createElement)(o.ExternalLink,{href:p},__("Manage Connection","jetpack")))),A=({connectURL:e,attributes:t,setAttributes:r,setAudition:o})=>{const{emailPlaceholder:i=l.Bd,processingLabel:c=l.HD,successLabel:A=l.XO,errorLabel:g=l.Ys,interests:d,signupFieldTag:p,signupFieldValue:m}=t,h=(0,s.useRef)(null),E=()=>o(null);return(0,n.createElement)(a.InspectorControls,null,(0,n.createElement)(u,{auditionNotification:e=>{o(e),h.current&&clearTimeout(h.current),h.current=setTimeout(E,3e3)},clearAudition:E,emailPlaceholder:i,processingLabel:c,successLabel:A,errorLabel:g,interests:d,setAttributes:r,signupFieldTag:p,signupFieldValue:m,connectURL:e}))}},31491:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(74997),a=r(27723),o=r(66087);const __=a.__,s=["submitButtonText","backgroundButtonColor","textButtonColor","submitButtonClasses","customBackgroundButtonColor","customTextButtonColor"],i={attributes:{emailPlaceholder:{type:"string",default:__("Enter your email","jetpack")},submitButtonText:{type:"string",default:__("Join my email list","jetpack")},backgroundButtonColor:{type:"string"},textButtonColor:{type:"string"},submitButtonClasses:{type:"string"},customBackgroundButtonColor:{type:"string"},customTextButtonColor:{type:"string"},consentText:{type:"string",default:__("By clicking submit, you agree to share your email address with the site owner and Mailchimp to receive marketing, updates, and other emails from the site owner. Use the unsubscribe link in those emails to opt out at any time.","jetpack")},interests:{type:"array",default:[]},processingLabel:{type:"string",default:__("Processing…","jetpack")},signupFieldTag:{type:"string"},signupFieldValue:{type:"string"},successLabel:{type:"string",default:__("Success! You're on the list.","jetpack")},errorLabel:{type:"string",default:__("Whoops! There was an error and we couldn't process your subscription. Please reload the page and try again.","jetpack")},preview:{type:"boolean",default:!1}},migrate:e=>{const t=(0,o.omit)(e,s),r={text:(a=e).submitButtonText||__("Join my email list","jetpack"),textColor:a.textButtonColor,customTextColor:a.customTextButtonColor,backgroundColor:a.backgroundButtonColor,customBackgroundColor:a.customBackgroundButtonColor};var a;return[t,[(0,n.createBlock)("jetpack/button",{element:"button",uniqueId:"mailchimp-widget-id",...r})]]},isEligible:(e,t)=>(0,o.isEmpty)(t)||(0,o.some)((0,o.pick)(e,s),Boolean),save:()=>null}},52243:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});var n=r(82170),a=r(85985),o=r(1455),s=r.n(o),i=r(94715),l=r(56427),c=r(86087),u=r(93832),A=r(37120),g=r(40483),d=r(54790),p=r(20093),m=r(88368),h=r(36837);const E=(0,a.sh)(A),f=(0,l.withNotices)((({attributes:e,setAttributes:t,notices:r,noticeUI:o,noticeOperations:l})=>{const A=(0,i.useBlockProps)(),[f,C]=(0,c.useState)(null),[B,b]=(0,c.useState)(d.an),[k,y]=(0,c.useState)(null),[v,I]=(0,c.useState)(null),_=(0,c.useCallback)((()=>{const e=(0,a.gB)();e?s()({path:"/wpcom/v2/mailchimp",method:"GET"}).then((({connect_url:t,code:r})=>{y(t),b("connected"===r?d.JA:d.gI),I(e)}),(({message:t})=>{y(null),b(d.gI),I(e),l.removeAllNotices(),l.createErrorNotice(t)})):s()({path:(0,u.addQueryArgs)("/jetpack/v4/connection/url",{from:"jetpack-block-editor",redirect:window.location.href})}).then((t=>{y(t),b(d.gI),I(e)}))}),[y,b,I,l]);let w;return(0,c.useEffect)((()=>{_()}),[_]),e.preview?w=(0,n.createElement)(g.A,{attributes:e,setAttributes:t,audition:f}):B===d.an?w=(0,n.createElement)(m.A,{icon:E,notices:r}):B===d.gI?w=v?(0,n.createElement)(h.W,{icon:E,notices:r,connectURL:k,apiCall:_}):(0,n.createElement)(h.V,{icon:E,notices:r,connectURL:k}):B===d.JA&&(w=(0,n.createElement)(n.Fragment,null,(0,n.createElement)(p.o,{connectURL:k,attributes:e,setAttributes:t,setAudition:C}),(0,n.createElement)(g.A,{attributes:e,setAttributes:t,audition:f}))),(0,n.createElement)("div",A,o,w)}))},97618:(e,t,r)=>{"use strict";var n=r(94375),a=r(37120),o=r(31491),s=r(52243),i=r(96014),l=r(47638);(0,n.M)(a,{edit:s.A,save:i.A,deprecated:[o.A],transforms:l.A})},88368:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(82170),a=r(56427),o=r(27723),s=r(54790);const __=o.__,i=({icon:e,notices:t})=>(0,n.createElement)(a.Placeholder,{icon:e,notices:t,className:s.j7,label:__("Mailchimp","jetpack")},(0,n.createElement)("div",{className:"align-center"},(0,n.createElement)(a.Spinner,null)))},60462:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(82170),a=r(1455),o=r.n(a),s=r(56427),i=r(86087);class l extends i.Component{state={interest_categories:[]};componentDidMount(){this.retrieveGroups()}retrieveGroups=()=>{o()({method:"GET",path:"/wpcom/v2/mailchimp/groups"}).then((e=>{const{interest_categories:t}=e;this.setState({interest_categories:t})}))};render=()=>{const{interest_categories:e}=this.state,{interests:t,onChange:r}=this.props;return(0,n.createElement)(i.Fragment,null,e&&(e||[]).map((e=>e.interests.map((e=>(0,n.createElement)(s.CheckboxControl,{__nextHasNoMarginBottom:!0,label:e.name,value:e.id,checked:t.includes(e.id),onChange:t=>r(e.id,t),key:e.id}))))))}}const c=l;l.defaultProps={interests:[],onChange:()=>null}},36837:(e,t,r)=>{"use strict";r.d(t,{V:()=>l,W:()=>i});var n=r(82170),a=r(56427),o=r(27723),s=r(54790);const __=o.__,i=({icon:e,notices:t,connectURL:r,apiCall:o})=>(0,n.createElement)(a.Placeholder,{className:s.j7,icon:e,label:__("Mailchimp","jetpack"),notices:t,instructions:__("You need to connect your Mailchimp account and choose an audience in order to start collecting Email subscribers.","jetpack")},(0,n.createElement)(a.Button,{variant:"secondary",href:r,target:"_blank"},__("Set up Mailchimp form","jetpack")),(0,n.createElement)("div",{className:`${s.j7}-recheck`},(0,n.createElement)(a.Button,{variant:"link",onClick:o},__("Re-check Connection","jetpack")))),l=({icon:e,notices:t,connectURL:r})=>(0,n.createElement)(a.Placeholder,{className:s.j7,icon:e,label:__("Mailchimp","jetpack"),notices:t,instructions:__("First, you'll need to connect your WordPress.com account.","jetpack")},(0,n.createElement)(a.Button,{variant:"secondary",href:r},__("Connect to WordPress.com","jetpack")))},96014:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(82170),a=r(94715);const o=()=>{const e=a.useBlockProps.save();return(0,n.createElement)("div",e,(0,n.createElement)(a.InnerBlocks.Content,null))}},47638:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(74997);const a={to:[{type:"block",blocks:["jetpack/subscriptions"],transform:()=>(0,n.createBlock)("jetpack/subscriptions")}]}},98144:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(82170),a=r(56427),o=r(86087),s=r(27723),i=r(67670);const __=s.__;class l extends o.Component{render(){const{onClose:e,onAddPoint:t,onError:r,apiKey:o,mapProvider:s}=this.props;return(0,n.createElement)(a.Button,{className:"component__add-point"},__("Add marker","jetpack"),(0,n.createElement)(a.Popover,{className:"component__add-point__popover",position:"bottom center"},(0,n.createElement)(a.Button,{className:"component__add-point__close",onClick:e},(0,n.createElement)(a.Dashicon,{icon:"no"})),(0,n.createElement)(i.A,{onAddPoint:t,label:__("Add a location","jetpack"),apiKey:o,onError:r,mapProvider:s})))}}l.defaultProps={onAddPoint:()=>{},onClose:()=>{},onError:()=>{},mapProvider:"mapbox"};const c=l},6199:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(96072),a=r.n(n),o=r(82170),s=r(86087),i=r(57500),l=r(14561);const c=(0,s.forwardRef)(((e,t)=>{if("mapkit"===e.mapProvider){const r={...e,ref:null};return(0,o.createElement)(l.A,a()({},r,{ref:t}))}return(0,o.createElement)(i.A,a()({},e,{ref:t}))}))},19931:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(82170),a=r(9216),o=r(15109);const s=e=>"mapkit"===e.mapProvider?(0,n.createElement)(o.A,e):(0,n.createElement)(a.A,e)},9216:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(86087),a=r(16815);class o extends n.Component{componentDidMount(){const{mapboxgl:e}=this.props;this.el=document.createElement("DIV"),this.infowindow=(0,a.BY)(e),this.infowindow.setDOMContent(this.el),this.infowindow.on("close",this.closeClick)}componentDidUpdate(e){this.props.activeMarker!==e.activeMarker&&(this.props.activeMarker?this.openWindow():this.closeWindow())}render(){return this.el?(0,n.createPortal)(this.props.children,this.el):null}closeClick=()=>{this.props.unsetActiveMarker()};openWindow(){const{map:e,activeMarker:t}=this.props;this.infowindow.setLngLat(t.getPoint()).addTo(e)}closeWindow(){this.infowindow.remove()}}o.defaultProps={unsetActiveMarker:()=>{},activeMarker:null,map:null,mapboxgl:null};const s=o},15109:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(82170),a=r(56427),o=r(86087),s=r(27723),i=r(5389);const __=s.__,l=()=>{const{activeMarker:e,setActiveMarker:t,calloutReference:r,admin:s,points:l,setPoints:c}=(0,i.ST)(),[u,A]=(0,o.useState)(l),[g,d]=(0,o.useState)(!1),{title:p,caption:m}=u.find((t=>t.id===e?.id))||{},h=t=>{const r=l.map((r=>r.id===e.id?{...r,...t}:r));A(r),d(!0)};return(0,o.useEffect)((()=>{!e&&g&&c(u)}),[e,g,u,c]),(0,o.useEffect)((()=>{A(l),d(!1)}),[l]),e&&r?(0,o.createPortal)((0,n.createElement)(o.Fragment,null,s&&(0,n.createElement)(o.Fragment,null,(0,n.createElement)(a.TextControl,{label:__("Marker Title","jetpack"),value:p,onChange:e=>h({title:e}),__nextHasNoMarginBottom:!0}),(0,n.createElement)(a.TextareaControl,{className:"wp-block-jetpack-map__marker-caption",label:__("Marker Caption","jetpack"),value:m,rows:"2",tag:"textarea",onChange:e=>h({caption:e}),__nextHasNoMarginBottom:!0}),(0,n.createElement)(a.Button,{onClick:()=>{const r=l.filter((t=>t.id!==e.id));A(r),d(!0),t(null)},className:"wp-block-jetpack-map__delete-btn"},(0,n.createElement)(a.Dashicon,{icon:"trash",size:"15"})," ",__("Delete Marker","jetpack"))),!s&&(0,n.createElement)(o.Fragment,null,(0,n.createElement)("h3",null,p),(0,n.createElement)("p",null,m))),r):null}},56099:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(86087),a=r(34377),o=r(16815);class s extends n.Component{componentDidMount(){this.renderMarker()}componentWillUnmount(){this.marker&&(this.marker.remove(),this.marker=null)}componentDidUpdate(){this.renderMarker()}handleClick=()=>{const{onClick:e}=this.props;e(this)};getPoint=()=>{const{point:e}=this.props;return[e.coordinates.longitude,e.coordinates.latitude]};renderMarker(){const{map:e,point:t,mapboxgl:r,markerColor:n,mapRef:s}=this.props,{handleClick:i}=this,l=[t.coordinates.longitude,t.coordinates.latitude],{currentDoc:c}=(0,a.sG)(s.current),u=this.marker?this.marker.getElement():c.createElement("div");this.marker?this.marker.setLngLat(l):(u.className="wp-block-jetpack-map-marker",this.marker=new r.Marker(u).setLngLat(l).setOffset([0,-19]).addTo(e),this.marker.getElement().addEventListener("click",i)),(0,o.iU)(u,n)}render(){return null}}s.defaultProps={point:{},map:null,markerColor:"#000000",mapboxgl:null,onClick:()=>{}};const i=s},57500:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var n=r(82170),a=r(56427),o=r(86087),s=r(27723),i=r(66087),l=r(34377),c=r(55740),u=r(82063),A=r(16815),g=r(91844),d=r(19931),p=r(56099);const __=s.__;class m extends o.Component{constructor(){super(...arguments),this.state={map:null,fit_to_bounds:!1,loaded:!1,mapboxgl:null},this.mapRef=(0,o.createRef)(),this.debouncedSizeMap=(0,i.debounce)(this.sizeMap,250)}render(){const{points:e,admin:t,children:r,markerColor:s}=this.props,{map:l,activeMarker:c,mapboxgl:u}=this.state,{onMarkerClick:A,deleteActiveMarker:g,updateActiveMarker:m}=this,h=(0,i.get)(c,"props.point")||{},{title:E,caption:f}=h,C=o.Children.map(r,(e=>{if("AddPoint"===(0,i.get)(e,"props.tagName"))return e})),B=l&&u&&e.map(((e,t)=>(0,n.createElement)(p.A,{mapRef:this.mapRef,key:t,point:e,index:t,map:l,mapboxgl:u,markerColor:s,onClick:A}))),b=u&&(0,n.createElement)(d.A,{activeMarker:c,map:l,mapboxgl:u,unsetActiveMarker:()=>this.setState({activeMarker:null})},c&&t&&(0,n.createElement)(o.Fragment,null,(0,n.createElement)(a.TextControl,{label:__("Marker Title","jetpack"),value:E,onChange:e=>m({title:e}),__nextHasNoMarginBottom:!0}),(0,n.createElement)(a.TextareaControl,{className:"wp-block-jetpack-map__marker-caption",label:__("Marker Caption","jetpack"),value:f,rows:"2",tag:"textarea",onChange:e=>m({caption:e}),__nextHasNoMarginBottom:!0}),(0,n.createElement)(a.Button,{onClick:g,className:"wp-block-jetpack-map__delete-btn"},(0,n.createElement)(a.Dashicon,{icon:"trash",size:"15"})," ",__("Delete Marker","jetpack"))),c&&!t&&(0,n.createElement)(o.Fragment,null,(0,n.createElement)("h3",null,E),(0,n.createElement)("p",null,f)));return(0,n.createElement)(o.Fragment,null,(0,n.createElement)("div",{className:"wp-block-jetpack-map__gm-container",ref:this.mapRef},B),b,C)}componentDidMount(){const{apiKey:e}=this.props;e&&this.loadMapLibraries()}componentWillUnmount(){this.debouncedSizeMap.cancel(),window.removeEventListener("resize",this.debouncedSizeMap)}componentDidUpdate(e){const{admin:t,apiKey:r,children:n,points:a,mapStyle:o,mapDetails:s,scrollToZoom:i,showFullscreenButton:l}=this.props,{map:c,fullscreenControl:u}=this.state;r&&r.length>0&&r!==e.apiKey&&this.loadMapLibraries(),n!==e.children&&!1!==n&&this.clearCurrentMarker(),a!==e.points&&this.setBoundsByMarkers(),a.length!==e.points.length&&this.clearCurrentMarker(),o===e.mapStyle&&s===e.mapDetails||c.setStyle(this.getMapStyle()),i!==e.scrollToZoom&&(i?c.scrollZoom.enable():c.scrollZoom.disable()),l!==e.showFullscreenButton&&(l?(c.addControl(u),t&&u._fullscreenButton&&(u._fullscreenButton.disabled=!0)):c.removeControl(u))}onMarkerClick=e=>{const{onMarkerClick:t}=this.props;this.setState({activeMarker:e}),t()};onMapClick=()=>{this.setState({activeMarker:null})};clearCurrentMarker=()=>{this.setState({activeMarker:null})};updateActiveMarker=e=>{const{points:t}=this.props,{activeMarker:r}=this.state,{index:n}=r.props,a=t.slice(0);(0,i.assign)(a[n],e),this.props.onSetPoints(a)};deleteActiveMarker=()=>{const{points:e}=this.props,{activeMarker:t}=this.state,{index:r}=t.props,n=e.slice(0);n.splice(r,1),this.props.onSetPoints(n),this.setState({activeMarker:null})};sizeMap=()=>{const{mapHeight:e}=this.props,{map:t}=this.state,r=this.mapRef.current;(0,g.A)(r,e),t.resize(),this.setBoundsByMarkers()};updateZoom=()=>{const{zoom:e}=this.props,{map:t}=this.state;t.setZoom(e)};setBoundsByMarkers=()=>{const{admin:e,onSetMapCenter:t,onSetZoom:r,points:n,zoom:a}=this.props,{map:o,activeMarker:s,mapboxgl:i,zoomControl:l,boundsSetProgrammatically:c}=this.state;if(!o)return;if(n.length&&e?o.dragPan.disable():o.dragPan.enable(),!n.length)return;if(s)return;const u=(0,A.ES)(i,n);if(t(u.getCenter()),n.length>1){(0,A._t)(o,u),this.setState({boundsSetProgrammatically:!0});try{o.removeControl(l)}catch(e){}}else{if(o.setCenter(u.getCenter()),c){const e=12;o.setZoom(e),r(e)}else o.setZoom(parseInt(a,10));o.addControl(l),this.setState({boundsSetProgrammatically:!1})}};getMapStyle(){const{mapStyle:e,mapDetails:t}=this.props;return(0,u.o)(e,t)}getMapType(){const{mapStyle:e}=this.props;switch(e){case"satellite":return"HYBRID";case"terrain":return"TERRAIN";default:return"ROADMAP"}}scriptsLoaded=()=>{const{mapCenter:e,points:t}=this.props;this.setState({loaded:!0}),t.length,this.initMap(e)};loadMapLibraries(){const{apiKey:e}=this.props,{currentWindow:t}=(0,l.sG)(this.mapRef.current),r={"mapbox-gl-js":()=>{(0,l.Cu)(t,"mapboxgl").then((t=>{t.accessToken=e,this.setState({mapboxgl:t},this.scriptsLoaded)}))}};(0,l.a$)(c,r,this.mapRef.current)}initMap(e){const{mapboxgl:t}=this.state,{zoom:r,onMapLoaded:n,onError:a,scrollToZoom:o,showFullscreenButton:s,admin:i}=this.props;let l=null;try{l=new t.Map({container:this.mapRef.current,style:this.getMapStyle(),center:(0,A.jF)(e),zoom:parseInt(r,10),pitchWithRotate:!1,attributionControl:!1,dragRotate:!1})}catch(e){return void a("mapbox_error",e.message)}o||l.scrollZoom.disable();const c=new t.FullscreenControl;l.on("error",(e=>{a("mapbox_error",e.error.message)}));const u=new t.NavigationControl({showCompass:!1,showZoom:!0});l.on("zoomend",(()=>{this.props.onSetZoom(l.getZoom())})),l.on("moveend",(()=>{const{onSetMapCenter:e,points:t}=this.props;t.length<1&&e(l.getCenter())})),l.getCanvas().addEventListener("click",this.onMapClick),this.setState((({map:e})=>{try{e?.remove()}catch(e){}return{map:l,zoomControl:u,fullscreenControl:c}}),(()=>{this.debouncedSizeMap(),l.addControl(u),s&&(l.addControl(c),i&&c._fullscreenButton&&(c._fullscreenButton.disabled=!0)),this.mapRef.current.addEventListener("alignmentChanged",this.debouncedSizeMap),l.resize(),n(),this.setState({loaded:!0}),window.addEventListener("resize",this.debouncedSizeMap)}))}}m.defaultProps={points:[],mapStyle:"default",zoom:13,onSetZoom:()=>{},onSetMapCenter:()=>{},onMapLoaded:()=>{},onMarkerClick:()=>{},onError:()=>{},markerColor:"red",apiKey:null,mapCenter:{},address:null};const h=m},14561:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});var n=r(82170),a=r(86087),o=r(66087),s=r(27534),i=r(5389),l=r(42470),c=r(19931);const u=(0,a.forwardRef)((({admin:e,points:t=[],mapStyle:r="default",zoom:l=13,onSetZoom:u=()=>{},onSetMapCenter:g=()=>{},onMapLoaded:d=()=>{},onMarkerClick:p=()=>{},onError:m=()=>{},markerColor:h="red",mapCenter:E={},mapHeight:f=400,address:C=null,onSetPoints:B,children:b},k)=>{const{loaded:y,error:v,mapkit:I,currentDoc:_,currentWindow:w}=(0,i.PC)(k),{map:Q}=(0,i.I3)(I,y,k),S=a.Children.map(b,(e=>{if("AddPoint"===(0,o.get)(e,"props.tagName"))return e})),[x,j]=(0,a.useState)(!1);(0,a.useEffect)((()=>{v&&m("mapkit_error",v)}),[v,m]);return(0,a.useEffect)((()=>{const e=e=>{k.current.contains(e.target)||j(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[k]),(0,n.createElement)(s.u,{value:{mapkit:I,map:Q,loaded:y,currentDoc:_,currentWindow:w,admin:e,points:t,setPoints:B}},y&&I&&Q?(0,n.createElement)(A,{address:C,mapCenter:E,mapStyle:r,zoom:l,onSetMapCenter:g,onSetZoom:u,onSetPoints:B,points:t,markerColor:h,onMarkerClick:p,onMapLoaded:d}):null,(0,n.createElement)("div",{style:{height:f?`${f}px`:"400px",position:"relative"},className:"wp-block-jetpack-map__mapkit-wrapper",ref:k,onClick:()=>{j(!0)}},!x&&(0,n.createElement)("div",{className:"wp-block-jetpack-map__select-overlay"}),(0,n.createElement)("div",{className:"wp-block-jetpack-map__gm-container",style:{height:`${f}px`,position:"absolute",pointerEvents:x?"auto":"none"}})),S,(0,n.createElement)(c.A,{mapProvider:"mapkit"}))})),A=(0,a.memo)((({address:e=null,mapCenter:t={},mapStyle:r="default",zoom:n=13,onSetMapCenter:o=()=>{},onSetZoom:s=()=>{},onSetPoints:c=()=>{},points:u=[],markerColor:A="red",onMarkerClick:g=()=>{},onMapLoaded:d=()=>{}})=>{const{map:p,mapkit:m,setActiveMarker:h,setPreviousCenter:E,setCalloutReference:f,currentDoc:C}=(0,i.ST)(),B=(0,a.useRef)(g),b=(0,a.useRef)(c),k=(0,a.useCallback)((e=>{h(e),E(p.center),B.current&&B.current(e),p.setCenterAnimated(new m.Coordinate(e.coordinates.latitude,e.coordinates.longitude))}),[p,m,h,E,B]);return(0,i.FN)(t,o),(0,i.y7)(r),(0,i.LR)(n,s),(0,i.$H)(u,A,(0,l.K5)(C,f),k),(0,i.bY)(d),(0,i.wB)((e=>{h(null),e&&p.setCenterAnimated(e)})),(0,i.mA)(e,b),null})),g=u},19673:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(82170),a=r(94715),o=r(56427),s=r(27723),i=r(16016);const __=s.__,l=(0,n.createElement)(o.SVG,{width:"14",height:"20",viewBox:"0 0 14 20",xmlns:"http://www.w3.org/2000/svg"},(0,n.createElement)(o.G,{id:"Page-1",fill:"none",fillRule:"evenodd"},(0,n.createElement)(o.G,{id:"outline-add_location-24px",transform:"translate(-5 -2)"},(0,n.createElement)(o.Polygon,{id:"Shape",points:"0 0 24 0 24 24 0 24"}),(0,n.createElement)(o.Path,{d:"M12,2 C8.14,2 5,5.14 5,9 C5,14.25 12,22 12,22 C12,22 19,14.25 19,9 C19,5.14 15.86,2 12,2 Z M7,9 C7,6.24 9.24,4 12,4 C14.76,4 17,6.24 17,9 C17,11.88 14.12,16.19 12,18.88 C9.92,16.21 7,11.85 7,9 Z M13,6 L11,6 L11,8 L9,8 L9,10 L11,10 L11,12 L13,12 L13,10 L15,10 L15,8 L13,8 L13,6 Z",id:"Shape",fill:"#000",fillRule:"nonzero"})))),c=({attributes:e,setAttributes:t,apiKey:r,apiKeySource:s,apiKeyControl:c,onKeyChange:u,context:A,mapRef:g,instanceId:d,minHeight:p,removeAPIKey:m,updateAPIKey:h,setPointVisibility:E,mapProvider:f})=>{const C=e=>{t({align:e}),g.current?.sizeMap&&setTimeout(g.current.sizeMap,0)};return"toolbar"===A?(0,n.createElement)(n.Fragment,null,(0,n.createElement)(a.BlockAlignmentToolbar,{value:e.align,onChange:C,controls:["center","wide","full"]}),(0,n.createElement)(o.ToolbarGroup,null,(0,n.createElement)(o.ToolbarButton,{icon:l,label:__("Add a marker","jetpack"),onClick:E}))):(0,n.createElement)(n.Fragment,null,(0,n.createElement)(a.PanelColorSettings,{title:__("Colors","jetpack"),initialOpen:!0,colorSettings:[{value:e.markerColor,onChange:e=>t({markerColor:e}),label:__("Marker Color","jetpack")}]}),(0,n.createElement)(o.PanelBody,{title:__("Map Settings","jetpack")},(0,n.createElement)(o.BaseControl,{__nextHasNoMarginBottom:!0,label:__("Height in pixels","jetpack"),id:`block-jetpack-map-height-input-${d}`},(0,n.createElement)("input",{type:"number",id:`block-jetpack-map-height-input-${d}`,className:"wp-block-jetpack-map__height_input",onChange:e=>{t({mapHeight:e.target.value}),e.target!==e.target.ownerDocument.activeElement&&g.current&&setTimeout(g.current.sizeMap,0)},onBlur:r=>{const{mapHeight:n}=e;let a=parseInt(r.target.value,10);if(isNaN(a))a=null;else if(null==n){const e=g?.current?.mapRef??g;a=e?.current.offsetHeight}else a<p&&(a=p);t({mapHeight:a}),g.current.sizeMap&&setTimeout(g.current.sizeMap,0)},value:e.mapHeight||"",min:p,step:"10"})),(0,n.createElement)(o.RangeControl,{__nextHasNoMarginBottom:!0,label:__("Zoom level","jetpack"),help:e.points.length>1&&__("The default zoom level cannot be changed when there are two or more markers on the map.","jetpack"),disabled:e.points.length>1,value:Math.round(e.zoom),onChange:e=>{t({zoom:e}),g.current&&g.current.updateZoom&&setTimeout(g.current.updateZoom,0)},min:0,max:22}),"mapbox"===f?(0,n.createElement)(o.ToggleControl,{__nextHasNoMarginBottom:!0,label:__("Show street names","jetpack"),checked:e.mapDetails,onChange:e=>t({mapDetails:e})}):null,(0,n.createElement)(o.ToggleControl,{__nextHasNoMarginBottom:!0,label:__("Scroll to zoom","jetpack"),help:__("Allow the map to capture scrolling, and zoom in or out.","jetpack"),checked:e.scrollToZoom,onChange:e=>t({scrollToZoom:e})}),"mapbox"===f?(0,n.createElement)(o.ToggleControl,{__nextHasNoMarginBottom:!0,label:__("Show Fullscreen Button","jetpack"),help:__("Allow your visitors to display the map in fullscreen.","jetpack"),checked:e.showFullscreenButton,onChange:e=>t({showFullscreenButton:e})}):null),e.points.length?(0,n.createElement)(o.PanelBody,{title:__("Markers","jetpack"),initialOpen:!1},(0,n.createElement)(i.A,{points:e.points,onChange:e=>{t({points:e})}})):null,"mapbox"===f?(0,n.createElement)(o.PanelBody,{title:__("Mapbox Access Token","jetpack"),initialOpen:!1},(0,n.createElement)(o.TextControl,{__nextHasNoMarginBottom:!0,help:"wpcom"===s&&(0,n.createElement)(n.Fragment,null,__("You can optionally enter your own access token.","jetpack")," ",(0,n.createElement)(o.ExternalLink,{href:"https://account.mapbox.com/access-tokens/"},__("Find it on Mapbox","jetpack"))),label:__("Mapbox Access Token","jetpack"),value:c,onChange:u}),(0,n.createElement)(o.ButtonGroup,null,(0,n.createElement)(o.Button,{type:"button",onClick:h,disabled:!c||c===r},__("Update Token","jetpack")),(0,n.createElement)(o.Button,{type:"button",onClick:m,disabled:"wpcom"===s,variant:"secondary"},__("Remove Token","jetpack")))):null)}},1807:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={attributes:{align:{type:"string"},points:{type:"array",default:[]},mapDetails:{type:"boolean",default:!0},zoom:{type:"integer",default:13},mapCenter:{type:"object",default:{longitude:-122.41941550000001,latitude:37.7749295}},mapStyle:{type:"string",default:"default"},markerColor:{type:"string",default:"red"},scrollToZoom:{type:"boolean",default:!1},mapHeight:{type:"integer"}},migrate:e=>{const t=((e.className||"").replace(/is-style-[^ ]+/,"")+` is-style-${e.mapStyle}`).replace(/\s+/g," ").trim(),{mapStyle:r,...n}=e;return{...n,showFullscreenButton:!0,className:t}},save:r(66730).A}},66730:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(82170),a=r(86087);class o extends a.Component{render(){const{attributes:e}=this.props,{align:t,mapStyle:r,mapDetails:a,points:o,zoom:s,mapCenter:i,markerColor:l,scrollToZoom:c,mapHeight:u}=e,A=o.map(((e,t)=>{const{longitude:r,latitude:a}=e.coordinates,o="https://www.google.com/maps/search/?api=1&query="+a+","+r;return(0,n.createElement)("li",{key:t},(0,n.createElement)("a",{href:o},e.title))})),g=t?`align${t}`:null;return(0,n.createElement)("div",{className:g,"data-map-style":r,"data-map-details":a,"data-points":JSON.stringify(o),"data-zoom":s,"data-map-center":JSON.stringify(i),"data-marker-color":l,"data-scroll-to-zoom":c||null,"data-map-height":u||null},o.length>0&&(0,n.createElement)("ul",null,A))}}const s=o},43402:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={attributes:{align:{type:"string"},points:{type:"array",default:[]},mapDetails:{type:"boolean",default:!0},zoom:{type:"integer",default:13},mapCenter:{type:"object",default:{longitude:-122.41941550000001,latitude:37.7749295}},mapStyle:{type:"string",default:"default"},markerColor:{type:"string",default:"red"},scrollToZoom:{type:"boolean",default:!1},mapHeight:{type:"integer"},showFullscreenButton:{type:"boolean",default:!0}},migrate:e=>{const t=((e.className||"").replace(/is-style-[^ ]+/,"")+` is-style-${e.mapStyle}`).replace(/\s+/g," ").trim(),{mapStyle:r,...n}=e;return{...n,className:t}},save:r(34161).A}},34161:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(82170),a=r(86087);class o extends a.Component{render(){const{attributes:e}=this.props,{align:t,mapStyle:r,mapDetails:a,points:o,zoom:s,mapCenter:i,markerColor:l,scrollToZoom:c,mapHeight:u,showFullscreenButton:A}=e,g=o.map(((e,t)=>{const{longitude:r,latitude:a}=e.coordinates,o="https://www.google.com/maps/search/?api=1&query="+a+","+r;return(0,n.createElement)("li",{key:t},(0,n.createElement)("a",{href:o},e.title))})),d=t?`align${t}`:null;return(0,n.createElement)("div",{className:d,"data-map-style":r,"data-map-details":a,"data-points":JSON.stringify(o),"data-zoom":s,"data-map-center":JSON.stringify(i),"data-marker-color":l,"data-scroll-to-zoom":c||null,"data-map-height":u||null,"data-show-fullscreen-button":A||null},o.length>0&&(0,n.createElement)("ul",null,g))}}const s=o},61647:(e,t,r)=>{"use strict";r.d(t,{A:()=>v});var n=r(82170),a=r(85985),o=r(1455),s=r.n(o),i=r(94715),l=r(56427),c=r(29491),u=r(47143),A=r(86087),g=r(27723),d=r(90907),p=r(98144),m=r(6852),h=r(6199),E=r(19673),f=r(2905),C=r(25836),B=r(62393),b=r(44950);const __=g.__,k=(0,a.sh)(m),y={top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},v=(0,c.compose)([l.withNotices,(0,u.withDispatch)((e=>{const{toggleSelection:t}=e("core/block-editor");return{onResizeStart:()=>t(!1),onResizeStop:()=>t(!0)}}))])((({setAttributes:e,attributes:t,noticeUI:r,notices:a,isSelected:o,instanceId:c,onResizeStart:g,onResizeStop:m,noticeOperations:v})=>{const{address:I,mapDetails:_,points:w,zoom:Q,mapCenter:S,markerColor:x,mapHeight:j,showFullscreenButton:L}=t,{isPreviewMode:N}=(0,u.useSelect)((e=>{const{getSettings:t}=e(i.store);return{isPreviewMode:t().__unstableIsPreviewMode}}),[]),[T,R]=(0,A.useState)(!1),[P,D]=(0,A.useState)(0),[M,F]=(0,A.useState)(null),[O,U]=(0,A.useState)(null),[H,z]=(0,A.useState)(null),[q,V]=(0,A.useState)(null),G=(0,A.useRef)(null),$=(0,i.useBlockProps)(),{className:Z}=$,W=(0,d.D)(B.A,Z),Y=(0,b.A)({mapStyle:W}),K=()=>{I&&M&&"mapkit"!==Y&&(0,f.I)(I,M).then((t=>{if(t.features?.length){const r=t.features[0],n=[{title:r.text,placeTitle:r.text,caption:r.place_name,id:r.id,coordinates:{latitude:r.center[1],longitude:r.center[0]}}];e({points:n})}else re(null,__("Could not find the coordinates of the provided address. Displaying default location. Feel free to add the location manually.","jetpack"))})).catch((e=>re(null,e.message)))},J=(e=null,t="GET")=>new Promise(((r,n)=>{const a="/wpcom/v2/service-api-keys/mapbox",o=e?{path:a,method:t,data:{service_api_key:e}}:{path:a,method:t};V(!0),s()(o).then((({service_api_key:e,service_api_key_source:t})=>{v.removeAllNotices(),D(e?2:1),F(e),U("wpcom"===t?"":e),z(t),V(!1),r()}),(({message:e})=>{re(null,e),D(1),V(!1),n()}))})),X=t=>{if(w.some((e=>e.id===t.id)))return;const r=w.slice(0);r.push(t),e({points:r}),R(!1)},ee=()=>{v.removeAllNotices(),O&&J(O,"POST")},te=()=>J(null,"DELETE"),re=(e,t)=>{v.removeAllNotices(),v.createErrorNotice(t)},ne=(t,r,n,a)=>{m();const o=G?.current?.mapRef??G;if(o){const t=parseInt(o.current.offsetHeight+a.height,10);e({mapHeight:t}),o.current.sizeMap&&setTimeout(o.current.sizeMap,0)}};let ae;if((0,A.useEffect)((()=>{"mapbox"===Y?J().then(K):D(2)}),[]),(0,A.useEffect)(K,[I]),(0,A.useEffect)((()=>{Z&&!M&&(D(0),J())}),[Z]),N){const e=B.A.find((e=>e.name===W));ae=(0,n.createElement)("div",null,(0,n.createElement)("img",{alt:__("Map Preview","jetpack"),src:e?e.preview:C,style:{width:"100%",height:j||"400px",objectFit:"cover"}}))}else if(0===P)ae=(0,n.createElement)(l.Placeholder,{icon:k},(0,n.createElement)(l.Spinner,null));else if(1===P)ae=(0,n.createElement)(l.Placeholder,{icon:k,label:__("Map","jetpack"),notices:a},(0,n.createElement)(n.Fragment,null,(0,n.createElement)("p",{className:"components-placeholder__instructions"},__("To use the map block, you need an Access Token.","jetpack"),(0,n.createElement)("br",null),(0,n.createElement)(l.ExternalLink,{href:"https://www.mapbox.com"},__("Create an account or log in to Mapbox.","jetpack")),(0,n.createElement)("br",null),__("Locate and copy the default access token. Then, paste it into the field below.","jetpack")),(0,n.createElement)("form",null,(0,n.createElement)("input",{type:"text",className:"components-placeholder__input",disabled:q,placeholder:__("Paste Token Here","jetpack"),value:O,onChange:e=>U(e.target.value)}),(0,n.createElement)(l.Button,{variant:"secondary",disabled:q||!O||O.length<1,onClick:ee},__("Set Token","jetpack")))));else if(2===P){const r=e=>U(e),a=o&&w.length<=1;ae=(0,n.createElement)(n.Fragment,null,(0,n.createElement)(i.BlockControls,null,(0,n.createElement)(E.A,{attributes:t,setAttributes:e,apiKey:M,apiKeySource:H,apiKeyControl:O,onKeyChange:r,setPointVisibility:()=>R(!0),context:"toolbar",mapRef:G,mapProvider:Y})),(0,n.createElement)(i.InspectorControls,null,(0,n.createElement)(E.A,{attributes:t,setAttributes:e,apiKey:M,apiKeySource:H,apiKeyControl:O,onKeyChange:r,mapRef:G,instanceId:c,minHeight:400,removeAPIKey:te,updateAPIKey:ee,mapProvider:Y})),(0,n.createElement)(l.ResizableBox,{size:{height:j||"auto",width:"100%"},grid:[10,10],showHandle:o,minHeight:400,enable:y,onResizeStart:g,onResizeStop:ne},(0,n.createElement)("div",{className:"wp-block-jetpack-map__map_wrapper"},(0,n.createElement)(h.A,{ref:G,address:I,scrollToZoom:a,showFullscreenButton:L,mapStyle:W||"default",mapDetails:_,mapHeight:j,points:w,zoom:Q,mapCenter:S,markerColor:x,onSetZoom:t=>{e({zoom:t})},admin:!0,apiKey:M,onSetPoints:t=>e({points:t}),onSetMapCenter:t=>e({mapCenter:t}),onMapLoaded:()=>R(!w.length),onMarkerClick:()=>R(!1),onError:re,mapProvider:Y},o&&T&&(0,n.createElement)(p.A,{onAddPoint:X,onClose:()=>R(!1),apiKey:M,onError:re,tagName:"AddPoint",mapProvider:Y})))))}return(0,n.createElement)("div",$,r,ae)}))},12742:(e,t,r)=>{"use strict";var n=r(94375),a=r(6852),o=r(1807),s=r(43402),i=r(61647),l=r(2194),c=r(62393);(0,n.M)(a,{edit:i.A,save:l.A,styles:c.A,deprecated:[s.A,o.A]})},2905:(e,t,r)=>{"use strict";function n(e,t){return fetch(`https://api.mapbox.com/geocoding/v5/mapbox.places/${encodeURIComponent(e)}.json?access_token=${encodeURIComponent(t)}`).then((e=>e.json()))}r.d(t,{I:()=>n})},67670:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(82170),a=r(96687),o=r(25786);const s=e=>{const t="mapbox"===e.mapProvider?a.A:o.A;return(0,n.createElement)(t,e)}},96687:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(82170),a=r(56427),o=r(86087),s=r(27723),i=r(97566);const l=(0,s.__)("Add a marker…","jetpack");class c extends o.Component{constructor(){super(...arguments),this.textRef=(0,o.createRef)(),this.containerRef=(0,o.createRef)(),this.state={isEmpty:!0},this.autocompleter={name:"placeSearch",options:this.search,isDebounced:!0,getOptionLabel:e=>(0,n.createElement)("span",null,e.place_name),getOptionKeywords:e=>[e.place_name],getOptionCompletion:this.getOptionCompletion}}componentDidMount(){setTimeout((()=>{this.containerRef.current.querySelector("input").focus()}),50)}getOptionCompletion=e=>{const{value:t}=e,r={placeTitle:t.text,title:t.text,caption:t.place_name,id:t.id,coordinates:{longitude:t.geometry.coordinates[0],latitude:t.geometry.coordinates[1]}};return this.props.onAddPoint(r),t.text};search=e=>{const{apiKey:t,onError:r}=this.props,n="https://api.mapbox.com/geocoding/v5/mapbox.places/"+encodeURI(e)+".json?access_token="+t;return new Promise((function(e,t){const a=new XMLHttpRequest;a.open("GET",n),a.onload=function(){if(200===a.status){const t=JSON.parse(a.responseText);e(t.features)}else{const e=JSON.parse(a.responseText);r(e.statusText,e.responseJSON.message),t(new Error("Mapbox Places Error"))}},a.send()}))};onReset=()=>{this.textRef.current.value=null};render(){const{label:e}=this.props;return(0,n.createElement)("div",{ref:this.containerRef},(0,n.createElement)("div",{className:"components-location-search"},(0,n.createElement)(i.A,{completer:this.autocompleter,onReset:this.onReset},(({isExpanded:t,listBoxId:r,activeId:o,onChange:s,onKeyDown:i})=>(0,n.createElement)(a.TextControl,{label:e,placeholder:l,ref:this.textRef,onChange:s,"aria-expanded":t,"aria-owns":r,"aria-activedescendant":o,onKeyDown:i,__nextHasNoMarginBottom:!0})))))}}c.defaultProps={onError:()=>{}};const u=c},25786:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(82170),a=r(56427),o=r(86087),s=r(27723),i=r(97566),l=r(5389);const c=(0,s.__)("Add a marker…","jetpack"),u=({label:e,onAddPoint:t})=>{const r=(0,o.useRef)(void 0),s=(0,o.useRef)(void 0),{mapkit:u}=(0,l.ST)(),A=new u.Search({includePointsOfInterest:!1}),g={name:"placeSearch",options:async e=>new Promise((function(t,r){A.autocomplete(e,((e,n)=>{if(e)return void r(e);const a=(n?.results.filter((e=>e.coordinate))??[]).map((e=>({...e,placeName:e.displayLines?.join(", "),original:e})));t(a)}))})),isDebounced:!0,getOptionLabel:e=>(0,n.createElement)("span",null,e.placeName),getOptionKeywords:e=>[e.placeName],getOptionCompletion:e=>{const{value:r}=e,n={placeTitle:r.placeName,title:r.placeName,caption:r.placeName,coordinates:{longitude:r.coordinate.longitude,latitude:r.coordinate.latitude},id:`${r.placeName} ${Number(r.coordinate.latitude).toFixed(2)} ${Number(r.coordinate.longitude).toFixed(2)}`};return A.search(r.original,((e,r)=>{if(!e){const{places:e}=r;if(e.length>0){const t=e[0];n.coordinates={longitude:t.coordinate.longitude,latitude:t.coordinate.latitude}}}t(n)})),r.placeName}};return(0,o.useEffect)((()=>{setTimeout((()=>{r.current.querySelector("input").focus()}),50)}),[]),(0,n.createElement)("div",{ref:r},(0,n.createElement)("div",{className:"components-location-search"},(0,n.createElement)(i.A,{completer:g,onReset:()=>{s.current.value=""}},(({isExpanded:t,listBoxId:r,activeId:o,onChange:i,onKeyDown:l})=>(0,n.createElement)(a.TextControl,{label:e,placeholder:c,ref:s,onChange:i,"aria-expanded":t,"aria-owns":r,"aria-activedescendant":o,onKeyDown:l,__nextHasNoMarginBottom:!0})))))}},16016:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(82170),a=r(56427),o=r(86087);class s extends o.Component{constructor(){super(...arguments),this.state={selectedCell:null}}onDeletePoint=e=>{const t=parseInt(e.target.getAttribute("data-id")),{points:r,onChange:n}=this.props,a=r.slice(0);a.splice(t,1),n(a)};setMarkerField(e,t,r){const{points:n,onChange:a}=this.props,o=n.slice(0);o[r][e]=t,a(o)}render(){const{points:e}=this.props,t=e.map(((e,t)=>(0,n.createElement)(a.PanelBody,{title:e.placeTitle,key:e.id,initialOpen:!1},(0,n.createElement)(a.TextControl,{label:"Marker Title",value:e.title,onChange:e=>this.setMarkerField("title",e,t),__nextHasNoMarginBottom:!0}),(0,n.createElement)(a.TextareaControl,{label:"Marker Caption",value:e.caption,rows:"3",onChange:e=>this.setMarkerField("caption",e,t),__nextHasNoMarginBottom:!0}),(0,n.createElement)(a.Button,{"data-id":t,onClick:this.onDeletePoint,className:"component__locations__delete-btn"},(0,n.createElement)(a.Dashicon,{icon:"trash",size:"15"})," Delete Marker"))));return(0,n.createElement)("div",{className:"component__locations"},(0,n.createElement)(a.Panel,{className:"component__locations__panel"},t))}}s.defaultProps={points:Object.freeze([]),onChange:()=>{}};const i=s},97566:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n=r(82170),a=r(56427),o=r(29491),s=r(86087),i=r(27723),l=r(48558),c=r(13022),u=r(66087);const __=i.__,_n=i._n;function A(e=[],t=10){const r=[];for(let n=0;n<e.length;n++){const a=e[n];let{keywords:o=[]}=a;if("string"==typeof a.label&&(o=[...o,a.label]),r.push(a),r.length===t)break}return r}class g extends s.Component{static getInitialState(){return{selectedIndex:0,query:void 0,filteredOptions:[],isOpen:!1}}constructor(){super(...arguments),this.debouncedLoadOptions=(0,u.debounce)(this.loadOptions,250),this.state=this.constructor.getInitialState()}componentWillUnmount(){this.debouncedLoadOptions.cancel()}select=e=>{const{completer:t}=this.props;(t.getOptionCompletion||{})(e),this.reset()};reset=()=>{this.setState(this.constructor.getInitialState())};handleFocusOutside(){this.reset()}loadOptions(e,t){const{options:r}=e,n=this.activePromise=Promise.resolve("function"==typeof r?r(t):r).then((t=>{if(n!==this.activePromise)return;const r=t.map(((t,r)=>({key:`${r}`,value:t,label:e.getOptionLabel(t),keywords:e.getOptionKeywords?e.getOptionKeywords(t):[]}))),a=A(r),o=a.length===this.state.filteredOptions.length?this.state.selectedIndex:0;this.setState({options:r,filteredOptions:a,selectedIndex:o,isOpen:a.length>0}),this.announce(a)}))}onChange=e=>{const{completer:t}=this.props,{options:r}=this.state;if(!e)return void this.reset();t&&(t.isDebounced?this.debouncedLoadOptions(t,e):this.loadOptions(t,e));const n=t?A(r):[];t&&this.setState({selectedIndex:0,filteredOptions:n,query:e})};onKeyDown=e=>{const{isOpen:t,selectedIndex:r,filteredOptions:n}=this.state;if(!t)return;let a;switch(e.keyCode){case l.UP:a=(0===r?n.length:r)-1,this.setState({selectedIndex:a});break;case l.DOWN:a=(r+1)%n.length,this.setState({selectedIndex:a});break;case l.ENTER:this.select(n[r]);break;case l.LEFT:case l.RIGHT:case l.ESCAPE:return void this.reset();default:return}e.preventDefault(),e.stopPropagation()};announce(e){const{debouncedSpeak:t}=this.props;t&&(e.length?t((0,i.sprintf)(/* translators: placeholder is a number. */ _n("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",e.length,"jetpack","jetpack"),e.length),"assertive"):t(__("No results.","jetpack"),"assertive"))}render(){const{onChange:e,onKeyDown:t}=this,{children:r,instanceId:o,completer:s}=this.props,{selectedIndex:i,filteredOptions:l}=this.state,{key:A=""}=l[i]||{},{className:g}=s,d=l.length>0,p=d?`components-autocomplete-listbox-${o}`:null,m=d?`components-autocomplete-item-${o}-${A}`:null;return(0,n.createElement)("div",{className:"components-autocomplete"},r({isExpanded:d,listBoxId:p,activeId:m,onChange:e,onKeyDown:t}),d&&(0,n.createElement)(a.Popover,{focusOnMount:!1,onClose:this.reset,position:"top center",className:"components-autocomplete__popover",noArrow:!0},(0,n.createElement)("div",{id:p,role:"listbox",className:"components-autocomplete__results"},(0,u.map)(l,((e,t)=>(0,n.createElement)(a.Button,{key:e.key,id:`components-autocomplete-item-${o}-${e.key}`,role:"option","aria-selected":t===i,disabled:e.isDisabled,className:(0,c.A)("components-autocomplete__result",g,{"is-selected":t===i}),onClick:()=>this.select(e)},e.label))))))}}const d=(0,o.compose)([a.withSpokenMessages,o.withInstanceId,a.withFocusOutside])(g)},82063:(e,t,r)=>{"use strict";function n(e,t){return{default:{details:"mapbox://styles/automattic/cjolkhmez0qdd2ro82dwog1in",no_details:"mapbox://styles/automattic/cjolkci3905d82soef4zlmkdo"},black_and_white:{details:"mapbox://styles/automattic/cjolkixvv0ty42spgt2k4j434",no_details:"mapbox://styles/automattic/cjolkgc540tvj2spgzzoq37k4"},satellite:{details:"mapbox://styles/mapbox/satellite-streets-v10",no_details:"mapbox://styles/mapbox/satellite-v9"},terrain:{details:"mapbox://styles/automattic/cjolkf8p405fh2soet2rdt96b",no_details:"mapbox://styles/automattic/cjolke6fz12ys2rpbpvgl12ha"}}[e][t?"details":"no_details"]}r.d(t,{o:()=>n})},16815:(e,t,r)=>{"use strict";r.d(t,{BY:()=>i,ES:()=>a,_t:()=>o,iU:()=>s,jF:()=>n});const n=e=>Object.hasOwn(e,"lat")&&Object.hasOwn(e,"lng")?e:{lat:e.latitude||0,lng:e.longitude||0};function a(e,t){const r=new e.LngLatBounds;return t.forEach((e=>{r.extend([e.coordinates.longitude,e.coordinates.latitude])})),r}function o(e,t){e.fitBounds(t,{padding:{top:80,bottom:80,left:40,right:40}})}function s(e,t){e.innerHTML=`\n\t\t<?xml version="1.0" encoding="UTF-8"?>\n\t\t<svg version="1.1" viewBox="0 0 32 38" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n\t\t\t<g fill-rule="evenodd">\n\t\t\t\t<path id="d" d="m16 38s16-11.308 16-22-7.1634-16-16-16-16 5.3076-16 16 16 22 16 22z" fill="${t}"/>\n\t\t\t</g>\n\t\t</svg>\n\t`}function i(e){return new e.Popup({closeButton:!0,closeOnClick:!1,offset:{left:[0,0],top:[0,5],right:[0,0],bottom:[0,-40]}})}},42470:(e,t,r)=>{"use strict";r.d(t,{IR:()=>A,K5:()=>c,Sm:()=>i,Yc:()=>u,c6:()=>s,nQ:()=>l});var n=r(34377);const a=6371e3;function o(e){return Math.abs(a*Math.cos(e*Math.PI/180)*2*Math.PI/256)}function s(e,t){return 512/Math.pow(2,e)*.5*o(t)}function i(e,t){const r=e/o(t);return Math.log2(512/(r/.5))}function l(e,t){if(0===t.length)return null;const r=new e.Coordinate(-90,180),n=new e.Coordinate(90,-180);t.forEach((e=>{r.latitude=Math.max(r.latitude,e.coordinates.latitude),r.longitude=Math.min(r.longitude,e.coordinates.longitude),n.latitude=Math.min(n.latitude,e.coordinates.latitude),n.longitude=Math.max(n.longitude,e.coordinates.longitude)}));const a=new e.Coordinate(r.latitude-.5*(r.latitude-n.latitude),r.longitude+.5*(n.longitude-r.longitude)),o=new e.CoordinateSpan(1.3*Math.abs(r.latitude-n.latitude),1.3*Math.abs(n.longitude-r.longitude));return new e.CoordinateRegion(a,o)}function c(e,t){return()=>{const r=e.createElement("div");return r.classList.add("mapkit-popup-content"),t(r),r}}function u(e,t){return new Promise((r=>{if(t.mapkitScriptIsLoading)(0,n.Cu)(t,"mapkit").then((e=>{r(e)}));else{t.mapkitScriptIsLoading=!0;const a=e.createElement("script");a.addEventListener("load",(async()=>{const e=await(0,n.Cu)(t,"mapkit");t.mapkitScriptIsLoading=!1,r(e)}),{once:!0}),a.src="https://cdn.apple-mapkit.com/mk/5.x.x/mapkit.js",a.crossOrigin="anonymous",e.head.appendChild(a)}}))}function A(e,t,r){return new Promise(((t,n)=>{r.mapkitIsInitialized?t():r.mapkitIsInitializing?function(e){return new Promise(((t,r)=>{const n=()=>{void 0===e.mapkitIsInitializing?r():!1===e.mapkitIsInitializing?t():e.requestAnimationFrame(n)};n()}))}(r).then((()=>{t()})):(r.mapkitIsInitializing=!0,r.mapkitIsInitialized=!1,e.init({authorizationCallback:async e=>{try{const a=await fetch("https://public-api.wordpress.com/wpcom/v2/mapkit");if(200===a.status){e((await a.json()).wpcom_mapkit_access_token)}else n();r.mapkitIsInitializing=!1,r.mapkitIsInitialized=!0,t()}catch(e){n()}}}))}))}},27534:(e,t,r)=>{"use strict";r.d(t,{C:()=>o,u:()=>s});var n=r(82170),a=r(86087);const o=(0,a.createContext)({map:null,mapkit:null,loaded:!1,activeMarker:null,calloutReference:null,currentDoc:null,currentWindow:null,admin:!1,setPoints:()=>{},points:[],previousCenter:null}),s=({value:e,children:t})=>{const[r,s]=(0,a.useState)(null),[i,l]=(0,a.useState)(null),[c,u]=(0,a.useState)(null);return(0,n.createElement)(o.Provider,{value:{...e,activeMarker:r,setActiveMarker:s,calloutReference:i,setCalloutReference:l,previousCenter:c,setPreviousCenter:u}},t)}},5389:(e,t,r)=>{"use strict";r.d(t,{$H:()=>E,FN:()=>p,I3:()=>d,LR:()=>h,PC:()=>g,ST:()=>A,bY:()=>f,mA:()=>B,wB:()=>C,y7:()=>m});var n=r(39384),a=r(47143),o=r(86087),s=r(27723),i=r(66087),l=r(34377),c=r(42470),u=r(27534);const __=s.__,A=()=>(0,o.useContext)(u.C),g=e=>{const[t,r]=(0,o.useState)(!1),[s,i]=(0,o.useState)(!1),[u,A]=(0,o.useState)(null),[g,d]=(0,o.useState)(null),[p,m]=(0,o.useState)(null);return(0,o.useEffect)((()=>{const t=(0,a.select)(n.CONNECTION_STORE_ID).getBlogId(),{currentDoc:o,currentWindow:s}=(0,l.sG)(e.current);if(e.current){d(s),m(o);const e=__("Failed to retrieve a Mapkit API token. Please try refreshing.","jetpack");s.mapkit?(A(s.mapkit),(0,c.IR)(s.mapkit,t,s).then((()=>{r(!0)}),(()=>{i(e)}))):(0,c.Yc)(o,s).then((n=>{A(n),(0,c.IR)(n,t,s).then((()=>{r(!0)}),(()=>{i(e)}))}))}}),[e]),{loaded:t,error:s,mapkit:u,currentDoc:p,currentWindow:g}},d=(e,t,r)=>{const[n,a]=(0,o.useState)(null);return(0,o.useEffect)((()=>{e&&t&&a(new e.Map(r.current,{showsMapTypeControl:!1}))}),[e,t,r]),{map:n}},p=(e,t)=>{const{mapkit:r,map:n}=A(),a=(0,o.useRef)(e),s=(0,o.useRef)(t);(0,o.useEffect)((()=>{if(!r||!n||!a.current)return;const e=a.current?.lat??a.current?.latitude,t=a.current?.lng??a.current?.longitude;"number"==typeof e&&"number"==typeof t&&(n.center=new r.Coordinate(e,t))}),[r,n,a]),(0,o.useEffect)((()=>{if(!r||!n)return;const e=()=>{if(n.center){const{latitude:e,longitude:t}=n.center;s.current({lat:e,lng:t})}};return n.addEventListener("region-change-end",(0,i.debounce)(e,1e3)),()=>{n.removeEventListener("region-change-end",e)}}),[r,n,s])},m=e=>{const{mapkit:t,map:r}=A();(0,o.useEffect)((()=>{t&&r&&(r.mapType=(()=>{switch(e){case"satellite":return t.Map.MapTypes.Satellite;case"black_and_white":return t.Map.MapTypes.MutedStandard;case"hybrid":return t.Map.MapTypes.Hybrid;default:return t.Map.MapTypes.Standard}})())}),[t,r,e])},h=(e,t)=>{const{mapkit:r,map:n,points:a}=A();(0,o.useEffect)((()=>{if(r&&n)if(a&&a.length<=1){const t=(0,c.c6)(13,n.center.latitude);if(e){const t=(0,c.c6)(e,n.center.latitude);t!==n.cameraDistance&&(n.cameraDistance=t)}else t!==n.cameraDistance&&(n.cameraDistance=t);n.isZoomEnabled=!0,n.isScrollEnabled=!0}else n.region=(0,c.nQ)(r,a),n.isZoomEnabled=!1,n.isScrollEnabled=!1}),[r,n,e,a]),(0,o.useEffect)((()=>{const e=()=>{t((0,c.Sm)(n.cameraDistance,n.center.latitude))};return n.addEventListener("zoom-end",e),()=>{n.removeEventListener("zoom-end",e)}}),[r,n,t])},E=(e,t,r=null,n=null)=>{const{mapkit:a,map:s,loaded:i}=A(),l=(0,o.useRef)(r),c=(0,o.useRef)(n);(0,o.useEffect)((()=>{if(i){s.annotations.filter((t=>!e.find((e=>e.id===t.data.id)))).forEach((e=>s.removeAnnotation(e)));const r=e.map((e=>{const r=s.annotations.find((t=>t.data.id===e.id));if(r)return r.title=e.title,r.color=t,r;const n=new a.MarkerAnnotation(new a.Coordinate(e.coordinates.latitude,e.coordinates.longitude),{color:t,data:{id:e.id}});return n.calloutEnabled=!0,n.title=e.title,l.current&&(n.callout={calloutElementForAnnotation:l.current}),c.current&&n.addEventListener("select",(()=>c.current(e,s))),n}));s.annotations.length!==r.length&&s.showItems(r)}}),[e,i,s,a,t,l,c])},f=e=>{const{map:t,loaded:r}=A(),n=(0,o.useRef)(e);(0,o.useEffect)((()=>{r&&n.current(t)}),[r,t,n])},C=e=>{const{map:t,previousCenter:r,loaded:n}=A(),a=(0,o.useRef)(e);(0,o.useEffect)((()=>{n&&t.addEventListener("single-tap",(()=>{a.current(r)}))}),[n,t,r,a])},B=(e,t)=>{const{mapkit:r,map:n}=A();(0,o.useEffect)((()=>{if(r&&n&&e?.length){(new r.Geocoder).lookup(e,((e,r)=>{if(r?.results?.length){const e=r.results[0],n=e.formattedAddress,a={placeTitle:n,title:n,caption:n,coordinates:{longitude:e.coordinate.longitude,latitude:e.coordinate.latitude},id:`${n} ${Number(e.coordinate.latitude).toFixed(2)} ${Number(e.coordinate.longitude).toFixed(2)}`};t.current([a])}}))}}),[r,n,e,t])}},2194:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(96072),a=r.n(n),o=r(82170),s=r(94715),i=r(13022),l=r(90907),c=r(62393);const u=({attributes:e})=>{const{align:t,mapDetails:r,points:n,zoom:u,mapCenter:A,markerColor:g,scrollToZoom:d,mapHeight:p,showFullscreenButton:m}=e,h=s.useBlockProps.save(),{className:E}=h,f=(0,l.D)(c.A,E),C=n.map(((e,t)=>{const{longitude:r,latitude:n}=e.coordinates,a="https://www.google.com/maps/search/?api=1&query="+n+","+r;return(0,o.createElement)("li",{key:t},(0,o.createElement)("a",{href:a},e.title))}));return(0,o.createElement)("div",a()({},h,{className:(0,i.A)(E,t?`align${t}`:null),"data-map-style":f,"data-map-details":r,"data-points":JSON.stringify(n),"data-zoom":u,"data-map-center":JSON.stringify(A),"data-marker-color":g,"data-scroll-to-zoom":d||null,"data-map-height":p||null,"data-show-fullscreen-button":m||null}),n.length>0&&(0,o.createElement)("ul",null,C))}},62393:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n=r(27723),a=r(93797),o=r(49364),s=r(77971),i=r(98430),l=r(27415),c=r(72386),u=r(92747),A=r(44950);const __=n.__,g=(0,A.A)(),d=[{name:"default",label:__("Basic","jetpack"),preview:"mapkit"===g?i:s,isDefault:!0},{name:"black_and_white",label:"mapkit"===g?__("Muted","jetpack",0):__("Black & White","jetpack"),preview:"mapkit"===g?o:a},{name:"satellite",label:__("Satellite","jetpack"),preview:"mapkit"===g?c:l},{name:"terrain",label:__("Terrain","jetpack"),preview:u}]},44950:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=e=>{if(e?.mapStyle&&["terrain"].includes(e.mapStyle))return"mapbox";const t=function(e){const t=`; ${document.cookie}`.split(`; ${e}=`);if(2===t.length)return t.pop().split(";").shift()}("map_provider");return t||(window&&"string"==typeof window.Jetpack_Maps?.provider&&["mapbox","mapkit"].includes(window.Jetpack_Maps?.provider)?window.Jetpack_Maps?.provider:"mapbox")}},91844:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(e,t=null)=>{if(t)e.style.height=t+"px";else{const t=e.offsetWidth,r=window.location.search.indexOf("map-block-counter")>-1?window.innerHeight:.8*window.innerHeight,n=Math.min(t*(3/4),r);e.style.height=n+"px"}}},79534:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(82170),a=r(13022);const o=({className:e,label:t,isPressed:r,onClick:o})=>{const s=(0,a.A)(e,"components-button components-tab-button",{"is-pressed":r});return(0,n.createElement)("button",{className:s,onClick:o},(0,n.createElement)("span",null,t))}},12580:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n=r(82170),a=r(94715),o=r(29491),s=r(47143),i=r(86087),l=r(27723),c=r(79534),u=r(78715);const __=l.__,A="editor",g="preview",d=(0,o.compose)([(0,s.withSelect)((e=>({currentBlockId:e("core/block-editor").getSelectedBlockClientId()}))),(0,s.withDispatch)(((e,{currentBlockId:t})=>({removeBlock:()=>e("core/block-editor").removeBlocks(t)})))])((({attributes:e,setAttributes:t,isSelected:r,removeBlock:o})=>{const{source:s}=e,l=!s||""===s.trim(),d=(0,a.useBlockProps)(),{className:p}=d,[m,h]=(0,i.useState)(A),E=(0,i.useRef)(null),f=e=>t({source:e}),C=e=>{8===e.keyCode&&""===s&&(o(),e.preventDefault())};let B;return(0,i.useEffect)((()=>{r?m===A&&E?.current.focus():m===g&&h(A)}),[r,m,h]),B=!r&&l?(0,n.createElement)("p",{className:`${p}__placeholder`},__("Write your _Markdown_ **here**…","jetpack")):(0,n.createElement)("div",{className:p},(0,n.createElement)(a.BlockControls,null,(0,n.createElement)("div",{className:"components-toolbar"},(0,n.createElement)(c.A,{className:p,label:__("Markdown","jetpack"),isPressed:m===A,onClick:()=>h(A)}),(0,n.createElement)(c.A,{className:p,label:__("Preview","jetpack"),isPressed:m===g,onClick:()=>h(g)}))),m!==g&&r?(0,n.createElement)(a.PlainText,{className:`${p}__editor`,onChange:f,onKeyDown:C,"aria-label":__("Markdown","jetpack"),ref:E,value:s}):(0,n.createElement)(u.A,{className:`${p}__preview`,source:s})),(0,n.createElement)("div",d,B)}))},57809:(e,t,r)=>{"use strict";var n=r(94375),a=r(73431),o=r(12580),s=r(76425);(0,n.M)(a,{edit:o.A,save:s.A})},78715:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n=r(82170),a=r(94715),o=r(86087),s=r(27723),i=r(97158),l=r(20305),c=r.n(l);const __=s.__,u=new i.A({typographer:!0}).use(c()),A=e=>{if("A"===e.target.nodeName){window.confirm(__("Are you sure you wish to leave this page?","jetpack"))||e.preventDefault()}},g=(e={})=>{const t=(0,a.__experimentalGetSpacingClassesAndStyles)?.(e);return t?.style?t.style:{}},d=({className:e,source:t="",attributes:r})=>(0,n.createElement)(o.RawHTML,{className:e,onClick:A,style:g(r)},t.length?u.render(t):"")},76425:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(96072),a=r.n(n),o=r(82170),s=r(94715),i=r(78715);const l=({attributes:e})=>{const t=s.useBlockProps.save();return(0,o.createElement)(i.A,a()({},t,{source:e.source,attributes:e}))}},34157:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(82170);const a={attributes:r(79018).attributes,supports:{align:!0,html:!1},save:({attributes:{rid:e}})=>(0,n.createElement)(n.Fragment,null,e.map((e=>(0,n.createElement)("a",{key:e,href:`https://www.opentable.com/restref/client/?rid=${e}`},`https://www.opentable.com/restref/client/?rid=${e}`))))}},8100:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(82170);const a={attributes:r(79018).attributes,migrate:e=>{const{style:t,className:r}=e,n="standard"===t?"":`is-style-${t}`;return{...e,className:r?`${r} ${n}`:n}},isEligible:({style:e,className:t})=>!(!e||"standard"===e)&&(!t||-1===t.indexOf("is-style-")),save:({attributes:{rid:e}})=>(0,n.createElement)("div",null,e.map((e=>(0,n.createElement)("a",{key:e,href:`https://www.opentable.com/restref/client/?rid=${e}`},`https://www.opentable.com/restref/client/?rid=${e}`))))}},71833:(e,t,r)=>{"use strict";r.d(t,{A:()=>b});var n=r(82170),a=r(85985),o=r(94715),s=r(74997),i=r(56427),l=r(86087),c=r(27723),u=r(13022),A=r(66087),g=r(90907),d=r(78218),p=r(79018),m=r(82101),h=r(98233),E=r(50387),f=r(59038),C=r(84260);const __=c.__,B=(0,a.sh)(p);const b=(0,i.withNotices)((function({attributes:e,clientId:t,isSelected:r,name:b,noticeOperations:k,noticeUI:y,setAttributes:v}){const I=(0,o.useBlockProps)(),_=(0,s.getBlockDefaultClassName)(b),w=(0,d.y)(p.attributes,e);(0,A.isEqual)(w,e)||v(w);const{align:Q,rid:S,iframe:x,domain:j,lang:L,newtab:N,negativeMargin:T}=e,R=(0,A.isEmpty)(S),P=(0,g.D)((0,E.Iy)(),e.className),D=(0,g.D)((0,E.Iy)(S),e.className),M=(0,f.A)(D),F=(0,A.isEqual)(S,["1"]);(0,l.useEffect)((()=>{if(k.removeAllNotices(),!R&&!F&&"wide"===D&&"wide"!==Q&&"full"!==Q){const e=(0,n.createElement)(n.Fragment,null,__('With the OpenTable block you may encounter display issues if you use its "wide" style with anything other than "wide" or "full" alignment. The wide display style may also not work well on smaller screens.',"jetpack"));k.createNotice({status:"warning",content:e})}}),[F,Q,R,S,D]),(0,l.useEffect)((()=>{"button"===P&&Array.isArray(S)&&S?.length>1&&v({className:"",style:""})}),[S,P,v]),(0,l.useEffect)((()=>{r&&(Array.isArray(S)&&S?.length>1?(0,s.unregisterBlockStyle)("jetpack/opentable",["button"]):(0,s.registerBlockStyle)("jetpack/opentable",E.i9))}),[r,S]),(0,l.useEffect)((()=>{"wide"===M&&"wide"===Q&&v({align:""}),"wide"===D&&M&&D!==M&&v({align:"wide"}),v({style:D})}),[Q,D,M,v]);const O=(0,E.K5)(S),U=e=>S?.length>1?["multi","button"!==e?e:"standard"]:["button"===e?"button":"standard","button"===e?"standard":e],H=e=>{Array.isArray(e)?v({rid:e,style:e.length>1&&"button"===D?"standard":D}):(e=>{const t=(0,C.a9)(e);t||(k.removeAllNotices(),k.createErrorNotice((0,n.createElement)(n.Fragment,null,(0,n.createElement)("strong",null,__("We ran into an issue","jetpack")),(0,n.createElement)("br",null),__("Please ensure this embed matches the one from your OpenTable account","jetpack"))));const r=(0,d.y)(p.attributes,t);v(r),k.removeAllNotices()})(e)},z=(0,n.createElement)(n.Fragment,null,(0,n.createElement)(o.InspectorAdvancedControls,null,(0,n.createElement)(i.ToggleControl,{label:__("Load the widget in an iFrame (Recommended)","jetpack"),checked:x,onChange:()=>v({iframe:!x}),className:"is-opentable",__nextHasNoMarginBottom:!0}),"button"===D&&(0,n.createElement)(i.ToggleControl,{label:__("Remove button margin","jetpack"),checked:T,onChange:()=>v({negativeMargin:!T}),__nextHasNoMarginBottom:!0})),(0,n.createElement)(o.InspectorControls,null,(0,n.createElement)(i.PanelBody,{title:__("Settings","jetpack")},(0,n.createElement)(h.A,{rids:S,onChange:H}),(0,n.createElement)(i.SelectControl,{label:__("Language","jetpack"),value:L,onChange:e=>v({lang:e}),options:m.P,__nextHasNoMarginBottom:!0}),(0,n.createElement)(i.ToggleControl,{label:__("Open in a new window","jetpack"),checked:N,onChange:()=>v({newtab:!N}),__nextHasNoMarginBottom:!0})))),q=(0,a.Sy)()||(0,a.d9)()?"https://en.support.wordpress.com/wordpress-editor/blocks/opentable-block/":"https://jetpack.com/support/jetpack-blocks/opentable-block/",V=(0,n.createElement)(i.Placeholder,{label:__("OpenTable Reservation","jetpack"),icon:B,instructions:__("Enter your restaurant name, or paste an OpenTable Reservation Widget embed code.","jetpack"),notices:y},(0,n.createElement)(h.A,{rids:S,onSubmit:H}),(0,n.createElement)("div",{className:`${_}-placeholder-links`},(0,n.createElement)(i.ExternalLink,{href:"https://restaurant.opentable.com/get-started/"},__("Sign up for OpenTable","jetpack")),(0,n.createElement)(i.ExternalLink,{href:q},__("Learn more","jetpack")))),G=(0,u.A)({[`is-style-${D}`]:!R&&O.includes(D),"is-placeholder":R,"is-multi":"multi"===U(D)[0],[`align${Q}`]:Q,"has-no-margin":T});return(0,n.createElement)("div",I,y,(0,n.createElement)("div",{className:G},!R&&z,R?V:(e=>{const[r,a]=U(e||D);return(0,n.createElement)(n.Fragment,null,(0,n.createElement)("div",{className:`${_}-overlay`}),(0,n.createElement)("iframe",{title:(0,c.sprintf)(/* translators: Placeholder is a unique ID. */ __("Open Table Preview %s","jetpack"),t),scrolling:"no",src:`https://www.opentable.com/widget/reservation/canvas?rid=${(0,A.join)(S,"%2C")}&type=${r}&theme=${a}&overlay=false&domain=${j}&lang=${L&&m.L.includes(L)?L:"en-US"}&newtab=${N}&disablega=true`}))})()))}))},82144:(e,t,r)=>{"use strict";var n=r(82170),a=r(94715),o=r(74997),s=r(94375),i=r(79018),l=r(34157),c=r(8100),u=r(71833),A=r(50387),g=r(84260);(0,s.M)(i,{edit:u.A,save:({attributes:{rid:e}})=>{const t=a.useBlockProps.save();return(0,n.createElement)("div",t,e?.map(((e,t)=>(0,n.createElement)("a",{href:`https://www.opentable.com/restref/client/?rid=${e}`,key:`${e}-${t}`},`https://www.opentable.com/restref/client/?rid=${e}`))))},attributes:i.attributes,styles:(0,A.Iy)(),transforms:{from:[{type:"raw",isMatch:e=>"P"===e.nodeName&&0===e.textContent.indexOf("http")&&(g.XA.test(e.textContent)||g.JJ.test(e.textContent)),transform:e=>{const t=(0,g.a9)(e.textContent);return(0,o.createBlock)("jetpack/opentable",t)}}]},deprecated:[l.A,c.A]})},82101:(e,t,r)=>{"use strict";r.d(t,{L:()=>a,P:()=>n});const n=[{value:"en-US",label:"English"},{value:"fr-CA",label:"Français"},{value:"de-DE",label:"Deutsch"},{value:"es-MX",label:"Español"},{value:"ja-JP",label:"日本語"},{value:"nl-NL",label:"Nederlands"},{value:"it-IT",label:"Italiano"}],a=n.map((e=>e.value))},98233:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});var n=r(96072),a=r.n(n),o=r(82170),s=r(56427),i=r(86087),l=r(27723),c=r(66087),u=r(4673);const __=l.__,_n=l._n,A=20;function g(e){const[t,r]=(0,i.useState)(""),{restaurants:n,hasRequestFailed:l}=(0,u.A)(t,A),[g,d]=(0,i.useState)(e.rids||[]),p=/^(\d+)$|\(#(\d+)\)$/,m=n.filter((e=>g.indexOf(e.rid.toString())<0)).map((e=>e.name+` (#${e.rid})`)),h=(0,o.createElement)(s.FormTokenField,a()({value:g,suggestions:m,saveTransform:e=>u.h.test(e)?"":e.trim(),onInputChange:r,maxSuggestions:A,label:_n("Restaurant","Restaurants",g.length,"jetpack")},e,{onChange:t=>{const r=t.map((e=>{const t=p.exec(e);return t[1]||t[2]}));d(r),e.onChange&&e.onChange(r)},__nextHasNoMarginBottom:!0}));return(0,o.createElement)("div",{className:"wp-block-jetpack-opentable-restaurant-picker"},e.onSubmit?(0,o.createElement)("form",{onSubmit:r=>{r.preventDefault(),e.onSubmit((0,c.isEmpty)(g)?t:g)}},h,(0,o.createElement)(s.Button,{variant:"secondary",type:"submit"},__("Embed","jetpack"))):h,l&&(0,o.createElement)(s.Notice,{status:"error",isDismissible:!1},__("OpenTable can't find this restaurant right now. Please try again later.","jetpack")))}},50387:(e,t,r)=>{"use strict";r.d(t,{Iy:()=>s,K5:()=>i,i9:()=>o});var n=r(27723),a=r(66087);const __=n.__,o={name:"button",label:__("Button (210 x 113 pixels)","jetpack")},s=e=>(0,a.compact)([{name:"standard",label:__("Standard (224 x 301 pixels)","jetpack"),isDefault:!0},{name:"tall",label:__("Tall (288 x 490 pixels)","jetpack")},{name:"wide",label:__("Wide (840 x 150 pixels)","jetpack")},(!e||1===e.length)&&o]),i=e=>s(e).map((e=>e.name))},59038:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(86087);function a(e){const t=(0,n.useRef)(void 0);return(0,n.useEffect)((()=>{t.current=e}),[e]),t.current}},4673:(e,t,r)=>{"use strict";r.d(t,{A:()=>s,h:()=>o});var n=r(86087),a=r(66087);const o=/^\s*(http[s]?:\/\/|<script)/;function s(e,t){const[r,s]=(0,n.useState)([]),[i,l]=(0,n.useState)(!1),c=(0,n.useCallback)(((e="")=>{l(!1),fetch("https://www.opentable.com/widget/reservation/restaurant-search?pageSize="+t+"&query="+encodeURIComponent(e)).then((e=>e.json())).then((e=>{l(!1),s((0,a.unionBy)(r,e.items,"rid"))})).catch((()=>l(!0)))}),[r,t]),u=(0,n.useMemo)((()=>(0,a.throttle)(c,500)),[c]);return(0,n.useEffect)((()=>{(0,a.isEmpty)(e)||o.test(e)||u(e)}),[e,u]),{restaurants:r,hasRequestFailed:i}}},84260:(e,t,r)=>{"use strict";r.d(t,{JJ:()=>a,XA:()=>o,a9:()=>s});const n=/<\s*script[^>]*src\s*=\s*["']?([^"']*)/i,a=/restref=([0-9]+)&/,o=/rid=([0-9]+)&/,s=e=>{if(e)return(e=>{if(!e)return;let t="";if(t=0===e.indexOf("http")?new URL(e):new URL("http:"+e),!t.host||-1===t.host.indexOf("opentable")||!t.search)return;const r=new URLSearchParams(t.search);let n=r.get("theme");"button"===r.get("type")&&(n=r.get("type"));let a=r.getAll("rid");if(a&&0!==a.length||(a=r.getAll("restref")),!a||0===a.length)return;const o={};a&&(o.rid=a);const s=r.get("domain");s&&(o.domain=s);const i=r.get("iframe");i&&(o.iframe=i);const l=r.get("lang");l&&(o.lang=l);const c=r.get("newtab");return c&&(o.newtab=c),n&&(o.style=n),o})((e=>{const t=e.match(n);return t&&t[1]?t[1]:a.test(e)||o.test(e)?e:void 0})(e))}},6149:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(82170),a=r(85985),o=r(56427),s=r(27723),i=r(73800);const __=s.__,_x=s._x,l=(0,a.sh)(i);function c({className:e,onSubmit:t,noticeUI:r,url:a,setUrl:s}){return(0,n.createElement)("div",{className:e},(0,n.createElement)(o.Placeholder,{label:__("Pinterest","jetpack"),icon:l,notices:r},(0,n.createElement)("form",{onSubmit:e=>{e.preventDefault(),t()}},(0,n.createElement)("input",{type:"url",value:a,className:"components-placeholder__input","aria-label":__("Pinterest URL","jetpack"),placeholder:__("Enter URL to embed here…","jetpack"),onChange:e=>s(e.target.value)}),(0,n.createElement)(o.Button,{variant:"secondary",type:"submit"},_x("Embed","button label","jetpack")))))}},62595:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(82170),a=r(74997),o=r(56427),s=r(86087),i=r(27723);const __=i.__,_x=i._x;function l({fallbackUrl:e,onClick:t}){return(0,n.createElement)(n.Fragment,null,__("Sorry, this content could not be embedded.","jetpack")," ",(0,n.createElement)(o.Button,{variant:"link",onClick:()=>{const r=(0,n.createElement)("a",{href:e},e);t((0,a.createBlock)("core/paragraph",{content:(0,s.renderToString)(r)}))}},_x("Convert block to link","button label","jetpack")))}},37602:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(82170),a=r(56427),o=r(27723);const __=o.__;function s(){return(0,n.createElement)("div",{className:"wp-block-embed is-loading"},(0,n.createElement)(a.Spinner,null),(0,n.createElement)("p",null,__("Embedding…","jetpack")))}},76910:(e,t,r)=>{"use strict";r.d(t,{_:()=>a,e:()=>n});const n="https://pinterest.com/anapinskywalker/",a=/^\s*https?:\/\/(?:www\.)?(?:[a-z]{2}\.)?(?:pinterest\.[a-z.]+|pin\.it)\/([^/]+)(\/[^/]+)?/i},5163:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(82170),a=r(57462);const o={attributes:{url:{type:"string"}},supports:{align:!1,html:!1},save:({attributes:e,className:t})=>{const{url:r}=e;return(0,a.C)(r)?(0,n.createElement)("div",{className:t},(0,n.createElement)("a",{"data-pin-do":(0,a.C)(r),href:r})):null}}},18379:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});var n=r(82170),a=r(94715),o=r(56427),s=r(86087),i=r(6149),l=r(62595),c=r(37602),u=r(67627),A=r(57462);const g=(0,o.withNotices)((function({attributes:e,isSelected:t,noticeOperations:r,noticeUI:g,setAttributes:d,onReplace:p}){const{url:m}=e,h=(0,a.useBlockProps)(),{isFetching:E,pinterestUrl:f,testUrl:C,hasTestUrlError:B}=(0,u.A)(),[b,k]=(0,s.useState)(!1),[y,v]=(0,s.useState)(""),[I,_]=(0,s.useState)(!1),w=(0,s.useCallback)((()=>(0,n.createElement)(l.A,{fallbackUrl:y,onClick:p})),[B]),Q=()=>{E||(C(y),_(!1))},S=()=>{k(!0)};if((0,s.useEffect)((()=>{m&&C(m)}),[]),(0,s.useEffect)((()=>{!t&&b&&k(!1)}),[t,b]),(0,s.useEffect)((()=>{d({url:f}),r.removeAllNotices(),f&&v(f),B&&r.createErrorNotice(w())}),[f,B,d,w]),E)return(0,n.createElement)(c.A,null);const x=(0,A.C)(m);let j;if(I||!m||m&&!x)j=(0,n.createElement)(i.A,{onSubmit:Q,noticeUI:g,url:y,setUrl:v});else{const e=`<a data-pin-do='${x}' href='${m}'></a>`;j=(0,n.createElement)("div",h,(0,n.createElement)("div",null,(0,n.createElement)(o.SandBox,{html:e,scripts:["https://assets.pinterest.com/js/pinit.js"],onFocus:S}),!b&&(0,n.createElement)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:S})))}return(0,n.createElement)("div",h,j)}))},46010:(e,t,r)=>{"use strict";var n=r(94375),a=r(73800),o=r(5163),s=r(18379),i=r(2230);(0,n.M)(a,{edit:s.A,save:i.A,deprecated:[o.A]})},67627:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(86087),a=r(56145),o=r(76910);const s=(e="")=>{const[t,r]=(0,n.useState)(!1),[s,i]=(0,n.useState)(e),[l,c]=(0,n.useState)(!1);return(0,n.useEffect)((()=>{s&&s!==o.e&&(r(!0),(0,a.A)(s).then((e=>{r(!1),i(e),c(!1)})).catch((()=>{r(!1),i(s||void 0),c(!0)})))}),[s]),{isFetching:t,pinterestUrl:s,hasTestUrlError:l,testUrl:i}}},2230:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(96072),a=r.n(n),o=r(82170),s=r(94715);function i({attributes:e}){const t=s.useBlockProps.save(),{url:r}=e;return(0,o.createElement)("a",a()({},t,{href:r}),r)}},57462:(e,t,r)=>{"use strict";r.d(t,{C:()=>o});var n=r(93832),a=r(76910);function o(e){if(!a._.test(e))return"";const t=(0,n.getPath)(e);return t?t.startsWith("pin/")?"embedPin":t.match(/^([^/]+)\/?$/)?"embedUser":t.match(/^([^/]+)\/([^/]+)\/?$/)?"embedBoard":"":""}},80513:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(82170),a=r(94715),o=r(56427),s=r(27723),i=r(66087);const __=s.__,l=({id:e,setRating:t,children:r})=>{return(0,n.createElement)("span",{className:"jetpack-ratings-button",tabIndex:0,role:"button",onKeyDown:(a=e,({code:e})=>"Enter"===e?t(a):null),onClick:(e=>()=>t(e))(e)},r);var a},c=e=>function({setAttributes:t,attributes:{align:r,color:s,rating:c,maxRating:u}}){const A=(0,a.useBlockProps)(),g=e=>{e===c?Math.ceil(c)===c&&(e-=.5):.5===c&&1===e&&(e=0),t({rating:e})};return(0,n.createElement)("div",A,(0,n.createElement)(a.BlockControls,null,(0,n.createElement)(a.AlignmentToolbar,{value:r,onChange:e=>t({align:e})})),(0,n.createElement)("div",{style:{textAlign:r}},(0,i.range)(1,u+1).map((t=>(0,n.createElement)(l,{key:t,id:t,setRating:g},(0,n.createElement)("span",null,(0,n.createElement)(e,{className:c>=t-.5?null:"is-rating-unfilled",color:s})),(0,n.createElement)("span",null,(0,n.createElement)(e,{className:c>=t?null:"is-rating-unfilled",color:s})))))),(0,n.createElement)(a.InspectorControls,null,(0,n.createElement)(o.PanelBody,{title:__("Settings","jetpack")},(0,n.createElement)(o.RangeControl,{label:__("Highest rating","jetpack"),value:u,onChange:e=>t({maxRating:e}),min:2,max:10,__nextHasNoMarginBottom:!0}),(0,n.createElement)(a.PanelColorSettings,{title:__("Color Settings","jetpack"),initialOpen:!0,colorSettings:[{value:s,onChange:e=>t({color:e}),label:__("Color","jetpack")}]}))))}},30552:(e,t,r)=>{"use strict";var n=r(94375),a=r(8206),o=r(80513),s=r(28268),i=r(32876);(0,n.M)(a,{edit:(0,o.A)(s.G),save:(0,i.A)("★")})},28268:(e,t,r)=>{"use strict";r.d(t,{G:()=>o});var n=r(82170),a=r(56427);const o=e=>{const t=(e=>e&&e.color?e.color:"currentColor")(e),r=(e=>e&&e.className?e.className:"")(e);return(0,n.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",color:t},(0,n.createElement)(a.Path,{className:r,fill:t,stroke:t,d:"M12,17.3l6.2,3.7l-1.6-7L22,9.2l-7.2-0.6L12,2L9.2,8.6L2,9.2L7.5,14l-1.6,7L12,17.3z"}))}},32876:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(96072),a=r.n(n),o=r(82170),s=r(94715),i=r(66087);const l=e=>function({attributes:{align:t,rating:r,color:n}}){const l=s.useBlockProps.save();return(0,o.createElement)("figure",a()({},l,{style:{textAlign:t}}),(0,i.range)(1,r+1).map((t=>(0,o.createElement)("span",{key:t,style:{color:n}},e))))}},77212:(e,t,r)=>{"use strict";r.d(t,{WB:()=>l,_f:()=>i});var n=r(82170),a=r(56427),o=r(27723);const __=o.__,s=6;function i({attributes:e,setAttributes:t}){const{displayAuthor:r,displayContext:o,displayDate:i,displayThumbnails:l,postsToShow:c}=e;return(0,n.createElement)(n.Fragment,null,(0,n.createElement)(a.PanelBody,{title:__("Layout settings","jetpack")},(0,n.createElement)(a.RangeControl,{__nextHasNoMarginBottom:!0,label:__("Number of posts","jetpack"),value:c,onChange:e=>t({postsToShow:Math.min(e,s)}),min:1,max:s})),(0,n.createElement)(a.PanelBody,{title:__("Metadata settings","jetpack")},(0,n.createElement)(a.ToggleControl,{__nextHasNoMarginBottom:!0,label:__("Display date","jetpack"),checked:i,onChange:e=>t({displayDate:e})}),(0,n.createElement)(a.ToggleControl,{__nextHasNoMarginBottom:!0,label:__("Display author","jetpack"),checked:r,onChange:e=>t({displayAuthor:e})}),(0,n.createElement)(a.ToggleControl,{__nextHasNoMarginBottom:!0,label:__("Display context (category or tag)","jetpack"),checked:o,onChange:e=>t({displayContext:e})}),(0,n.createElement)(a.ToggleControl,{__nextHasNoMarginBottom:!0,label:__("Display thumbnail","jetpack"),checked:l,onChange:e=>t({displayThumbnails:e})})))}function l({attributes:e,setAttributes:t}){const{postLayout:r}=e,o=[{icon:"grid-view",title:__("Grid view","jetpack"),onClick:()=>t({postLayout:"grid"}),isActive:"grid"===r},{icon:"list-view",title:__("List view","jetpack"),onClick:()=>t({postLayout:"list"}),isActive:"list"===r}];return(0,n.createElement)(a.ToolbarGroup,{controls:o})}},49108:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=[r(82228)]},50783:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={postLayout:{type:"string",default:"grid"},displayAuthor:{type:"boolean",default:!1},displayDate:{type:"boolean",default:!0},displayHeadline:{type:"boolean",default:!1},displayThumbnails:{type:"boolean",default:!1},displayContext:{type:"boolean",default:!1},headline:{type:"string",default:""},postsToShow:{type:"number",default:3}}},82228:(e,t,r)=>{"use strict";r.r(t),r.d(t,{attributes:()=>a.A,migrate:()=>s,save:()=>i,supports:()=>o.A});var n=r(74997),a=r(50783),o=r(90526);const s=(e,t)=>[e,e.headline?[(0,n.createBlock)("core/heading",{content:e.headline,level:3}),...t]:t],i=()=>null},90526:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={html:!1,multiple:!1,reusable:!1,color:{gradients:!0,link:!0},spacing:{margin:!0,padding:!0},typography:{__experimentalFontFamily:!0,fontSize:!0,lineHeight:!0},align:["wide","full"]}},89218:(e,t,r)=>{"use strict";r.d(t,{A:()=>b});var n=r(82170),a=r(85985),o=r(94715),s=r(56427),i=r(29491),l=r(47143),c=r(43656),u=r(27723),A=r(9522),g=r(88795),d=r(77212),p=r(80108),m=r(21144),h=r(22131);const __=u.__,E=g.name.replace("jetpack/","");function f(e){return(0,n.createElement)("div",{className:"jp-related-posts-i2__post",id:e.id,"aria-labelledby":e.id+"-heading"},(0,n.createElement)("strong",{id:e.id+"-heading",className:"jp-related-posts-i2__post-link"},e.isInSiteEditor?__("Preview unavailable in site editor.","jetpack"):__("Preview unavailable: you haven't published enough posts with similar content.","jetpack")),e.displayThumbnails&&(0,n.createElement)("figure",{className:"jp-related-posts-i2__post-image-placeholder","aria-label":__("Placeholder image","jetpack")},(0,n.createElement)(s.SVG,{className:"jp-related-posts-i2__post-image-placeholder-square",xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 350 200"},(0,n.createElement)("title",null,__("Grey square","jetpack")),(0,n.createElement)(s.Path,{d:"M0 0h350v200H0z",fill:"#8B8B96",fillOpacity:".1"})),(0,n.createElement)(s.SVG,{className:"jp-related-posts-i2__post-image-placeholder-icon",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,n.createElement)("title",null,__("Icon for image","jetpack")),(0,n.createElement)(s.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,n.createElement)(s.Path,{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4.86 8.86l-3 3.87L9 13.14 6 17h12l-3.86-5.14z"}))),e.displayDate&&(0,n.createElement)("div",{className:"jp-related-posts-i2__post-date has-small-font-size"},__("August 3, 2018","jetpack")),e.displayAuthor&&(0,n.createElement)("div",{className:"jp-related-posts-i2__post-author has-small-font-size"},__("by John Doe","jetpack")),e.displayContext&&(0,n.createElement)("div",{className:"jp-related-posts-i2__post-context has-small-font-size"},__("In “Uncategorized”","jetpack")))}function C(e){const t=e.post?.block_context?.text||"",r=e.post?.block_context?.link||"",a=""!==t,o=""!==r;return(0,n.createElement)("div",{className:"jp-related-posts-i2__post",id:e.id,"aria-labelledby":e.id+"-heading"},(0,n.createElement)("a",{className:"jp-related-posts-i2__post-link",id:e.id+"-heading",href:e.post.url,rel:"nofollow noopener noreferrer",target:"_blank"},e.post.title),e.displayThumbnails&&e.post.img&&e.post.img.src&&(0,n.createElement)("a",{className:"jp-related-posts-i2__post-img-link",href:e.post.url,target:"_blank",rel:"nofollow noopener noreferrer"},(0,n.createElement)("img",{className:"jp-related-posts-i2__post-img",src:e.post.img.src,alt:e.post.title})),e.displayDate&&(0,n.createElement)("div",{className:"jp-related-posts-i2__post-date has-small-font-size"},e.post.date),e.displayAuthor&&(0,n.createElement)("div",{className:"jp-related-posts-i2__post-author has-small-font-size"},e.post.author),e.displayContext&&a&&(0,n.createElement)("div",{className:"jp-related-posts-i2__post-context has-small-font-size"},o&&(0,n.createElement)("a",{href:r},t),!1===o&&t))}function B(e){const t="jp-related-posts-i2__row";let r=0;const a=e.posts.length>3;switch(e.posts.length){case 2:case 4:case 5:r=2;break;default:r=3}return(0,n.createElement)("div",null,(0,n.createElement)("div",{className:t,"data-post-count":e.posts.slice(0,r).length},e.posts.slice(0,r)),a&&(0,n.createElement)("div",{className:t,"data-post-count":e.posts.slice(r).length},e.posts.slice(r)))}function b({attributes:e,setAttributes:t}){const{displayAuthor:r,displayContext:s,displayDate:u,displayThumbnails:g,postLayout:k,postsToShow:y}=e,v=(0,o.useBlockProps)(),{isLoadingModules:I,isChangingStatus:_,isModuleActive:w,changeStatus:Q}=(0,a.q7)(E),{isEnabled:S,enable:x,isFetchingStatus:j,isUpdatingStatus:L}=(0,m.M)(),N=_||L,{posts:T,isLoading:R}=(0,p.Y)(S),{isInSiteEditor:P}=(0,l.useSelect)((e=>{const t=e(c.store).getCurrentPost();return{isInSiteEditor:!t||0===Object.keys(t).length}})),{instanceId:D}=(0,i.useInstanceId)(b);let M;if(I||j||R)M=(0,n.createElement)(A.G,null);else if(w&&S){const a="jp-relatedposts-i2",i=[];for(let e=0;e<y;e++)T[e]?i.push((0,n.createElement)(C,{id:`related-posts-${D}-post-${e}`,key:a+"-"+e,post:T[e],displayThumbnails:g,displayDate:u,displayContext:s,displayAuthor:r})):i.push((0,n.createElement)(f,{id:`related-posts-${D}-post-${e}`,key:"related-post-placeholder-"+e,displayThumbnails:g,displayDate:u,displayContext:s,isInSiteEditor:P,displayAuthor:r}));M=(0,n.createElement)(n.Fragment,null,(0,n.createElement)(o.InspectorControls,null,(0,n.createElement)(d._f,{attributes:e,setAttributes:t})),(0,n.createElement)(o.BlockControls,null,(0,n.createElement)(d.WB,{attributes:e,setAttributes:t})),(0,n.createElement)("div",{id:`related-posts-${D}`},(0,n.createElement)(o.InnerBlocks,{allowedBlocks:["core/heading"],template:[["core/heading",{placeholder:__("Add a headline","jetpack")}]]}),(0,n.createElement)("div",{className:a,"data-layout":k},(0,n.createElement)(B,{posts:i}))))}else M=(0,n.createElement)(h.L,{changeStatus:Q,isLoading:N,enable:x});return(0,n.createElement)("div",v,M)}},1063:(e,t,r)=>{"use strict";var n=r(82170),a=r(94715),o=r(94375),s=r(88795),i=r(49108),l=r(89218);(0,o.M)(s,{edit:l.A,save:()=>{const e=a.useBlockProps.save();return(0,n.createElement)("div",e,(0,n.createElement)(a.InnerBlocks.Content,null))},transforms:{from:[{type:"shortcode",tag:"jetpack-related-posts"}]},deprecated:i.A})},80108:(e,t,r)=>{"use strict";r.d(t,{Y:()=>c});var n=r(1455),a=r.n(n),o=r(29491),s=r(47143),i=r(43656),l=r(86087);const c=e=>{const t=(0,o.usePrevious)(e),[r,n]=(0,l.useState)(!1),[c,u]=(0,l.useState)(null),{currentPostId:A,currentPostRelatedPosts:g}=(0,s.useSelect)((e=>{const t=e(i.store).getCurrentPost();return{currentPostId:t.id,currentPostRelatedPosts:t?.["jetpack-related-posts"]??[]}})),d=0===g.length&&!t&&e;return(0,l.useEffect)((()=>{d&&(n(!0),async function(e){try{return await a()({path:`/wpcom/v2/related-posts/${e}`})}catch(e){return[]}}(A).then((e=>{u(e)})).catch((()=>{})).then((()=>{n(!1)})))}),[d,A]),(0,l.useMemo)((()=>({posts:c??g,isLoading:r})),[r,c,g])}},21144:(e,t,r)=>{"use strict";r.d(t,{M:()=>s});var n=r(1455),a=r.n(n),o=r(86087);const s=()=>{const[e,t]=(0,o.useState)(!1),[r,n]=(0,o.useState)(!1),[s,i]=(0,o.useState)(!1);(0,o.useEffect)((()=>{t(!0),async function(){try{const e=await a()({path:"/wpcom/v2/related-posts"});return e?.enabled??!1}catch(e){return!1}}().then((e=>{i(e),t(!1)})).catch((()=>{t(!1)}))}),[]);const l=(0,o.useCallback)((()=>{n(!0),async function(){try{return await a()({path:"/wpcom/v2/related-posts/enable",method:"POST"})}catch(e){return!1}}().then((e=>{i(e),n(!1)})).catch((()=>{n(!1)}))}),[]);return(0,o.useMemo)((()=>({isEnabled:s,enable:l,isFetchingStatus:e,isUpdatingStatus:r})),[s,l,e,r])}},22131:(e,t,r)=>{"use strict";r.d(t,{L:()=>A});var n=r(82170),a=r(3924),o=r(85985),s=r(56427),i=r(86087),l=r(27723),c=r(88795);const __=l.__,u=(0,o.sh)(c),A=({className:e,changeStatus:t,isLoading:r,enable:l})=>{const{tracks:A}=(0,o.st)();(0,i.useEffect)((()=>{A.recordEvent("jetpack_editor_related_posts_placeholder_view")}),[A]);const g=(0,o.Sy)()||(0,o.d9)()?"https://wordpress.com/support/related-posts/":(0,a.A)("jetpack-support-related-posts");return(0,n.createElement)("div",{className:e},(0,n.createElement)(s.Placeholder,{icon:u,instructions:__("You'll need to activate the Related Posts feature to use this block.","jetpack"),label:c.title},(0,n.createElement)(s.Button,{disabled:r,isBusy:r,onClick:()=>{let e=!1;return A.recordEvent("jetpack_editor_related_posts_enable"),(0,o.Sy)()||(e=t(!0)),e=l(),e},variant:"secondary"},r?__("Activating Related Posts","jetpack"):__("Activate Related Posts","jetpack",0)),(0,n.createElement)("div",{className:"components-placeholder__learn-more"},(0,n.createElement)(s.ExternalLink,{href:g},__("Learn more about the Related Posts feature.","jetpack")))))}},34570:(e,t,r)=>{"use strict";r.d(t,{A:()=>E});var n=r(96072),a=r.n(n),o=r(82170),s=r(85985),i=r(94715),l=r(56427),c=r(47143),u=r(86087),A=r(27723),g=r(13022),d=r(20242),p=r(84730);const __=A.__,_n=A._n,m=[{value:p.DF,label:__("Show after threshold","jetpack")},{value:p.et,label:__("Show before threshold","jetpack")}],h=(0,s.sh)(d),E=(0,c.withSelect)(((e,t)=>{const{isBlockSelected:r,hasSelectedInnerBlock:n}=e("core/block-editor");return{isSelected:r(t.clientId)||n(t.clientId)}}))((({isSelected:e,attributes:t,setAttributes:r})=>{const{criteria:n,threshold:s}=t,c=(0,i.useBlockProps)(),[d,E]=(0,u.useState)(!0);return(0,o.createElement)("div",a()({},c,{className:(0,g.A)(c.className,{"wp-block-jetpack-repeat-visitor--is-unselected":!e})}),(0,o.createElement)(l.Placeholder,{icon:h,label:__("Repeat Visitor","jetpack"),className:"wp-block-jetpack-repeat-visitor-placeholder"},(0,o.createElement)(l.TextControl,{__nextHasNoMarginBottom:!0,className:"wp-block-jetpack-repeat-visitor-threshold",defaultValue:s,help:d?"":__("Please enter a valid number.","jetpack"),label:__("Visit count threshold","jetpack"),min:"1",onChange:e=>{/^\d+$/.test(e)&&+e>0?(r({threshold:+e}),E(!0)):E(!1)},pattern:"[0-9]",type:"number"}),(0,o.createElement)(l.RadioControl,{label:__("Visibility","jetpack"),selected:n,options:m,onChange:e=>r({criteria:e})})),(0,o.createElement)(l.Notice,{status:"info",isDismissible:!1},n===p.DF?1===s?__("This block will only appear to people who have visited this page more than once.","jetpack"):(0,A.sprintf)(/* translators: placeholder is a number. */ _n("This block will only appear to people who have visited this page more than %d time.","This block will only appear to people who have visited this page more than %d times.",+s,"jetpack"),s):1===s?__("This block will only appear to people who are visiting this page for the first time.","jetpack"):(0,A.sprintf)(/* translators: placeholder is a number. */ _n("This block will only appear to people who are visiting this page for %d time.","This block will only appear to people who have visited this page at most %d times.",+s,"jetpack"),s)),(0,o.createElement)("div",{className:"wp-block-jetpack-repeat-visitor__inner-container"},(0,o.createElement)(i.InnerBlocks,null)))}))},53183:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(82170),a=r(94715);const o=()=>{const e=a.useBlockProps.save();return(0,n.createElement)("div",e,(0,n.createElement)("div",{className:"wp-block-jetpack-repeat-visitor__inner-container"},(0,n.createElement)(a.InnerBlocks.Content,null)))}},84730:(e,t,r)=>{"use strict";r.d(t,{DF:()=>n,aV:()=>o,et:()=>a});const n="after-visits",a="before-visits",o=3},31566:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(82170),a=r(94715),o=r(84730);const s={attributes:{criteria:{type:"string",default:o.DF},threshold:{type:"number",default:o.aV}},supports:{html:!1},save:({className:e})=>(0,n.createElement)("div",{className:e},(0,n.createElement)(a.InnerBlocks.Content,null))}},79238:(e,t,r)=>{"use strict";var n=r(94375),a=r(20242),o=r(34570),s=r(53183),i=r(31566);(0,n.M)(a,{edit:o.A,save:s.A,deprecated:[i.A]})},52362:(e,t,r)=>{"use strict";r.d(t,{OS:()=>a,Z3:()=>n,oU:()=>o});const n="jp_pay_product",a="USD",o=[a,"EUR","AUD","BRL","CAD","CZK","DKK","HKD","HUF","ILS","JPY","MYR","MXN","TWD","NZD","NOK","PHP","PLN","GBP","RUB","SGD","SEK","CHF","THB"]},77513:(e,t,r)=>{"use strict";r.d(t,{H:()=>s});var n=r(82170),a=r(56427),o=r(27723);const __=o.__;function s({setAttributes:e,postLinkText:t}){return(0,n.createElement)(a.PanelBody,{title:__("Settings","jetpack"),initialOpen:!1},(0,n.createElement)(a.TextControl,{__nextHasNoMarginBottom:!0,label:__("Purchase link text","jetpack"),help:__("Enter the text you want to display on a purchase link used as fallback when the PayPal button cannot be used (e.g. emails, AMP, etc.)","jetpack"),className:"jetpack-simple-payments__purchase-link-text",placeholder:__("Click here to purchase","jetpack"),onChange:t=>e({postLinkText:t}),value:t}))}},54719:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(82170),a=r(86087);const o={attributes:{currency:{type:"string",default:"USD"},content:{type:"string",default:""},email:{type:"string",default:""},featuredMediaId:{type:"number",default:0},featuredMediaUrl:{type:"string",default:null},featuredMediaTitle:{type:"string",default:null},multiple:{type:"boolean",default:!1},price:{type:"number"},productId:{type:"number"},title:{type:"string",default:""}},supports:{className:!1,customClassName:!1,html:!1,reusable:!1},save:({attributes:e})=>{const{productId:t}=e;return t?(0,n.createElement)(a.RawHTML,null,`[simple-payment id="${t}"]`):null}}},14604:(e,t,r)=>{"use strict";r.d(t,{A:()=>b});var n=r(82170),a=r(3975),o=r(94715),s=r(56427),i=r(29491),l=r(47143),c=r(86087),u=r(27723),A=r(13022),g=r(39904),d=r(66087),p=r(90840),m=r(52362),h=r(96632),E=r(95964),f=r(56658);const __=u.__,_n=u._n;class C extends c.Component{state={fieldEmailError:null,fieldPriceError:null,fieldTitleError:null,isSavingProduct:!1};shouldInjectPaymentAttributes=!!this.props.attributes.productId;componentDidMount(){this.injectPaymentAttributes();const{attributes:e,hasPublishAction:t,postLinkUrl:r,setAttributes:n}=this.props,{productId:a}=e;!a&&t&&this.saveProduct();const o=r&&r!==this.props.attributes.postLinkUrl,s=!this.props.attributes.postLinkText;(o||s)&&n({...o&&{postLinkUrl:r},...s&&{postLinkText:__("Click here to purchase.","jetpack")}})}componentDidUpdate(e){const{hasPublishAction:t,isSelected:r,postLinkUrl:n,setAttributes:a}=this.props;(0,d.isEqual)(e.simplePayment,this.props.simplePayment)||this.injectPaymentAttributes(),!e.isSaving&&this.props.isSaving&&t&&this.validateAttributes()?this.saveProduct():e.isSelected&&!r&&this.validateAttributes();const o=n&&n!==this.props.attributes.postLinkUrl,s=!this.props.attributes.postLinkText;(o||s)&&a({...o&&{postLinkUrl:n},...s&&{postLinkText:__("Click here to purchase.","jetpack")}})}injectPaymentAttributes(){const{simplePayment:e,featuredMedia:t}=this.props;if(!this.shouldInjectPaymentAttributes||(0,d.isEmpty)(e))return;const{attributes:r,setAttributes:n}=this.props,{content:a,currency:o,email:s,featuredMediaId:i,featuredMediaUrl:l,featuredMediaTitle:c,multiple:u,price:A,title:g}=r;n({content:(0,d.get)(e,["content","raw"],a),currency:(0,d.get)(e,["meta","spay_currency"],o),email:(0,d.get)(e,["meta","spay_email"],s),featuredMediaId:(0,d.get)(e,["featured_media"],i),featuredMediaUrl:(0,d.get)(t,"url",l),featuredMediaTitle:(0,d.get)(t,"title",c),multiple:Boolean((0,d.get)(e,["meta","spay_multiple"],Boolean(u))),price:(0,d.get)(e,["meta","spay_price"],A||void 0),title:(0,d.get)(e,["title","raw"],g)}),this.shouldInjectPaymentAttributes=!this.shouldInjectPaymentAttributes}toApi(){const{attributes:e}=this.props,{content:t,currency:r,email:n,featuredMediaId:a,multiple:o,price:s,productId:i,title:l}=e;return{id:i,content:t,featured_media:a,meta:{spay_currency:r,spay_email:n,spay_multiple:o,spay_price:s},status:i?"publish":"draft",title:l}}saveProduct(){if(this.state.isSavingProduct)return;const{attributes:e,setAttributes:t}=this.props,{email:r}=e,{saveEntityRecord:n}=(0,l.dispatch)("core");this.setState({isSavingProduct:!0},(()=>{n("postType",m.Z3,this.toApi()).then((e=>(e&&t({productId:e.id}),e))).catch((e=>{if(!e||!e.data)return;const{data:{key:t}}=e;this.setState({fieldEmailError:"spay_email"===t?(0,u.sprintf)(/* translators: placeholder is an email address. */ __("%s is not a valid email address.","jetpack"),r):null,fieldPriceError:"spay_price"===t?__("Invalid price.","jetpack"):null})})).finally((()=>{this.setState({isSavingProduct:!1})}))}))}validateAttributes=()=>{const e=this.validatePrice(),t=this.validateTitle(),r=this.validateEmail(),n=this.validateCurrency();return e&&t&&r&&n};validateCurrency=()=>{const{currency:e}=this.props.attributes;return m.oU.includes(e)};validatePrice=()=>{const{currency:e,price:t}=this.props.attributes;if(!t||0===parseFloat(t))return this.setState({fieldPriceError:__("If you’re selling something, you need a price tag. Add yours here.","jetpack")}),!1;if(Number.isNaN(parseFloat(t)))return this.setState({fieldPriceError:__("Invalid price","jetpack")}),!1;if(parseFloat(t)<0)return this.setState({fieldPriceError:__("Your price is negative — enter a positive number so people can pay the right amount.","jetpack")}),!1;const{precision:r}=(0,a.i)(e);return(0,f.w1)(t)>r?0===r?(this.setState({fieldPriceError:__("We know every penny counts, but prices in this currency can’t contain decimal values.","jetpack")}),!1):(this.setState({fieldPriceError:(0,u.sprintf)(/* translators: Placeholder is a number of decimals in a number. */ _n("The price cannot have more than %d decimal place.","The price cannot have more than %d decimal places.",r,"jetpack"),r)}),!1):(this.state.fieldPriceError&&this.setState({fieldPriceError:null}),!0)};validateEmail=()=>{const{email:e}=this.props.attributes;return e?g.validate(e)?(this.state.fieldEmailError&&this.setState({fieldEmailError:null}),!0):(this.setState({fieldEmailError:(0,u.sprintf)(/* translators: placeholder is an email address. */ __("%s is not a valid email address.","jetpack"),e)}),!1):(this.setState({fieldEmailError:__("We want to make sure payments reach you, so please add an email address.","jetpack")}),!1)};validateTitle=()=>{const{title:e}=this.props.attributes;return e?(this.state.fieldTitleError&&this.setState({fieldTitleError:null}),!0):(this.setState({fieldTitleError:__("Please add a brief title so that people know what they’re paying for.","jetpack")}),!1)};handleEmailChange=e=>{this.props.setAttributes({email:e}),this.setState({fieldEmailError:null})};handleContentChange=e=>{this.props.setAttributes({content:e})};handlePriceChange=e=>{e=parseFloat(e),isNaN(e)?this.props.setAttributes({price:void 0}):this.props.setAttributes({price:e}),this.setState({fieldPriceError:null})};handleCurrencyChange=e=>{this.props.setAttributes({currency:e})};handleMultipleChange=e=>{this.props.setAttributes({multiple:!!e})};handleTitleChange=e=>{this.props.setAttributes({title:e}),this.setState({fieldTitleError:null})};getCurrencyList=m.oU.map((e=>{const{symbol:t}=(0,a.i)(e);return{value:e,label:t===e?e:`${e} ${(0,d.trimEnd)(t,".")}`}}));renderSettings=()=>(0,n.createElement)(o.InspectorControls,null,(0,n.createElement)(s.PanelBody,{title:__("Settings","jetpack"),initialOpen:!1},(0,n.createElement)(s.TextControl,{label:__("Purchase link text","jetpack"),help:__("Enter the text you want to display on a purchase link used as fallback when the PayPal button cannot be used (e.g. emails, AMP, etc.)","jetpack"),className:"jetpack-simple-payments__purchase-link-text",placeholder:__("Click here to purchase","jetpack"),onChange:e=>this.props.setAttributes({postLinkText:e}),value:this.props.attributes.postLinkText})));render(){const{fieldEmailError:e,fieldPriceError:t,fieldTitleError:r}=this.state,{attributes:a,instanceId:o,isSelected:i,setAttributes:l,simplePayment:c}=this.props,{content:u,currency:g,email:m,featuredMediaId:C,featuredMediaUrl:B,featuredMediaTitle:b,multiple:k,price:y,productId:v,title:I}=a,_=v&&(0,d.isEmpty)(c);if(!i&&_)return(0,n.createElement)("div",{className:"simple-payments__loading"},(0,n.createElement)(E.A,{"aria-busy":"true",content:"█████",formattedPrice:"█████",title:"█████"}));if(!i&&m&&y&&I&&!e&&!t&&!r)return(0,n.createElement)(E.A,{"aria-busy":"false",content:u,featuredMediaUrl:B,featuredMediaTitle:b,formattedPrice:(0,f.N_)(y,g),multiple:k,title:I});const w=_?s.Disabled:"div";return(0,n.createElement)(w,{className:"wp-block-jetpack-simple-payments"},this.renderSettings(),(0,n.createElement)(h.A,{featuredMediaId:C,featuredMediaUrl:B,featuredMediaTitle:b,setAttributes:l}),(0,n.createElement)("div",null,(0,n.createElement)(s.TextControl,{"aria-describedby":`${o}-title-error`,className:(0,A.A)("simple-payments__field","simple-payments__field-title",{"simple-payments__field-has-error":r}),label:__("Item name","jetpack"),onChange:this.handleTitleChange,placeholder:__("Item name","jetpack"),required:!0,type:"text",value:I}),(0,n.createElement)(p.A,{id:`${o}-title-error`,isError:!0},r),(0,n.createElement)(s.TextareaControl,{className:"simple-payments__field simple-payments__field-content",label:__("Describe your item in a few words","jetpack"),onChange:this.handleContentChange,placeholder:__("Describe your item in a few words","jetpack"),value:u}),(0,n.createElement)("div",{className:"simple-payments__price-container"},(0,n.createElement)(s.SelectControl,{className:"simple-payments__field simple-payments__field-currency",label:__("Currency","jetpack"),onChange:this.handleCurrencyChange,options:this.getCurrencyList,value:g}),(0,n.createElement)(s.TextControl,{"aria-describedby":`${o}-price-error`,className:(0,A.A)("simple-payments__field","simple-payments__field-price",{"simple-payments__field-has-error":t}),label:__("Price","jetpack"),onChange:this.handlePriceChange,placeholder:(0,f.N_)(0,g,!1),required:!0,step:"1",type:"number",value:y||""}),(0,n.createElement)(p.A,{id:`${o}-price-error`,isError:!0},t)),(0,n.createElement)("div",{className:"simple-payments__field-multiple"},(0,n.createElement)(s.ToggleControl,{checked:Boolean(k),label:__("Allow people to buy more than one item at a time","jetpack"),onChange:this.handleMultipleChange})),(0,n.createElement)(s.TextControl,{"aria-describedby":`${o}-email-${e?"error":"help"}`,className:(0,A.A)("simple-payments__field","simple-payments__field-email",{"simple-payments__field-has-error":e}),label:__("Email","jetpack"),onChange:this.handleEmailChange,placeholder:__("Email","jetpack"),required:!0,type:"text",value:m}),(0,n.createElement)(p.A,{id:`${o}-email-error`,isError:!0},e),(0,n.createElement)(p.A,{id:`${o}-email-help`},__("Enter the email address associated with your PayPal account. Don’t have an account?","jetpack")+" ",(0,n.createElement)(s.ExternalLink,{href:"https://www.paypal.com/"},__("Create one on PayPal","jetpack")))))}}const B=(0,l.withSelect)(((e,t)=>{const{getEntityRecord:r,getMedia:n}=e("core"),{isSavingPost:a,getCurrentPost:o}=e("core/editor"),{productId:s,featuredMediaId:i}=t.attributes,l=s?(0,d.pick)(r("postType",m.Z3,s),[["content"],["meta","spay_currency"],["meta","spay_email"],["meta","spay_multiple"],["meta","spay_price"],["title","raw"],["featured_media"]]):void 0,c=o();return{hasPublishAction:!!(0,d.get)(c,["_links","wp:action-publish"]),isSaving:!!a(),simplePayment:l,featuredMedia:i?n(i):null,postLinkUrl:c.link}})),b=(0,i.compose)(B,i.withInstanceId)(C)},55258:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var n=r(82170),a=r(85985),o=r(56427),s=r(86087),i=r(27723),l=r(88659),c=r(52362),u=r(14604),A=r(89249);const __=i.__,_x=i._x,g=(0,n.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,n.createElement)(o.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,n.createElement)(o.Path,{d:"M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z"})),d=(0,a.Sy)()||(0,a.d9)()?"https://wordpress.com/support/pay-with-paypal/":"https://jetpack.com/support/jetpack-blocks/pay-with-paypal/",p={title:__("Pay with PayPal","jetpack"),description:(0,n.createElement)(s.Fragment,null,(0,n.createElement)("p",null,__("Lets you add credit and debit card payment buttons with minimal setup.","jetpack")),(0,n.createElement)("p",null,__("Good for collecting donations or payments for products and services.","jetpack")),(0,n.createElement)(o.ExternalLink,{href:d},__("Support reference","jetpack"))),icon:{src:g,foreground:(0,l.V)()},category:"monetize",keywords:[_x("buy","block search term","jetpack"),_x("commerce","block search term","jetpack"),_x("products","block search term","jetpack"),_x("purchase","block search term","jetpack"),_x("sell","block search term","jetpack"),_x("shop","block search term","jetpack"),_x("simple","block search term","jetpack"),_x("payments","block search term","jetpack"),"PayPal"],attributes:{currency:{type:"string",default:c.OS},content:{type:"string",source:"html",selector:".jetpack-simple-payments-description p",default:""},email:{type:"string",default:""},featuredMediaId:{type:"number",default:0},featuredMediaUrl:{type:"string",source:"attribute",selector:".jetpack-simple-payments-image img",attribute:"src",default:null},featuredMediaTitle:{type:"string",source:"attribute",selector:".jetpack-simple-payments-image img",attribute:"alt",default:null},multiple:{type:"boolean",default:!1},postLinkUrl:{type:"string",source:"attribute",selector:".jetpack-simple-payments-purchase",attribute:"href"},postLinkText:{type:"string",source:"html",selector:".jetpack-simple-payments-purchase",default:__("Click here to purchase.","jetpack")},price:{type:"number"},productId:{type:"number"},title:{type:"string",source:"html",selector:".jetpack-simple-payments-title p",default:""}},transforms:{from:[{type:"shortcode",tag:"simple-payment",attributes:{productId:{type:"number",shortcode:({named:{id:e}})=>{if(!e)return;const t=parseInt(e,10);return t||void 0}}}}]},edit:u.A,save:A.A,supports:{className:!1,customClassName:!1,html:!1,reusable:!1}}},89249:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(82170),a=r(56658);function o({attributes:e}){const{content:t,currency:r,featuredMediaUrl:o,featuredMediaTitle:s,postLinkUrl:i,postLinkText:l,price:c,productId:u,title:A}=e;return u?(0,n.createElement)("div",{className:`jetpack-simple-payments-wrapper jetpack-simple-payments-${u}`},(0,n.createElement)("div",{className:"jetpack-simple-payments-product"},o&&(0,n.createElement)("div",{className:"jetpack-simple-payments-product-image"},(0,n.createElement)("div",{className:"jetpack-simple-payments-image"},(0,n.createElement)("figure",null,(0,n.createElement)("img",{src:o,alt:s})))),(0,n.createElement)("div",{className:"jetpack-simple-payments-details"},(0,n.createElement)("div",{className:"jetpack-simple-payments-title"},(0,n.createElement)("p",null,A)),(0,n.createElement)("div",{className:"jetpack-simple-payments-description"},(0,n.createElement)("p",null,t)),(0,n.createElement)("div",{className:"jetpack-simple-payments-price"},(0,n.createElement)("p",null,(0,a.N_)(c,r))),(0,n.createElement)("a",{className:"jetpack-simple-payments-purchase",href:i,target:"_blank",rel:"noopener noreferrer"},l)))):null}},12895:(e,t,r)=>{"use strict";r.d(t,{A:()=>k});var n=r(82170),a=r(3975),o=r(94715),s=r(56427),i=r(29491),l=r(47143),c=r(86087),u=r(27723),A=r(48588),g=r(13022),d=r(39904),p=r(66087),m=r(90840),h=r(52362),E=r(77513),f=r(96632),C=r(95964),B=r(56658);const __=u.__,_n=u._n,b=(0,l.withSelect)(((e,t)=>{const{getEntityRecord:r,getMedia:n}=e("core"),{getCurrentPost:a}=e("core/editor"),{__experimentalGetDirtyEntityRecords:o,isSavingEntityRecord:s}=e("core"),i=o,{productId:l,featuredMediaId:c}=t.attributes,u=l?(0,p.pick)(r("postType",h.Z3,l),[["content"],["meta","spay_currency"],["meta","spay_email"],["meta","spay_multiple"],["meta","spay_price"],["title","raw"],["featured_media"]]):void 0,A=a();return{block:e("core/block-editor").getBlock(t.clientId),hasPublishAction:!!(0,p.get)(A,["_links","wp:action-publish"]),isSaving:i().some((e=>s(e.kind,e.name,e.key))),simplePayment:u,featuredMedia:c?n(c):null,postLinkUrl:A?.guid?.raw,isPostEditor:Object.keys(a()).length>0}})),k=(0,i.compose)(b,i.withInstanceId)((({attributes:e,instanceId:t,isSelected:r,setAttributes:i,simplePayment:b,featuredMedia:k,hasPublishAction:y,postLinkUrl:v,isPostEditor:I,block:_,isSaving:w})=>{const{content:Q,currency:S,email:x,featuredMediaId:j,featuredMediaUrl:L,featuredMediaTitle:N,multiple:T,price:R,productId:P,title:D}=e,M=P&&(0,p.isEmpty)(b),F=(0,o.useBlockProps)(),[O,U]=(0,c.useState)(null),[H,z]=(0,c.useState)(null),[q,V]=(0,c.useState)(null),[G,$]=(0,c.useState)(!1),Z=(0,c.useRef)(!!P),W=()=>{if(G)return;const{saveEntityRecord:e}=(0,l.dispatch)("core");$(!0),e("postType",h.Z3,{id:P,content:Q,featured_media:j,meta:{spay_currency:S,spay_email:x,spay_multiple:T,spay_price:R},status:P?"publish":"draft",title:D}).then((e=>(e&&i({productId:e.id}),e))).catch((e=>{if(!e||!e.data)return;const{data:{key:t}}=e;U("spay_email"===t?(0,u.sprintf)(/* translators: Placeholder is an email address. */ __("%s is not a valid email address.","jetpack"),x):null),z("spay_price"===t?__("Invalid price.","jetpack"):null)})).finally((()=>{$(!1)}))},Y=()=>{const e=J(),t=ee(),r=X(),n=K();return e&&t&&r&&n},K=()=>h.oU.includes(S),J=()=>{if(!R||0===parseFloat(R))return z(__("If you’re selling something, you need a price tag. Add yours here.","jetpack")),!1;if(Number.isNaN(parseFloat(R)))return z(__("Invalid price","jetpack")),!1;if(parseFloat(R)<0)return z(__("Your price is negative — enter a positive number so people can pay the right amount.","jetpack")),!1;const{precision:e}=(0,a.i)(S);return(0,B.w1)(R)>e?0===e?(z(__("We know every penny counts, but prices in this currency can’t contain decimal values.","jetpack")),!1):(z((0,u.sprintf)(/* translators: Placeholder is a number of decimals in a number. */ _n("The price cannot have more than %d decimal place.","The price cannot have more than %d decimal places.",e,"jetpack"),e)),!1):(H&&z(null),!0)},X=()=>x?d.validate(x)?(O&&U(null),!0):(U((0,u.sprintf)(/* translators: Placeholder is an email address. */ __("%s is not a valid email address.","jetpack"),x)),!1):(U(__("We want to make sure payments reach you, so please add an email address.","jetpack")),!1),ee=()=>D?(q&&V(null),!0):(V(__("Please add a brief title so that people know what they’re paying for.","jetpack")),!1),te=e=>{i({email:e}),U(null)},re=e=>{i({content:e})},ne=e=>{const t=parseFloat(e);isNaN(t)?i({price:void 0}):i({price:t}),z(null)},ae=e=>{i({currency:e})},oe=e=>{i({multiple:!!e})},se=e=>{i({title:e}),V(null)},ie=h.oU.map((e=>{const{symbol:t}=(0,a.i)(e);return{value:e,label:t===e?e:`${e} ${(0,p.trimEnd)(t,".")}`}}));let le;if((0,c.useEffect)((()=>{(!P&&y||!I)&&W(),window.wp?.customize?.bind("change",(e=>{let t;const r=e.id.match(/^widget_(.+)(?:\[(\d+)\])$/);if(r){t=`${r[1]}-${parseInt(r[2],10)}`}else t=e.id;t===(0,A.getWidgetIdFromBlock)(_)&&Y()&&W()}))}),[]),(0,c.useEffect)((()=>{b&&Z.current&&!(0,p.isEmpty)(b)&&(i({content:(0,p.get)(b,["content","raw"],Q),currency:(0,p.get)(b,["meta","spay_currency"],S),email:(0,p.get)(b,["meta","spay_email"],x),featuredMediaId:(0,p.get)(b,["featured_media"],j),featuredMediaUrl:(0,p.get)(k,"url",L),featuredMediaTitle:(0,p.get)(k,"title",N),multiple:Boolean((0,p.get)(b,["meta","spay_multiple"],Boolean(T))),price:(0,p.get)(b,["meta","spay_price"],R||void 0),title:(0,p.get)(b,["title","raw"],D)}),Z.current=!1)}),[b]),(0,c.useEffect)((()=>{w&&(y||!I)&&Y()?W():r||Y()}),[w,r]),(0,c.useEffect)((()=>{const t=v&&v!==e.postLinkUrl,r=!e.postLinkText;(t||r)&&i({...t&&{postLinkUrl:v},...r&&{postLinkText:__("Click here to purchase.","jetpack")}})}),[v,e]),!r&&M)le=(0,n.createElement)("div",{className:"simple-payments__loading"},(0,n.createElement)(C.A,{"aria-busy":"true",content:"█████",formattedPrice:"█████",title:"█████"}));else if(r||!x||!R||!D||O||H||q){const r=M?s.Disabled:"div";le=(0,n.createElement)(r,{className:"simple-payments__wrapper"},(0,n.createElement)(o.InspectorControls,null,(0,n.createElement)(E.H,{postLinkText:e.postLinkText,setAttributes:i})),(0,n.createElement)(f.A,{featuredMediaId:j,featuredMediaUrl:L,featuredMediaTitle:N,setAttributes:i}),(0,n.createElement)("div",null,(0,n.createElement)(s.TextControl,{__nextHasNoMarginBottom:!0,"aria-describedby":`${t}-title-error`,className:(0,g.A)("simple-payments__field","simple-payments__field-title",{"simple-payments__field-has-error":q}),label:__("Item name","jetpack"),onChange:se,placeholder:__("Item name","jetpack"),required:!0,type:"text",value:D}),(0,n.createElement)(m.A,{id:`${t}-title-error`,isError:!0},q),(0,n.createElement)(s.TextareaControl,{__nextHasNoMarginBottom:!0,className:"simple-payments__field simple-payments__field-content",label:__("Describe your item in a few words","jetpack"),onChange:re,placeholder:__("Describe your item in a few words","jetpack"),"aria-label":__("Describe your item in a few words","jetpack"),value:Q}),(0,n.createElement)("div",{className:"simple-payments__price-container"},(0,n.createElement)(s.SelectControl,{__nextHasNoMarginBottom:!0,className:"simple-payments__field simple-payments__field-currency",label:__("Currency","jetpack"),onChange:ae,options:ie,value:S}),(0,n.createElement)(s.TextControl,{__nextHasNoMarginBottom:!0,"aria-describedby":`${t}-price-error`,className:(0,g.A)("simple-payments__field","simple-payments__field-price",{"simple-payments__field-has-error":H}),label:__("Price","jetpack"),onChange:ne,placeholder:(0,B.$g)(0,S,!1),required:!0,step:"1",type:"number",value:R||""}),(0,n.createElement)(m.A,{id:`${t}-price-error`,isError:!0},H)),(0,n.createElement)("div",{className:"simple-payments__field-multiple"},(0,n.createElement)(s.ToggleControl,{__nextHasNoMarginBottom:!0,checked:Boolean(T),label:__("Allow people to buy more than one item at a time","jetpack"),onChange:oe})),(0,n.createElement)(s.TextControl,{__nextHasNoMarginBottom:!0,"aria-describedby":`${t}-email-${O?"error":"help"}`,className:(0,g.A)("simple-payments__field","simple-payments__field-email",{"simple-payments__field-has-error":O}),label:__("Email","jetpack"),onChange:te,placeholder:__("Email","jetpack"),required:!0,type:"text",value:x}),(0,n.createElement)(m.A,{id:`${t}-email-error`,isError:!0},O),(0,n.createElement)(m.A,{id:`${t}-email-help`},__("Enter the email address associated with your PayPal account. Don’t have an account?","jetpack")+" ",(0,n.createElement)(s.ExternalLink,{href:"https://www.paypal.com/"},__("Create one on PayPal","jetpack")))))}else le=(0,n.createElement)(C.A,{"aria-busy":"false",content:Q,featuredMediaUrl:L,featuredMediaTitle:N,formattedPrice:(0,B.$g)(R,S),multiple:T,title:D});return(0,n.createElement)("div",F,le)}))},50134:(e,t,r)=>{"use strict";var n=r(94375),a=r(16668),o=r(54719),s=r(55258),i=r(12895),l=r(68866);(0,n.M)(a,{edit:i.A,save:l.A,transforms:{from:[{type:"shortcode",tag:"simple-payment",attributes:{productId:{type:"number",shortcode:({named:{id:e}})=>{if(!e)return;const t=parseInt(e,10);return t||void 0}}}}]},deprecated:[o.A,s.A]})},96632:(e,t,r)=>{"use strict";r.d(t,{A:()=>A});var n=r(82170),a=r(94715),o=r(56427),s=r(86087),i=r(27723),l=r(66087),c=r(74490);const __=i.__,u=e=>t=>e({featuredMediaId:(0,l.get)(t,"id",0),featuredMediaUrl:(0,l.get)(t,"url",null),featuredMediaTitle:(0,l.get)(t,"title",null)}),A=({featuredMediaId:e,featuredMediaUrl:t,featuredMediaTitle:r,setAttributes:i})=>e?(0,n.createElement)("div",null,(0,n.createElement)(s.Fragment,null,(0,n.createElement)(a.BlockControls,null,(0,n.createElement)(o.ToolbarGroup,null,(0,n.createElement)(o.ToolbarItem,null,(()=>(0,n.createElement)(a.MediaUpload,{onSelect:u(i),allowedTypes:["image"],value:e,render:({open:e})=>(0,n.createElement)(c.A,{label:__("Edit Image","jetpack"),onClick:e})}))),(0,n.createElement)(o.ToolbarButton,{icon:"trash",title:__("Remove Image","jetpack"),onClick:()=>i({featuredMediaId:null,featuredMediaUrl:null,featuredMediaTitle:null})}))),(0,n.createElement)("figure",null,(0,n.createElement)("img",{src:t,alt:r})))):(0,n.createElement)(a.MediaPlaceholder,{icon:(0,n.createElement)(a.BlockIcon,{icon:"format-image"}),labels:{title:__("Product Image","jetpack")},accept:"image/*",allowedTypes:["image"],onSelect:u(i)})},95964:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(82170),a=r(27723),o=r(11628),s=r(96411);const __=a.__,i=({title:e="",content:t="",formattedPrice:r="",multiple:a=!1,featuredMediaUrl:i=null,featuredMediaTitle:l=null})=>(0,n.createElement)("div",{className:"jetpack-simple-payments-wrapper"},(0,n.createElement)("div",{className:"jetpack-simple-payments-product"},i&&(0,n.createElement)("div",{className:"jetpack-simple-payments-product-image"},(0,n.createElement)("figure",{className:"jetpack-simple-payments-image"},(0,n.createElement)("img",{src:i,alt:l}))),(0,n.createElement)("div",{className:"jetpack-simple-payments-details"},e&&(0,n.createElement)("div",{className:"jetpack-simple-payments-title"},(0,n.createElement)("p",null,e)),t&&(0,n.createElement)("div",{className:"jetpack-simple-payments-description"},(0,n.createElement)("p",null,t)),r&&(0,n.createElement)("div",{className:"jetpack-simple-payments-price"},(0,n.createElement)("p",null,r)),(0,n.createElement)("div",{className:"jetpack-simple-payments-purchase-box"},a&&(0,n.createElement)("div",{className:"jetpack-simple-payments-items"},(0,n.createElement)("input",{className:"jetpack-simple-payments-items-number",readOnly:!0,type:"number",value:"1"})),(0,n.createElement)("div",{className:"jetpack-simple-payments-button"},(0,n.createElement)("img",{alt:__("Pay with PayPal","jetpack"),src:s,srcSet:`${o} 2x`}))))))},68866:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(96072),a=r.n(n),o=r(82170),s=r(94715),i=r(13022),l=r(56658);function c({attributes:e}){const{content:t,currency:r,featuredMediaUrl:n,featuredMediaTitle:c,postLinkUrl:u,postLinkText:A,price:g,productId:d,title:p}=e;if(!d)return null;const m=s.useBlockProps.save();return(0,o.createElement)("div",a()({},m,{className:(0,i.A)(m.className,`jetpack-simple-payments-wrapper jetpack-simple-payments-${d}`)}),(0,o.createElement)("div",{className:"jetpack-simple-payments-product"},n&&(0,o.createElement)("div",{className:"jetpack-simple-payments-product-image"},(0,o.createElement)("div",{className:"jetpack-simple-payments-image"},(0,o.createElement)("figure",null,(0,o.createElement)("img",{src:n,alt:c})))),(0,o.createElement)("div",{className:"jetpack-simple-payments-details"},(0,o.createElement)("div",{className:"jetpack-simple-payments-title"},(0,o.createElement)("p",null,p)),(0,o.createElement)("div",{className:"jetpack-simple-payments-description"},(0,o.createElement)("p",null,t)),(0,o.createElement)("div",{className:"jetpack-simple-payments-price"},(0,o.createElement)("p",null,(0,l.$g)(g,r))),(0,o.createElement)("a",{className:"jetpack-simple-payments-purchase",href:u,target:"_blank",rel:"noopener noreferrer"},A))))}},56658:(e,t,r)=>{"use strict";r.d(t,{$g:()=>l,N_:()=>i,w1:()=>o});var n=r(3975),a=r(66087);r(52362);const o=e=>{const t=(""+e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0},s=(e="en-US")=>{const t=window?.window?.navigator;return t?.languages?.length?t.languages[0]:t?.userLanguage??t?.language??t?.browserLanguage??e},i=(e=0,t,r=!0)=>{const{precision:o,symbol:s}=(0,n.i)(t),i=e.toFixed(o);return r?`${i} ${(0,a.trimEnd)(s,".")}`:i},l=(e=0,t,r=!0)=>{if(!window.Intl||"function"!=typeof Intl.NumberFormat)return i(e,t,r);const n=[window?.Jetpack_Editor_Initial_State?.siteLocale??"en-US",s(),"en-US"];let a,o={};for(a of(r&&(o={style:"currency",currency:t}),n))try{return Intl.NumberFormat(a,o).format(e)}catch{continue}return i(e,t,r)}},94247:(e,t,r)=>{"use strict";r.d(t,{H:()=>c,o:()=>u});var n=r(82170),a=r(94715),o=r(56427),s=r(86087),i=r(27723),l=r(66087);const __=i.__,_x=i._x;function c({attributes:{autoplay:e,delay:t,effect:r,images:a,sizeSlug:i},imageSizeOptions:c,onChangeImageSize:u,setAttributes:A}){const g="undefined"!=typeof window&&window.matchMedia("(prefers-reduced-motion: reduce)").matches,d=[{label:_x("Slide","Slideshow transition effect","jetpack"),value:"slide"},{label:_x("Fade","Slideshow transition effect","jetpack"),value:"fade"}];return(0,n.createElement)(s.Fragment,null,(0,n.createElement)(o.PanelBody,{title:__("Autoplay","jetpack")},(0,n.createElement)(o.ToggleControl,{__nextHasNoMarginBottom:!0,label:__("Autoplay","jetpack"),help:__("Autoplay between slides","jetpack"),checked:e,onChange:e=>{A({autoplay:e})}}),e&&(0,n.createElement)(o.RangeControl,{__nextHasNoMarginBottom:!0,label:__("Delay between transitions (in seconds)","jetpack"),value:t,onChange:e=>{A({delay:e})},min:1,max:5}),e&&g&&(0,n.createElement)("span",null,__("The Reduce Motion accessibility option is selected, therefore autoplay will be disabled in this browser.","jetpack"))),(0,n.createElement)(o.PanelBody,{title:__("Effects","jetpack")},(0,n.createElement)(o.SelectControl,{__nextHasNoMarginBottom:!0,label:__("Transition","jetpack"),value:r,onChange:e=>{A({effect:e})},options:d})),!(0,l.isEmpty)(a)&&!(0,l.isEmpty)(c)&&(0,n.createElement)(o.PanelBody,{title:__("Image Settings","jetpack")},(0,n.createElement)(o.SelectControl,{__nextHasNoMarginBottom:!0,label:__("Size","jetpack"),value:i,options:c,onChange:e=>u(e)})))}function u({allowedMediaTypes:e,attributes:{images:t},onSelectImages:r}){return(0,n.createElement)(s.Fragment,null,!!t.length&&(0,n.createElement)(o.ToolbarGroup,null,(0,n.createElement)(o.ToolbarItem,null,(()=>(0,n.createElement)(a.MediaUpload,{onSelect:r,allowedTypes:e,multiple:!0,gallery:!0,value:t.map((e=>e.id)),render:({open:e})=>(0,n.createElement)(o.Button,{label:__("Edit Slideshow","jetpack"),onClick:e},__("Edit","jetpack"))})))))}},33170:(e,t,r)=>{"use strict";async function n(e=".swiper-container",t={},n={}){const a={effect:"slide",grabCursor:!0,init:!0,initialSlide:0,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},pagination:{bulletElement:"button",clickable:!0,el:".swiper-pagination",type:"bullets"},preventClicks:!1,preventClicksPropagation:!1,releaseFormElements:!1,setWrapperSize:!0,threshold:5,touchStartPreventDefault:!1,on:Object.fromEntries(Object.entries(n||{}).map((([e,t])=>[e,function(){t(this)}])))},[{default:o}]=await Promise.all([Promise.all([r.e(712),r.e(979)]).then(r.t.bind(r,83758,23)),Promise.all([r.e(712),r.e(979)]).then(r.bind(r,81449))]);return new o(e,{...a,...t})}r.d(t,{A:()=>n})},88075:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(26497);const a=[r(57544),n]},84972:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={align:{default:"center",type:"string"},autoplay:{type:"boolean",default:!1},delay:{type:"number",default:3},ids:{default:[],type:"array"},images:{type:"array",default:[],source:"query",selector:".swiper-slide",query:{alt:{source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption"},id:{source:"attribute",selector:"img",attribute:"data-id"},url:{source:"attribute",selector:"img",attribute:"src"}}},effect:{type:"string",default:"slide"},sizeSlug:{type:"string"}}},39126:(e,t,r)=>{"use strict";async function n(e=".swiper-container",t={},n={}){const a={effect:"slide",grabCursor:!0,init:!0,initialSlide:0,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},pagination:{bulletElement:"button",clickable:!0,el:".swiper-pagination",type:"bullets"},preventClicks:!1,preventClicksPropagation:!1,releaseFormElements:!1,setWrapperSize:!0,threshold:5,touchStartPreventDefault:!1,on:Object.fromEntries(Object.entries(n||{}).map((([e,t])=>[e,function(){t(this)}])))},[{default:o}]=await Promise.all([Promise.all([r.e(712),r.e(979)]).then(r.t.bind(r,83758,23)),Promise.all([r.e(712),r.e(979)]).then(r.bind(r,81449))]);return new o(e,{...a,...t})}r.d(t,{A:()=>n})},26497:(e,t,r)=>{"use strict";r.r(t),r.d(t,{attributes:()=>o.A,save:()=>i,supports:()=>s.A});var n=r(82170),a=r(16445),o=r(84972),s=r(82233);const i=({attributes:{align:e,autoplay:t,delay:r,effect:o,images:s},className:i})=>(0,n.createElement)(a.A,{align:e,autoplay:t,className:i,delay:r,effect:o,images:s})},31837:(e,t,r)=>{"use strict";r.d(t,{y:()=>a});var n=r(27723);const __=n.__;function a(e,t,r){let a="";if(r<=5)for(let e=1;e<=r;e++){a+='<button class="'+`swiper-pagination-bullet${e===t?" swiper-pagination-bullet-active":""}`+'" tab-index="0" role="button" aria-label="'+(0,n.sprintf)(/* translators: placeholder is the the video number to navigate to */ __("Go to slide %s","jetpack"),e)+'"></button>'}else a+=`<div class="swiper-pagination-simple">${t} / ${r}</div>`;return a}},16445:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var n=r(82170),a=r(63162),o=r(94715),s=r(56427),i=r(86087),l=r(27723),c=r(13022),u=r(66087),A=r(94107),g=r(39126),d=r(31837),p=r(57464);const __=l.__;class m extends i.Component{pendingRequestAnimationFrame=null;resizeObserver=null;static defaultProps={effect:"slide"};constructor(e){super(e),this.slideshowRef=(0,i.createRef)(),this.btnNextRef=(0,i.createRef)(),this.btnPrevRef=(0,i.createRef)(),this.paginationRef=(0,i.createRef)()}componentDidMount(){const{onError:e}=this.props;this.buildSwiper().then((e=>{this.swiperInstance=e,this.initializeResizeObserver(e)})).catch((()=>{e(__("The Swiper library could not be loaded.","jetpack"))}))}componentWillUnmount(){this.clearResizeObserver(),this.clearPendingRequestAnimationFrame()}componentDidUpdate(e){const{align:t,autoplay:r,delay:n,effect:a,images:o,onError:s}=this.props;if(t===e.align&&(0,u.isEqual)(o,e.images)||this.swiperInstance&&this.swiperInstance.update(),a!==e.effect||r!==e.autoplay||n!==e.delay||o!==e.images){let t;t=this.swiperIndex?o.length===e.images.length?this.swiperInstance.realIndex:e.images.length:0,this.swiperInstance&&this.swiperInstance.destroy(!0,!0),this.buildSwiper(t).then((e=>{this.swiperInstance=e,this.initializeResizeObserver(e)})).catch((()=>{s(__("The Swiper library could not be loaded.","jetpack"))}))}}initializeResizeObserver=e=>{this.clearResizeObserver(),this.resizeObserver=new A.A((()=>{this.clearPendingRequestAnimationFrame(),this.pendingRequestAnimationFrame=requestAnimationFrame((()=>{(0,p.bz)(e),e.update()}))})),this.resizeObserver.observe(e.el)};clearPendingRequestAnimationFrame=()=>{this.pendingRequestAnimationFrame&&(cancelAnimationFrame(this.pendingRequestAnimationFrame),this.pendingRequestAnimationFrame=null)};clearResizeObserver=()=>{this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)};render(){if(!this.props?.images?.length)return null;const{autoplay:e,className:t,delay:r,effect:i,images:l}=this.props;return(0,n.createElement)("div",{className:t,"data-autoplay":e||null,"data-delay":e?r:null,"data-effect":i},(0,n.createElement)("div",{className:"wp-block-jetpack-slideshow_container swiper-container",ref:this.slideshowRef},(0,n.createElement)("ul",{className:"wp-block-jetpack-slideshow_swiper-wrapper swiper-wrapper"},l.map((({alt:e,caption:t,id:r,url:i})=>(0,n.createElement)("li",{className:(0,c.A)("wp-block-jetpack-slideshow_slide","swiper-slide",(0,a.isBlobURL)(i)&&"is-transient"),key:r||i},(0,n.createElement)("figure",null,(0,n.createElement)("img",{alt:e,className:`wp-block-jetpack-slideshow_image wp-image-${r}`,"data-id":r,src:i}),(0,a.isBlobURL)(i)&&(0,n.createElement)(s.Spinner,null),t&&(0,n.createElement)(o.RichText.Content,{className:"wp-block-jetpack-slideshow_caption gallery-caption",tagName:"figcaption",value:t})))))),(0,n.createElement)("a",{className:"wp-block-jetpack-slideshow_button-prev swiper-button-prev swiper-button-white",ref:this.btnPrevRef,role:"button"}),(0,n.createElement)("a",{className:"wp-block-jetpack-slideshow_button-next swiper-button-next swiper-button-white",ref:this.btnNextRef,role:"button"}),(0,n.createElement)("a",{"aria-label":"Pause Slideshow",className:"wp-block-jetpack-slideshow_button-pause",role:"button"}),(0,n.createElement)("div",{className:"wp-block-jetpack-slideshow_pagination swiper-pagination swiper-pagination-white",ref:this.paginationRef})))}prefersReducedMotion=()=>"undefined"!=typeof window&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;buildSwiper=(e=0)=>(0,g.A)(this.slideshowRef.current,{autoplay:!(!this.props.autoplay||this.prefersReducedMotion())&&{delay:1e3*this.props.delay,disableOnInteraction:!1},effect:this.props.effect,loop:!0,initialSlide:e,navigation:{nextEl:this.btnNextRef.current,prevEl:this.btnPrevRef.current},pagination:{clickable:!0,el:this.paginationRef.current,type:"custom",renderCustom:d.y}},{init:p.rQ,imagesReady:p.bz,paginationRender:p.n7,transitionEnd:p.WF})}const h=m},82233:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={html:!1,align:["center","wide","full"]}},57464:(e,t,r)=>{"use strict";r.d(t,{WF:()=>u,bz:()=>c,n7:()=>A,rQ:()=>l});var n=r(89877);const a=16/9,o=.8,s=600,i="wp-block-jetpack-slideshow_autoplay-paused";function l(e){c(e),u(e),e.el.querySelector(".wp-block-jetpack-slideshow_button-pause").addEventListener("click",(function(){e.el&&(e.el.classList.contains(i)?(e.el.classList.remove(i),e.autoplay.start(),this.setAttribute("aria-label","Pause Slideshow")):(e.el.classList.add(i),e.autoplay.stop(),this.setAttribute("aria-label","Play Slideshow")))}))}function c(e){if(!e||!e.el)return;const t=e.el.querySelector('.swiper-slide[data-swiper-slide-index="0"] img');if(!t)return;const r=t.clientWidth/t.clientHeight,n=Math.max(Math.min(r,a),1),i="undefined"!=typeof window?window.innerHeight*o:s,l=Math.min(e.width/n,i),c=`${Math.floor(l)}px`,u=`${Math.floor(l/2)}px`;e.el.classList.add("wp-swiper-initialized"),e.wrapperEl.style.height=c,e.el.querySelector(".wp-block-jetpack-slideshow_button-prev").style.top=u,e.el.querySelector(".wp-block-jetpack-slideshow_button-next").style.top=u}function u(e){(e.slides||[]).forEach(((t,r)=>{t.setAttribute("aria-hidden",r===e.activeIndex?"false":"true"),r===e.activeIndex?t.setAttribute("tabindex","-1"):t.removeAttribute("tabindex")})),function(e){const t=e.slides[e.activeIndex];if(!t)return;const r=t.getElementsByTagName("FIGCAPTION")[0],a=t.getElementsByTagName("IMG")[0];e.a11y.liveRegion&&(e.a11y.liveRegion[0].innerHTML=r?r.innerHTML:(0,n.escapeHTML)(a.alt))}(e)}function A(e){(e.pagination.bullets||[]).forEach((t=>{t.addEventListener("click",(()=>{const t=e.slides[e.realIndex];setTimeout((()=>{t.focus()}),500)}))}))}},30891:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={align:{default:"center",type:"string"},autoplay:{type:"boolean",default:!1},delay:{type:"number",default:3},ids:{default:[],type:"array"},images:{type:"array",default:[],source:"query",selector:".swiper-slide",query:{alt:{source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption"},id:{source:"attribute",selector:"img",attribute:"data-id"},url:{source:"attribute",selector:"img",attribute:"src"}}},effect:{type:"string",default:"slide"},sizeSlug:{type:"string"}}},13895:(e,t,r)=>{"use strict";async function n(e=".swiper-container",t={},n={}){const a={effect:"slide",grabCursor:!0,init:!0,initialSlide:0,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},pagination:{bulletElement:"button",clickable:!0,el:".swiper-pagination",type:"bullets"},preventClicks:!1,preventClicksPropagation:!1,releaseFormElements:!1,setWrapperSize:!0,threshold:5,touchStartPreventDefault:!1,on:Object.fromEntries(Object.entries(n||{}).map((([e,t])=>[e,function(){t(this)}])))},[{default:o}]=await Promise.all([Promise.all([r.e(712),r.e(979)]).then(r.t.bind(r,83758,23)),Promise.all([r.e(712),r.e(979)]).then(r.bind(r,81449))]);return new o(e,{...a,...t})}r.d(t,{A:()=>n})},57544:(e,t,r)=>{"use strict";r.r(t),r.d(t,{attributes:()=>s.A,save:()=>l,supports:()=>i.A});var n=r(82170),a=r(94715),o=r(71576),s=r(30891),i=r(89693);const l=({attributes:{align:e,autoplay:t,delay:r,effect:s,images:i}})=>{const l=a.useBlockProps.save();return(0,n.createElement)("div",l,(0,n.createElement)(o.A,{align:e,autoplay:t,delay:r,effect:s,images:i}))}},74194:(e,t,r)=>{"use strict";r.d(t,{y:()=>a});var n=r(27723);const __=n.__;function a(e,t,r){let a="";if(r<=5)for(let e=1;e<=r;e++){a+='<button class="'+`swiper-pagination-bullet${e===t?" swiper-pagination-bullet-active":""}`+'" tab-index="0" role="button" aria-label="'+(0,n.sprintf)(/* translators: placeholder is the the video number to navigate to */ __("Go to slide %s","jetpack"),e)+'"></button>'}else a+=`<div class="swiper-pagination-simple">${t} / ${r}</div>`;return a}},71576:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var n=r(82170),a=r(63162),o=r(94715),s=r(56427),i=r(86087),l=r(27723),c=r(13022),u=r(66087),A=r(94107),g=r(13895),d=r(74194),p=r(25080);const __=l.__;class m extends i.Component{pendingRequestAnimationFrame=null;resizeObserver=null;static defaultProps={effect:"slide"};constructor(e){super(e),this.slideshowRef=(0,i.createRef)(),this.btnNextRef=(0,i.createRef)(),this.btnPrevRef=(0,i.createRef)(),this.paginationRef=(0,i.createRef)()}componentDidMount(){const{onError:e}=this.props;this.buildSwiper().then((e=>{this.swiperInstance=e,this.initializeResizeObserver(e)})).catch((()=>{e(__("The Swiper library could not be loaded.","jetpack"))}))}componentWillUnmount(){this.clearResizeObserver(),this.clearPendingRequestAnimationFrame()}componentDidUpdate(e){const{align:t,autoplay:r,delay:n,effect:a,images:o,onError:s}=this.props;if(t===e.align&&(0,u.isEqual)(o,e.images)||this.swiperInstance&&this.swiperInstance.update(),a!==e.effect||r!==e.autoplay||n!==e.delay||o!==e.images){let t;t=this.swiperIndex?o.length===e.images.length?this.swiperInstance.realIndex:e.images.length:0,this.swiperInstance&&this.swiperInstance.destroy(!0,!0),this.buildSwiper(t).then((e=>{this.swiperInstance=e,this.initializeResizeObserver(e)})).catch((()=>{s(__("The Swiper library could not be loaded.","jetpack"))}))}}initializeResizeObserver=e=>{this.clearResizeObserver(),this.resizeObserver=new A.A((()=>{this.clearPendingRequestAnimationFrame(),this.pendingRequestAnimationFrame=requestAnimationFrame((()=>{(0,p.bz)(e),e.update()}))})),this.resizeObserver.observe(e.el)};clearPendingRequestAnimationFrame=()=>{this.pendingRequestAnimationFrame&&(cancelAnimationFrame(this.pendingRequestAnimationFrame),this.pendingRequestAnimationFrame=null)};clearResizeObserver=()=>{this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)};render(){if(!this.props?.images?.length)return null;const{autoplay:e,delay:t,effect:r,images:i}=this.props;return(0,n.createElement)("div",{"data-autoplay":e||null,"data-delay":e?t:null,"data-effect":r},(0,n.createElement)("div",{className:"wp-block-jetpack-slideshow_container swiper-container",ref:this.slideshowRef},(0,n.createElement)("ul",{className:"wp-block-jetpack-slideshow_swiper-wrapper swiper-wrapper"},i.map((({alt:e,caption:t,id:r,url:i})=>(0,n.createElement)("li",{className:(0,c.A)("wp-block-jetpack-slideshow_slide","swiper-slide",(0,a.isBlobURL)(i)&&"is-transient"),key:r||i},(0,n.createElement)("figure",null,(0,n.createElement)("img",{alt:e,className:`wp-block-jetpack-slideshow_image wp-image-${r}`,"data-id":r,src:i}),(0,a.isBlobURL)(i)&&(0,n.createElement)(s.Spinner,null),t&&(0,n.createElement)(o.RichText.Content,{className:"wp-block-jetpack-slideshow_caption gallery-caption",tagName:"figcaption",value:t})))))),(0,n.createElement)("a",{className:"wp-block-jetpack-slideshow_button-prev swiper-button-prev swiper-button-white",ref:this.btnPrevRef,role:"button"}),(0,n.createElement)("a",{className:"wp-block-jetpack-slideshow_button-next swiper-button-next swiper-button-white",ref:this.btnNextRef,role:"button"}),(0,n.createElement)("a",{"aria-label":"Pause Slideshow",className:"wp-block-jetpack-slideshow_button-pause",role:"button"}),(0,n.createElement)("div",{className:"wp-block-jetpack-slideshow_pagination swiper-pagination swiper-pagination-white",ref:this.paginationRef})))}prefersReducedMotion=()=>"undefined"!=typeof window&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;buildSwiper=(e=0)=>(0,g.A)(this.slideshowRef.current,{autoplay:!(!this.props.autoplay||this.prefersReducedMotion())&&{delay:1e3*this.props.delay,disableOnInteraction:!1},effect:this.props.effect,loop:!0,initialSlide:e,navigation:{nextEl:this.btnNextRef.current,prevEl:this.btnPrevRef.current},pagination:{clickable:!0,el:this.paginationRef.current,type:"custom",renderCustom:d.y}},{init:p.rQ,imagesReady:p.bz,paginationRender:p.n7,transitionEnd:p.WF})}const h=m},89693:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={html:!1,align:["center","wide","full"]}},25080:(e,t,r)=>{"use strict";r.d(t,{WF:()=>u,bz:()=>c,n7:()=>A,rQ:()=>l});var n=r(89877);const a=16/9,o=.8,s=600,i="wp-block-jetpack-slideshow_autoplay-paused";function l(e){c(e),u(e),e.el.querySelector(".wp-block-jetpack-slideshow_button-pause").addEventListener("click",(function(){e.el&&(e.el.classList.contains(i)?(e.el.classList.remove(i),e.autoplay.start(),this.setAttribute("aria-label","Pause Slideshow")):(e.el.classList.add(i),e.autoplay.stop(),this.setAttribute("aria-label","Play Slideshow")))}))}function c(e){if(!e||!e.el)return;const t=e.el.querySelector('.swiper-slide[data-swiper-slide-index="0"] img');if(!t)return;const r=t.clientWidth/t.clientHeight,n=Math.max(Math.min(r,a),1),i="undefined"!=typeof window?window.innerHeight*o:s,l=Math.min(e.width/n,i),c=`${Math.floor(l)}px`,u=`${Math.floor(l/2)}px`;e.el.classList.add("wp-swiper-initialized"),e.wrapperEl.style.height=c,e.el.querySelector(".wp-block-jetpack-slideshow_button-prev").style.top=u,e.el.querySelector(".wp-block-jetpack-slideshow_button-next").style.top=u}function u(e){(e.slides||[]).forEach(((t,r)=>{t.setAttribute("aria-hidden",r===e.activeIndex?"false":"true"),r===e.activeIndex?t.setAttribute("tabindex","-1"):t.removeAttribute("tabindex")})),function(e){const t=e.slides[e.activeIndex];if(!t)return;const r=t.getElementsByTagName("FIGCAPTION")[0],a=t.getElementsByTagName("IMG")[0];e.a11y.liveRegion&&(e.a11y.liveRegion[0].innerHTML=r?r.innerHTML:(0,n.escapeHTML)(a.alt))}(e)}function A(e){(e.pagination.bullets||[]).forEach((t=>{t.addEventListener("click",(()=>{const t=e.slides[e.realIndex];setTimeout((()=>{t.focus()}),500)}))}))}},61725:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>C});var n=r(82170),a=r(85985),o=r(63162),s=r(94715),i=r(56427),l=r(29491),c=r(47143),u=r(43656),A=r(86087),g=r(27723),d=r(66087),p=r(87762),m=r(94247),h=r(241);const __=g.__,E=["image"],f=(e,t)=>{const r=(0,d.pick)(e,["alt","id","link","caption"]);return r.url=(0,d.get)(e,["sizes",t,"url"])||(0,d.get)(e,["media_details","sizes",t,"source_url"])||e.url,r},C=(0,l.compose)((0,c.withSelect)(((e,t)=>({imageSizes:e("core/editor").getEditorSettings().imageSizes,resizedImages:t.attributes.ids.reduce(((t,r)=>{const n=e("core").getMedia(r);return[...t,{id:r,sizes:(0,d.get)(n,["media_details","sizes"])}]}),[])}))),(0,c.withDispatch)((e=>{const{lockPostSaving:t,unlockPostSaving:r}=e("core/editor");return{lockPostSaving:t,unlockPostSaving:r}})),i.withNotices)((({attributes:e,setAttributes:t,className:r,isSelected:l,noticeOperations:c,noticeUI:g,lockPostSaving:C,unlockPostSaving:B,imageSizes:b,resizedImages:k})=>{const{align:y,autoplay:v,delay:I,effect:_,images:w,sizeSlug:Q,ids:S}=e,x=(0,s.useBlockProps)({className:r}),j=e=>{t({images:e,ids:e.map((({id:e})=>parseInt(e,10)))})},L=e=>j(e.map((e=>f(e,Q)))),N=e=>{const t="slideshowBlockLock";C(t),(0,u.mediaUpload)({allowedTypes:E,filesList:e,onFileChange:e=>{const r=e.map((e=>f(e,Q)));j([...w||[],...r]),r.every((e=>(0,o.isBlobURL)(e.url)))||B(t)},onError:c.createErrorNotice})},T=e=>N(e.target.files);let R;return(0,A.useEffect)((()=>{Q||t({sizeSlug:S.length?"full":"large"})}),[]),R=0===w.length?(0,n.createElement)(s.MediaPlaceholder,{icon:(0,a.sh)(p),labels:{title:__("Slideshow","jetpack"),instructions:__("Drag images, upload new ones or select files from your library.","jetpack")},onSelect:L,accept:"image/*",allowedTypes:E,multiple:!0,notices:g,onError:c.createErrorNotice}):(0,n.createElement)(n.Fragment,null,g,(0,n.createElement)(h.A,{align:y,autoplay:v,delay:I,effect:_,images:w,onError:c.createErrorNotice}),(0,n.createElement)(i.DropZone,{onFilesDrop:N}),l&&(0,n.createElement)("div",{className:"wp-block-jetpack-slideshow__add-item"},(0,n.createElement)(i.FormFileUpload,{multiple:!0,className:"wp-block-jetpack-slideshow__add-item-button",onChange:T,accept:"image/*",icon:"insert"},__("Upload an image","jetpack")))),(0,n.createElement)("div",x,(0,n.createElement)(s.InspectorControls,null,(0,n.createElement)(m.H,{attributes:e,imageSizeOptions:(0,d.map)(b,(({name:e,slug:t})=>({value:t,label:e}))),onChangeImageSize:e=>{const r=w.map((t=>{const r=k.find((({id:e})=>parseInt(e,10)===parseInt(t.id,10))),n=(0,d.get)(r,["sizes",e,"source_url"]);return{...t,...n&&{url:n}}}));j(r),t({sizeSlug:e})},setAttributes:t})),(0,n.createElement)(s.BlockControls,null,(0,n.createElement)(m.o,{allowedMediaTypes:E,attributes:e,onSelectImages:L})),R)}))},96764:(e,t,r)=>{"use strict";var n=r(94375),a=r(87762),o=r(88075),s=r(61725),i=r(41952),l=r(96374),c=r(88513),u=r(98564),A=r(37332);(0,n.M)(a,{edit:s.Ay,save:i.A,transforms:A.A,example:{attributes:{align:"center",autoplay:!0,ids:[22,23],images:[{alt:"",caption:"",id:22,url:l},{alt:"",caption:"",id:23,url:c},{alt:"",caption:"",id:23,url:u}],effect:"slide"}},deprecated:o.A})},30889:(e,t,r)=>{"use strict";r.d(t,{y:()=>a});var n=r(27723);const __=n.__;function a(e,t,r){let a="";if(r<=5)for(let e=1;e<=r;e++){a+='<button class="'+`swiper-pagination-bullet${e===t?" swiper-pagination-bullet-active":""}`+'" tab-index="0" role="button" aria-label="'+(0,n.sprintf)(/* translators: placeholder is the the video number to navigate to */ __("Go to slide %s","jetpack"),e)+'"></button>'}else a+=`<div class="swiper-pagination-simple">${t} / ${r}</div>`;return a}},41952:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(82170),a=r(94715),o=r(241);const s=({attributes:{align:e,autoplay:t,delay:r,effect:s,images:i},className:l})=>{const c=a.useBlockProps.save({className:l});return(0,n.createElement)(o.A,{align:e,autoplay:t,className:c.className,delay:r,effect:s,images:i})}},241:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var n=r(82170),a=r(63162),o=r(94715),s=r(56427),i=r(86087),l=r(27723),c=r(13022),u=r(66087),A=r(94107),g=r(33170),d=r(30889),p=r(34308);const __=l.__;class m extends i.Component{pendingRequestAnimationFrame=null;resizeObserver=null;static defaultProps={effect:"slide"};constructor(e){super(e),this.slideshowRef=(0,i.createRef)(),this.btnNextRef=(0,i.createRef)(),this.btnPrevRef=(0,i.createRef)(),this.paginationRef=(0,i.createRef)()}componentDidMount(){const{onError:e}=this.props;this.buildSwiper().then((e=>{this.swiperInstance=e,this.initializeResizeObserver(e)})).catch((()=>{e(__("The Swiper library could not be loaded.","jetpack"))}))}componentWillUnmount(){this.clearResizeObserver(),this.clearPendingRequestAnimationFrame()}componentDidUpdate(e){const{align:t,autoplay:r,delay:n,effect:a,images:o,onError:s}=this.props;if(t===e.align&&(0,u.isEqual)(o,e.images)||this.swiperInstance&&this.swiperInstance.update(),a!==e.effect||r!==e.autoplay||n!==e.delay||o!==e.images){let t;t=this.swiperIndex?o.length===e.images.length?this.swiperInstance.realIndex:e.images.length:0,this.swiperInstance&&this.swiperInstance.destroy(!0,!0),this.buildSwiper(t).then((e=>{this.swiperInstance=e,this.initializeResizeObserver(e)})).catch((()=>{s(__("The Swiper library could not be loaded.","jetpack"))}))}}initializeResizeObserver=e=>{this.clearResizeObserver(),this.resizeObserver=new A.A((()=>{this.clearPendingRequestAnimationFrame(),this.pendingRequestAnimationFrame=requestAnimationFrame((()=>{(0,p.bz)(e),e.update()}))})),this.resizeObserver.observe(e.el)};clearPendingRequestAnimationFrame=()=>{this.pendingRequestAnimationFrame&&(cancelAnimationFrame(this.pendingRequestAnimationFrame),this.pendingRequestAnimationFrame=null)};clearResizeObserver=()=>{this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)};render(){if(!this.props?.images?.length)return null;const{autoplay:e,className:t,delay:r,effect:i,images:l}=this.props;return(0,n.createElement)("div",{className:t,"data-autoplay":e||null,"data-delay":e?r:null,"data-effect":i},(0,n.createElement)("div",{className:"wp-block-jetpack-slideshow_container swiper-container",ref:this.slideshowRef},(0,n.createElement)("ul",{className:"wp-block-jetpack-slideshow_swiper-wrapper swiper-wrapper"},l.map((({alt:e,caption:t,id:r,url:i},l)=>(0,n.createElement)("li",{className:(0,c.A)("wp-block-jetpack-slideshow_slide","swiper-slide",(0,a.isBlobURL)(i)&&"is-transient"),key:r?`${r}-${l}`:`${i}-${l}`},(0,n.createElement)("figure",null,(0,n.createElement)("img",{alt:e,className:`wp-block-jetpack-slideshow_image wp-image-${r}`,"data-id":r,src:i}),(0,a.isBlobURL)(i)&&(0,n.createElement)(s.Spinner,null),t&&(0,n.createElement)(o.RichText.Content,{className:"wp-block-jetpack-slideshow_caption gallery-caption",tagName:"figcaption",value:t})))))),(0,n.createElement)("a",{className:"wp-block-jetpack-slideshow_button-prev swiper-button-prev swiper-button-white",ref:this.btnPrevRef,role:"button"}),(0,n.createElement)("a",{className:"wp-block-jetpack-slideshow_button-next swiper-button-next swiper-button-white",ref:this.btnNextRef,role:"button"}),(0,n.createElement)("a",{"aria-label":"Pause Slideshow",className:"wp-block-jetpack-slideshow_button-pause",role:"button"}),(0,n.createElement)("div",{className:"wp-block-jetpack-slideshow_pagination swiper-pagination swiper-pagination-white",ref:this.paginationRef})))}prefersReducedMotion=()=>"undefined"!=typeof window&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;buildSwiper=(e=0)=>(0,g.A)(this.slideshowRef.current,{autoplay:!(!this.props.autoplay||this.prefersReducedMotion())&&{delay:1e3*this.props.delay,disableOnInteraction:!1},effect:this.props.effect,loop:!0,initialSlide:e,navigation:{nextEl:this.btnNextRef.current,prevEl:this.btnPrevRef.current},pagination:{clickable:!0,el:this.paginationRef.current,type:"custom",renderCustom:d.y}},{init:p.rQ,imagesReady:p.bz,paginationRender:p.n7,transitionEnd:p.WF})}const h=m},34308:(e,t,r)=>{"use strict";r.d(t,{WF:()=>u,bz:()=>c,n7:()=>A,rQ:()=>l});var n=r(89877);const a=16/9,o=.8,s=600,i="wp-block-jetpack-slideshow_autoplay-paused";function l(e){c(e),u(e),e.el.querySelector(".wp-block-jetpack-slideshow_button-pause").addEventListener("click",(function(){e.el&&(e.el.classList.contains(i)?(e.el.classList.remove(i),e.autoplay.start(),this.setAttribute("aria-label","Pause Slideshow")):(e.el.classList.add(i),e.autoplay.stop(),this.setAttribute("aria-label","Play Slideshow")))}))}function c(e){if(!e||!e.el)return;const t=e.el.querySelector('.swiper-slide[data-swiper-slide-index="0"] img');if(!t)return;const r=t.clientWidth/t.clientHeight,n=Math.max(Math.min(r,a),1),i="undefined"!=typeof window?window.innerHeight*o:s,l=Math.min(e.width/n,i),c=`${Math.floor(l)}px`,u=`${Math.floor(l/2)}px`;e.el.classList.add("wp-swiper-initialized"),e.wrapperEl.style.height=c,e.el.querySelector(".wp-block-jetpack-slideshow_button-prev").style.top=u,e.el.querySelector(".wp-block-jetpack-slideshow_button-next").style.top=u}function u(e){(e.slides||[]).forEach(((t,r)=>{t.setAttribute("aria-hidden",r===e.activeIndex?"false":"true"),r===e.activeIndex?t.setAttribute("tabindex","-1"):t.removeAttribute("tabindex")})),function(e){const t=e.slides[e.activeIndex];if(!t)return;const r=t.getElementsByTagName("FIGCAPTION")[0],a=t.getElementsByTagName("IMG")[0];e.a11y.liveRegion&&(e.a11y.liveRegion[0].innerHTML=r?r.innerHTML:(0,n.escapeHTML)(a.alt))}(e)}function A(e){(e.pagination.bullets||[]).forEach((t=>{t.addEventListener("click",(()=>{const t=e.slides[e.realIndex];setTimeout((()=>{t.focus()}),500)}))}))}},37332:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(74997),a=r(66087);function o(e){return(0,a.filter)(e,(({id:e,url:t})=>e&&t))}const s={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],isMatch:e=>o(e).length>0,transform:e=>{const t=o(e);return(0,n.createBlock)("jetpack/slideshow",{images:t.map((({alt:e,caption:t,id:r,url:n})=>({alt:e,caption:t,id:r,url:n}))),ids:t.map((({id:e})=>e))})}},{type:"block",blocks:["core/gallery","jetpack/tiled-gallery"],transform:({images:e})=>{const t=o(e);return t.length>0?(0,n.createBlock)("jetpack/slideshow",{images:t.map((({alt:e,caption:t,id:r,url:n})=>({alt:e,caption:t,id:r,url:n}))),ids:t.map((({id:e})=>e))}):(0,n.createBlock)("jetpack/slideshow")}}],to:[{type:"block",blocks:["core/gallery"],transform:({images:e,ids:t})=>(0,n.createBlock)("core/gallery",{images:e,ids:t})},{type:"block",blocks:["core/image"],transform:({images:e})=>e.length>0?e.map((({id:e,url:t,alt:r,caption:a})=>(0,n.createBlock)("core/image",{id:e,url:t,alt:r,caption:a}))):(0,n.createBlock)("core/image")}]}},35463:(e,t,r)=>{"use strict";r.d(t,{WN:()=>s,ZS:()=>o,aQ:()=>l,eN:()=>n,hE:()=>a,kc:()=>c,rK:()=>i});const n=["image"],a=4,o=20,s=20,i=2e3,l="circle",c=[{isDefault:!0,name:"rectangular"},{name:l},{name:"square"},{name:"columns"}]},77530:(e,t,r)=>{"use strict";r.d(t,{M:()=>p,c:()=>d});var n=r(82170),a=r(94715),o=r(56427),s=r(86087),i=r(27723),l=r(74490),c=r(35463),u=r(2164),A=r(9888);const __=i.__,g=[{value:"attachment",label:__("Attachment Page","jetpack")},{value:"media",label:__("Media File","jetpack")},{value:"none",label:__("None","jetpack")}],d=({images:e,onSelectImages:t,imageFilter:r,onFilterChange:i})=>(0,n.createElement)(a.BlockControls,null,!!e.length&&(0,n.createElement)(s.Fragment,null,(0,n.createElement)(o.ToolbarGroup,null,(0,n.createElement)(o.ToolbarItem,null,(()=>(0,n.createElement)(a.MediaUpload,{onSelect:t,allowedTypes:c.eN,multiple:!0,gallery:!0,value:e.map((e=>e.id)),render:({open:e})=>(0,n.createElement)(l.A,{label:__("Edit Gallery","jetpack"),onClick:e})})))),(0,n.createElement)(u.A,{value:r,onChange:i}))),p=({layoutStyle:e,images:t,columns:r,onColumnsChange:s,roundedCorners:i,onRoundedCornersChange:l,linkTo:u,onLinkToChange:d})=>(0,n.createElement)(a.InspectorControls,null,(0,n.createElement)(o.PanelBody,{title:__("Tiled Gallery settings","jetpack")},(0,A.o)(e)&&t.length>1&&(0,n.createElement)(o.RangeControl,{label:__("Columns","jetpack"),value:r,onChange:s,min:1,max:Math.min(c.ZS,t.length),__nextHasNoMarginBottom:!0}),e!==c.aQ&&(0,n.createElement)(o.RangeControl,{label:__("Rounded corners","jetpack"),value:i,onChange:l,min:0,max:c.WN,__nextHasNoMarginBottom:!0}),(0,n.createElement)(o.SelectControl,{label:__("Link To","jetpack"),value:u,onChange:d,options:g,__nextHasNoMarginBottom:!0})))},10602:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(9190),a=r(72203),o=r(52516),s=r(24753),i=r(62554);const l=[r(59679),i,s,o,a,n]},70263:(e,t,r)=>{"use strict";r.d(t,{T$:()=>s,ZS:()=>a,hE:()=>n,kc:()=>i,rK:()=>o});const n=4,a=20,o=2e3,s="rectangular",i=[{isDefault:!0,name:s},{name:"circle"},{name:"square"},{name:"columns"}]},69291:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(82170),a=r(63162);function o(e){const{"aria-label":t,alt:r,height:o,id:s,link:i,linkTo:l,origUrl:c,url:u,width:A}=e;if((0,a.isBlobURL)(c))return null;let g;switch(l){case"media":g=u;break;case"attachment":g=i}const d=(0,n.createElement)("img",{alt:r,"aria-label":t,"data-height":o,"data-id":s,"data-link":i,"data-url":c,"data-width":A,src:u});return(0,n.createElement)("figure",{className:"tiled-gallery__item"},g?(0,n.createElement)("a",{href:g},d):d)}},9190:(e,t,r)=>{"use strict";r.r(t),r.d(t,{attributes:()=>a,save:()=>n.A,support:()=>o});var n=r(39805);const a={align:{default:"center",type:"string"},className:{default:`is-style-${r(70263).T$}`,type:"string"},columns:{type:"number"},ids:{default:[],type:"array"},images:{type:"array",default:[],source:"query",selector:".tiled-gallery__item",query:{alt:{attribute:"alt",default:"",selector:"img",source:"attribute"},caption:{selector:"figcaption",source:"html",type:"string"},height:{attribute:"data-height",selector:"img",source:"attribute",type:"number"},id:{attribute:"data-id",selector:"img",source:"attribute"},link:{attribute:"data-link",selector:"img",source:"attribute"},url:{attribute:"data-url",selector:"img",source:"attribute"},width:{attribute:"data-width",selector:"img",source:"attribute",type:"number"}}},linkTo:{default:"none",type:"string"}},o={align:["center","wide","full"],customClassName:!1,html:!1}},29971:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(82170);function a({children:e}){return(0,n.createElement)("div",{className:"tiled-gallery__col"},e)}},75303:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(82170);function a({children:e,galleryRef:t}){return(0,n.createElement)("div",{className:"tiled-gallery__gallery",ref:t},e)}},5525:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});var n=r(82170),a=r(63162),o=r(86087),s=r(27723),i=r(14936),l=r(70263),c=r(69291),u=r(58070),A=r(45726);const __=s.__;class g extends o.Component{photonize({height:e,width:t,url:r}){if(!r)return;if((0,a.isBlobURL)(r)||/^https?:\/\/localhost/.test(r))return r;const n=r.split("?",1)[0],o=function(e){const{host:t}=new URL(e,window.location.href);return/\.files\.wordpress\.com$/.test(t)}(r)?p:i.A,{layoutStyle:s}=this.props;if(d(s)&&t&&e){const r=Math.min(l.rK,t,e);return o(n,{resize:`${r},${r}`})}return o(n)}renderImage(e,t){const{images:r,linkTo:a,selectedImage:o}=this.props,i=(0,s.sprintf)(/* translators: %1$d is the order number of the image, %2$d is the total number of images. */ __("image %1$d of %2$d in gallery","jetpack"),t+1,r.length);return(0,n.createElement)(c.A,{alt:e.alt,"aria-label":i,height:e.height,id:e.id,origUrl:e.url,isSelected:o===t,key:t,link:e.link,linkTo:a,url:this.photonize(e),width:e.width})}render(){const{align:e,children:t,className:r,columns:a,images:o,layoutStyle:s}=this.props,i=d(s)?A.A:u.A,l=this.props.images.map(this.renderImage,this);return(0,n.createElement)("div",{className:r},(0,n.createElement)(i,{align:e,columns:a,images:o,layoutStyle:s,renderedImages:l}),t)}}function d(e){return["circle","square"].includes(e)}function p(e,t={}){const r={width:"w",height:"h",letterboxing:"lb",removeLetterboxing:"ulb"},n=Object.assign(new URL(e,window.location.href),{username:"",password:"",port:"",search:"",hash:""});for(const[e,a]of Object.entries(t))n.searchParams.set(Object.hasOwn(r,e)?r[e]:e,a);return n.toString()}},58070:(e,t,r)=>{"use strict";r.d(t,{A:()=>A});var n=r(82170),a=r(86087),o=r(94107),s=r(29971),i=r(75303),l=r(56237),c=r(34896),u=r(5236);class A extends a.Component{gallery=(0,a.createRef)();pendingRaf=null;ro=null;componentDidMount(){this.observeResize()}componentWillUnmount(){this.unobserveResize()}componentDidUpdate(e){(e.images!==this.props.images||e.align!==this.props.align||"columns"===this.props.layoutStyle&&e.columns!==this.props.columns)&&this.triggerResize()}handleGalleryResize=e=>{this.pendingRaf&&(cancelAnimationFrame(this.pendingRaf),this.pendingRaf=null),this.pendingRaf=requestAnimationFrame((()=>{for(const{contentRect:t,target:r}of e){const{width:e}=t;(0,u.S)(r).forEach((t=>(0,u.r)(t,e)))}}))};triggerResize(){this.gallery.current&&this.handleGalleryResize([{target:this.gallery.current,contentRect:{width:this.gallery.current.clientWidth}}])}observeResize(){this.triggerResize(),this.ro=new o.A(this.handleGalleryResize),this.gallery.current&&this.ro.observe(this.gallery.current)}unobserveResize(){this.ro&&(this.ro.disconnect(),this.ro=null),this.pendingRaf&&(cancelAnimationFrame(this.pendingRaf),this.pendingRaf=null)}render(){const{align:e,columns:t,images:r,layoutStyle:a,renderedImages:o}=this.props,u=(0,c.mJ)(r),A="columns"===a?(0,c.FL)(u,t):(0,c.VU)(u,{isWide:["full","wide"].includes(e)});let g=0;return(0,n.createElement)(i.A,{galleryRef:this.gallery},A.map(((e,t)=>(0,n.createElement)(l.A,{key:t},e.map(((e,t)=>{const r=o.slice(g,g+e);return g+=e,(0,n.createElement)(s.A,{key:t},r)}))))))}}},34896:(e,t,r)=>{"use strict";r.d(t,{FL:()=>s,VU:()=>I,mJ:()=>a});var n=r(66087);function a(e){return(0,n.map)(e,o)}function o({height:e,width:t}){return e&&t?t/e:1}function s(e,t){if(e.length<=t)return[Array(e.length).fill(1)];const r=(0,n.sum)(e)/t,a=[];let o=e,s=0;for(let e=0;e<t-1;e++){const t=(0,n.takeWhile)(o,(t=>{const n=s<=(e+1)*r;return n&&(s+=t),n})).length;a.push(t),o=(0,n.drop)(o,t)}return a.push(o.length),[a]}const i=_([2,1,2],5),l=w([Q,Q,S,Q,Q]),c=w([Q,Q,Q,S,Q,Q,Q]),u=_([3,1,3],5),A=w([S,Q,Q,S]),g=_([1,2,1],5),d=w([S,Q,Q,Q]),p=_([1,3],3),m=w([Q,Q,Q,S]),h=_([3,1],3),E=w([j(1.6),(0,n.overEvery)(x(.9),j(2)),(0,n.overEvery)(x(.9),j(2))]),f=_([1,2],3),C=_([1,1,1,1,1],1),B=_([1,1,1,1],1),b=_([1,1,1],3),k=w([(0,n.overEvery)(x(.9),j(2)),(0,n.overEvery)(x(.9),j(2)),j(1.6)]),y=_([2,1],3),v=w([function(e){return e>=2}]);function I(e,{isWide:t}={}){const r=(e,a)=>{if(!a.length)return e;let o;o=a.length>15&&l(a)&&i(e)?[2,1,2]:a.length>15&&c(a)&&u(e)?[3,1,3]:5!==a.length&&A(a)&&g(e)?[1,2,1]:d(a)&&p(e)?[1,3]:m(a)&&h(e)?[3,1]:E(a)&&f(e)?[1,2]:t&&(5===a.length||10!==a.length&&a.length>6)&&C(e)&&(0,n.sum)((0,n.take)(a,5))<5?[1,1,1,1,1]:function(e,t){const r=(0,n.sum)((0,n.take)(t,4));return B(e)&&r<3.5&&t.length>5||r<7&&4===t.length}(e,a)?[1,1,1,1]:function(e,t,r){const a=(0,n.sum)((0,n.take)(t,3));return t.length>=3&&4!==t.length&&6!==t.length&&b(e)&&(a<2.5||a<5&&t.length>=3&&t[0]===t[2]||r)}(e,a,t)?[1,1,1]:k(a)&&y(e)?[2,1]:v(a)?[1]:a.length>3?[1,1]:Array(a.length).fill(1);const s=e.concat([o]),I=(0,n.sum)(o),_=a.slice(I);return r(s,_)};return r([],e)}function _(e,t){return r=>!(0,n.some)((0,n.takeRight)(r,t),(t=>(0,n.isEqual)(t,e)))}function w(e){return t=>t.length>=e.length&&(0,n.every)((0,n.zipWith)(e,t.slice(0,e.length),((e,t)=>e(t))))}function Q(e){return e>=1&&e<2}function S(e){return e<1}function x(e){return t=>t>=e}function j(e){return t=>t<e}},5236:(e,t,r)=>{"use strict";r.d(t,{S:()=>s,r:()=>o});var n=r(70263);function a(e,t){const r=(t-e.reduce(((e,t)=>e+t),0))/e.length;return e.map((e=>e+r))}function o(e,t){!function(e,[t,r],o){const s=1/t*(o-n.hE*(e.childElementCount-1)-r);!function(e,{rawHeight:t,rowWidth:r}){const o=i(e),s=o.map((e=>(t-n.hE*(e.childElementCount-1))*c(e)[0])),A=a(s,r);o.forEach(((e,r)=>{const o=s[r],i=A[r];!function(e,{colHeight:t,width:r,rawWidth:n}){const o=l(e).map((e=>n/u(e))),s=a(o,t);Array.from(e.children).forEach(((e,t)=>{const n=s[t];e.setAttribute("style",`height:${n}px;width:${r}px;`)}))}(e,{colHeight:t-n.hE*(e.childElementCount-1),width:i,rawWidth:o})}))}(e,{rawHeight:s,rowWidth:o-n.hE*(e.childElementCount-1)})}(e,function(e){const t=i(e).map(c).reduce((([e,t],[r,n])=>[e+r,t+n]),[0,0]);return t}(e),t)}function s(e){return Array.from(e.querySelectorAll(".tiled-gallery__row"))}function i(e){return Array.from(e.querySelectorAll(".tiled-gallery__col"))}function l(e){return Array.from(e.querySelectorAll(".tiled-gallery__item > img, .tiled-gallery__item > a > img"))}function c(e){const t=l(e),r=t.length,n=1/t.map(u).reduce(((e,t)=>e+1/t),0);return[n,n*r||1]}function u(e){const t=parseInt(e.dataset.width,10),r=parseInt(e.dataset.height,10);return t&&!Number.isNaN(t)&&r&&!Number.isNaN(r)?t/r:1}},56237:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(82170),a=r(13022);function o({children:e,className:t}){return(0,n.createElement)("div",{className:(0,a.A)("tiled-gallery__row",t)},e)}},45726:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(82170),a=r(66087),o=r(70263),s=r(29971),i=r(75303),l=r(56237);function c({columns:e,renderedImages:t}){const r=Math.min(o.ZS,e),c=t.length%r;return(0,n.createElement)(i.A,null,[...c?[(0,a.take)(t,c)]:[],...(0,a.chunk)((0,a.drop)(t,c),r)].map(((e,t)=>(0,n.createElement)(l.A,{key:t,className:`columns-${e.length}`},e.map(((e,t)=>(0,n.createElement)(s.A,{key:t},e)))))))}},39805:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(82170),a=r(90907),o=r(70263),s=r(5525);function i(e){return Math.min(3,e.images.length)}function l({attributes:e}){const{images:t}=e;if(!t.length)return null;const{align:r,className:l,columns:c=i(e),linkTo:u}=e;return(0,n.createElement)(s.A,{align:r,className:l,columns:c,images:t,layoutStyle:(0,a.D)(o.kc,l),linkTo:u})}},43566:(e,t,r)=>{"use strict";r.d(t,{T$:()=>i,WN:()=>a,ZS:()=>n,aQ:()=>s,kc:()=>l,rK:()=>o});const n=20,a=20,o=2e3,s="circle",i="rectangular",l=[{isDefault:!0,name:i},{name:s},{name:"square"},{name:"columns"}]},13913:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(82170),a=r(63162),o=r(13022);function s(e){const{alt:t,imageFilter:r,height:s,id:i,link:l,linkTo:c,origUrl:u,url:A,width:g}=e;if((0,a.isBlobURL)(u))return null;let d;switch(c){case"media":d=A;break;case"attachment":d=l}const p=(0,n.createElement)("img",{alt:t,"data-height":s,"data-id":i,"data-link":l,"data-url":u,"data-width":g,src:A});return(0,n.createElement)("figure",{className:(0,o.A)("tiled-gallery__item",{[`filter__${r}`]:!!r})},d?(0,n.createElement)("a",{href:d},p):p)}},72203:(e,t,r)=>{"use strict";r.r(t),r.d(t,{attributes:()=>o,save:()=>a.A,supports:()=>s});var n=r(43566),a=r(14294);const o={align:{default:"center",type:"string"},className:{default:`is-style-${n.T$}`,type:"string"},columns:{type:"number"},ids:{default:[],type:"array"},imageFilter:{type:"string"},images:{type:"array",default:[],source:"query",selector:".tiled-gallery__item",query:{alt:{attribute:"alt",default:"",selector:"img",source:"attribute"},height:{attribute:"data-height",selector:"img",source:"attribute",type:"number"},id:{attribute:"data-id",selector:"img",source:"attribute"},link:{attribute:"data-link",selector:"img",source:"attribute"},url:{attribute:"data-url",selector:"img",source:"attribute"},width:{attribute:"data-width",selector:"img",source:"attribute",type:"number"}}},linkTo:{default:"none",type:"string"},roundedCorners:{type:"integer",default:0}},s={align:["center","wide","full"],customClassName:!1,html:!1}},84394:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(82170);function a({children:e}){return(0,n.createElement)("div",{className:"tiled-gallery__col"},e)}},38548:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(82170);function a({children:e,galleryRef:t}){return(0,n.createElement)("div",{className:"tiled-gallery__gallery",ref:t},e)}},65378:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});var n=r(82170),a=r(86087),o=r(27723),s=r(13022),i=r(43566),l=r(13913),c=r(24549),u=r(84255),A=r(73856);const __=o.__;class g extends a.Component{renderImage(e,t){const{columns:r,imageFilter:a,images:s,linkTo:i,layoutStyle:u,selectedImage:A}=this.props,g=(0,o.sprintf)(/* translators: %1$d is the order number of the image, %2$d is the total number of images. */ __("image %1$d of %2$d in gallery","jetpack"),t+1,s.length),{src:d,srcSet:p}=(0,c.A)(e,{layoutStyle:u});return(0,n.createElement)(l.A,{alt:e.alt,"aria-label":g,columns:r,height:e.height,id:e.id,imageFilter:a,isFirstItem:0===t,isLastItem:t+1===s.length,isSelected:A===t,key:t,link:e.link,linkTo:i,origUrl:e.url,showMovers:s.length>1,srcSet:p,url:d,width:e.width})}render(){const{align:e,children:t,className:r,columns:a,images:o,layoutStyle:l,roundedCorners:g}=this.props,d=(0,c.s)(l)?A.A:u.A,p=this.props.images.map(this.renderImage,this),m=l!==i.aQ?Math.min(g,i.WN):0;return(0,n.createElement)("div",{className:(0,s.A)(r,{[`has-rounded-corners-${m}`]:m>0})},(0,n.createElement)(d,{align:e,columns:a,images:o,layoutStyle:l,renderedImages:p}),t)}}},84255:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(82170),a=r(86087),o=r(84394),s=r(38548),i=r(70954),l=r(89195);class c extends a.Component{gallery=(0,a.createRef)();pendingRaf=null;render(){const{align:e,columns:t,images:r,layoutStyle:a,renderedImages:c}=this.props,u=(0,l.mJ)(r),A="columns"===a?(0,l.FL)(u,t):(0,l.VU)(u,{isWide:["full","wide"].includes(e)});let g=0;return(0,n.createElement)(s.A,{galleryRef:this.gallery},A.map(((e,t)=>(0,n.createElement)(i.A,{key:t},e.map(((e,t)=>{const r=c.slice(g,g+e);return g+=e,(0,n.createElement)(o.A,{key:t},r)}))))))}}},89195:(e,t,r)=>{"use strict";r.d(t,{FL:()=>s,VU:()=>I,mJ:()=>a});var n=r(66087);function a(e){return(0,n.map)(e,o)}function o({height:e,width:t}){return e&&t?t/e:1}function s(e,t){if(e.length<=t)return[Array(e.length).fill(1)];const r=(0,n.sum)(e)/t,a=[];let o=e,s=0;for(let e=0;e<t-1;e++){const t=(0,n.takeWhile)(o,(t=>{const n=s<=(e+1)*r;return n&&(s+=t),n})).length;a.push(t),o=(0,n.drop)(o,t)}return a.push(o.length),[a]}const i=_([2,1,2],5),l=w([Q,Q,S,Q,Q]),c=w([Q,Q,Q,S,Q,Q,Q]),u=_([3,1,3],5),A=w([S,Q,Q,S]),g=_([1,2,1],5),d=w([S,Q,Q,Q]),p=_([1,3],3),m=w([Q,Q,Q,S]),h=_([3,1],3),E=w([j(1.6),(0,n.overEvery)(x(.9),j(2)),(0,n.overEvery)(x(.9),j(2))]),f=_([1,2],3),C=_([1,1,1,1,1],1),B=_([1,1,1,1],1),b=_([1,1,1],3),k=w([(0,n.overEvery)(x(.9),j(2)),(0,n.overEvery)(x(.9),j(2)),j(1.6)]),y=_([2,1],3),v=w([function(e){return e>=2}]);function I(e,{isWide:t}={}){const r=(e,a)=>{if(!a.length)return e;let o;o=a.length>15&&l(a)&&i(e)?[2,1,2]:a.length>15&&c(a)&&u(e)?[3,1,3]:5!==a.length&&A(a)&&g(e)?[1,2,1]:d(a)&&p(e)?[1,3]:m(a)&&h(e)?[3,1]:E(a)&&f(e)?[1,2]:t&&(5===a.length||10!==a.length&&a.length>6)&&C(e)&&(0,n.sum)((0,n.take)(a,5))<5?[1,1,1,1,1]:function(e,t){const r=(0,n.sum)((0,n.take)(t,4));return B(e)&&r<3.5&&t.length>5||r<7&&4===t.length}(e,a)?[1,1,1,1]:function(e,t,r){const a=(0,n.sum)((0,n.take)(t,3));return t.length>=3&&4!==t.length&&6!==t.length&&b(e)&&(a<2.5||a<5&&t.length>=3&&t[0]===t[2]||r)}(e,a,t)?[1,1,1]:k(a)&&y(e)?[2,1]:v(a)?[1]:a.length>3?[1,1]:Array(a.length).fill(1);const s=e.concat([o]),I=(0,n.sum)(o),_=a.slice(I);return r(s,_)};return r([],e)}function _(e,t){return r=>!(0,n.some)((0,n.takeRight)(r,t),(t=>(0,n.isEqual)(t,e)))}function w(e){return t=>t.length>=e.length&&(0,n.every)((0,n.zipWith)(e,t.slice(0,e.length),((e,t)=>e(t))))}function Q(e){return e>=1&&e<2}function S(e){return e<1}function x(e){return t=>t>=e}function j(e){return t=>t<e}},70954:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(82170),a=r(13022);function o({children:e,className:t}){return(0,n.createElement)("div",{className:(0,a.A)("tiled-gallery__row",t)},e)}},73856:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(82170),a=r(66087),o=r(43566),s=r(84394),i=r(38548),l=r(70954);function c({columns:e,renderedImages:t}){const r=Math.min(o.ZS,e),c=t.length%r;return(0,n.createElement)(i.A,null,[...c?[(0,a.take)(t,c)]:[],...(0,a.chunk)((0,a.drop)(t,c),r)].map(((e,t)=>(0,n.createElement)(l.A,{key:t,className:`columns-${e.length}`},e.map(((e,t)=>(0,n.createElement)(s.A,{key:t},e)))))))}},14294:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(82170),a=r(90907),o=r(43566),s=r(65378);function i(e){return Math.min(3,e.images.length)}function l({attributes:e}){const{imageFilter:t,images:r}=e;if(!r.length)return null;const{align:l,className:c,columns:u=i(e),linkTo:A,roundedCorners:g}=e;return(0,n.createElement)(s.A,{align:l,className:c,columns:u,imageFilter:t,images:r,isSave:!0,layoutStyle:(0,a.D)(o.kc,c),linkTo:A,roundedCorners:g})}},24549:(e,t,r)=>{"use strict";r.d(t,{A:()=>l,s:()=>i});var n=r(63162),a=r(66087),o=r(14936),s=r(43566);function i(e){return["circle","square"].includes(e)}function l(e,t={}){if(!e.height||!e.url||!e.width)return{};if((0,n.isBlobURL)(e.url)||/^https?:\/\/localhost/.test(e.url)||/^https?:\/\/.*\.local\//.test(e.url))return{src:e.url};const r=e.url.split("?",1)[0],{height:l,width:u}=e,{layoutStyle:A}=t,g=function(e){const{host:t}=new URL(e,window.location.href);return/\.files\.wordpress\.com$/.test(t)}(r)||!0===function(){if("undefined"!=typeof jetpack_plan&&"vip"===jetpack_plan.data)return!0}()?c:o.A;let d;if(i(A)&&u&&l){const e=Math.min(s.rK,u,l);d=g(r,{resize:`${e},${e}`})}else d=g(r);let p;if(i(A)){const e=Math.min(600,u,l),t=Math.min(s.rK,u,l);p=(0,a.range)(e,t,300).map((e=>{const t=g(r,{resize:`${e},${e}`,strip:"info"});return t?`${t} ${e}w`:null})).filter(Boolean).join(",")}else{const e=Math.min(600,u),t=Math.min(s.rK,u);p=(0,a.range)(e,t,300).map((e=>{const t=g(r,{strip:"info",width:e});return t?`${t} ${e}w`:null})).filter(Boolean).join(",")}return Object.assign({src:d},p&&{srcSet:p})}function c(e,t={}){const r={width:"w",height:"h",letterboxing:"lb",removeLetterboxing:"ulb"},n=Object.assign(new URL(e,window.location.href),{username:"",password:"",port:"",search:"",hash:""});for(const[e,a]of Object.entries(t))n.searchParams.set(Object.hasOwn(r,e)?r[e]:e,a);return n.toString()}},60041:(e,t,r)=>{"use strict";r.d(t,{T$:()=>i,WN:()=>a,ZS:()=>n,aQ:()=>s,kc:()=>l,rK:()=>o});const n=20,a=20,o=2e3,s="circle",i="rectangular",l=[{isDefault:!0,name:i},{name:s},{name:"square"},{name:"columns"}]},64300:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(82170),a=r(63162),o=r(13022);function s(e){const{alt:t,imageFilter:r,height:s,id:i,link:l,linkTo:c,origUrl:u,url:A,width:g}=e;if((0,a.isBlobURL)(u))return null;let d;switch(c){case"media":d=A;break;case"attachment":d=l}const p=(0,n.createElement)("img",{alt:t,"data-height":s,"data-id":i,"data-link":l,"data-url":u,"data-width":g,src:A});return(0,n.createElement)("figure",{className:(0,o.A)("tiled-gallery__item",{[`filter__${r}`]:!!r})},d?(0,n.createElement)("a",{href:d},p):p)}},52516:(e,t,r)=>{"use strict";r.r(t),r.d(t,{attributes:()=>o,migrate:()=>i,save:()=>a.A,supports:()=>s});var n=r(60041),a=r(28635);const o={align:{default:"center",type:"string"},className:{default:`is-style-${n.T$}`,type:"string"},columns:{type:"number"},columnWidths:{default:[],type:"array"},ids:{default:[],type:"array"},imageFilter:{type:"string"},images:{type:"array",default:[],source:"query",selector:".tiled-gallery__item",query:{alt:{attribute:"alt",default:"",selector:"img",source:"attribute"},height:{attribute:"data-height",selector:"img",source:"attribute",type:"number"},id:{attribute:"data-id",selector:"img",source:"attribute"},link:{attribute:"data-link",selector:"img",source:"attribute"},url:{attribute:"data-url",selector:"img",source:"attribute"},width:{attribute:"data-width",selector:"img",source:"attribute",type:"number"}}},linkTo:{default:"none",type:"string"},roundedCorners:{type:"integer",default:0}},s={align:["center","wide","full"],customClassName:!1,html:!1},i=e=>{const t=Math.pow(10,5);return{...e,columnWidths:e.columnWidths.map((e=>e.map((e=>Math.round(e*t)/t))))}}},54001:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(82170);function a({children:e,width:t}){const r=Math.pow(10,12),a=Math.round(t*r)/r,o=t?{flexBasis:`${a}%`}:void 0;return(0,n.createElement)("div",{className:"tiled-gallery__col",style:o},e)}},99309:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(82170);function a({children:e,galleryRef:t}){return(0,n.createElement)("div",{className:"tiled-gallery__gallery",ref:t},e)}},77511:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});var n=r(82170),a=r(86087),o=r(27723),s=r(13022),i=r(60041),l=r(64300),c=r(13014),u=r(56420),A=r(65216);const __=o.__;class g extends a.Component{renderImage(e,t){const{columns:r,imageFilter:a,images:s,isSave:i,linkTo:u,layoutStyle:A,onMoveBackward:g,onMoveForward:d,onRemoveImage:p,onSelectImage:m,selectedImage:h,setImageAttributes:E}=this.props,f=(0,o.sprintf)(/* translators: %1$d is the order number of the image, %2$d is the total number of images. */ __("image %1$d of %2$d in gallery","jetpack"),t+1,s.length),{src:C,srcSet:B}=(0,c.A)(e,{layoutStyle:A});return(0,n.createElement)(l.A,{alt:e.alt,"aria-label":f,columns:r,height:e.height,id:e.id,imageFilter:a,isFirstItem:0===t,isLastItem:t+1===s.length,isSelected:h===t,key:t,link:e.link,linkTo:u,onMoveBackward:i?void 0:g(t),onMoveForward:i?void 0:d(t),onRemove:i?void 0:p(t),onSelect:i?void 0:m(t),origUrl:e.url,setAttributes:i?void 0:E(t),showMovers:s.length>1,srcSet:B,url:C,width:e.width})}render(){const{align:e,children:t,className:r,columns:a,images:o,layoutStyle:l,roundedCorners:g,onResize:d,isSave:p,columnWidths:m}=this.props,h=(0,c.s)(l)?A.A:u.A,E=this.props.images.map(this.renderImage,this),f=l!==i.aQ?Math.min(g,i.WN):0;return(0,n.createElement)("div",{className:(0,s.A)(r,{[`has-rounded-corners-${f}`]:f>0})},(0,n.createElement)(h,{align:e,columns:a,columnWidths:p?m:void 0,images:o,layoutStyle:l,renderedImages:E,onResize:p?void 0:d}),t)}}},56420:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(82170),a=r(86087),o=r(54001),s=r(99309),i=r(46479),l=r(70394);class c extends a.Component{gallery=(0,a.createRef)();pendingRaf=null;render(){const{align:e,columns:t,images:r,layoutStyle:a,renderedImages:c,columnWidths:u}=this.props,A=(0,l.mJ)(r),g="columns"===a?(0,l.FL)(A,t):(0,l.VU)(A,{isWide:["full","wide"].includes(e)});let d=0;return(0,n.createElement)(s.A,{galleryRef:this.gallery},g.map(((e,t)=>(0,n.createElement)(i.A,{key:t},e.map(((e,r)=>{const a=c.slice(d,d+e);return d+=e,(0,n.createElement)(o.A,{key:r,width:u?.[t]?.[r]},a)}))))))}}},70394:(e,t,r)=>{"use strict";r.d(t,{FL:()=>s,VU:()=>I,mJ:()=>a});var n=r(66087);function a(e){return(0,n.map)(e,o)}function o({height:e,width:t}){return e&&t?t/e:1}function s(e,t){if(e.length<=t)return[Array(e.length).fill(1)];const r=(0,n.sum)(e)/t,a=[];let o=e,s=0;for(let e=0;e<t-1;e++){const t=(0,n.takeWhile)(o,(t=>{const n=s<=(e+1)*r;return n&&(s+=t),n})).length;a.push(t),o=(0,n.drop)(o,t)}return a.push(o.length),[a]}const i=_([2,1,2],5),l=w([Q,Q,S,Q,Q]),c=w([Q,Q,Q,S,Q,Q,Q]),u=_([3,1,3],5),A=w([S,Q,Q,S]),g=_([1,2,1],5),d=w([S,Q,Q,Q]),p=_([1,3],3),m=w([Q,Q,Q,S]),h=_([3,1],3),E=w([j(1.6),(0,n.overEvery)(x(.9),j(2)),(0,n.overEvery)(x(.9),j(2))]),f=_([1,2],3),C=_([1,1,1,1,1],1),B=_([1,1,1,1],1),b=_([1,1,1],3),k=w([(0,n.overEvery)(x(.9),j(2)),(0,n.overEvery)(x(.9),j(2)),j(1.6)]),y=_([2,1],3),v=w([function(e){return e>=2}]);function I(e,{isWide:t}={}){const r=(e,a)=>{if(!a.length)return e;let o;o=a.length>15&&l(a)&&i(e)?[2,1,2]:a.length>15&&c(a)&&u(e)?[3,1,3]:5!==a.length&&A(a)&&g(e)?[1,2,1]:d(a)&&p(e)?[1,3]:m(a)&&h(e)?[3,1]:E(a)&&f(e)?[1,2]:t&&(5===a.length||10!==a.length&&a.length>6)&&C(e)&&(0,n.sum)((0,n.take)(a,5))<5?[1,1,1,1,1]:function(e,t){const r=(0,n.sum)((0,n.take)(t,4));return B(e)&&r<3.5&&t.length>5||r<7&&4===t.length}(e,a)?[1,1,1,1]:function(e,t,r){const a=(0,n.sum)((0,n.take)(t,3));return t.length>=3&&4!==t.length&&6!==t.length&&b(e)&&(a<2.5||a<5&&t.length>=3&&t[0]===t[2]||r)}(e,a,t)?[1,1,1]:k(a)&&y(e)?[2,1]:v(a)?[1]:a.length>3?[1,1]:Array(a.length).fill(1);const s=e.concat([o]),I=(0,n.sum)(o),_=a.slice(I);return r(s,_)};return r([],e)}function _(e,t){return r=>!(0,n.some)((0,n.takeRight)(r,t),(t=>(0,n.isEqual)(t,e)))}function w(e){return t=>t.length>=e.length&&(0,n.every)((0,n.zipWith)(e,t.slice(0,e.length),((e,t)=>e(t))))}function Q(e){return e>=1&&e<2}function S(e){return e<1}function x(e){return t=>t>=e}function j(e){return t=>t<e}},46479:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(82170),a=r(13022);function o({children:e,className:t}){return(0,n.createElement)("div",{className:(0,a.A)("tiled-gallery__row",t)},e)}},65216:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(82170),a=r(66087),o=r(60041),s=r(54001),i=r(99309),l=r(46479);function c({columns:e,renderedImages:t}){const r=Math.min(o.ZS,e),c=t.length%r;return(0,n.createElement)(i.A,null,[...c?[(0,a.take)(t,c)]:[],...(0,a.chunk)((0,a.drop)(t,c),r)].map(((e,t)=>(0,n.createElement)(l.A,{key:t,className:`columns-${e.length}`},e.map(((e,t)=>(0,n.createElement)(s.A,{key:t},e)))))))}},28635:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(82170),a=r(90907),o=r(60041),s=r(77511);function i(e){return Math.min(3,e.images.length)}function l({attributes:e}){const{imageFilter:t,images:r}=e;if(!r.length)return null;const{align:l,className:c,columns:u=i(e),linkTo:A,roundedCorners:g,columnWidths:d}=e;return(0,n.createElement)(s.A,{align:l,className:c,columns:u,imageFilter:t,images:r,isSave:!0,layoutStyle:(0,a.D)(o.kc,c),linkTo:A,roundedCorners:g,columnWidths:d})}},13014:(e,t,r)=>{"use strict";r.d(t,{A:()=>l,s:()=>i});var n=r(63162),a=r(66087),o=r(14936),s=r(60041);function i(e){return["circle","square"].includes(e)}function l(e,t={}){if(!e.height||!e.url||!e.width)return{};if((0,n.isBlobURL)(e.url)||/^https?:\/\/localhost/.test(e.url)||/^https?:\/\/.*\.local\//.test(e.url))return{src:e.url};const r=e.url.split("?",1)[0],{height:l,width:u}=e,{layoutStyle:A}=t,g=function(e){const{host:t}=new URL(e,window.location.href);return/\.files\.wordpress\.com$/.test(t)}(r)||!0===function(){if("undefined"!=typeof jetpack_plan&&"vip"===jetpack_plan.data)return!0}()?c:o.A;let d;if(i(A)&&u&&l){const e=Math.min(s.rK,u,l);d=g(r,{resize:`${e},${e}`})}else d=g(r);let p;if(i(A)){const e=Math.min(600,u,l),t=Math.min(s.rK,u,l);p=(0,a.range)(e,t,300).map((e=>{const t=g(r,{resize:`${e},${e}`,strip:"info"});return t?`${t} ${e}w`:null})).filter(Boolean).join(",")}else{const e=Math.min(600,u),t=Math.min(s.rK,u);p=(0,a.range)(e,t,300).map((e=>{const t=g(r,{strip:"info",width:e});return t?`${t} ${e}w`:null})).filter(Boolean).join(",")}return Object.assign({src:d},p&&{srcSet:p})}function c(e,t={}){const r={width:"w",height:"h",letterboxing:"lb",removeLetterboxing:"ulb"},n=Object.assign(new URL(e,window.location.href),{username:"",password:"",port:"",search:"",hash:""});for(const[e,a]of Object.entries(t))n.searchParams.set(Object.hasOwn(r,e)?r[e]:e,a);return n.toString()}},86136:(e,t,r)=>{"use strict";r.d(t,{T$:()=>l,WN:()=>o,ZS:()=>a,aQ:()=>i,hE:()=>n,kc:()=>c,rK:()=>s});const n=4,a=20,o=20,s=2e3,i="circle",l="rectangular",c=[{isDefault:!0,name:l},{name:i},{name:"square"},{name:"columns"}]},92431:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(82170),a=r(63162),o=r(13022);function s(e){const{alt:t,imageFilter:r,height:s,id:i,link:l,linkTo:c,origUrl:u,url:A,width:g}=e;if((0,a.isBlobURL)(u))return null;let d;switch(c){case"media":d=A;break;case"attachment":d=l}const p=(0,n.createElement)("img",{alt:t,"data-height":s,"data-id":i,"data-link":l,"data-url":u,"data-width":g,src:A,"data-amp-layout":"responsive"});return(0,n.createElement)("figure",{className:(0,o.A)("tiled-gallery__item",{[`filter__${r}`]:!!r})},d?(0,n.createElement)("a",{href:d},p):p)}},24753:(e,t,r)=>{"use strict";r.r(t),r.d(t,{attributes:()=>o,save:()=>a.A,supports:()=>s});var n=r(86136),a=r(21180);const o={align:{default:"center",type:"string"},className:{default:`is-style-${n.T$}`,type:"string"},columns:{type:"number"},columnWidths:{default:[],type:"array"},ids:{default:[],type:"array"},imageFilter:{type:"string"},images:{type:"array",default:[],source:"query",selector:".tiled-gallery__item",query:{alt:{attribute:"alt",default:"",selector:"img",source:"attribute"},height:{attribute:"data-height",selector:"img",source:"attribute",type:"number"},id:{attribute:"data-id",selector:"img",source:"attribute"},link:{attribute:"data-link",selector:"img",source:"attribute"},url:{attribute:"data-url",selector:"img",source:"attribute"},width:{attribute:"data-width",selector:"img",source:"attribute",type:"number"}}},imageCrop:{type:"boolean",default:!0},linkTo:{default:"none",type:"string"},roundedCorners:{type:"integer",default:0}},s={align:["center","wide","full"],color:{gradients:!0,text:!1},customClassName:!1,html:!1,spacing:{margin:!0,padding:!0},__experimentalHideChildBlockControls:!0}},78608:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(82170);function a({children:e,width:t}){const r=t?{flexBasis:`${t}%`}:void 0;return(0,n.createElement)("div",{className:"tiled-gallery__col",style:r},e)}},52042:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(82170);function a({children:e,galleryRef:t}){return(0,n.createElement)("div",{className:"tiled-gallery__gallery",ref:t},e)}},26092:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});var n=r(82170),a=r(86087),o=r(27723),s=r(13022),i=r(86136),l=r(92431),c=r(32083),u=r(91341),A=r(67325);const __=o.__;class g extends a.Component{renderImage(e,t){const{columns:r,imageFilter:a,images:s,isSave:i,linkTo:u,layoutStyle:A,onMoveBackward:g,onMoveForward:d,onRemoveImage:p,onSelectImage:m,selectedImage:h,setImageAttributes:E}=this.props,f=(0,o.sprintf)(/* translators: %1$d is the order number of the image, %2$d is the total number of images. */ __("image %1$d of %2$d in gallery","jetpack"),t+1,s.length),{src:C,srcSet:B}=(0,c.A)(e,{layoutStyle:A});return(0,n.createElement)(l.A,{alt:e.alt,"aria-label":f,columns:r,height:e.height,id:e.id,imageFilter:a,isFirstItem:0===t,isLastItem:t+1===s.length,isSelected:h===t,key:t,link:e.link,linkTo:u,onMoveBackward:i?void 0:g(t),onMoveForward:i?void 0:d(t),onRemove:i?void 0:p(t),onSelect:i?void 0:m(t),origUrl:e.url,setAttributes:i?void 0:E(t),showMovers:s.length>1,srcSet:B,url:C,width:e.width})}render(){const{align:e,children:t,className:r,columns:a,images:o,layoutStyle:l,roundedCorners:g,onResize:d,style:p,isSave:m,columnWidths:h}=this.props,E=(0,c.s)(l)?A.A:u.A,f=this.props.images.map(this.renderImage,this),C=l!==i.aQ?Math.min(g,i.WN):0;return(0,n.createElement)("div",{style:p,className:(0,s.A)(r,{[`has-rounded-corners-${C}`]:C>0})},(0,n.createElement)(E,{align:e,columns:a,columnWidths:m?h:void 0,images:o,layoutStyle:l,renderedImages:f,onResize:m?void 0:d}),t)}}},91341:(e,t,r)=>{"use strict";r.d(t,{A:()=>A});var n=r(82170),a=r(86087),o=r(94107),s=r(78608),i=r(52042),l=r(9276),c=r(71245),u=r(86461);class A extends a.Component{gallery=(0,a.createRef)();pendingRaf=null;ro=null;componentDidMount(){this.observeResize()}componentWillUnmount(){this.unobserveResize()}componentDidUpdate(e){(e.images!==this.props.images||e.align!==this.props.align||"columns"===this.props.layoutStyle&&e.columns!==this.props.columns)&&this.triggerResize()}handleGalleryResize=e=>{this.pendingRaf&&(cancelAnimationFrame(this.pendingRaf),this.pendingRaf=null),this.pendingRaf=requestAnimationFrame((()=>{for(const{contentRect:t,target:r}of e){const{width:e}=t,n=[];(0,u.S)(r).forEach((t=>{n.push((0,u.r)(t,e))})),void 0!==this.props.onResize&&this.props.onResize(n)}}))};triggerResize(){this.gallery.current&&this.handleGalleryResize([{target:this.gallery.current,contentRect:{width:this.gallery.current.clientWidth}}])}observeResize(){this.triggerResize(),this.ro=new o.A(this.handleGalleryResize),this.gallery.current&&this.ro.observe(this.gallery.current)}unobserveResize(){this.ro&&(this.ro.disconnect(),this.ro=null),this.pendingRaf&&(cancelAnimationFrame(this.pendingRaf),this.pendingRaf=null)}getColumnWidths(e,t,r){let n=0;return e.map((e=>e.map((e=>{const r=t.slice(n,n+e);return n+=e,r})))).map((e=>(0,u.r)(e,r)))}render(){const{align:e,columns:t,images:r,layoutStyle:o,renderedImages:u}=this.props,A=(0,c.mJ)(r),g="columns"===o?(0,c.FL)(A,t):(0,c.VU)(A,{isWide:["full","wide"].includes(e)}),d=a.Platform.select({web:()=>this.props.columnWidths,native:()=>this.getColumnWidths(g,u,1e3)})();let p=0;return(0,n.createElement)(i.A,{galleryRef:this.gallery},g.map(((e,t)=>(0,n.createElement)(l.A,{key:t},e.map(((e,r)=>{const a=u.slice(p,p+e);return p+=e,(0,n.createElement)(s.A,{key:r,width:d?.[t]?.[r]},a)}))))))}}},71245:(e,t,r)=>{"use strict";r.d(t,{FL:()=>s,VU:()=>I,mJ:()=>a});var n=r(66087);function a(e){return(0,n.map)(e,o)}function o({height:e,width:t}){return e&&t?t/e:1}function s(e,t){if(e.length<=t)return[Array(e.length).fill(1)];const r=(0,n.sum)(e)/t,a=[];let o=e,s=0;for(let e=0;e<t-1;e++){const t=(0,n.takeWhile)(o,(t=>{const n=s<=(e+1)*r;return n&&(s+=t),n})).length;a.push(t),o=(0,n.drop)(o,t)}return a.push(o.length),[a]}const i=_([2,1,2],5),l=w([Q,Q,S,Q,Q]),c=w([Q,Q,Q,S,Q,Q,Q]),u=_([3,1,3],5),A=w([S,Q,Q,S]),g=_([1,2,1],5),d=w([S,Q,Q,Q]),p=_([1,3],3),m=w([Q,Q,Q,S]),h=_([3,1],3),E=w([j(1.6),(0,n.overEvery)(x(.9),j(2)),(0,n.overEvery)(x(.9),j(2))]),f=_([1,2],3),C=_([1,1,1,1,1],1),B=_([1,1,1,1],1),b=_([1,1,1],3),k=w([(0,n.overEvery)(x(.9),j(2)),(0,n.overEvery)(x(.9),j(2)),j(1.6)]),y=_([2,1],3),v=w([function(e){return e>=2}]);function I(e,{isWide:t}={}){const r=(e,a)=>{if(!a.length)return e;let o;o=a.length>15&&l(a)&&i(e)?[2,1,2]:a.length>15&&c(a)&&u(e)?[3,1,3]:5!==a.length&&A(a)&&g(e)?[1,2,1]:d(a)&&p(e)?[1,3]:m(a)&&h(e)?[3,1]:E(a)&&f(e)?[1,2]:t&&(5===a.length||10!==a.length&&a.length>6)&&C(e)&&(0,n.sum)((0,n.take)(a,5))<5?[1,1,1,1,1]:function(e,t){const r=(0,n.sum)((0,n.take)(t,4));return B(e)&&r<3.5&&t.length>5||r<7&&4===t.length}(e,a)?[1,1,1,1]:function(e,t,r){const a=(0,n.sum)((0,n.take)(t,3));return t.length>=3&&4!==t.length&&6!==t.length&&b(e)&&(a<2.5||a<5&&t.length>=3&&t[0]===t[2]||r)}(e,a,t)?[1,1,1]:k(a)&&y(e)?[2,1]:v(a)?[1]:a.length>3?[1,1]:Array(a.length).fill(1);const s=e.concat([o]),I=(0,n.sum)(o),_=a.slice(I);return r(s,_)};return r([],e)}function _(e,t){return r=>!(0,n.some)((0,n.takeRight)(r,t),(t=>(0,n.isEqual)(t,e)))}function w(e){return t=>t.length>=e.length&&(0,n.every)((0,n.zipWith)(e,t.slice(0,e.length),((e,t)=>e(t))))}function Q(e){return e>=1&&e<2}function S(e){return e<1}function x(e){return t=>t>=e}function j(e){return t=>t<e}},86461:(e,t,r)=>{"use strict";r.d(t,{S:()=>s,r:()=>o});var n=r(86136);function a(e,t){const r=(t-e.reduce(((e,t)=>e+t),0))/e.length;return e.map((e=>e+r))}function o(e,t){return function(e,[t,r],o){const s=1/t*(o-n.hE*(e.childElementCount-1)-r);return function(e,{rawHeight:t,rowWidth:r}){const o=i(e),s=o.map((e=>(t-n.hE*(e.childElementCount-1))*c(e)[0])),A=a(s,r);o.forEach(((e,r)=>{const o=s[r],i=A[r];!function(e,{colHeight:t,width:r,rawWidth:n}){const o=l(e).map((e=>n/u(e))),s=a(o,t);Array.from(e.children).forEach(((e,t)=>{const n=s[t];e.setAttribute("style",`height:${n}px;width:${r}px;`)}))}(e,{colHeight:t-n.hE*(e.childElementCount-1),width:i,rawWidth:o})}));return A.map((e=>parseFloat(e/r*100).toFixed(5)))}(e,{rawHeight:s,rowWidth:o-n.hE*(e.childElementCount-1)})}(e,function(e){const t=i(e).map(c).reduce((([e,t],[r,n])=>[e+r,t+n]),[0,0]);return t}(e),t)}function s(e){return Array.from(e.querySelectorAll(".tiled-gallery__row"))}function i(e){return Array.from(e.querySelectorAll(".tiled-gallery__col"))}function l(e){return Array.from(e.querySelectorAll(".tiled-gallery__item > img, .tiled-gallery__item > a > img"))}function c(e){const t=l(e),r=t.length,n=1/t.map(u).reduce(((e,t)=>e+1/t),0);return[n,n*r||1]}function u(e){const t=parseInt(e.dataset.width,10),r=parseInt(e.dataset.height,10);return t&&!Number.isNaN(t)&&r&&!Number.isNaN(r)?t/r:1}},9276:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(82170),a=r(13022);function o({children:e,className:t}){return(0,n.createElement)("div",{className:(0,a.A)("tiled-gallery__row",t)},e)}},67325:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(82170),a=r(66087),o=r(86136),s=r(78608),i=r(52042),l=r(9276);function c({columns:e,renderedImages:t}){const r=Math.min(o.ZS,e),c=t.length%r;return(0,n.createElement)(i.A,null,[...c?[(0,a.take)(t,c)]:[],...(0,a.chunk)((0,a.drop)(t,c),r)].map(((e,t)=>(0,n.createElement)(l.A,{key:t,className:`columns-${e.length}`},e.map(((e,t)=>(0,n.createElement)(s.A,{key:t},e)))))))}},21180:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(82170),a=r(90907),o=r(86136),s=r(26092);function i(e){return Math.min(3,e.images.length)}function l({attributes:e}){const{imageFilter:t,images:r}=e;if(!r.length)return null;const{align:l,className:c,columns:u=i(e),linkTo:A,roundedCorners:g,columnWidths:d}=e;return(0,n.createElement)(s.A,{align:l,className:c,columns:u,imageFilter:t,images:r,isSave:!0,layoutStyle:(0,a.D)(o.kc,c),linkTo:A,roundedCorners:g,columnWidths:d})}},32083:(e,t,r)=>{"use strict";r.d(t,{A:()=>u,s:()=>c});var n=r(85985),a=r(63162),o=r(66087),s=r(14936),i=r(13087),l=r(86136);function c(e){return["circle","square"].includes(e)}function u(e,t={}){if(!e.height||!e.width)return e.url?{src:e.url}:{};if((0,i.A)())return{src:e.url};if((0,a.isBlobURL)(e.url)||/^https?:\/\/localhost/.test(e.url)||/^https?:\/\/.*\.local\//.test(e.url)||(0,n.d9)()&&(0,n.pP)())return{src:e.url};const r=e.url.split("?",1)[0],{height:u,width:g}=e,{layoutStyle:d}=t,p=function(e){const{host:t}=new URL(e,window.location.href);return/\.files\.wordpress\.com$/.test(t)}(r)||!0===function(){if("undefined"!=typeof jetpack_plan&&"vip"===jetpack_plan.data)return!0}()?A:s.A;let m;if(c(d)&&g&&u){const e=Math.min(l.rK,g,u);m=p(r,{resize:`${e},${e}`})}else m=p(r);let h;if(c(d)){const e=Math.min(600,g,u),t=Math.min(l.rK,g,u);h=(0,o.range)(e,t,300).map((e=>{const t=p(r,{resize:`${e},${e}`,strip:"info"});return t?`${t} ${e}w`:null})).filter(Boolean).join(",")}else{const e=Math.min(600,g),t=Math.min(l.rK,g);h=(0,o.range)(e,t,300).map((e=>{const t=p(r,{strip:"info",width:e});return t?`${t} ${e}w`:null})).filter(Boolean).join(",")}return Object.assign({src:m},h&&{srcSet:h})}function A(e,t={}){const r={width:"w",height:"h",letterboxing:"lb",removeLetterboxing:"ulb"},n=Object.assign(new URL(e,window.location.href),{username:"",password:"",port:"",search:"",hash:""});for(const[e,a]of Object.entries(t))n.searchParams.set(Object.hasOwn(r,e)?r[e]:e,a);return n.toString()}},60601:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={align:{type:"string",default:"center"},className:{type:"string",default:"is-style-rectangular"},columns:{type:"number"},columnWidths:{type:"array",default:[]},ids:{type:"array",default:[]},imageFilter:{type:"string"},images:{type:"array",default:[],source:"query",selector:".tiled-gallery__item",query:{alt:{attribute:"alt",default:"",selector:"img",source:"attribute"},height:{attribute:"data-height",type:"number",selector:"img",source:"attribute"},id:{attribute:"data-id",selector:"img",source:"attribute"},link:{attribute:"data-link",selector:"img",source:"attribute"},url:{attribute:"data-url",selector:"img",source:"attribute"},width:{attribute:"data-width",selector:"img",source:"attribute",type:"number"}}},imageCrop:{type:"boolean",default:!0},linkTo:{default:"none",type:"string"},roundedCorners:{type:"integer",default:0}}},62554:(e,t,r)=>{"use strict";r.r(t),r.d(t,{attributes:()=>n.A,save:()=>o.A,supports:()=>a.A});var n=r(60601),a=r(2500),o=r(64129)},64129:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(82170),a=r(94715),o=r(90907),s=r(35463),i=r(29520),l=r(10309);function c({attributes:e}){const{imageFilter:t,images:r}=e;if(!r.length)return null;const{align:c,className:u,columns:A=(0,i.EB)(e),linkTo:g,roundedCorners:d,columnWidths:p}=e,m=a.useBlockProps.save();return(0,n.createElement)("div",m,(0,n.createElement)(l.A,{align:c,className:u,columns:A,imageFilter:t,images:r,isSave:!0,layoutStyle:(0,o.D)(s.kc,u),linkTo:g,roundedCorners:d,columnWidths:p}))}},2500:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={align:["center","wide","full"],color:{gradients:!0,text:!1},customClassName:!1,html:!1,spacing:{margin:!0,padding:!0},__experimentalHideChildBlockControls:!0}},92990:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={align:{type:"string",default:"center"},className:{type:"string",default:"is-style-rectangular"},columns:{type:"number"},columnWidths:{type:"array",default:[]},ids:{type:"array",default:[]},imageFilter:{type:"string"},images:{type:"array",default:[],source:"query",selector:".tiled-gallery__item",query:{alt:{attribute:"alt",default:"",selector:"img",source:"attribute"},height:{attribute:"data-height",type:"number",selector:"img",source:"attribute"},id:{attribute:"data-id",selector:"img",source:"attribute"},link:{attribute:"data-link",selector:"img",source:"attribute"},url:{attribute:"data-url",selector:"img",source:"attribute"},width:{attribute:"data-width",selector:"img",source:"attribute",type:"number"}}},imageCrop:{type:"boolean",default:!0},linkTo:{default:"none",type:"string"},roundedCorners:{type:"integer",default:0}}},41314:(e,t,r)=>{"use strict";r.d(t,{WN:()=>a,ZS:()=>n,aQ:()=>s,rK:()=>o});const n=20,a=20,o=2e3,s="circle"},7957:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(82170),a=r(63162),o=r(13022);function s(e){const{alt:t,imageFilter:r,height:s,id:i,link:l,linkTo:c,origUrl:u,url:A,width:g}=e;if((0,a.isBlobURL)(u))return null;let d;switch(c){case"media":d=u;break;case"attachment":d=l}const p=(0,n.createElement)("img",{alt:t,"data-height":s,"data-id":i,"data-link":l,"data-url":u,"data-width":g,src:A,"data-amp-layout":"responsive"});return(0,n.createElement)("figure",{className:(0,o.A)("tiled-gallery__item",{[`filter__${r}`]:!!r})},d?(0,n.createElement)("a",{href:d},p):p)}},59679:(e,t,r)=>{"use strict";r.r(t),r.d(t,{attributes:()=>n.A,save:()=>o.A,supports:()=>a.A});var n=r(92990),a=r(93951),o=r(91162)},89798:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(82170);function a({children:e,width:t}){const r=Math.pow(10,12),a=Math.round(t*r)/r,o=t?{flexBasis:`${a}%`}:void 0;return(0,n.createElement)("div",{className:"tiled-gallery__col",style:o},e)}},38448:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(82170);function a({children:e,galleryRef:t}){return(0,n.createElement)("div",{className:"tiled-gallery__gallery",ref:t},e)}},6454:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});var n=r(82170),a=r(86087),o=r(27723),s=r(13022),i=r(41314),l=r(7957),c=r(52537),u=r(62579),A=r(58711);const __=o.__;class g extends a.Component{renderImage(e,t){const{columns:r,imageFilter:a,images:s,isSave:i,linkTo:u,layoutStyle:A,onMoveBackward:g,onMoveForward:d,onRemoveImage:p,onSelectImage:m,selectedImage:h,setImageAttributes:E}=this.props,f=(0,o.sprintf)(/* translators: %1$d is the order number of the image, %2$d is the total number of images. */ __("image %1$d of %2$d in gallery","jetpack"),t+1,s.length),{src:C,srcSet:B}=(0,c.A)(e,{layoutStyle:A});return(0,n.createElement)(l.A,{alt:e.alt,"aria-label":f,columns:r,height:e.height,id:e.id,imageFilter:a,isFirstItem:0===t,isLastItem:t+1===s.length,isSelected:h===t,key:t,link:e.link,linkTo:u,onMoveBackward:i?void 0:g(t),onMoveForward:i?void 0:d(t),onRemove:i?void 0:p(t),onSelect:i?void 0:m(t),origUrl:e.url,setAttributes:i?void 0:E(t),showMovers:s.length>1,srcSet:B,url:C,width:e.width})}render(){const{align:e,children:t,className:r,columns:a,images:o,layoutStyle:l,roundedCorners:g,onResize:d,isSave:p,columnWidths:m}=this.props,h=(0,c.s)(l)?A.A:u.A,E=this.props.images.map(this.renderImage,this),f=l!==i.aQ?Math.min(g,i.WN):0;return(0,n.createElement)("div",{className:(0,s.A)(r,{[`has-rounded-corners-${f}`]:f>0})},(0,n.createElement)(h,{align:e,columns:a,columnWidths:p?m:void 0,images:o,layoutStyle:l,renderedImages:E,onResize:p?void 0:d}),t)}}},62579:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(82170),a=r(86087),o=r(89798),s=r(38448),i=r(26054),l=r(79167);class c extends a.Component{gallery=(0,a.createRef)();pendingRaf=null;render(){const{align:e,columns:t,images:r,layoutStyle:a,renderedImages:c,columnWidths:u}=this.props,A=(0,l.mJ)(r),g="columns"===a?(0,l.FL)(A,t):(0,l.VU)(A,{isWide:["full","wide"].includes(e)});let d=0;return(0,n.createElement)(s.A,{galleryRef:this.gallery},g.map(((e,t)=>(0,n.createElement)(i.A,{key:t},e.map(((e,r)=>{const a=c.slice(d,d+e);return d+=e,(0,n.createElement)(o.A,{key:r,width:u?.[t]?.[r]},a)}))))))}}},79167:(e,t,r)=>{"use strict";r.d(t,{FL:()=>s,VU:()=>I,mJ:()=>a});var n=r(66087);function a(e){return(0,n.map)(e,o)}function o({height:e,width:t}){return e&&t?t/e:1}function s(e,t){if(e.length<=t)return[Array(e.length).fill(1)];const r=(0,n.sum)(e)/t,a=[];let o=e,s=0;for(let e=0;e<t-1;e++){const t=(0,n.takeWhile)(o,(t=>{const n=s<=(e+1)*r;return n&&(s+=t),n})).length;a.push(t),o=(0,n.drop)(o,t)}return a.push(o.length),[a]}const i=_([2,1,2],5),l=w([Q,Q,S,Q,Q]),c=w([Q,Q,Q,S,Q,Q,Q]),u=_([3,1,3],5),A=w([S,Q,Q,S]),g=_([1,2,1],5),d=w([S,Q,Q,Q]),p=_([1,3],3),m=w([Q,Q,Q,S]),h=_([3,1],3),E=w([j(1.6),(0,n.overEvery)(x(.9),j(2)),(0,n.overEvery)(x(.9),j(2))]),f=_([1,2],3),C=_([1,1,1,1,1],1),B=_([1,1,1,1],1),b=_([1,1,1],3),k=w([(0,n.overEvery)(x(.9),j(2)),(0,n.overEvery)(x(.9),j(2)),j(1.6)]),y=_([2,1],3),v=w([function(e){return e>=2}]);function I(e,{isWide:t}={}){const r=(e,a)=>{if(!a.length)return e;let o;o=a.length>15&&l(a)&&i(e)?[2,1,2]:a.length>15&&c(a)&&u(e)?[3,1,3]:5!==a.length&&A(a)&&g(e)?[1,2,1]:d(a)&&p(e)?[1,3]:m(a)&&h(e)?[3,1]:E(a)&&f(e)?[1,2]:t&&(5===a.length||10!==a.length&&a.length>6)&&C(e)&&(0,n.sum)((0,n.take)(a,5))<5?[1,1,1,1,1]:function(e,t){const r=(0,n.sum)((0,n.take)(t,4));return B(e)&&r<3.5&&t.length>5||r<7&&4===t.length}(e,a)?[1,1,1,1]:function(e,t,r){const a=(0,n.sum)((0,n.take)(t,3));return t.length>=3&&4!==t.length&&6!==t.length&&b(e)&&(a<2.5||a<5&&t.length>=3&&t[0]===t[2]||r)}(e,a,t)?[1,1,1]:k(a)&&y(e)?[2,1]:v(a)?[1]:a.length>3?[1,1]:Array(a.length).fill(1);const s=e.concat([o]),I=(0,n.sum)(o),_=a.slice(I);return r(s,_)};return r([],e)}function _(e,t){return r=>!(0,n.some)((0,n.takeRight)(r,t),(t=>(0,n.isEqual)(t,e)))}function w(e){return t=>t.length>=e.length&&(0,n.every)((0,n.zipWith)(e,t.slice(0,e.length),((e,t)=>e(t))))}function Q(e){return e>=1&&e<2}function S(e){return e<1}function x(e){return t=>t>=e}function j(e){return t=>t<e}},26054:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(82170),a=r(13022);function o({children:e,className:t}){return(0,n.createElement)("div",{className:(0,a.A)("tiled-gallery__row",t)},e)}},58711:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(82170),a=r(66087),o=r(41314),s=r(89798),i=r(38448),l=r(26054);function c({columns:e,renderedImages:t}){const r=Math.min(o.ZS,e),c=t.length%r;return(0,n.createElement)(i.A,null,[...c?[(0,a.take)(t,c)]:[],...(0,a.chunk)((0,a.drop)(t,c),r)].map(((e,t)=>(0,n.createElement)(l.A,{key:t,className:`columns-${e.length}`},e.map(((e,t)=>(0,n.createElement)(s.A,{key:t},e)))))))}},91162:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});var n=r(96072),a=r.n(n),o=r(82170),s=r(94715),i=r(13022),l=r(90907),c=r(35463),u=r(29520),A=r(6454);function g({attributes:e}){const{imageFilter:t,images:r}=e;if(!r.length)return null;const{align:n,className:g,columns:d=(0,u.EB)(e),linkTo:p,roundedCorners:m,columnWidths:h}=e,E=s.useBlockProps.save();return(0,o.createElement)("div",a()({},E,{className:(0,i.A)(E.className,g)})," ",(0,o.createElement)(A.A,{align:n,columns:d,imageFilter:t,images:r,isSave:!0,layoutStyle:(0,l.D)(c.kc,g),linkTo:p,roundedCorners:m,columnWidths:h}))}},93951:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={align:["center","wide","full"],color:{gradients:!0,text:!1},customClassName:!1,html:!1,spacing:{margin:!0,padding:!0},__experimentalHideChildBlockControls:!0}},52537:(e,t,r)=>{"use strict";r.d(t,{A:()=>u,s:()=>c});var n=r(85985),a=r(63162),o=r(66087),s=r(14936),i=r(13087),l=r(41314);function c(e){return["circle","square"].includes(e)}function u(e,t={}){if(!e.height||!e.width)return e.url?{src:e.url}:{};if((0,i.A)())return{src:e.url};if((0,a.isBlobURL)(e.url)||/^https?:\/\/localhost/.test(e.url)||/^https?:\/\/.*\.local\//.test(e.url)||(0,n.d9)()&&(0,n.pP)())return{src:e.url};const r=e.url.split("?",1)[0],{height:u,width:g}=e,{layoutStyle:d}=t,p=function(e){const{host:t}=new URL(e,window.location.href);return/\.files\.wordpress\.com$/.test(t)}(r)||!0===function(){if("undefined"!=typeof jetpack_plan&&"vip"===jetpack_plan.data)return!0}()?A:s.A;let m;if(c(d)&&g&&u){const e=Math.min(l.rK,g,u);m=p(r,{resize:`${e},${e}`})}else m=p(r);let h;if(c(d)){const e=Math.min(600,g,u),t=Math.min(l.rK,g,u);h=(0,o.range)(e,t,300).map((e=>{const t=p(r,{resize:`${e},${e}`,strip:"info"});return t?`${t} ${e}w`:null})).filter(Boolean).join(",")}else{const e=Math.min(600,g),t=Math.min(l.rK,g);h=(0,o.range)(e,t,300).map((e=>{const t=p(r,{strip:"info",width:e});return t?`${t} ${e}w`:null})).filter(Boolean).join(",")}return Object.assign({src:m},h&&{srcSet:h})}function A(e,t={}){const r={width:"w",height:"h",letterboxing:"lb",removeLetterboxing:"ulb"},n=Object.assign(new URL(e,window.location.href),{username:"",password:"",port:"",search:"",hash:""});for(const[e,a]of Object.entries(t))n.searchParams.set(Object.hasOwn(r,e)?r[e]:e,a);return n.toString()}},29520:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>C,EB:()=>E});var n=r(82170),a=r(85985),o=r(94715),s=r(56427),i=r(43656),l=r(86087),c=r(27723),u=r(66087),A=r(90907),g=r(76585),d=r(35463),p=r(77530),m=r(10309);const __=c.__,h=3;function E(e){return e.images.length>0?Math.min(h,e.images.length):h}const f=e=>{const t=(0,u.pick)(e,[["alt"],["id"],["link"]]);return t.url=(0,u.get)(e,["sizes","large","url"])||(0,u.get)(e,["media_details","sizes","large","source_url"])||e.url,t},C=(0,s.withNotices)((({attributes:e,isSelected:t,noticeOperations:r,noticeUI:c,setAttributes:h})=>{const{align:C,columns:B=E(e),imageFilter:b,images:k,linkTo:y,roundedCorners:v,columnWidths:I}=e,_=(0,A.D)(d.kc,e.className),w=(0,o.useBlockProps)(),[Q,S]=(0,l.useState)(null),[x,j]=(0,l.useState)(void 0===I||0===I?.length),L=e=>{h({images:e,ids:e.map((({id:e})=>parseInt(e,10)))})},N=e=>{(0,i.mediaUpload)({allowedTypes:d.eN,filesList:e,onFileChange:e=>L((k||[]).concat(e.map(f))),onError:r.createErrorNotice}),j(!0)},T=e=>()=>{const t=(0,u.filter)(k,((t,r)=>e!==r));S(null),j(!0),L(t),h({columns:B?Math.min(t.length,B):B})},R=e=>()=>{Q!==e&&S(e)},P=e=>{L(e.map(f)),h({columns:B?Math.min(e.length,B):B}),j(!0)},D=(e,t)=>{const r=[...k];r.splice(t,1,k[e]),r.splice(e,1,k[t]),S(t),j(!0),L(r)},M=e=>()=>{e!==k.length-1&&D(e,e+1)},F=e=>()=>{0!==e&&D(e,e-1)},O=e=>{x&&h({columnWidths:e})},U=e=>N(e.target.files),H=e=>t=>{k[e]&&L([...k.slice(0,e),{...k[e],...t},...k.slice(e+1)])};let z;return(0,l.useEffect)((()=>{t||null===Q||S(null)}),[t,Q,S]),z=0===k.length?(0,n.createElement)(o.MediaPlaceholder,{icon:(0,a.sh)(g),labels:{title:__("Tiled Gallery","jetpack"),name:__("images","jetpack")},onSelect:P,accept:"image/*",allowedTypes:d.eN,multiple:!0,notices:c,onError:r.createErrorNotice}):(0,n.createElement)(n.Fragment,null,(0,n.createElement)(p.M,{layoutStyle:_,images:k,columns:B,onColumnsChange:e=>h({columns:e}),roundedCorners:v,onRoundedCornersChange:e=>h({roundedCorners:e}),linkTo:y,onLinkToChange:e=>h({linkTo:e})}),c,(0,n.createElement)(m.A,{className:"tiled-gallery__wrapper",align:C,columns:B,imageFilter:b,images:k,layoutStyle:_,linkTo:y,onMoveBackward:F,onMoveForward:M,onRemoveImage:T,onSelectImage:R,onResize:O,roundedCorners:v,selectedImage:t?Q:null,setImageAttributes:H},(0,n.createElement)(s.DropZone,{onFilesDrop:N}),t&&(0,n.createElement)("div",{className:"tiled-gallery__add-item"},(0,n.createElement)(s.FormFileUpload,{multiple:!0,className:"tiled-gallery__add-item-button",onChange:U,accept:"image/*",icon:"insert"},__("Upload an image","jetpack"))))),(0,n.createElement)("div",w,(0,n.createElement)(p.c,{images:k,onSelectImages:P,imageFilter:b,onFilterChange:e=>{h({imageFilter:e}),S(null)}}),z)}))},25589:(e,t,r)=>{"use strict";var n=r(74997),a=r(66087),o=r(94375),s=r(76585),i=r(10602),l=r(29520),c=r(96589);const u={align:"center",className:"is-style-rectangular",images:[{alt:"",link:"",url:r(32022),width:160,height:95},{alt:"",link:"",url:r(2369),width:160,height:107},{alt:"",link:"",url:r(24324),width:304,height:203},{alt:"",link:"",url:r(49263),width:312,height:207},{alt:"",link:"",url:r(76882),width:152,height:101},{alt:"",link:"",url:r(86781),width:152,height:105}],linkTo:"none"};function A(e){return(0,a.filter)(e,(({id:e,url:t})=>e&&t))}(0,o.M)(s,{edit:l.Ay,save:c.A,transforms:{from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],isMatch:e=>A(e).length>0,transform:e=>{const t=A(e);return(0,n.createBlock)(s.name,{images:t.map((({id:e,url:t,link:r,alt:n})=>({id:e,url:t,link:r,alt:n}))),ids:t.map((({id:e})=>e))})}},{type:"block",blocks:["core/gallery","jetpack/slideshow"],transform:({images:e})=>{const t=A(e);return t.length>0?(0,n.createBlock)(s.name,{images:t.map((({id:e,url:t,link:r,alt:n})=>({id:e,url:t,link:r,alt:n}))),ids:t.map((({id:e})=>e))}):(0,n.createBlock)(s.name)}}],to:[{type:"block",blocks:["core/gallery"],transform:({images:e,ids:t,columns:r,linkTo:a})=>(0,n.createBlock)("core/gallery",{images:e,ids:t,columns:r,imageCrop:!0,linkTo:a})},{type:"block",blocks:["core/image"],transform:({align:e,images:t})=>t.length>0?t.map((({id:t,url:r,alt:a})=>(0,n.createBlock)("core/image",{align:e,id:t,url:r,alt:a}))):(0,n.createBlock)("core/image")}]},providesContext:{imageCrop:"imageCrop"},deprecated:i.A,example:{attributes:u}})},2164:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(82170),a=r(56427),o=r(27723);const __=o.__,_x=o._x,s=[{icon:(0,n.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,n.createElement)(a.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,n.createElement)(a.Path,{d:"M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"})),title:_x("Original","image style","jetpack"),value:void 0},{icon:(0,n.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,n.createElement)(a.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,n.createElement)(a.Path,{d:"M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm11 10h2V5h-4v2h2v8zm7-14H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"})),title:_x("Black and White","image style","jetpack"),value:"black-and-white"},{icon:(0,n.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,n.createElement)(a.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,n.createElement)(a.Path,{d:"M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zm-4-4h-4v-2h2c1.1 0 2-.89 2-2V7c0-1.11-.9-2-2-2h-4v2h4v2h-2c-1.1 0-2 .89-2 2v4h6v-2z"})),title:_x("Sepia","image style","jetpack"),value:"sepia"},{icon:(0,n.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,n.createElement)(a.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,n.createElement)(a.Path,{d:"M21 1H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zM3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm14 8v-1.5c0-.83-.67-1.5-1.5-1.5.83 0 1.5-.67 1.5-1.5V7c0-1.11-.9-2-2-2h-4v2h4v2h-2v2h2v2h-4v2h4c1.1 0 2-.89 2-2z"})),title:"1977",value:"1977"},{icon:(0,n.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,n.createElement)(a.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,n.createElement)(a.Path,{d:"M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm12 10h2V5h-2v4h-2V5h-2v6h4v4zm6-14H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"})),title:_x("Clarendon","image style","jetpack"),value:"clarendon"},{icon:(0,n.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,n.createElement)(a.Path,{fill:"none",d:"M0 0h24v24H0z"}),(0,n.createElement)(a.Path,{d:"M21 1H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zM3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm14 8v-2c0-1.11-.9-2-2-2h-2V7h4V5h-6v6h4v2h-4v2h4c1.1 0 2-.89 2-2z"})),title:_x("Gingham","image style","jetpack"),value:"gingham"}],i=__("Pick an image filter","jetpack");function l({value:e,onChange:t}){return(0,n.createElement)(a.Dropdown,{placement:"bottom-start",className:"editor-block-switcher",contentClassName:"editor-block-switcher__popover",renderToggle:({onToggle:e,isOpen:t})=>(0,n.createElement)(a.Toolbar,{controls:[{onClick:e,extraProps:{"aria-haspopup":"true","aria-expanded":t},title:i,tooltip:i,icon:(0,n.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,n.createElement)(a.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,n.createElement)(a.Path,{d:"M19 10v9H4.98V5h9V3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-9h-2zm-2.94-2.06L17 10l.94-2.06L20 7l-2.06-.94L17 4l-.94 2.06L14 7zM12 8l-1.25 2.75L8 12l2.75 1.25L12 16l1.25-2.75L16 12l-2.75-1.25z"}))}]}),renderContent:({onClose:r})=>(0,n.createElement)(a.NavigableMenu,{className:"tiled-gallery__filter-picker-menu"},s.map((({icon:o,title:s,value:i})=>{return(0,n.createElement)(a.MenuItem,{className:e===i?"is-active":void 0,icon:o,isSelected:e===i,key:i||"original",onClick:(l=i,()=>{t(e===l?void 0:l),r()}),role:"menuitemcheckbox"},s);var l})))})}},26539:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n=r(82170),a=r(63162),o=r(56427),s=r(47143),i=r(86087),l=r(27723),c=r(48558),u=r(13022),A=r(18076);const __=l.__;class g extends i.Component{img=(0,i.createRef)();onImageClick=()=>{this.props.isSelected||this.props.onSelect()};onImageKeyDown=e=>{this.img.current&&this.img.current===this.img.current.ownerDocument.activeElement&&this.props.isSelected&&[c.BACKSPACE,c.DELETE].includes(e.keyCode)&&this.props.onRemove()};componentDidUpdate(){const{alt:e,height:t,image:r,link:n,url:a,width:o}=this.props;if(r){const s={};!e&&r.alt_text&&(s.alt=r.alt_text),!t&&r.media_details&&r.media_details.height&&(s.height=+r.media_details.height),!n&&r.link&&(s.link=r.link),!a&&r.source_url&&(s.url=r.source_url),!o&&r.media_details&&r.media_details.width&&(s.width=+r.media_details.width),Object.keys(s).length&&this.props.setAttributes(s)}}render(){const{"aria-label":e,alt:t,columns:r,height:s,id:l,imageFilter:c,isFirstItem:g,isLastItem:d,isSelected:p,link:m,linkTo:h,onMoveBackward:E,onMoveForward:f,onRemove:C,origUrl:B,showMovers:b,srcSet:k,url:y,width:v}=this.props;let I;switch(h){case"media":I=B;break;case"attachment":I=m}const _=(0,a.isBlobURL)(B),w=(0,n.createElement)(i.Fragment,null,(0,n.createElement)("img",{alt:t,"aria-label":e,"data-height":s,"data-id":l,"data-link":m,"data-url":B,"data-width":v,onClick:this.onImageClick,onKeyDown:this.onImageKeyDown,ref:this.img,src:_?void 0:y,srcSet:_?void 0:k,tabIndex:"0",style:_?{backgroundImage:`url(${B})`}:void 0}),_&&(0,n.createElement)(o.Spinner,null));return(0,n.createElement)("figure",{className:(0,u.A)("tiled-gallery__item",{"is-selected":p,"is-transient":_,[`filter__${c}`]:!!c})},b&&(0,n.createElement)("div",{className:"tiled-gallery__item__move-menu"},(0,n.createElement)(o.Button,{icon:1===r?A.Lo:A.Nd,onClick:g?void 0:E,className:"tiled-gallery__item__move-backward",label:__("Move image backward","jetpack"),"aria-disabled":g,disabled:!p}),(0,n.createElement)(o.Button,{icon:1===r?A.W4:A.Gy,onClick:d?void 0:f,className:"tiled-gallery__item__move-forward",label:__("Move image forward","jetpack"),"aria-disabled":d,disabled:!p})),(0,n.createElement)("div",{className:"tiled-gallery__item__inline-menu"},(0,n.createElement)(o.Button,{icon:A.VN,onClick:C,className:"tiled-gallery__item__remove",label:__("Remove image","jetpack"),disabled:!p})),I?(0,n.createElement)("a",null,w):w)}}const d=(0,s.withSelect)(((e,t)=>{const{getMedia:r}=e("core"),{id:n}=t;return{image:n?r(n):null}}))(g)},60918:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(82170),a=r(63162),o=r(13022);function s(e){const{"aria-label":t,alt:r,imageFilter:s,height:i,id:l,link:c,linkTo:u,origUrl:A,url:g,width:d}=e;if((0,a.isBlobURL)(A))return null;let p;switch(u){case"media":p=A;break;case"attachment":p=c}const m=(0,n.createElement)("img",{alt:r,"data-height":i,"data-id":l,"data-link":c,"data-url":A,"data-width":d,src:g,"data-amp-layout":"responsive",tabIndex:0,role:"button","aria-label":t});return(0,n.createElement)("figure",{className:(0,o.A)("tiled-gallery__item",{[`filter__${s}`]:!!s})},p?(0,n.createElement)("a",{href:p},m):m)}},18076:(e,t,r)=>{"use strict";r.d(t,{Gy:()=>s,Lo:()=>l,Nd:()=>o,VN:()=>c,W4:()=>i});var n=r(82170),a=r(56427);const o=(0,n.createElement)(a.SVG,{width:"18",height:"18",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg"},(0,n.createElement)(a.Path,{d:"M5 8.70002L10.6 14.4L12 12.9L7.8 8.70002L12 4.50002L10.6 3.00002L5 8.70002Z"})),s=(0,n.createElement)(a.SVG,{width:"18",height:"18",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg"},(0,n.createElement)(a.Path,{d:"M13 8.7L7.4 3L6 4.5L10.2 8.7L6 12.9L7.4 14.4L13 8.7Z"})),i=(0,n.createElement)(a.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,n.createElement)(a.Path,{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z"})),l=(0,n.createElement)(a.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,n.createElement)(a.Path,{d:"M12,8l-6,6l1.41,1.41L12,10.83l4.59,4.58L18,14L12,8z"})),c=(0,n.createElement)(a.SVG,{width:"18",height:"18",viewBox:"-2 -2 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,n.createElement)(a.Path,{d:"M14.95 6.46L11.41 10l3.54 3.54-1.41 1.41L10 11.42l-3.53 3.53-1.42-1.42L8.58 10 5.05 6.47l1.42-1.42L10 8.58l3.54-3.53z"}))},98627:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(82170);function a({children:e,width:t}){const r=t?{flexBasis:`${t}%`}:void 0;return(0,n.createElement)("div",{className:"tiled-gallery__col",style:r},e)}},54359:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(82170);function a({children:e,galleryRef:t}){return(0,n.createElement)("div",{className:"tiled-gallery__gallery",ref:t},e)}},10309:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n=r(82170),a=r(86087),o=r(27723),s=r(13022),i=r(35463),l=r(26539),c=r(60918),u=r(90256),A=r(31238),g=r(56366);const __=o.__;class d extends a.Component{renderImage(e,t){const{columns:r,imageFilter:a,images:s,isSave:i,linkTo:A,layoutStyle:g,onMoveBackward:d,onMoveForward:p,onRemoveImage:m,onSelectImage:h,selectedImage:E,setImageAttributes:f}=this.props,C=(0,o.sprintf)(/* translators: %1$d is the order number of the image, %2$d is the total number of images. */ __("Open image %1$d of %2$d in full-screen","jetpack"),t+1,s.length),B=i?c.A:l.A,{src:b,srcSet:k}=(0,u.A)(e,{layoutStyle:g});return(0,n.createElement)(B,{alt:e.alt,"aria-label":C,columns:r,height:e.height,id:e.id,imageFilter:a,isFirstItem:0===t,isLastItem:t+1===s.length,isSelected:E===t,key:t,link:e.link,linkTo:A,onMoveBackward:i?void 0:d(t),onMoveForward:i?void 0:p(t),onRemove:i?void 0:m(t),onSelect:i?void 0:h(t),origUrl:e.url,setAttributes:i?void 0:f(t),showMovers:s.length>1,srcSet:k,url:b,width:e.width})}render(){const{align:e,children:t,className:r,columns:a,images:o,layoutStyle:l,roundedCorners:c,onResize:d,style:p,isSave:m,columnWidths:h}=this.props,E=(0,u.s)(l)?g.A:A.A,f=this.props.images.map(this.renderImage,this),C=l!==i.aQ?Math.min(c,i.WN):0;return(0,n.createElement)("div",{style:p,className:(0,s.A)(r,{[`has-rounded-corners-${C}`]:C>0})},(0,n.createElement)(E,{align:e,columns:a,columnWidths:m?h:void 0,images:o,layoutStyle:l,renderedImages:f,onResize:m?void 0:d}),t)}}},31238:(e,t,r)=>{"use strict";r.d(t,{A:()=>A});var n=r(82170),a=r(86087),o=r(94107),s=r(98627),i=r(54359),l=r(43645),c=r(74176),u=r(18980);class A extends a.Component{gallery=(0,a.createRef)();pendingRaf=null;ro=null;componentDidMount(){this.observeResize()}componentWillUnmount(){this.unobserveResize()}componentDidUpdate(e){(e.images!==this.props.images||e.align!==this.props.align||"columns"===this.props.layoutStyle&&e.columns!==this.props.columns)&&this.triggerResize()}handleGalleryResize=e=>{this.pendingRaf&&(cancelAnimationFrame(this.pendingRaf),this.pendingRaf=null),this.pendingRaf=requestAnimationFrame((()=>{for(const{contentRect:t,target:r}of e){const{width:e}=t,n=[];(0,u.S)(r).forEach((t=>{n.push((0,u.r)(t,e))})),void 0!==this.props.onResize&&this.props.onResize(n)}}))};triggerResize(){this.gallery.current&&this.handleGalleryResize([{target:this.gallery.current,contentRect:{width:this.gallery.current.clientWidth}}])}observeResize(){this.triggerResize(),this.ro=new o.A(this.handleGalleryResize),this.gallery.current&&this.ro.observe(this.gallery.current)}unobserveResize(){this.ro&&(this.ro.disconnect(),this.ro=null),this.pendingRaf&&(cancelAnimationFrame(this.pendingRaf),this.pendingRaf=null)}getColumnWidths(e,t,r){let n=0;return e.map((e=>e.map((e=>{const r=t.slice(n,n+e);return n+=e,r})))).map((e=>(0,u.r)(e,r)))}render(){const{align:e,columns:t,images:r,layoutStyle:o,renderedImages:u}=this.props,A=(0,c.mJ)(r),g="columns"===o?(0,c.FL)(A,t):(0,c.VU)(A,{isWide:["full","wide"].includes(e)}),d=a.Platform.select({web:()=>this.props.columnWidths,native:()=>this.getColumnWidths(g,u,1e3)})();let p=0;return(0,n.createElement)(i.A,{galleryRef:this.gallery},g.map(((e,t)=>(0,n.createElement)(l.A,{key:t},e.map(((e,r)=>{const a=u.slice(p,p+e);return p+=e,(0,n.createElement)(s.A,{key:r,width:d?.[t]?.[r]},a)}))))))}}},74176:(e,t,r)=>{"use strict";r.d(t,{FL:()=>s,VU:()=>I,mJ:()=>a});var n=r(66087);function a(e){return(0,n.map)(e,o)}function o({height:e,width:t}){return e&&t?t/e:1}function s(e,t){if(e.length<=t)return[Array(e.length).fill(1)];const r=(0,n.sum)(e)/t,a=[];let o=e,s=0;for(let e=0;e<t-1;e++){const t=(0,n.takeWhile)(o,(t=>{const n=s<=(e+1)*r;return n&&(s+=t),n})).length;a.push(t),o=(0,n.drop)(o,t)}return a.push(o.length),[a]}const i=_([2,1,2],5),l=w([Q,Q,S,Q,Q]),c=w([Q,Q,Q,S,Q,Q,Q]),u=_([3,1,3],5),A=w([S,Q,Q,S]),g=_([1,2,1],5),d=w([S,Q,Q,Q]),p=_([1,3],3),m=w([Q,Q,Q,S]),h=_([3,1],3),E=w([j(1.6),(0,n.overEvery)(x(.9),j(2)),(0,n.overEvery)(x(.9),j(2))]),f=_([1,2],3),C=_([1,1,1,1,1],1),B=_([1,1,1,1],1),b=_([1,1,1],3),k=w([(0,n.overEvery)(x(.9),j(2)),(0,n.overEvery)(x(.9),j(2)),j(1.6)]),y=_([2,1],3),v=w([function(e){return e>=2}]);function I(e,{isWide:t}={}){const r=(e,a)=>{if(!a.length)return e;let o;o=a.length>15&&l(a)&&i(e)?[2,1,2]:a.length>15&&c(a)&&u(e)?[3,1,3]:5!==a.length&&A(a)&&g(e)?[1,2,1]:d(a)&&p(e)?[1,3]:m(a)&&h(e)?[3,1]:E(a)&&f(e)?[1,2]:t&&(5===a.length||10!==a.length&&a.length>6)&&C(e)&&(0,n.sum)((0,n.take)(a,5))<5?[1,1,1,1,1]:function(e,t){const r=(0,n.sum)((0,n.take)(t,4));return B(e)&&r<3.5&&t.length>5||r<7&&4===t.length}(e,a)?[1,1,1,1]:function(e,t,r){const a=(0,n.sum)((0,n.take)(t,3));return t.length>=3&&4!==t.length&&6!==t.length&&b(e)&&(a<2.5||a<5&&t.length>=3&&t[0]===t[2]||r)}(e,a,t)?[1,1,1]:k(a)&&y(e)?[2,1]:v(a)?[1]:a.length>3?[1,1]:Array(a.length).fill(1);const s=e.concat([o]),I=(0,n.sum)(o),_=a.slice(I);return r(s,_)};return r([],e)}function _(e,t){return r=>!(0,n.some)((0,n.takeRight)(r,t),(t=>(0,n.isEqual)(t,e)))}function w(e){return t=>t.length>=e.length&&(0,n.every)((0,n.zipWith)(e,t.slice(0,e.length),((e,t)=>e(t))))}function Q(e){return e>=1&&e<2}function S(e){return e<1}function x(e){return t=>t>=e}function j(e){return t=>t<e}},18980:(e,t,r)=>{"use strict";r.d(t,{S:()=>s,r:()=>o});var n=r(35463);function a(e,t){const r=(t-e.reduce(((e,t)=>e+t),0))/e.length;return e.map((e=>e+r))}function o(e,t){return function(e,[t,r],o){const s=1/t*(o-n.hE*(e.childElementCount-1)-r);return function(e,{rawHeight:t,rowWidth:r}){const o=i(e),s=o.map((e=>(t-n.hE*(e.childElementCount-1))*c(e)[0])),A=a(s,r);o.forEach(((e,r)=>{const o=s[r],i=A[r];!function(e,{colHeight:t,width:r,rawWidth:n}){const o=l(e).map((e=>n/u(e))),s=a(o,t);Array.from(e.children).forEach(((e,t)=>{const n=s[t];e.setAttribute("style",`height:${n}px;width:${r}px;`)}))}(e,{colHeight:t-n.hE*(e.childElementCount-1),width:i,rawWidth:o})}));return A.map((e=>parseFloat(e/r*100).toFixed(5)))}(e,{rawHeight:s,rowWidth:o-n.hE*(e.childElementCount-1)})}(e,function(e){const t=i(e).map(c).reduce((([e,t],[r,n])=>[e+r,t+n]),[0,0]);return t}(e),t)}function s(e){return Array.from(e.querySelectorAll(".tiled-gallery__row"))}function i(e){return Array.from(e.querySelectorAll(".tiled-gallery__col"))}function l(e){return Array.from(e.querySelectorAll(".tiled-gallery__item > img, .tiled-gallery__item > a > img"))}function c(e){const t=l(e),r=t.length,n=1/t.map(u).reduce(((e,t)=>e+1/t),0);return[n,n*r||1]}function u(e){const t=parseInt(e.dataset.width,10),r=parseInt(e.dataset.height,10);return t&&!Number.isNaN(t)&&r&&!Number.isNaN(r)?t/r:1}},43645:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(82170),a=r(13022);function o({children:e,className:t}){return(0,n.createElement)("div",{className:(0,a.A)("tiled-gallery__row",t)},e)}},56366:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(82170),a=r(66087),o=r(35463),s=r(98627),i=r(54359),l=r(43645);function c({columns:e,renderedImages:t}){const r=Math.min(o.ZS,e),c=t.length%r;return(0,n.createElement)(i.A,null,[...c?[(0,a.take)(t,c)]:[],...(0,a.chunk)((0,a.drop)(t,c),r)].map(((e,t)=>(0,n.createElement)(l.A,{key:t,className:`columns-${e.length}`},e.map(((e,t)=>(0,n.createElement)(s.A,{key:t},e)))))))}},9888:(e,t,r)=>{"use strict";function n(e){return["columns","circle","square"].includes(e)}r.d(t,{o:()=>n})},96589:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});var n=r(96072),a=r.n(n),o=r(82170),s=r(94715),i=r(13022),l=r(90907),c=r(35463),u=r(29520),A=r(10309);function g({attributes:e}){const{imageFilter:t,images:r}=e;if(!r.length)return null;const{align:n,className:g,columns:d=(0,u.EB)(e),linkTo:p,roundedCorners:m,columnWidths:h}=e,E=s.useBlockProps.save();return(0,o.createElement)("div",a()({},E,{className:(0,i.A)(E.className,g)}),(0,o.createElement)(A.A,{align:n,columns:d,imageFilter:t,images:r,isSave:!0,layoutStyle:(0,l.D)(c.kc,g),linkTo:p,roundedCorners:m,columnWidths:h}))}},90256:(e,t,r)=>{"use strict";r.d(t,{A:()=>u,s:()=>c});var n=r(85985),a=r(63162),o=r(66087),s=r(14936),i=r(13087),l=r(35463);function c(e){return["circle","square"].includes(e)}function u(e,t={}){if(!e.height||!e.width)return e.url?{src:e.url}:{};if((0,i.A)())return{src:e.url};if((0,a.isBlobURL)(e.url)||/^https?:\/\/localhost/.test(e.url)||/^https?:\/\/.*\.local\//.test(e.url)||(0,n.d9)()&&(0,n.pP)())return{src:e.url};const r=e.url.split("?",1)[0],{height:u,width:g}=e,{layoutStyle:d}=t,p=!0===function(){if("undefined"!=typeof jetpack_plan&&"vip"===jetpack_plan.data)return!0}()||(0,n.Sy)()?A:s.A;let m;if(c(d)&&g&&u){const e=Math.min(l.rK,g,u);m=p(r,{resize:`${e},${e}`})}else m=p(r);let h;if(c(d)){const e=Math.min(600,g,u),t=Math.min(l.rK,g,u);h=(0,o.range)(e,t,300).map((e=>{const t=p(r,{resize:`${e},${e}`,strip:"info"});return t?`${t} ${e}w`:null})).filter(Boolean).join(",")}else{const e=Math.min(600,g),t=Math.min(l.rK,g);h=(0,o.range)(e,t,300).map((e=>{const t=p(r,{strip:"info",width:e});return t?`${t} ${e}w`:null})).filter(Boolean).join(",")}return Object.assign({src:m},h&&{srcSet:h})}function A(e,t={}){const r={width:"w",height:"h",letterboxing:"lb",removeLetterboxing:"ulb"},n=Object.assign(new URL(e,window.location.href),{username:"",password:"",port:"",search:"",hash:""});for(const[e,a]of Object.entries(t))n.searchParams.set(Object.hasOwn(r,e)?r[e]:e,a);return n.toString()}},40118:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});var n=r(82170),a=r(94715),o=r(56427),s=r(86087),i=r(27723),l=r(76277),c=r(48558);const __=i.__,u=({tockUrl:e,setEditedUrl:t,setUrl:r,cancel:a})=>{const i=(0,s.useRef)(!0),u=(0,s.useRef)(!1),A=e=>{r(),u.current=!0,e()};return(0,n.createElement)(o.ToolbarGroup,null,(0,n.createElement)(o.Dropdown,{popoverProps:{variant:"toolbar"},onClose:()=>u.current?u.current=!1:a(),placement:"bottom-start",renderToggle:({isOpen:t,onToggle:r})=>(!i.current||t||e||(i.current=!1,r()),(0,n.createElement)(o.ToolbarButton,{className:"components-toolbar__control",label:__("Edit Tock business name","jetpack"),onClick:()=>{r(),t&&a()}},__("Edit","jetpack"))),renderContent:({onClose:r})=>(0,n.createElement)(o.BaseControl,{className:"jetpack-tock-url-settings",help:(0,s.createInterpolateElement)(__("The Tock business can be found in the URL of your public Tock page. For example: www.exploretock.com/<b>myname</b>","jetpack"),{b:(0,n.createElement)("strong",null)}),__nextHasNoMarginBottom:!0},(0,n.createElement)("div",{className:"jetpack-tock-url-input-wrapper"},(0,n.createElement)(o.TextControl,{placeholder:__("Add Tock business name","jetpack"),onChange:t,value:e,onKeyDownCapture:t=>((t,r)=>{const{keyCode:n}=t;n===c.ENTER&&""!==e&&(t.preventDefault(),A(r)),n===c.ESCAPE&&(t.preventDefault(),a(),r())})(t,r),className:"jetpack-tock-url-input",__nextHasNoMarginBottom:!0}),(0,n.createElement)("div",{className:"jetpack-tock-url-input-action"},(0,n.createElement)(o.Button,{type:"submit",label:__("Submit","jetpack"),icon:l.A,className:"jetpack-tock-url-input-submit",onClick:()=>A(r)}))))}))},A=({url:e,popoverAnchor:t})=>{const r=`\n\t\t<div id="Tock_widget_container" data-tock-display-mode="Button" data-tock-color-mode="Blue" data-tock-locale="en-us" data-tock-timezone="America/New_York" style="display:inline-block;"></div>\n\t\t<script src="https://www.exploretock.com/tock.js" async><\/script>\n\t\t<script>\n\t\t\t!function(t,o){if(!t.tock){var e=t.tock=function(){e.callMethod?\n\t\t\t e.callMethod.apply(e,arguments):e.queue.push(arguments)};t._tock||(t._tock=e),\n\t\t\t e.push=e,e.loaded=!0,e.version='1.0',e.queue=[];}}(window,document);\n\t\t\ttock('init', '${e}');\n\t\t<\/script>\n\t`;return(0,n.createElement)("div",{ref:t},(0,n.createElement)(o.SandBox,{html:r,key:`tock-${e}`}),(0,n.createElement)("div",{className:"block-library-embed__interactive-overlay"}))};function g({attributes:e,setAttributes:t,isSelected:r}){const o=e.url??"",[i,l]=(0,s.useState)(o),c=(0,s.useCallback)((()=>{l(o)}),[o]);return(0,s.useEffect)((()=>{r||c()}),[r,c]),(0,n.createElement)("div",(0,a.useBlockProps)(),(0,n.createElement)(a.BlockControls,null,(0,n.createElement)(u,{tockUrl:i,setEditedUrl:l,setUrl:()=>{const e=i.replace(/.*exploretock.com\//,"");l(e),t({url:e})},cancel:c})),(0,n.createElement)(A,{url:o}))}},4595:(e,t,r)=>{"use strict";var n=r(82170),a=r(94375),o=r(86525),s=r(40118);(0,a.M)(o,{edit:s.A,save:()=>(0,n.createElement)("div",{id:"Tock_widget_container","data-tock-display-mode":"Button","data-tock-color-mode":"Blue","data-tock-locale":"en-us","data-tock-timezone":"America/New_York"})})},81837:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o,f:()=>s});var n=r(82170),a=r(86087);const o=(0,a.createContext)(),s=({onFilesSelected:e,onMediaItemSelected:t,onUploadFinished:r,children:a})=>(0,n.createElement)(o.Provider,{value:{onFilesSelected:e,onMediaItemSelected:t,onUploadFinished:r},children:a})},74628:(e,t,r)=>{"use strict";r.d(t,{C1:()=>n,NF:()=>a});const n=[{ratio:"2.33",className:"wp-embed-aspect-21-9"},{ratio:"2.00",className:"wp-embed-aspect-18-9"},{ratio:"1.77",className:"wp-embed-aspect-16-9"},{ratio:"1.33",className:"wp-embed-aspect-4-3"},{ratio:"1.00",className:"wp-embed-aspect-1-1"},{ratio:"0.56",className:"wp-embed-aspect-9-16"},{ratio:"0.50",className:"wp-embed-aspect-1-2"}],a={PUBLIC:0,PRIVATE:1,SITE_DEFAULT:2}},59257:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={attributes:{autoplay:{type:"boolean"},caption:{type:"string",source:"html",selector:"figcaption"},controls:{type:"boolean",default:!0},guid:{type:"string"},id:{type:"number"},loop:{type:"boolean"},muted:{type:"boolean"},poster:{type:"string"},preload:{type:"string",default:"metadata"},src:{type:"string"}},support:{reusable:!1},save:r(12804).A,isDeprecation:!0}},12804:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(82170),a=r(94715);function o({attributes:e}){const{caption:t,guid:r}=e;if(!r)return null;const o=`https://videopress.com/v/${r}`;return(0,n.createElement)("figure",{className:"wp-block-embed is-type-video is-provider-videopress"},(0,n.createElement)("div",{className:"wp-block-embed__wrapper"},`\n${o}\n`),!a.RichText.isEmpty(t)&&(0,n.createElement)(a.RichText.Content,{tagName:"figcaption",value:t}))}},21440:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(69479),a=r(31481);const o={attributes:{autoplay:{type:"boolean"},caption:{type:"string",source:"html",selector:"figcaption"},controls:{type:"boolean",default:!0},guid:{type:"string"},id:{type:"number"},loop:{type:"boolean"},muted:{type:"boolean"},playsInline:{type:"boolean"},poster:{type:"string"},preload:{type:"string",default:"metadata"},src:{type:"string"},videoPressClassNames:{type:"string"},align:{type:"wide"}},support:{reusable:!1},isEligible:({videoPressClassNames:e,guid:t})=>t&&void 0===e,migrate:e=>{const{className:t,videoPressClassNames:r}=e;return{...e,...(0,a.j)(t,r)}},save:n.A,isDeprecation:!0}},69479:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(82170),a=r(94715),o=r(77473);function s(e){const{attributes:{autoplay:t,caption:r,controls:s,guid:i,loop:l,muted:c,poster:u,preload:A,videoPressClassNames:g}={}}=e;if(!i)return null;const d=(0,o.e)(i,{autoplay:t,controls:s,loop:l,muted:c,poster:u,preload:A});return(0,n.createElement)("figure",{className:g},(0,n.createElement)("div",{className:"wp-block-embed__wrapper"},`\n${d}\n`),!a.RichText.isEmpty(r)&&(0,n.createElement)(a.RichText.Content,{tagName:"figcaption",value:r}))}},77473:(e,t,r)=>{"use strict";r.d(t,{e:()=>a});var n=r(93832);const a=(e,{autoplay:t,controls:r,loop:a,muted:o,poster:s,preload:i})=>{if(!e)return null;const l={...t&&{autoPlay:!0},...!r&&{controls:!1},...a&&{loop:!0},...o&&{muted:!0,persistVolume:!1},...s&&{posterUrl:s},..."none"!==i&&{preloadContent:i}};return(0,n.addQueryArgs)(`https://videopress.com/v/${e}`,l)}},31481:(e,t,r)=>{"use strict";r.d(t,{j:()=>s});var n=r(36536),a=r.n(n);const o=[{ratio:"2.33",className:"wp-embed-aspect-21-9"},{ratio:"2.00",className:"wp-embed-aspect-18-9"},{ratio:"1.77",className:"wp-embed-aspect-16-9"},{ratio:"1.33",className:"wp-embed-aspect-4-3"},{ratio:"1.00",className:"wp-embed-aspect-1-1"},{ratio:"0.56",className:"wp-embed-aspect-9-16"},{ratio:"0.50",className:"wp-embed-aspect-1-2"}],s=(e,t)=>{const r=o.map((e=>e.className)),n=new(a())(e);n.remove(...r,"wp-block-embed","is-type-video","is-provider-videopress");const s=new(a())(e);return s.add(t),s.remove(...n),{className:n.value,videoPressClassNames:s.value}}},54727:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={attributes:{autoplay:{type:"boolean"},caption:{type:"string",source:"html",selector:"figcaption"},controls:{type:"boolean",default:!0},guid:{type:"string"},id:{type:"number"},loop:{type:"boolean"},muted:{type:"boolean"},playsinline:{type:"boolean"},poster:{type:"string"},preload:{type:"string",default:"metadata"},seekbarPlayedColor:{type:"string",default:""},seekbarLoadingColor:{type:"string",default:""},seekbarColor:{type:"string",default:""},src:{type:"string"},videoPressClassNames:{type:"string"}},support:{reusable:!1},isEligible:e=>e.guid,save:r(31618).A,isDeprecation:!0}},31618:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(82170),a=r(94715),o=r(13022),s=r(70222);function i(e){const{attributes:{autoplay:t,caption:r,controls:i,guid:l,loop:c,muted:u,playsinline:A,poster:g,preload:d,videoPressClassNames:p,className:m,align:h,seekbarColor:E,seekbarPlayedColor:f,seekbarLoadingColor:C}={}}=e,B=a.useBlockProps.save({className:(0,o.A)("wp-block-video",m,p,{[`align${h}`]:h})}),b=(0,s.e)(l,{autoplay:t,controls:i,loop:c,muted:u,playsinline:A,poster:g,preload:d,seekbarColor:E,seekbarPlayedColor:f,seekbarLoadingColor:C});return(0,n.createElement)("figure",B,(0,n.createElement)("div",{className:"wp-block-embed__wrapper"},`\n${b}\n`),!a.RichText.isEmpty(r)&&(0,n.createElement)(a.RichText.Content,{tagName:"figcaption",value:r}))}},70222:(e,t,r)=>{"use strict";r.d(t,{e:()=>a});var n=r(93832);const a=(e,{autoplay:t,controls:r,loop:a,muted:o,playsinline:s,poster:i,preload:l,seekbarColor:c,seekbarPlayedColor:u,seekbarLoadingColor:A})=>{if(!e)return null;const g={resizeToParent:!0,...t&&{autoPlay:!0},...!r&&{controls:!1},...a&&{loop:!0},...o&&{muted:!0,persistVolume:!1},...s&&{playsinline:!0},...i&&{posterUrl:i},..."none"!==l&&{preloadContent:l},...""!==c&&{sbc:c},...""!==u&&{sbpc:u},...""!==A&&{sblc:A}};return(0,n.addQueryArgs)(`https://videopress.com/v/${e}`,g)}},65390:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={attributes:{autoplay:{type:"boolean"},caption:{type:"string",source:"html",selector:"figcaption"},controls:{type:"boolean",default:!0},maxWidth:{type:"string",default:"100%"},guid:{type:"string"},id:{type:"number"},loop:{type:"boolean"},isVideoPressExample:{type:"boolean",default:!1},muted:{type:"boolean"},playsinline:{type:"boolean"},poster:{type:"string"},preload:{type:"string",default:"metadata"},seekbarPlayedColor:{type:"string",default:""},seekbarLoadingColor:{type:"string",default:""},seekbarColor:{type:"string",default:""},src:{type:"string"},videoPressTracks:{type:"array",items:{type:"object"},default:[]},videoPressClassNames:{type:"string"}},support:{reusable:!1},isEligible:e=>e.guid,migrate:e=>({...e,useAverageColor:!1}),save:r(84229).A,isDeprecation:!0}},84229:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(82170),a=r(94715),o=r(13022),s=r(32228);function i(e){const{attributes:{autoplay:t,caption:r,controls:i,guid:l,loop:c,muted:u,playsinline:A,poster:g,preload:d,videoPressClassNames:p,className:m,align:h,seekbarColor:E,seekbarPlayedColor:f,seekbarLoadingColor:C,maxWidth:B}={}}=e,b=a.useBlockProps.save({className:(0,o.A)("wp-block-video",m,p,{[`align${h}`]:h})}),k=(0,s.e)(l,{autoplay:t,controls:i,loop:c,muted:u,playsinline:A,poster:g,preload:d,seekbarColor:E,seekbarPlayedColor:f,seekbarLoadingColor:C});let y={};return B&&B.length>0&&"100%"!==B&&(y={maxWidth:B,margin:"auto"}),(0,n.createElement)("figure",b,(0,n.createElement)("div",{className:"wp-block-embed__wrapper",style:y},`\n${k}\n`),!a.RichText.isEmpty(r)&&(0,n.createElement)(a.RichText.Content,{tagName:"figcaption",value:r}))}},32228:(e,t,r)=>{"use strict";r.d(t,{e:()=>a});var n=r(93832);const a=(e,{autoplay:t,controls:r,loop:a,muted:o,playsinline:s,poster:i,preload:l,seekbarColor:c,seekbarPlayedColor:u,seekbarLoadingColor:A})=>{if(!e)return null;const g={resizeToParent:!0,cover:!0,...t&&{autoPlay:!0},...!r&&{controls:!1},...a&&{loop:!0},...o&&{muted:!0,persistVolume:!1},...s&&{playsinline:!0},...i&&{posterUrl:i},..."none"!==l&&{preloadContent:l},...""!==c&&{sbc:c},...""!==u&&{sbpc:u},...""!==A&&{sblc:A}};return(0,n.addQueryArgs)(`https://videopress.com/v/${e}`,g)}},77189:(e,t,r)=>{"use strict";r.d(t,{A:()=>L});var n=r(96072),a=r.n(n),o=r(82170),s=r(1455),i=r.n(s),l=r(63162),c=r(94715),u=r(56427),A=r(29491),g=r(47143),d=r(86087),p=r(89877),m=r(27723),h=r(51113),E=r(13022),f=r(66087),C=r(12199),B=r(81837),b=r(74628),k=r(90781),y=r(76212),v=r(57954),I=r(96247),_=r(22857),w=r(17900),Q=r(47960);const __=m.__,_x=m._x,S=["image"],x=e=>{const t=(0,c.useBlockProps)({className:"resumable-upload"}),{onChangeTitle:r,title:n,filename:a,onSelectPoster:s,onRemovePoster:i,videoPosterImageData:l,fileForUpload:p,isUploadComplete:m,onDismissEditor:E,onSave:f,onVideoFrameSelected:b}=e,k=(0,g.useSelect)((e=>e("core/editor").isSavingPost()),[]),v=(0,A.usePrevious)(k);return(0,d.useEffect)((()=>{k&&!v&&f()}),[k,v,f]),(0,o.createElement)(B.f,{onUploadFinished:e.uploadFinished},(0,o.createElement)(d.Fragment,null,e.blockSettings,(0,o.createElement)("div",t,(0,o.createElement)("div",{className:"uploader-block__logo"},(0,o.createElement)(h.A,{icon:C.KZ}),(0,o.createElement)("div",{className:"uploader-block__logo-text"},__("VideoPress","jetpack"))),(0,o.createElement)(_.d,{file:p,filename:a,title:n,onChangeTitle:r,onSelectPoster:s,onRemovePoster:i,videoPosterImageData:l,onVideoFrameSelected:b}),!m&&(0,o.createElement)(y.A,{file:p}),m&&(0,o.createElement)("div",{className:"uploader-block__upload-complete"},(0,o.createElement)("span",null,__("Upload Complete!","jetpack")," 🎉"),(0,o.createElement)(u.Button,{variant:"primary",onClick:E},__("Done","jetpack"))))))},j=e=>{let{scripts:t}=e;const{html:r,interactive:n,caption:a,isSelected:s,hideOverlay:i,attributes:l,setAttributes:A}=e,{align:g,className:d,videoPressClassNames:p,maxWidth:m}=l,h=(0,c.useBlockProps)({className:(0,E.A)("wp-block-video",d,p,{[`align${g}`]:g})});if("object"!=typeof t&&(t=[]),window.videopressAjax){const e=new Blob([`var videopressAjax = ${JSON.stringify(window.videopressAjax)};`],{type:"text/javascript"});t.push(URL.createObjectURL(e),window.videopressAjax.bridgeUrl)}return(0,o.createElement)("figure",h,(0,o.createElement)("div",{className:"wp-block-embed__wrapper"},(0,o.createElement)(u.ResizableBox,{enable:{top:!1,bottom:!1,left:!0,right:!0},maxWidth:"100%",size:{width:m},style:{margin:"auto"},onResizeStop:(e,t,r)=>{let n=getComputedStyle(r).width;if(null!==r.parentElement){n===getComputedStyle(r.parentElement).width&&(n="100%")}A({maxWidth:n})}},(0,o.createElement)(u.SandBox,{html:r,scripts:t,type:p}))),!n&&(0,o.createElement)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:i}),(!c.RichText.isEmpty(a)||s)&&(0,o.createElement)(c.RichText,{tagName:"figcaption",placeholder:__("Write caption…","jetpack"),value:a,onChange:e=>A({caption:e}),inlineToolbar:!0}))},L=(0,A.createHigherOrderComponent)((0,A.compose)([(0,g.withSelect)(((e,t)=>{const{autoplay:r,controls:n,fileForImmediateUpload:a,guid:o,loop:s,muted:i,playsinline:c,poster:u,preload:A,seekbarColor:g,seekbarLoadingColor:d,seekbarPlayedColor:p,src:m,useAverageColor:h}=t.attributes,{getEmbedPreview:E,isRequestingEmbedPreview:f}=e("core"),C=(0,w.e)(o,{autoplay:r,controls:n,loop:s,muted:i,playsinline:c,poster:u,preload:A,seekbarColor:g,seekbarLoadingColor:d,seekbarPlayedColor:p,useAverageColor:h}),B=!!C&&E(C),b=!!C&&f(C),k=!!window.videoPressResumableEnabled;return{fileForImmediateUpload:a,isFetchingPreview:b,isUploading:!k&&(0,l.isBlobURL)(m),preview:B,resumableUploadEnabled:k,url:C}})),(0,g.withDispatch)((e=>({invalidateCachedEmbedPreview:t=>{e("core/data").invalidateResolution("core","getEmbedPreview",[t])}}))),A.withInstanceId,e=>class extends d.Component{constructor(e){super(...arguments),this.state={media:null,isFetchingMedia:!1,fallback:!1,interactive:!1,rating:null,lastRequestedMediaId:null,isUpdatingRating:!1,allowDownload:null,privacySetting:b.NF.SITE_DEFAULT,isUpdatingAllowDownload:!1,fileForUpload:e.fileForImmediateUpload,isUpdatingIsPrivate:!1,isEditingWhileUploading:!1,isUploadComplete:!1,lastPosterValueSource:""},this.posterImageButton=(0,d.createRef)(),this.previewCacheReloadTimer=null,this.previewFailuresCount=0}static getDerivedStateFromProps(e,t){const r={};if(!e.isSelected&&t.interactive&&(r.interactive=!1),t.fileForUpload&&!t.isEditingWhileUploading){null!==t.fileForUpload&&t.fileForUpload instanceof File&&(r.isEditingWhileUploading=!0)}return Object.keys(r).length?r:null}hideOverlay=()=>{this.setState({interactive:!0})};async componentDidMount(){const{guid:e}=this.props.attributes;e?this.setTracks(e):await this.setGuid(),this.setRatingAndAllowDownload()}setRatingAndAllowDownload=async()=>{const e=(0,f.get)(this.props,"attributes.id"),t=await this.requestMedia(e);let r=(0,f.get)(t,"jetpack_videopress.rating");const n=(0,f.get)(t,"jetpack_videopress.allow_download"),a=(0,f.get)(t,"jetpack_videopress.privacy_setting",b.NF.SITE_DEFAULT);r&&("X-18"===r&&(r="R-17"),this.setState({rating:r})),void 0!==n&&this.setState({allowDownload:!!n}),void 0!==a&&this.setState({privacySetting:a})};async componentDidUpdate(e){const{attributes:t,invalidateCachedEmbedPreview:r,preview:n,setAttributes:a,url:o,isFetchingPreview:s}=this.props;t.id!==e.attributes.id&&(await this.setGuid(),this.setRatingAndAllowDownload());let i=!1;if(o&&o!==e.url&&(r(o),i=!0),n){const e=(0,Q.Zz)(n.html,(0,E.A)("wp-block-embed","is-type-video","is-provider-videopress"),!1);this.previewFailuresCount=0,a({videoPressClassNames:e})}else s||i||!this.props.attributes.guid||this.schedulePreviewCacheReload()}schedulePreviewCacheReload=()=>{const{invalidateCachedEmbedPreview:e,url:t}=this.props;null===this.previewCacheReloadTimer&&this.previewFailuresCount<5&&(this.previewFailuresCount++,this.previewCacheReloadTimer=setTimeout((()=>{e(t),this.previewCacheReloadTimer=null}),2e3*this.previewFailuresCount))};fallbackToCore=()=>{this.props.setAttributes({guid:void 0}),this.setState({fallback:!0})};setGuid=async()=>{const{attributes:e,setAttributes:t}=this.props,{id:r}=e;if(r)try{const e=await this.requestMedia(r);if(null===e)return;const n=(0,f.get)(e,"jetpack_videopress.guid");n?(t({guid:n}),this.setTracks(n)):this.fallbackToCore()}catch(e){this.setState({isFetchingMedia:!1}),this.fallbackToCore()}else t({guid:void 0})};requestMedia=async e=>{if(!e)return null;if(null!==this.state.media&&this.state.lastRequestedMediaId===e)return this.state.media;this.setState({isFetchingMedia:!0});const t=await i()({path:`/wp/v2/media/${e}`}).catch((()=>(this.setState({fallback:!0}),null))).finally((()=>{this.setState({isFetchingMedia:!1})})),{id:r}=this.props.attributes;return e!==r?null:(this.setState({media:t,lastRequestedMediaId:e}),t)};setTracks=e=>{const{setAttributes:t}=this.props;e&&i()({url:`https://public-api.wordpress.com/rest/v1.1/videos/${e}`,credentials:"omit",global:!0}).then((e=>{const r=[];Object.keys(e.tracks).forEach((t=>{for(const n in e.tracks[t]){const a=e.tracks[t][n];r.push({src:a.src,kind:t,srcLang:n,label:a.label})}})),t({videoPressTracks:r})}))};switchToEditing=()=>{this.props.setAttributes({id:void 0,guid:void 0,src:void 0})};onSelectPoster=e=>{const{setAttributes:t}=this.props;t({poster:e.url}),this.setState({videoPosterImageData:e})};onRemovePoster=()=>{const{setAttributes:e}=this.props;e({poster:""}),this.setState({videoPosterImageData:null}),this.posterImageButton.current.focus()};toggleAttribute=e=>t=>{this.props.setAttributes({[e]:t})};getAutoplayHelp=e=>e?__("Note: Autoplaying videos may cause usability issues for some visitors.","jetpack"):null;getPreloadHelp(){const{attributes:e}=this.props;return"auto"===e.preload?__("Note: Automatically downloading videos may cause issues if there are many videos displayed on the same page.","jetpack"):null}getPrivacySettingHelp=e=>{const t=parseInt(e,10);return b.NF.PRIVATE===t?__("Restrict views to members of this site","jetpack"):b.NF.PUBLIC===t?__("Video can be viewed by anyone","jetpack"):__("Follow the site privacy setting","jetpack")};renderControlLabelWithTooltip(e,t){return(0,o.createElement)(u.Tooltip,{text:t,position:"top"},(0,o.createElement)("span",null,e))}onChangeRating=e=>{const t=this.state.rating;"X-18"===e&&(e="R-17"),-1!==(0,f.indexOf)(["G","PG-13","R-17"],e)&&this.updateMetaApiCall({rating:e},(()=>this.setState({isUpdatingRating:!0,rating:e})),(()=>this.setState({rating:t})),(()=>this.setState({isUpdatingRating:!1})))};onChangeAllowDownload=e=>{const t=this.state.allowDownload;this.updateMetaApiCall({allow_download:e?1:0},(()=>this.setState({isUpdatingAllowDownload:!0,allowDownload:e})),(()=>this.setState({allowDownload:t})),(()=>this.setState({isUpdatingAllowDownload:!1})))};onChangePrivacySetting=e=>{const t=this.state.privacySetting;this.updateMetaApiCall({privacy_setting:e},(()=>this.setState({isUpdatingPrivacySetting:!0,privacySetting:e})),(()=>this.setState({privacySetting:t})),(()=>this.setState({isUpdatingPrivacySetting:!1})))};updateMetaApiCall=(e,t,r,n)=>{const{invalidateCachedEmbedPreview:a,url:o}=this.props,{id:s}=this.props.attributes;if(!s)return;t();const l={id:s};Object.assign(l,e),i()({path:"/wpcom/v2/videopress/meta",method:"POST",data:l}).then((e=>{status in e&&200!==e.status&&r()})).catch((()=>r())).finally((()=>{n(),a(o)}))};render(){const{attributes:t,instanceId:r,isFetchingPreview:n,isUploading:s,preview:l,resumableUploadEnabled:A,setAttributes:g}=this.props,{fallback:h,fileForUpload:E,isFetchingMedia:f,isUpdatingRating:C,interactive:y,rating:_,allowDownload:w,privacySetting:L,isUpdatingAllowDownload:N,isUpdatingPrivacySetting:T,videoPosterImageData:R}=this.state,{autoplay:P,caption:D,controls:M,guid:F,loop:O,muted:U,playsinline:H,poster:z,preload:q,useAverageColor:V,videoPressTracks:G,isVideoPressExample:$,src:Z}=t;if($&&Z)return(0,o.createElement)("img",{src:Z,alt:D});const W=`video-block__poster-image-description-${r}`,Y=!(!z&&!R),K=(0,o.createElement)(d.Fragment,null,(0,o.createElement)(c.BlockControls,{group:"block"},(0,o.createElement)(I.A,{tracks:G,onChange:e=>{g({videoPressTracks:e})},guid:F})),(0,o.createElement)(c.BlockControls,null,(0,o.createElement)(u.ToolbarGroup,null,(0,o.createElement)(u.ToolbarButton,{className:"components-icon-button components-toolbar__control",text:__("Replace","jetpack"),onClick:this.switchToEditing}))),(0,o.createElement)(c.InspectorControls,null,(0,o.createElement)(u.PanelBody,{title:__("Video Settings","jetpack")},(0,o.createElement)(u.ToggleControl,{label:this.renderControlLabelWithTooltip(__("Autoplay","jetpack"),/* translators: Tooltip describing the "autoplay" option for the VideoPress player */ __("Start playing the video as soon as the page loads","jetpack")),onChange:this.toggleAttribute("autoplay"),checked:P,help:this.getAutoplayHelp,__nextHasNoMarginBottom:!0}),(0,o.createElement)(u.ToggleControl,{label:this.renderControlLabelWithTooltip(__("Loop","jetpack"),/* translators: Tooltip describing the "loop" option for the VideoPress player */ __("Restarts the video when it reaches the end","jetpack")),onChange:this.toggleAttribute("loop"),checked:O,__nextHasNoMarginBottom:!0}),(0,o.createElement)(u.ToggleControl,{label:__("Muted","jetpack"),onChange:this.toggleAttribute("muted"),checked:U,__nextHasNoMarginBottom:!0}),(0,o.createElement)(u.ToggleControl,{label:this.renderControlLabelWithTooltip(__("Playback Controls","jetpack"),/* translators: Tooltip describing the "controls" option for the VideoPress player */ __("Display the video playback controls","jetpack")),onChange:this.toggleAttribute("controls"),checked:M,__nextHasNoMarginBottom:!0}),(0,o.createElement)(u.ToggleControl,{label:this.renderControlLabelWithTooltip(__("Play Inline","jetpack"),/* translators: Tooltip describing the "playsinline" option for the VideoPress player */ __("Play the video inline instead of full-screen on mobile devices","jetpack")),onChange:this.toggleAttribute("playsinline"),checked:H,__nextHasNoMarginBottom:!0}),(0,o.createElement)(u.SelectControl,{label:this.renderControlLabelWithTooltip(__("Preload","jetpack"),/* translators: Tooltip describing the "preload" option for the VideoPress player */ __("Content to dowload before the video is played","jetpack")),value:q??"",onChange:e=>g({preload:e}),options:[{value:"auto",label:_x("Auto","VideoPress preload setting","jetpack")},{value:"metadata",label:_x("Metadata","VideoPress preload setting","jetpack")},{value:"none",label:_x("None","VideoPress preload setting","jetpack")}],help:this.getPreloadHelp(),__nextHasNoMarginBottom:!0}),(0,o.createElement)(c.MediaUploadCheck,null,(0,o.createElement)(u.BaseControl,{className:"editor-video-poster-control"},(0,o.createElement)(u.BaseControl.VisualLabel,null,__("Poster Image","jetpack")),(0,o.createElement)(c.MediaUpload,{title:__("Select Poster Image","jetpack"),onSelect:this.onSelectPoster,allowedTypes:S,render:({open:e})=>(0,o.createElement)(u.Button,{variant:"secondary",onClick:e,ref:this.posterImageButton,"aria-describedby":W},Y?__("Replace image","jetpack",0):__("Select Poster Image","jetpack"))}),(0,o.createElement)("p",{id:W,hidden:!0},Y?(0,m.sprintf)(/* translators: Placeholder is an image URL. */ __("The current poster image url is %s","jetpack"),z??R):__("There is no poster image currently selected","jetpack")),Y&&(0,o.createElement)(u.Button,{onClick:this.onRemovePoster,variant:"link",isDestructive:!0},__("Remove Poster Image","jetpack")))),(0,d.createInterpolateElement)(__("Send us your <a>VideoPress feedback</a>","jetpack"),{a:(0,o.createElement)(u.ExternalLink,{href:"https://automattic.survey.fm/videopress-feedback"})})),(0,o.createElement)(v.A,{attributes:t,setAttributes:g,useAverageColor:V,toggleAttribute:this.toggleAttribute}),(0,o.createElement)(u.PanelBody,{title:__("Video File Settings","jetpack")},(0,o.createElement)(u.SelectControl,{label:_x("Rating","The age rating for this video.","jetpack"),value:_??"",disabled:f||C,options:[{label:_x("G",'Video rating for "General Audiences".',"jetpack"),value:"G"},{label:_x("PG-13",'Video rating for "Parental Guidance", unsuitable for children under 13.',"jetpack"),value:"PG-13"},{label:_x("R",'Video rating for "Restricted", not recommended for children under 17.',"jetpack"),value:"R-17"}],onChange:this.onChangeRating,__nextHasNoMarginBottom:!0}),(0,o.createElement)(u.ToggleControl,{label:this.renderControlLabelWithTooltip(__("Allow download","jetpack"),/* translators: Tooltip describing the "allow download" option for the VideoPress player */ __("Display download option and allow viewers to download this video","jetpack")),onChange:this.onChangeAllowDownload,checked:w,disabled:f||N,__nextHasNoMarginBottom:!0}),(0,o.createElement)(u.SelectControl,{label:__("Video Privacy","jetpack"),help:this.getPrivacySettingHelp(L),onChange:this.onChangePrivacySetting,value:L??"",options:[{value:b.NF.SITE_DEFAULT,label:_x("Site Default","VideoPress privacy setting","jetpack")},{value:b.NF.PUBLIC,label:_x("Public","VideoPress privacy setting","jetpack")},{value:b.NF.PRIVATE,label:_x("Private","VideoPress privacy setting","jetpack")}],disabled:f||T,__nextHasNoMarginBottom:!0})))),J=e=>{this.setState({fileForUpload:e[0]})},X=e=>{e&&e.url?(this.props.setAttributes({src:e.url,id:e.id,poster:e.image?.src!==e.icon?e.image?.src:void 0}),e.videopress_guid&&this.props.setAttributes({guid:e.videopress_guid})):g({src:void 0,id:void 0,poster:void 0})},ee=()=>"videoPressUploadPoster"in window,te=(0,p.escapeHTML)(E?(0,Q.T3)(E.name):""),re=({mediaId:e,guid:t,src:r})=>{this.setState({title:this.state.title??te,fileForUpload:null,isUploadComplete:!!e,isEditingWhileUploading:!!e&&this.state.isEditingWhileUploading}),e&&t&&r&&g({id:e,guid:t,src:r})},ne=e=>{this.setState({title:e})},ae=e=>{this.setState({videoFrameSelectedInMillis:e,videoPosterImageData:null})},oe=()=>{const e=this.state.title;this.updateMetaApiCall({title:e},(()=>this.setState({isUpdatingTitle:!0,title:e})),(()=>this.setState({title:e})),(()=>this.setState({isUpdatingTitle:!1})))},se=()=>Ae({at_time:this.state.videoFrameSelectedInMillis,is_millisec:!0}),ie=()=>Ae({poster_attachment_id:this.state.videoPosterImageData.id}),le=e=>{e.generating?ce():ue(e.poster)},ce=()=>{setTimeout((()=>{(ee()?window.videoPressGetPoster(F):i()({path:`/videos/${F}/poster`,apiNamespace:"rest/v1.1",global:!0,method:"GET"})).then((e=>le(e)))}),2e3)},ue=e=>{e&&g({poster:e})},Ae=e=>{if(ee())return window.videoPressUploadPoster(F,e).then((e=>le(e)));i()({path:`/videos/${F}/poster`,apiNamespace:"rest/v1.1",method:"POST",global:!0,data:e}).catch((e=>e))},ge=()=>{const{title:e,videoFrameSelectedInMillis:t}=this.state;e&&oe(),R?ie():null!=t&&se()},de=()=>{this.setState({isEditingWhileUploading:!1}),ge()};if(null!=E&&E.name||this.state.isEditingWhileUploading){const e=this.state.title??te;return(0,o.createElement)(x,{fileForUpload:E,filename:te,uploadFinished:re,blockSettings:K,onDismissEditor:de,isUploadComplete:this.state.isUploadComplete,onSelectPoster:this.onSelectPoster,onRemovePoster:this.onRemovePoster,onChangeTitle:ne,title:e,videoPosterImageData:this.state.videoPosterImageData,onVideoFrameSelected:ae,onSave:ge})}const pe=f||n,me=h||s||!F,he=me&&!s&&!pe,Ee=(0,o.createElement)(d.Fragment,null,(0,o.createElement)("div",{className:s||pe?"":"videopress-block-hide"},(0,o.createElement)(k.A,{text:s?__("Uploading…","jetpack"):__("Generating preview…","jetpack",0)})),(0,o.createElement)("div",{className:he?"":"videopress-block-hide"},(0,o.createElement)(e,this.props)));if(me)return A?(0,o.createElement)(B.f,{onFilesSelected:J,onMediaItemSelected:X},Ee):(0,o.createElement)(d.Fragment,null,Ee);const{html:fe,scripts:Ce}=l||{html:null,scripts:null},Be=pe||!l;return(0,o.createElement)(d.Fragment,null,K,Be&&(0,o.createElement)(k.A,{text:__("Generating preview…","jetpack")}),!Be&&(0,o.createElement)(j,a()({},this.props,{hideOverlay:this.hideOverlay,html:fe,scripts:Ce,interactive:y,caption:D})))}}]),"withVideoPressEdit")},27156:(e,t,r)=>{"use strict";var n=r(96072),a=r.n(n),o=r(82170),s=r(90372),i=r(85985),l=r(63162),c=r(94715),u=r(75994),A=r(74997),g=r(56427),d=r(29491),p=r(47143),m=r(43656),h=r(86087),E=r(52619),f=r(27723),C=r(66087),B=r(81837),b=r(59257),k=r(21440),y=r(54727),v=r(65390),I=r(77189),_=r(41560),w=r(47960),Q=r(51983),S=r(7345),x=r(40932);const __=f.__,j=(0,d.createHigherOrderComponent)((e=>t=>{const{name:r}=(0,c.useBlockEditContext)();return"core/video"!==r?(0,o.createElement)(e,t):(0,o.createElement)(e,a()({},t,{disableDropZone:!0,className:"no-videopress-media-placeholder"}),(0,o.createElement)(g.Button,{disabled:!0,className:"components-button no-videopress-disabled-button",variant:"secondary"},__("Media Library","jetpack")),(0,o.createElement)(g.Button,{disabled:!0,className:"components-button no-videopress-disabled-button",variant:"secondary"},__("Upload","jetpack")))}),"videoPressNoPlanMediaPlaceholder"),L=(0,d.createHigherOrderComponent)((e=>t=>{const{name:r}=(0,c.useBlockEditContext)();if("core/video"!==r)return(0,o.createElement)(e,t);const{onFilesSelected:n,onMediaItemSelected:s}=(0,h.useContext)(B.Z),i={...t,handleUpload:!1,disableDropZone:!0,onSelect:e=>{void 0!==e.length?n(e):s(e)}};return(0,o.createElement)(e,a()({},i,{className:"videopress-media-placeholder"}))}),"videoPressMediaPlaceholder"),N=(e,t,r)=>("core/video"!==t.name||!r.guid||r.className?.indexOf("wp-block-video")>=0||r.videoPressClassNames||(e.className=e.className.replace("wp-block-video","").trim()),e);(0,E.addFilter)("blocks.registerBlockType","jetpack/videopress",((e,t)=>{if("core/embed"===t)return(e=>{if(!("variations"in e)||"object"!=typeof e.variations)return;const{available:t}=(0,i.FB)("videopress");e.variations.some((e=>"videopress"===e.name&&(t&&(e.scope=[]),e.patterns.push(/^https?:\/\/v\.wordpress\.com\/([a-zA-Z\d]{8})(.+)?$/i),!0)))})(e),e;if("core/video"!==t||e.isDeprecation)return e;const{deprecated:r,edit:n,save:a,supports:o,transforms:s}=e,{available:c,unavailableReason:u}=(0,i.FB)("videopress"),g=((0,i.Sy)()||(0,i.d9)())&&["missing_plan","unknown"].includes(u),d=!!window.videoPressResumableEnabled;if(g?((0,E.addFilter)("editor.MediaPlaceholder","jetpack/videopress",j),(0,E.addFilter)("editor.BlockListBlock","jetpack/videopress-with-has-warning-is-interactive-class-names",(0,i.BT)("core/video"))):c&&(d&&(0,E.addFilter)("editor.MediaPlaceholder","jetpack/videopress",L),e.description=__("Embed a video from your media library or upload a new one with VideoPress.","jetpack"),e.example.attributes={caption:"",isVideoPressExample:!0,src:x}),(0,E.addFilter)("blocks.getSaveContent.extraProps","jetpack/videopress",N,20),c||["missing_plan","missing_module","unknown"].includes(u)){const t={autoplay:{type:"boolean"},caption:{type:"string",source:"html",selector:"figcaption"},controls:{type:"boolean",default:!0},maxWidth:{type:"string",default:"100%"},guid:{type:"string"},id:{type:"number"},loop:{type:"boolean"},isVideoPressExample:{type:"boolean",default:!1},muted:{type:"boolean"},playsinline:{type:"boolean"},poster:{type:"string"},preload:{type:"string",default:"metadata"},seekbarPlayedColor:{type:"string",default:""},seekbarLoadingColor:{type:"string",default:""},seekbarColor:{type:"string",default:""},src:{type:"string",source:"attribute",selector:"video",attribute:"src"},useAverageColor:{type:"boolean",default:!0},videoPressTracks:{type:"array",items:{type:"object"},default:[]},videoPressClassNames:{type:"string"},fileForImmediateUpload:{type:"object",default:null}},i=/https?:\/\/v\.wordpress\.com\/([a-zA-Z\d]{8})(.+)?/i;return{...e,attributes:{...e.attributes,...t},transforms:{...s,from:[{type:"files",isMatch:e=>(0,C.every)(e,(e=>0===e.type.indexOf("video/"))),priority:9,transform:(e,t)=>{const r=[];return e.forEach((e=>{if(c&&d){const t=(0,A.createBlock)("core/video",{fileForImmediateUpload:e});r.push(t)}else{const n=(0,A.createBlock)("core/video",{src:(0,l.createBlobURL)(e)});(0,m.mediaUpload)({filesList:[e],onFileChange:([{id:e,url:r}])=>{t(n.clientId,{id:e,src:r})},allowedTypes:["video"]}),r.push(n)}})),r}},{type:"raw",isMatch:e=>"P"===e.nodeName&&i.test(e.innerHTML),transform:e=>{const t=i.exec(e.innerHTML);return(0,A.createBlock)("core/embed",{url:"https://videopress.com/v/"+t[1].trim()})}}]},supports:{...o,reusable:!1},edit:(0,I.A)(n),save:(0,_.A)(a),deprecated:[...r||[],v.A,y.A,{attributes:t,isEligible:e=>!e.guid,save:a,supports:o,isDeprecation:!0},k.A,b.A]}}return e}),5),(0,E.addFilter)("blocks.registerBlockType","videopress/add-wp-chapters-support",S.A),(0,E.addFilter)("blocks.registerBlockType","videopress/add-v6-transform-support",Q.A),(0,E.addFilter)("blocks.registerBlockType","videopress/add-core-video-transform",(function(e,t){if("videopress/video"!==t)return e;const r=(0,A.getBlockType)("videopress/video"),{available:n}=(0,i.FB)("videopress/video");return r&&n?{...e,transforms:{from:[...e.transforms?.from||[],{type:"block",blocks:["core/video"],isMatch:e=>{const{src:t,guid:r}=e,n=(0,w.QW)(t);return r||n},transform:e=>{const t=(0,p.select)(m.store).getCurrentPostId();return s.A?.tracks?.recordEvent("jetpack_editor_videopress_block_manual_transform_click",{post_id:t}),(0,A.createBlock)("videopress/video",e)}}],to:[...e.transforms?.to||[],{type:"block",blocks:["core/video"],transform:e=>(0,A.createBlock)("core/video",e)}]}}:e}));const T=(0,d.createHigherOrderComponent)((e=>t=>{const{block:r}=t,{name:n,attributes:a,clientId:s,__unstableBlockSource:l}=r,{replaceBlock:u}=(0,p.useDispatch)(c.store),{url:g,guid:d,providerNameSlug:m}=a,{available:E}=((0,w.x1)(a),(0,A.getBlockType)("videopress/video"),(0,i.FB)("videopress/video")),f="core/embed"===n,C=(0,w.QW)(g),B=f&&C?C:d,b=((0,i.Sy)(),!1),k=b;return(0,h.useEffect)((()=>{}),[s,k,a,l,u,B]),(0,o.createElement)(e,t)}),"convertVideoBlockToVideoPressVideoBlock");function R({BlockListBlock:e,...t}){const{block:r}=t,{name:n,attributes:a,clientId:s}=r,{replaceBlock:i}=(0,p.useDispatch)(c.store);return(0,h.useEffect)((()=>{try{const e=(0,u.parse)(a.originalContent),t=e?.[0];if(!t)return;const{attrs:r}=t;i(s,(0,A.createBlock)("core/video",function(e){const t={...e};return e?.tracks&&(t.videoPressTracks=e.tracks,delete t.tracks),e?.isExample&&(t.isVideoPressExample=e.isExample,delete t.isExample),e?.classNames&&(t.videoPressClassNames=e.classNames,delete t.classNames),delete t.title,delete t.description,delete t.cacheHtml,delete t.videoRatio,delete t.privacySetting,delete t.allowDownload,delete t.displayEmbed,delete t.rating,delete t.isPrivate,t}(r)))}catch(e){console.error("Error converting VideoPress block to core/video",e)}}),[n,s,a,i]),(0,o.createElement)(e,t)}(0,E.addFilter)("editor.BlockListBlock","videopress/jetpack-convert-to-videopress-video-block",T);const P=(0,d.createHigherOrderComponent)((e=>t=>{const{block:r}=t,{name:n,attributes:s}=r;return"core/missing"!==n||"videopress/video"!==s?.originalName?(0,o.createElement)(e,t):(0,o.createElement)(R,a()({},t,{BlockListBlock:e}))}),"convertV6toV5");(0,E.addFilter)("editor.BlockListBlock","videopress/jetpack-convert-from-v6-to-v5",P)},90781:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(82170),a=r(56427);const o=({text:e})=>(0,n.createElement)("div",{className:"wp-block-embed is-loading"},(0,n.createElement)(a.Spinner,null),(0,n.createElement)("p",null,e))},76212:(e,t,r)=>{"use strict";r.d(t,{A:()=>A});var n=r(82170),a=r(56427),o=r(86087),s=r(27723),i=r(60633),l=r.n(i),c=r(81837),u=r(80534);const __=s.__;function A({file:e}){const[t,r]=(0,o.useState)(0),[i,A]=(0,o.useState)(!1),[g,d]=(0,o.useState)(null),[p,m]=(0,o.useState)(null),[h,E]=(0,o.useState)(null),{onUploadFinished:f}=(0,o.useContext)(c.Z),C=(0,o.useRef)(null);C.current=g;const B=(0,o.useCallback)((()=>{const t=(0,u.l)({onError:e=>{m(e)},onProgress:(e,t)=>{r(e/t*100)},onSuccess:e=>{f(e)},onUploadUuidRetrieved:e=>{null===h&&E(e)}});(0,u.Q)().then((r=>{const n=t(e,r);d(n)})).catch((e=>{m(e)}))}),[e,f,h]);(0,o.useEffect)((()=>(B(),()=>{null!==C.current&&C.current.abort()})),[]);const b=Math.round(t),k={width:`${b}%`},y=l()(e.size);return(0,n.createElement)(n.Fragment,null,null!==p?(0,n.createElement)("div",{className:"resumable-upload__error"},(0,n.createElement)("div",{className:"resumable-upload__error-text"},(()=>{let e=__("An error was encountered during the upload. Check your network connection.","jetpack");if("object"==typeof p){const t=p.toString().match(/message":"([^"]+)"/);if(t&&"object"==typeof t&&2===t.length){const r=t[1];if("Invalid Mime"!==r)return r;e=(0,n.createElement)(n.Fragment,null,__("The format of the video you uploaded is not supported.","jetpack")," ",(0,n.createElement)(a.ExternalLink,{href:"https://wordpress.com/support/videopress/recommended-video-settings/",target:"_blank",rel:"noreferrer"},__("Check the recommended video settings.","jetpack")))}}return e})()),(0,n.createElement)(a.Button,{variant:"primary",onClick:()=>(m(null),void B())},__("Try again","jetpack")),(0,n.createElement)(a.Button,{variant:"secondary",onClick:()=>f({mediaId:null}),className:"resumable-upload__error-cancel"},__("Cancel","jetpack"))):(0,n.createElement)("div",{className:"resumable-upload__status"},(0,n.createElement)("div",{className:"resumable-upload__progress"},(0,n.createElement)("div",{className:"resumable-upload__progress-loaded",style:k})),(0,n.createElement)("div",{className:"resumable-upload__file-info"},(0,n.createElement)("div",null,i?(0,s.sprintf)(/* translators: Placeholder is an upload progress percenatage number, from 0-100. */ __("Paused (%s%%)","jetpack"),b):(0,s.sprintf)(/* translators: Placeholder is an upload progress percenatage number, from 0-100. */ __("Uploading (%s%%)","jetpack"),b)),(0,n.createElement)("div",{className:"resumable-upload__file-size"},y)),(0,n.createElement)("div",{className:"resumable-upload__actions"},(0,n.createElement)(a.Button,{variant:"link",onClick:()=>{g&&(i?g.start():g.abort(),A(!i))}},i?"Resume":"Pause"))))}},80534:(e,t,r)=>{"use strict";r.d(t,{Q:()=>a,l:()=>s});var n=r(10781);const a=function(e){return new Promise((function(t,r){const n=e?{data:{key:e}}:{};wp.media.ajax("videopress-get-upload-jwt",{async:!0,...n}).done((function(e){t({token:e.upload_token,blogId:e.upload_blog_id,url:e.upload_action_url})})).fail((function(e){r(e)}))}))},o={},s=({onUploadUuidRetrieved:e,onError:t,onProgress:r,onSuccess:s})=>(i,l)=>{const c=new n._O(i,{onError:t,onProgress:r,endpoint:l.url,removeFingerprintOnSuccess:!0,withCredentials:!1,autoRetry:!0,overridePatchMethod:!1,chunkSize:1e7,allowedFileTypes:["video/*"],metadata:{filename:i.name,filetype:i.type},retryDelays:[0,1e3,3e3,5e3,1e4],onAfterResponse:function(t,r){if(r.getStatus()>=400)return;const n=r.getHeader("x-videopress-upload-guid"),a=r.getHeader("x-videopress-upload-media-id"),i=r.getHeader("x-videopress-upload-src-url");if(n&&a&&i)return void(s&&s({mediaId:Number(a),guid:n,src:i}));const l={"x-videopress-upload-key-token":"token","x-videopress-upload-key":"key"},c={};Object.keys(l).forEach((function(e){const t=r.getHeader(e);t&&(c[l[e]]=t)})),c.key&&c.token&&(o[c.key]=c.token),c.key&&e(c.key)},onBeforeRequest:function(e){const t=e._method;["HEAD","OPTIONS"].indexOf(t)>=0&&(e._method="GET",e.setHeader("X-HTTP-Method-Override",t)),["DELETE","PUT","PATCH"].indexOf(t)>=0&&(e._method="POST",e.setHeader("X-HTTP-Method-Override",t)),e._xhr.open(e._method,e._url,!0);for(const t of Object.keys(e._headers))e.setHeader(t,e._headers[t]);if("POST"===t){if(!!!l.token)throw"should never happen";e.setHeader("x-videopress-upload-token",l.token)}if(["OPTIONS","GET","HEAD","DELETE","PUT","PATCH"].indexOf(t)>=0){const r=new URL(e._url).pathname.split("/"),n=r[r.length-1];if(o[n])e.setHeader("x-videopress-upload-token",o[n]);else if("HEAD"===t)return a(n).then((t=>(o[n]=t.token,e.setHeader("x-videopress-upload-token",t.token),e)))}return Promise.resolve(e)}});return c.findPreviousUploads().then((function(e){e.length&&c.resumeFromPreviousUpload(e[0]),c.start()})),c}},41560:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(82170),a=r(94715),o=r(29491),s=r(13022),i=r(17900);const l=(0,o.createHigherOrderComponent)((e=>t=>{const{attributes:{autoplay:r,caption:o,controls:l,guid:c,loop:u,muted:A,playsinline:g,poster:d,preload:p,videoPressClassNames:m,className:h,align:E,seekbarColor:f,seekbarPlayedColor:C,seekbarLoadingColor:B,useAverageColor:b,maxWidth:k}={}}=t;if(!c)return e(t);const y=a.useBlockProps.save({className:(0,s.A)("wp-block-video",h,m,{[`align${E}`]:E})}),v=(0,i.e)(c,{autoplay:r,controls:l,loop:u,muted:A,playsinline:g,poster:d,preload:p,seekbarColor:f,seekbarPlayedColor:C,seekbarLoadingColor:B,useAverageColor:b});let I={};return k&&k.length>0&&"100%"!==k&&(I={maxWidth:k,margin:"auto"}),(0,n.createElement)("figure",y,(0,n.createElement)("div",{className:"wp-block-embed__wrapper",style:I},`\n${v}\n`),!a.RichText.isEmpty(o)&&(0,n.createElement)(a.RichText.Content,{tagName:"figcaption",value:o}))}),"withVideoPressSave")},57954:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(82170),a=r(94715),o=r(56427),s=r(86087),i=r(27723);const __=i.__;class l extends s.Component{constructor(){super(...arguments);const{seekbarColor:e,seekbarPlayedColor:t,seekbarLoadingColor:r}=this.props.attributes;this.state={seekbarColor:e,seekbarPlayedColor:t,seekbarLoadingColor:r}}handleChangeSeekbarColor=e=>{this.setState({seekbarColor:e})};handleChangeSeekbarLoadingColor=e=>{this.setState({seekbarLoadingColor:e})};handleChangeSeekbarPlayedColor=e=>{this.setState({seekbarPlayedColor:e})};saveColors=()=>{const{seekbarColor:e,seekbarLoadingColor:t,seekbarPlayedColor:r}=this.state,{setAttributes:n}=this.props;n({seekbarColor:e,seekbarLoadingColor:t,seekbarPlayedColor:r})};render(){const{seekbarColor:e,seekbarPlayedColor:t,seekbarLoadingColor:r}=this.state,{toggleAttribute:s,useAverageColor:i}=this.props,l=!0;return(0,n.createElement)(o.PanelBody,{className:"seekbar-color-settings__panel",title:__("Progress Bar Colors","jetpack"),initialOpen:!1},(0,n.createElement)(o.ToggleControl,{label:__("Match video","jetpack"),help:__("Colors adapt to the video as it plays","jetpack"),onChange:s("useAverageColor"),checked:i,__nextHasNoMarginBottom:!0}),(0,n.createElement)(a.PanelColorSettings,{opened:!i,showTitle:!1,colorSettings:[{value:e,onChange:this.handleChangeSeekbarColor,label:__("Main","jetpack"),showTitle:l},{value:r,onChange:this.handleChangeSeekbarLoadingColor,label:__("Loaded","jetpack"),showTitle:l},{value:t,onChange:this.handleChangeSeekbarPlayedColor,label:__("Progress","jetpack"),showTitle:l}]},(0,n.createElement)(o.Button,{variant:"secondary",onClick:this.saveColors},__("Save colors","jetpack"))))}}const c=l},96247:(e,t,r)=>{"use strict";r.d(t,{A:()=>b,n:()=>E});var n=r(82170),a=r(1455),o=r.n(a),s=r(94715),i=r(56427),l=r(47143),c=r(86087),u=r(27723),A=r(7326);const __=u.__,g="subtitles",d=".vtt,text/vtt",p=[{label:__("Subtitles","jetpack"),value:"subtitles"},{label:__("Captions","jetpack"),value:"captions"},{label:__("Descriptions","jetpack"),value:"descriptions"},{label:__("Chapters","jetpack"),value:"chapters"},{label:__("Metadata","jetpack"),value:"metadata"}],m=(0,n.createElement)(i.SVG,{width:"18",height:"14",viewBox:"0 0 18 14",role:"img",fill:"none"},(0,n.createElement)(i.Rect,{x:"0.75",y:"0.75",width:"16.5",height:"12.5",rx:"1.25",stroke:"black",strokeWidth:"1.5",fill:"none"}),(0,n.createElement)(i.Path,{d:"M3 7H15",stroke:"black",strokeWidth:"1.5"}),(0,n.createElement)(i.Path,{d:"M3 10L15 10",stroke:"black",strokeWidth:"1.5"})),h=()=>"videoPressUploadTrack"in window,E=(e,t)=>{if(h())return window.videoPressUploadTrack(t,e.kind,e.srcLang,e.label,e.tmpFile);const r={method:"POST",path:`/videos/${t}/tracks`,apiNamespace:"rest/v1.1",global:!0,parse:!1,formData:[["kind",e.kind],["srclang",e.srcLang],["label",e.label],["vtt",e.tmpFile]]};return o()(r)},f=(e,t)=>{if(h())return window.videoPressDeleteTrack(t,e.kind,e.srcLang);const r={method:"POST",path:`/videos/${t}/tracks/delete`,apiNamespace:"rest/v1.1",global:!0,parse:!1,formData:[["kind",e.kind],["srclang",e.srcLang]]};return o()(r)};function C({tracks:e,onChange:t,guid:r}){const[a=-1,o]=(0,c.useState)();let s;return s=0===e.length?(0,n.createElement)("p",{className:"videopress-block-tracks-editor__tracks-informative-message"},__("Tracks can be subtitles, captions, chapters, or descriptions. They help make your content more accessible to a wider range of users.","jetpack")):e.map(((s,l)=>(0,n.createElement)("div",{key:l,className:"videopress-block-tracks-editor__track-list-track"},(0,n.createElement)("span",null,s.label),(0,n.createElement)("div",{className:"videopress-block-tracks-editor__track-list-track-delete"},(0,n.createElement)(i.Button,{variant:"link",isDestructive:!0,onClick:()=>{(n=>{const a=e[n];o(n),f(a,r).finally((()=>{t(e.filter(((e,t)=>t!==n))),o(-1)}))})(l)},"aria-label":(0,u.sprintf)(/* translators: %s: Label of the video text track e.g: "French subtitles" */ __("Delete %s","jetpack"),s.label),disabled:a===l},a===l?__("Deleting","jetpack"):__("Delete","jetpack",0)))))),(0,n.createElement)(i.MenuGroup,{label:__("Text tracks","jetpack"),className:"videopress-block-tracks-editor__track-list"},s)}function B({track:e,guid:t,onChange:r,onClose:a,onCancel:o,trackExists:A}){const[m,h]=(0,c.useState)(),[f=!1,C]=(0,c.useState)(),{label:B="",srcLang:b="",kind:k=g}=e,y=e.tmpFile?e.tmpFile.name:"";if(!(0,l.useSelect)((e=>e(s.store).getSettings().mediaUpload),[]))return null;return(0,n.createElement)(i.NavigableMenu,null,(0,n.createElement)("div",{className:"videopress-block-tracks-editor__single-track-editor"},(0,n.createElement)("span",{className:"videopress-block-tracks-editor__single-track-editor-label"},__("Edit track","jetpack")),(0,n.createElement)("div",{className:"videopress-block-tracks-editor__single-track-editor-upload-file"},(0,n.createElement)("div",{className:"videopress-block-tracks-editor__single-track-editor-upload-file-label"},(0,n.createElement)("span",null,__("File","jetpack"),":"),""!==y&&(0,n.createElement)("span",{className:"videopress-block-tracks-editor__single-track-editor-upload-file-label-name"},(0,n.createElement)("strong",null,y)),(0,n.createElement)(s.MediaUploadCheck,null,(0,n.createElement)(i.FormFileUpload,{onChange:t=>{const n=t.target.files;!n.length>0||(e.tmpFile=n[0],r(e))},accept:d,render:({openFileDialog:e})=>(0,n.createElement)(i.Button,{variant:"link",onClick:()=>{e()}},""===y?__("Select track","jetpack"):__("Change track","jetpack",0)),disabled:f}))),(0,n.createElement)("div",{className:"videopress-block-tracks-editor__single-track-editor-upload-file-help"},/* translators: %s: The allowed file types to be uploaded as a video text track." */ /* translators: %s: The allowed file types to be uploaded as a video text track." */ (0,u.sprintf)(__("Allowed formats: %s","jetpack"),d))),(0,n.createElement)("div",{className:"videopress-block-tracks-editor__single-track-editor-label-language"},(0,n.createElement)(i.TextControl,{onChange:t=>r({...e,label:t}),label:__("Label","jetpack"),value:B,help:__("Title of track","jetpack"),disabled:f,__nextHasNoMarginBottom:!0}),(0,n.createElement)(i.TextControl,{onChange:t=>r({...e,srcLang:t}),label:__("Source language","jetpack"),value:b,help:__("Language tag (en, fr, etc.)","jetpack"),disabled:f,__nextHasNoMarginBottom:!0})),(0,n.createElement)(i.SelectControl,{className:"videopress-block-tracks-editor__single-track-editor-kind-select",options:p,value:k,label:/* translators: %s: The kind of video text track e.g: "Subtitles, Captions" */ __("Kind","jetpack"),onChange:t=>{r({...e,kind:t})},disabled:f,__nextHasNoMarginBottom:!0}),(0,n.createElement)("div",{className:"videopress-block-tracks-editor__single-track-editor-buttons-container"},f?(0,n.createElement)(i.Spinner,null):(0,n.createElement)(i.Button,{variant:"secondary",disabled:!e.tmpFile,onClick:()=>{h(null),""===B&&(e.label=__("English","jetpack")),""===b&&(e.srcLang="en"),void 0===e.kind&&(e.kind=g),A(e)?h(__("A track already exists for that language and kind.","jetpack")):(C(!0),E(e,t).then((()=>{r(e),h(null),a()})).catch((e=>{e.message&&h(e.message)})).finally((()=>{C(!1)})))}},__("Save","jetpack")),(0,n.createElement)(i.Button,{variant:"link",onClick:o},__("Close","jetpack"))),m&&(0,n.createElement)("div",{className:"videopress-block-tracks-editor__single-track-editor-error"},/* translators: %s: An error message returned after a failed video track file upload." */ /* translators: %s: An error message returned after a failed video track file upload." */ (0,u.sprintf)(__("Error: %s","jetpack"),m))))}function b({tracks:e=[],onChange:t,guid:r}){const[a,o]=(0,c.useState)(null);return(0,n.createElement)(i.Dropdown,{contentClassName:"videopress-block-tracks-editor",renderToggle:({isOpen:e,onToggle:t})=>(0,n.createElement)(i.ToolbarButton,{label:__("Text tracks","jetpack"),showTooltip:!0,"aria-expanded":e,"aria-haspopup":"true",onClick:t,icon:m}),renderContent:()=>null!==a?(0,n.createElement)(B,{track:e[a],guid:r,onChange:r=>{const n=[...e];n[a]=r,t(n)},onClose:()=>o(null),onCancel:()=>{t(e.filter(((e,t)=>t!==a))),o(null)},trackExists:t=>-1!==e.filter(((e,t)=>t!==a)).findIndex((e=>e.kind===t.kind&&e.srcLang===t.srcLang))}):(0,n.createElement)(n.Fragment,null,(0,n.createElement)(i.NavigableMenu,null,(0,n.createElement)(C,{tracks:e,onChange:t,guid:r}),(0,n.createElement)(i.MenuGroup,{className:"videopress-block-tracks-editor__add-tracks-container",label:__("Add tracks","jetpack")},(0,n.createElement)(i.MenuItem,{icon:A.A,onClick:()=>{(()=>{const r=e.length,n=[...e];n[r]||(n[r]={}),n[r]={...e[r]},t(n),o(r)})()}},__("Upload track","jetpack")))))})}},22857:(e,t,r)=>{"use strict";r.d(t,{d:()=>p});var n=r(82170),a=r(94715),o=r(56427),s=r(86087),i=r(27723),l=r(51113),c=r(13022),u=r(12199);const __=i.__,A=["image"],g=e=>{const{videoPosterImageUrl:t}=e;return(0,n.createElement)("div",{className:"resumable-upload__editor-thumb-placeholder"},t?(0,n.createElement)(n.Fragment,null,(0,n.createElement)("img",{src:t,alt:"Poster"}),(0,n.createElement)(l.A,{className:"uploading-editor__play-icon",icon:u.ud})):(0,n.createElement)("span",null,"No Poster Selected"))},d=e=>{const{onSelectPoster:t,onRemovePoster:r}=e;return(0,n.createElement)(o.BaseControl,{className:(0,c.A)(e.className,"editor-video-poster-control")},(0,n.createElement)(g,e),(0,n.createElement)(a.MediaUpload,{title:__("Select Poster Image","jetpack"),onSelect:t,allowedTypes:A,render:({open:e})=>(0,n.createElement)("div",{className:"poster-selector__buttons"},(0,n.createElement)(o.Button,{onClick:r,variant:"link",isDestructive:!0},__("Remove Poster Image","jetpack")),(0,n.createElement)(o.Button,{variant:"secondary",onClick:e},__("Select Poster Image","jetpack")))}))},p=e=>{const{file:t,onSelectPoster:r,onRemovePoster:i,videoPosterImageData:c,title:g,onChangeTitle:p,onVideoFrameSelected:m}=e,[h,E]=(0,s.useState)(0),[f,C]=(0,s.useState)(!0),B=(0,s.useRef)(null),b=(0,s.useRef)(null),k=()=>{C(!1)};(0,s.useEffect)((()=>{null!==t&&B&&(B.current.src=URL.createObjectURL(t))}),[t,B]);const y={};return c&&(y.display="none"),(0,n.createElement)(n.Fragment,null,(0,n.createElement)("div",{className:"uploading-editor"},(0,n.createElement)("div",{className:"uploading-editor__summary"}),(0,n.createElement)("div",{className:"uploading-editor__fields"},(0,n.createElement)(o.TextControl,{label:__("Video title","jetpack"),className:"uploading-editor__title",onChange:p,value:g,__nextHasNoMarginBottom:!0}),(0,n.createElement)("div",{className:"uploading-editor__content"},(0,n.createElement)(o.BaseControl,{__nextHasNoMarginBottom:!0},(0,n.createElement)(o.BaseControl.VisualLabel,null,__("Video poster (optional)","jetpack")),f?(0,n.createElement)(n.Fragment,null,(0,n.createElement)("div",{className:"uploading-editor__video-container"},(0,n.createElement)("div",{className:"uploading-editor__video-poster-wrapper"},c&&(0,n.createElement)(d,{onSelectPoster:r,onRemovePoster:i,videoPosterImageUrl:c.url}),(0,n.createElement)("video",{ref:B,muted:!0,className:"uploading-editor__video",onDurationChange:e=>{const t=e.target.duration;E(t),B.current&&(B.current.currentTime=t/2)},onError:k,onLoadedMetadata:e=>{e.target.videoHeight||k()},style:y})),!c&&(0,n.createElement)(l.A,{className:"uploading-editor__play-icon",icon:u.ud})),(0,n.createElement)("span",{style:y},(0,n.createElement)(o.RangeControl,{className:"uploading-editor__range",min:"0",step:"0.1",max:h,showTooltip:!1,withInputField:!1,onChange:e=>{m(1e3*e),B.current&&(B.current.currentTime=e)},__nextHasNoMarginBottom:!0})),(0,n.createElement)("span",{className:"uploading-editor__scrubber-help",style:y},(0,s.createInterpolateElement)(__("This is how the video will look. Use the slider to choose a poster or <a>select a custom one</a>.","jetpack"),{a:(0,n.createElement)(a.MediaUpload,{title:__("Select Poster Image","jetpack"),onSelect:r,allowedTypes:A,render:({open:e})=>(0,n.createElement)("a",{className:"uploading-editor__upload-link",onClick:e,onKeyDown:e,ref:b,role:"button",tabIndex:0},__("select a custom one","jetpack"))})}))):(0,n.createElement)(d,{onSelectPoster:r,videoPosterImageUrl:c?c.url:null}))))))}},17900:(e,t,r)=>{"use strict";r.d(t,{e:()=>a});var n=r(93832);const a=(e,{autoplay:t,controls:r,loop:a,muted:o,playsinline:s,poster:i,preload:l,seekbarColor:c,seekbarPlayedColor:u,seekbarLoadingColor:A,useAverageColor:g})=>{if(!e)return null;const d={resizeToParent:!0,cover:!0,...t&&{autoPlay:!0},...!r&&{controls:!1},...a&&{loop:!0},...o&&{muted:!0,persistVolume:!1},...s&&{playsinline:!0},...i&&{posterUrl:i},...""!==l&&{preloadContent:l},...""!==c&&{sbc:c},...""!==u&&{sbpc:u},...""!==A&&{sblc:A},...g&&{useAverageColor:!0}};return(0,n.addQueryArgs)(`https://videopress.com/v/${e}`,d)}},47960:(e,t,r)=>{"use strict";r.d(t,{QW:()=>l,T3:()=>i,Zz:()=>s,x1:()=>c});r(74997);var n=r(13022),a=r(74628);const o=e=>{const t=a.C1.reduce(((e,{className:t})=>(e[t]=!1,e)),{"wp-has-aspect-ratio":!1});return(0,n.A)(e,t)};function s(e,t="",r=!0){if(!r)return o(t);const s=document.implementation.createHTMLDocument("");s.body.innerHTML=e;const i=s.body.querySelector("iframe");if(i&&i.height&&i.width){const e=(i.width/i.height).toFixed(2);for(let r=0;r<a.C1.length;r++){const s=a.C1[r];if(e>=s.ratio)return(0,n.A)(o(t),s.className,"wp-has-aspect-ratio")}}return t}const i=e=>e.replace(/\.[^/.]+$/,""),l=e=>{if(!e||"string"!=typeof e)return null;const t=e.match(/^https?:\/\/(?<host>video(?:\.word|s\.files\.word)?press\.com)(?:\/v|\/embed)?\/(?<guid>[a-zA-Z\d]{8})/);return t?.groups?.guid?t.groups.guid:null},c=e=>{const{guid:t,videoPressTracks:r,isVideoPressExample:n}=e;if(!t?.length)return!1;if(!Array.isArray(r))return!1;return!(!Object.keys(e).includes("isVideoPressExample")||"boolean"!=typeof n)}},58731:(e,t,r)=>{"use strict";r.d(t,{A:()=>m});var n=r(82170),a=r(85985),o=r(94715),s=r(74997),i=r(56427),l=r(47143),c=r(43656),u=(r(86087),r(27723)),A=r(47960),g=r(54746);const __=u.__,d={instances:[]},p=(e=[],t=!1,r=0)=>{if(t&&(d.instances=[]),e.forEach((e=>{if(e.innerBlocks.length)return void p(e.innerBlocks,!1,r+1);const{clientId:t,name:n,attributes:a}=e;"core/video"===n&&(0,A.x1)(a)&&d.instances.push({clientId:t,name:n,attributes:a})})),0===r)return d.instances};function m({clientId:e,attributes:t}){const r=(0,l.useSelect)((e=>e(c.store).getCurrentPostId())),{getBlocks:u}=(0,l.useSelect)(o.store),{replaceBlock:d}=(0,l.useDispatch)(o.store),{tracks:m}=(0,a.st)();return(0,n.createElement)("div",{className:g.A.wrapper},(0,n.createElement)(i.Notice,{status:"info",isDismissible:!1,className:g.A["conversion-notice"]},__("You can transform this post's video blocks to the new VideoPress block to take advantage of new features, such as adding chapters directly in the description or hiding the video's share menu.","jetpack")),(0,n.createElement)(i.Button,{variant:"primary",onClick:()=>{const n=p(u(),!0);n?.length&&(n.find((t=>t.clientId===e))||n.push({clientId:e,name:"core/video",currentBlockAttributes:t}),n.forEach((e=>{const{clientId:t,name:n,attributes:a}=e;"core/video"===n&&(0,A.x1)(a)&&(d(t,(0,s.createBlock)("videopress/video",a)),m.recordEvent("jetpack_editor_videopress_block_manual_conversion_click",{post_id:r}))})))}},__("Transform blocks to VideoPress","jetpack")))}},55159:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(82170),a=r(94715),o=r(29491),s=r(47960),i=r(58731);const l=(0,o.createHigherOrderComponent)((e=>t=>(0,s.x1)(t.attributes)?(0,n.createElement)(n.Fragment,null,(0,n.createElement)(a.InspectorControls,null,(0,n.createElement)(i.A,{clientId:t.clientId,attributes:t.attributes})),(0,n.createElement)(e,t)):(0,n.createElement)(e,t)))},51983:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(85985),a=r(55159);const o="videopress/video";function s(e,t){if("core/video"!==t)return e;const{available:r}=(0,n.FB)(o);return r?{...e,edit:(0,a.A)(e.edit)}:e}},5146:(e,t,r)=>{"use strict";r.d(t,{A:()=>A});var n=r(82170),a=r(56427),o=r(27723),s=r(67858),i=r(84605);const __=o.__,l="videopress/video-chapters",c=!!window?.Jetpack_Editor_Initial_State?.available_blocks[l],u=31;function A({isRequestingVideoItem:e}){const{attributes:t,setAttributes:r}=(0,i.A)();if(!c)return null;const{title:o,description:A}=t,g=(0,s.m)(l),d=A?.length?A.split("\n").map((e=>Math.ceil(e.length/u)||1)).reduce(((e,t)=>e+t),0):4,p=Math.min(12,Math.max(d,4));return(0,n.createElement)(a.PanelBody,{title:__("Details","jetpack"),className:g?"is-beta":""},(0,n.createElement)(a.TextControl,{label:__("Title","jetpack"),value:o,placeholder:__("Video title","jetpack"),onChange:e=>{r({title:e})},disabled:e}),(0,n.createElement)(a.TextareaControl,{label:__("Description","jetpack"),value:A,placeholder:__("Video description","jetpack"),onChange:e=>{r({description:e})},disabled:e,rows:p}))}},83112:(e,t,r)=>{"use strict";r.d(t,{A:()=>A});var n=r(82170),a=r(94715),o=r(29491),s=r(86087),i=r(5146),l=r(52753),c=r(95501),u=r(7345);const A=(0,o.createHigherOrderComponent)((e=>t=>{const{attributes:r,setAttributes:o}=t,[A,g]=(0,l.A)(r?.id),[d]=(0,c.n)(r);return(0,s.useEffect)((()=>{if(!A)return;const e={};A?.title&&(e.title=A.title),A?.description&&(e.description=A.description),Object.keys(e).length&&(o(e),d(e))}),[A,o,d]),u.j&&"core/video"!==!t.name&&t.attributes?.guid?(0,n.createElement)(n.Fragment,null,(0,n.createElement)(a.InspectorControls,null,(0,n.createElement)(i.A,{isRequestingVideoItem:g})),(0,n.createElement)(e,t)):(0,n.createElement)(e,t)}))},84605:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(94715),a=r(47143);function o(){const{clientId:e,attributes:t}=(0,a.useSelect)((e=>{const t=e(n.store).getSelectedBlockClientId();return{clientId:t,attributes:t?e("core/block-editor").getBlockAttributes(t):void 0}})),{updateBlockAttributes:r}=(0,a.useDispatch)(n.store);return{clientId:e,attributes:t,setAttributes:t=>r(e,t)}}},95501:(e,t,r)=>{"use strict";r.d(t,{n:()=>m});var n=r(1455),a=r.n(n),o=r(29491),s=r(3582),i=r(47143),l=r(43656),c=r(86087),u=r(27723),A=r(96247),g=r(17900),d=r(17204),p=r(97393);const __=u.__;function m(e){const{id:t,title:r,description:n,guid:u}=e,m=(0,i.useSelect)((e=>e(l.store).isSavingPost()),[]),h=(0,o.usePrevious)(m),E=(0,i.useDispatch)(s.store).invalidateResolution,[f,C]=(0,c.useState)(),B=(0,c.useCallback)((e=>{C((t=>({...t,...e})))}),[]);(0,c.useEffect)((()=>{C({title:r,description:n})}),[]);const b=function(e){return t=>new Promise(((r,n)=>{a()({path:"/wpcom/v2/videopress/meta",method:"POST",data:{id:e,...t}}).then((e=>{if(200!==e?.data)return n(e);r(e)})).catch(n)}))}(t);return(0,c.useEffect)((()=>{if(!m||h)return;if(!t)return;const a={};if(f?.title!==r&&(a.title=r),f?.description!==n&&(a.description=n),!Object.keys(a).length)return;if(b(a).then((()=>B({title:r,description:n}))),!a?.description?.length)return;const o=(0,d.Ay)(a.description);if(!o?.length)return;const s={label:__("English","jetpack"),srcLang:"en",kind:"chapters",tmpFile:(0,p.Ay)(a.description)};(0,A.n)(s,u).then((()=>{const t=(0,g.e)(u,e);E("getEmbedPreview",[t])}))}),[m,h,r,f?.title,f?.description,n,b,B,e,E,t,u]),[B]}},52753:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(1455),a=r.n(n),o=r(86087);function s(e){const[t,r]=(0,o.useState)({}),[n,s]=(0,o.useState)(!1);return(0,o.useEffect)((()=>{e&&(s(!0),async function(){try{const t=await a()({path:`/wp/v2/media/${e}`});r(t?.jetpack_videopress||{}),s(!1)}catch(e){throw s(!1),new Error(e)}}())}),[e]),[t,n]}},7345:(e,t,r)=>{"use strict";r.d(t,{A:()=>o,j:()=>a});var n=r(83112);const a=!!window?.Jetpack_Editor_Initial_State?.available_blocks["videopress/video-chapters"];function o(e,t){if(!a)return e;if("core/video"!==t)return e;const r={...e.attributes,title:{type:"string"},description:{type:"string"}};return{...e,attributes:r,edit:(0,n.A)(e.edit)}}},17204:(e,t,r)=>{"use strict";function n(e){return e.split("\n").map((e=>function(e){const t=/(?<timeBlock>\(?(?<time>\d{1,2}:\d{2}:\d{2}|\d{1,2}:\d{2})\)?)/.exec(e);if(null==t||null==t.groups)return null;const{groups:{timeBlock:r,time:n}}=t,a=e.indexOf(r),o=(a<(e.length-r.length)/2?e.substring(a+r.length,e.length):e.substring(0,a)).trim().replace(/(\s-$)|(^-\s)/,""),s=n.split(":");return 1===s[0].length&&(s[0]=`0${s[0]}`),2===s.length&&s.unshift("00"),{startAt:s.join(":"),title:o}}(e))).filter((e=>null!==e)).sort(((e,t)=>e.startAt.localeCompare(t.startAt)))}r.d(t,{$k:()=>n,Ay:()=>n})},97393:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>o});var n=r(17204);function a(e){const t=Math.floor(e/36e5);let r=e-36e5*t;const n=Math.floor(r/6e4);r-=6e4*n;return[t,n,Math.floor(r/1e3)].map((e=>e<10?`0${e}`:e)).join(":")}function o(e,t){const r=function(e,t=359999e3){const r=(0,n.$k)(e);if(0===r.length)return null;let o="WEBVTT\n",s=1;for(const[e,n]of r.entries()){const i=0===e?"000":"001",l=e<r.length-1?r[e+1].startAt:a(t);o+=`\n${s++}\n${n.startAt}.${i} --\x3e ${l}.000\n${n.title}\n`}return o}(e,t);return r?new File([r],"chapters.vtt",{type:"text/vtt"}):null}},84854:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(82170),a=r(96865),o=r(56427),s=r(27723);const __=s.__;function i({state:e,onUpload:t,onCancel:r,onRecord:s,onPause:i,onResume:l,onDone:c}){return(0,n.createElement)("div",{className:"jetpack-ai-voice-to-content__action-buttons"},["inactive","error","validating"].includes(e)&&(0,n.createElement)(o.Button,{className:"jetpack-ai-voice-to-content__button",icon:a.Vo,variant:"secondary",onClick:s},__("Begin recording","jetpack")),["recording"].includes(e)&&(0,n.createElement)(o.Button,{className:"jetpack-ai-voice-to-content__button",icon:a.ni,variant:"secondary",onClick:i},__("Pause recording","jetpack")),["paused"].includes(e)&&(0,n.createElement)(o.Button,{className:"jetpack-ai-voice-to-content__button",icon:a.Vo,variant:"secondary",onClick:l},__("Resume recording","jetpack")),["inactive","error","validating"].includes(e)&&(0,n.createElement)(o.FormFileUpload,{accept:".mp3,.mpeg,.mpga,.ogg,.flac,.m4a,.mp4,.wav,.wave,.webm",onChange:t,variant:"secondary",className:"jetpack-ai-voice-to-content__button"},__("Upload audio","jetpack")),["recording","paused"].includes(e)&&(0,n.createElement)(o.Button,{className:"jetpack-ai-voice-to-content__button",variant:"primary",onClick:c},__("Done","jetpack")),["recording","paused","processing"].includes(e)&&(0,n.createElement)(o.Button,{className:"jetpack-ai-voice-to-content__button",variant:"secondary",onClick:r},__("Cancel","jetpack")))}},41004:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(82170),a=r(96865),o=r(27723),s=r(73723);const __=o.__;function i({state:e,error:t=null,analyser:r,duration:o=0}){return"inactive"===e?(0,n.createElement)("div",{className:"jetpack-ai-voice-to-content__information"},__("File size limit: 25MB. Recording time limit: 25 minutes.","jetpack")):"recording"===e?(0,n.createElement)("div",{className:"jetpack-ai-voice-to-content__audio"},(0,n.createElement)(a.z3,{className:"jetpack-ai-voice-to-content__audio--duration",duration:o}),(0,n.createElement)(s.A,{analyser:r,paused:!1}),(0,n.createElement)("span",{className:"jetpack-ai-voice-to-content__information"},__("Recording…","jetpack"))):"paused"===e?(0,n.createElement)("div",{className:"jetpack-ai-voice-to-content__audio"},(0,n.createElement)(a.z3,{className:"jetpack-ai-voice-to-content__audio--duration",duration:o}),(0,n.createElement)(s.A,{analyser:r,paused:!0}),(0,n.createElement)("span",{className:"jetpack-ai-voice-to-content__information"},__("Paused","jetpack"))):"processing"===e?(0,n.createElement)("div",{className:"jetpack-ai-voice-to-content__information"},__("Uploading and transcribing audio…","jetpack")):"validating"===e?(0,n.createElement)("div",{className:"jetpack-ai-voice-to-content__information"},__("Validating audio…","jetpack")):"error"===e?(0,n.createElement)("div",{className:"jetpack-ai-voice-to-content__information--error"},t):null}},73723:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(82170),a=r(86087);function o({analyser:e,paused:t=!1}){const r=(0,a.useRef)(null),o=(0,a.useRef)(t),s=(0,a.useRef)(null);return(0,a.useEffect)((()=>{o.current=t}),[t]),(0,a.useEffect)((()=>{e&&r.current&&(s.current&&s.current(),s.current=function(e,t,r){const n=t.getContext("2d");let a=!1;if(!n)return;e.fftSize=Math.pow(2,13);const o=e.fftSize,s=new Float32Array(o),i=o/10,{width:l,height:c}=t,u=c/2;n.lineWidth=4,n.lineCap="round",n.strokeStyle=getComputedStyle(t).getPropertyValue("--jp-green-50")||"#008710";const A=()=>{n.clearRect(0,0,l,c),e.getFloatTimeDomainData(s);for(let e=1;e<=10;e++){let t=0;r.current||(t=s.slice(e*i,(e+1)*i).reduce(((e,t)=>e+t),0)/i,t*=2048,t=Math.abs(t),t=Math.min(16,Math.max(0,t))),n.beginPath(),n.moveTo(2+6*e,u-t),n.lineTo(2+6*e,u+t),n.stroke()}setTimeout((()=>{a||requestAnimationFrame(A)}),50)};return A(),()=>{a=!0}}(e,r.current,o))}),[e,r,o]),(0,a.useEffect)((()=>()=>{s.current&&s.current()}),[]),(0,n.createElement)("canvas",{className:"jetpack-ai-voice-to-content__oscilloscope",width:70,height:38,ref:r})}},42279:(e,t,r)=>{"use strict";r.d(t,{A:()=>C});var n=r(96072),a=r.n(n),o=r(82170),s=r(96865),i=r(50723),l=r(85985),c=r(56427),u=r(47143),A=r(86087),g=r(27723),d=r(53512),p=(r(51609),r(84854)),m=r(41004),h=r(59926),E=r(22228);const __=g.__,f=(e,t,r)=>t?"validating":e?"processing":r;function C({clientId:e}){const[t,r]=(0,A.useState)(null),{removeBlock:n}=(0,u.useDispatch)("core/block-editor"),{getBlocks:g}=(0,u.useSelect)((e=>e("core/editor")),[]),C=(0,A.useCallback)((()=>{setTimeout((()=>{n(e)}),100)}),[n,e]),{tracks:B}=(0,l.st)(),{isValidatingAudio:b,validateAudio:k}=(0,s.rr)(),{upsertTranscription:y}=(0,E.A)(),{isCreatingTranscription:v,createTranscription:I,cancelTranscription:_}=(0,h.A)({onReady:e=>{y(e);const t=g();for(let e=0;e<2;e++)"core/paragraph"===t[e].name&&""===t[e].attributes?.content&&n(String(t[e].clientId));w()},onUpdate:e=>{y(e)},onError:e=>{j(e)}}),w=()=>{_(),C()},{state:Q,controls:S,error:x,onError:j,duration:L,analyser:N}=(0,s.be)({onDone:e=>{T(e)}}),T=(0,A.useCallback)((e=>{e&&r(e)}),[r]);(0,A.useEffect)((()=>{t&&k(t,(e=>{B.recordEvent("jetpack_ai_voice_to_content_transcription_started",{post_processing_action:s.uH,type:e.isFile?"upload":"record",audio_duration:e.duration,audio_file_size:e.size}),I(t,s.uH)}),j)}),[t,B,k,I,j]);const{start:R,pause:P,resume:D,stop:M,reset:F}=S,O=(0,A.useCallback)((e=>{if(e.currentTarget.files.length>0){const t=e.currentTarget.files[0];T(t)}}),[T]),U=(0,A.useCallback)((()=>{_(),F()}),[_,F]),H=(0,A.useCallback)((()=>{R(1e3)}),[R]),z=(0,A.useCallback)((()=>{P()}),[P]),q=(0,A.useCallback)((()=>{D()}),[D]),V=(0,A.useCallback)((()=>{M()}),[M]),G=f(v,b,Q);return(0,o.createElement)(c.Modal,{onRequestClose:w,title:__("Jetpack AI Voice to content","jetpack"),className:"jetpack-ai-voice-to-content__modal",shouldCloseOnEsc:!1,shouldCloseOnClickOutside:!1},(0,o.createElement)(i.Ay,null,(0,o.createElement)("div",{className:"jetpack-ai-voice-to-content__wrapper"},(0,o.createElement)("div",{className:"jetpack-ai-voice-to-content__body"},(0,o.createElement)("span",{className:"jetpack-ai-voice-to-content__description"},__("Transform your spoken words into a post ready to publish with AI.","jetpack")),(0,o.createElement)("div",{className:"jetpack-ai-voice-to-content__contextual-row"},(0,o.createElement)(m.A,{state:G,error:x,duration:L,analyser:N})),(0,o.createElement)(p.A,{state:G,onUpload:O,onCancel:U,onRecord:H,onPause:z,onResume:q,onDone:V})),(0,o.createElement)("div",{className:"jetpack-ai-voice-to-content__footer"},(0,o.createElement)(c.Button,{variant:"link",className:"jetpack-ai-voice-to-content__feedback-button",href:"https://a8c.slack.com/archives/C054LN8RNVA",target:"_blank"},(0,o.createElement)("span",null,__("Provide feedback","jetpack")),(0,o.createElement)(c.Icon,a()({icon:d.A},{className:"icon"})))))))}},72718:(e,t,r)=>{"use strict";var n=r(94375),a=r(15210),o=r(42279);(0,n.M)(a,{edit:o.A,save:()=>null})},59926:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(96865),a=r(86087),o=r(10067);const s=r.n(o)()("voice-to-content:use-transcription-creator"),i="voice-to-content";function l({onReady:e,onUpdate:t,onError:r}){const o=(0,a.useRef)(null),l=(0,a.useRef)(null),{processTranscription:c,cancelTranscriptionProcessing:u,isProcessingTranscription:A}=(0,n.xA)({feature:i,onReady:e,onUpdate:t,onError:t=>{if(o.current)return e(o.current);s("Transcription post-processing error: ",t)}}),g=(0,a.useCallback)((e=>{o.current=e,l.current&&c(l.current,e)}),[c]),{transcribeAudio:d,cancelTranscription:p,isTranscribingAudio:m}=(0,n.E0)({feature:i,onReady:g,onError:r});return{isCreatingTranscription:m||A,createTranscription:(0,a.useCallback)(((e,t)=>{if(e&&t)return l.current=t,d(e)}),[d]),cancelTranscription:(0,a.useCallback)((()=>{p(),u()}),[p,u])}}},22228:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(96865),a=r(74997),o=r(47143),s=r(86087),i=r(10067);const l=r.n(i)()("voice-to-content:use-transcription-inserter");function c(){const{updateBlockAttributes:e,insertBlocks:t,replaceInnerBlocks:r}=(0,o.useDispatch)("core/block-editor"),i=(0,s.useRef)([]);return{upsertTranscription:(0,s.useCallback)((o=>{l("Upserting transcription");const s=(0,n._E)({content:o||""}),c=(0,a.rawHandler)({HTML:s});for(let n=0;n<c.length;n++)if(n<i.current.length){const t=i.current[n].clientId,a=i.current[n].attributes?.content;c[n].attributes?.content&&a!==c[n].attributes?.content&&e(t,{content:c[n].attributes.content}),c[n].innerBlocks.length>0&&r(t,c[n].innerBlocks)}else t([c[n]],void 0,void 0,!0,null),i.current.push(c[n])}),[i,t,e,r])}}},91725:(e,t,r)=>{"use strict";r.d(t,{e:()=>c});var n=r(82170),a=r(85985),o=r(56427),s=r(27723),i=r(16344);const __=s.__,l=(0,a.sh)(i),c=({changeStatus:e,isLoading:t,isModuleActive:r})=>(0,n.createElement)(o.Placeholder,{icon:l,instructions:__("You'll need to activate the WordAds feature to use this block.","jetpack"),label:i.title},(0,n.createElement)(o.Button,{disabled:r||t,isBusy:t,onClick:()=>e(!0),variant:"secondary"},t?__("Activating WordAds","jetpack"):__("Activate WordAds","jetpack",0)),(0,n.createElement)("div",{className:"membership-button__disclaimer"},(0,n.createElement)(o.ExternalLink,{href:"https://jetpack.com/support/ads/"},__("Learn more about the WordAds feature.","jetpack"))))},78473:(e,t,r)=>{"use strict";r.d(t,{B:()=>s});var n=r(82170),a=r(11876),o=r(56427);const s=()=>(0,n.createElement)(o.Placeholder,null,(0,n.createElement)(o.Flex,{gap:2,direction:"column",style:{width:"100%"}},(0,n.createElement)(o.Flex,{gap:4},(0,n.createElement)(o.FlexItem,null,(0,n.createElement)(a.A,{width:30,height:30})),(0,n.createElement)(o.FlexBlock,null,(0,n.createElement)(a.A,{width:"90%",height:30}))),(0,n.createElement)(o.Flex,{style:{marginTop:12}},(0,n.createElement)(o.FlexBlock,null,(0,n.createElement)(a.A,{height:30,width:"60%"}))),(0,n.createElement)(o.Flex,{style:{marginTop:12}},(0,n.createElement)(o.FlexBlock,null,(0,n.createElement)(a.A,{width:150,height:50}))),(0,n.createElement)(o.Flex,{style:{marginTop:18}},(0,n.createElement)(o.FlexBlock,null,(0,n.createElement)(a.A,{width:"90%",height:16})))))},78458:(e,t,r)=>{"use strict";r.d(t,{H:()=>s});var n=r(82170),a=r(56427),o=r(27723);const __=o.__,s=[{height:250,icon:(0,n.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,n.createElement)(a.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,n.createElement)(a.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zm-7-2h2V7h-4v2h2z"})),name:__("Rectangle 300x250","jetpack"),tag:"mrec",width:300,editorPadding:30},{height:90,icon:(0,n.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,n.createElement)(a.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,n.createElement)(a.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zm-4-4h-4v-2h2c1.1 0 2-.89 2-2V9c0-1.11-.9-2-2-2H9v2h4v2h-2c-1.1 0-2 .89-2 2v4h6v-2z"})),name:__("Leaderboard 728x90","jetpack"),tag:"leaderboard",width:728,editorPadding:60},{height:50,icon:(0,n.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,n.createElement)(a.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,n.createElement)(a.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zm-4-4v-1.5c0-.83-.67-1.5-1.5-1.5.83 0 1.5-.67 1.5-1.5V9c0-1.11-.9-2-2-2H9v2h4v2h-2v2h2v2H9v2h4c1.1 0 2-.89 2-2z"})),name:__("Mobile Leaderboard 320x50","jetpack"),tag:"mobile_leaderboard",width:320,editorPadding:100},{height:600,icon:(0,n.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,n.createElement)(a.Path,{fill:"none",d:"M.04 0h24v24h-24V0z"}),(0,n.createElement)(a.Path,{d:"M19.04 3h-14c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16h-14V5h14v14zm-6-2h2V7h-2v4h-2V7h-2v6h4z"})),name:__("Wide Skyscraper 160x600","jetpack"),tag:"wideskyscraper",width:160,editorPadding:30}]},79577:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(82170),a=r(94715),o=r(56427),s=r(27723),i=r(78971);const __=s.__,l=({value:e,onChange:t})=>(0,n.createElement)(o.PanelBody,{title:__("Visibility","jetpack")},(0,n.createElement)(o.ToggleControl,{__nextHasNoMarginBottom:!0,className:"jetpack-wordads__mobile-visibility",checked:!!e,label:__("Hide on mobile","jetpack"),help:__("Hides this block for site visitors on mobile devices.","jetpack"),onChange:t})),c=({attributes:{format:e,hideMobile:t},setAttributes:r})=>(0,n.createElement)(n.Fragment,null,(0,n.createElement)(a.BlockControls,null,(0,n.createElement)(i.A,{value:e,onChange:e=>r({format:e})})),(0,n.createElement)(a.InspectorControls,null,(0,n.createElement)(l,{value:t,onChange:e=>r({hideMobile:!!e})})))},27695:(e,t,r)=>{"use strict";r.d(t,{A:()=>m});var n=r(82170),a=r(50723),o=r(85985),s=r(94715),i=r(91725),l=r(78473),c=r(78458),u=r(79577),A=r(60651),g=r(26408),d=r(68364),p=r(90244);const m=({attributes:e,setAttributes:t})=>{const r=(0,s.useBlockProps)(),{format:m}=e,{isLoadingModules:h,isChangingStatus:E,isModuleActive:f,changeStatus:C}=(0,o.q7)("wordads"),B=c.H.find((({tag:e})=>e===m)),b=e=>{switch(e){case"leaderboard":return p;case"mobile_leaderboard":return d;case"wideskyscraper":return A;default:return g}};let k;return k=f?(0,n.createElement)(n.Fragment,null,(0,n.createElement)(u.A,{attributes:e,setAttributes:t}),(0,n.createElement)("div",{className:`wp-block-jetpack-wordads jetpack-wordads-${m}`},(0,n.createElement)("div",{className:"jetpack-wordads__ad",style:{width:B.width,height:B.height,backgroundImage:`url( ${b(m)} )`,backgroundSize:"cover"}}))):h?(0,n.createElement)(a.Ay,null,(0,n.createElement)(l.B,null)):(0,n.createElement)(i.e,{changeStatus:C,isModuleActive:f,isLoading:E}),(0,n.createElement)("div",r,k)}},99398:(e,t,r)=>{"use strict";var n=r(94375),a=r(16344),o=r(27695);(0,n.M)(a,{edit:o.A,save:()=>null})},78971:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(82170),a=r(56427),o=r(27723),s=r(78458);const i=(0,o.__)("Pick an ad format","jetpack");function l({value:e,onChange:t}){return(0,n.createElement)(a.Dropdown,{placement:"bottom-start",renderToggle:({onToggle:e,isOpen:t})=>(0,n.createElement)(a.ToolbarGroup,{controls:[{icon:(0,n.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,n.createElement)(a.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,n.createElement)(a.Path,{d:"M1 9h2V7H1v2zm0 4h2v-2H1v2zm0-8h2V3c-1.1 0-2 .9-2 2zm8 16h2v-2H9v2zm-8-4h2v-2H1v2zm2 4v-2H1c0 1.1.9 2 2 2zM21 3h-8v6h10V5c0-1.1-.9-2-2-2zm0 14h2v-2h-2v2zM9 5h2V3H9v2zM5 21h2v-2H5v2zM5 5h2V3H5v2zm16 16c1.1 0 2-.9 2-2h-2v2zm0-8h2v-2h-2v2zm-8 8h2v-2h-2v2zm4 0h2v-2h-2v2z"})),title:i,onClick:e,extraProps:{"aria-expanded":t},className:"wp-block-jetpack-wordads__format-picker-icon"}]}),renderContent:({onClose:r})=>(0,n.createElement)(a.NavigableMenu,{className:"wp-block-jetpack-wordads__format-picker"},s.H.map((({tag:o,name:s,icon:i})=>(0,n.createElement)(a.MenuItem,{className:o===e?"is-active":void 0,icon:i,isSelected:o===e,key:o,onClick:()=>{t(o),r()},role:"menuitemcheckbox"},s))))})}},67858:(e,t,r)=>{"use strict";r.d(t,{m:()=>A});var n=r(96072),a=r.n(n),o=r(82170),s=r(1455),i=r.n(s),l=r(29491),c=r(52619),u=(r(79366),r(75181),r(14435),r(21929),r(78276),r(80076),r(15946),r(34180),r(56414),r(12088),r(16521),r(20831),r(73391));function A(e){if(!u)return!1;const t=u.beta||[],r=e.replace(/jetpack\//,"");return t.includes(e)||t.includes(r)}i().use(((e,t)=>{if("cors"===e.mode)return t(e);if(e.url)try{const r=new URL(e.url,location.href);if(r.protocol!==location.protocol||r.hostname!==location.hostname||r.port!==location.port)return t(e)}catch{return t(e)}return e.headers||(e.headers={}),e.headers["x-wp-api-fetch-from-editor"]="true",t(e)})),(0,c.addFilter)("blocks.registerBlockType","jetpack/label-beta-blocks-title",(function(e,t){if(!A(t))return e;const{title:r,keywords:n}=e,a="(beta)",o="beta",s={...e};return r&&(s.title=r.toLowerCase().endsWith(a)?r:`${e.title} ${a}`),Array.isArray(n)&&(s.keywords=n.includes(o)?n:[...n,o]),s}));const g=(0,l.createHigherOrderComponent)((e=>t=>{if(t?.clientRootId)return(0,o.createElement)(e,t);const{name:r}=t;return A(r)?(0,o.createElement)(e,a()({},t,{className:"is-beta-extension"})):(0,o.createElement)(e,t)}),"withBetaClassName");(0,c.addFilter)("editor.BlockListBlock","jetpack/label-beta-extensions",g)},24430:(e,t,r)=>{"use strict";var n=r(74997),a=r(27723),o=r(12199);const __=a.__,s={name:"descript",title:"Descript",icon:o.QB,keywords:[__("descript","jetpack")],description:__("Embed a Descript Item.","jetpack"),patterns:[/^https:\/\/share.descript.com\/(view|embed)\/\w+/i],attributes:{providerNameSlug:"descript",responsive:!0}};(0,n.registerBlockVariation)("core/embed",s)},30710:(e,t,r)=>{"use strict";var n=r(52619),a=r(27723),o=r(88659),s=r(12199);const __=a.__,_x=a._x,i={name:"facebook",title:__("Facebook Embed","jetpack"),icon:{src:s.ik,foreground:(0,o.V)()},keywords:[_x("social","block search term","jetpack")],description:__("Embed a Facebook post.","jetpack"),patterns:[/^https?:\/\/www\.facebook.com\/.+/i],attributes:{providerNameSlug:"facebook",previewable:!1,responsive:!0}};(0,n.addFilter)("blocks.registerBlockType","reactivateFacebookEmbedBlockVariation",(function(e,t){if("core/embed"!==t||!e.variations)return e;const r=e.variations.filter((e=>e.name!==i.name));return e.variations=[...r,i],e}))},80076:(e,t,r)=>{"use strict";r(30710),r(65052),r(43887),r(60068),r(24430)},65052:(e,t,r)=>{"use strict";var n=r(52619),a=r(27723),o=r(88659),s=r(12199),i=r(21604);const __=a.__,_x=a._x,l={name:"instagram",title:__("Instagram Embed","jetpack"),icon:{src:s.oW,foreground:(0,o.V)()},keywords:[_x("image","block search term","jetpack"),_x("social","block search term","jetpack")],description:__("Embed an Instagram post.","jetpack"),patterns:[/^https?:\/\/(www\.)?instagr(\.am|am\.com)\/.+/i],attributes:{providerNameSlug:"instagram",responsive:!0}};(0,n.addFilter)("blocks.registerBlockType","reactivateInstagramEmbedBlockVariation",(function(e,t){if("core/embed"!==t||!e.variations||!(0,i.A)())return e;const r=e.variations.filter((e=>e.name!==l.name));return e.variations=[...r,l],e}))},43887:(e,t,r)=>{"use strict";var n=r(74997),a=r(27723),o=r(12199);const __=a.__,s={name:"loom",title:"Loom",icon:o.T3,keywords:[__("video","jetpack")],description:__("Embed a Loom video.","jetpack"),patterns:[/^https?:\/\/(www\.)?loom\.com\/share\/.+/i],attributes:{providerNameSlug:"loom",responsive:!0}};(0,n.registerBlockVariation)("core/embed",s)},60068:(e,t,r)=>{"use strict";var n=r(74997),a=r(27723),o=r(12199);const __=a.__,s={name:"smartframe",title:"SmartFrame",icon:o.M4,keywords:[__("smartframe","jetpack")],description:__("Embed a SmartFrame Image.","jetpack"),patterns:[/^https?:\/\/(.*?).smartframe.(io|net)\/.*/i],attributes:{providerNameSlug:"smartframe",responsive:!0}};(0,n.registerBlockVariation)("core/embed",s)},26760:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(82170),a=r(96865),o=r(56427),s=r(86087),i=r(27723);const __=i.__;function l({clickHandler:e,showButtonText:t=!1}){const r=(0,s.useCallback)((()=>{e?.()}),[e]),i=t?__("Generate","jetpack"):"";return(0,n.createElement)(n.Fragment,null,(0,n.createElement)(o.ToolbarButton,{showTooltip:!0,onClick:r,label:__("Generate with AI","jetpack"),icon:a.cj},i))}},24255:(e,t,r)=>{"use strict";r.d(t,{Mb:()=>a,TC:()=>o,tF:()=>n});const n="site-logo-block-extension",a="block-editor",o="ai-assistant-site-logo-support"},15946:(e,t,r)=>{"use strict";var n=r(82170),a=r(96865),o=r(94715),s=r(74997),i=r(29491),l=r(47143),c=r(86087),u=r(52619),A=r(48499),g=r(26760),d=r(24255);const p=(0,i.createHigherOrderComponent)((e=>t=>{const[r,s]=(0,c.useState)(!1),{setLogo:i}=(()=>{const e=(0,l.useDispatch)("core").editEntityRecord,t=(0,c.useCallback)((t=>{e("root","site",void 0,{site_logo:t})}),[e]),r=(0,c.useCallback)((t=>{e("root","site",void 0,{site_icon:t})}),[e]);return{setLogo:(0,c.useCallback)(((e,n)=>{t(e),n&&r(e)}),[t,r])}})(),u=t?.attributes?.shouldSyncIcon||!1,A=(0,c.useCallback)((()=>{s(!0)}),[]),p=(0,c.useCallback)((()=>{s(!1)}),[]),m=(0,c.useCallback)((e=>{e&&i(e,u)}),[i,u]);(0,c.useEffect)((()=>()=>{p()}),[p]);const h=(()=>{const e=(0,l.useSelect)((e=>e("core").getEntityRecord("root","site")),[]);return{ID:parseInt(window?.Jetpack_Editor_Initial_State?.wpcomBlogId),URL:e?.url,domain:window?.Jetpack_Editor_Initial_State?.siteFragment,name:e?.title,description:e?.description,siteLogo:e?.site_logo||0}})();return(0,n.createElement)(n.Fragment,null,(0,n.createElement)(e,t),(0,n.createElement)(o.BlockControls,{group:"block"},(0,n.createElement)(g.A,{showButtonText:!h?.siteLogo,clickHandler:A})),(0,n.createElement)(a.Tg,{isOpen:r,onClose:p,onApplyLogo:m,context:d.Mb,placement:d.tF,siteDetails:h}))}),"SiteLogoEditWithAiComponents");function m(e){if("core/site-logo"!==e)return!1;if(!(0,s.getBlockType)("jetpack/ai-assistant"))return!1;if(!(0,A.C)(d.TC))return!1;const{getHiddenBlockTypes:t}=(0,l.select)("core/edit-post")||{};return!(t?.()||[]).includes("jetpack/ai-assistant")}(0,u.addFilter)("blocks.registerBlockType","jetpack/site-logo-with-ai-support",(function(e,t){return m(t)?{...e,edit:p(e.edit)}:e}),100)},34180:(e,t,r)=>{"use strict";var n=r(74997),a=r(52619),o=r(94250);const s={from:[{type:"block",isMultiBlock:!1,blocks:["core/legacy-widget"],isMatch:({idBase:e,instance:t})=>!!t?.raw&&"jetpack_widget_social_icons"===e,transform:({instance:e})=>{let t=[];return e.raw.icons.forEach((e=>{const r=new URL(e.url.includes(":")?e.url:"https://"+e.url),a=r.hostname?r.hostname:r.protocol,s=o.A.find((e=>a.includes(e.url)||e.url.includes(a))),i=(0,n.createBlock)("core/social-link",{service:s?s.name:"chain",url:e.url});t=[...t,i]})),(0,n.createBlock)("core/social-links",{},t)}}]};(0,a.addFilter)("blocks.registerBlockType","addTransformToSocialLinksWidget",(function(e,t){return"core/social-links"!==t||(e.transforms=s),e}))},94250:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=[{name:"wordpress",url:["wordpress."]},{name:"fivehundredpx",url:["500px.com"]},{name:"amazon",url:["amazon."]},{name:"bandcamp",url:["bandcamp.com"]},{name:"behance",url:["behance.net"]},{name:"codepen",url:["codepen.io"]},{name:"deviantart",url:["deviantart.com"]},{name:"dribbble",url:["dribbble.com"]},{name:"dropbox",url:["dropbox.com"]},{name:"etsy",url:["etsy.com"]},{name:"facebook",url:["facebook.com"]},{name:"flickr",url:["flickr.com"]},{name:"foursquare",url:["foursquare.com"]},{name:"goodreads",url:["goodreads.com"]},{name:"google",url:["google."]},{name:"github",url:["github.com"]},{name:"instagram",url:["instagram.com"]},{name:"lastfm",url:["last.fm"]},{name:"linkedin",url:["linkedin.com"]},{name:"mail",url:["mailto:"]},{name:"linkedin",url:["linkedin.com"]},{name:"mastodon",url:["mastodon.social"]},{name:"meetup",url:["meetup.com"]},{name:"medium",url:["medium.com"]},{name:"patreon",url:["patreon.com"]},{name:"pinterest",url:["pinterest."]},{name:"pocket",url:["getpocket.com"]},{name:"reddit",url:["reddit.com"]},{name:"skype",url:["skype.com","skype:"]},{name:"snapchat",url:["snapchat.com"]},{name:"soundcloud",url:["soundcloud.com"]},{name:"spotify",url:["spotify.com"]},{name:"telegram",url:["telegram.me","t.me"]},{name:"tiktok",url:["tiktok.com"]},{name:"tumblr",url:["tumblr.com"]},{name:"twitch",url:["twitch.tv"]},{name:"twitter",url:["twitter.com"]},{name:"vimeo",url:["vimeo.com"]},{name:"vk",url:["vk.com"]},{name:"yelp",url:["yelp.com"]},{name:"youtube",url:["youtube.com"]}]},95104:(e,t,r)=>{"use strict";r.d(t,{b:()=>s,j:()=>o});var n=r(82170),a=r(86087);const o=(0,a.createContext)(),s=({onBannerVisibilityChange:e,hasParentBanner:t,children:r})=>(0,n.createElement)(o.Provider,{value:{onBannerVisibilityChange:e,hasParentBanner:t},children:r})},56414:(e,t,r)=>{"use strict";var n=r(85985),a=r(98490),o=r.n(a),s=r(52619),i=r(27723),l=r(66087),c=r(6650),u=r(26356),A=r(19785),g=r(3120);const __=i.__,d=[];(0,s.addFilter)("blocks.registerBlockType","jetpack/paid-block",((e,t)=>((0,n.W4)(t)&&(d.includes(t)||d.push(t),e.keywords=(0,l.uniq)([...e.keywords,"premium",__("premium","jetpack")]),(0,n.sH)(t)||(e.icon=(0,A.A)(e.icon)),e.attributes.shouldDisplayFrontendBanner||(e.attributes.shouldDisplayFrontendBanner={type:"boolean",default:!0}),"core/cover"!==t&&(e.supports={...e.supports,__experimentalExposeControlsToChildren:!0})),e))),(0,s.addFilter)("blocks.registerBlockType","jetpack/paid-block-with-upgrade-banner",g.e),(0,s.addFilter)("editor.MediaPlaceholder","jetpack/paid-block-media-placeholder",c.A),(0,s.addFilter)("editor.MediaReplaceFlow","jetpack/paid-block-media-placeholder",u.A),o()((function(){(0,n.Dk)()&&document.body.classList.add("jetpack-enable-upgrade-nudge")}))},6650:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});var n=r(96072),a=r.n(n),o=r(82170),s=r(85985),i=r(94715),l=r(29491),c=r(86087),u=r(333),A=r(95104);const g=(0,l.createHigherOrderComponent)((e=>t=>{const{name:r}=(0,i.useBlockEditContext)(),n=(0,s.GT)(r);if(!n?.mediaPlaceholder||!(0,s.W4)(r))return(0,o.createElement)(e,t);const{fileType:l}=n,{onError:g}=t,{onBannerVisibilityChange:d}=(0,c.useContext)(A.j),p=(0,c.useCallback)((e=>d(e?.length&&(0,u.wc)(e[0],l))),[l,d]),m=(0,c.useCallback)((e=>{const t=e?.[0]?.props?.children;return(0,u.wc)(t,l)?p([t]):g(e)}),[p,l,g]);return(0,o.createElement)("div",{className:"paid-block-media-placeholder"},(0,o.createElement)(e,a()({},t,{onFilesPreUpload:p,onError:m})))}),"withMediaPlaceholderUpgradable")},26356:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});var n=r(96072),a=r.n(n),o=r(82170),s=r(85985),i=r(94715),l=r(29491),c=r(86087),u=r(333),A=r(95104);const g=(0,l.createHigherOrderComponent)((e=>t=>{const{name:r}=(0,i.useBlockEditContext)(),n=(0,s.GT)(r),l=(0,c.useRef)(void 0);if(!n?.mediaReplaceFlow||!(0,s.W4)(r))return(0,o.createElement)(e,t);const{fileType:g}=n,{onBannerVisibilityChange:d}=(0,c.useContext)(A.j);return(0,o.createElement)(e,a()({},t,{onFilesUpload:e=>{l.current=e?.length?e[0]:null,d(e?.length&&(0,u.wc)(e[0],g))},createNotice:(e,r,n)=>{if((0,u.wc)(l.current,g))return l.current=null,null;t.createNotice(e,r,n)}}))}),"withMediaReplaceFlowUpgradable")},46367:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(82170),a=r(56427);const o=({cx:e=0,cy:t=0,r:r=4,fill:o="#e34c84",stroke:s="#ffffff",strokeWidth:i="2"})=>(0,n.createElement)(a.SVG,{className:"jetpack-paid-block-symbol"},(0,n.createElement)(a.Circle,{cx:e,cy:t,r:r,fill:o,stroke:s,strokeWidth:i}))},19785:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(82170),a=(r(85985),r(46367));const o=e=>{const t=(0,n.createElement)(a.A,{key:"paid-symbol"});return e?.src?{...e,src:(0,n.createElement)(n.Fragment,null,e.src,t)}:(0,n.createElement)(n.Fragment,null,e,t)},s=o},26845:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>A});var n=r(82170),a=r(47143),o=r(27723),s=r(56333),i=r(86183);const __=o.__,_x=o._x,l=__("Premium Block","jetpack"),/** translators: %s: name of the plan. */ c=__("Upgrade to %s to use this premium block","jetpack"),u=(__("Upgrade your plan to use this premium block","jetpack"),_x("Upgrade","Call to action to buy a new plan","jetpack")),A=({onRedirect:e,align:t,className:r,title:A=l,description:g=null,buttonText:d=u,visible:p=!0,requiredPlan:m,context:h})=>{const[E,f,C]=(0,i.A)(m,e),B=(0,a.useSelect)((e=>{if(g)return g;const t=e("wordpress-com/plans"),r=t&&t.getPlan(m);return r?(0,o.sprintf)(c,r.product_name_short):null}),[g,m]);return B&&(0,n.createElement)(s.c,{align:t,buttonText:d,checkoutUrl:E,className:r,context:h,description:B,goToCheckoutPage:f,isRedirecting:C,title:A,visible:p})}},23887:(e,t,r)=>{"use strict";r.d(t,{W:()=>n,r:()=>a});const n=({plan:e,blockName:t,context:r,tracks:n})=>{n.recordEvent("jetpack_editor_block_upgrade_click",{plan:e,block:t,context:r})},a=({plan:e,blockName:t,context:r,tracks:n})=>{n.recordEvent("jetpack_editor_block_upgrade_banner_impression",{plan:e,block:t,context:r})}},3120:(e,t,r)=>{"use strict";r.d(t,{e:()=>d});var n=r(82170),a=r(85985),o=r(94715),s=r(29491),i=r(47143),l=r(86087),c=r(95104),u=r(26845),A=r(23887);const g=(0,s.createHigherOrderComponent)((e=>t=>{const{name:r,clientId:s,isSelected:g,attributes:d,setAttributes:p}=t||{},m=(0,a.tu)(r);if(!m)return(0,n.createElement)(e,t);const h=(0,a.sH)(r),E=(0,a.GT)(r),[f,C]=(0,l.useState)(!h),[B,b]=(0,l.useState)(!1),k="editor-canvas",y=(0,i.useSelect)((e=>e("core/block-editor").hasSelectedInnerBlock(s,!0)),[s]),{hasParentBanner:v}=(0,l.useContext)(c.j)||{},I=(g||y)&&f&&!v,{tracks:_}=(0,a.st)(),w=(0,l.useMemo)((()=>({plan:m,blockName:r,context:k,tracks:_})),[m,r,_]);(0,l.useEffect)((()=>{I&&b(!0)}),[I,b]),(0,l.useEffect)((()=>{!B&&I&&(0,A.r)(w)}),[B,w,I]),(0,l.useEffect)((()=>C(!h)),[d,C,h]),(0,l.useEffect)((()=>{p({shouldDisplayFrontendBanner:!v})}),[p,v]);const Q=(0,o.useBlockProps)();return(0,n.createElement)(c.b,{onBannerVisibilityChange:C,hasParentBanner:I},(0,n.createElement)("div",{ref:Q.ref,style:{"max-width":"unset"}},(0,n.createElement)(u.Ay,{className:`is-${r.replace(/\//,"-")}-paid-block`,title:null,align:d?.align,visible:I,description:E?.description,requiredPlan:m,context:k,onRedirect:()=>(0,A.W)(w)}),(0,n.createElement)(e,t)))}),"withUpgradeBanner");function d(e,t){return(0,a.tu)(t)?{...e,edit:g(e.edit)}:e}},76047:(e,t,r)=>{"use strict";r.d(t,{s6:()=>n,wb:()=>a});const n="jetpack-sidebar",a="document-settings"},78058:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(82170),a=r(56427),o=r(51113),s=r(5573);const i=(0,n.createElement)(a.SVG,{width:"42",height:"42",viewBox:"0 0 42 42",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,n.createElement)(a.G,{clipPath:"url(#clip0_4479_1006)"},(0,n.createElement)(a.Path,{d:"M7.87488 0L10.1022 5.64753L15.7498 7.87488L10.1022 10.1022L7.87488 15.7498L5.64753 10.1022L0 7.87488L5.64753 5.64753L7.87488 0Z",fill:"#A7AAAD"}),(0,n.createElement)(a.Path,{d:"M31.4998 0L34.4696 7.53004L41.9997 10.4998L34.4696 13.4696L31.4998 20.9997L28.53 13.4696L21 10.4998L28.53 7.53004L31.4998 0Z",fill:"#A7AAAD"}),(0,n.createElement)(a.Path,{d:"M18.3748 15.7496L22.0871 25.1621L31.4996 28.8744L22.0871 32.5866L18.3748 41.9992L14.6625 32.5866L5.25 28.8744L14.6625 25.1621L18.3748 15.7496Z",fill:"#A7AAAD"})),(0,n.createElement)(s.Defs,null,(0,n.createElement)("clipPath",{id:"clip0_4479_1006"},(0,n.createElement)(a.Rect,{width:"41.9997",height:"41.9992",fill:"white"}))));function l({className:e,size:t=42}){return(0,n.createElement)(o.A,{icon:i,width:t,height:t,className:e})}},2561:(e,t,r)=>{"use strict";r.d(t,{A:()=>C});var n=r(82170),a=r(96865),o=r(85985),s=r(56427),i=r(86087),l=r(27723),c=r(51113),u=r(53512),A=r(10067),g=r.n(A),d=r(23e3),p=r(71933),m=r(15855),h=r(6493);const __=l.__,E="ai-image-generator",f=g()("jetpack-ai:ai-image-modal");function C({title:e,cost:t,open:r,placement:l,images:A,currentIndex:g=0,onClose:C=null,onTryAgain:B=null,onGenerate:b=null,generating:k=!1,notEnoughRequests:y=!1,requireUpgrade:v=!1,currentLimit:I=null,currentUsage:_=null,isUnlimited:w=!1,upgradeDescription:Q=null,hasError:S=!1,handlePreviousImage:x=()=>{},handleNextImage:j=()=>{},acceptButton:L=null,autoStart:N=!1,autoStartAction:T=null,instructionsPlaceholder:R=null,imageStyles:P=[],onGuessStyle:D=null}){const{tracks:M}=(0,o.st)(),{recordEvent:F}=M,[O,U]=(0,i.useState)(""),H=(0,i.useRef)(!1),[z,q]=(0,i.useState)(!1),[V,G]=(0,i.useState)(null),[$,Z]=(0,i.useState)(P||[]),W=(0,i.useCallback)((()=>{B?.({userPrompt:O,style:V})}),[B,O,V]),Y=(0,i.useCallback)((async()=>{if(V===a.Wp){F("jetpack_ai_general_image_guess_style",{context:"block-editor",tool:"image"});const e=await D(O)||a.Hu;G(e),f("guessed style",e),b?.({userPrompt:O,style:e})}else b?.({userPrompt:O,style:V})}),[b,O,V,D,F]),K=(0,i.useCallback)((e=>{f("change style",e),G(e),F("jetpack_ai_image_generator_switch_style",{context:"block-editor",style:e})}),[G,F]),J=y||k||v,X=(v||y)&&!k,ee=Boolean(!w&&t&&I),te=__("Generate","jetpack"),re=__("Try again","jetpack");return(0,i.useEffect)((()=>{N&&r&&(H.current||(H.current=!0,T?.({userPrompt:O})))}),[l,Y,N,T,O,r]),(0,i.useEffect)((()=>{P&&P.length>0&&(Z([P.find((({value:e})=>e===a.Hu)),P.find((({value:e})=>e===a.Wp)),...P.filter((({value:e})=>![a.Hu,a.Wp].includes(e)))].filter((e=>e))),q(!0),G(a.Hu))}),[P]),(0,n.createElement)(n.Fragment,null,r&&(0,n.createElement)(p.A,{handleClose:C,title:e},(0,n.createElement)("div",{className:"ai-image-modal__content"},z&&(0,n.createElement)("div",{style:{display:"flex",alignItems:"center",gap:16}},(0,n.createElement)("div",{style:{fontWeight:500,flexGrow:1}},__("Generate image","jetpack")),(0,n.createElement)("div",null,(0,n.createElement)(s.SelectControl,{__nextHasNoMarginBottom:!0,value:V,options:$,onChange:K}))),(0,n.createElement)(a.KJ,{prompt:O,setPrompt:U,disabled:J,generateHandler:S?W:Y,placeholder:R,buttonLabel:S?re:te}),X&&(0,n.createElement)(d.A,{description:Q,placement:E,useLightNudge:!0}),(0,n.createElement)("div",{className:"ai-image-modal__actions"},(0,n.createElement)("div",{className:"ai-image-modal__actions-left"},ee&&(0,n.createElement)(h.A,{cost:t,currentLimit:I,currentUsage:_}))),(0,n.createElement)("div",{className:"ai-image-modal__image-canvas"},(0,n.createElement)(m.A,{images:A,current:g,handlePreviousImage:x,handleNextImage:j,actions:L}))),(0,n.createElement)("div",{className:"ai-image-modal__footer"},(0,n.createElement)(s.Button,{variant:"link",className:"ai-image-modal__feedback-button",href:"https://jetpack.com/redirect/?source=jetpack-ai-feedback",target:"_blank"},(0,n.createElement)("span",null,__("Provide feedback","jetpack")),(0,n.createElement)(c.A,{icon:u.A,className:"icon"})))))}},15855:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n=r(82170),a=r(56427),o=r(27723),s=r(51113),i=r(68888),l=r(29115),c=r(13022),u=r(78058),A=r(8912);const __=o.__;function g({children:e,isDotted:t=!1,contentClassName:r=""}){const a=(0,n.createElement)("img",{className:"ai-assistant-image__carrousel-image",src:`data:image/png;base64,${A.K}`,alt:""});return(0,n.createElement)("div",{className:"ai-assistant-image__blank"},a,(0,n.createElement)("div",{className:(0,c.A)("ai-assistant-image__blank-content",r,{"is-dotted":t})},e))}function d({images:e,current:t,handlePreviousImage:r,handleNextImage:o,actions:A=null}){const d=(0,n.createElement)("button",{className:"ai-carrousel__prev",onClick:r},(0,n.createElement)(s.A,{icon:i.A,className:(0,c.A)("ai-carrousel__prev-icon",{"is-disabled":0===t})})),p=(0,n.createElement)("button",{className:"ai-carrousel__next",onClick:o},(0,n.createElement)(s.A,{icon:l.A,className:(0,c.A)("ai-carrousel__next-icon",{"is-disabled":t+1===e.length})})),m=e?.filter?.((e=>e?.generating||Object.hasOwn(e,"image")))?.length,h=0===t&&0===m?0:t+1;return(0,n.createElement)("div",{className:"ai-assistant-image__carrousel"},(0,n.createElement)("div",{className:"ai-assistant-image__carrousel-images"},e.length>1&&d,e.map((({image:e,generating:r,error:o},s)=>(0,n.createElement)("div",{key:"image:"+s,className:(0,c.A)("ai-assistant-image__carrousel-image-container",{"is-current":t===s,"is-prev":t>s})},r?(0,n.createElement)(g,{contentClassName:"ai-assistant-image__loading"},__("Creating image…","jetpack"),(0,n.createElement)(a.Spinner,{style:{width:"50px",height:"50px"}})):(0,n.createElement)(n.Fragment,null,o?(0,n.createElement)(g,{isDotted:!0},(0,n.createElement)("div",{className:"ai-assistant-image__error"},__("An error occurred while generating the image. Please, try again!","jetpack"),o?.message&&(0,n.createElement)("span",{className:"ai-assistant-image__error-message"},o?.message))):(0,n.createElement)(n.Fragment,null,r||e?(0,n.createElement)("img",{className:"ai-assistant-image__carrousel-image",src:e,alt:""}):(0,n.createElement)(g,null,(0,n.createElement)(u.A,null))))))),e.length>1&&p),(0,n.createElement)("div",{className:"ai-assistant-image__carrousel-footer"},(0,n.createElement)("div",{className:"ai-assistant-image__carrousel-counter"},d,h," / ",m,p),(0,n.createElement)("div",{className:"ai-assistant-image__carrousel-actions"},A)))}},6493:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(82170),a=r(86087),o=r(27723);const __=o.__;function s({currentLimit:e,currentUsage:t,cost:r}){const s=e-t,i=(0,a.createInterpolateElement)( // Translators: %d is the cost of one image. // Translators: %d is the cost of one image. (0,o.sprintf)(__("Requests needed: <counter>%d</counter>","jetpack"),r),{counter:(0,n.createElement)("span",null)}),l=(0,a.createInterpolateElement)( // Translators: %d is the current requests balance. // Translators: %d is the current requests balance. (0,o.sprintf)(__("Requests available: <counter>%d</counter>","jetpack"),s),{counter:s<r?(0,n.createElement)("span",{className:"ai-assistant-featured-image__usage-counter-no-limit"}):(0,n.createElement)("strong",null)});return(0,n.createElement)("div",{className:"ai-assistant-featured-image__usage-counter"},(0,n.createElement)("span",null,i),(0,n.createElement)("span",null,l))}},90096:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});var n=r(82170),a=r(85985),o=r(56427),s=r(47143),i=r(86087),l=r(27723),c=r(61297),u=r(58164),A=r(9847),g=r(99991),d=r(76047),p=r(2561),m=r(96051),h=r(16615),E=r(22465);const __=l.__;function f({busy:e,disabled:t,placement:r,onClose:f=()=>{}}){const[C,B]=(0,i.useState)(r===E.hB),b=(0,h.A)(),k=(0,A.A)(),{saveToMediaLibrary:y}=(0,g.A)(),{tracks:v}=(0,a.st)(),{recordEvent:I}=v,{enableComplementaryArea:_}=(0,s.useDispatch)("core/interface"),{clearSelectedBlock:w}=(0,s.useDispatch)("core/block-editor"),{toggleEditorPanelOpened:Q}=(0,s.useDispatch)("core/edit-post"),{editPost:S,toggleEditorPanelOpened:x}=(0,s.useDispatch)("core/editor"),{requireUpgrade:j,requestsCount:L,requestsLimit:N,currentTier:T,costs:R}=(0,c.A)(),P=(0,u.Bd)(T),D=R?.[E.oW]?.activeModel??10,M=D===R?.[E.oW]?.stableDiffusion?E.Dk:E.bb,F=P===u.Ti,O=N-L<D,U=x??Q,H=(0,s.useSelect)((e=>e("core/editor").isEditorPanelOpened??e("core/edit-post").isEditorPanelOpened),[]),{pointer:z,current:q,setCurrent:V,processImageGeneration:G,handlePreviousImage:$,handleNextImage:Z,currentImage:W,currentPointer:Y,images:K}=(0,m.A)({autoStart:!1,cost:D,type:"featured-image-generation",feature:E.oW}),J=(0,i.useCallback)((()=>{B(!1),f?.()}),[f]),X=(0,i.useCallback)((()=>{B(!0)}),[]),ee=(0,i.useCallback)((({userPrompt:e})=>{I("jetpack_ai_featured_image_generation_generate_image",{placement:r,model:M,site_type:b}),B(!0),G({userPrompt:e,postContent:k,notEnoughRequests:O}).catch((e=>{I("jetpack_ai_featured_image_generation_error",{placement:r,error:e?.message,model:M,site_type:b})}))}),[I,r,M,b,G,k,O]),te=(0,i.useCallback)((({userPrompt:e})=>{I("jetpack_ai_featured_image_generation_generate_another_image",{placement:r,model:M,site_type:b}),V((e=>e+1)),G({userPrompt:e,postContent:k,notEnoughRequests:O}).catch((e=>{I("jetpack_ai_featured_image_generation_error",{placement:r,error:e?.message,model:M,site_type:b})}))}),[I,r,M,b,G,k,O,V]),re=(0,i.useCallback)((({userPrompt:e})=>{I("jetpack_ai_featured_image_generation_try_again",{placement:r,model:M,site_type:b}),G({userPrompt:e,postContent:k,notEnoughRequests:O}).catch((e=>{I("jetpack_ai_featured_image_generation_error",{placement:r,error:e?.message,model:M,site_type:b})}))}),[I,r,M,b,G,k,O]),ne=(0,i.useCallback)((()=>(w(),_("core/edit-post","edit-post/document"))),[w,_]),ae=(0,i.useCallback)((()=>{I("jetpack_ai_featured_image_generation_use_image",{placement:r,model:M,site_type:b});const e=e=>{S({featured_media:e}),J(),setTimeout((()=>{const e=H("featured-image"),t=H("post-status");ne().then((()=>{e||U("featured-image"),t||U("post-status")}))}),500)};W?.libraryId?e(W?.libraryId):y(W?.image).then((t=>{e(t?.id)})).catch((e=>{I("jetpack_ai_featured_image_saving_error",{placement:r,error:e?.message,model:M,site_type:b})}))}),[I,r,M,b,W?.libraryId,W?.image,S,J,H,ne,U,y]),oe=__("Generate another image","jetpack"),se=__("Generate","jetpack"),ie=O?(0,l.sprintf)( // Translators: %d is the cost of generating a featured image. __("Featured image generation costs %d requests per image. You don't have enough requests to generate another image.","jetpack"),D):null,le=(0,n.createElement)(o.Button,{onClick:ae,variant:"primary",disabled:!W?.image||W?.generating},__("Set as featured image","jetpack"));return(0,n.createElement)(n.Fragment,null,(r===d.s6||r===d.wb)&&(0,n.createElement)(n.Fragment,null,(0,n.createElement)("p",null,__("Create and use an AI generated featured image for your post.","jetpack")),(0,n.createElement)(o.Button,{onClick:X,isBusy:e,disabled:t||O,variant:"secondary"},__("Generate image","jetpack"))),(0,n.createElement)(p.A,{postContent:k,autoStart:""!==k,autoStartAction:ee,images:K,currentIndex:q,title:__("Generate a featured image with AI","jetpack"),cost:D,open:C,placement:r,onClose:J,onTryAgain:re,onGenerate:z?.current>0?te:ee,generating:Y?.generating,notEnoughRequests:O,requireUpgrade:j,upgradeDescription:ie,currentLimit:N,currentUsage:L,isUnlimited:F,hasError:Boolean(Y?.error),handlePreviousImage:$,handleNextImage:Z,acceptButton:le,generateButtonLabel:z?.current>0?oe:se,instructionsPlaceholder:__("Describe the image you'd like to create, or have the prompt written for you if you've added content to your post.","jetpack")}))}},83729:(e,t,r)=>{"use strict";r.d(t,{A:()=>C});var n=r(82170),a=r(85985),o=r(56427),s=r(86087),i=r(27723),l=r(10067),c=r.n(l),u=r(61297),A=r(58164),g=r(9847),d=r(99991),p=r(2561),m=r(96051),h=r(16615),E=r(22465);const __=i.__,f=c()("jetpack-ai:general-purpose-image");function C({placement:e,onClose:t=()=>{},onSetImage:r=()=>{}}){const[l,c]=(0,s.useState)(!0),C=(0,h.A)(),B=(0,g.A)(),{saveToMediaLibrary:b}=(0,d.A)(),{tracks:k}=(0,a.st)(),{recordEvent:y}=k,{requireUpgrade:v,requestsCount:I,requestsLimit:_,currentTier:w,costs:Q}=(0,u.A)(),S=(0,A.Bd)(w),x=Q?.[E.yP]?.activeModel??10,j=x===Q?.[E.yP]?.stableDiffusion?E.Dk:E.bb,L=S===A.Ti,N=_-I<x,{current:T,setCurrent:R,processImageGeneration:P,handlePreviousImage:D,handleNextImage:M,currentImage:F,currentPointer:O,images:U,pointer:H,imageStyles:z,guessStyle:q}=(0,m.A)({cost:x,autoStart:!1,type:"general-image-generation",feature:E.yP}),V=(0,s.useCallback)((()=>{c(!1),t?.()}),[t]),G=(0,s.useCallback)((async({userPrompt:t,style:r})=>{f("handleGenerate",t,r),y("jetpack_ai_general_image_generation_generate_image",{placement:e,model:j,site_type:C,style:r}),P({userPrompt:t,postContent:B,notEnoughRequests:N,style:r}).catch((t=>{y("jetpack_ai_general_image_generation_error",{placement:e,error:t?.message,model:j,site_type:C,style:r})}))}),[y,e,j,C,P,B,N]),$=(0,s.useCallback)((({userPrompt:t,style:r})=>{f("handleRegenerate",t),y("jetpack_ai_general_image_generation_generate_another_image",{placement:e,model:j,site_type:C,style:r}),R((e=>e+1)),P({userPrompt:t,postContent:B,notEnoughRequests:N,style:r}).catch((t=>{y("jetpack_ai_general_image_generation_error",{placement:e,error:t?.message,model:j,site_type:C})}))}),[y,e,j,C,P,B,N,R]),Z=(0,s.useCallback)((({userPrompt:t,style:r})=>{f("handleTryAgain",t),y("jetpack_ai_general_image_generation_try_again",{placement:e,model:j,site_type:C,style:r}),P({userPrompt:t,postContent:B,notEnoughRequests:N,style:r}).catch((t=>{y("jetpack_ai_general_image_generation_error",{placement:e,error:t?.message,model:j,site_type:C})}))}),[y,e,j,C,P,B,N]),W=(0,s.useCallback)((()=>{y("jetpack_ai_general_image_generation_use_image",{placement:e,model:j,site_type:C});const t=e=>{r?.({id:e.id,url:e.url}),V()};F?.libraryId?t({id:F?.libraryId,url:F?.libraryUrl}):b(F?.image).then((e=>{t(e)}))}),[y,e,j,C,F?.libraryId,F?.libraryUrl,F?.image,r,V,b]),Y=__("Generate another image","jetpack"),K=__("Generate","jetpack"),J=N?(0,i.sprintf)( // Translators: %d is the cost of generating a featured image. __("Image generation costs %d requests per image. You don't have enough requests to generate another image.","jetpack"),x):null,X=(0,n.createElement)(o.Button,{onClick:W,variant:"primary",disabled:!F?.image||F?.generating},__("Insert image","jetpack"));return(0,n.createElement)(p.A,{images:U,currentIndex:T,title:__("Generate an image with AI","jetpack"),cost:x,open:l,placement:e,onClose:V,onTryAgain:Z,onGenerate:H?.current>0?$:G,generating:O?.generating,notEnoughRequests:N,requireUpgrade:v,upgradeDescription:J,currentLimit:_,currentUsage:I,isUnlimited:L,hasError:Boolean(O?.error),handlePreviousImage:D,handleNextImage:M,acceptButton:X,generateButtonLabel:H?.current>0?Y:K,instructionsPlaceholder:__("Describe the image you'd like to create.","jetpack"),imageStyles:z,onGuessStyle:q})}},96051:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(96865),a=r(47143),o=r(86087),s=r(27723),i=r(93832),l=r(61297),c=r(99991);const __=s.__;function u({feature:e,type:t,cost:r,autoStart:s=!0}){const{generateImageWithParameters:u}=(0,n.Kf)(),{increaseRequestsCount:A}=(0,l.A)(),{saveToMediaLibrary:g}=(0,c.A)(),{createNotice:d}=(0,a.useDispatch)("core/notices"),p=(0,o.useRef)(0),[m,h]=(0,o.useState)(0),[E,f]=(0,o.useState)([{generating:s}]),{featuresControl:C}=(0,l.A)(),B=C?.image,b=B?.styles,k=(0,o.useCallback)(((e,t)=>{f((r=>{const n=[...r];return n[t]={...n[t],...e},n}))}),[]),y=(0,o.useCallback)((e=>{d("success",e,{type:"snackbar",isDismissible:!0})}),[d]),v=(0,o.useCallback)((()=>{A(r)}),[A,r]),I=(0,o.useCallback)((e=>{if(!e)return"image.png";const t=e.split(" ").slice(0,10).join(" ");return(0,i.cleanForSlug)(t)+".png"}),[]),_=(0,o.useCallback)((({userPrompt:r,postContent:n,notEnoughRequests:a,style:o=null})=>new Promise(((s,i)=>{if(k({generating:!0,error:null},p.current),a)return k({generating:!1,error:new Error(__("You don't have enough requests to generate another image.","jetpack"))},p.current),void s({});const l=u({feature:e,size:"1792x1024",responseFormat:"b64_json",messages:[{role:"jetpack-ai",context:{type:t,request:r||null,content:n,style:o}}],style:o||""}),c=I(r);l.then((e=>{if(e.data.length>0){const t="data:image/png;base64,"+e.data[0].b64_json;k({image:t},p.current),v(),g(t,c).then((e=>{y(__("Image saved to media library.","jetpack")),k({libraryId:e?.id,libraryUrl:e?.url,generating:!1},p.current),p.current+=1,s({image:t,libraryId:e?.id,libraryUrl:e?.url})})).catch((()=>{k({generating:!1},p.current),p.current+=1,s({image:t})}))}})).catch((e=>{k({generating:!1,error:e},p.current),i(e)}))}))),[k,u,e,t,v,g,y,I]),w=(0,o.useCallback)((()=>{h(Math.max(m-1,0))}),[m,h]),Q=(0,o.useCallback)((()=>{h(Math.min(m+1,E.length-1))}),[m,E.length]),S=(0,o.useCallback)((async function(e){if(!b||!b.length)return null;const t=[{role:"jetpack-ai",context:{type:"general-image-guess-style",request:e}}];try{const e=await(0,n.R0)(t,{feature:"jetpack-ai-image-generator"});if(!e)return null;const r=b.find((({value:t})=>t===e));return r?r.value:null}catch(e){Promise.reject(e)}}),[b]);return{current:m,setCurrent:h,processImageGeneration:_,handlePreviousImage:w,handleNextImage:Q,currentImage:E[m],currentPointer:E[p.current],images:E,pointer:p,imageStyles:b,guessStyle:S}}},16615:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(85985),a=r(86087);function o(){const[e]=(0,a.useState)((0,n.d9)()?"atomic":(0,n.Sy)()?"simple":"jetpack");return e}},46536:(e,t,r)=>{"use strict";r.d(t,{OE:()=>a.A,dY:()=>o.dY,hB:()=>o.hB,m2:()=>n.A});var n=r(90096),a=r(83729),o=r(22465)},22465:(e,t,r)=>{"use strict";r.d(t,{Dk:()=>o,bb:()=>s,dY:()=>l,hB:()=>i,oW:()=>n,yP:()=>a});const n="featured-post-image",a="general-image",o="stable-diffusion",s="dall-e-3",i="media-source-dropdown",l="block-placeholder-button"},71933:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(82170),a=r(96865),o=r(56427),s=r(27723),i=r(10991);const __=s.__,l=({requestingState:e,onClose:t,title:r})=>(0,n.createElement)("div",{className:"ai-assistant-modal__header"},(0,n.createElement)("div",{className:"ai-assistant-modal__title-wrapper"},(0,n.createElement)(a.wS,{state:e}),(0,n.createElement)("h1",{className:"ai-assistant-modal__title"},r)),(0,n.createElement)(o.Button,{icon:i.A,label:__("Close","jetpack"),onClick:t}));function c({children:e,handleClose:t,hideHeader:r=!0,requestingState:a="init",title:s=__("AI Assistant","jetpack"),maxWidth:i=720}){return(0,n.createElement)(o.Modal,{__experimentalHideHeader:r,className:"ai-assistant-modal",shouldCloseOnClickOutside:!1,onRequestClose:t},(0,n.createElement)("div",{className:"ai-assistant-modal__content",style:{maxWidth:i}},(0,n.createElement)(l,{requestingState:a,onClose:t,title:s}),(0,n.createElement)("hr",{className:"ai-assistant-modal__divider"}),e))}},93471:(e,t,r)=>{"use strict";r.d(t,{A:()=>A});var n=r(82170),a=r(11876),o=r(56427),s=r(86087),i=r(27723),l=r(13022),c=(r(51609),r(58164));const __=i.__,u=({usage:e})=>{if(null==e)return null;const t=100-100*Math.max(Math.min(e,1),0),r={width:`${t}%`};return(0,n.createElement)("div",{className:"ai-assistant-usage-bar-wrapper"},(0,n.createElement)("div",{className:(0,l.A)("ai-assistant-usage-bar-usage",{warning:t<60&&t>20,danger:t<=20}),style:r}))};const A=function({isOverLimit:e,planType:t,requestsCount:r,requestsLimit:l,nextResetDate:A=null,loading:g=!1}){const d=e||r>=l;let p=null;const m=Array(),h=Math.max(0,l-r);d&&t===c._X&&m.push(__("You've reached your free requests limit.","jetpack")),d&&t===c.ds&&m.push(__("You've reached your plan requests limit.","jetpack")),A&&t===c.ds&&(p=(0,s.createInterpolateElement)((0,i.sprintf)( // translators: %1$d: number of days until the next usage count reset __("Requests will reset to <strong>%1$d</strong> on %2$s.","jetpack"),l,A),{strong:(0,n.createElement)("strong",null)}));const E=r/l,f=(0,n.createElement)(n.Fragment,null,t===c.Ti&&(0,n.createElement)("p",null,__("Unlimited requests.","jetpack")),(t===c._X||t===c.ds)&&(0,n.createElement)(n.Fragment,null,(0,n.createElement)("p",{className:"jetpack-ai-usage-panel__available-requests"},h),(0,n.createElement)(u,{usage:E}))),C=(0,n.createElement)(a.A,{height:100,className:"jetpack-ai-usage-panel__loading-placeholder"}),B=(0,n.createElement)(n.Fragment,null,!g&&m.length?m.join(" ").concat(" "):null,!g&&p);return(0,n.createElement)(o.BaseControl,{__nextHasNoMarginBottom:!0,help:B},(0,n.createElement)(o.BaseControl.VisualLabel,null,__("Available Requests","jetpack")),!g&&f,g&&C)}},27970:(e,t,r)=>{"use strict";r.d(t,{A:()=>b});var n=r(82170),a=r(3924),o=r(85985),s=r(56427),i=r(38443),l=r(86087),c=r(27723),u=(r(51609),r(92169)),A=r(61297),g=r(75956),d=r(7503),p=r(10617),m=r(58164),h=r(93471);const __=c.__,E=e=>e?(0,i.gmdateI18n)("F j",e):null,f=(e,t)=>e===m._X?__("Upgrade","jetpack"):t?(0,c.sprintf)( // translators: %1$d: an integer, the number of requests to upgrade to on the next tier __("Get %1$d requests","jetpack"),t):__("Get more requests","jetpack"),C=()=>{const e=(0,a.A)("jetpack-ai-tiers-more-requests-contact"),{autosaveAndRedirect:t,isRedirecting:r}=(0,p.A)(e);return{contactUsURL:e,autosaveAndRedirectContactUs:t,isRedirectingContactUs:r}};function B({isOverLimit:e,requestsCount:t,requestsLimit:r,nextStart:a,planType:o,loading:i,canUpgrade:l,showContactUsCallToAction:c,nextLimit:u,contactUsURL:A,handleContactUsClick:g,checkoutUrl:d,handleUpgradeClick:p}){const C=f(o,u),B=E(a);return(0,n.createElement)("div",{className:"jetpack-ai-usage-panel"},(0,n.createElement)(n.Fragment,null,(0,n.createElement)(h.A,{isOverLimit:e,requestsCount:t,requestsLimit:r,nextResetDate:B,planType:o,loading:i}),!i&&(o===m._X||o===m.ds)&&l&&(0,n.createElement)("div",{className:"jetpack-ai-usage-panel-upgrade-button"},c&&(0,n.createElement)(n.Fragment,null,(0,n.createElement)("p",null,__("Need more requests?","jetpack")),(0,n.createElement)(s.Button,{target:"_blank",variant:"primary",label:__("Contact us for more requests","jetpack"),href:A,onClick:g},__("Contact Us","jetpack"))),!c&&(0,n.createElement)(s.Button,{target:"_blank",variant:"primary",label:__("Upgrade your Jetpack AI plan","jetpack"),href:d,onClick:p},C))))}function b({placement:e=null}){const{checkoutUrl:t}=(0,u.A)(),{contactUsURL:r}=C(),{tracks:a}=(0,g.A)(),s=(0,d.C)(),{requestsCount:i,requestsLimit:c,isOverLimit:p,usagePeriod:h,currentTier:E,nextTier:f,loading:b}=(0,A.A)(),k=(0,m.Bd)(E),y=(0,l.useCallback)((()=>{a.recordEvent("jetpack_ai_upgrade_button",{current_tier_slug:E?.slug,requests_count:i,...e?{placement:e}:{}})}),[a,E,i,e]),v=(0,l.useCallback)((()=>{a.recordEvent("jetpack_ai_upgrade_button",{current_tier_slug:E?.slug,requests_count:i,...e?{placement:e}:{}})}),[a,E,i,e]),I=((0,o.Sy)()||(0,o.d9)())&&k===m.ds&&!f;return(0,n.createElement)(B,{isOverLimit:p,requestsCount:i,requestsLimit:c,nextStart:h?.nextStart,nextLimit:f?.limit,planType:k,loading:b,canUpgrade:s,showContactUsCallToAction:I,contactUsURL:r,handleContactUsClick:v,checkoutUrl:t,handleUpgradeClick:y})}},56199:(e,t,r)=>{"use strict";r.d(t,{k:()=>n});const n="block_settings_sidebar"},9847:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(96865),a=r(74997),o=r(47143);const s=()=>{const e=(0,o.useSelect)((e=>e("core/block-editor").getBlocks()),[]);return e?.length?(0,n.rh)({content:(0,a.serialize)(e)}):""}},99991:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(63162),a=r(47143),o=r(86087),s=r(10067);const i=r.n(s)()("jetpack-ai-assistant-plugin:save-to-media-library");function l(){const[e,t]=(0,o.useState)(!1),{getSettings:r}=(0,a.useSelect)((e=>e("core/block-editor")),[]);return{isLoading:e,saveToMediaLibrary:(e,a=null)=>{const o=r();return new Promise(((r,s)=>{t(!0),i("Fetching image from URL"),fetch(e).then((e=>{i("Transforming response to blob"),e.blob().then((e=>{i("Uploading blob to media library");const l=[];a?l.push(new File([e],a)):l.push(e),o.mediaUpload({allowedTypes:["image"],filesList:l,onFileChange([e]){(0,n.isBlobURL)(e?.url)||(e&&(i("Image uploaded to media library",e),r(e)),t(!1))},onError(e){i("Error uploading image to media library:",e),s(e),t(!1)}})})).catch((e=>{i("Error transforming response to blob:",e?.message),s(e?.message),t(!1)}))})).catch((e=>{i("Error fetching image from URL:",e?.message),s(e?.message),t(!1)}))}))}}}},75181:(e,t,r)=>{"use strict";var n=r(82170),a=r(85985),o=r(74997),s=r(27723),i=r(12199);const __=s.__;(0,a.Sy)()||(0,a.d9)()||(0,o.registerBlockCollection)("jetpack",{title:"Jetpack",icon:(0,n.createElement)(i.ux,null)}),(0,o.setCategories)([...(0,o.getCategories)().filter((({slug:e})=>"contact-form"!==e)),{slug:"contact-form",title:__("Forms","jetpack"),icon:(0,n.createElement)(i.ux,null)}]),(0,o.setCategories)([...(0,o.getCategories)().filter((({slug:e})=>"monetize"!==e)),{slug:"monetize",title:__("Monetize","jetpack"),icon:(0,n.createElement)(i.ux,null)}]),(0,o.setCategories)([...(0,o.getCategories)().filter((({slug:e})=>"grow"!==e)),{slug:"grow",title:__("Grow","jetpack"),icon:(0,n.createElement)(i.ux,null)}])},34377:(e,t,r)=>{"use strict";function n(e){const t=e.ownerDocument;return{currentDoc:t,currentWindow:t.defaultView||t.parentWindow}}function a(e,t,a){let o;try{o=new URL("editor-assets",r.p)}catch(e){return}const s=o.href,{currentDoc:i}=n(a),l=i.getElementsByTagName("head")[0];e.forEach((e=>{const[r,n]=e.file.split("/").pop().split(".");if("css"===n){if(i.getElementById(e.id))return;const t=i.createElement("link");t.id=e.id,t.rel="stylesheet",t.href=`${s}/${r}-${e.version}.${n}`,l.appendChild(t)}if("js"===n){const a=t[e.id]?t[e.id]:null;if(i.getElementById(e.id))return a();const o=i.createElement("script");o.id=e.id,o.type="text/javascript",o.src=`${s}/${r}-${e.version}.${n}`,o.onload=a,l.appendChild(o)}}))}function o(e,t){return new Promise((r=>{const n=()=>{e[t]?r(e[t]):e.requestAnimationFrame(n)};n()}))}r.d(t,{Cu:()=>o,a$:()=>a,sG:()=>n})},88659:(e,t,r)=>{"use strict";r.d(t,{V:()=>s});var n=r(38377),a=r(85985);const o=n.T["Jetpack Green 40"];function s(){return(0,a.d9)()||(0,a.Sy)()?null:o}},90907:(e,t,r)=>{"use strict";r.d(t,{D:()=>s});var n=r(36536),a=r.n(n),o=r(66087);function s(e,t){const r=function(e,t){for(const r of new(a())(t).values()){if(-1===r.indexOf("is-style-"))continue;const t=r.substring(9),n=(0,o.find)(e,{name:t});if(n)return n}return(0,o.find)(e,"isDefault")}(e,t);return r?r.name:null}},20710:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});const n=/^#?[A-Fa-f0-9]{6}$/;function a(e){return n.test(e)}},11998:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(82170),a=r(94715),o=r(56427),s=r(27723),i=r(13022),l=r(10617);const __=s.__;function c({blockName:e,buttonLabel:t,className:r,href:s,icon:c,onClick:u,readMoreUrl:A,subtitle:g,title:d}){const{autosaveAndRedirect:p}=(0,l.A)(s);return(0,n.createElement)(a.Warning,{actions:s&&[(0,n.createElement)(o.Button,{key:"nudge",href:s,onClick:t=>{t.preventDefault(),u(e),p(t)},target:"_top",variant:"secondary",className:"jetpack-stripe-nudge__link"},t)],className:(0,i.A)(r,"jetpack-block-nudge wp-block")},(0,n.createElement)("span",{className:"jetpack-block-nudge__info"},c,(0,n.createElement)("span",{className:"jetpack-block-nudge__text-container"},(0,n.createElement)("span",{className:"jetpack-block-nudge__title"},d),g&&(0,n.createElement)("span",{className:"jetpack-block-nudge__message"},g,A&&(0,n.createElement)(n.Fragment,null,(0,n.createElement)("br",null),(0,n.createElement)(o.ExternalLink,{href:A},__("Learn more about the block and fees","jetpack")))))))}},5873:(e,t,r)=>{"use strict";r.d(t,{A:()=>m});var n=r(82170),a=r(94715),o=r(74997),s=r(56427),i=r(47143),l=r(86087),c=r(27723),u=r(48558),A=r(13022),g=r(66087);const __=c.__,d=({attributes:e,styleOption:t,viewportWidth:r,blockName:s})=>{const i=(0,o.getBlockType)(s);return(0,n.createElement)(a.BlockPreview,{viewportWidth:r,blocks:(l=i.example?(0,o.getBlockFromExample)(s,{attributes:{...i.example.attributes,style:t.value},innerBlocks:i.example.innerBlocks}):(0,o.createBlock)(s,e),{...l,attributes:{...l.attributes,__isBlockPreview:!0}})});var l},p=l.memo?(0,l.memo)(d,((e,t)=>(0,g.isEqual)(e,t))):d;function m({attributes:e,clientId:t,styleOptions:r,onSelectStyle:o,activeStyle:l,viewportWidth:c,title:g}){const d=(0,i.useSelect)((e=>{const{getBlock:r}=e("core/block-editor");return r(t)}));return(0,n.createElement)(n.Fragment,null,(0,n.createElement)(a.BlockControls,null,(0,n.createElement)(s.ToolbarGroup,{isCollapsed:!0,icon:"admin-appearance",label:__("Style","jetpack"),controls:r.map((e=>({title:e.label,isActive:e.value===l,onClick:()=>o({style:e.value})}))),popoverProps:{className:"jetpack-block-styles-selector-toolbar"}})),(0,n.createElement)(a.InspectorControls,null,(0,n.createElement)(s.PanelBody,{title:g||__("Styles","jetpack")},(0,n.createElement)("div",{className:"block-editor-block-styles jetpack-block-styles-selector"},r.map((t=>{const r={...e,style:t.value};return(0,n.createElement)("div",{key:t.value,className:(0,A.A)("block-editor-block-styles__item",{"is-active":t.value===l}),onClick:()=>{o({style:t.value})},onKeyDown:e=>{u.ENTER!==e.keyCode&&u.SPACE!==e.keyCode||(e.preventDefault(),o({style:t.value}))},role:"button",tabIndex:"0","aria-label":t.label},(0,n.createElement)("div",{className:"block-editor-block-styles__item-preview"},t.preview?t.preview:d&&(0,n.createElement)(p,{blockName:d.name,styleOption:t,attributes:r,viewportWidth:c})),(0,n.createElement)("div",{className:"block-editor-block-styles__item-label"},t.label))}))))))}},2274:(e,t,r)=>{"use strict";r.d(t,{A:()=>A});var n=r(82170),a=r(39384),o=r(85985),s=r(27723),i=r(51609),l=r(10617),c=r(56333);const __=s.__,u=()=>{const e=window?.location?.pathname.replace("wp-admin/",""),t=window?.location?.search;return`${e}${t}`},A=({block:e,explanation:t=null})=>{const[r,s]=(0,i.useState)(!1),[A,g]=(0,i.useState)(!1),{handleConnectUser:d}=(0,a.useConnection)({from:"editor",redirectUri:u(),autoTrigger:!1,skipPricingPage:!0}),{autosave:p}=(0,l.A)(),{tracks:m}=(0,o.st)();return(0,i.useEffect)((()=>{r&&d()}),[r,d]),(0,n.createElement)("div",null,(0,n.createElement)(c.c,{buttonText:__("Connect Jetpack","jetpack"),className:"jetpack-connect-banner-nudge",description:__("Your account is not connected to Jetpack at the moment.","jetpack"),goToCheckoutPage:t=>{g(!0),p(t).then((()=>{m.recordEvent("jetpack_editor_connect_banner_click",{block:e}),s(!0),g(!1)}))},checkoutUrl:"#",isRedirecting:r||A}),(0,n.createElement)("div",{className:"jetpack-connect-banner"},t&&(0,n.createElement)("div",{className:"jetpack-connect-banner__explanation"},(0,n.createElement)("p",null,t))))}},9522:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var n=r(82170),a=r(50723),o=r(11876),s=r(56427);const i=()=>(0,n.createElement)(a.Ay,null,(0,n.createElement)(s.Placeholder,null,(0,n.createElement)(s.Flex,{gap:2,direction:"column",style:{flexBasis:"33.3%",padding:"0 1em"}},(0,n.createElement)(s.FlexItem,null,(0,n.createElement)(o.A,{width:"100%",height:30})),(0,n.createElement)(s.FlexItem,null,(0,n.createElement)(o.A,{width:"100%",height:90}))),(0,n.createElement)(s.Flex,{gap:2,direction:"column",style:{flexBasis:"33.3%",padding:"0 1em"}},(0,n.createElement)(s.FlexItem,null,(0,n.createElement)(o.A,{width:"100%",height:30})),(0,n.createElement)(s.FlexItem,null,(0,n.createElement)(o.A,{width:"100%",height:90}))),(0,n.createElement)(s.Flex,{gap:2,direction:"column",style:{flexBasis:"33.3%",padding:"0 1em"}},(0,n.createElement)(s.FlexItem,null,(0,n.createElement)(o.A,{width:"100%",height:30})),(0,n.createElement)(s.FlexItem,null,(0,n.createElement)(o.A,{width:"100%",height:90})))))},1458:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(96072),a=r.n(n),o=r(82170),s=r(56427);const i=s.NumberControl||s.__experimentalNumberControl||function(e){return(0,o.createElement)(s.TextControl,a()({type:"number",inputMode:"numeric"},e))}},29726:(e,t,r)=>{"use strict";r.d(t,{_$:()=>n,h5:()=>a});const n="payment-plan",a="subscription"},1990:(e,t,r)=>{"use strict";r.d(t,{W:()=>s});var n=r(27723),a=r(29726);const __=n.__,o={"add a new product":{[a._$]:__("Add a new payment plan","jetpack"),[a.h5]:__("Add a new subscription","jetpack")},"product not found":{[a._$]:__("Payment plan not found","jetpack"),[a.h5]:__("Subscription not found","jetpack")},"select a product":{[a._$]:__("Select a payment plan","jetpack"),[a.h5]:__("Select a subscription","jetpack")},"default new product title":{[a._$]:__("Monthly Subscription","jetpack"),[a.h5]:__("Monthly Subscription","jetpack")},"manage your products":{[a._$]:__("Manage your payment plans.","jetpack"),[a.h5]:__("Manage your subscriptions.","jetpack")},"saving product":{[a._$]:__("Saving payment plan…","jetpack"),[a.h5]:__("Saving subscription…","jetpack")},"add product":{[a._$]:__("Add payment plan","jetpack"),[a.h5]:__("Add subscription","jetpack")},"product requires a name":{[a._$]:__("Payment plan requires a name","jetpack"),[a.h5]:__("Subscription requires a name","jetpack")},"product requires a valid price":{[a._$]:__("Payment plan requires a valid price","jetpack"),[a.h5]:__("Subscription requires a valid price","jetpack")},"successfully created product":{[a._$]:__("Successfully created payment plan","jetpack"),[a.h5]:__("Successfully created subscription","jetpack")},"there was an error when adding the product":{[a._$]:__("There was an error when adding the payment plan.","jetpack"),[a.h5]:__("There was an error when adding the subscription.","jetpack")},"invalid product configured for this block":{[a._$]:__("Invalid payment plan configured for this block.","jetpack"),[a.h5]:__("Invalid subscription configured for this block.","jetpack")},"the button will be hidden from your visitors until you select a valid product":{[a._$]:__("The button will be hidden from your visitors until you select a valid payment plan.","jetpack"),[a.h5]:__("The subscribe button will be hidden from your visitors until you select a valid subscription.","jetpack")},"mark this product as a donation":{[a._$]:__("Mark this payment plan as a donation","jetpack"),[a.h5]:__("Mark this subscription as a donation","jetpack")}};function s(e,t=a._$){return o?.[e]?.[t]||null}__("Monthly Subscription","jetpack"),__("Yearly Subscription","jetpack"),__("Subscription","jetpack")},53796:(e,t,r)=>{"use strict";r.d(t,{V:()=>A});var n=r(82170),a=r(3924),o=r(85985),s=r(47143),i=r(27723),l=r(71218),c=r(16521),u=r(11998);const __=i.__,A=({blockName:e})=>{const t=(0,s.select)(c.M).getConnectUrl(),{tracks:r}=(0,o.st)(),i=(0,o.d9)()||(0,o.Sy)();if(!t)return null;let A;switch(e){case"payment-buttons":A=i?(0,a.A)("wpcom-support-wordpress-editor-blocks-payments-block"):(0,a.A)("jetpack-support-jetpack-blocks-payments-block");break;case"donations":A=i?(0,a.A)("wpcom-support-wordpress-editor-blocks-donations-block"):(0,a.A)("jetpack-support-jetpack-blocks-donations-block");break;case"premium-content":A=i?(0,a.A)("wpcom-support-wordpress-editor-blocks-premium-content-block"):(0,a.A)("jetpack-support-jetpack-blocks-premium-content-block");break;default:A=i?(0,a.A)("wpcom-support-payments-button-block"):(0,a.A)("jetpack-support-jetpack-blocks-payments-block")}return(0,n.createElement)(u.A,{className:"jetpack-stripe-nudge__banner",buttonLabel:__("Connect","jetpack"),icon:(0,n.createElement)(l.A,{className:"jetpack-stripe-nudge__icon",size:18,"aria-hidden":"true",role:"img",focusable:"false"}),href:t,readMoreUrl:A,onClick:()=>r.recordEvent("jetpack_editor_block_stripe_connect_click",{block:e}),title:__("Connect to Stripe to use this block on your site","jetpack"),subtitle:__("This block will be hidden from your visitors until you connect to Stripe.","jetpack")})}},56333:(e,t,r)=>{"use strict";r.d(t,{c:()=>i});var n=r(82170),a=r(56427),o=r(27723),s=r(13022);const __=o.__,i=({className:e,description:t,align:r=null,title:o=null,buttonText:i=null,visible:l=!0,context:c=null,checkoutUrl:u=null,goToCheckoutPage:A=null,isRedirecting:g=!1,showButton:d=!0,target:p="_top"})=>{const m=(0,s.A)(e,"jetpack-upgrade-plan-banner",{"wp-block":"editor-canvas"===c,"block-editor-block-list__block":"editor-canvas"===c,"jetpack-upgrade-plan__hidden":!l}),h=__("Redirecting…","jetpack");return(0,n.createElement)("div",{className:m,"data-align":r},(0,n.createElement)("div",{className:"jetpack-upgrade-plan-banner__wrapper"},o&&(0,n.createElement)("strong",{className:(0,s.A)("banner-title",{[`${e}__title`]:e})},o),t&&(0,n.createElement)("span",{className:`${e}__description banner-description`},t),d&&(0,n.createElement)(a.Button,{href:g?null:u,onClick:A,target:p,className:(0,s.A)("is-primary",{"jetpack-upgrade-plan__hidden":!u}),isBusy:g},g?h:i)))}},72730:(e,t,r)=>{"use strict";r.d(t,{C_:()=>l,VK:()=>a,Xj:()=>s,dv:()=>o,kF:()=>i});var n=r(3975);const a={USD:.5,AUD:.5,BRL:.5,CAD:.5,CHF:.5,DKK:2.5,EUR:.5,GBP:.3,HKD:4,INR:.5,JPY:50,MXN:10,NOK:3,NZD:.5,PLN:2,SEK:3,SGD:.5};Object.keys(a).map((e=>{const{symbol:t}=(0,n.i)(e);var r;return{value:e,label:t===e?e:`${e} ${r=t,String(r||"").replace(/\.+$/,"")}`}}));function o(e){return a[e]}function s(e){const t=o(e);return[10*t,30*t,200*t]}function i(e,t){return!isNaN(t)&&t>=o(e)}function l(e,t){if(!e)return null;if("number"==typeof e)return e;let r=e;return n.y[t].grouping&&(r=e.replace(new RegExp("\\"+n.y[t].grouping,"g"),"")),e=parseFloat(r.replace(new RegExp("\\"+n.y[t].decimal,"g"),".")),isNaN(e)?null:e}},74490:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(82170),a=r(56427);const o=({label:e,onClick:t})=>(0,n.createElement)(a.Button,{className:"components-toolbar__control",label:e,icon:"edit",onClick:t})},56539:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});const n=new Map,a=e=>n.has(e),o={acquire:e=>{if(a(e))return null;const t=Math.random();return n.set(e,t),[e,t]},blockExecution:async(e,t=10)=>{for(;a(e);)await new Promise((e=>setTimeout(e,t)))},clearAll:()=>n.clear(),isLocked:a,release:e=>{const[t,r]=e;return!(!a(t)||n.get(t)!==r)&&(n.delete(t),!0)}}},14121:(e,t,r)=>{"use strict";r.d(t,{DO:()=>_,FE:()=>A,Ic:()=>I,KS:()=>B,LI:()=>y,OH:()=>f,Pn:()=>u,Q8:()=>i,Q9:()=>v,Sh:()=>s,US:()=>g,_X:()=>c,bI:()=>m,fO:()=>p,gr:()=>C,kL:()=>l,o$:()=>d,oc:()=>E,ri:()=>h,xO:()=>b,yS:()=>k});var n=r(38443),a=r(27723),o=r(66087);const __=a.__,s="google_photos",i="openverse",l="pexels",c="jetpack_app_media",u="jetpack_ai_featured_image",A="jetpack_ai_general_purpose_image_for_media_source",g="jetpack_ai_general_purpose_image_for_block",d="recent",p="/",m=[{value:d,label:__("Photos","jetpack")},{value:p,label:__("Albums","jetpack")}],h=[{value:"", /* translators: category of images */ label:__("All categories","jetpack")},{value:"animals", /* translators: category of images */ label:__("Animals","jetpack")},{value:"arts", /* translators: category of images */ label:__("Arts","jetpack")},{value:"birthdays", /* translators: category of images */ label:__("Birthdays","jetpack")},{value:"cityscapes", /* translators: category of images */ label:__("Cityscapes","jetpack")},{value:"crafts", /* translators: category of images */ label:__("Crafts","jetpack")},{value:"fashion", /* translators: category of images */ label:__("Fashion","jetpack")},{value:"food", /* translators: category of images */ label:__("Food","jetpack")},{value:"flowers", /* translators: category of images */ label:__("Flowers","jetpack")},{value:"gardens", /* translators: category of images */ label:__("Gardens","jetpack")},{value:"holidays", /* translators: category of images */ label:__("Holidays","jetpack")},{value:"houses", /* translators: category of images */ label:__("Houses","jetpack")},{value:"landmarks", /* translators: category of images */ label:__("Landmarks","jetpack")},{value:"landscapes", /* translators: category of images */ label:__("Landscapes","jetpack")},{value:"night", /* translators: category of images */ label:__("Night","jetpack")},{value:"people", /* translators: category of images */ label:__("People","jetpack")},{value:"pets", /* translators: category of images */ label:__("Pets","jetpack")},{value:"selfies", /* translators: category of images */ label:__("Selfies","jetpack")},{value:"sport", /* translators: category of images */ label:__("Sport","jetpack")},{value:"travel", /* translators: category of images */ label:__("Travel","jetpack")},{value:"weddings", /* translators: category of images */ label:__("Weddings","jetpack")}],E=["mountain","ocean","river","clouds","pattern","abstract","sky"],f="ANY",C="LAST_7_DAYS",B="LAST_30_DAYS",b="LAST_6_MONTHS",k="LAST_12_MONTHS",y="CUSTOM",v=[{value:f,label:__("Any time","jetpack")},{value:C,label:__("Last 7 days","jetpack")},{value:B,label:__("Last 30 days","jetpack")},{value:b,label:__("Last 6 months","jetpack")},{value:k,label:__("Last 12 months","jetpack")},{value:y,label:__("Specific Month/Year","jetpack")}],I=(new Date).getFullYear(),_=[{label:__("Any Month","jetpack"),value:-1},...(0,o.map)((0,o.range)(0,12),(e=>({label:(0,n.dateI18n)("F",new Date(0,e)),value:e})))]},78276:(e,t,r)=>{"use strict";var n=r(96072),a=r.n(n),o=r(82170),s=r(85985),i=r(94715),l=r(52619),c=r(13218),u=r(29071),A=r(86397);if((0,s.gB)()&&"function"==typeof i.useBlockEditContext){(0,u.Oz)(),(0,u.x$)();const e=e=>e.unstableFeaturedImageFlow||e.modalClass&&e.modalClass.indexOf("featured-image")>-1,t=(e,t)=>["core/cover","core/image","core/gallery","core/media-text","jetpack/image-compare","jetpack/slideshow","jetpack/story","jetpack/tiled-gallery","videopress/video"].indexOf(e)>-1&&-1===t.toString().indexOf("coblocks");(0,l.addFilter)("editor.MediaUpload","external-media/replace-media-upload",(r=>n=>{const{name:s}=(0,i.useBlockEditContext)();let{render:l}=n;if("browse"===n?.mode&&t(s,l)||e(n)){const{allowedTypes:e,gallery:t=!1,value:r=[]}=n;e.indexOf("image")>-1&&!(t&&r.length>0)&&(l=e=>(0,o.createElement)(c.A,a()({},e,{mediaProps:n})))}return(0,o.createElement)(r,a()({},n,{render:l}))}),100),(0,l.addFilter)("blocks.registerBlockType","external-media/individual-blocks",(function(e,t){return"core/image"!==t?e:{...e,keywords:[...e.keywords,...A.DG.map((e=>e.keyword))]}}))}},57878:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n=r(82170),a=r(56427),o=r(86087),s=r(27723),i=r(48558),l=r(13022),c=r(66087),u=r(57608),A=r(49667);const __=s.__,g=(0,o.memo)((()=>(0,n.createElement)("div",{className:"jetpack-external-media-browser__empty"},(0,n.createElement)("p",null,__("Sorry, but nothing matched your search criteria.","jetpack")))));const d=function(e){const{media:t,isCopying:r,isLoading:s,pageHandle:d,className:p,multiple:m,setPath:h,nextPage:E,onCopy:f,selectButtonText:C}=e,[B,b]=(0,o.useState)([]),[k,y]=(0,o.useState)(-1),v=(0,o.useRef)(-1),I=(0,o.useRef)(null),_=(0,o.useCallback)((e=>{let t=[e];"folder"===e.type?h(e.ID):m?(t=B.slice(0,9).concat(e),B.find((t=>e.ID===t.ID))&&(t=B.filter((t=>t.ID!==e.ID)))):1===B.length&&e.ID===B[0].ID&&(t=[]),b(t)}),[B,m,h]),w=(0,o.useCallback)((()=>{f(B)}),[B,f]),Q=t.filter((e=>"folder"!==e.type)).length>0,S=(0,l.A)({"jetpack-external-media-browser__media":!0,"jetpack-external-media-browser__media__loading":s}),x=(0,l.A)({"jetpack-external-media-browser":!0,[p]:!0}),j=()=>{let e=1;const t=I.current.children;if(t.length>0){const r=t[0].offsetTop;for(;e<t.length&&t[e].offsetTop===r;)++e}v.current=e},L=(0,c.debounce)(j,400);(0,o.useEffect)((()=>(window.addEventListener("resize",L),()=>{window.removeEventListener("resize",L)})),[]),(0,o.useEffect)((()=>{t.length&&-1===v.current&&j()}),[t]);const N=(e,{item:t})=>{_(t)},T=(e,{item:r,index:n})=>{[i.LEFT,i.RIGHT,i.UP,i.DOWN].includes(e.keyCode)?((e,r)=>{switch(e){case i.LEFT:r>=1&&y(r-1);break;case i.RIGHT:r<t.length&&y(r+1);break;case i.UP:r>=v.current&&y(r-v.current);break;case i.DOWN:r<t.length-v.current&&y(r+v.current)}})(e.keyCode,n):i.SPACE===e.keyCode?(_(r),e.preventDefault()):i.ENTER===e.keyCode&&_(r),[i.LEFT,i.RIGHT,i.UP,i.DOWN,i.SPACE,i.ENTER].includes(e.keyCode)&&e.stopPropagation()};return(0,n.createElement)("div",{className:x},(0,n.createElement)("ul",{ref:I,className:S},t.map(((e,t)=>(0,n.createElement)(u.A,{item:e,index:t,key:e.ID,onClick:N,onKeyDown:T,focus:t===k,isSelected:B.find((t=>t.ID===e.ID)),isCopying:r}))),0===t.length&&!s&&(0,n.createElement)(g,null),s&&(0,n.createElement)(A.A,null),d&&!s&&(0,n.createElement)(a.Button,{variant:"secondary",className:"jetpack-external-media-browser__loadmore",disabled:s||r,onClick:()=>{t.length&&y(t.length),E()}},__("Load More","jetpack"))),Q&&(0,n.createElement)((e=>{const t=0===B.length||r,o=e?.labelText?e?.labelText(B.length):__("Select","jetpack",0),s=r?__("Inserting…","jetpack"):o;return(0,n.createElement)("div",{className:"jetpack-external-media-browser__media__toolbar"},(0,n.createElement)(a.Button,{variant:"primary",isBusy:r,disabled:t,onClick:w},s))}),{labelText:C}))}},57608:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(82170),a=r(56427),o=r(86087),s=r(27723),i=r(13022);const __=s.__;const l=function(e){const{item:t,focus:r,isSelected:s,isCopying:l=!1}=e,{thumbnails:c,caption:u,name:A,title:g,type:d,children:p=0}=t,{medium:m=null,fmt_hd:h=null,thumbnail:E=null}=c,f=g||u||A,C=(0,i.A)({"jetpack-external-media-browser__media__item":!0,"jetpack-external-media-browser__media__item__selected":s,"jetpack-external-media-browser__media__folder":"folder"===d,"is-transient":l}),B=(0,o.useRef)(null);return(0,o.useEffect)((()=>{r&&B.current.focus()}),[r]),(0,n.createElement)("li",{ref:B,className:C,onClick:l?void 0:t=>{const{item:r,index:n}=e;e.onClick&&e.onClick(t,{item:r,index:n})},onKeyDown:l?void 0:t=>{const{item:r,index:n}=e;e.onKeyDown&&e.onKeyDown(t,{item:r,index:n})},role:"checkbox",tabIndex:"0","aria-checked":!!s,"aria-disabled":!!l},s&&l&&(0,n.createElement)("div",{className:"jetpack-external-media-browser__media__copying_indicator"},(0,n.createElement)(a.Spinner,null),(0,n.createElement)("div",{className:"jetpack-external-media-browser__media__copying_indicator__label"},__("Inserting Image…","jetpack"))),(0,n.createElement)("img",{src:m||h||E,alt:f}),"folder"===d&&(0,n.createElement)("div",{className:"jetpack-external-media-browser__media__info"},(0,n.createElement)("div",{className:"jetpack-external-media-browser__media__name"},A),(0,n.createElement)("div",{className:"jetpack-external-media-browser__media__count"},p)))}},49667:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(82170),a=r(86087);const o=(0,a.memo)((function(){const e="jetpack-external-media-browser__media__item jetpack-external-media-browser__media__placeholder";return(0,n.createElement)(n.Fragment,null,(0,n.createElement)("div",{className:e}),(0,n.createElement)("div",{className:e}),(0,n.createElement)("div",{className:e}))}))},13218:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var n=r(96072),a=r.n(n),o=r(82170),s=r(94715),i=r(86087),l=r(86397),c=r(13502),u=r(3148);const A=e=>e.unstableFeaturedImageFlow||e.modalClass&&-1!==e.modalClass.indexOf("featured-image"),g=e=>void 0===e.multiple&&!A(e),d=["core/image","core/gallery","jetpack/slideshow"],p=!0===window?.Jetpack_Editor_Initial_State?.available_blocks?.["ai-general-purpose-image-generator"]?.available,m=window?.Jetpack_Editor_Initial_State?.next40pxDefaultSize;const h=function(e){const{name:t}=(0,s.useBlockEditContext)(),{mediaProps:r}=e,[n,h]=(0,i.useState)(null),E=(0,l.Pk)(n),f=A(r),C=d.includes(t);return(0,o.createElement)("div",{onClick:e=>e.stopPropagation(),className:"jetpack-external-media-button-wrapper"},(0,o.createElement)(u.A,a()({},e,{setSelectedSource:h,isReplace:g(r),isFeatured:f,hasImage:r.value>0,hasLargeButtons:m})),p&&!f&&C&&(0,o.createElement)(c.A,{setSelectedSource:h,hasLargeButtons:m}),E&&(0,o.createElement)(E,a()({},r,{onClose:e=>{e&&(e.stopPropagation(),e.target.closest(".jetpack-external-media-header__dropdown"))||(h(null),r.onClose?.())}})))}},13502:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(82170),a=r(56427),o=r(27723),s=r(14121);const __=o.__;const i=function(e){const{setSelectedSource:t,hasLargeButtons:r}=e;return(0,n.createElement)(a.Button,{__next40pxDefaultSize:r,variant:"secondary",className:"jetpack-external-media-button-menu","aria-haspopup":"false",onClick:()=>{t(s.US)}},(0,n.createElement)("div",{className:"jetpack-external-media-button-menu__label"},__("Generate with AI","jetpack")))}},3148:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(82170),a=r(56427),o=r(27723),s=r(51113),i=r(21679),l=r(6813);const __=o.__;const c=function(e){const{mediaProps:t,open:r,setSelectedSource:o,isFeatured:c,isReplace:u,hasImage:A,hasLargeButtons:g}=e,d=t.render;if(u)return(0,n.createElement)(l.A,{originalButton:d,open:r,setSource:o});let p=__("Select Image","jetpack");return t.multiple&&(p=__("Select Images","jetpack")),t.allowedTypes.length>1&&(p=__("Select Media","jetpack")),c&&(p=__("Replace Image","jetpack")),(0,n.createElement)(n.Fragment,null,(0,n.createElement)(a.Dropdown,{placement:"bottom-start",className:"jetpack-external-media-button-menu__dropdown",contentClassName:"jetpack-external-media-button-menu__options",renderToggle:({isOpen:e,onToggle:t})=>{const r=d&&d({open:t});return c&&A||r&&"string"!=typeof r.props.children?r:(0,n.createElement)(a.Button,{__next40pxDefaultSize:g,variant:"secondary",className:"jetpack-external-media-button-menu","aria-haspopup":"true","aria-expanded":e,onClick:t},(0,n.createElement)("div",{className:"jetpack-external-media-button-menu__label"},p),(0,n.createElement)(s.A,{icon:i.A}))},renderContent:({onClose:e})=>(0,n.createElement)(a.NavigableMenu,{"aria-label":p},(0,n.createElement)(a.MenuGroup,null,(0,n.createElement)(a.MenuItem,{icon:i.A,onClick:()=>{e(),r()}},__("Media Library","jetpack")),(0,n.createElement)(l.A,{open:r,setSource:o,onClick:e,isFeatured:c})))}))}},6813:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(82170),a=r(56427),o=r(86087),s=r(86397);const i=!0===window?.Jetpack_Editor_Initial_State?.available_blocks?.["ai-general-purpose-image-generator"]?.available;const l=function({originalButton:e=null,onClick:t=()=>{},open:r,setSource:l,isFeatured:c=!1}){return(0,n.createElement)(o.Fragment,null,e&&e({open:r}),s.w6.map((({icon:e,id:r,label:o})=>(0,n.createElement)(a.MenuItem,{icon:e,key:r,onClick:()=>{t(),l(r)}},o))),c&&s.QO.map((({icon:e,id:r,label:o})=>(0,n.createElement)(a.MenuItem,{icon:e,key:r,onClick:()=>{t(),l(r)}},o))),!c&&i&&s.S$.map((({icon:e,id:r,label:o})=>(0,n.createElement)(a.MenuItem,{icon:e,key:r,onClick:()=>{t(),l(r)}},o))),(0,n.createElement)("hr",{style:{marginLeft:"-8px",marginRight:"-8px"}}),s.uy.map((({icon:e,id:r,label:o})=>(0,n.createElement)(a.MenuItem,{icon:e,key:r,onClick:()=>{t(),l(r)}},o))))}},29071:(e,t,r)=>{"use strict";r.d(t,{Oz:()=>Q,jz:()=>S,x$:()=>w});var n=r(90372),a=r(1455),o=r.n(a),s=r(47143),i=r(27723),l=r(93832),c=r(1874),u=r(17576),A=r(71034);const __=i.__,g=__("Pexels Free Photos","jetpack"),d=__("Search Pexels Free Photos","jetpack"),p={per_page:10,search:"mountain"},m=__("Google Photos","jetpack"),h=__("Search Google Photos","jetpack"),E={per_page:25,search:""};var f=function(e){return e.List="/wpcom/v2/external-media/list/",e}(f||{}),C=function(e){return e.Image="image",e.Video="video",e}(C||{});const B=(e,t)=>(0,l.addQueryArgs)(`${f.List}${e}`,{...t.search&&{search:t.search},number:t.per_page||25,path:"recent"}),b=e=>({caption:e?.caption??"",previewUrl:e.thumbnails.thumbnail,title:e?.title??e?.name??e.file,url:e.URL}),k=(e,t,r,a,s)=>({name:e,labels:{name:t,search_items:r},mediaType:"image",fetch:async e=>await o()({path:B(a,{per_page:s.per_page,search:""===e?.search?s.search:e.search}),method:"GET"}).then((t=>{const r=t.media.filter((e=>e.type===C.Image)).map(b);return n.A.tracks.recordEvent("jetpack_editor_media_inserter_external_source",{mediaSource:a.toString(),results:r.length,search:""===e?.search?s.search:e.search}),r})).catch((()=>[])),getReportUrl:null,isExternalResource:!0}),y=()=>k("google_photos",m,h,A.g.GooglePhotos,E),v=()=>{const e=(0,s.select)("core/editor")?.isInserterOpened,t=e?.();return t||(0,s.select)("core/edit-site")?.isInserterOpened()||(0,s.select)("core/edit-widgets")?.isInserterOpened()},I=e=>(0,s.dispatch)("core/block-editor")?.registerInserterMediaCategory?.(e()),_=()=>k("pexels",g,d,A.g.Pexels,p),w=async()=>{(0,c.f)(v).then((async()=>{await(async e=>o()({path:B(e,p),method:"GET"}).then((e=>e)).catch((()=>!1)))(A.g.GooglePhotos)?I(y):(0,c.f)((()=>{return e=A.g.GooglePhotos,!!(0,s.select)(u.t).isAuthenticated(e);var e})).then((()=>I(y)))}))},Q=()=>{(0,c.f)(v).then((()=>I(_)))},S=(e,t)=>{(0,s.dispatch)(u.t).setAuthenticated(e,t)}},71034:(e,t,r)=>{"use strict";r.d(t,{g:()=>n});let n=function(e){return e.Pexels="pexels",e.GooglePhotos="google_photos",e.Openverse="openverse",e.JetpackAppMedia="jetpack_app_media",e.Unknown="unknown",e}({})},56141:(e,t,r)=>{"use strict";r.d(t,{e:()=>s});var n=r(85985),a=r(93832);const o={list:"/wpcom/v2/external-media/list/",copy:(0,n.Sy)()?"/rest/v1.1/external-media-upload?service=":"/wpcom/v2/external-media/copy/",connection:"/wpcom/v2/external-media/connection/"};function s(e,t,r={}){return o[e]?(0,a.addQueryArgs)(o[e]+t,r):null}},21049:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(82170),a=r(86087),o=r(27723),s=r(12199);const __=o.__;const i=(0,a.memo)((function(){return(0,n.createElement)(a.Fragment,null,(0,n.createElement)(s.mI,null),(0,n.createElement)("p",null,__("To get started, connect your site to your Google Photos library.","jetpack")),(0,n.createElement)("p",null,__("You can remove the connection in either of these places:","jetpack")),(0,n.createElement)("ul",null,(0,n.createElement)("li",null,(0,n.createElement)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://myaccount.google.com/security"},__("Google Security page","jetpack"))),(0,n.createElement)("li",null,(0,n.createElement)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://wordpress.com/marketing/connections/"},__("WordPress.com Connections","jetpack")))))}))},38491:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(82170),a=r(86087),o=r(27723);const __=o.__;const s=(0,a.memo)((function(){return(0,n.createElement)("p",null,__("Awaiting authorization","jetpack"))}))},90199:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(82170),a=r(56427),o=r(86087),s=r(27723),i=r(14121);const __=s.__;const l=(0,o.memo)((function({path:e,setPath:t}){return(0,n.createElement)(o.Fragment,null,(0,n.createElement)(a.Button,{variant:"tertiary",onClick:()=>t(i.fO)},__("Albums","jetpack")),"→ ",e.name)}))},50645:(e,t,r)=>{"use strict";r.d(t,{A:()=>m});var n=r(82170),a=r(56427),o=r(86087),s=r(27723),i=r(66087),l=r(1458),c=r(14121);const __=s.__;function u({value:e,updateFilter:t}){return(0,n.createElement)(a.SelectControl,{label:__("Category","jetpack"),value:e,options:c.ri,onChange:t,__nextHasNoMarginBottom:!0})}function A({value:e,updateFilter:t}){const r=e?.range||c.OH,[s,i]=(0,o.useState)(-1),[u,A]=(0,o.useState)(c.Ic);return(0,n.createElement)("div",{className:"jetpack-external-media-date-filter"},(0,n.createElement)(a.SelectControl,{label:__("Filter by time period","jetpack"),value:r,options:c.Q9,onChange:e=>t({range:e}),__nextHasNoMarginBottom:!0}),r===c.LI&&(0,n.createElement)(o.Fragment,null,(0,n.createElement)(a.SelectControl,{label:__("Month","jetpack"),value:s,options:c.DO,onChange:i,__nextHasNoMarginBottom:!0}),(0,n.createElement)(l.A,{className:"components-base-control",label:__("Year","jetpack"),value:u,min:1970,onChange:A}),(0,n.createElement)(a.Button,{variant:"secondary",disabled:e?.month===s&&e?.year===u,onClick:()=>{t({range:r,month:s,year:u})}},__("Apply","jetpack"))))}function g(){return(0,n.createElement)("span",null,__("Favorites","jetpack"))}function d({value:e,updateFilter:t}){const r=[{label:__("All","jetpack"),value:""},{label:__("Images","jetpack"),value:"photo"},{label:__("Videos","jetpack"),value:"video"}];return(0,n.createElement)(a.SelectControl,{label:__("Type","jetpack"),value:e,options:r,onChange:t})}function p({children:e,removeFilter:t,isRemovable:r=!1}){return(0,n.createElement)("div",{className:"jetpack-external-media-googlephotos-filter"},e,!!r&&(0,n.createElement)(a.Button,{onClick:t,isSmall:!0},__("Remove Filter","jetpack")))}const m=function({filters:e,setFilters:t,canChangeMedia:r}){const a=Object.keys(e).filter((e=>r||"mediaType"!==e)).map((r=>{return(0,n.createElement)(p,{key:r,removeFilter:()=>t((0,i.omit)(e,r))},(a=r,o=e[r],s=n=>t(function(e,t,r){const n={...e,[t]:r};return"mediaType"===t&&"video"===r?delete n.category:"category"===t&&"video"===n.mediaType&&delete n.mediaType,n}(e,r,n)),"category"===a?(0,n.createElement)(u,{value:o,updateFilter:s}):"date"===a?(0,n.createElement)(A,{value:o,updateFilter:s}):"favorite"===a?(0,n.createElement)(g,{value:o}):"mediaType"===a?(0,n.createElement)(d,{value:o,updateFilter:s}):null));var a,o,s}));return 0===a.length?null:a}},34479:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(76154),a=r.n(n),o=r(14121);const s=a()();function i(e){const{mediaType:t,category:r,favorite:n,date:i}=e,l=[];if(t&&l.push("mediaType="+t),r&&"video"!==t&&l.push("categoryInclude="+r),void 0!==n&&l.push("feature=favorite"),i){let e=null,t=null;switch(i.range){case o.gr:e=a()(s).subtract(7,"days"),t=s;break;case o.KS:e=a()(s).subtract(30,"days"),t=s;break;case o.xO:e=a()(s).subtract(6,"months"),t=s;break;case o.yS:e=a()(s).subtract(1,"year"),t=s;break;case o.LI:{const r=parseInt(i.month),n=parseInt(i.year);isNaN(r)||isNaN(n)||(-1===r?(e=a()([n,0]),t=a()(e).endOf("year")):(e=a()([n,r]),t=a()(e).endOf("month")))}}const r=e?e.format("YYYY-MM-DD"):"0000-00-00",n=t?t.format("YYYY-MM-DD"):"0000-00-00";l.push(`dateRange=${r}:${n}`)}return l.length>0?l:null}},14845:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(82170),a=r(56427),o=r(86087),s=r(27723);const __=s.__,i=[{label:__("Category","jetpack"),value:"category"},{label:__("Date","jetpack"),value:"date"},{label:__("Favorites","jetpack"),value:"favorite"},{label:__("Media Type","jetpack"),value:"mediaType"}];function l(e){return i.filter((t=>void 0===e[t.value]))}function c(e){const t=l(e);return t.length>0?t[0].value:""}const u=function(e){const[t,r]=(0,o.useState)(c([])),{isLoading:s,isCopying:i,filters:u,canChangeMedia:A}=e,g=function(e,t){return t?e:e.filter((e=>"mediaType"!==e.value))}(l(u),A);return 0===g.length?null:(0,n.createElement)(o.Fragment,null,(0,n.createElement)(a.SelectControl,{label:__("Filters","jetpack"),value:t,disabled:s||i,options:g,onChange:r,__nextHasNoMarginBottom:!0}),(0,n.createElement)(a.Button,{disabled:s||i,variant:"secondary",isSmall:!0,onClick:()=>{const n=(a=u,o=t,{...a,[o]:"favorite"===o||""});var a,o;e.setFilters(n),r(c(n))}},__("Add Filter","jetpack")))}},44516:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(82170),a=r(28765);const o=({account:e,setAuthenticated:t})=>{const{image:r,name:o}=e||{};return(0,n.createElement)("div",{className:"jetpack-external-media-header__account"},(0,n.createElement)("div",{className:"jetpack-external-media-header__account-info"},r&&(0,n.createElement)("img",{className:"jetpack-external-media-header__account-image",src:r,alt:"",height:"18",width:"18"}),o&&(0,n.createElement)("div",{className:"jetpack-external-media-header__account-name"},o)),(0,n.createElement)(a.A,{setAuthenticated:t}))}},24169:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var n=r(82170),a=r(97684),o=r(1455),s=r.n(o),i=r(56427),l=r(86087),c=r(27723),u=r(14121),A=r(56141),g=r(21049),d=r(38491);const __=c.__;const p=function(e){const{setAuthenticated:t}=e,[r,o]=(0,l.useState)(!1),c=(0,l.useCallback)((()=>{o(!0),s()({path:(0,A.e)("connection",u.Sh)}).then((e=>{if(e.error)throw e.message;(0,a.A)(e.connect_URL,(()=>{o(!1),t(!0)}))})).catch((()=>{o(!1)}))}),[t]);return(0,n.createElement)("div",{className:"jetpack-external-media-auth"},r?(0,n.createElement)(d.A,null):(0,n.createElement)(g.A,null),(0,n.createElement)(i.Button,{variant:"primary",disabled:r,onClick:c},__("Connect to Google Photos","jetpack")))}},28765:(e,t,r)=>{"use strict";r.d(t,{A:()=>A});var n=r(82170),a=r(1455),o=r.n(a),s=r(56427),i=r(86087),l=r(27723),c=r(14121),u=r(56141);const __=l.__,A=({setAuthenticated:e})=>{const[t,r]=(0,i.useState)(!1),a=(0,i.useCallback)((()=>{r(!0),o()({method:"DELETE",path:(0,u.e)("connection",c.Sh)}).then((()=>e(!1))).catch((()=>r(!1)))}),[e]);return(0,n.createElement)(s.Button,{variant:"secondary",className:"jetpack-external-media-browser__disconnect",onClick:a,disabled:t,isBusy:t},__("Disconnect from Google Photos","jetpack"))}},78235:(e,t,r)=>{"use strict";r.d(t,{A:()=>m});var n=r(82170),a=r(56427),o=r(86087),s=r(27723),i=r(14121),l=r(57878),c=r(56141),u=r(90199),A=r(50645),g=r(34479),d=r(14845),p=r(44516);const __=s.__;const m=function(e){const{account:t,allowedTypes:r,copyMedia:s,getMedia:m,isCopying:h,isLoading:E,media:f,multiple:C,onChangePath:B,pageHandle:b,path:k,setAuthenticated:y,showAdditionalFilters:v=!1}=e,I=(_=r)&&1===_.length&&"image"===_[0];var _;const[w,Q]=(0,o.useState)(I?{mediaType:"photo",date:{range:i.OH}}:{date:{range:i.OH}}),S=(0,o.useRef)(""),x=(0,o.useRef)(""),j=k.ID===i.o$?(0,g.A)(w):null,L={number:20,path:k.ID};j&&(L.filter=j);const N=(0,c.e)("list",i.Sh,L),T=(0,o.useCallback)(((e,t=!1)=>{m(N,t)}),[m,N]),R=(0,o.useCallback)((e=>{const t=f.find((t=>t.ID===e));x.current=k,B(t||{ID:e})}),[f,B,x,k]),P=(0,o.useCallback)((e=>{s(e,(0,c.e)("copy",i.Sh),i.Sh)}),[s]);return(0,o.useEffect)((()=>{S!==N&&(S.current=N,T({},k!==x.current))}),[S,N,T,k]),(0,n.createElement)("div",{className:"jetpack-external-media-wrapper__google"},(0,n.createElement)("div",{className:"jetpack-external-media-header__view"},(0,n.createElement)(a.SelectControl,{className:"jetpack-external-media-header__select",label:__("View","jetpack"),value:k.ID!==i.o$?i.fO:i.o$,disabled:E||h,options:i.bI,onChange:R,__nextHasNoMarginBottom:!0}),v&&k.ID===i.o$&&(0,n.createElement)(d.A,{filters:w,isLoading:E,setFilters:Q,canChangeMedia:!I}),(0,n.createElement)("div",{className:"jetpack-external-media-header__filter"},k.ID===i.o$&&(0,n.createElement)(A.A,{filters:w,isLoading:E,setFilters:Q,canChangeMedia:!I}),k.ID!==i.o$&&k.ID!==i.fO&&(0,n.createElement)(u.A,{path:k,setPath:R})),(!E||f.length>0)&&(0,n.createElement)(p.A,{account:t,setAuthenticated:y})),(0,n.createElement)(l.A,{className:"jetpack-external-media-browser__google",key:N,media:f,isCopying:h,isLoading:E,nextPage:T,onCopy:P,pageHandle:b,multiple:C,setPath:R}))}},64045:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(82170),a=r(71034),o=r(51024),s=r(24169),i=r(78235);const l=(0,o.A)(a.g.GooglePhotos)((function(e){return e.isAuthenticated?(0,n.createElement)(i.A,e):(0,n.createElement)(s.A,e)}))},86397:(e,t,r)=>{"use strict";r.d(t,{DG:()=>C,Pk:()=>B,QO:()=>h,S$:()=>E,uy:()=>f,w6:()=>m});var n=r(82170),a=r(96865),o=r(27723),s=r(12199),i=r(14121),l=r(64045),c=r(19453),u=r(44814),A=r(93917),g=r(79040),d=r(58472),p=r(14300);const __=o.__,m=[{id:i._X,label:__("Your Phone","jetpack"),icon:(0,n.createElement)(s.Bl,{className:"components-menu-items__item-icon"}),keyword:"jetpack mobile app"}],h=[{id:i.Pn,label:__("Generate with AI","jetpack"),icon:a.cj,keyword:"jetpack ai"}],E=[{id:i.FE,label:__("Generate with AI","jetpack"),icon:a.cj,keyword:"jetpack ai"}],f=[{id:i.Sh,label:__("Google Photos","jetpack"),icon:(0,n.createElement)(s.mb,{className:"components-menu-items__item-icon"}),keyword:"google photos"},{id:i.kL,label:__("Pexels Free Photos","jetpack"),icon:(0,n.createElement)(s.tC,{className:"components-menu-items__item-icon"}),keyword:"pexels"},{id:i.Q8,label:__("Openverse","jetpack"),icon:(0,n.createElement)(s.p3,{className:"components-menu-items__item-icon"}),keyword:"openverse"}],C=f.concat(m);function B(e){return e===i.kL?p.A:e===i.Sh?l.A:e===i.Q8?d.A:e===i._X?g.A:e===i.Pn?c.A:e===i.FE?A.A:e===i.US?u.A:null}},19453:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(82170),a=r(46536);const o=function({onClose:e=()=>{}}){return(0,n.createElement)(a.m2,{placement:a.hB,onClose:e})}},44814:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(82170),a=r(46536);const o=function({onClose:e=()=>{},onSelect:t,multiple:r=!1}){return(0,n.createElement)(a.OE,{placement:a.dY,onClose:e,onSetImage:e=>t(r?[e]:e)})}},93917:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(82170),a=r(46536);const o=function({onClose:e=()=>{},onSelect:t,multiple:r=!1}){return(0,n.createElement)(a.OE,{placement:a.hB,onClose:e,onSetImage:e=>t(r?[e]:e)})}},79040:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n=r(82170),a=r(36281),o=r(47143),s=r(86087),i=r(27723),l=r(12199),c=r(71960),u=r(57878),A=r(71034),g=r(51024);const __=i.__,_n=i._n;const d=(0,g.A)(A.g.JetpackAppMedia)((function(e){const{media:t,insertMedia:r,isCopying:A,multiple:g,getMedia:d}=e,p=window?.Jetpack_Editor_Initial_State?.wpcomBlogId||0,m=window?.Jetpack_Editor_Initial_State?.pluginBasePath+"/images/",h=(0,o.useSelect)((e=>e("core/editor").getCurrentPostId())),[E]=(0,s.useState)(Date.now()/1e3),f=(0,s.useCallback)((()=>{d(`/wpcom/v2/app-media?refresh=true&after=${E}`,!0)}),[d,E]),C=(0,s.useCallback)((()=>{d(`/wpcom/v2/app-media?refresh=true&after=${E}`,!1,!1)}),[d,E]),B=(0,s.useCallback)((e=>{r(e)}),[r]);(0,s.useEffect)((()=>{t.length&&!g&&B(t)}),[t,g,B]),(0,s.useEffect)(f,[]),(0,c.A)(C,2e3);const b=!!t.length,k=b?"jetpack-external-media-wrapper__jetpack_app_media-wrapper":"jetpack-external-media-wrapper__jetpack_app_media-wrapper has-no-image-uploaded";return(0,n.createElement)("div",{className:k},(0,n.createElement)(l.v7,null),(0,n.createElement)("h2",{className:"jetpack-external-media-wrapper__jetpack_app_media-title"},b&&__("Select images to be added","jetpack"),!b&&__("Upload from your phone","jetpack")),(0,n.createElement)("p",{className:"jetpack-external-media-wrapper__jetpack_app_media-description"},b&&__("Select the images below to add, or continue adding more from your device.","jetpack"),!b&&__("Scan the QR code with your iPhone or Android camera to upload from your photos.","jetpack")),!b&&(0,n.createElement)("div",{className:"jetpack-external-media-wrapper__jetpack_app_media-qr-code-wrapper"},(0,n.createElement)("div",{className:"jetpack-external-media-wrapper__jetpack_app_media-qr-code"},(0,n.createElement)(a.A,{size:"100",value:`https://apps.wordpress.com/get/?campaign=qr-code-media&postId=${h}#%2Fmedia%2F${p}`})),(0,n.createElement)("div",{className:"jetpack-external-media-wrapper__jetpack_app_media-instructions"},(0,n.createElement)("img",{src:`${m}app-image-upload.png`,srcSet:`${m}app-image-upload.png 1x, ${m}app-image-upload-2x.png 2x`,alt:""}))),b&&(0,n.createElement)(u.A,{key:"jetpack-app-media",className:"jetpack-external-media-browser__jetpack_app_media_browser",media:t,isCopying:A,isLoading:!1,nextPage:f,onCopy:B,pageHandle:!1,multiple:g,selectButtonText:e=>e?(0,i.sprintf)(/* translators: %1$d is the number of images that were selected. */ _n("Add %1$d image","Add %1$d images",e,"jetpack"),e):__("Add images","jetpack")}))}))},58472:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n=r(82170),a=r(56427),o=r(86087),s=r(27723),i=r(66087),l=r(14121),c=r(57878),u=r(71034),A=r(56141),g=r(51024);const __=s.__;const d=(0,g.A)(u.g.Openverse)((function(e){const{media:t,isCopying:r,isLoading:s,pageHandle:u,multiple:g,copyMedia:d,getMedia:p}=e,[m,h]=(0,o.useState)((0,i.sample)(l.oc)),[E,f]=(0,o.useState)(""),C=(0,o.useCallback)((e=>{d(e,(0,A.e)("copy",l.Q8),l.Q8)}),[d]),B=(0,o.useCallback)(((e,t=!1)=>{m&&p((0,A.e)("list",l.Q8,{number:20,search:m}),t)}),[p,m]),b=(0,o.useRef)(void 0),k=(0,o.useCallback)((e=>{e.preventDefault(),f(m),B(e,!0),b.current=m}),[B,m]);(0,o.useEffect)(B,[]);const y=(0,o.useRef)(null);return(0,o.useEffect)((()=>{if(!y?.current)return;const e=y.current.querySelector("input[type='search']");e&&(e.focus(),e.select())}),[]),(0,n.createElement)("div",{className:"jetpack-external-media-wrapper__openverse"},(0,n.createElement)("form",{ref:y,className:"jetpack-external-media-header__openverse",onSubmit:k},(0,n.createElement)(a.TextControl,{"aria-label":__("Search","jetpack"),type:"search",value:m,onChange:h,disabled:!!r,__nextHasNoMarginBottom:!0}),(0,n.createElement)(a.Button,{isPrimary:!0,onClick:k,type:"submit",disabled:!m.length||m===b.current||r},__("Search","jetpack"))),(0,n.createElement)(c.A,{key:E,className:"jetpack-external-media-browser__openverse",media:t,isCopying:r,isLoading:s,nextPage:B,onCopy:C,pageHandle:u,multiple:g}))}))},14300:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n=r(82170),a=r(56427),o=r(86087),s=r(27723),i=r(66087),l=r(14121),c=r(57878),u=r(71034),A=r(56141),g=r(51024);const __=s.__;const d=(0,g.A)(u.g.Pexels)((function(e){const{media:t,isCopying:r,isLoading:s,pageHandle:u,multiple:g,copyMedia:d,getMedia:p}=e,[m,h]=(0,o.useState)((0,i.sample)(l.oc)),[E,f]=(0,o.useState)(""),C=(0,o.useCallback)((e=>{d(e,(0,A.e)("copy",l.kL),l.kL)}),[d]),B=(0,o.useCallback)(((e,t=!1)=>{m&&p((0,A.e)("list",l.kL,{number:20,path:"recent",search:m}),t)}),[p,m]),b=(0,o.useRef)(void 0),k=(0,o.useCallback)((e=>{e.preventDefault(),f(m),B(e,!0),b.current=m}),[B,m]);(0,o.useEffect)(B,[]);const y=(0,o.useRef)(null);return(0,o.useEffect)((()=>{if(!y.current)return;const e=Array.from(y.current.elements).find((e=>"search"===e.type));e&&(e.focus(),e.select())}),[]),(0,n.createElement)("div",{className:"jetpack-external-media-wrapper__pexels"},(0,n.createElement)("form",{ref:y,className:"jetpack-external-media-header__pexels",onSubmit:k},(0,n.createElement)(a.TextControl,{"aria-label":__("Search","jetpack"),type:"search",value:m,onChange:h,disabled:!!r,__nextHasNoMarginBottom:!0}),(0,n.createElement)(a.Button,{variant:"primary",onClick:k,type:"submit",disabled:!m.length||m===b.current||r},__("Search","jetpack"))),(0,n.createElement)(c.A,{key:E,className:"jetpack-external-media-browser__pexels",media:t,isCopying:r,isLoading:s,nextPage:B,onCopy:C,pageHandle:u,multiple:g}))}))},51024:(e,t,r)=>{"use strict";r.d(t,{A:()=>E});var n=r(82170),a=r(1455),o=r.n(a),s=r(56427),i=r(29491),l=r(47143),c=r(86087),u=r(27723),A=r(48558),g=r(13022),d=r(66087),p=r(14121),m=r(29071),h=r(71034);const __=u.__;function E(e=h.g.Unknown){return(0,i.createHigherOrderComponent)((t=>{class r extends c.Component{constructor(e){super(e),this.defaultAccount={image:"",name:""},this.state={account:this.defaultAccount,media:[],nextHandle:!1,isLoading:!1,isCopying:null,isAuthenticated:!0,path:{ID:p.o$}}}contentRef=e=>{e?(this.contentElement=e,this.modalElement=e.closest(".jetpack-external-media-browser"),this.modalElement&&this.modalElement.addEventListener("keydown",this.stopArrowKeysPropagation)):this.modalElement&&(this.modalElement.removeEventListener("keydown",this.stopArrowKeysPropagation),this.modalElement=null,this.contentElement=null)};stopArrowKeysPropagation=e=>{[A.UP,A.DOWN,A.LEFT,A.RIGHT].includes(e.keyCode)&&!e.target.classList.contains("jetpack-external-media-browser__media__item")&&e.stopPropagation()};setAuthenticated=t=>{this.setState({isAuthenticated:t}),(0,m.jz)(e,t)};mergeMedia(e,t){return(0,d.uniqBy)(e.concat(t),"ID")}getRequestUrl(e){const{nextHandle:t}=this.state;return t?e+"&page_handle="+encodeURIComponent(t):e}getMedia=(e,t=!1,r=!0)=>{this.state.isLoading||(t&&this.props.noticeOperations.removeAllNotices(),this.setState({account:t?this.defaultAccount:this.state.account,isLoading:r,media:t?[]:this.state.media,nextHandle:!t&&this.state.nextHandle},(()=>this.getMediaRequest(e))))};handleApiError=e=>{if("authorization_required"===e.code)return this.setAuthenticated(!1),void this.setState({isLoading:!1,isCopying:!1});e.errors?.length&&(e={code:e.errors[0].error,message:e.errors[0].message});const{noticeOperations:t}=this.props;t.removeAllNotices(),t.createErrorNotice("internal_server_error"===e.code?"Internal server error":e.message),this.setState({isLoading:!1,isCopying:!1})};getMediaRequest=e=>{const{nextHandle:t,media:r}=this.state;if(!1===t&&r.length>0)return void this.setState({isLoading:!1});const n=this.getRequestUrl(e);o()({path:n,method:"GET",parse:void 0===window.wpcomFetch}).then((e=>{this.setState({account:e.meta.account,media:this.mergeMedia(r,e.media),nextHandle:e.meta.next_page,isLoading:!1}),this.setAuthenticated(!0)})).catch(this.handleApiError)};copyMedia=(e,t,r)=>{this.setState({isCopying:e}),this.props.noticeOperations.removeAllNotices(),this.modalElement&&this.modalElement.focus(),o()({path:t,method:"POST",data:{external_ids:e.map((e=>e.guid)),media:e.map((e=>({guid:e.guid,caption:e.caption,title:e.title}))),service:r,post_id:this.props.postId}}).then((e=>{e.media&&(e=e.media.map((e=>({alt:e.alt,caption:e.caption,id:e.ID,type:"image",url:e.URL}))));const{value:t,addToGallery:r,multiple:n}=this.props,a=n?e:e[0],o=e.find((e=>e.errors));if(o){const{errors:e}=o,t=Object.keys(e)[0];this.handleApiError({code:t,message:e[t]})}else this.props.onClose(),this.props.onSelect(r?t.concat(e):a)})).catch(this.handleApiError)};mapImageToResult=e=>({alt:e.name,caption:e.caption,id:e.ID,type:"image",url:e.url,sizes:{thumbnail:{url:e.thumbnails.thumbnail},large:{url:e.thumbnails.large}}});insertMedia=e=>{this.setState({isCopying:e}),this.props.noticeOperations.removeAllNotices(),this.modalElement&&this.modalElement.focus();let t=[];t=0!==e.length?e.map(this.mapImageToResult):[this.mapImageToResult(e)];const{value:r,multiple:n,addToGallery:a}=this.props,o=n?t:t[0];this.props.onClose(),this.props.onSelect(a?r.concat(t):o)};onChangePath=(e,t)=>{this.setState({path:e},t)};render(){const{account:r,isAuthenticated:a,isCopying:o,isLoading:i,media:l,nextHandle:c,path:u}=this.state,{allowedTypes:A,multiple:d=!1,noticeUI:p,onClose:m}=this.props,h="jetpack_app_media"!==e?__("Select media","jetpack"):"",E=o?__("Inserting media","jetpack"):h,f=o?__("When the media is finished copying and inserting, you will be returned to the editor.","jetpack"):__("Select the media you would like to insert into the editor.","jetpack",0),C="jetpack-external-media-browser__description",B=(0,g.A)({"jetpack-external-media-browser":!0,"jetpack-external-media-browser--is-copying":o,"is-jetpack-app-media":"jetpack_app_media"===e});return(0,n.createElement)(s.Modal,{onRequestClose:m,title:E,aria:{describedby:C},className:B},(0,n.createElement)("div",{ref:this.contentRef},p,(0,n.createElement)("p",{id:C,className:"jetpack-external-media-browser--visually-hidden"},f),(0,n.createElement)(t,{account:r,getMedia:this.getMedia,copyMedia:this.copyMedia,insertMedia:this.insertMedia,isCopying:o,isLoading:i,media:l,pageHandle:c,allowedTypes:A,isAuthenticated:a,setAuthenticated:this.setAuthenticated,multiple:d,path:u,onChangePath:this.onChangePath})))}}return(0,l.withSelect)((e=>{const t=e("core/editor").getCurrentPost();return{postId:("number"==typeof t?.id?t.id:t?.wp_id)??0}}))((0,s.withNotices)(r))}))}},4119:(e,t,r)=>{"use strict";r.d(t,{A:()=>a,l:()=>n});const n="SET_AUTHENTICATED",a={setAuthenticated:(e,t)=>({type:n,payload:{isAuthenticated:t,mediaSource:e}})}},17576:(e,t,r)=>{"use strict";r.d(t,{t:()=>l});var n=r(47143),a=r(4119),o=r(63380),s=r(51042);const i={actions:a.A,reducer:o.A,selectors:s.A},l=(0,n.createReduxStore)("jetpack-media",i);(0,n.register)(l)},63380:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(4119),a=r(73409);const o=(e=a.i,t)=>t.type===n.l?{...e,mediaSourceIsAuthenticated:e.mediaSourceIsAuthenticated.set(t.payload.mediaSource,t.payload.isAuthenticated)}:e},51042:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={isAuthenticated:(e,t)=>e.mediaSourceIsAuthenticated.get(t)??!1}},73409:(e,t,r)=>{"use strict";r.d(t,{i:()=>a});var n=r(71034);const a={mediaSourceIsAuthenticated:new Map([[n.g.Pexels,!1],[n.g.GooglePhotos,!1],[n.g.Openverse,!1],[n.g.Unknown,!1]])}},333:(e,t,r)=>{"use strict";r.d(t,{wc:()=>s});var n=r(85985),a=r(66087);function o(){return(0,a.get)((0,n.$i)(),["allowedMimeTypes"],[])}function s(e,t){if(!e||!t)return!1;if(!o())return!1;const r=(n=t)?(0,a.pickBy)(o(),(e=>(0,a.startsWith)(e,`${n}/`))):{};var n;const s=(i=r)?(0,a.flatten)((0,a.map)((0,a.keys)(i),(e=>e.split("|")))):[];var i;if("string"==typeof e){const t=e.split(".").pop();return t&&s.includes(t)}return"object"==typeof e&&(e.type&&(0,a.values)(r).includes(e.type))}},97969:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(74997);function a(...e){const t=(0,n.getCategories)();for(const r of e)if(t.some((({slug:e})=>e===r)))return r;throw new Error(`Could not find a category from the provided list: ${e.join(",")}`)}},27574:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(93832);function a(e,t){if(!(0,n.isURL)(t))return null;let r=t;try{const a=(0,n.getQueryArg)(t,"state"),o=JSON.parse(atob(a));if(e)o.from_editor_post_id=e;else{const e=new URLSearchParams(window.location.search);o.from_site_editor_post_id=e.get("postId"),o.from_site_editor_post_type=e.get("postType")}r=(0,n.addQueryArgs)(t,{state:btoa(JSON.stringify(o))})}catch(e){0}return r}},78218:(e,t,r)=>{"use strict";r.d(t,{y:()=>a});var n=r(66087);const a=(e,t)=>(0,n.reduce)(t,((t,r,n)=>{if(void 0===e[n])return t;const{type:a,validator:o,validValues:s,default:i}=e[n];return t[n]="boolean"===a?"false"!==r&&!!r:o?o(r)?r:i:s?s.includes(r)?r:i:r,t}),{})},90840:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(96072),a=r.n(n),o=r(82170),s=r(13022),i=r(49789);const l=({children:e=null,isError:t=!1,...r})=>{const n=(0,s.A)("help-message",{"help-message-is-error":t});return e&&(0,o.createElement)("div",a()({className:n},r),t&&(0,o.createElement)(i.A,{size:"24","aria-hidden":"true",role:"img",focusable:"false"}),(0,o.createElement)("span",null,e))}},12199:(e,t,r)=>{"use strict";r.d(t,{Bl:()=>h,KZ:()=>b,M4:()=>C,QB:()=>B,T3:()=>f,ik:()=>y,mI:()=>p,mb:()=>A,oW:()=>v,p3:()=>g,tC:()=>d,ud:()=>k,ux:()=>m,v7:()=>E});var n=r(96072),a=r.n(n),o=r(82170),s=r(38377),i=r(56427),l=r(13022),c=r(88659);const u=s.T["Jetpack Green 40"],A=e=>(0,o.createElement)(i.SVG,a()({height:"24",width:"24",viewBox:"1.2 10.8 169.6 169.6",xmlns:"http://www.w3.org/2000/svg"},e),(0,o.createElement)(i.Path,{d:"m43.6 49.4c23.4 0 42.4 19 42.4 42.4v3.9h-80.9c-2.1 0-3.8-1.7-3.9-3.9 0-23.4 19-42.4 42.4-42.4z",fill:"#f6bc04"}),(0,o.createElement)(i.Path,{d:"m132.2 53.2c0 23.4-19 42.4-42.4 42.4h-3.8v-80.9c0-2.1 1.7-3.9 3.8-3.9 23.5 0 42.4 19 42.4 42.4z",fill:"#ea4335"}),(0,o.createElement)(i.Path,{d:"m128.4 141.9c-23.4 0-42.4-19-42.4-42.4v-3.9h80.9c2.1 0 3.9 1.7 3.9 3.8 0 23.5-19 42.5-42.4 42.5z",fill:"#4285f4"}),(0,o.createElement)(i.Path,{d:"m39.8 138c0-23.4 19-42.4 42.4-42.4h3.8v80.9c0 2.1-1.7 3.8-3.9 3.9-23.4 0-42.3-19-42.3-42.4z",fill:"#34a853"})),g=e=>(0,o.createElement)(i.SVG,a()({style:{fill:"#30272e",background:"#ffe033",padding:"3px",width:"22px",height:"24px"},width:"46",height:"42",viewBox:"0 0 46 42",xmlns:"http://www.w3.org/2000/svg"},e),(0,o.createElement)(i.G,null,(0,o.createElement)(i.Path,{d:"M0 9.3975C0 14.5687 4.1722 18.795 9.3353 18.795V0C4.1722 0 0 4.2 0 9.3975Z"}),(0,o.createElement)(i.Path,{d:"M13.6118 9.3975C13.6118 14.5687 17.784 18.795 22.9471 18.795V0C17.8101 0 13.6118 4.2 13.6118 9.3975Z"}),(0,o.createElement)(i.Path,{d:"M36.5589 18.795C41.7147 18.795 45.8942 14.5876 45.8942 9.3975C45.8942 4.2074 41.7147 0 36.5589 0C31.4032 0 27.2236 4.2074 27.2236 9.3975C27.2236 14.5876 31.4032 18.795 36.5589 18.795Z"}),(0,o.createElement)(i.Path,{d:"M0 32.6025C0 37.8 4.1722 42 9.3353 42V23.2312C4.1722 23.2312 0 27.4312 0 32.6025Z"}),(0,o.createElement)(i.Path,{d:"M13.6118 32.5238C13.6118 37.695 17.784 41.9213 22.9471 41.9213V23.1525C17.8101 23.1525 13.6118 27.3525 13.6118 32.5238Z"}),(0,o.createElement)(i.Path,{d:"M36.5589 41.9212C41.7147 41.9212 45.8942 37.7138 45.8942 32.5238C45.8942 27.3337 41.7147 23.1263 36.5589 23.1263C31.4032 23.1263 27.2236 27.3337 27.2236 32.5238C27.2236 37.7138 31.4032 41.9212 36.5589 41.9212Z"}))),d=e=>(0,o.createElement)(i.SVG,a()({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},e),(0,o.createElement)(i.Path,{d:"M14 7H9v10h3.9v-3.8H14c1.7 0 3.1-1.4 3.1-3.1C17.2 8.4 15.8 7 14 7z"}),(0,o.createElement)(i.Path,{d:"M20.5 2h-17C2.7 2 2 2.7 2 3.5v17c0 .8.7 1.5 1.5 1.5h17c.8 0 1.5-.7 1.5-1.5v-17c0-.8-.7-1.5-1.5-1.5zm-5.6 13.2V19H7V5h7c2.8 0 5.1 2.3 5.1 5.1.1 2.5-1.8 4.7-4.2 5.1z"})),p=()=>{const e="#757575";return(0,o.createElement)(i.SVG,{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/SVG",x:"0px",y:"0px",viewBox:"0 0 1292 448",style:{enableBackground:"new 0 0 1292 448"}},(0,o.createElement)(i.G,{id:"Icon"},(0,o.createElement)(i.Path,{class:"st0",fill:"#F6B704",d:"M171.6,177.4c23.4,0,42.4,19,42.4,42.4v3.9h-80.9c-2.1,0-3.8-1.7-3.9-3.9C129.2,196.4,148.2,177.4,171.6,177.4 C171.6,177.4,171.6,177.4,171.6,177.4z"}),(0,o.createElement)(i.Path,{class:"st1",fill:"#E54335",d:"M260.2,181.2c0,23.4-19,42.4-42.4,42.4H214v-80.9c0-2.1,1.7-3.9,3.8-3.9h0 C241.3,138.8,260.2,157.8,260.2,181.2C260.2,181.2,260.2,181.2,260.2,181.2z"}),(0,o.createElement)(i.Path,{class:"st2",fill:"#4280EF",d:"M256.4,269.9c-23.4,0-42.4-19-42.4-42.4v-3.9h80.9c2.1,0,3.9,1.7,3.9,3.8v0 C298.8,250.9,279.8,269.9,256.4,269.9C256.4,269.9,256.4,269.9,256.4,269.9z"}),(0,o.createElement)(i.Path,{class:"st3",fill:"#34A353",d:"M167.8,266c0-23.4,19-42.4,42.4-42.4c0,0,0,0,0,0h3.9v80.9c0,2.1-1.7,3.8-3.9,3.9 C186.7,308.4,167.8,289.4,167.8,266z"})),(0,o.createElement)(i.G,{id:"Photos"},(0,o.createElement)(i.Path,{class:"st4",fill:e,d:"M796,272v-91.6h31.2c15.2,0,28.7,11.3,28.7,27.3s-13.4,27.3-28.7,27.3h-19.4V272H796z M827.5,223.6 c8.8,0,16-7.2,16-16s-7.2-16-16-16h-19.7v32H827.5z"}),(0,o.createElement)(i.Path,{class:"st4",fill:e,d:"M875.8,209.3l-0.5,8.7h0.5c3.3-5.8,11.3-10.8,19.8-10.8c16,0,23.9,10.9,23.9,26.4V272h-11.8v-36.6 c0-13-6.5-17.4-15.5-17.4c-10.2,0-16.5,9.7-16.5,19.3V272H864v-91.6h11.8V209.3z"}),(0,o.createElement)(i.Path,{class:"st4",fill:e,d:"M993.8,240.6c0,19.1-13.4,33.4-32.2,33.4s-32.2-14.3-32.2-33.4s13.4-33.4,32.2-33.4S993.8,221.6,993.8,240.6z M982,240.6c0-14.3-10-22.6-20.5-22.6s-20.5,8.3-20.5,22.6s10,22.7,20.5,22.7S982,255,982,240.6L982,240.6z"}),(0,o.createElement)(i.Path,{class:"st4",fill:e,d:"M1008,252.9V220h-11v-10.7h11v-19.2h11.8v19.2h15.3V220h-15.3v32c0,7,2.9,10.2,8.4,10.2c1.8,0.1,3.7-0.3,5.4-1 l4.1,10.1c-3,1.2-6.2,1.8-9.5,1.7C1015,273,1008,265.7,1008,252.9z"}),(0,o.createElement)(i.Path,{class:"st4",fill:e,d:"M1105.8,240.6c0,19.1-13.4,33.4-32.2,33.4s-32.2-14.3-32.2-33.4s13.4-33.4,32.2-33.4 S1105.8,221.6,1105.8,240.6z M1094,240.6c0-14.3-10-22.6-20.5-22.6s-20.5,8.3-20.5,22.6s10,22.7,20.5,22.7S1094,255,1094,240.6 L1094,240.6z"}),(0,o.createElement)(i.Path,{class:"st4",fill:e,d:"M1111,256.1l10.5-4.4c3.3,7.9,9.5,11.8,17,11.8c7.3,0,12.5-3.6,12.5-8.8c0-3.2-1.9-6.6-8.6-8.3l-12.7-3.1 c-5.8-1.4-16.8-6.4-16.8-17.4c0-11.4,11.8-18.7,24.8-18.7c10.9,0,20.3,5,24.2,14.6l-10.2,4.2c-2.4-5.9-8.2-8.3-14.3-8.3 c-6.7,0-12.4,3-12.4,8.1c0,4,3.3,6.1,8.3,7.3l12.4,2.9c12.4,2.9,17.3,10.6,17.3,18.3c0,11.1-10,19.7-24.7,19.7 C1123.2,274,1114.7,265.1,1111,256.1z"})),(0,o.createElement)(i.G,{id:"Google"},(0,o.createElement)(i.Path,{class:"st4",fill:e,d:"M348.7,221.6c0-28.9,24.3-52.5,53.2-52.5c13.5-0.2,26.4,5,36,14.5l-10.1,10.1c-6.9-6.7-16.2-10.4-25.9-10.2 c-21.1,0-37.6,17-37.6,38.2s16.5,38.1,37.6,38.1c13.7,0,21.5-5.5,26.5-10.5c4.1-4.1,6.8-10,7.8-18H402v-14.4h48.3 c0.5,3,0.8,6,0.8,9c0,10.8-2.9,24.1-12.4,33.5c-9.2,9.6-21,14.7-36.6,14.7C373,274,348.7,250.5,348.7,221.6z"}),(0,o.createElement)(i.Path,{class:"st4",fill:e,d:"M490,206.5c-18.7,0-33.9,14.2-33.9,33.8S471.3,274,490,274s33.9-14.3,33.9-33.8S508.7,206.5,490,206.5z M490,260.7c-10.2,0-19.1-8.4-19.1-20.5s8.8-20.5,19.1-20.5s19.1,8.3,19.1,20.5S500.2,260.7,490,260.7z"}),(0,o.createElement)(i.Path,{class:"st4",fill:e,d:"M564,206.5c-18.7,0-33.9,14.2-33.9,33.8S545.3,274,564,274s33.9-14.3,33.9-33.8S582.7,206.5,564,206.5z M564,260.7c-10.2,0-19.1-8.4-19.1-20.5s8.8-20.5,19.1-20.5s19.1,8.3,19.1,20.5S574.2,260.7,564,260.7z"}),(0,o.createElement)(i.Path,{class:"st4",fill:e,d:"M654.8,208.5v5.5h-0.5c-3.3-4-9.7-7.6-17.8-7.6c-16.9,0-32.4,14.9-32.4,33.9s15.5,33.7,32.4,33.7 c8.1,0,14.5-3.6,17.8-7.7h0.5v4.9c0,12.9-6.9,19.8-18,19.8c-9.1,0-14.7-6.5-17-12l-12.9,5.4c5,12.1,16.8,20.1,30,20 c17.4,0,32.1-10.2,32.1-35.2v-60.7H654.8z M637.8,260.7c-10.2,0-18.8-8.6-18.8-20.4s8.6-20.6,18.8-20.6s18,8.7,18,20.6 S647.9,260.7,637.8,260.7L637.8,260.7z"}),(0,o.createElement)(i.Rect,{x:"679.2",y:"172.7",class:"st4",fill:e,width:"14.8",height:"99.3"}),(0,o.createElement)(i.Path,{class:"st4",fill:e,d:"M734.7,260.7c-7.6,0-12.9-3.5-16.4-10.2l45.2-18.7L762,228c-2.8-7.6-11.4-21.5-28.9-21.5s-31.9,13.7-31.9,33.8 c0,19,14.3,33.8,33.5,33.8c11.3,0.1,21.9-5.6,28.2-15l-11.5-7.7C747.5,257,742.3,260.7,734.7,260.7z M733.6,219.5 c5.9,0,10.9,2.9,12.5,7.2l-30.2,12.5C715.5,226.2,726,219.5,733.6,219.5L733.6,219.5z"})))},m=({size:e=24,border:t=0,className:r,color:n=u})=>{const a=t?-t/e*32:0;return(0,o.createElement)(i.SVG,{className:(0,l.A)("jetpack-logo",r),width:e,height:e,viewBox:`${a} ${a} ${32-2*a} ${32-2*a}`},(0,o.createElement)(i.Path,{className:"jetpack-logo__icon-circle",fill:n,stroke:t?"#fff":"transparent",strokeWidth:t,d:"M16,0C7.2,0,0,7.2,0,16s7.2,16,16,16s16-7.2,16-16S24.8,0,16,0z"}),(0,o.createElement)(i.Polygon,{className:"jetpack-logo__icon-triangle",fill:"#fff",points:`15,19 ${7-.5*a},19 15,${3-a}`}),(0,o.createElement)(i.Polygon,{className:"jetpack-logo__icon-triangle",fill:"#fff",points:`17,${29+a} 17,13 ${25+.5*a},13`}))},h=e=>(0,o.createElement)(i.SVG,a()({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),(0,o.createElement)(i.Rect,{width:"24",height:"24",rx:"5",fill:"#069E08"}),(0,o.createElement)(i.G,{clipPath:"url(#clip0_2_1297)"},(0,o.createElement)(i.Path,{d:"M11.9829 3C7.02857 3 3 7.02857 3 11.9829C3 16.9371 7.02857 20.9657 11.9829 20.9657C16.9371 20.9657 20.9657 16.9371 20.9657 11.9829C20.9657 7.02857 16.9371 3 11.9829 3ZM11.52 13.4743H7.04571L11.52 4.76571V13.4743ZM12.4286 19.1829V10.4743H16.9029L12.4286 19.1829Z",fill:"white"}))),E=()=>(0,o.createElement)(i.SVG,{width:"104",height:"59",viewBox:"0 0 104 59",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"jetpack-app-icon"},(0,o.createElement)(i.Path,{d:"M55 29.5C55 14.3475 42.6525 2 27.5 2C12.32 2 0 14.3475 0 29.5C0 44.68 12.32 57 27.5 57C42.6525 57 55 44.68 55 29.5ZM21.395 44.2675L12.0175 19.105C13.53 19.05 15.235 18.885 15.235 18.885C16.61 18.72 16.445 15.7775 15.07 15.8325C15.07 15.8325 11.0825 16.135 8.5525 16.135C8.0575 16.135 7.535 16.135 6.9575 16.1075C11.33 9.3975 18.8925 5.0525 27.5 5.0525C33.9075 5.0525 39.7375 7.445 44.1375 11.4875C42.2675 11.185 39.6 12.56 39.6 15.8325C39.6 17.8675 40.8375 19.5725 42.075 21.6075C43.0375 23.285 43.5875 25.3475 43.5875 28.3725C43.5875 32.47 39.7375 42.1225 39.7375 42.1225L31.405 19.105C32.89 19.05 33.66 18.6375 33.66 18.6375C35.035 18.5 34.87 15.2 33.495 15.2825C33.495 15.2825 29.535 15.6125 26.95 15.6125C24.5575 15.6125 20.5425 15.2825 20.5425 15.2825C19.1675 15.2 19.0025 18.5825 20.3775 18.6375L22.9075 18.8575L26.3725 28.235L21.395 44.2675ZM47.8775 29.5C48.5375 27.74 49.9125 24.3575 49.06 17.8125C50.985 21.36 51.9475 25.265 51.9475 29.5C51.9475 38.5475 47.19 46.66 39.8475 50.895C42.515 43.7725 45.1825 36.595 47.8775 29.5ZM16.775 51.7475C8.58 47.7875 3.0525 39.2075 3.0525 29.5C3.0525 25.925 3.685 22.68 5.0325 19.6275C8.9375 30.325 12.8425 41.05 16.775 51.7475ZM27.8575 33.515L34.9525 52.71C32.5875 53.5075 30.1125 53.9475 27.5 53.9475C25.3275 53.9475 23.1825 53.645 21.2025 53.04C23.43 46.495 25.6575 40.005 27.8575 33.515Z",fill:"#0675C4"}),(0,o.createElement)(i.Rect,{x:"46",y:"1",width:"57",height:"57",rx:"28.5",fill:"white"}),(0,o.createElement)(i.Path,{d:"M74.5 2C59.3497 2 47 14.316 47 29.5C47 44.6841 59.316 57 74.5 57C89.6841 57 102 44.6841 102 29.5C102 14.316 89.6841 2 74.5 2ZM73.0828 34.0552H59.3834L73.0828 7.39877V34.0552ZM75.8834 51.5337V24.8773H89.5491L75.8834 51.5337Z",fill:"#069E08"}),(0,o.createElement)(i.Rect,{x:"46",y:"1",width:"57",height:"57",rx:"28.5",stroke:"white",strokeWidth:"2"})),f={foreground:(0,c.V)(),src:(0,o.createElement)(i.SVG,{viewBox:"0 0 100 100"},(0,o.createElement)(i.Path,{d:"M100,44H72.4l23.9-13.8l-6-10.4L66.4,33.6L80.2,9.7l-10.4-6L56,27.59V0H44v27.6L30.2,3.7l-10.4,6l13.8,23.9 L9.7,19.8l-6,10.4L27.6,44H0V56h27.6L3.7,69.8l6,10.4l23.9-13.8L19.8,90.3l10.4,6L44,72.4V100H56V72.41l13.8,23.9l10.4-6L66.4,66.4 l23.9,13.8l6-10.4L72.4,56H100V44z M50,65.23c-8.41,0-15.23-6.82-15.23-15.23c0-8.41,6.82-15.23,15.23-15.23S65.23,41.59,65.23,50 C65.23,58.41,58.41,65.23,50,65.23z"}))},C={foreground:(0,c.V)(),src:(0,o.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20.7 17",xmlSpace:"preserve"},(0,o.createElement)(i.Path,{d:"m20.7 12.9-.9-11c0-.5-.2-.9-.5-1.3-.3-.3-.8-.5-1.3-.5L1.9 0h-.1c-.2 0-.5 0-.7.1C.9.2.7.4.5.5.4.7.2.9.1 1.1c-.1.2-.1.5-.1.7v.1l.9 13.4c0 .5.2.9.5 1.3.3.2.8.4 1.3.4H3l16.1-2c.4 0 .9-.3 1.1-.6.3-.3.5-.8.5-1.2v-.3zm-3.1.8L4.2 15.3H4c-.4 0-.8-.1-1-.4-.3-.3-.4-.6-.5-1L1.7 3.2v-.1c0-.4.2-.8.5-1 .3-.3.7-.4 1-.4h.1l13.5.1c.4 0 .8.1 1 .4.3.3.4.6.5 1L19 12v.3c0 .4-.2.7-.4 1-.3.2-.6.4-1 .4z"}))},B={foreground:(0,c.V)(),src:(0,o.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 43 43",xmlSpace:"preserve"},(0,o.createElement)(i.Path,{transform:"translate(-25)",fillRule:"evenodd",d:"M37 31.908c0 1.376.893 2.268 2.27 2.268H45.9c3.956 0 7.192-1.337 9.392-3.68H37v1.412zM45.901 9H39.27C37.893 9 37 9.893 37 11.269v1.411h18.294C53.093 10.338 49.857 9 45.9 9zm5.787 16.176c0 1.113.726 1.835 1.845 1.835h3.973c.45-1.117.753-2.345.894-3.671h-4.867c-1.119 0-1.845.722-1.845 1.836zm-5.507-7.166c0 1.113.725 1.836 1.844 1.836H58.4a13.644 13.644 0 00-.894-3.672h-9.481c-1.119 0-1.844.723-1.844 1.836zm1.843 7.166c0-1.114-.726-1.836-1.845-1.836H37v3.671h9.18c1.118 0 1.843-.722 1.843-1.835zm-5.508-7.166c0-1.113-.726-1.836-1.844-1.836H37v3.672h3.672c1.118 0 1.844-.723 1.844-1.836zM83.667 21.209c.296-1.437",clipRule:"evenodd"}))},b=((0,c.V)(),(0,o.createElement)(i.SVG,{viewBox:"0 0 24 24"},(0,o.createElement)(i.Rect,{x:"0",fill:"none",width:"24",height:"24"}),(0,o.createElement)(i.G,null,(0,o.createElement)(i.Path,{d:"M16.5 4.5c2.206 0 4 1.794 4 4 0 4.67-5.543 8.94-8.5 11.023C9.043 17.44 3.5 13.17 3.5 8.5c0-2.206 1.794-4 4-4 1.298 0 2.522.638 3.273 1.706L12 7.953l1.227-1.746c.75-1.07 1.975-1.707 3.273-1.707m0-1.5c-1.862 0-3.505.928-4.5 2.344C11.005 3.928 9.362 3 7.5 3 4.462 3 2 5.462 2 8.5c0 5.72 6.5 10.438 10 12.85 3.5-2.412 10-7.13 10-12.85C22 5.462 19.538 3 16.5 3z"}))),(0,c.V)(),(0,o.createElement)(i.SVG,{viewBox:"0 0 24 24"},(0,o.createElement)(i.Rect,{x:"0",fill:"none",width:"24",height:"24"}),(0,o.createElement)(i.G,null,(0,o.createElement)(i.Path,{d:"M15.9216 2H2.98533C2.43803 2 1.99023 2.45 1.99023 3V17L5.97062 13H15.9216C16.4689 13 16.9167 12.55 16.9167 12V3C16.9167 2.45 16.4689 2 15.9216 2ZM14.9265 4V11H5.14469L3.98043 12.17V4H14.9265ZM18.9069 6H20.8971C21.4444 6 21.8922 6.45 21.8922 7V22L17.9118 18H6.96572C6.41842 18 5.97062 17.55 5.97062 17V15H18.9069V6Z"}))),(0,c.V)(),(0,o.createElement)(i.SVG,{viewBox:"0 0 24 24"},(0,o.createElement)(i.Rect,{x:"0",fill:"none",width:"24",height:"24"}),(0,o.createElement)(i.G,null,(0,o.createElement)(i.Path,{d:"M3.98042 2H19.9019C20.9965 2 21.8921 2.9 21.8921 4V16C21.8921 17.1 20.9965 18 19.9019 18H5.97061L1.99023 22V4C1.99023 2.9 2.88582 2 3.98042 2ZM5.97061 16H19.9019V4H3.98042V18L5.97061 16Z"}))),(0,c.V)(),(0,o.createElement)(i.SVG,{viewBox:"0 0 24 24"},(0,o.createElement)(i.Rect,{x:"0",fill:"none",width:"24",height:"24"}),(0,o.createElement)(i.G,null,(0,o.createElement)(i.Path,{d:"M11.1114 8H20.0002M11.1113 15H20.0002",stroke:(0,c.V)(),strokeWidth:"1.5"}),(0,o.createElement)(i.Path,{d:"M4 10V6L8 8L4 10Z",fill:(0,c.V)()}),(0,o.createElement)(i.Path,{d:"M4 17V13L8 15L4 17Z",fill:(0,c.V)()}))),(0,c.V)(),(0,o.createElement)(i.SVG,{viewBox:"0 0 24 24"},(0,o.createElement)(i.Rect,{x:"0",fill:"none",width:"24",height:"24"}),(0,o.createElement)(i.G,null,(0,o.createElement)(i.Path,{d:"M4 12V4L11 8L4 12Z"}),(0,o.createElement)(i.Path,{d:"M4 14.5H20V16H4V14.5Z"}),(0,o.createElement)(i.Path,{d:"M4 18.5H13V20H4V18.5Z"}))),(0,o.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(i.Path,{d:"M2.5 7.5V4.5H15.5V7.5H10.5V19.5H7.5V7.5H2.5ZM12.5 9.5H21.5V12.5H18.5V19.5H15.5V12.5H12.5V9.5Z"})),(0,o.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(i.Path,{d:"M12.7049 2V6C8.30658 6 4.74414 9.58 4.74414 14C4.74414 18.42 8.30658 22 12.7049 22C17.1032 22 20.6656 18.42 20.6656 14H18.6755C18.6755 17.31 15.9987 20 12.7049 20C9.41113 20 6.73433 17.31 6.73433 14C6.73433 10.69 9.41113 8 12.7049 8V12L17.6804 7L12.7049 2ZM11.6501 12.73L11.4013 14.9L12.068 15.06C12.0753 15.0526 12.0827 15.0447 12.0901 15.0366C12.1131 15.0116 12.1375 14.9851 12.1675 14.97C12.1874 14.96 12.2073 14.9475 12.2272 14.935C12.2471 14.9225 12.2671 14.91 12.287 14.9C12.3268 14.88 12.3865 14.86 12.4362 14.85C12.486 14.84 12.5556 14.83 12.6352 14.83C12.7447 14.83 12.8542 14.85 12.9338 14.88C13.0134 14.91 13.083 14.96 13.1427 15.03C13.2024 15.1 13.2422 15.17 13.2721 15.27C13.302 15.37 13.3119 15.47 13.3119 15.58V15.58C13.3119 15.69 13.3119 15.79 13.2821 15.89C13.2522 15.99 13.2124 16.07 13.1726 16.14C13.1328 16.21 13.0631 16.27 12.9935 16.31C12.9238 16.35 12.8343 16.37 12.7248 16.37C12.5556 16.37 12.4163 16.31 12.3069 16.22C12.1974 16.13 12.1377 15.99 12.1178 15.81H11.2819C11.2819 16.01 11.3317 16.19 11.4113 16.34C11.4909 16.49 11.5904 16.63 11.7297 16.73C11.869 16.83 12.0183 16.92 12.1874 16.97C12.3566 17.02 12.5357 17.05 12.7148 17.05C12.9636 17.05 13.1726 17 13.3517 16.93C13.5308 16.86 13.6801 16.75 13.7995 16.62C13.9189 16.49 14.0085 16.34 14.0682 16.17C14.1279 16 14.1577 15.82 14.1577 15.63C14.1577 15.41 14.1179 15.21 14.0682 15.03C14.0184 14.85 13.9289 14.7 13.8194 14.58C13.7099 14.46 13.5706 14.37 13.4114 14.3C13.2522 14.23 13.0731 14.2 12.8641 14.2C12.7945 14.2 12.7248 14.21 12.6651 14.22C12.6352 14.225 12.6054 14.2325 12.5755 14.24C12.5457 14.2475 12.5158 14.255 12.486 14.26C12.4263 14.27 12.3765 14.29 12.3367 14.31C12.3201 14.3183 12.3035 14.325 12.2876 14.3313C12.2654 14.3401 12.2446 14.3483 12.2272 14.36L12.3367 13.44H14.0284V12.73H11.6501Z"})),(0,o.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(i.Path,{d:"M11.9412 2V6C16.3395 6 19.902 9.58 19.902 14C19.902 18.42 16.3395 22 11.9412 22C7.54291 22 3.98047 18.42 3.98047 14H5.97066C5.97066 17.31 8.64746 20 11.9412 20C15.235 20 17.9118 17.31 17.9118 14C17.9118 10.69 15.235 8 11.9412 8V12L6.96575 7L11.9412 2ZM10.8864 12.73L10.6376 14.9L11.3044 15.06C11.3117 15.0526 11.319 15.0447 11.3264 15.0366C11.3494 15.0116 11.3738 14.9851 11.4039 14.97C11.4238 14.96 11.4437 14.9475 11.4636 14.935C11.4835 14.9225 11.5034 14.91 11.5233 14.9C11.5631 14.88 11.6228 14.86 11.6725 14.85C11.7223 14.84 11.792 14.83 11.8716 14.83C11.981 14.83 12.0905 14.85 12.1701 14.88C12.2497 14.91 12.3194 14.96 12.3791 15.03C12.4388 15.1 12.4786 15.17 12.5084 15.27C12.5383 15.37 12.5482 15.47 12.5482 15.58V15.58C12.5482 15.69 12.5482 15.79 12.5184 15.89C12.4885 15.99 12.4487 16.07 12.4089 16.14C12.3691 16.21 12.2995 16.27 12.2298 16.31C12.1601 16.35 12.0706 16.37 11.9611 16.37C11.792 16.37 11.6526 16.31 11.5432 16.22C11.4337 16.13 11.374 15.99 11.3541 15.81H10.5182C10.5182 16.01 10.568 16.19 10.6476 16.34C10.7272 16.49 10.8267 16.63 10.966 16.73C11.1053 16.83 11.2546 16.92 11.4238 16.97C11.5929 17.02 11.7721 17.05 11.9512 17.05C12.1999 17.05 12.4089 17 12.588 16.93C12.7672 16.86 12.9164 16.75 13.0358 16.62C13.1552 16.49 13.2448 16.34 13.3045 16.17C13.3642 16 13.3941 15.82 13.3941 15.63C13.3941 15.41 13.3543 15.21 13.3045 15.03C13.2547 14.85 13.1652 14.7 13.0557 14.58C12.9463 14.46 12.807 14.37 12.6477 14.3C12.4885 14.23 12.3094 14.2 12.1004 14.2C12.0308 14.2 11.9611 14.21 11.9014 14.22C11.8716 14.225 11.8417 14.2325 11.8119 14.24C11.782 14.2475 11.7522 14.255 11.7223 14.26C11.6626 14.27 11.6128 14.29 11.573 14.31C11.5564 14.3183 11.5398 14.325 11.5239 14.3313C11.5017 14.3401 11.481 14.3483 11.4636 14.36L11.573 13.44H13.2647V12.73H10.8864Z"})),(0,o.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(i.Path,{d:"M0 0h24v24H0z",fill:"none"}),(0,o.createElement)(i.Path,{d:"M7 2v11h3v9l7-12h-4l4-8z",fill:"currentColor"})),(0,o.createElement)(i.SVG,{width:"29",height:"21",viewBox:"0 0 29 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)(i.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M2.79037 0.59375C4.0363 0.59375 5.13102 1.41658 5.47215 2.60947L8.8452 14.4044C8.8486 14.4164 8.85411 14.4273 8.86124 14.4368L12.8572 0.59375H15.0927H21.2721C25.6033 0.59375 28.5066 3.39892 28.5066 7.64565C28.5066 11.9411 25.5272 14.6196 21.0818 14.6196H18.1499H14.3719L13.6379 16.8813C12.9796 18.9095 11.0827 20.2839 8.94152 20.2839C6.80035 20.2839 4.90341 18.9095 4.24517 16.8813L0.137069 4.22276C-0.444671 2.43022 0.898038 0.59375 2.79037 0.59375ZM15.7374 10.4119H20.0156C21.8718 10.4119 22.9856 9.35018 22.9856 7.64565C22.9856 5.93137 21.8718 4.91839 20.0156 4.91839H17.5202L15.7374 10.4119Z",fill:"#000000"}))),k=(0,o.createElement)(i.SVG,{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)(i.Path,{d:"M4.75725 2.075C4.60279 1.97745 4.41041 1.97489 4.25365 2.06832C4.09689 2.16174 4 2.3367 4 2.52632V21.4737C4 21.6633 4.09689 21.8383 4.25365 21.9317C4.41041 22.0251 4.60279 22.0226 4.75725 21.925L19.7573 12.4513C19.9079 12.3562 20 12.1849 20 12C20 11.8151 19.9079 11.6438 19.7573 11.5487L4.75725 2.075Z",fill:"white"})),y=((0,o.createElement)(i.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",style:{fill:"none"}},(0,o.createElement)(i.Path,{d:"M13.9 16.55L13.75 16.75V17V19C13.75 19.1381 13.6381 19.25 13.5 19.25H10.5C10.3619 19.25 10.25 19.1381 10.25 19V17V16.75L10.1 16.55L7.25 12.75V9C7.25 8.86193 7.36193 8.75 7.5 8.75H16.5C16.6381 8.75 16.75 8.86193 16.75 9V12.75L13.9 16.55Z",stroke:"currentColor",strokeWidth:"1.5"}),(0,o.createElement)("line",{x1:"9.75",y1:"9",x2:"9.75",y2:"4",stroke:"currentColor",strokeWidth:"1.5"}),(0,o.createElement)("line",{x1:"14.25",y1:"9",x2:"14.25",y2:"4",stroke:"currentColor",strokeWidth:"1.5"})),(0,o.createElement)(i.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)(i.Path,{d:"M18 6.75H6C5.30964 6.75 4.75 7.30964 4.75 8V16C4.75 16.6904 5.30964 17.25 6 17.25H18C18.6904 17.25 19.25 16.6904 19.25 16V8C19.25 7.30964 18.6904 6.75 18 6.75Z",stroke:"currentColor",strokeWidth:"1.5"}),(0,o.createElement)(i.Path,{d:"M5 7L12 13L19 7",stroke:"currentColor",strokeWidth:"1.5"})),(0,o.createElement)(i.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)(i.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M7 2.75H6.25V3.5V8.25H5.5C4.25736 8.25 3.25 9.25736 3.25 10.5V18.5C3.25 19.7426 4.25736 20.75 5.5 20.75H18C19.2426 20.75 20.25 19.7426 20.25 18.5V10.5C20.25 9.25736 19.2426 8.25 18 8.25H9.5V9.75H18C18.4142 9.75 18.75 10.0858 18.75 10.5V18.5C18.75 18.9142 18.4142 19.25 18 19.25H5.5C5.08579 19.25 4.75 18.9142 4.75 18.5V10.5C4.75 10.0858 5.08579 9.75 5.5 9.75H6.25V10H7.75V6.5H7.75229H7.75464H7.75699H7.75934H7.76169H7.76405H7.7664H7.76875H7.77111H7.77346H7.77582H7.77817H7.78053H7.78289H7.78524H7.7876H7.78996H7.79232H7.79468H7.79704H7.7994H7.80176H7.80412H7.80648H7.80884H7.8112H7.81357H7.81593H7.81829H7.82065H7.82302H7.82538H7.82774H7.83011H7.83247H7.83484H7.8372H7.83956H7.84193H7.84429H7.84666H7.84902H7.85139H7.85375H7.85612H7.85848H7.86085H7.86322H7.86558H7.86795H7.87031H7.87268H7.87504H7.87741H7.87977H7.88214H7.8845H7.88687H7.88923H7.8916H7.89396H7.89633H7.89869H7.90106H7.90342H7.90578H7.90815H7.91051H7.91287H7.91524H7.9176H7.91996H7.92232H7.92468H7.92704H7.9294H7.93177H7.93412H7.93648H7.93884H7.9412H7.94356H7.94592H7.94828H7.95063H7.95299H7.95535H7.9577H7.96006H7.96241H7.96477H7.96712H7.96947H7.97182H7.97418H7.97653H7.97888H7.98123H7.98358H7.98592H7.98827H7.99062H7.99297H7.99531H7.99766H8H13.5V5.5V5V4.25V4V2.75H7Z",fill:"currentColor"})),(0,o.createElement)(i.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)(i.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M15.6416 9.51049L16.3128 10.701L17.5605 10.1432C17.8568 10.0108 18.1778 9.94237 18.5024 9.94253H18.5032C19.7889 9.94253 20.8543 10.9979 20.8543 12.3265C20.8543 13.655 19.7889 14.7104 18.5032 14.7104C18.3449 14.7104 18.1896 14.6946 18.0348 14.6638L16.9668 14.4513L16.434 15.401C16.2045 15.81 15.7702 16.0783 15.2884 16.0783L15.2855 16.0783C15.0869 16.0787 14.8909 16.0337 14.7125 15.9467L13.2933 15.2546L12.6749 16.7074C12.4124 17.3238 11.8034 17.75 11.1027 17.75C10.3678 17.75 9.74128 17.289 9.49859 16.6313L9.04988 15.4152L7.78159 15.6829C7.68225 15.7039 7.58099 15.7144 7.47947 15.7143H7.47856C6.67732 15.7143 6 15.0516 6 14.203C6 13.6392 6.30098 13.1495 6.75148 12.8837L7.89299 12.2103L7.36523 10.9945C7.25853 10.7487 7.20361 10.4836 7.20389 10.2156V10.2141C7.20389 9.13045 8.08351 8.25 9.17451 8.25C9.69379 8.25 10.1669 8.451 10.5168 8.77912L10.5156 8.78033L10.5156 8.78034L10.5156 8.78036L10.5156 8.78039L10.5157 8.78042L10.5157 8.78047L10.5158 8.78051L10.5158 8.7806L10.5159 8.78065L10.516 8.78075L10.5161 8.78081L10.5162 8.78095L10.5163 8.78102L10.5164 8.78118L10.5165 8.78126L10.5167 8.78145L10.5168 8.78153L10.517 8.78176L10.5171 8.78184L10.5173 8.7821L10.5174 8.78219L10.5177 8.78248L10.5178 8.78257L10.5181 8.7829L10.5182 8.78299L10.5186 8.78336L10.5187 8.78344L10.5191 8.78385L10.5192 8.78392L10.5196 8.78438L10.5197 8.78444L10.5202 8.78495L10.5202 8.78499L10.5208 8.78556L10.5208 8.78558L10.5214 8.7862L10.5214 8.78621L10.5221 8.78686L10.5221 8.7869L10.5228 8.78755L10.5229 8.78762L10.5235 8.78827L10.5236 8.78839L10.5243 8.78903L10.5244 8.78919L10.5251 8.78982L10.5253 8.79003L10.5259 8.79065L10.5261 8.79091L10.5267 8.7915L10.5271 8.79183L10.5276 8.79239L10.528 8.79279L10.5286 8.79332L10.529 8.79379L10.5295 8.79427L10.5301 8.79483L10.5305 8.79526L10.5311 8.79591L10.5315 8.79629L10.5323 8.79702L10.5326 8.79734L10.5334 8.79818L10.5337 8.79843L10.5346 8.79938L10.5348 8.79955L10.5359 8.80062L10.5359 8.8007L10.5371 8.80188L10.5371 8.8019L10.5383 8.80309L10.5385 8.80322L10.5396 8.80434L10.5398 8.80458L10.5409 8.80562L10.5412 8.80598L10.5422 8.80693L10.5427 8.80743L10.5435 8.80827L10.5441 8.80891L10.5449 8.80964L10.5457 8.81043L10.5463 8.81105L10.5472 8.812L10.5477 8.81248L10.5488 8.81361L10.5492 8.81395L10.5505 8.81526L10.5507 8.81544L10.5522 8.81695L10.5522 8.81697L10.5538 8.81853L10.5539 8.81868L10.5554 8.82011L10.5557 8.82046L10.557 8.82173L10.5575 8.82227L10.5586 8.82338L10.5594 8.82413L10.5603 8.82506L10.5613 8.82603L10.562 8.82676L10.5632 8.82798L10.5637 8.8285L10.5652 8.82996L10.5655 8.83027L10.5672 8.83199L10.5673 8.83206L10.5691 8.83389L10.5693 8.83406L10.571 8.83574L10.5714 8.83618L10.5729 8.83763L10.5736 8.83834L10.5748 8.83954L10.5758 8.84054L10.5767 8.84148L10.578 8.84278L10.5787 8.84345L10.5803 8.84507L10.5807 8.84545L10.5826 8.8474L10.5827 8.84748L10.5848 8.84954L10.585 8.84978L10.5869 8.85162L10.5874 8.8522L10.589 8.85373L10.5899 8.85466L10.5911 8.85587L10.5924 8.85717L10.5933 8.85804L10.595 8.85972L10.5955 8.86023L10.5976 8.86231L10.5977 8.86246L10.5999 8.86471L10.6002 8.86495L10.6022 8.86699L10.6029 8.86764L10.6045 8.86929L10.6056 8.87037L10.6069 8.87162L10.6084 8.87314L10.6092 8.87398L10.6112 8.87596L10.6116 8.87637L10.614 8.87878L10.6141 8.87883L10.6165 8.88122L10.617 8.88174L10.6189 8.88369L10.6199 8.88469L10.6214 8.88618L10.6229 8.88769L10.6239 8.8887L10.626 8.89074L10.6265 8.89124L10.629 8.89381L10.6291 8.89383L10.6316 8.89641L10.6322 8.89697L10.6324 8.89712C10.6683 8.93709 10.7026 8.97856 10.7351 9.02142L10.7474 9.01213L10.7482 9.01292L10.7483 9.01306L10.7517 9.01642L10.7529 9.01768L10.7552 9.01995L10.7576 9.02236L10.7587 9.02349L10.7623 9.02706L10.7623 9.02708L10.7659 9.03064L10.7671 9.03185L10.7695 9.03425L10.7719 9.03667L10.7731 9.03787L10.7768 9.04152L10.7768 9.04155L10.7804 9.04519L10.7817 9.04647L10.7841 9.04887L10.7867 9.05144L10.7878 9.05258L10.7915 9.0563L10.7917 9.05647L10.7953 9.06005L10.7968 9.06155L10.799 9.06381L10.8019 9.06667L10.8028 9.06759L10.8066 9.0714L10.8071 9.07185L10.8105 9.07522L10.8123 9.07708L10.8143 9.07906L10.8176 9.08236L10.8182 9.08291L10.822 9.08679L10.8229 9.08769L10.8259 9.09068L10.8283 9.09308L10.8298 9.0946L10.8338 9.09852L10.8338 9.09853L10.8377 9.10248L10.8392 9.104L10.8417 9.10644L10.8457 9.11043L10.8497 9.11443L10.8537 9.11845L10.8577 9.12249L10.8618 9.12654L10.8659 9.13061L10.8699 9.1347L10.874 9.13881L10.8782 9.14293L10.8823 9.14707L10.8865 9.15122L10.8906 9.15539L10.8948 9.15958L10.899 9.16378L10.9032 9.168L10.9075 9.17224L10.9117 9.17649L10.916 9.18076L10.9203 9.18504L10.9246 9.18934L10.9289 9.19365L10.9332 9.19798L10.9376 9.20232L10.9419 9.20668L10.9463 9.21105L10.9507 9.21544L10.9551 9.21984L10.9595 9.22425L10.9639 9.22868L10.9684 9.23313L10.9728 9.23758L10.9773 9.24205L10.9818 9.24654L10.9863 9.25104L10.9908 9.25555L10.9953 9.26008L10.9999 9.26462L11.0044 9.26917L11.009 9.27373L11.0135 9.27831L11.0181 9.2829L11.0227 9.2875L11.0274 9.29212L11.032 9.29674L11.0366 9.30138L11.0413 9.30604L11.0459 9.3107L11.0506 9.31537L11.0553 9.32006L11.06 9.32476L11.0647 9.32947L11.0694 9.33419L11.0742 9.33892L11.0789 9.34367L11.0837 9.34842L11.0884 9.35319L11.0932 9.35796L11.098 9.36275L11.1028 9.36755L11.1076 9.37235L11.1124 9.37717L11.1172 9.382L11.1221 9.38683L11.1269 9.39168L11.1318 9.39654L11.1366 9.4014L11.1415 9.40628L11.1464 9.41116L11.1513 9.41606L11.1562 9.42096L11.1611 9.42587L11.166 9.43079L11.171 9.43572L11.1759 9.44066L11.1808 9.4456L11.1858 9.45056L11.1908 9.45552L11.1957 9.46049L11.2007 9.46547L11.2057 9.47046L11.2107 9.47545L11.2157 9.48045L11.2207 9.48546L11.2257 9.49048L11.2307 9.4955L11.2358 9.50053L11.2408 9.50557L11.2458 9.51061L11.2509 9.51566L11.256 9.52072L11.261 9.52578L11.2661 9.53085L11.2712 9.53592L11.2762 9.54101L11.2813 9.54609L11.2864 9.55119L11.2915 9.55628L11.2966 9.56139L11.3017 9.5665L11.3069 9.57161L11.312 9.57673L11.3171 9.58186L11.3222 9.58699L11.3274 9.59212L11.3325 9.59726L11.3376 9.6024L11.3428 9.60755L11.3479 9.6127L11.3531 9.61786L11.3583 9.62302L11.3634 9.62818L11.3686 9.63335L11.3738 9.63852L11.3789 9.6437L11.3841 9.64887L11.3893 9.65406L11.3945 9.65924L11.3997 9.66443L11.4049 9.66962L11.41 9.67481L11.4152 9.68001L11.4204 9.6852L11.4256 9.6904L11.4308 9.69561L11.436 9.70081L11.4413 9.70602L11.4465 9.71122L11.4517 9.71643L11.4569 9.72165L11.4621 9.72686L11.4673 9.73207L11.4725 9.73729L11.4777 9.7425L11.483 9.74772L11.4882 9.75294L11.4934 9.75816L11.4986 9.76338L11.5038 9.7686L11.5091 9.77382L11.5143 9.77904L11.5195 9.78426L11.5247 9.78948L11.5299 9.7947L11.5352 9.79992L11.5404 9.80514L11.5456 9.81036L11.5508 9.81558L11.556 9.82079L11.5612 9.82601L11.5665 9.83123L11.5717 9.83644L11.5769 9.84165L11.5821 9.84686L11.5873 9.85207L11.5925 9.85728L11.5977 9.86249L11.6029 9.86769L11.6081 9.87289L11.6133 9.87809L11.6185 9.88329L11.6237 9.88849L11.6289 9.89368L11.6341 9.89887L11.6393 9.90406L11.6445 9.90924L11.6497 9.91442L11.6548 9.9196L11.66 9.92477L11.6652 9.92994L11.6703 9.93511L11.6755 9.94027L11.6807 9.94543L11.6858 9.95059L11.691 9.95574L11.6961 9.96089L11.7013 9.96603L11.7064 9.97117L11.7115 9.9763L11.7167 9.98143L11.7218 9.98656L11.7269 9.99167L11.732 9.99679L11.7371 10.0019L11.7422 10.007L11.7473 10.0121L11.7524 10.0172L11.7575 10.0223L11.7626 10.0274L11.7677 10.0324L11.7727 10.0375L11.7778 10.0426L11.7829 10.0476L11.7879 10.0527L11.793 10.0577L11.798 10.0627L11.803 10.0678L11.808 10.0728L11.8131 10.0778L11.8181 10.0828L11.8231 10.0878L11.8281 10.0928L11.833 10.0978L11.838 10.1028L11.843 10.1077L11.8479 10.1127L11.8529 10.1177L11.8578 10.1226L11.8628 10.1275L11.8677 10.1325L11.8726 10.1374L11.8775 10.1423L11.8824 10.1472L11.8873 10.1521L11.8922 10.157L11.8971 10.1619L11.902 10.1667L11.9068 10.1716L11.9117 10.1764L11.9165 10.1813L11.9213 10.1861L11.9261 10.1909L11.9309 10.1957L11.9357 10.2005L11.9405 10.2053L11.9453 10.2101L11.9501 10.2148L11.9548 10.2196L11.9596 10.2243L11.9643 10.2291L11.969 10.2338L11.9737 10.2385L11.9784 10.2432L11.9831 10.2479L11.9878 10.2525L11.9924 10.2572L11.9971 10.2619L12.0017 10.2665L12.0064 10.2711L12.011 10.2757L12.0156 10.2803L13.0762 9.21967L13.0716 9.21507L13.067 9.21045L13.0624 9.20583L13.0577 9.20119L13.0531 9.19654L13.0484 9.19188L13.0438 9.1872L13.0391 9.18252L13.0344 9.17782L13.0297 9.17311L13.025 9.16839L13.0202 9.16366L13.0155 9.15892L13.0107 9.15417L13.006 9.1494L13.0012 9.14463L12.9964 9.13984L12.9916 9.13505L12.9868 9.13024L12.982 9.12542L12.9772 9.1206L12.9723 9.11576L12.9675 9.11092L12.9626 9.10606L12.9578 9.1012L12.9529 9.09632L12.948 9.09144L12.9431 9.08655L12.9382 9.08164L12.9333 9.07673L12.9284 9.07181L12.9234 9.06689L12.9185 9.06195L12.9136 9.057L12.9086 9.05205L12.9048 9.04829L13.0111 9.15036C13.3196 8.82924 13.7369 8.64023 14.1928 8.64023C14.7957 8.64023 15.3379 8.97179 15.6416 9.51049ZM11.9483 8.0917C12.1799 7.85456 12.4472 7.65398 12.7412 7.49903C13.1764 7.26964 13.67 7.14023 14.1928 7.14023C15.3737 7.14023 16.3972 7.7963 16.9483 8.77385C17.4375 8.55516 17.9673 8.44226 18.5032 8.44253C20.6289 8.44253 22.3543 10.1811 22.3543 12.3265C22.3543 14.4718 20.6289 16.2104 18.5032 16.2104C18.2434 16.2104 17.9901 16.1843 17.7421 16.135C17.2599 16.9944 16.3382 17.5783 15.2884 17.5783C14.957 17.579 14.6288 17.5208 14.319 17.4073C14.2294 17.3744 14.1412 17.337 14.055 17.2949C14.0121 17.3958 13.9641 17.4941 13.9114 17.5894C13.3647 18.5786 12.3115 19.25 11.1027 19.25C9.71839 19.25 8.54402 18.3774 8.09134 17.1506C7.88985 17.1931 7.68448 17.2145 7.47856 17.2143C5.83183 17.2143 4.5 15.8628 4.5 14.203C4.5 13.0877 5.09965 12.1167 5.98928 11.5918C5.80055 11.157 5.7034 10.688 5.70389 10.2141C5.70389 8.29833 7.25878 6.75 9.17451 6.75C9.91511 6.75 10.6042 6.98301 11.1683 7.38015C11.3677 7.52056 11.5515 7.68148 11.7164 7.85987L11.7168 7.86025L11.7196 7.86308L11.7197 7.86309L11.7225 7.86597L11.7232 7.86663L11.7254 7.86886L11.7268 7.87024L11.7283 7.87178L11.7304 7.87389L11.7313 7.87472L11.7341 7.87759L11.7343 7.87769L11.7372 7.88068L11.7379 7.88133L11.7403 7.8837L11.7417 7.88513L11.7433 7.88674L11.7455 7.88897L11.7464 7.8898L11.7494 7.89286L11.7494 7.89288L11.7526 7.89599L11.7534 7.89679L11.7557 7.89912L11.7573 7.90078L11.7588 7.90228L11.7614 7.90481L11.762 7.90546L11.7652 7.90866L11.7655 7.90889L11.7684 7.91188L11.7696 7.91302L11.7717 7.91512L11.7738 7.9172L11.7749 7.91839L11.778 7.92143L11.7782 7.92168L11.7815 7.92499L11.7823 7.92571L11.7849 7.92832L11.7866 7.93003L11.7882 7.93168L11.791 7.93441L11.7916 7.93505L11.795 7.93845L11.7954 7.93883L11.7984 7.94187L11.7999 7.9433L11.8019 7.94531L11.8044 7.94783L11.8053 7.94877L11.8088 7.95226L11.809 7.9524L11.8123 7.95576L11.8136 7.95702L11.8158 7.95929L11.8183 7.9617L11.8194 7.96283L11.823 7.9664L11.823 7.96642L11.8265 7.96998L11.8277 7.97119L11.8301 7.97359L11.8326 7.97601L11.8338 7.97721L11.8374 7.98086L11.8374 7.98089L11.8411 7.98453L11.8424 7.98581L11.8448 7.98821L11.8473 7.99078L11.8485 7.99192L11.8522 7.99564L11.8524 7.99581L11.8559 7.99939L11.8574 8.00089L11.8597 8.00315L11.8626 8.00601L11.8635 8.00693L11.8673 8.01074L11.8677 8.01119L11.8711 8.01456L11.873 8.01642L11.875 8.0184L11.8783 8.0217L11.8788 8.02225L11.8827 8.02613L11.8836 8.02703L11.8866 8.03002L11.889 8.03242L11.8905 8.03394L11.8944 8.03785L11.8944 8.03787L11.8984 8.04182L11.8999 8.04334L11.9023 8.04578L11.9063 8.04977L11.9103 8.05377L11.9143 8.05779L11.9184 8.06183L11.9224 8.06588L11.9265 8.06995L11.9306 8.07404L11.9347 8.07815L11.9388 8.08227L11.943 8.08641L11.9471 8.09056L11.9483 8.0917Z",fill:"currentColor"})),(0,o.createElement)(i.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)(i.Path,{d:"M20 3H4c-.6 0-1 .4-1 1v16c0 .5.4 1 1 1h8.6v-7h-2.3v-2.7h2.3v-2c0-2.3 1.4-3.6 3.5-3.6 1 0 1.8.1 2.1.1v2.4h-1.4c-1.1 0-1.3.5-1.3 1.3v1.7h2.7l-.4 2.8h-2.3v7H20c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1z"}))),v=(0,o.createElement)(i.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)(i.G,null,(0,o.createElement)(i.Path,{d:"M12 4.622c2.403 0 2.688.01 3.637.052.877.04 1.354.187 1.67.31.42.163.72.358 1.036.673.315.315.51.615.673 1.035.123.317.27.794.31 1.67.043.95.052 1.235.052 3.638s-.01 2.688-.052 3.637c-.04.877-.187 1.354-.31 1.67-.163.42-.358.72-.673 1.036-.315.315-.615.51-1.035.673-.317.123-.794.27-1.67.31-.95.043-1.234.052-3.638.052s-2.688-.01-3.637-.052c-.877-.04-1.354-.187-1.67-.31-.42-.163-.72-.358-1.036-.673-.315-.315-.51-.615-.673-1.035-.123-.317-.27-.794-.31-1.67-.043-.95-.052-1.235-.052-3.638s.01-2.688.052-3.637c.04-.877.187-1.354.31-1.67.163-.42.358-.72.673-1.036.315-.315.615-.51 1.035-.673.317-.123.794-.27 1.67-.31.95-.043 1.235-.052 3.638-.052M12 3c-2.444 0-2.75.01-3.71.054s-1.613.196-2.185.418c-.592.23-1.094.538-1.594 1.04-.5.5-.807 1-1.037 1.593-.223.572-.375 1.226-.42 2.184C3.01 9.25 3 9.555 3 12s.01 2.75.054 3.71.196 1.613.418 2.186c.23.592.538 1.094 1.038 1.594s1.002.808 1.594 1.038c.572.222 1.227.375 2.185.418.96.044 1.266.054 3.71.054s2.75-.01 3.71-.054 1.613-.196 2.186-.418c.592-.23 1.094-.538 1.594-1.038s.808-1.002 1.038-1.594c.222-.572.375-1.227.418-2.185.044-.96.054-1.266.054-3.71s-.01-2.75-.054-3.71-.196-1.613-.418-2.186c-.23-.592-.538-1.094-1.038-1.594s-1.002-.808-1.594-1.038c-.572-.222-1.227-.375-2.185-.418C14.75 3.01 14.445 3 12 3zm0 4.378c-2.552 0-4.622 2.07-4.622 4.622s2.07 4.622 4.622 4.622 4.622-2.07 4.622-4.622S14.552 7.378 12 7.378zM12 15c-1.657 0-3-1.343-3-3s1.343-3 3-3 3 1.343 3 3-1.343 3-3 3zm4.804-8.884c-.596 0-1.08.484-1.08 1.08s.484 1.08 1.08 1.08c.596 0 1.08-.484 1.08-1.08s-.483-1.08-1.08-1.08z"})))},21604:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(85985),a=r(66087);function o(){return(0,a.get)((0,n.$i)(),["jetpack","is_active"],!1)}},13087:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(85985),a=r(66087);function o(){return(0,a.get)((0,n.$i)(),["jetpack","is_offline_mode"],!1)}},14435:(e,t,r)=>{"use strict";var n=r(85985),a=r(1455),o=r.n(a),s=r(47143),i=r(27723);r(692);const __=i.__;function l(){const e=(0,n.GE)();return window?.location&&e?(0,n.Sy)()||(0,n.d9)()?`https://wordpress.com/plans/my-plan/${e}`:`${window.location.protocol}//${e.replace("::","/")}/wp-admin/admin.php?page=jetpack#/my-plan`:null}(async()=>{if(window?.location){if(new URLSearchParams(window.location.search).get("plan_upgraded")){let e=null;e:try{if((0,n.Sy)())break e;const t=await o()({path:"/jetpack/v4/site"});e=JSON.parse(t.data).plan.product_name}finally{const t=l();(0,s.dispatch)("core/notices").createNotice("success",e?(0,i.sprintf)(/* translators: %s is the plan name, such as Jetpack Premium. */ __("Congratulations! Your site is now on the %s plan.","jetpack"),e):__("Congratulations! Your site is now on a paid plan.","jetpack"),{isDismissible:!0,...t&&{actions:[{url:l(),label:__("View my plan","jetpack")}]}})}}}})()},79366:(e,t,r)=>{"object"==typeof window&&window.Jetpack_Block_Assets_Base_Url&&(r.p=window.Jetpack_Block_Assets_Base_Url)},94375:(e,t,r)=>{"use strict";r.d(t,{A:()=>i,M:()=>l});var n=r(85985),a=r(74997),o=r(52619);const s="jetpack/";function i(e,t,r=[],i=!0){const l="string"==typeof e?e:e.name,c=l.startsWith(s),u=c?l.slice(s.length):l,{available:A,details:g,unavailableReason:d}=(0,n.FB)(u),p=(0,n.aq)(d,g),m=i||c?s:"";if(!A&&!p)return!1;const h=m+u,E=(0,a.registerBlockType)("object"==typeof e?e:h,t);return p&&(0,o.addFilter)("editor.BlockListBlock",`${h}-with-has-warning-is-interactive-class-names`,(0,n.BT)(h)),r.forEach((e=>(0,a.registerBlockType)(m+e.name,e.settings))),E}function l(e,t,r,a){return i(e,{...t,icon:(0,n.Cq)(e),attributes:e.attributes||{}},r,a)}},62289:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(82170),a=r(5573);const o=(e,t=24,r=24,o="0 0 24 24")=>(0,n.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",width:t,height:r,viewBox:o},(0,n.createElement)(a.Path,{fill:"none",d:"M0 0h24v24H0V0z",className:"icon-filler"}),e)},64882:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(82170),a=r(94715);const o=(e,t,r,o,s)=>{const{isSelected:i}=t,l=t.attributes[e];return(0,n.createElement)("div",{className:i?`jetpack-${e}-block is-selected`:`jetpack-${e}-block`},!i&&""!==l&&o(t),(i||""===l)&&(0,n.createElement)(a.PlainText,{value:l,placeholder:r,"aria-label":r,onChange:s}))}},21929:(e,t,r)=>{"use strict";var n=r(47143),a=r(27723);r(692);const __=a.__;if("undefined"!=typeof window&&window.location){const e=new URLSearchParams(window.location.search);e.get("stripe_connect_success")?(0,n.dispatch)("core/notices").createNotice("success",__("Congrats! Your site is now connected to Stripe. You can now start accepting funds!","jetpack")):e.get("stripe_connect_cancelled")&&(0,n.dispatch)("core/notices").createNotice("error",__("You cancelled connecting your site to Stripe.","jetpack"))}},56145:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(1455),a=r.n(n),o=r(66087);function s(e,t=o.noop){return t(!0),new Promise(((r,n)=>{a()({path:`/wpcom/v2/resolve-redirect/?url=${encodeURIComponent(e)}`}).then((a=>{t(!1);const o=a.status?parseInt(a.status,10):null;o&&o>=400?n():r(a.url||e)}),(()=>{t(!1),n()}))}))}},10617:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(47143),a=r(86087),o=r(66087);function s(e,t=o.noop){const[r,s]=(0,a.useState)(!1),{isAutosaveablePost:i,isDirtyPost:l,currentPost:c}=(0,n.useSelect)((e=>{const t=e("core/editor");return{isAutosaveablePost:t.isEditedPostAutosaveable(),isDirtyPost:t.isEditedPostDirty(),currentPost:t.getCurrentPost()}}),[]),u=Object.keys(c).length>0,A=(0,n.useSelect)((e=>!!window.wp?.customize||!!e("core/edit-widgets"))),g=(0,n.dispatch)("core/editor").savePost,d=(0,n.useSelect)((e=>e("core").__experimentalGetDirtyEntityRecords())),p=async e=>{e.preventDefault(),u?l&&i&&await g(e):await(async()=>{for(let e=0;e<d.length;e++)await(0,n.dispatch)("core").saveEditedEntityRecord(d[e].kind,d[e].name,d[e].key)})()};return{autosave:p,autosaveAndRedirect:async n=>{n.preventDefault(),r||(s(!0),p(n).then((()=>{!function(e,t,r=!1){t&&t(e),r?window.open(e,"_blank"):window.top.location.href=e}(e,t,A)})))},isRedirecting:r}}},26247:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(39384),a=r(85985);const o=()=>{const{isUserConnected:e}=(0,n.useConnection)();return(0,a.Sy)()||e}},58164:(e,t,r)=>{"use strict";r.d(t,{Bd:()=>s,Ti:()=>o,_X:()=>n,ds:()=>a});const n="free",a="tiered",o="unlimited",s=e=>e?0===e?.value?n:1===e?.value?o:a:null},71960:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(86087);const a=e=>{e&&cancelAnimationFrame(e.id)},o=(e,t=0)=>{const r=(0,n.useRef)(),o=(0,n.useRef)(e);o.current=e,(0,n.useEffect)((()=>(r.current=((e,t=0)=>{const r=t<0?0:t,n={id:0};let a=Date.now();const o=()=>{const t=Date.now();t-a>=r&&(a=t,e()),n.id=requestAnimationFrame(o)};return n.id=requestAnimationFrame(o),n})((()=>{o.current()}),t),()=>{a(r.current)})),[t]);return(0,n.useCallback)((()=>{a(r.current)}),[])}},86183:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(85985),a=r(47143),o=r(52619),s=r(66087),i=r(10617);const l="a8c.wpcom-block-editor.openCheckoutModal";function c(e,t=s.noop){const{checkoutUrl:r,planData:c}=(0,a.useSelect)((t=>{const r=t("core/editor"),a=t("wordpress-com/plans"),{id:o,type:s}=r.getCurrentPost(),i=a&&a.getPlan(e);return{checkoutUrl:(0,n.Q4)({plan:i,planSlug:e,postId:o,postType:s}),planData:i}}),[e]),{autosave:u,autosaveAndRedirect:A,isRedirecting:g}=(0,i.A)(r,t);return[r,async e=>{if(e.preventDefault(),(0,o.hasAction)(l))return e.preventDefault(),u(e),void(0,o.doAction)(l,{products:[c]});A(e)},g,c]}},89303:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(86087);const a=e=>{const t=(0,n.useRef)(void 0);return(0,n.useEffect)((()=>{t.current=e}),[e]),t.current};function o({attributes:e,disableEffects:t=!1,setAttributes:r}){const{align:o,width:s}=e,i=a(o);(0,n.useEffect)((()=>{if(t)return;i!==o&&("left"===o||"right"===o)&&s?.includes("%")&&r({width:void 0})}),[o,t,i,r,s])}},1874:(e,t,r)=>{"use strict";r.d(t,{f:()=>a});var n=r(47143);const a=async e=>new Promise((t=>{const r=(0,n.subscribe)((()=>{e()&&(r(),t())}))}))},38062:(e,t,r)=>{"use strict";r.d(t,{D:()=>d});var n=r(96072),a=r.n(n),o=r(82170),s=r(56427),i=r(86087),l=r(27723),c=r(13022);const __=l.__,u=[{value:"%",label:"%",default:100},{value:"px",label:"px",default:150},{value:"em",label:"em",default:10}],A=[{value:"px",label:"px",default:150},{value:"em",label:"em",default:10}],g=["25%","50%","75%","100%"];function d(e){return(0,o.createElement)(s.PanelBody,{title:__("Width settings","jetpack")},(0,o.createElement)(p,a()({showLabel:!1},e)))}function p({align:e,width:t,onChange:r,showLabel:n=!0}){const[a,l]=(0,i.useState)("%");(0,i.useEffect)((()=>{void 0===t&&l("px")}),[t]);const d="left"===e||"right"===e;return(0,o.createElement)(s.BaseControl,{__nextHasNoMarginBottom:!0},n&&(0,o.createElement)(s.BaseControl.VisualLabel,null,__("Width","jetpack")),(0,o.createElement)("div",{className:(0,c.A)("jetpack-block-width-controls",{"is-aligned":d})},!d&&(0,o.createElement)(s.ButtonGroup,{"aria-label":__("Percentage Width","jetpack")},g.map((e=>(0,o.createElement)(s.Button,{key:e,isSmall:!0,variant:e===t?"primary":void 0,onClick:()=>function(e){const n=t===e?void 0:e;l("%"),r(n)}(e)},e)))),(0,o.createElement)(s.__experimentalUnitControl,{isResetValueOnUnitChange:!0,max:"%"===a||t?.includes("%")?100:void 0,min:0,onChange:e=>r(e),onUnitChange:e=>l(e),size:"small",units:d?A:u,value:t})))}},23117:(e,t,r)=>{"use strict";r.d(t,{ax:()=>n,pF:()=>o,v8:()=>a,vh:()=>s});const n="jetpack/media-source",a="is-playing",o="is-error",s="is-paused"},12088:(e,t,r)=>{"use strict";var n=r(47143),a=r(23117),o=r(11267);if(void 0!==n.createReduxStore){const e=(0,n.createReduxStore)(a.ax,o.A);(0,n.register)(e)}else(0,n.registerStore)(a.ax,o.A)},11267:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(23117);const a={sources:{},default:null},o={registerMediaSource:(e,t)=>({type:"REGISTER_MEDIA_SOURCE",id:e,mediaSourceState:t}),updateMediaSourceData:(e,t)=>({type:"UPDATE_MEDIA_SOURCE_DATA",id:e,data:t}),unregisterMediaSource:e=>({type:"UNREGISTER_MEDIA_SOURCE",id:e}),setDefaultMediaSource:e=>({type:"SET_DEFAULT_MEDIA_SOURCE",id:e}),playMediaSource:e=>({type:"SET_MEDIA_PLAYER_STATE",id:e,state:n.v8}),toggleMediaSource:e=>({type:"TOGGLE_MEDIA_PLAYER_STATE",id:e}),pauseMediaSource:e=>({type:"SET_MEDIA_PLAYER_STATE",id:e,state:n.vh}),errorMediaSource:e=>({type:"SET_MEDIA_PLAYER_STATE",id:e,state:n.pF}),setMediaSourceCurrentTime:(e,t)=>({type:"SET_MEDIA_PLAYER_CURRENT_TIME",id:e,currentTime:t})},s={getDefaultMediaSource(e){let t=null;const r=Object.keys(e.sources);if(e.default?t=e.default:r?.length&&(t=e.sources[r[0]].id),t)return e.sources[t]},getMediaPlayerState(e,t){const r=t?e.sources?.[t]:s.getDefaultMediaSource(e);return r?.state},getMediaSourceCurrentTime(e,t){const r=t?e.sources?.[t]:s.getDefaultMediaSource(e);return r?.currentTime},getMediaSourceDuration(e,t){if(!t){const t=s.getDefaultMediaSource(e);return t?.duration}return e.sources?.[t]?.duration},getMediaSourceDomReference(e,t){const r=t?e.sources?.[t]:s.getDefaultMediaSource(e);if(!r)return;const n=r?.domId;return n?document.getElementById(n):void 0}},i={reducer(e=a,t){const r=t.id||e.default||Object.keys(e.sources)?.[0];switch(t.type){case"REGISTER_MEDIA_SOURCE":return{...e,sources:{...e.sources,[t.id]:{id:t.id,...t.mediaSourceState}}};case"UPDATE_MEDIA_SOURCE_DATA":return{...e,sources:{...e.sources,[t.id]:{...e.sources[t.id],...t.data}}};case"UNREGISTER_MEDIA_SOURCE":{const r=Object.assign({},e);return r.sources[t.id]&&delete r.sources[t.id],t.id===e.default&&(r.default=Object.keys(e.sources)?.[0]),r}case"SET_DEFAULT_MEDIA_SOURCE":return{...e,default:t.id};case"SET_MEDIA_PLAYER_STATE":return{...e,sources:{...e.sources,[r]:{...e.sources[r],state:t.state}}};case"TOGGLE_MEDIA_PLAYER_STATE":return{...e,sources:{...e.sources,[r]:{...e.sources[r],state:e.sources[r].state===n.v8?n.vh:n.v8}}};case"SET_MEDIA_PLAYER_CURRENT_TIME":return{...e,sources:{...e.sources,[r]:{...e.sources[r],currentTime:t.currentTime}}}}return e},actions:o,selectors:s}},66314:(e,t,r)=>{"use strict";r.r(t),r.d(t,{saveProduct:()=>E,setApiState:()=>m,setConnectUrl:()=>d,setConnectedAccountDefaultCurrency:()=>p,setNewsletterCategories:()=>C,setNewsletterCategoriesSubscriptionsCount:()=>B,setProducts:()=>g,setSiteSlug:()=>h,setSubscriberCounts:()=>f});var n=r(4567),a=r(1455),o=r.n(a),s=r(27723),i=r(29726),l=r(1990),c=r(72730),u=r(3696),A=r(34884);const __=s.__,g=e=>({type:"SET_PRODUCTS",products:e}),d=e=>({type:"SET_CONNECT_URL",connectUrl:e}),p=e=>({type:"SET_CONNECTED_ACCOUNT_DEFAULT_CURRENCY",connectedAccountDefaultCurrency:e}),m=e=>({type:"SET_API_STATE",apiState:e}),h=e=>({type:"SET_SITE_SLUG",siteSlug:e}),E=(e,t=i._$,r=()=>{},a=()=>{},d=!0)=>async({dispatch:i,registry:p})=>{const{title:m,price:h,currency:E}=e;if(!m||0===m.length)return(0,A.S)((0,l.W)("product requires a name",t),p),void a(!1);const f=parseFloat(h),C=(0,c.dv)(E);if(f<C)return(0,A.S)((0,s.sprintf)( // translators: %s: Price __("Minimum allowed price is %s.","jetpack"),(0,n.Ay)(C,E)),p),void a(!1);if(!(0,c.kF)(E,f))return(0,A.S)((0,l.W)("product requires a valid price",t),p),void a(!1);try{const n=await o()({path:"/wpcom/v2/memberships/product",method:"POST",data:e}),s={id:n.id,title:n.title,interval:n.interval,price:n.price,currency:n.currency},c=p.select(u.EF).getProducts();i(g(c.concat([s]))),r([s.id]),d&&(0,A.L)((0,l.W)("successfully created product",t),p),a(!0)}catch(e){(0,A.S)((0,l.W)("there was an error when adding the product",t),p),a(!1)}},f=e=>({type:"SET_SUBSCRIBER_COUNTS",subscriberCounts:e}),C=e=>({type:"SET_NEWSLETTER_CATEGORIES",newsletterCategories:e}),B=e=>({type:"SET_NEWSLETTER_CATEGORIES_SUBSCRIPTIONS_COUNT",newsletterCategoriesSubscriptionsCount:e})},3696:(e,t,r)=>{"use strict";r.d(t,{EF:()=>n,JA:()=>o,an:()=>a,gI:()=>s,ky:()=>i});const n="jetpack/membership-products",a=0,o=1,s=2,i="tier"},16521:(e,t,r)=>{"use strict";r.d(t,{M:()=>c});var n=r(47143),a=r(66314),o=r(3696),s=r(91497),i=r(18410),l=r(92955);const c=(0,n.createReduxStore)(o.EF,{actions:a,reducer:s.A,resolvers:i,selectors:l,__experimentalUseThunks:!0});(0,n.register)(c)},91497:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});const n={products:[],apiState:r(3696).an,connectUrl:null,siteSlug:"",connectedAccountDefaultCurrency:"",subscriberCounts:{socialFollowers:null,emailSubscribers:null,paidSubscribers:null},newsletterCategories:{enabled:!1,categories:[]}};function a(e=n,t){switch(t.type){case"SET_PRODUCTS":return{...e,products:t.products};case"SET_CONNECT_URL":return{...e,connectUrl:t.connectUrl};case"SET_API_STATE":return{...e,apiState:t.apiState};case"SET_SITE_SLUG":return{...e,siteSlug:t.siteSlug};case"SET_CONNECTED_ACCOUNT_DEFAULT_CURRENCY":return{...e,connectedAccountDefaultCurrency:t.connectedAccountDefaultCurrency};case"SET_SUBSCRIBER_COUNTS":return{...e,subscriberCounts:t.subscriberCounts};case"SET_NEWSLETTER_CATEGORIES":return{...e,newsletterCategories:t.newsletterCategories};case"SET_NEWSLETTER_CATEGORIES_SUBSCRIPTIONS_COUNT":return{...e,newsletterCategoriesSubscriptionsCount:t.newsletterCategoriesSubscriptionsCount}}return e}},18410:(e,t,r)=>{"use strict";r.r(t),r.d(t,{fetchNewsletterCategoriesSubscriptionsCount:()=>C,getNewsletterCategories:()=>v,getNewsletterCategoriesSubscriptionsCount:()=>I,getNewsletterTierProducts:()=>b,getProducts:()=>k,getSubscriberCounts:()=>y});var n=r(1455),a=r.n(n),o=r(43656),s=r(93832),i=r(29726),l=r(1990),c=r(56539),u=r(27574),A=r(66314),g=r(3696),d=r(34884);const p="membership-products-resolver-getProducts",m="membership-products-resolver-getSubscriberCounts",h="membership-products-resolver-getNewsletterCategories",E="membership-products-resolver-getNewsletterCategoriesSubscriptionsCount";let f=!1;const C=async e=>{const t=await a()({path:`/wpcom/v2/newsletter-categories/count?term_ids=${e.join(",")}`,method:"GET"});if(!t||"object"!=typeof t)throw new Error("Unexpected API response");const r=t?.errors&&Object.values(t.errors)?.[0]?.[0];if(r)throw new Error(r);return t},B=(e,t,r)=>{if(e.length>0)return;const n=r.getProductsNoResolver()[0]?.id;n&&t([n])},b=(e=i._$,t=[],r=()=>{})=>k(e,t,r,!1),k=(e=i._$,t=[],r=()=>{},n=!0)=>async({dispatch:i,registry:m,select:h})=>{if(await c.A.blockExecution(p),f)return void B(t,r,h);const E=c.A.acquire(p);try{const c=await(async()=>{const e=(0,s.getQueryArg)(window.location.href,"origin"),t=(0,s.addQueryArgs)("/wpcom/v2/memberships/status",{source:"https://wordpress.com"===e?"gutenberg-wpcom":"gutenberg",type:"all",is_editable:!0}),r=await a()({path:t,method:"GET"});if(!r&&"object"!=typeof r)throw new Error("Unexpected API response");const n=r?.errors&&Object.values(r.errors)?.[0]?.[0];if(n)throw new Error(n);return r})();((e,t,r)=>{const n=t.select(o.store).getCurrentPostId();r((0,A.setConnectUrl)((0,u.A)(n,e.connect_url))),r((0,A.setSiteSlug)(e.site_slug)),r((0,A.setProducts)(e.products)),r((0,A.setConnectedAccountDefaultCurrency)(e.connected_account_default_currency)),r((0,A.setApiState)(e.connected_account_id?g.JA:g.gI))})(c,m,i),(e=>!e.products.length&&e.connected_account_id)(c)&&await(async(e,t,r,n)=>{await r((0,A.saveProduct)({title:(0,l.W)("default new product title",e),currency:"USD",price:5,interval:"1 month"},e,t,(()=>{}),n))})(e,r,i,n),B(t,r,h),f=!0}catch(e){i((0,A.setConnectUrl)(null)),i((0,A.setApiState)(g.gI)),(0,d.S)(e.message,m)}c.A.release(E)},y=()=>async({dispatch:e,registry:t})=>{await c.A.blockExecution(m);const r=c.A.acquire(m);try{const t=await(async()=>{const e=await a()({path:"/wpcom/v2/subscribers/counts"});if(!e||"object"!=typeof e)throw new Error("Unexpected API response");const t=e?.errors&&Object.values(e.errors)?.[0]?.[0];if(t)throw new Error(t);return e})();e((0,A.setSubscriberCounts)({socialFollowers:t.counts.social_followers,emailSubscribers:t.counts.email_subscribers,paidSubscribers:t.counts.paid_subscribers}))}catch(r){e((0,A.setApiState)(g.gI)),(0,d.S)(r.message,t)}c.A.release(r)},v=()=>async({dispatch:e,registry:t})=>{await c.A.blockExecution(h);const r=c.A.acquire(h);try{const t=await(async()=>{const e=await a()({path:"/wpcom/v2/newsletter-categories"});if(!e||"object"!=typeof e)throw new Error("Unexpected API response");const t=e?.errors&&Object.values(e.errors)?.[0]?.[0];if(t)throw new Error(t);return e})();e((0,A.setNewsletterCategories)({enabled:t.enabled,categories:t.newsletter_categories}))}catch(r){e((0,A.setApiState)(g.gI)),(0,d.S)(r.message,t)}c.A.release(r)},I=(e=[])=>async({dispatch:t,registry:r})=>{await c.A.blockExecution(E);const n=c.A.acquire(E);try{const r=await C(e);t((0,A.setNewsletterCategoriesSubscriptionsCount)(r.subscriptions_count))}catch(e){t((0,A.setApiState)(g.gI)),(0,d.S)(e.message,r)}c.A.release(n)}},92955:(e,t,r)=>{"use strict";r.r(t),r.d(t,{getApiState:()=>a,getConnectUrl:()=>o,getConnectedAccountDefaultCurrency:()=>s,getNewsletterCategories:()=>E,getNewsletterCategoriesEnabled:()=>f,getNewsletterCategoriesSubscriptionsCount:()=>C,getNewsletterTierProducts:()=>A,getProduct:()=>c,getProducts:()=>i,getProductsNoResolver:()=>l,getSelectedProducts:()=>u,getSiteSlug:()=>g,getSubscriberCounts:()=>h,hasInvalidProducts:()=>B,isApiStateConnected:()=>d,isApiStateLoading:()=>p,isInvalidProduct:()=>m});var n=r(3696);const a=e=>e.apiState,o=e=>e.connectUrl,s=e=>e.connectedAccountDefaultCurrency,i=e=>e.products,l=e=>i(e),c=(e,t)=>i(e).find((e=>e.id===t)),u=(e,t)=>i(e).filter((e=>t.includes(e.id))),A=e=>e.products.filter((e=>e.type===n.ky)),g=e=>e.siteSlug,d=e=>e.apiState===n.JA,p=e=>e.apiState===n.an,m=(e,t)=>!!t&&!c(e,t),h=e=>e.subscriberCounts,E=e=>e.newsletterCategories.categories,f=e=>e.newsletterCategories.enabled,C=e=>e.newsletterCategoriesSubscriptionsCount,B=(e,t)=>!!t&&t.some((t=>m(e,t)))},34884:(e,t,r)=>{"use strict";r.d(t,{L:()=>o,S:()=>a});var n=r(692);const a=(e,t)=>t.dispatch(n.store).createErrorNotice(e,{type:"snackbar"}),o=(e,t)=>t.dispatch(n.store).createSuccessNotice(e,{type:"snackbar"})},68224:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(1455),a=r.n(n),o=r(38458);const s={setPlans:e=>({type:o.PC,plans:e}),fetchFromAPI:e=>({type:o.iH,url:e}),storeAiAssistantFeature:e=>({type:o.UU,feature:e}),fetchAiAssistantFeature:()=>async({dispatch:e})=>{e({type:o.ql});try{const t=await a()({path:o.J8});e(s.storeAiAssistantFeature(function(e){return{hasFeature:!!e["has-feature"],isOverLimit:!!e["is-over-limit"],requestsCount:e["requests-count"],requestsLimit:e["requests-limit"],requireUpgrade:!!e["site-require-upgrade"],errorMessage:e["error-message"],errorCode:e["error-code"],upgradeType:e["upgrade-type"],usagePeriod:{currentStart:e["usage-period"]?.["current-start"],nextStart:e["usage-period"]?.["next-start"],requestsCount:e["usage-period"]?.["requests-count"]||0},currentTier:e["current-tier"],nextTier:e["next-tier"],tierPlansEnabled:!!e["tier-plans-enabled"],costs:e.costs,featuresControl:e["features-control"]}}(t)))}catch(e){console.error(e)}},increaseAiAssistantRequestsCount:(e=1)=>({dispatch:t})=>{t({type:o.Lg,count:e}),t(s.decreaseAsyncRequestCountdownValue())},decreaseAsyncRequestCountdownValue:()=>async({dispatch:e,select:t})=>{e({type:o.yO});t.getAsyncRequestCountdownValue()<=0&&e(s.enqueueAiAssistantFeatureAsyncRequest())},enqueueAiAssistantFeatureAsyncRequest:()=>({dispatch:e})=>{e.dequeueAiAssistantFeatureAsyncRequest();const t=setTimeout((()=>{e(s.fetchAiAssistantFeature())}),o.gW);e({type:o.jM,timerId:t})},dequeueAiAssistantFeatureAsyncRequest:()=>({dispatch:e,select:t})=>{e({type:o.js,timerId:0});const r=t.getAsyncRequestCountdownTimerId();r&&window?.clearTimeout(r)},setAiAssistantFeatureRequireUpgrade:(e=!0)=>({type:o.Kt,requireUpgrade:e}),setTierPlansEnabled:(e=!0)=>({type:o.c1,tierPlansEnabled:e})},i=s},38458:(e,t,r)=>{"use strict";r.d(t,{GB:()=>A,J8:()=>u,Kt:()=>l,Lg:()=>i,PC:()=>n,UU:()=>o,c1:()=>c,gW:()=>p,iH:()=>a,jM:()=>h,js:()=>E,mx:()=>d,nb:()=>g,ql:()=>s,yO:()=>m});const n="SET_PLANS",a="FETCH_FROM_API",o="STORE_AI_ASSISTANT_FEATURE",s="REQUEST_AI_ASSISTANT_FEATURE",i="INCREASE_AI_ASSISTANT_REQUESTS_COUNT",l="SET_AI_ASSISTANT_FEATURE_REQUIRE_UPGRADE",c="SET_TIER_PLANS_ENABLED",u="/wpcom/v2/jetpack-ai/ai-assistant-feature",A=20,g=3e3,d=3,p=5e3,m="DECREASE_NEW_ASYNC_REQUEST_COUNTDOWN",h="ENQUEUE_ASYNC_COUNTDOWN_REQUEST",E="DEQUEUE_ASYNC_COUNTDOWN_REQUEST"},20831:(e,t,r)=>{"use strict";var n=r(47143),a=r(68224),o=r(19399);const s="wordpress-com/plans",i={getPlan:(e,t)=>e.plans.find((e=>e.product_slug===t)),getAiAssistantFeature(e){const t={...e.features.aiAssistant};return delete t._meta,t},getIsRequestingAiAssistantFeature:e=>e.features.aiAssistant?._meta?.isRequesting,getAsyncRequestCountdownValue:e=>e.features.aiAssistant?._meta?.asyncRequestCountdown,getAsyncRequestCountdownTimerId:e=>e.features.aiAssistant?._meta?.asyncRequestTimerId},l=(0,n.createReduxStore)(s,{actions:a.A,reducer:o.A,selectors:i,controls:{FETCH_FROM_API:({url:e})=>fetch(e).then((e=>e.json()))},resolvers:{*getPlan(){const e=yield a.A.fetchFromAPI("https://public-api.wordpress.com/rest/v1.5/plans");return a.A.setPlans(e)},getAiAssistantFeature:e=>{if(!e?.features?.aiAssistant)return a.A.fetchAiAssistantFeature()}}});(0,n.register)(l),window.Jetpack_Editor_Initial_State?.["ai-assistant"]?.["is-enabled"]&&(0,n.select)(s).getAiAssistantFeature()},19399:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(38458);const a={plans:[],features:{aiAssistant:{hasFeature:!0,isOverLimit:!1,requestsCount:0,requestsLimit:n.GB,requireUpgrade:!1,errorMessage:"",errorCode:"",upgradeType:"default",currentTier:{slug:"ai-assistant-tier-free",value:0,limit:20},usagePeriod:{currentStart:"",nextStart:"",requestsCount:0},nextTier:null,tierPlansEnabled:!1,_meta:{isRequesting:!1,asyncRequestCountdown:n.mx,asyncRequestTimerId:0}}}};function o(e=a,t){switch(t.type){case n.PC:return{...e,plans:t.plans};case n.ql:return{...e,features:{...e.features,aiAssistant:{...e.features.aiAssistant,_meta:{...e.features.aiAssistant._meta,isRequesting:!0,asyncRequestCountdown:n.mx,asyncRequestTimerId:0}}}};case n.UU:return{...e,features:{...e.features,aiAssistant:{...t.feature,_meta:{...e.features.aiAssistant._meta,isRequesting:!1}}}};case n.Lg:{const r=e.features.aiAssistant.usagePeriod||{requestsCount:0},a=e.features.aiAssistant.requestsCount+t.count;r.requestsCount+=t.count;const o=e.features.aiAssistant.currentTier?.value,s=void 0===o&&!e.features.aiAssistant.hasFeature||0===o,i=void 0===o&&e.features.aiAssistant.hasFeature||1===o;let l=e.features.aiAssistant.currentTier?.limit;i?l=n.nb:s&&(l=e.features.aiAssistant.requestsLimit);const c=(i||s?a:e.features.aiAssistant.usagePeriod?.requestsCount)>=l,u=c&&null!==e.features.aiAssistant.nextTier;return{...e,features:{...e.features,aiAssistant:{...e.features.aiAssistant,isOverLimit:c,requestsCount:a,requireUpgrade:u,usagePeriod:{...r}}}}}case n.yO:return{...e,features:{...e.features,aiAssistant:{...e.features.aiAssistant,_meta:{...e.features.aiAssistant._meta,asyncRequestCountdown:e.features.aiAssistant._meta.asyncRequestCountdown-1}}}};case n.jM:return{...e,features:{...e.features,aiAssistant:{...e.features.aiAssistant,_meta:{...e.features.aiAssistant._meta,asyncRequestTimerId:t.timerId}}}};case n.Kt:return{...e,features:{...e.features,aiAssistant:{...e.features.aiAssistant,requireUpgrade:t.requireUpgrade,...t.requireUpgrade?{isOverLimit:!0}:{}}}};case n.c1:return{...e,features:{...e.features,aiAssistant:{...e.features.aiAssistant,tierPlansEnabled:t.tierPlansEnabled}}}}return e}},3975:(e,t,r)=>{"use strict";r.d(t,{i:()=>a,y:()=>n});const n={AED:{symbol:"د.إ.",grouping:",",decimal:".",precision:2},AFN:{symbol:"؋",grouping:",",decimal:".",precision:2},ALL:{symbol:"Lek",grouping:".",decimal:",",precision:2},AMD:{symbol:"֏",grouping:",",decimal:".",precision:2},ANG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AOA:{symbol:"Kz",grouping:",",decimal:".",precision:2},ARS:{symbol:"$",grouping:".",decimal:",",precision:2},AUD:{symbol:"A$",grouping:",",decimal:".",precision:2},AWG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AZN:{symbol:"₼",grouping:" ",decimal:",",precision:2},BAM:{symbol:"КМ",grouping:".",decimal:",",precision:2},BBD:{symbol:"Bds$",grouping:",",decimal:".",precision:2},BDT:{symbol:"৳",grouping:",",decimal:".",precision:0},BGN:{symbol:"лв.",grouping:" ",decimal:",",precision:2},BHD:{symbol:"د.ب.",grouping:",",decimal:".",precision:3},BIF:{symbol:"FBu",grouping:",",decimal:".",precision:0},BMD:{symbol:"$",grouping:",",decimal:".",precision:2},BND:{symbol:"$",grouping:".",decimal:",",precision:0},BOB:{symbol:"Bs",grouping:".",decimal:",",precision:2},BRL:{symbol:"R$",grouping:".",decimal:",",precision:2},BSD:{symbol:"$",grouping:",",decimal:".",precision:2},BTC:{symbol:"Ƀ",grouping:",",decimal:".",precision:2},BTN:{symbol:"Nu.",grouping:",",decimal:".",precision:1},BWP:{symbol:"P",grouping:",",decimal:".",precision:2},BYR:{symbol:"р.",grouping:" ",decimal:",",precision:2},BZD:{symbol:"BZ$",grouping:",",decimal:".",precision:2},CAD:{symbol:"C$",grouping:",",decimal:".",precision:2},CDF:{symbol:"FC",grouping:",",decimal:".",precision:2},CHF:{symbol:"CHF",grouping:"'",decimal:".",precision:2},CLP:{symbol:"$",grouping:".",decimal:",",precision:2},CNY:{symbol:"¥",grouping:",",decimal:".",precision:2},COP:{symbol:"$",grouping:".",decimal:",",precision:2},CRC:{symbol:"₡",grouping:".",decimal:",",precision:2},CUC:{symbol:"CUC",grouping:",",decimal:".",precision:2},CUP:{symbol:"$MN",grouping:",",decimal:".",precision:2},CVE:{symbol:"$",grouping:",",decimal:".",precision:2},CZK:{symbol:"Kč",grouping:" ",decimal:",",precision:2},DJF:{symbol:"Fdj",grouping:",",decimal:".",precision:0},DKK:{symbol:"kr.",grouping:"",decimal:",",precision:2},DOP:{symbol:"RD$",grouping:",",decimal:".",precision:2},DZD:{symbol:"د.ج.",grouping:",",decimal:".",precision:2},EGP:{symbol:"ج.م.",grouping:",",decimal:".",precision:2},ERN:{symbol:"Nfk",grouping:",",decimal:".",precision:2},ETB:{symbol:"ETB",grouping:",",decimal:".",precision:2},EUR:{symbol:"€",grouping:".",decimal:",",precision:2},FJD:{symbol:"FJ$",grouping:",",decimal:".",precision:2},FKP:{symbol:"£",grouping:",",decimal:".",precision:2},GBP:{symbol:"£",grouping:",",decimal:".",precision:2},GEL:{symbol:"Lari",grouping:" ",decimal:",",precision:2},GHS:{symbol:"₵",grouping:",",decimal:".",precision:2},GIP:{symbol:"£",grouping:",",decimal:".",precision:2},GMD:{symbol:"D",grouping:",",decimal:".",precision:2},GNF:{symbol:"FG",grouping:",",decimal:".",precision:0},GTQ:{symbol:"Q",grouping:",",decimal:".",precision:2},GYD:{symbol:"G$",grouping:",",decimal:".",precision:2},HKD:{symbol:"HK$",grouping:",",decimal:".",precision:2},HNL:{symbol:"L.",grouping:",",decimal:".",precision:2},HRK:{symbol:"kn",grouping:".",decimal:",",precision:2},HTG:{symbol:"G",grouping:",",decimal:".",precision:2},HUF:{symbol:"Ft",grouping:".",decimal:",",precision:0},IDR:{symbol:"Rp",grouping:".",decimal:",",precision:0},ILS:{symbol:"₪",grouping:",",decimal:".",precision:2},INR:{symbol:"₹",grouping:",",decimal:".",precision:2},IQD:{symbol:"د.ع.",grouping:",",decimal:".",precision:2},IRR:{symbol:"﷼",grouping:",",decimal:"/",precision:2},ISK:{symbol:"kr.",grouping:".",decimal:",",precision:0},JMD:{symbol:"J$",grouping:",",decimal:".",precision:2},JOD:{symbol:"د.ا.",grouping:",",decimal:".",precision:3},JPY:{symbol:"¥",grouping:",",decimal:".",precision:0},KES:{symbol:"S",grouping:",",decimal:".",precision:2},KGS:{symbol:"сом",grouping:" ",decimal:"-",precision:2},KHR:{symbol:"៛",grouping:",",decimal:".",precision:0},KMF:{symbol:"CF",grouping:",",decimal:".",precision:2},KPW:{symbol:"₩",grouping:",",decimal:".",precision:0},KRW:{symbol:"₩",grouping:",",decimal:".",precision:0},KWD:{symbol:"د.ك.",grouping:",",decimal:".",precision:3},KYD:{symbol:"$",grouping:",",decimal:".",precision:2},KZT:{symbol:"₸",grouping:" ",decimal:"-",precision:2},LAK:{symbol:"₭",grouping:",",decimal:".",precision:0},LBP:{symbol:"ل.ل.",grouping:",",decimal:".",precision:2},LKR:{symbol:"₨",grouping:",",decimal:".",precision:0},LRD:{symbol:"L$",grouping:",",decimal:".",precision:2},LSL:{symbol:"M",grouping:",",decimal:".",precision:2},LYD:{symbol:"د.ل.",grouping:",",decimal:".",precision:3},MAD:{symbol:"د.م.",grouping:",",decimal:".",precision:2},MDL:{symbol:"lei",grouping:",",decimal:".",precision:2},MGA:{symbol:"Ar",grouping:",",decimal:".",precision:0},MKD:{symbol:"ден.",grouping:".",decimal:",",precision:2},MMK:{symbol:"K",grouping:",",decimal:".",precision:2},MNT:{symbol:"₮",grouping:" ",decimal:",",precision:2},MOP:{symbol:"MOP$",grouping:",",decimal:".",precision:2},MRO:{symbol:"UM",grouping:",",decimal:".",precision:2},MTL:{symbol:"₤",grouping:",",decimal:".",precision:2},MUR:{symbol:"₨",grouping:",",decimal:".",precision:2},MVR:{symbol:"MVR",grouping:",",decimal:".",precision:1},MWK:{symbol:"MK",grouping:",",decimal:".",precision:2},MXN:{symbol:"MX$",grouping:",",decimal:".",precision:2},MYR:{symbol:"RM",grouping:",",decimal:".",precision:2},MZN:{symbol:"MT",grouping:",",decimal:".",precision:0},NAD:{symbol:"N$",grouping:",",decimal:".",precision:2},NGN:{symbol:"₦",grouping:",",decimal:".",precision:2},NIO:{symbol:"C$",grouping:",",decimal:".",precision:2},NOK:{symbol:"kr",grouping:" ",decimal:",",precision:2},NPR:{symbol:"₨",grouping:",",decimal:".",precision:2},NZD:{symbol:"NZ$",grouping:",",decimal:".",precision:2},OMR:{symbol:"﷼",grouping:",",decimal:".",precision:3},PAB:{symbol:"B/.",grouping:",",decimal:".",precision:2},PEN:{symbol:"S/.",grouping:",",decimal:".",precision:2},PGK:{symbol:"K",grouping:",",decimal:".",precision:2},PHP:{symbol:"₱",grouping:",",decimal:".",precision:2},PKR:{symbol:"₨",grouping:",",decimal:".",precision:2},PLN:{symbol:"zł",grouping:" ",decimal:",",precision:2},PYG:{symbol:"₲",grouping:".",decimal:",",precision:2},QAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},RON:{symbol:"lei",grouping:".",decimal:",",precision:2},RSD:{symbol:"Дин.",grouping:".",decimal:",",precision:2},RUB:{symbol:"₽",grouping:" ",decimal:",",precision:2},RWF:{symbol:"RWF",grouping:" ",decimal:",",precision:2},SAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},SBD:{symbol:"S$",grouping:",",decimal:".",precision:2},SCR:{symbol:"₨",grouping:",",decimal:".",precision:2},SDD:{symbol:"LSd",grouping:",",decimal:".",precision:2},SDG:{symbol:"£",grouping:",",decimal:".",precision:2},SEK:{symbol:"kr",grouping:",",decimal:".",precision:2},SGD:{symbol:"S$",grouping:",",decimal:".",precision:2},SHP:{symbol:"£",grouping:",",decimal:".",precision:2},SLL:{symbol:"Le",grouping:",",decimal:".",precision:2},SOS:{symbol:"S",grouping:",",decimal:".",precision:2},SRD:{symbol:"$",grouping:",",decimal:".",precision:2},STD:{symbol:"Db",grouping:",",decimal:".",precision:2},SVC:{symbol:"₡",grouping:",",decimal:".",precision:2},SYP:{symbol:"£",grouping:",",decimal:".",precision:2},SZL:{symbol:"E",grouping:",",decimal:".",precision:2},THB:{symbol:"฿",grouping:",",decimal:".",precision:2},TJS:{symbol:"TJS",grouping:" ",decimal:";",precision:2},TMT:{symbol:"m",grouping:" ",decimal:",",precision:0},TND:{symbol:"د.ت.",grouping:",",decimal:".",precision:3},TOP:{symbol:"T$",grouping:",",decimal:".",precision:2},TRY:{symbol:"TL",grouping:".",decimal:",",precision:2},TTD:{symbol:"TT$",grouping:",",decimal:".",precision:2},TVD:{symbol:"$T",grouping:",",decimal:".",precision:2},TWD:{symbol:"NT$",grouping:",",decimal:".",precision:2},TZS:{symbol:"TSh",grouping:",",decimal:".",precision:2},UAH:{symbol:"₴",grouping:" ",decimal:",",precision:2},UGX:{symbol:"USh",grouping:",",decimal:".",precision:2},USD:{symbol:"$",grouping:",",decimal:".",precision:2},UYU:{symbol:"$U",grouping:".",decimal:",",precision:2},UZS:{symbol:"сўм",grouping:" ",decimal:",",precision:2},VEB:{symbol:"Bs.",grouping:",",decimal:".",precision:2},VEF:{symbol:"Bs. F.",grouping:".",decimal:",",precision:2},VND:{symbol:"₫",grouping:".",decimal:",",precision:1},VUV:{symbol:"VT",grouping:",",decimal:".",precision:0},WST:{symbol:"WS$",grouping:",",decimal:".",precision:2},XAF:{symbol:"F",grouping:",",decimal:".",precision:2},XCD:{symbol:"$",grouping:",",decimal:".",precision:2},XOF:{symbol:"F",grouping:" ",decimal:",",precision:2},XPF:{symbol:"F",grouping:",",decimal:".",precision:2},YER:{symbol:"﷼",grouping:",",decimal:".",precision:2},ZAR:{symbol:"R",grouping:" ",decimal:",",precision:2},ZMW:{symbol:"ZK",grouping:",",decimal:".",precision:2},WON:{symbol:"₩",grouping:",",decimal:".",precision:2}};function a(e){return n[e]||{symbol:"$",grouping:",",decimal:".",precision:2}}},4567:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>o});var n=r(3975),a=r(18360);function o(e,t,r={}){const o=(0,n.i)(t);if(!o||isNaN(e))return null;const{decimal:s,grouping:i,precision:l,symbol:c}={...o,...r},u=e<0?"-":"";let A=(0,a.A)(Math.abs(e),l,s,i);return r.stripZeros&&(A=function(e,t){const r=new RegExp(`\\${t}0+$`);return e.replace(r,"")}(A,s)),`${u}${c}${A}`}},18360:(e,t,r)=>{"use strict";function n(e,t=0,r=".",n=","){const a=(e+"").replace(/[^0-9+\-Ee.]/g,""),o=isFinite(+a)?+a:0,s=isFinite(+t)?Math.abs(t):0,i=(s?function(e,t){const r=Math.pow(10,t);return""+(Math.round(e*r)/r).toFixed(t)}(o,s):""+Math.round(o)).split(".");return i[0].length>3&&(i[0]=i[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,n)),(i[1]||"").length<s&&(i[1]=i[1]||"",i[1]+=new Array(s-i[1].length+1).join("0")),i.join(r)}r.d(t,{A:()=>n})},51119:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n,a=r(2467);function o(){this.intervals={},this.monitorInterval=null,this.windowInstance=null,this.onMessage=e=>{e.source===this.windowInstance&&this.emit("message",e.data)}}n=o.prototype,Object.assign(n,a.EventEmitter.prototype),n.emitChange=function(){this.emit("change")},n.off=n.removeListener,o.prototype.open=function(e,t,r){return t=t||Date.now(),this.windowInstance=window.open(e,t,r),this.startMonitoring(t,this.windowInstance),window.addEventListener("message",this.onMessage,!1),this},o.prototype.getScreenCenterSpecs=function(e,t){const r=void 0!==window.screenTop?window.screenTop:window.screenY,n=void 0!==window.screenLeft?window.screenLeft:window.screenX;return["width="+e,"height="+t,"top="+(r+window.innerHeight/2-t/2),"left="+(n+window.innerWidth/2-e/2)].join()},o.prototype.isOpen=function(e){let t=!1;try{t=this.intervals[e]&&this.intervals[e].closed}catch(e){}return!t},o.prototype.checkStatus=function(){for(const e in this.intervals)this.intervals.hasOwnProperty(e)&&!this.isOpen(e)&&(this.emit("close",e),delete this.intervals[e]);0===Object.keys(this.intervals).length&&(clearInterval(this.monitorInterval),delete this.monitorInterval,window.removeEventListener("message",this.onMessage))},o.prototype.startMonitoring=function(e,t){this.monitorInterval||(this.monitorInterval=setInterval(this.checkStatus.bind(this),100)),this.intervals[e]=t};const s=o},97684:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(51119);const a=function(e,t){var r,a=new n.A;a.open(e,null,"toolbar=0,location=0,status=0,menubar=0,"+a.getScreenCenterSpecs(780,700)),a.once("close",(function(){var e={};r&&r.keyring_id&&(e.keyring_id=Number(r.keyring_id),e.id_token=r.id_token,e.user=r.user),t(e)})),a.on("message",(function(e){return r=e}))}},10067:(e,t,r)=>{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 r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,a=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(a=n))})),t.splice(a,0,r)},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=r(78926)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},78926:(e,t,r)=>{e.exports=function(e){function t(e){let r,a,o,s=null;function i(...e){if(!i.enabled)return;const n=i,a=Number(new Date),o=a-(r||a);n.diff=o,n.prev=r,n.curr=a,r=a,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((r,a)=>{if("%%"===r)return"%";s++;const o=t.formatters[a];if("function"==typeof o){const t=e[s];r=o.call(n,t),e.splice(s,1),s--}return r})),t.formatArgs.call(n,e);(n.log||t.log).apply(n,e)}return i.namespace=e,i.useColors=t.useColors(),i.color=t.selectColor(e),i.extend=n,i.destroy=t.destroy,Object.defineProperty(i,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(a!==t.namespaces&&(a=t.namespaces,o=t.enabled(e)),o),set:e=>{s=e}}),"function"==typeof t.init&&t.init(i),i}function n(e,r){const n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function a(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(a),...t.skips.map(a).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let r;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),a=n.length;for(r=0;r<a;r++)n[r]&&("-"===(e=n[r].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 r,n;for(r=0,n=t.skips.length;r<n;r++)if(t.skips[r].test(e))return!1;for(r=0,n=t.names.length;r<n;r++)if(t.names[r].test(e))return!0;return!1},t.humanize=r(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((r=>{t[r]=e[r]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t),r|=0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t}},49789:(e,t,r)=>{"use strict";t.A=function(e){var t=e.size,r=void 0===t?24:t,n=e.onClick,i=(e.icon,e.className),l=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],0<=t.indexOf(r)||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],0<=t.indexOf(r)||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,o),c=["gridicon","gridicons-notice-outline",i,!!function(e){return 0==e%18}(r)&&"needs-offset",!1,!1].filter(Boolean).join(" ");return a.default.createElement("svg",s({className:c,height:r,width:r,onClick:n},l,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M12 4c4.411 0 8 3.589 8 8s-3.589 8-8 8-8-3.589-8-8 3.589-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 13h-2v2h2v-2zm-2-2h2l.5-6h-3l.5 6z"})))};var n,a=(n=r(51609))&&n.__esModule?n:{default:n},o=["size","onClick","icon","className"];function s(){return s=Object.assign||function(e){for(var t,r=1;r<arguments.length;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},s.apply(this,arguments)}},71218:(e,t,r)=>{"use strict";t.A=function(e){var t=e.size,r=void 0===t?24:t,n=e.onClick,i=(e.icon,e.className),l=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],0<=t.indexOf(r)||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],0<=t.indexOf(r)||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,o),c=["gridicon","gridicons-star",i,!!function(e){return 0==e%18}(r)&&"needs-offset",!1,!1].filter(Boolean).join(" ");return a.default.createElement("svg",s({className:c,height:r,width:r,onClick:n},l,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M12 2l2.582 6.953L22 9.257l-5.822 4.602L18.18 21 12 16.891 5.82 21l2.002-7.141L2 9.257l7.418-.304z"})))};var n,a=(n=r(51609))&&n.__esModule?n:{default:n},o=["size","onClick","icon","className"];function s(){return s=Object.assign||function(e){for(var t,r=1;r<arguments.length;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},s.apply(this,arguments)}},54715:(e,t,r)=>{"use strict";r.d(t,{Cl:()=>n});var n=function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},n.apply(this,arguments)};Object.create;Object.create},21147:(e,t,r)=>{"use strict";function n(e,t){return Array(t+1).join(e)}r.d(t,{A:()=>N});var a=["ADDRESS","ARTICLE","ASIDE","AUDIO","BLOCKQUOTE","BODY","CANVAS","CENTER","DD","DIR","DIV","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","FRAMESET","H1","H2","H3","H4","H5","H6","HEADER","HGROUP","HR","HTML","ISINDEX","LI","MAIN","MENU","NAV","NOFRAMES","NOSCRIPT","OL","OUTPUT","P","PRE","SECTION","TABLE","TBODY","TD","TFOOT","TH","THEAD","TR","UL"];function o(e){return c(e,a)}var s=["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"];function i(e){return c(e,s)}var l=["A","TABLE","THEAD","TBODY","TFOOT","TH","TD","IFRAME","SCRIPT","AUDIO","VIDEO"];function c(e,t){return t.indexOf(e.nodeName)>=0}function u(e,t){return e.getElementsByTagName&&t.some((function(t){return e.getElementsByTagName(t).length}))}var A={};function g(e){return e?e.replace(/(\n+\s*)+/g,"\n"):""}function d(e){for(var t in this.options=e,this._keep=[],this._remove=[],this.blankRule={replacement:e.blankReplacement},this.keepReplacement=e.keepReplacement,this.defaultRule={replacement:e.defaultReplacement},this.array=[],e.rules)this.array.push(e.rules[t])}function p(e,t,r){for(var n=0;n<e.length;n++){var a=e[n];if(m(a,t,r))return a}}function m(e,t,r){var n=e.filter;if("string"==typeof n){if(n===t.nodeName.toLowerCase())return!0}else if(Array.isArray(n)){if(n.indexOf(t.nodeName.toLowerCase())>-1)return!0}else{if("function"!=typeof n)throw new TypeError("`filter` needs to be a string, array, or function");if(n.call(e,t,r))return!0}}function h(e){var t=e.nextSibling||e.parentNode;return e.parentNode.removeChild(e),t}function E(e,t,r){return e&&e.parentNode===t||r(t)?t.nextSibling||t.parentNode:t.firstChild||t.nextSibling||t.parentNode}A.paragraph={filter:"p",replacement:function(e){return"\n\n"+e+"\n\n"}},A.lineBreak={filter:"br",replacement:function(e,t,r){return r.br+"\n"}},A.heading={filter:["h1","h2","h3","h4","h5","h6"],replacement:function(e,t,r){var a=Number(t.nodeName.charAt(1));return"setext"===r.headingStyle&&a<3?"\n\n"+e+"\n"+n(1===a?"=":"-",e.length)+"\n\n":"\n\n"+n("#",a)+" "+e+"\n\n"}},A.blockquote={filter:"blockquote",replacement:function(e){return"\n\n"+(e=(e=e.replace(/^\n+|\n+$/g,"")).replace(/^/gm,"> "))+"\n\n"}},A.list={filter:["ul","ol"],replacement:function(e,t){var r=t.parentNode;return"LI"===r.nodeName&&r.lastElementChild===t?"\n"+e:"\n\n"+e+"\n\n"}},A.listItem={filter:"li",replacement:function(e,t,r){e=e.replace(/^\n+/,"").replace(/\n+$/,"\n").replace(/\n/gm,"\n ");var n=r.bulletListMarker+" ",a=t.parentNode;if("OL"===a.nodeName){var o=a.getAttribute("start"),s=Array.prototype.indexOf.call(a.children,t);n=(o?Number(o)+s:s+1)+". "}return n+e+(t.nextSibling&&!/\n$/.test(e)?"\n":"")}},A.indentedCodeBlock={filter:function(e,t){return"indented"===t.codeBlockStyle&&"PRE"===e.nodeName&&e.firstChild&&"CODE"===e.firstChild.nodeName},replacement:function(e,t,r){return"\n\n "+t.firstChild.textContent.replace(/\n/g,"\n ")+"\n\n"}},A.fencedCodeBlock={filter:function(e,t){return"fenced"===t.codeBlockStyle&&"PRE"===e.nodeName&&e.firstChild&&"CODE"===e.firstChild.nodeName},replacement:function(e,t,r){for(var a,o=((t.firstChild.getAttribute("class")||"").match(/language-(\S+)/)||[null,""])[1],s=t.firstChild.textContent,i=r.fence.charAt(0),l=3,c=new RegExp("^"+i+"{3,}","gm");a=c.exec(s);)a[0].length>=l&&(l=a[0].length+1);var u=n(i,l);return"\n\n"+u+o+"\n"+s.replace(/\n$/,"")+"\n"+u+"\n\n"}},A.horizontalRule={filter:"hr",replacement:function(e,t,r){return"\n\n"+r.hr+"\n\n"}},A.inlineLink={filter:function(e,t){return"inlined"===t.linkStyle&&"A"===e.nodeName&&e.getAttribute("href")},replacement:function(e,t){var r=t.getAttribute("href"),n=g(t.getAttribute("title"));return n&&(n=' "'+n+'"'),"["+e+"]("+r+n+")"}},A.referenceLink={filter:function(e,t){return"referenced"===t.linkStyle&&"A"===e.nodeName&&e.getAttribute("href")},replacement:function(e,t,r){var n,a,o=t.getAttribute("href"),s=g(t.getAttribute("title"));switch(s&&(s=' "'+s+'"'),r.linkReferenceStyle){case"collapsed":n="["+e+"][]",a="["+e+"]: "+o+s;break;case"shortcut":n="["+e+"]",a="["+e+"]: "+o+s;break;default:var i=this.references.length+1;n="["+e+"]["+i+"]",a="["+i+"]: "+o+s}return this.references.push(a),n},references:[],append:function(e){var t="";return this.references.length&&(t="\n\n"+this.references.join("\n")+"\n\n",this.references=[]),t}},A.emphasis={filter:["em","i"],replacement:function(e,t,r){return e.trim()?r.emDelimiter+e+r.emDelimiter:""}},A.strong={filter:["strong","b"],replacement:function(e,t,r){return e.trim()?r.strongDelimiter+e+r.strongDelimiter:""}},A.code={filter:function(e){var t=e.previousSibling||e.nextSibling,r="PRE"===e.parentNode.nodeName&&!t;return"CODE"===e.nodeName&&!r},replacement:function(e){if(!e)return"";e=e.replace(/\r?\n|\r/g," ");for(var t=/^`|^ .*?[^ ].* $|`$/.test(e)?" ":"",r="`",n=e.match(/`+/gm)||[];-1!==n.indexOf(r);)r+="`";return r+t+e+t+r}},A.image={filter:"img",replacement:function(e,t){var r=g(t.getAttribute("alt")),n=t.getAttribute("src")||"",a=g(t.getAttribute("title"));return n?"!["+r+"]("+n+(a?' "'+a+'"':"")+")":""}},d.prototype={add:function(e,t){this.array.unshift(t)},keep:function(e){this._keep.unshift({filter:e,replacement:this.keepReplacement})},remove:function(e){this._remove.unshift({filter:e,replacement:function(){return""}})},forNode:function(e){return e.isBlank?this.blankRule:(t=p(this.array,e,this.options))||(t=p(this._keep,e,this.options))||(t=p(this._remove,e,this.options))?t:this.defaultRule;var t},forEach:function(e){for(var t=0;t<this.array.length;t++)e(this.array[t],t)}};var f="undefined"!=typeof window?window:{};var C,B,b=function(){var e=f.DOMParser,t=!1;try{(new e).parseFromString("","text/html")&&(t=!0)}catch(e){}return t}()?f.DOMParser:(C=function(){},function(){var e=!1;try{document.implementation.createHTMLDocument("").open()}catch(t){window.ActiveXObject&&(e=!0)}return e}()?C.prototype.parseFromString=function(e){var t=new window.ActiveXObject("htmlfile");return t.designMode="on",t.open(),t.write(e),t.close(),t}:C.prototype.parseFromString=function(e){var t=document.implementation.createHTMLDocument("");return t.open(),t.write(e),t.close(),t},C);function k(e,t){var r;"string"==typeof e?r=(B=B||new b).parseFromString('<x-turndown id="turndown-root">'+e+"</x-turndown>","text/html").getElementById("turndown-root"):r=e.cloneNode(!0);return function(e){var t=e.element,r=e.isBlock,n=e.isVoid,a=e.isPre||function(e){return"PRE"===e.nodeName};if(t.firstChild&&!a(t)){for(var o=null,s=!1,i=null,l=E(i,t,a);l!==t;){if(3===l.nodeType||4===l.nodeType){var c=l.data.replace(/[ \r\n\t]+/g," ");if(o&&!/ $/.test(o.data)||s||" "!==c[0]||(c=c.substr(1)),!c){l=h(l);continue}l.data=c,o=l}else{if(1!==l.nodeType){l=h(l);continue}r(l)||"BR"===l.nodeName?(o&&(o.data=o.data.replace(/ $/,"")),o=null,s=!1):n(l)||a(l)?(o=null,s=!0):o&&(s=!1)}var u=E(i,l,a);i=l,l=u}o&&(o.data=o.data.replace(/ $/,""),o.data||h(o))}}({element:r,isBlock:o,isVoid:i,isPre:t.preformattedCode?y:null}),r}function y(e){return"PRE"===e.nodeName||"CODE"===e.nodeName}function v(e,t){return e.isBlock=o(e),e.isCode="CODE"===e.nodeName||e.parentNode.isCode,e.isBlank=function(e){return!i(e)&&!function(e){return c(e,l)}(e)&&/^\s*$/i.test(e.textContent)&&!function(e){return u(e,s)}(e)&&!function(e){return u(e,l)}(e)}(e),e.flankingWhitespace=function(e,t){if(e.isBlock||t.preformattedCode&&e.isCode)return{leading:"",trailing:""};var r=(n=e.textContent,a=n.match(/^(([ \t\r\n]*)(\s*))(?:(?=\S)[\s\S]*\S)?((\s*?)([ \t\r\n]*))$/),{leading:a[1],leadingAscii:a[2],leadingNonAscii:a[3],trailing:a[4],trailingNonAscii:a[5],trailingAscii:a[6]});var n,a;r.leadingAscii&&I("left",e,t)&&(r.leading=r.leadingNonAscii);r.trailingAscii&&I("right",e,t)&&(r.trailing=r.trailingNonAscii);return{leading:r.leading,trailing:r.trailing}}(e,t),e}function I(e,t,r){var n,a,s;return"left"===e?(n=t.previousSibling,a=/ $/):(n=t.nextSibling,a=/^ /),n&&(3===n.nodeType?s=a.test(n.nodeValue):r.preformattedCode&&"CODE"===n.nodeName?s=!1:1!==n.nodeType||o(n)||(s=a.test(n.textContent))),s}var _=Array.prototype.reduce,w=[[/\\/g,"\\\\"],[/\*/g,"\\*"],[/^-/g,"\\-"],[/^\+ /g,"\\+ "],[/^(=+)/g,"\\$1"],[/^(#{1,6}) /g,"\\$1 "],[/`/g,"\\`"],[/^~~~/g,"\\~~~"],[/\[/g,"\\["],[/\]/g,"\\]"],[/^>/g,"\\>"],[/_/g,"\\_"],[/^(\d+)\. /g,"$1\\. "]];function Q(e){if(!(this instanceof Q))return new Q(e);var t={rules:A,headingStyle:"setext",hr:"* * *",bulletListMarker:"*",codeBlockStyle:"indented",fence:"```",emDelimiter:"_",strongDelimiter:"**",linkStyle:"inlined",linkReferenceStyle:"full",br:" ",preformattedCode:!1,blankReplacement:function(e,t){return t.isBlock?"\n\n":""},keepReplacement:function(e,t){return t.isBlock?"\n\n"+t.outerHTML+"\n\n":t.outerHTML},defaultReplacement:function(e,t){return t.isBlock?"\n\n"+e+"\n\n":e}};this.options=function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n])}return e}({},t,e),this.rules=new d(this.options)}function S(e){var t=this;return _.call(e.childNodes,(function(e,r){var n="";return 3===(r=new v(r,t.options)).nodeType?n=r.isCode?r.nodeValue:t.escape(r.nodeValue):1===r.nodeType&&(n=j.call(t,r)),L(e,n)}),"")}function x(e){var t=this;return this.rules.forEach((function(r){"function"==typeof r.append&&(e=L(e,r.append(t.options)))})),e.replace(/^[\t\r\n]+/,"").replace(/[\t\r\n\s]+$/,"")}function j(e){var t=this.rules.forNode(e),r=S.call(this,e),n=e.flankingWhitespace;return(n.leading||n.trailing)&&(r=r.trim()),n.leading+t.replacement(r,e,this.options)+n.trailing}function L(e,t){var r=function(e){for(var t=e.length;t>0&&"\n"===e[t-1];)t--;return e.substring(0,t)}(e),n=t.replace(/^\n*/,""),a=Math.max(e.length-r.length,t.length-n.length);return r+"\n\n".substring(0,a)+n}Q.prototype={turndown:function(e){if(!function(e){return null!=e&&("string"==typeof e||e.nodeType&&(1===e.nodeType||9===e.nodeType||11===e.nodeType))}(e))throw new TypeError(e+" is not a string, or an element/document/fragment node.");if(""===e)return"";var t=S.call(this,new k(e,this.options));return x.call(this,t)},use:function(e){if(Array.isArray(e))for(var t=0;t<e.length;t++)this.use(e[t]);else{if("function"!=typeof e)throw new TypeError("plugin must be a Function or an Array of Functions");e(this)}return this},addRule:function(e,t){return this.rules.add(e,t),this},keep:function(e){return this.rules.keep(e),this},remove:function(e){return this.rules.remove(e),this},escape:function(e){return w.reduce((function(e,t){return e.replace(t[0],t[1])}),e)}};const N=Q},91016:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n=r(74085),a=r(55217),o=r(39537),s=r(63350);function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t,r){return t&&l(e.prototype,t),r&&l(e,r),e}var u=function(){function e(t){i(this,e),this._file=t,this.size=t.size}return c(e,[{key:"slice",value:function(e,t){if((0,o.A)())return(0,s.A)(this._file.slice(e,t));var r=this._file.slice(e,t);return Promise.resolve({value:r})}},{key:"close",value:function(){}}]),e}(),A=function(){function e(t,r){i(this,e),this._chunkSize=r,this._buffer=void 0,this._bufferOffset=0,this._reader=t,this._done=!1}return c(e,[{key:"slice",value:function(e,t){return e<this._bufferOffset?Promise.reject(new Error("Requested data is before the reader's current offset")):this._readUntilEnoughDataOrDone(e,t)}},{key:"_readUntilEnoughDataOrDone",value:function(e,t){var r=this,n=t<=this._bufferOffset+g(this._buffer);if(this._done||n){var a=this._getDataFromBuffer(e,t),o=null==a&&this._done;return Promise.resolve({value:a,done:o})}return this._reader.read().then((function(n){var a=n.value;return n.done?r._done=!0:void 0===r._buffer?r._buffer=a:r._buffer=function(e,t){if(e.concat)return e.concat(t);if(e instanceof Blob)return new Blob([e,t],{type:e.type});if(e.set){var r=new e.constructor(e.length+t.length);return r.set(e),r.set(t,e.length),r}throw new Error("Unknown data type")}(r._buffer,a),r._readUntilEnoughDataOrDone(e,t)}))}},{key:"_getDataFromBuffer",value:function(e,t){e>this._bufferOffset&&(this._buffer=this._buffer.slice(e-this._bufferOffset),this._bufferOffset=e);var r=0===g(this._buffer);return this._done&&r?null:this._buffer.slice(0,t-e)}},{key:"close",value:function(){this._reader.cancel&&this._reader.cancel()}}]),e}();function g(e){return void 0===e?0:void 0!==e.size?e.size:e.length}var d=function(){function e(){i(this,e)}return c(e,[{key:"openFile",value:function(e,t){return(0,n.A)()&&e&&void 0!==e.uri?(0,a.A)(e.uri).then((function(e){return new u(e)})).catch((function(e){throw new Error("tus: cannot fetch `file.uri` as Blob, make sure the uri is correct and accessible. ".concat(e))})):"function"==typeof e.slice&&void 0!==e.size?Promise.resolve(new u(e)):"function"==typeof e.read?(t=+t,isFinite(t)?Promise.resolve(new A(e,t)):Promise.reject(new Error("cannot create source for stream without a finite value for the `chunkSize` option"))):Promise.reject(new Error("source object may only be an instance of File, Blob, or Reader in this environment"))}}]),e}()},91337:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(74085);function a(e,t){return(0,n.A)()?Promise.resolve(function(e,t){var r=e.exif?function(e){var t=0;if(0===e.length)return t;for(var r=0;r<e.length;r++){t=(t<<5)-t+e.charCodeAt(r),t&=t}return t}(JSON.stringify(e.exif)):"noexif";return["tus-rn",e.name||"noname",e.size||"nosize",r,t.endpoint].join("/")}(e,t)):Promise.resolve(["tus-br",e.name,e.type,e.size,e.lastModified,t.endpoint].join("-"))}},45369:(e,t,r)=>{"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),e}r.d(t,{A:()=>s});var s=function(){function e(){n(this,e)}return o(e,[{key:"createRequest",value:function(e,t){return new i(e,t)}},{key:"getName",value:function(){return"XHRHttpStack"}}]),e}(),i=function(){function e(t,r){n(this,e),this._xhr=new XMLHttpRequest,this._xhr.open(t,r,!0),this._method=t,this._url=r,this._headers={}}return o(e,[{key:"getMethod",value:function(){return this._method}},{key:"getURL",value:function(){return this._url}},{key:"setHeader",value:function(e,t){this._xhr.setRequestHeader(e,t),this._headers[e]=t}},{key:"getHeader",value:function(e){return this._headers[e]}},{key:"setProgressHandler",value:function(e){"upload"in this._xhr&&(this._xhr.upload.onprogress=function(t){t.lengthComputable&&e(t.loaded)})}},{key:"send",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return new Promise((function(r,n){e._xhr.onload=function(){r(new l(e._xhr))},e._xhr.onerror=function(e){n(e)},e._xhr.send(t)}))}},{key:"abort",value:function(){return this._xhr.abort(),Promise.resolve()}},{key:"getUnderlyingObject",value:function(){return this._xhr}}]),e}(),l=function(){function e(t){n(this,e),this._xhr=t}return o(e,[{key:"getStatus",value:function(){return this._xhr.status}},{key:"getHeader",value:function(e){return this._xhr.getResponseHeader(e)}},{key:"getBody",value:function(){return this._xhr.responseText}},{key:"getUnderlyingObject",value:function(){return this._xhr}}]),e}()},10781:(e,t,r)=>{"use strict";r.d(t,{_O:()=>f});var n=r(82701),a=r(52494),o=r(10851),s=r(45369),i=r(91016),l=r(91337);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function A(e,t){return A=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},A(e,t)}function g(e){return function(){var t,r=d(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}()){var n=d(this).constructor;t=Reflect.construct(r,arguments,n)}else t=r.apply(this,arguments);return function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){h(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function h(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var E=m({},n.A.defaultOptions,{httpStack:new s.A,fileReader:new i.A,urlStorage:o.o?new o.Y:new a.A,fingerprint:l.A}),f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&A(e,t)}(s,e);var t,r,a,o=g(s);function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),t=m({},E,{},t),o.call(this,e,t)}return t=s,a=[{key:"terminate",value:function(e,t,r){return t=m({},E,{},t),n.A.terminate(e,t,r)}}],(r=null)&&u(t.prototype,r),a&&u(t,a),s}(n.A),C=window,B=C.XMLHttpRequest,b=C.Blob;B&&b&&b.prototype.slice},39537:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=function(){return"undefined"!=typeof window&&(void 0!==window.PhoneGap||void 0!==window.Cordova||void 0!==window.cordova)}},74085:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=function(){return"undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase()}},63350:(e,t,r)=>{"use strict";function n(e){return new Promise((function(t,r){var n=new FileReader;n.onload=function(){var e=new Uint8Array(n.result);t({value:e})},n.onerror=function(e){r(e)},n.readAsArrayBuffer(e)}))}r.d(t,{A:()=>n})},55217:(e,t,r)=>{"use strict";function n(e){return new Promise((function(t,r){var n=new XMLHttpRequest;n.responseType="blob",n.onload=function(){var e=n.response;t(e)},n.onerror=function(e){r(e)},n.open("GET",e),n.send()}))}r.d(t,{A:()=>n})},10851:(e,t,r)=>{"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}r.d(t,{Y:()=>i,o:()=>s});var a=!1;try{a="localStorage"in window;var o="tusSupport";localStorage.setItem(o,localStorage.getItem(o))}catch(e){if(e.code!==e.SECURITY_ERR&&e.code!==e.QUOTA_EXCEEDED_ERR)throw e;a=!1}var s=a,i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,a;return t=e,r=[{key:"findAllUploads",value:function(){var e=this._findEntries("tus::");return Promise.resolve(e)}},{key:"findUploadsByFingerprint",value:function(e){var t=this._findEntries("tus::".concat(e,"::"));return Promise.resolve(t)}},{key:"removeUpload",value:function(e){return localStorage.removeItem(e),Promise.resolve()}},{key:"addUpload",value:function(e,t){var r=Math.round(1e12*Math.random()),n="tus::".concat(e,"::").concat(r);return localStorage.setItem(n,JSON.stringify(t)),Promise.resolve(n)}},{key:"_findEntries",value:function(e){for(var t=[],r=0;r<localStorage.length;r++){var n=localStorage.key(r);if(0===n.indexOf(e))try{var a=JSON.parse(localStorage.getItem(n));a.urlStorageKey=n,t.push(a)}catch(e){}}return t}}],r&&n(t.prototype,r),a&&n(t,a),e}()},33004:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function a(e){return function(){var t,r=c(e);if(i()){var a=c(this).constructor;t=Reflect.construct(r,arguments,a)}else t=r.apply(this,arguments);return function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function o(e){var t="function"==typeof Map?new Map:void 0;return o=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return s(e,arguments,c(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),l(n,e)},o(e)}function s(e,t,r){return s=i()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var a=new(Function.bind.apply(e,n));return r&&l(a,r.prototype),a},s.apply(null,arguments)}function i(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}r.d(t,{A:()=>u});const u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(r,e);var t=a(r);function r(e){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(n=t.call(this,e)).originalRequest=o,n.originalResponse=s,n.causingError=a,null!=a&&(e+=", caused by ".concat(a.toString())),null!=o){var i=o.getHeader("X-Request-ID")||"n/a",l=o.getMethod(),c=o.getURL(),u=s?s.getStatus():"n/a",A=s?s.getBody()||"":"n/a";e+=", originated from request (method: ".concat(l,", url: ").concat(c,", response code: ").concat(u,", response text: ").concat(A,", request id: ").concat(i,")")}return n.message=e,n}return r}(o(Error))},12380:(e,t,r)=>{"use strict";r.d(t,{R:()=>a});var n=!1;function a(e){n&&console.log(e)}},52494:(e,t,r)=>{"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}r.d(t,{A:()=>a});var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,a;return t=e,(r=[{key:"listAllUploads",value:function(){return Promise.resolve([])}},{key:"findUploadsByFingerprint",value:function(e){return Promise.resolve([])}},{key:"removeUpload",value:function(e){return Promise.resolve()}},{key:"addUpload",value:function(e,t){return Promise.resolve(null)}}])&&n(t.prototype,r),a&&n(t,a),e}()},82701:(e,t,r)=>{"use strict";r.d(t,{A:()=>b});var n=r(49475),a=r(76580),o=r.n(a),s=r(33004),i=r(12380),l=r(17291);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){A(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function A(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var d={endpoint:null,uploadUrl:null,metadata:{},fingerprint:null,uploadSize:null,onProgress:null,onChunkComplete:null,onSuccess:null,onError:null,_onUploadUrlAvailable:null,overridePatchMethod:!1,headers:{},addRequestId:!1,onBeforeRequest:null,onAfterResponse:null,onShouldRetry:null,chunkSize:1/0,retryDelays:[0,1e3,3e3,5e3],parallelUploads:1,storeFingerprintForResuming:!0,removeFingerprintOnSuccess:!1,uploadLengthDeferred:!1,uploadDataDuringCreation:!1,urlStorage:null,fileReader:null,httpStack:null},p=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),"resume"in r&&console.log("tus: The `resume` option has been removed in tus-js-client v2. Please use the URL storage API instead."),this.options=r,this._urlStorage=this.options.urlStorage,this.file=t,this.url=null,this._req=null,this._fingerprint=null,this._urlStorageKey=null,this._offset=null,this._aborted=!1,this._size=null,this._source=null,this._retryAttempt=0,this._retryTimeout=null,this._offsetBeforeRetry=0,this._parallelUploads=null,this._parallelUploadUrls=null}var t,r,n;return t=e,r=[{key:"findPreviousUploads",value:function(){var e=this;return this.options.fingerprint(this.file,this.options).then((function(t){return e._urlStorage.findUploadsByFingerprint(t)}))}},{key:"resumeFromPreviousUpload",value:function(e){this.url=e.uploadUrl||null,this._parallelUploadUrls=e.parallelUploadUrls||null,this._urlStorageKey=e.urlStorageKey}},{key:"start",value:function(){var e=this,t=this.file;if(t)if(this.options.endpoint||this.options.uploadUrl){var r=this.options.retryDelays;null==r||"[object Array]"===Object.prototype.toString.call(r)?(this.options.parallelUploads>1&&["uploadUrl","uploadSize","uploadLengthDeferred"].forEach((function(t){e.options[t]&&e._emitError(new Error("tus: cannot use the ".concat(t," option when parallelUploads is enabled")))})),this.options.fingerprint(t,this.options).then((function(r){return null==r?(0,i.R)("No fingerprint was calculated meaning that the upload cannot be stored in the URL storage."):(0,i.R)("Calculated fingerprint: ".concat(r)),e._fingerprint=r,e._source?e._source:e.options.fileReader.openFile(t,e.options.chunkSize)})).then((function(t){e._source=t,e.options.parallelUploads>1||null!=e._parallelUploadUrls?e._startParallelUpload():e._startSingleUpload()})).catch((function(t){e._emitError(t)}))):this._emitError(new Error("tus: the `retryDelays` option must either be an array or null"))}else this._emitError(new Error("tus: neither an endpoint or an upload URL is provided"));else this._emitError(new Error("tus: no file or stream to upload provided"))}},{key:"_startParallelUpload",value:function(){var t=this,r=this._size=this._source.size,n=0;this._parallelUploads=[];var a=null!=this._parallelUploadUrls?this._parallelUploadUrls.length:this.options.parallelUploads,o=function(e,t,r){for(var n=Math.floor(e/t),a=[],o=0;o<t;o++)a.push({start:n*o,end:n*(o+1)});return a[t-1].end=e,r&&a.forEach((function(e,t){e.uploadUrl=r[t]||null})),a}(this._source.size,a,this._parallelUploadUrls);this._parallelUploadUrls=new Array(o.length);var s,l=o.map((function(a,s){var i=0;return t._source.slice(a.start,a.end).then((function(l){var c=l.value;return new Promise((function(l,A){var g=u({},t.options,{uploadUrl:a.uploadUrl||null,storeFingerprintForResuming:!1,removeFingerprintOnSuccess:!1,parallelUploads:1,metadata:{},headers:u({},t.options.headers,{"Upload-Concat":"partial"}),onSuccess:l,onError:A,onProgress:function(e){n=n-i+e,i=e,t._emitProgress(n,r)},_onUploadUrlAvailable:function(){t._parallelUploadUrls[s]=d.url,t._parallelUploadUrls.filter((function(e){return!!e})).length===o.length&&t._saveUploadInUrlStorage()}}),d=new e(c,g);d.start(),t._parallelUploads.push(d)}))}))}));Promise.all(l).then((function(){(s=t._openRequest("POST",t.options.endpoint)).setHeader("Upload-Concat","final;".concat(t._parallelUploadUrls.join(" ")));var e=m(t.options.metadata);return""!==e&&s.setHeader("Upload-Metadata",e),t._sendRequest(s,null)})).then((function(e){if(h(e.getStatus(),200)){var r=e.getHeader("Location");null!=r?(t.url=B(t.options.endpoint,r),(0,i.R)("Created upload at ".concat(t.url)),t._emitSuccess()):t._emitHttpError(s,e,"tus: invalid or missing Location header")}else t._emitHttpError(s,e,"tus: unexpected response while creating upload")})).catch((function(e){t._emitError(e)}))}},{key:"_startSingleUpload",value:function(){if(this.options.uploadLengthDeferred)this._size=null;else if(null!=this.options.uploadSize){if(this._size=+this.options.uploadSize,isNaN(this._size))return void this._emitError(new Error("tus: cannot convert `uploadSize` option into a number"))}else if(this._size=this._source.size,null==this._size)return void this._emitError(new Error("tus: cannot automatically derive upload's size from input and must be specified manually using the `uploadSize` option"));return this._aborted=!1,null!=this.url?((0,i.R)("Resuming upload from previous URL: ".concat(this.url)),void this._resumeUpload()):null!=this.options.uploadUrl?((0,i.R)("Resuming upload from provided URL: ".concat(this.options.url)),this.url=this.options.uploadUrl,void this._resumeUpload()):((0,i.R)("Creating a new upload"),void this._createUpload())}},{key:"abort",value:function(t){var r=this;if(arguments.length>1&&"function"==typeof arguments[1])throw new Error("tus: the abort function does not accept a callback since v2 anymore; please use the returned Promise instead");return null!=this._parallelUploads&&this._parallelUploads.forEach((function(e){e.abort(t)})),null!==this._req&&(this._req.abort(),this._source.close()),this._aborted=!0,null!=this._retryTimeout&&(clearTimeout(this._retryTimeout),this._retryTimeout=null),t&&null!=this.url?e.terminate(this.url,this.options).then((function(){return r._removeFromUrlStorage()})):Promise.resolve()}},{key:"_emitHttpError",value:function(e,t,r,n){this._emitError(new s.A(r,n,e,t))}},{key:"_emitError",value:function(e){var t=this;if(!this._aborted){if(null!=this.options.retryDelays&&(null!=this._offset&&this._offset>this._offsetBeforeRetry&&(this._retryAttempt=0),C(e,this._retryAttempt,this.options))){var r=this.options.retryDelays[this._retryAttempt++];return this._offsetBeforeRetry=this._offset,void(this._retryTimeout=setTimeout((function(){t.start()}),r))}if("function"!=typeof this.options.onError)throw e;this.options.onError(e)}}},{key:"_emitSuccess",value:function(){this.options.removeFingerprintOnSuccess&&this._removeFromUrlStorage(),"function"==typeof this.options.onSuccess&&this.options.onSuccess()}},{key:"_emitProgress",value:function(e,t){"function"==typeof this.options.onProgress&&this.options.onProgress(e,t)}},{key:"_emitChunkComplete",value:function(e,t,r){"function"==typeof this.options.onChunkComplete&&this.options.onChunkComplete(e,t,r)}},{key:"_createUpload",value:function(){var e=this;if(this.options.endpoint){var t=this._openRequest("POST",this.options.endpoint);this.options.uploadLengthDeferred?t.setHeader("Upload-Defer-Length",1):t.setHeader("Upload-Length",this._size);var r,n=m(this.options.metadata);""!==n&&t.setHeader("Upload-Metadata",n),this.options.uploadDataDuringCreation&&!this.options.uploadLengthDeferred?(this._offset=0,r=this._addChunkToRequest(t)):r=this._sendRequest(t,null),r.then((function(r){if(h(r.getStatus(),200)){var n=r.getHeader("Location");if(null!=n){if(e.url=B(e.options.endpoint,n),(0,i.R)("Created upload at ".concat(e.url)),"function"==typeof e.options._onUploadUrlAvailable&&e.options._onUploadUrlAvailable(),0===e._size)return e._emitSuccess(),void e._source.close();e._saveUploadInUrlStorage(),e.options.uploadDataDuringCreation?e._handleUploadResponse(t,r):(e._offset=0,e._performUpload())}else e._emitHttpError(t,r,"tus: invalid or missing Location header")}else e._emitHttpError(t,r,"tus: unexpected response while creating upload")})).catch((function(r){e._emitHttpError(t,null,"tus: failed to create upload",r)}))}else this._emitError(new Error("tus: unable to create upload because no endpoint is provided"))}},{key:"_resumeUpload",value:function(){var e=this,t=this._openRequest("HEAD",this.url);this._sendRequest(t,null).then((function(r){var n=r.getStatus();if(!h(n,200))return h(n,400)&&e._removeFromUrlStorage(),423===n?void e._emitHttpError(t,r,"tus: upload is currently locked; retry later"):e.options.endpoint?(e.url=null,void e._createUpload()):void e._emitHttpError(t,r,"tus: unable to resume upload (new upload cannot be created without an endpoint)");var a=parseInt(r.getHeader("Upload-Offset"),10);if(isNaN(a))e._emitHttpError(t,r,"tus: invalid or missing offset value");else{var o=parseInt(r.getHeader("Upload-Length"),10);if(!isNaN(o)||e.options.uploadLengthDeferred){if("function"==typeof e.options._onUploadUrlAvailable&&e.options._onUploadUrlAvailable(),a===o)return e._emitProgress(o,o),void e._emitSuccess();e._offset=a,e._performUpload()}else e._emitHttpError(t,r,"tus: invalid or missing length value")}})).catch((function(r){e._emitHttpError(t,null,"tus: failed to resume upload",r)}))}},{key:"_performUpload",value:function(){var e,t=this;this._aborted||(this.options.overridePatchMethod?(e=this._openRequest("POST",this.url)).setHeader("X-HTTP-Method-Override","PATCH"):e=this._openRequest("PATCH",this.url),e.setHeader("Upload-Offset",this._offset),this._addChunkToRequest(e).then((function(r){h(r.getStatus(),200)?t._handleUploadResponse(e,r):t._emitHttpError(e,r,"tus: unexpected response while uploading chunk")})).catch((function(r){t._aborted||t._emitHttpError(e,null,"tus: failed to upload chunk at offset ".concat(t._offset),r)})))}},{key:"_addChunkToRequest",value:function(e){var t=this,r=this._offset,n=this._offset+this.options.chunkSize;return e.setProgressHandler((function(e){t._emitProgress(r+e,t._size)})),e.setHeader("Content-Type","application/offset+octet-stream"),(n===1/0||n>this._size)&&!this.options.uploadLengthDeferred&&(n=this._size),this._source.slice(r,n).then((function(r){var n=r.value,a=r.done;return t.options.uploadLengthDeferred&&a&&(t._size=t._offset+(n&&n.size?n.size:0),e.setHeader("Upload-Length",t._size)),null===n?t._sendRequest(e):(t._emitProgress(t._offset,t._size),t._sendRequest(e,n))}))}},{key:"_handleUploadResponse",value:function(e,t){var r=parseInt(t.getHeader("Upload-Offset"),10);if(isNaN(r))this._emitHttpError(e,t,"tus: invalid or missing offset value");else{if(this._emitProgress(r,this._size),this._emitChunkComplete(r-this._offset,r,this._size),this._offset=r,r==this._size)return this._emitSuccess(),void this._source.close();this._performUpload()}}},{key:"_openRequest",value:function(e,t){var r=E(e,t,this.options);return this._req=r,r}},{key:"_removeFromUrlStorage",value:function(){var e=this;this._urlStorageKey&&(this._urlStorage.removeUpload(this._urlStorageKey).catch((function(t){e._emitError(t)})),this._urlStorageKey=null)}},{key:"_saveUploadInUrlStorage",value:function(){var e=this;if(this.options.storeFingerprintForResuming&&this._fingerprint){var t={size:this._size,metadata:this.options.metadata,creationTime:(new Date).toString()};this._parallelUploads?t.parallelUploadUrls=this._parallelUploadUrls:t.uploadUrl=this.url,this._urlStorage.addUpload(this._fingerprint,t).then((function(t){return e._urlStorageKey=t})).catch((function(t){e._emitError(t)}))}}},{key:"_sendRequest",value:function(e){return f(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,this.options)}}],n=[{key:"terminate",value:function(t,r){if(arguments.length>1&&"function"==typeof arguments[arguments.length-1])throw new Error("tus: the terminate function does not accept a callback since v2 anymore; please use the returned Promise instead");void 0===r&&(r={});var n=E("DELETE",t,r);return f(n,null,r).then((function(e){if(204!==e.getStatus())throw new s.A("tus: unexpected response while terminating upload",null,n,e)})).catch((function(a){if(a instanceof s.A||(a=new s.A("tus: failed to terminate upload",a,n,null)),!C(a,0,r))throw a;var o=r.retryDelays[0],i=r.retryDelays.slice(1),l=u({},r,{retryDelays:i});return new Promise((function(e){return setTimeout(e,o)})).then((function(){return e.terminate(t,l)}))}))}}],r&&g(t.prototype,r),n&&g(t,n),e}();function m(e){var t=[];for(var r in e)t.push("".concat(r," ").concat(n.Base64.encode(e[r])));return t.join(",")}function h(e,t){return e>=t&&e<t+100}function E(e,t,r){var n=r.httpStack.createRequest(e,t);n.setHeader("Tus-Resumable","1.0.0");var a=r.headers||{};for(var o in a)n.setHeader(o,a[o]);if(r.addRequestId){var s=(0,l.A)();n.setHeader("X-Request-ID",s)}return n}function f(e,t,r){return("function"==typeof r.onBeforeRequest?Promise.resolve(r.onBeforeRequest(e)):Promise.resolve()).then((function(){return e.send(t).then((function(t){return("function"==typeof r.onAfterResponse?Promise.resolve(r.onAfterResponse(e,t)):Promise.resolve()).then((function(){return t}))}))}))}function C(e,t,r){if(null==r.retryDelays||t>=r.retryDelays.length||null==e.originalRequest)return!1;if(r&&"function"==typeof r.onShouldRetry)return r.onShouldRetry(e,t,r);var n,a=e.originalResponse?e.originalResponse.getStatus():0;return(!h(a,400)||409===a||423===a)&&(n=!0,"undefined"!=typeof window&&"navigator"in window&&!1===window.navigator.onLine&&(n=!1),n)}function B(e,t){return new(o())(t,e).toString()}p.defaultOptions=d;const b=p},17291:(e,t,r)=>{"use strict";function n(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))}r.d(t,{A:()=>n})},21644:(e,t,r)=>{"use strict";function n(e){return e.charAt(0).toUpperCase()+e.substr(1)}r.d(t,{R:()=>n})},88415:(e,t,r)=>{"use strict";r.d(t,{l:()=>n});function n(e){return e.toUpperCase()}},76580:(e,t,r)=>{"use strict";var n=r(96811),a=r(24588),o=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,s=/[\n\r\t]/g,i=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,l=/:\d+$/,c=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,u=/^[a-zA-Z]:/;function A(e){return(e||"").toString().replace(o,"")}var g=[["#","hash"],["?","query"],function(e,t){return m(t.protocol)?e.replace(/\\/g,"/"):e},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],d={hash:1,query:1};function p(e){var t,r=("undefined"!=typeof window||"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).location||{},n={},a=typeof(e=e||r);if("blob:"===e.protocol)n=new E(unescape(e.pathname),{});else if("string"===a)for(t in n=new E(e,{}),d)delete n[t];else if("object"===a){for(t in e)t in d||(n[t]=e[t]);void 0===n.slashes&&(n.slashes=i.test(e.href))}return n}function m(e){return"file:"===e||"ftp:"===e||"http:"===e||"https:"===e||"ws:"===e||"wss:"===e}function h(e,t){e=(e=A(e)).replace(s,""),t=t||{};var r,n=c.exec(e),a=n[1]?n[1].toLowerCase():"",o=!!n[2],i=!!n[3],l=0;return o?i?(r=n[2]+n[3]+n[4],l=n[2].length+n[3].length):(r=n[2]+n[4],l=n[2].length):i?(r=n[3]+n[4],l=n[3].length):r=n[4],"file:"===a?l>=2&&(r=r.slice(2)):m(a)?r=n[4]:a?o&&(r=r.slice(2)):l>=2&&m(t.protocol)&&(r=n[4]),{protocol:a,slashes:o||m(a),slashesCount:l,rest:r}}function E(e,t,r){if(e=(e=A(e)).replace(s,""),!(this instanceof E))return new E(e,t,r);var o,i,l,c,d,f,C=g.slice(),B=typeof t,b=this,k=0;for("object"!==B&&"string"!==B&&(r=t,t=null),r&&"function"!=typeof r&&(r=a.parse),o=!(i=h(e||"",t=p(t))).protocol&&!i.slashes,b.slashes=i.slashes||o&&t.slashes,b.protocol=i.protocol||t.protocol||"",e=i.rest,("file:"===i.protocol&&(2!==i.slashesCount||u.test(e))||!i.slashes&&(i.protocol||i.slashesCount<2||!m(b.protocol)))&&(C[3]=[/(.*)/,"pathname"]);k<C.length;k++)"function"!=typeof(c=C[k])?(l=c[0],f=c[1],l!=l?b[f]=e:"string"==typeof l?~(d="@"===l?e.lastIndexOf(l):e.indexOf(l))&&("number"==typeof c[2]?(b[f]=e.slice(0,d),e=e.slice(d+c[2])):(b[f]=e.slice(d),e=e.slice(0,d))):(d=l.exec(e))&&(b[f]=d[1],e=e.slice(0,d.index)),b[f]=b[f]||o&&c[3]&&t[f]||"",c[4]&&(b[f]=b[f].toLowerCase())):e=c(e,b);r&&(b.query=r(b.query)),o&&t.slashes&&"/"!==b.pathname.charAt(0)&&(""!==b.pathname||""!==t.pathname)&&(b.pathname=function(e,t){if(""===e)return t;for(var r=(t||"/").split("/").slice(0,-1).concat(e.split("/")),n=r.length,a=r[n-1],o=!1,s=0;n--;)"."===r[n]?r.splice(n,1):".."===r[n]?(r.splice(n,1),s++):s&&(0===n&&(o=!0),r.splice(n,1),s--);return o&&r.unshift(""),"."!==a&&".."!==a||r.push(""),r.join("/")}(b.pathname,t.pathname)),"/"!==b.pathname.charAt(0)&&m(b.protocol)&&(b.pathname="/"+b.pathname),n(b.port,b.protocol)||(b.host=b.hostname,b.port=""),b.username=b.password="",b.auth&&(~(d=b.auth.indexOf(":"))?(b.username=b.auth.slice(0,d),b.username=encodeURIComponent(decodeURIComponent(b.username)),b.password=b.auth.slice(d+1),b.password=encodeURIComponent(decodeURIComponent(b.password))):b.username=encodeURIComponent(decodeURIComponent(b.auth)),b.auth=b.password?b.username+":"+b.password:b.username),b.origin="file:"!==b.protocol&&m(b.protocol)&&b.host?b.protocol+"//"+b.host:"null",b.href=b.toString()}E.prototype={set:function(e,t,r){var o=this;switch(e){case"query":"string"==typeof t&&t.length&&(t=(r||a.parse)(t)),o[e]=t;break;case"port":o[e]=t,n(t,o.protocol)?t&&(o.host=o.hostname+":"+t):(o.host=o.hostname,o[e]="");break;case"hostname":o[e]=t,o.port&&(t+=":"+o.port),o.host=t;break;case"host":o[e]=t,l.test(t)?(t=t.split(":"),o.port=t.pop(),o.hostname=t.join(":")):(o.hostname=t,o.port="");break;case"protocol":o.protocol=t.toLowerCase(),o.slashes=!r;break;case"pathname":case"hash":if(t){var s="pathname"===e?"/":"#";o[e]=t.charAt(0)!==s?s+t:t}else o[e]=t;break;case"username":case"password":o[e]=encodeURIComponent(t);break;case"auth":var i=t.indexOf(":");~i?(o.username=t.slice(0,i),o.username=encodeURIComponent(decodeURIComponent(o.username)),o.password=t.slice(i+1),o.password=encodeURIComponent(decodeURIComponent(o.password))):o.username=encodeURIComponent(decodeURIComponent(t))}for(var c=0;c<g.length;c++){var u=g[c];u[4]&&(o[u[1]]=o[u[1]].toLowerCase())}return o.auth=o.password?o.username+":"+o.password:o.username,o.origin="file:"!==o.protocol&&m(o.protocol)&&o.host?o.protocol+"//"+o.host:"null",o.href=o.toString(),o},toString:function(e){e&&"function"==typeof e||(e=a.stringify);var t,r=this,n=r.host,o=r.protocol;o&&":"!==o.charAt(o.length-1)&&(o+=":");var s=o+(r.protocol&&r.slashes||m(r.protocol)?"//":"");return r.username?(s+=r.username,r.password&&(s+=":"+r.password),s+="@"):r.password?(s+=":"+r.password,s+="@"):"file:"!==r.protocol&&m(r.protocol)&&!n&&"/"!==r.pathname&&(s+="@"),(":"===n[n.length-1]||l.test(r.hostname)&&!r.port)&&(n+=":"),s+=n+r.pathname,(t="object"==typeof r.query?e(r.query):r.query)&&(s+="?"!==t.charAt(0)?"?"+t:t),r.hash&&(s+=r.hash),s}},E.extractProtocol=h,E.location=p,E.trimLeft=A,E.qs=a,e.exports=E},36791:(e,t,r)=>{"use strict";e.exports=r.p+"images/jetpack-logo-0869ca6c8490d0aaecca.svg"},26076:(e,t,r)=>{"use strict";e.exports=r.p+"images/loader-0855308317756931a4f5.gif"},72660:(e,t,r)=>{"use strict";e.exports=r.p+"images/eventbrite-in-page-example-47588367313e644097c9.png"},25836:(e,t,r)=>{"use strict";e.exports=r.p+"images/map-preview-0088ca72fca2cbebe7a4.jpg"},93797:(e,t,r)=>{"use strict";e.exports=r.p+"images/map-theme_black_and_white-a33452734cf5f59eb2f9.jpg"},49364:(e,t,r)=>{"use strict";e.exports=r.p+"images/map-theme_black_and_white_mapkit-50e9383d59f6ad6a44ed.jpg"},77971:(e,t,r)=>{"use strict";e.exports=r.p+"images/map-theme_default-d3a324cdc6ff2f461574.jpg"},98430:(e,t,r)=>{"use strict";e.exports=r.p+"images/map-theme_default_mapkit-0ed10cab18f62edff74e.jpg"},27415:(e,t,r)=>{"use strict";e.exports=r.p+"images/map-theme_satellite-58322e843e983f7397b5.jpg"},72386:(e,t,r)=>{"use strict";e.exports=r.p+"images/map-theme_satellite_mapkit-6062205f7c3804fae12c.jpg"},92747:(e,t,r)=>{"use strict";e.exports=r.p+"images/map-theme_terrain-a408b936442d6d33df07.jpg"},11628:(e,t,r)=>{"use strict";e.exports=r.p+"images/paypal-button-2x-4b3170770abd36302540.png"},96411:(e,t,r)=>{"use strict";e.exports=r.p+"images/paypal-button-185a418796b918a5e24b.png"},96374:(e,t,r)=>{"use strict";e.exports=r.p+"images/slideshow_example-1-27620cbeda003e2c71d1.jpg"},88513:(e,t,r)=>{"use strict";e.exports=r.p+"images/slideshow_example-2-cce21819e376a0c6a174.jpg"},98564:(e,t,r)=>{"use strict";e.exports=r.p+"images/slideshow_example-3-9de0a668f5077bab7ece.jpg"},32022:(e,t,r)=>{"use strict";e.exports=r.p+"images/tiled-gallery_example-1-d2817eb0e669267ab3eb.jpg"},2369:(e,t,r)=>{"use strict";e.exports=r.p+"images/tiled-gallery_example-2-78fc061b3eff2af1311b.jpg"},24324:(e,t,r)=>{"use strict";e.exports=r.p+"images/tiled-gallery_example-3-27620cbeda003e2c71d1.jpg"},49263:(e,t,r)=>{"use strict";e.exports=r.p+"images/tiled-gallery_example-4-cce21819e376a0c6a174.jpg"},76882:(e,t,r)=>{"use strict";e.exports=r.p+"images/tiled-gallery_example-5-18efa42161dfe5708046.jpg"},86781:(e,t,r)=>{"use strict";e.exports=r.p+"images/tiled-gallery_example-6-bd61852e61001ce631d7.jpg"},40932:(e,t,r)=>{"use strict";e.exports=r.p+"images/videopress-block-example-image-d7dd9fae6ff49181bfca.jpg"},60651:(e,t,r)=>{"use strict";e.exports=r.p+"images/example_160x600-4df685f9bf14f11d9012.png"},26408:(e,t,r)=>{"use strict";e.exports=r.p+"images/example_300x250-9e27534cd219e940abaf.png"},68364:(e,t,r)=>{"use strict";e.exports=r.p+"images/example_320x50-34c171b9cf96506c8fc4.png"},90244:(e,t,r)=>{"use strict";e.exports=r.p+"images/example_728x90-1a8de274d08ab4d07f48.png"},39384:e=>{"use strict";e.exports=window.JetpackConnection},51609:e=>{"use strict";e.exports=window.React},75795:e=>{"use strict";e.exports=window.ReactDOM},10790:e=>{"use strict";e.exports=window.ReactJSXRuntime},66087:e=>{"use strict";e.exports=window.lodash},76154:e=>{"use strict";e.exports=window.moment},1455:e=>{"use strict";e.exports=window.wp.apiFetch},63162:e=>{"use strict";e.exports=window.wp.blob},94715:e=>{"use strict";e.exports=window.wp.blockEditor},75994:e=>{"use strict";e.exports=window.wp.blockSerializationDefaultParser},74997:e=>{"use strict";e.exports=window.wp.blocks},56427:e=>{"use strict";e.exports=window.wp.components},29491:e=>{"use strict";e.exports=window.wp.compose},3582:e=>{"use strict";e.exports=window.wp.coreData},47143:e=>{"use strict";e.exports=window.wp.data},38443:e=>{"use strict";e.exports=window.wp.date},98490:e=>{"use strict";e.exports=window.wp.domReady},43656:e=>{"use strict";e.exports=window.wp.editor},86087:e=>{"use strict";e.exports=window.wp.element},89877:e=>{"use strict";e.exports=window.wp.escapeHtml},52619:e=>{"use strict";e.exports=window.wp.hooks},27723:e=>{"use strict";e.exports=window.wp.i18n},48558:e=>{"use strict";e.exports=window.wp.keycodes},692:e=>{"use strict";e.exports=window.wp.notices},92279:e=>{"use strict";e.exports=window.wp.plugins},5573:e=>{"use strict";e.exports=window.wp.primitives},36536:e=>{"use strict";e.exports=window.wp.tokenList},93832:e=>{"use strict";e.exports=window.wp.url},26873:e=>{"use strict";e.exports=window.wp.viewport},48588:e=>{"use strict";e.exports=window.wp.widgets},96072:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}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,r)=>{"use strict";function n(e){var t,r,a="";if("string"==typeof e||"number"==typeof e)a+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=n(e[t]))&&(a&&(a+=" "),a+=r)}else for(r in e)e[r]&&(a&&(a+=" "),a+=r);return a}r.d(t,{A:()=>a});const a=function(){for(var e,t,r=0,a="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=n(e))&&(a&&(a+=" "),a+=t);return a}},3175:(e,t,r)=>{"use strict";r.d(t,{Gz:()=>h});var n,a=r(25006),o=r(82826),s=r(72485);!function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"}(n||(n={}));var i,l,c;function u(e){return e>=n.ZERO&&e<=n.NINE}function A(e){return e===n.EQUALS||function(e){return e>=n.UPPER_A&&e<=n.UPPER_Z||e>=n.LOWER_A&&e<=n.LOWER_Z||u(e)}(e)}!function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(i||(i={})),function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"}(l||(l={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"}(c||(c={}));class g{constructor(e,t,r){this.decodeTree=e,this.emitCodePoint=t,this.errors=r,this.state=l.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=c.Strict}startEntity(e){this.decodeMode=e,this.state=l.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case l.EntityStart:return e.charCodeAt(t)===n.NUM?(this.state=l.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=l.NamedEntity,this.stateNamedEntity(e,t));case l.NumericStart:return this.stateNumericStart(e,t);case l.NumericDecimal:return this.stateNumericDecimal(e,t);case l.NumericHex:return this.stateNumericHex(e,t);case l.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===n.LOWER_X?(this.state=l.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=l.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,r,n){if(t!==r){const a=r-t;this.result=this.result*Math.pow(n,a)+parseInt(e.substr(t,a),n),this.consumed+=a}}stateNumericHex(e,t){const r=t;for(;t<e.length;){const o=e.charCodeAt(t);if(!(u(o)||(a=o,a>=n.UPPER_A&&a<=n.UPPER_F||a>=n.LOWER_A&&a<=n.LOWER_F)))return this.addToNumericResult(e,r,t,16),this.emitNumericEntity(o,3);t+=1}var a;return this.addToNumericResult(e,r,t,16),-1}stateNumericDecimal(e,t){const r=t;for(;t<e.length;){const n=e.charCodeAt(t);if(!u(n))return this.addToNumericResult(e,r,t,10),this.emitNumericEntity(n,2);t+=1}return this.addToNumericResult(e,r,t,10),-1}emitNumericEntity(e,t){var r;if(this.consumed<=t)return null===(r=this.errors)||void 0===r||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===n.SEMI)this.consumed+=1;else if(this.decodeMode===c.Strict)return 0;return this.emitCodePoint((0,s.y6)(this.result),this.consumed),this.errors&&(e!==n.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){const{decodeTree:r}=this;let a=r[this.treeIndex],o=(a&i.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){const s=e.charCodeAt(t);if(this.treeIndex=p(r,a,this.treeIndex+Math.max(1,o),s),this.treeIndex<0)return 0===this.result||this.decodeMode===c.Attribute&&(0===o||A(s))?0:this.emitNotTerminatedNamedEntity();if(a=r[this.treeIndex],o=(a&i.VALUE_LENGTH)>>14,0!==o){if(s===n.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==c.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:t,decodeTree:r}=this,n=(r[t]&i.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,n,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,r){const{decodeTree:n}=this;return this.emitCodePoint(1===t?n[e]&~i.VALUE_LENGTH:n[e+1],r),3===t&&this.emitCodePoint(n[e+2],r),r}end(){var e;switch(this.state){case l.NamedEntity:return 0===this.result||this.decodeMode===c.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case l.NumericDecimal:return this.emitNumericEntity(0,2);case l.NumericHex:return this.emitNumericEntity(0,3);case l.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case l.EntityStart:return 0}}}function d(e){let t="";const r=new g(e,(e=>t+=(0,s.MK)(e)));return function(e,n){let a=0,o=0;for(;(o=e.indexOf("&",o))>=0;){t+=e.slice(a,o),r.startEntity(n);const s=r.write(e,o+1);if(s<0){a=o+r.end();break}a=o+s,o=0===s?a+1:a}const s=t+e.slice(a);return t="",s}}function p(e,t,r,n){const a=(t&i.BRANCH_LENGTH)>>7,o=t&i.JUMP_TABLE;if(0===a)return 0!==o&&n===o?r:-1;if(o){const t=n-o;return t<0||t>=a?-1:e[r+t]-1}let s=r,l=s+a-1;for(;s<=l;){const t=s+l>>>1,r=e[t];if(r<n)s=t+1;else{if(!(r>n))return e[t+a];l=t-1}}return-1}const m=d(a.A);d(o.A);function h(e,t=c.Legacy){return m(e,t)}},72485:(e,t,r)=>{"use strict";var n;r.d(t,{MK:()=>o,y6:()=>s});const a=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),o=null!==(n=String.fromCodePoint)&&void 0!==n?n:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e),t};function s(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=a.get(e))&&void 0!==t?t:e}},97187:(e,t,r)=>{"use strict";r(47431),r(26834)},26834:(e,t,r)=>{"use strict";const n=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);String.prototype.codePointAt;function a(e,t){return function(r){let n,a=0,o="";for(;n=e.exec(r);)a!==n.index&&(o+=r.substring(a,n.index)),o+=t.get(n[0].charCodeAt(0)),a=n.index+1;return o+r.substring(a)}}a(/[&<>'"]/g,n),a(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),a(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]))},25006:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((e=>e.charCodeAt(0))))},82826:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((e=>e.charCodeAt(0))))},47431:()=>{"use strict";function e(e){for(let t=1;t<e.length;t++)e[t][0]+=e[t-1][0]+1;return e}new Map(e([[9,"	"],[0,"
"],[22,"!"],[0,"""],[0,"#"],[0,"$"],[0,"%"],[0,"&"],[0,"'"],[0,"("],[0,")"],[0,"*"],[0,"+"],[0,","],[1,"."],[0,"/"],[10,":"],[0,";"],[0,{v:"<",n:8402,o:"<⃒"}],[0,{v:"=",n:8421,o:"=⃥"}],[0,{v:">",n:8402,o:">⃒"}],[0,"?"],[0,"@"],[26,"["],[0,"\"],[0,"]"],[0,"^"],[0,"_"],[0,"`"],[5,{n:106,o:"fj"}],[20,"{"],[0,"|"],[0,"}"],[34," "],[0,"¡"],[0,"¢"],[0,"£"],[0,"¤"],[0,"¥"],[0,"¦"],[0,"§"],[0,"¨"],[0,"©"],[0,"ª"],[0,"«"],[0,"¬"],[0,"­"],[0,"®"],[0,"¯"],[0,"°"],[0,"±"],[0,"²"],[0,"³"],[0,"´"],[0,"µ"],[0,"¶"],[0,"·"],[0,"¸"],[0,"¹"],[0,"º"],[0,"»"],[0,"¼"],[0,"½"],[0,"¾"],[0,"¿"],[0,"À"],[0,"Á"],[0,"Â"],[0,"Ã"],[0,"Ä"],[0,"Å"],[0,"Æ"],[0,"Ç"],[0,"È"],[0,"É"],[0,"Ê"],[0,"Ë"],[0,"Ì"],[0,"Í"],[0,"Î"],[0,"Ï"],[0,"Ð"],[0,"Ñ"],[0,"Ò"],[0,"Ó"],[0,"Ô"],[0,"Õ"],[0,"Ö"],[0,"×"],[0,"Ø"],[0,"Ù"],[0,"Ú"],[0,"Û"],[0,"Ü"],[0,"Ý"],[0,"Þ"],[0,"ß"],[0,"à"],[0,"á"],[0,"â"],[0,"ã"],[0,"ä"],[0,"å"],[0,"æ"],[0,"ç"],[0,"è"],[0,"é"],[0,"ê"],[0,"ë"],[0,"ì"],[0,"í"],[0,"î"],[0,"ï"],[0,"ð"],[0,"ñ"],[0,"ò"],[0,"ó"],[0,"ô"],[0,"õ"],[0,"ö"],[0,"÷"],[0,"ø"],[0,"ù"],[0,"ú"],[0,"û"],[0,"ü"],[0,"ý"],[0,"þ"],[0,"ÿ"],[0,"Ā"],[0,"ā"],[0,"Ă"],[0,"ă"],[0,"Ą"],[0,"ą"],[0,"Ć"],[0,"ć"],[0,"Ĉ"],[0,"ĉ"],[0,"Ċ"],[0,"ċ"],[0,"Č"],[0,"č"],[0,"Ď"],[0,"ď"],[0,"Đ"],[0,"đ"],[0,"Ē"],[0,"ē"],[2,"Ė"],[0,"ė"],[0,"Ę"],[0,"ę"],[0,"Ě"],[0,"ě"],[0,"Ĝ"],[0,"ĝ"],[0,"Ğ"],[0,"ğ"],[0,"Ġ"],[0,"ġ"],[0,"Ģ"],[1,"Ĥ"],[0,"ĥ"],[0,"Ħ"],[0,"ħ"],[0,"Ĩ"],[0,"ĩ"],[0,"Ī"],[0,"ī"],[2,"Į"],[0,"į"],[0,"İ"],[0,"ı"],[0,"IJ"],[0,"ij"],[0,"Ĵ"],[0,"ĵ"],[0,"Ķ"],[0,"ķ"],[0,"ĸ"],[0,"Ĺ"],[0,"ĺ"],[0,"Ļ"],[0,"ļ"],[0,"Ľ"],[0,"ľ"],[0,"Ŀ"],[0,"ŀ"],[0,"Ł"],[0,"ł"],[0,"Ń"],[0,"ń"],[0,"Ņ"],[0,"ņ"],[0,"Ň"],[0,"ň"],[0,"ʼn"],[0,"Ŋ"],[0,"ŋ"],[0,"Ō"],[0,"ō"],[2,"Ő"],[0,"ő"],[0,"Œ"],[0,"œ"],[0,"Ŕ"],[0,"ŕ"],[0,"Ŗ"],[0,"ŗ"],[0,"Ř"],[0,"ř"],[0,"Ś"],[0,"ś"],[0,"Ŝ"],[0,"ŝ"],[0,"Ş"],[0,"ş"],[0,"Š"],[0,"š"],[0,"Ţ"],[0,"ţ"],[0,"Ť"],[0,"ť"],[0,"Ŧ"],[0,"ŧ"],[0,"Ũ"],[0,"ũ"],[0,"Ū"],[0,"ū"],[0,"Ŭ"],[0,"ŭ"],[0,"Ů"],[0,"ů"],[0,"Ű"],[0,"ű"],[0,"Ų"],[0,"ų"],[0,"Ŵ"],[0,"ŵ"],[0,"Ŷ"],[0,"ŷ"],[0,"Ÿ"],[0,"Ź"],[0,"ź"],[0,"Ż"],[0,"ż"],[0,"Ž"],[0,"ž"],[19,"ƒ"],[34,"Ƶ"],[63,"ǵ"],[65,"ȷ"],[142,"ˆ"],[0,"ˇ"],[16,"˘"],[0,"˙"],[0,"˚"],[0,"˛"],[0,"˜"],[0,"˝"],[51,"̑"],[127,"Α"],[0,"Β"],[0,"Γ"],[0,"Δ"],[0,"Ε"],[0,"Ζ"],[0,"Η"],[0,"Θ"],[0,"Ι"],[0,"Κ"],[0,"Λ"],[0,"Μ"],[0,"Ν"],[0,"Ξ"],[0,"Ο"],[0,"Π"],[0,"Ρ"],[1,"Σ"],[0,"Τ"],[0,"Υ"],[0,"Φ"],[0,"Χ"],[0,"Ψ"],[0,"Ω"],[7,"α"],[0,"β"],[0,"γ"],[0,"δ"],[0,"ε"],[0,"ζ"],[0,"η"],[0,"θ"],[0,"ι"],[0,"κ"],[0,"λ"],[0,"μ"],[0,"ν"],[0,"ξ"],[0,"ο"],[0,"π"],[0,"ρ"],[0,"ς"],[0,"σ"],[0,"τ"],[0,"υ"],[0,"φ"],[0,"χ"],[0,"ψ"],[0,"ω"],[7,"ϑ"],[0,"ϒ"],[2,"ϕ"],[0,"ϖ"],[5,"Ϝ"],[0,"ϝ"],[18,"ϰ"],[0,"ϱ"],[3,"ϵ"],[0,"϶"],[10,"Ё"],[0,"Ђ"],[0,"Ѓ"],[0,"Є"],[0,"Ѕ"],[0,"І"],[0,"Ї"],[0,"Ј"],[0,"Љ"],[0,"Њ"],[0,"Ћ"],[0,"Ќ"],[1,"Ў"],[0,"Џ"],[0,"А"],[0,"Б"],[0,"В"],[0,"Г"],[0,"Д"],[0,"Е"],[0,"Ж"],[0,"З"],[0,"И"],[0,"Й"],[0,"К"],[0,"Л"],[0,"М"],[0,"Н"],[0,"О"],[0,"П"],[0,"Р"],[0,"С"],[0,"Т"],[0,"У"],[0,"Ф"],[0,"Х"],[0,"Ц"],[0,"Ч"],[0,"Ш"],[0,"Щ"],[0,"Ъ"],[0,"Ы"],[0,"Ь"],[0,"Э"],[0,"Ю"],[0,"Я"],[0,"а"],[0,"б"],[0,"в"],[0,"г"],[0,"д"],[0,"е"],[0,"ж"],[0,"з"],[0,"и"],[0,"й"],[0,"к"],[0,"л"],[0,"м"],[0,"н"],[0,"о"],[0,"п"],[0,"р"],[0,"с"],[0,"т"],[0,"у"],[0,"ф"],[0,"х"],[0,"ц"],[0,"ч"],[0,"ш"],[0,"щ"],[0,"ъ"],[0,"ы"],[0,"ь"],[0,"э"],[0,"ю"],[0,"я"],[1,"ё"],[0,"ђ"],[0,"ѓ"],[0,"є"],[0,"ѕ"],[0,"і"],[0,"ї"],[0,"ј"],[0,"љ"],[0,"њ"],[0,"ћ"],[0,"ќ"],[1,"ў"],[0,"џ"],[7074," "],[0," "],[0," "],[0," "],[1," "],[0," "],[0," "],[0," "],[0,"​"],[0,"‌"],[0,"‍"],[0,"‎"],[0,"‏"],[0,"‐"],[2,"–"],[0,"—"],[0,"―"],[0,"‖"],[1,"‘"],[0,"’"],[0,"‚"],[1,"“"],[0,"”"],[0,"„"],[1,"†"],[0,"‡"],[0,"•"],[2,"‥"],[0,"…"],[9,"‰"],[0,"‱"],[0,"′"],[0,"″"],[0,"‴"],[0,"‵"],[3,"‹"],[0,"›"],[3,"‾"],[2,"⁁"],[1,"⁃"],[0,"⁄"],[10,"⁏"],[7,"⁗"],[7,{v:" ",n:8202,o:"  "}],[0,"⁠"],[0,"⁡"],[0,"⁢"],[0,"⁣"],[72,"€"],[46,"⃛"],[0,"⃜"],[37,"ℂ"],[2,"℅"],[4,"ℊ"],[0,"ℋ"],[0,"ℌ"],[0,"ℍ"],[0,"ℎ"],[0,"ℏ"],[0,"ℐ"],[0,"ℑ"],[0,"ℒ"],[0,"ℓ"],[1,"ℕ"],[0,"№"],[0,"℗"],[0,"℘"],[0,"ℙ"],[0,"ℚ"],[0,"ℛ"],[0,"ℜ"],[0,"ℝ"],[0,"℞"],[3,"™"],[1,"ℤ"],[2,"℧"],[0,"ℨ"],[0,"℩"],[2,"ℬ"],[0,"ℭ"],[1,"ℯ"],[0,"ℰ"],[0,"ℱ"],[1,"ℳ"],[0,"ℴ"],[0,"ℵ"],[0,"ℶ"],[0,"ℷ"],[0,"ℸ"],[12,"ⅅ"],[0,"ⅆ"],[0,"ⅇ"],[0,"ⅈ"],[10,"⅓"],[0,"⅔"],[0,"⅕"],[0,"⅖"],[0,"⅗"],[0,"⅘"],[0,"⅙"],[0,"⅚"],[0,"⅛"],[0,"⅜"],[0,"⅝"],[0,"⅞"],[49,"←"],[0,"↑"],[0,"→"],[0,"↓"],[0,"↔"],[0,"↕"],[0,"↖"],[0,"↗"],[0,"↘"],[0,"↙"],[0,"↚"],[0,"↛"],[1,{v:"↝",n:824,o:"↝̸"}],[0,"↞"],[0,"↟"],[0,"↠"],[0,"↡"],[0,"↢"],[0,"↣"],[0,"↤"],[0,"↥"],[0,"↦"],[0,"↧"],[1,"↩"],[0,"↪"],[0,"↫"],[0,"↬"],[0,"↭"],[0,"↮"],[1,"↰"],[0,"↱"],[0,"↲"],[0,"↳"],[1,"↵"],[0,"↶"],[0,"↷"],[2,"↺"],[0,"↻"],[0,"↼"],[0,"↽"],[0,"↾"],[0,"↿"],[0,"⇀"],[0,"⇁"],[0,"⇂"],[0,"⇃"],[0,"⇄"],[0,"⇅"],[0,"⇆"],[0,"⇇"],[0,"⇈"],[0,"⇉"],[0,"⇊"],[0,"⇋"],[0,"⇌"],[0,"⇍"],[0,"⇎"],[0,"⇏"],[0,"⇐"],[0,"⇑"],[0,"⇒"],[0,"⇓"],[0,"⇔"],[0,"⇕"],[0,"⇖"],[0,"⇗"],[0,"⇘"],[0,"⇙"],[0,"⇚"],[0,"⇛"],[1,"⇝"],[6,"⇤"],[0,"⇥"],[15,"⇵"],[7,"⇽"],[0,"⇾"],[0,"⇿"],[0,"∀"],[0,"∁"],[0,{v:"∂",n:824,o:"∂̸"}],[0,"∃"],[0,"∄"],[0,"∅"],[1,"∇"],[0,"∈"],[0,"∉"],[1,"∋"],[0,"∌"],[2,"∏"],[0,"∐"],[0,"∑"],[0,"−"],[0,"∓"],[0,"∔"],[1,"∖"],[0,"∗"],[0,"∘"],[1,"√"],[2,"∝"],[0,"∞"],[0,"∟"],[0,{v:"∠",n:8402,o:"∠⃒"}],[0,"∡"],[0,"∢"],[0,"∣"],[0,"∤"],[0,"∥"],[0,"∦"],[0,"∧"],[0,"∨"],[0,{v:"∩",n:65024,o:"∩︀"}],[0,{v:"∪",n:65024,o:"∪︀"}],[0,"∫"],[0,"∬"],[0,"∭"],[0,"∮"],[0,"∯"],[0,"∰"],[0,"∱"],[0,"∲"],[0,"∳"],[0,"∴"],[0,"∵"],[0,"∶"],[0,"∷"],[0,"∸"],[1,"∺"],[0,"∻"],[0,{v:"∼",n:8402,o:"∼⃒"}],[0,{v:"∽",n:817,o:"∽̱"}],[0,{v:"∾",n:819,o:"∾̳"}],[0,"∿"],[0,"≀"],[0,"≁"],[0,{v:"≂",n:824,o:"≂̸"}],[0,"≃"],[0,"≄"],[0,"≅"],[0,"≆"],[0,"≇"],[0,"≈"],[0,"≉"],[0,"≊"],[0,{v:"≋",n:824,o:"≋̸"}],[0,"≌"],[0,{v:"≍",n:8402,o:"≍⃒"}],[0,{v:"≎",n:824,o:"≎̸"}],[0,{v:"≏",n:824,o:"≏̸"}],[0,{v:"≐",n:824,o:"≐̸"}],[0,"≑"],[0,"≒"],[0,"≓"],[0,"≔"],[0,"≕"],[0,"≖"],[0,"≗"],[1,"≙"],[0,"≚"],[1,"≜"],[2,"≟"],[0,"≠"],[0,{v:"≡",n:8421,o:"≡⃥"}],[0,"≢"],[1,{v:"≤",n:8402,o:"≤⃒"}],[0,{v:"≥",n:8402,o:"≥⃒"}],[0,{v:"≦",n:824,o:"≦̸"}],[0,{v:"≧",n:824,o:"≧̸"}],[0,{v:"≨",n:65024,o:"≨︀"}],[0,{v:"≩",n:65024,o:"≩︀"}],[0,{v:"≪",n:new Map(e([[824,"≪̸"],[7577,"≪⃒"]]))}],[0,{v:"≫",n:new Map(e([[824,"≫̸"],[7577,"≫⃒"]]))}],[0,"≬"],[0,"≭"],[0,"≮"],[0,"≯"],[0,"≰"],[0,"≱"],[0,"≲"],[0,"≳"],[0,"≴"],[0,"≵"],[0,"≶"],[0,"≷"],[0,"≸"],[0,"≹"],[0,"≺"],[0,"≻"],[0,"≼"],[0,"≽"],[0,"≾"],[0,{v:"≿",n:824,o:"≿̸"}],[0,"⊀"],[0,"⊁"],[0,{v:"⊂",n:8402,o:"⊂⃒"}],[0,{v:"⊃",n:8402,o:"⊃⃒"}],[0,"⊄"],[0,"⊅"],[0,"⊆"],[0,"⊇"],[0,"⊈"],[0,"⊉"],[0,{v:"⊊",n:65024,o:"⊊︀"}],[0,{v:"⊋",n:65024,o:"⊋︀"}],[1,"⊍"],[0,"⊎"],[0,{v:"⊏",n:824,o:"⊏̸"}],[0,{v:"⊐",n:824,o:"⊐̸"}],[0,"⊑"],[0,"⊒"],[0,{v:"⊓",n:65024,o:"⊓︀"}],[0,{v:"⊔",n:65024,o:"⊔︀"}],[0,"⊕"],[0,"⊖"],[0,"⊗"],[0,"⊘"],[0,"⊙"],[0,"⊚"],[0,"⊛"],[1,"⊝"],[0,"⊞"],[0,"⊟"],[0,"⊠"],[0,"⊡"],[0,"⊢"],[0,"⊣"],[0,"⊤"],[0,"⊥"],[1,"⊧"],[0,"⊨"],[0,"⊩"],[0,"⊪"],[0,"⊫"],[0,"⊬"],[0,"⊭"],[0,"⊮"],[0,"⊯"],[0,"⊰"],[1,"⊲"],[0,"⊳"],[0,{v:"⊴",n:8402,o:"⊴⃒"}],[0,{v:"⊵",n:8402,o:"⊵⃒"}],[0,"⊶"],[0,"⊷"],[0,"⊸"],[0,"⊹"],[0,"⊺"],[0,"⊻"],[1,"⊽"],[0,"⊾"],[0,"⊿"],[0,"⋀"],[0,"⋁"],[0,"⋂"],[0,"⋃"],[0,"⋄"],[0,"⋅"],[0,"⋆"],[0,"⋇"],[0,"⋈"],[0,"⋉"],[0,"⋊"],[0,"⋋"],[0,"⋌"],[0,"⋍"],[0,"⋎"],[0,"⋏"],[0,"⋐"],[0,"⋑"],[0,"⋒"],[0,"⋓"],[0,"⋔"],[0,"⋕"],[0,"⋖"],[0,"⋗"],[0,{v:"⋘",n:824,o:"⋘̸"}],[0,{v:"⋙",n:824,o:"⋙̸"}],[0,{v:"⋚",n:65024,o:"⋚︀"}],[0,{v:"⋛",n:65024,o:"⋛︀"}],[2,"⋞"],[0,"⋟"],[0,"⋠"],[0,"⋡"],[0,"⋢"],[0,"⋣"],[2,"⋦"],[0,"⋧"],[0,"⋨"],[0,"⋩"],[0,"⋪"],[0,"⋫"],[0,"⋬"],[0,"⋭"],[0,"⋮"],[0,"⋯"],[0,"⋰"],[0,"⋱"],[0,"⋲"],[0,"⋳"],[0,"⋴"],[0,{v:"⋵",n:824,o:"⋵̸"}],[0,"⋶"],[0,"⋷"],[1,{v:"⋹",n:824,o:"⋹̸"}],[0,"⋺"],[0,"⋻"],[0,"⋼"],[0,"⋽"],[0,"⋾"],[6,"⌅"],[0,"⌆"],[1,"⌈"],[0,"⌉"],[0,"⌊"],[0,"⌋"],[0,"⌌"],[0,"⌍"],[0,"⌎"],[0,"⌏"],[0,"⌐"],[1,"⌒"],[0,"⌓"],[1,"⌕"],[0,"⌖"],[5,"⌜"],[0,"⌝"],[0,"⌞"],[0,"⌟"],[2,"⌢"],[0,"⌣"],[9,"⌭"],[0,"⌮"],[7,"⌶"],[6,"⌽"],[1,"⌿"],[60,"⍼"],[51,"⎰"],[0,"⎱"],[2,"⎴"],[0,"⎵"],[0,"⎶"],[37,"⏜"],[0,"⏝"],[0,"⏞"],[0,"⏟"],[2,"⏢"],[4,"⏧"],[59,"␣"],[164,"Ⓢ"],[55,"─"],[1,"│"],[9,"┌"],[3,"┐"],[3,"└"],[3,"┘"],[3,"├"],[7,"┤"],[7,"┬"],[7,"┴"],[7,"┼"],[19,"═"],[0,"║"],[0,"╒"],[0,"╓"],[0,"╔"],[0,"╕"],[0,"╖"],[0,"╗"],[0,"╘"],[0,"╙"],[0,"╚"],[0,"╛"],[0,"╜"],[0,"╝"],[0,"╞"],[0,"╟"],[0,"╠"],[0,"╡"],[0,"╢"],[0,"╣"],[0,"╤"],[0,"╥"],[0,"╦"],[0,"╧"],[0,"╨"],[0,"╩"],[0,"╪"],[0,"╫"],[0,"╬"],[19,"▀"],[3,"▄"],[3,"█"],[8,"░"],[0,"▒"],[0,"▓"],[13,"□"],[8,"▪"],[0,"▫"],[1,"▭"],[0,"▮"],[2,"▱"],[1,"△"],[0,"▴"],[0,"▵"],[2,"▸"],[0,"▹"],[3,"▽"],[0,"▾"],[0,"▿"],[2,"◂"],[0,"◃"],[6,"◊"],[0,"○"],[32,"◬"],[2,"◯"],[8,"◸"],[0,"◹"],[0,"◺"],[0,"◻"],[0,"◼"],[8,"★"],[0,"☆"],[7,"☎"],[49,"♀"],[1,"♂"],[29,"♠"],[2,"♣"],[1,"♥"],[0,"♦"],[3,"♪"],[2,"♭"],[0,"♮"],[0,"♯"],[163,"✓"],[3,"✗"],[8,"✠"],[21,"✶"],[33,"❘"],[25,"❲"],[0,"❳"],[84,"⟈"],[0,"⟉"],[28,"⟦"],[0,"⟧"],[0,"⟨"],[0,"⟩"],[0,"⟪"],[0,"⟫"],[0,"⟬"],[0,"⟭"],[7,"⟵"],[0,"⟶"],[0,"⟷"],[0,"⟸"],[0,"⟹"],[0,"⟺"],[1,"⟼"],[2,"⟿"],[258,"⤂"],[0,"⤃"],[0,"⤄"],[0,"⤅"],[6,"⤌"],[0,"⤍"],[0,"⤎"],[0,"⤏"],[0,"⤐"],[0,"⤑"],[0,"⤒"],[0,"⤓"],[2,"⤖"],[2,"⤙"],[0,"⤚"],[0,"⤛"],[0,"⤜"],[0,"⤝"],[0,"⤞"],[0,"⤟"],[0,"⤠"],[2,"⤣"],[0,"⤤"],[0,"⤥"],[0,"⤦"],[0,"⤧"],[0,"⤨"],[0,"⤩"],[0,"⤪"],[8,{v:"⤳",n:824,o:"⤳̸"}],[1,"⤵"],[0,"⤶"],[0,"⤷"],[0,"⤸"],[0,"⤹"],[2,"⤼"],[0,"⤽"],[7,"⥅"],[2,"⥈"],[0,"⥉"],[0,"⥊"],[0,"⥋"],[2,"⥎"],[0,"⥏"],[0,"⥐"],[0,"⥑"],[0,"⥒"],[0,"⥓"],[0,"⥔"],[0,"⥕"],[0,"⥖"],[0,"⥗"],[0,"⥘"],[0,"⥙"],[0,"⥚"],[0,"⥛"],[0,"⥜"],[0,"⥝"],[0,"⥞"],[0,"⥟"],[0,"⥠"],[0,"⥡"],[0,"⥢"],[0,"⥣"],[0,"⥤"],[0,"⥥"],[0,"⥦"],[0,"⥧"],[0,"⥨"],[0,"⥩"],[0,"⥪"],[0,"⥫"],[0,"⥬"],[0,"⥭"],[0,"⥮"],[0,"⥯"],[0,"⥰"],[0,"⥱"],[0,"⥲"],[0,"⥳"],[0,"⥴"],[0,"⥵"],[0,"⥶"],[1,"⥸"],[0,"⥹"],[1,"⥻"],[0,"⥼"],[0,"⥽"],[0,"⥾"],[0,"⥿"],[5,"⦅"],[0,"⦆"],[4,"⦋"],[0,"⦌"],[0,"⦍"],[0,"⦎"],[0,"⦏"],[0,"⦐"],[0,"⦑"],[0,"⦒"],[0,"⦓"],[0,"⦔"],[0,"⦕"],[0,"⦖"],[3,"⦚"],[1,"⦜"],[0,"⦝"],[6,"⦤"],[0,"⦥"],[0,"⦦"],[0,"⦧"],[0,"⦨"],[0,"⦩"],[0,"⦪"],[0,"⦫"],[0,"⦬"],[0,"⦭"],[0,"⦮"],[0,"⦯"],[0,"⦰"],[0,"⦱"],[0,"⦲"],[0,"⦳"],[0,"⦴"],[0,"⦵"],[0,"⦶"],[0,"⦷"],[1,"⦹"],[1,"⦻"],[0,"⦼"],[1,"⦾"],[0,"⦿"],[0,"⧀"],[0,"⧁"],[0,"⧂"],[0,"⧃"],[0,"⧄"],[0,"⧅"],[3,"⧉"],[3,"⧍"],[0,"⧎"],[0,{v:"⧏",n:824,o:"⧏̸"}],[0,{v:"⧐",n:824,o:"⧐̸"}],[11,"⧜"],[0,"⧝"],[0,"⧞"],[4,"⧣"],[0,"⧤"],[0,"⧥"],[5,"⧫"],[8,"⧴"],[1,"⧶"],[9,"⨀"],[0,"⨁"],[0,"⨂"],[1,"⨄"],[1,"⨆"],[5,"⨌"],[0,"⨍"],[2,"⨐"],[0,"⨑"],[0,"⨒"],[0,"⨓"],[0,"⨔"],[0,"⨕"],[0,"⨖"],[0,"⨗"],[10,"⨢"],[0,"⨣"],[0,"⨤"],[0,"⨥"],[0,"⨦"],[0,"⨧"],[1,"⨩"],[0,"⨪"],[2,"⨭"],[0,"⨮"],[0,"⨯"],[0,"⨰"],[0,"⨱"],[1,"⨳"],[0,"⨴"],[0,"⨵"],[0,"⨶"],[0,"⨷"],[0,"⨸"],[0,"⨹"],[0,"⨺"],[0,"⨻"],[0,"⨼"],[2,"⨿"],[0,"⩀"],[1,"⩂"],[0,"⩃"],[0,"⩄"],[0,"⩅"],[0,"⩆"],[0,"⩇"],[0,"⩈"],[0,"⩉"],[0,"⩊"],[0,"⩋"],[0,"⩌"],[0,"⩍"],[2,"⩐"],[2,"⩓"],[0,"⩔"],[0,"⩕"],[0,"⩖"],[0,"⩗"],[0,"⩘"],[1,"⩚"],[0,"⩛"],[0,"⩜"],[0,"⩝"],[1,"⩟"],[6,"⩦"],[3,"⩪"],[2,{v:"⩭",n:824,o:"⩭̸"}],[0,"⩮"],[0,"⩯"],[0,{v:"⩰",n:824,o:"⩰̸"}],[0,"⩱"],[0,"⩲"],[0,"⩳"],[0,"⩴"],[0,"⩵"],[1,"⩷"],[0,"⩸"],[0,"⩹"],[0,"⩺"],[0,"⩻"],[0,"⩼"],[0,{v:"⩽",n:824,o:"⩽̸"}],[0,{v:"⩾",n:824,o:"⩾̸"}],[0,"⩿"],[0,"⪀"],[0,"⪁"],[0,"⪂"],[0,"⪃"],[0,"⪄"],[0,"⪅"],[0,"⪆"],[0,"⪇"],[0,"⪈"],[0,"⪉"],[0,"⪊"],[0,"⪋"],[0,"⪌"],[0,"⪍"],[0,"⪎"],[0,"⪏"],[0,"⪐"],[0,"⪑"],[0,"⪒"],[0,"⪓"],[0,"⪔"],[0,"⪕"],[0,"⪖"],[0,"⪗"],[0,"⪘"],[0,"⪙"],[0,"⪚"],[2,"⪝"],[0,"⪞"],[0,"⪟"],[0,"⪠"],[0,{v:"⪡",n:824,o:"⪡̸"}],[0,{v:"⪢",n:824,o:"⪢̸"}],[1,"⪤"],[0,"⪥"],[0,"⪦"],[0,"⪧"],[0,"⪨"],[0,"⪩"],[0,"⪪"],[0,"⪫"],[0,{v:"⪬",n:65024,o:"⪬︀"}],[0,{v:"⪭",n:65024,o:"⪭︀"}],[0,"⪮"],[0,{v:"⪯",n:824,o:"⪯̸"}],[0,{v:"⪰",n:824,o:"⪰̸"}],[2,"⪳"],[0,"⪴"],[0,"⪵"],[0,"⪶"],[0,"⪷"],[0,"⪸"],[0,"⪹"],[0,"⪺"],[0,"⪻"],[0,"⪼"],[0,"⪽"],[0,"⪾"],[0,"⪿"],[0,"⫀"],[0,"⫁"],[0,"⫂"],[0,"⫃"],[0,"⫄"],[0,{v:"⫅",n:824,o:"⫅̸"}],[0,{v:"⫆",n:824,o:"⫆̸"}],[0,"⫇"],[0,"⫈"],[2,{v:"⫋",n:65024,o:"⫋︀"}],[0,{v:"⫌",n:65024,o:"⫌︀"}],[2,"⫏"],[0,"⫐"],[0,"⫑"],[0,"⫒"],[0,"⫓"],[0,"⫔"],[0,"⫕"],[0,"⫖"],[0,"⫗"],[0,"⫘"],[0,"⫙"],[0,"⫚"],[0,"⫛"],[8,"⫤"],[1,"⫦"],[0,"⫧"],[0,"⫨"],[0,"⫩"],[1,"⫫"],[0,"⫬"],[0,"⫭"],[0,"⫮"],[0,"⫯"],[0,"⫰"],[0,"⫱"],[0,"⫲"],[0,"⫳"],[9,{v:"⫽",n:8421,o:"⫽⃥"}],[44343,{n:new Map(e([[56476,"𝒜"],[1,"𝒞"],[0,"𝒟"],[2,"𝒢"],[2,"𝒥"],[0,"𝒦"],[2,"𝒩"],[0,"𝒪"],[0,"𝒫"],[0,"𝒬"],[1,"𝒮"],[0,"𝒯"],[0,"𝒰"],[0,"𝒱"],[0,"𝒲"],[0,"𝒳"],[0,"𝒴"],[0,"𝒵"],[0,"𝒶"],[0,"𝒷"],[0,"𝒸"],[0,"𝒹"],[1,"𝒻"],[1,"𝒽"],[0,"𝒾"],[0,"𝒿"],[0,"𝓀"],[0,"𝓁"],[0,"𝓂"],[0,"𝓃"],[1,"𝓅"],[0,"𝓆"],[0,"𝓇"],[0,"𝓈"],[0,"𝓉"],[0,"𝓊"],[0,"𝓋"],[0,"𝓌"],[0,"𝓍"],[0,"𝓎"],[0,"𝓏"],[52,"𝔄"],[0,"𝔅"],[1,"𝔇"],[0,"𝔈"],[0,"𝔉"],[0,"𝔊"],[2,"𝔍"],[0,"𝔎"],[0,"𝔏"],[0,"𝔐"],[0,"𝔑"],[0,"𝔒"],[0,"𝔓"],[0,"𝔔"],[1,"𝔖"],[0,"𝔗"],[0,"𝔘"],[0,"𝔙"],[0,"𝔚"],[0,"𝔛"],[0,"𝔜"],[1,"𝔞"],[0,"𝔟"],[0,"𝔠"],[0,"𝔡"],[0,"𝔢"],[0,"𝔣"],[0,"𝔤"],[0,"𝔥"],[0,"𝔦"],[0,"𝔧"],[0,"𝔨"],[0,"𝔩"],[0,"𝔪"],[0,"𝔫"],[0,"𝔬"],[0,"𝔭"],[0,"𝔮"],[0,"𝔯"],[0,"𝔰"],[0,"𝔱"],[0,"𝔲"],[0,"𝔳"],[0,"𝔴"],[0,"𝔵"],[0,"𝔶"],[0,"𝔷"],[0,"𝔸"],[0,"𝔹"],[1,"𝔻"],[0,"𝔼"],[0,"𝔽"],[0,"𝔾"],[1,"𝕀"],[0,"𝕁"],[0,"𝕂"],[0,"𝕃"],[0,"𝕄"],[1,"𝕆"],[3,"𝕊"],[0,"𝕋"],[0,"𝕌"],[0,"𝕍"],[0,"𝕎"],[0,"𝕏"],[0,"𝕐"],[1,"𝕒"],[0,"𝕓"],[0,"𝕔"],[0,"𝕕"],[0,"𝕖"],[0,"𝕗"],[0,"𝕘"],[0,"𝕙"],[0,"𝕚"],[0,"𝕛"],[0,"𝕜"],[0,"𝕝"],[0,"𝕞"],[0,"𝕟"],[0,"𝕠"],[0,"𝕡"],[0,"𝕢"],[0,"𝕣"],[0,"𝕤"],[0,"𝕥"],[0,"𝕦"],[0,"𝕧"],[0,"𝕨"],[0,"𝕩"],[0,"𝕪"],[0,"𝕫"]]))}],[8906,"ff"],[0,"fi"],[0,"fl"],[0,"ffi"],[0,"ffl"]]))},9405:(e,t,r)=>{"use strict";r.d(t,{Gz:()=>o.Gz});var n,a,o=r(3175);r(97187),r(26834);!function(e){e[e.XML=0]="XML",e[e.HTML=1]="HTML"}(n||(n={})),function(e){e[e.UTF8=0]="UTF8",e[e.ASCII=1]="ASCII",e[e.Extensive=2]="Extensive",e[e.Attribute=3]="Attribute",e[e.Text=4]="Text"}(a||(a={}))},7237:(e,t,r)=>{"use strict";r.d(t,{A:()=>m});var n=r(30724);function a(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){t&&Object.keys(t).forEach((function(r){e[r]=t[r]}))})),e}function o(e){return Object.prototype.toString.call(e)}function s(e){return"[object Function]"===o(e)}function i(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const l={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};const c={"http:":{validate:function(e,t,r){const n=e.slice(t);return r.re.http||(r.re.http=new RegExp("^\\/\\/"+r.re.src_auth+r.re.src_host_port_strict+r.re.src_path,"i")),r.re.http.test(n)?n.match(r.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,r){const n=e.slice(t);return r.re.no_http||(r.re.no_http=new RegExp("^"+r.re.src_auth+"(?:localhost|(?:(?:"+r.re.src_domain+")\\.)+"+r.re.src_domain_root+")"+r.re.src_port+r.re.src_host_terminator+r.re.src_path,"i")),r.re.no_http.test(n)?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:n.match(r.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,r){const n=e.slice(t);return r.re.mailto||(r.re.mailto=new RegExp("^"+r.re.src_email_name+"@"+r.re.src_host_strict,"i")),r.re.mailto.test(n)?n.match(r.re.mailto)[0].length:0}}},u="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function A(e){const t=e.re=(0,n.A)(e.__opts__),r=e.__tlds__.slice();function a(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||r.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),r.push(t.src_xn),t.src_tlds=r.join("|"),t.email_fuzzy=RegExp(a(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(a(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(a(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(a(t.tpl_host_fuzzy_test),"i");const l=[];function c(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach((function(t){const r=e.__schemas__[t];if(null===r)return;const n={validate:null,link:null};if(e.__compiled__[t]=n,"[object Object]"===o(r))return!function(e){return"[object RegExp]"===o(e)}(r.validate)?s(r.validate)?n.validate=r.validate:c(t,r):n.validate=function(e){return function(t,r){const n=t.slice(r);return e.test(n)?n.match(e)[0].length:0}}(r.validate),void(s(r.normalize)?n.normalize=r.normalize:r.normalize?c(t,r):n.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===o(e)}(r)?c(t,r):l.push(t)})),l.forEach((function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)})),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};const u=Object.keys(e.__compiled__).filter((function(t){return t.length>0&&e.__compiled__[t]})).map(i).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+u+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+u+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function g(e,t){const r=e.__index__,n=e.__last_index__,a=e.__text_cache__.slice(r,n);this.schema=e.__schema__.toLowerCase(),this.index=r+t,this.lastIndex=n+t,this.raw=a,this.text=a,this.url=a}function d(e,t){const r=new g(e,t);return e.__compiled__[r.schema].normalize(r,e),r}function p(e,t){if(!(this instanceof p))return new p(e,t);var r;t||(r=e,Object.keys(r||{}).reduce((function(e,t){return e||l.hasOwnProperty(t)}),!1)&&(t=e,e={})),this.__opts__=a({},l,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=a({},c,e),this.__compiled__={},this.__tlds__=u,this.__tlds_replaced__=!1,this.re={},A(this)}p.prototype.add=function(e,t){return this.__schemas__[e]=t,A(this),this},p.prototype.set=function(e){return this.__opts__=a(this.__opts__,e),this},p.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;let t,r,n,a,o,s,i,l,c;if(this.re.schema_test.test(e))for(i=this.re.schema_search,i.lastIndex=0;null!==(t=i.exec(e));)if(a=this.testSchemaAt(e,t[2],i.lastIndex),a){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+a;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test),l>=0&&(this.__index__<0||l<this.__index__)&&null!==(r=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(o=r.index+r[1].length,(this.__index__<0||o<this.__index__)&&(this.__schema__="",this.__index__=o,this.__last_index__=r.index+r[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(c=e.indexOf("@"),c>=0&&null!==(n=e.match(this.re.email_fuzzy))&&(o=n.index+n[1].length,s=n.index+n[0].length,(this.__index__<0||o<this.__index__||o===this.__index__&&s>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=s))),this.__index__>=0},p.prototype.pretest=function(e){return this.re.pretest.test(e)},p.prototype.testSchemaAt=function(e,t,r){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,r,this):0},p.prototype.match=function(e){const t=[];let r=0;this.__index__>=0&&this.__text_cache__===e&&(t.push(d(this,r)),r=this.__last_index__);let n=r?e.slice(r):e;for(;this.test(n);)t.push(d(this,r)),n=n.slice(this.__last_index__),r+=this.__last_index__;return t.length?t:null},p.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;const t=this.re.schema_at_start.exec(e);if(!t)return null;const r=this.testSchemaAt(e,t[2],t[0].length);return r?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+r,d(this,0)):null},p.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,r){return e!==r[t-1]})).reverse(),A(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,A(this),this)},p.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},p.prototype.onCompile=function(){};const m=p},30724:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(60905),a=r(80786),o=r(3506),s=r(60804);function i(e){const t={};e=e||{},t.src_Any=n.A.source,t.src_Cc=a.A.source,t.src_Z=o.A.source,t.src_P=s.A.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");const r="[><|]";return t.src_pseudo_letter="(?:(?![><|]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><|]|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+r+"|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><|]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},97158:(e,t,r)=>{"use strict";r.d(t,{A:()=>n.A});var n=r(56838)},84384:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]},58105:(e,t,r)=>{"use strict";r.d(t,{l:()=>o,p:()=>s});const n="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",a="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",o=new RegExp("^(?:"+n+"|"+a+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),s=new RegExp("^(?:"+n+"|"+a+")")},54439:(e,t,r)=>{"use strict";r.r(t),r.d(t,{arrayReplaceAt:()=>A,assign:()=>u,escapeHtml:()=>y,escapeRE:()=>I,fromCodePoint:()=>d,has:()=>c,isMdAsciiPunct:()=>S,isPunctChar:()=>Q,isSpace:()=>_,isString:()=>i,isValidEntityCode:()=>g,isWhiteSpace:()=>w,lib:()=>j,normalizeReference:()=>x,unescapeAll:()=>f,unescapeMd:()=>E});var n=r(25315),a=r(60804),o=r(68407),s=r(9405);function i(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)}const l=Object.prototype.hasOwnProperty;function c(e,t){return l.call(e,t)}function u(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach((function(r){e[r]=t[r]}))}})),e}function A(e,t,r){return[].concat(e.slice(0,t),r,e.slice(t+1))}function g(e){return!(e>=55296&&e<=57343)&&(!(e>=64976&&e<=65007)&&(!!(65535&~e&&65534!=(65535&e))&&(!(e>=0&&e<=8)&&(11!==e&&(!(e>=14&&e<=31)&&(!(e>=127&&e<=159)&&!(e>1114111)))))))}function d(e){if(e>65535){const t=55296+((e-=65536)>>10),r=56320+(1023&e);return String.fromCharCode(t,r)}return String.fromCharCode(e)}const p=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,m=new RegExp(p.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),h=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function E(e){return e.indexOf("\\")<0?e:e.replace(p,"$1")}function f(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(m,(function(e,t,r){return t||function(e,t){if(35===t.charCodeAt(0)&&h.test(t)){const r="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return g(r)?d(r):e}const r=(0,s.Gz)(e);return r!==e?r:e}(e,r)}))}const C=/[&<>"]/,B=/[&<>"]/g,b={"&":"&","<":"<",">":">",'"':"""};function k(e){return b[e]}function y(e){return C.test(e)?e.replace(B,k):e}const v=/[.?*+^$[\]\\(){}|-]/g;function I(e){return e.replace(v,"\\$&")}function _(e){switch(e){case 9:case 32:return!0}return!1}function w(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function Q(e){return a.A.test(e)}function S(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function x(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const j={mdurl:n,ucmicro:o}},80016:(e,t,r)=>{"use strict";r.r(t),r.d(t,{parseLinkDestination:()=>a.A,parseLinkLabel:()=>n.A,parseLinkTitle:()=>o.A});var n=r(65739),a=r(39945),o=r(8859)},39945:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(54439);function a(e,t,r){let a,o=t;const s={ok:!1,pos:0,lines:0,str:""};if(60===e.charCodeAt(o)){for(o++;o<r;){if(a=e.charCodeAt(o),10===a)return s;if(60===a)return s;if(62===a)return s.pos=o+1,s.str=(0,n.unescapeAll)(e.slice(t+1,o)),s.ok=!0,s;92===a&&o+1<r?o+=2:o++}return s}let i=0;for(;o<r&&(a=e.charCodeAt(o),32!==a)&&!(a<32||127===a);)if(92===a&&o+1<r){if(32===e.charCodeAt(o+1))break;o+=2}else{if(40===a&&(i++,i>32))return s;if(41===a){if(0===i)break;i--}o++}return t===o||0!==i||(s.str=(0,n.unescapeAll)(e.slice(t,o)),s.pos=o,s.ok=!0),s}},65739:(e,t,r)=>{"use strict";function n(e,t,r){let n,a,o,s;const i=e.posMax,l=e.pos;for(e.pos=t+1,n=1;e.pos<i;){if(o=e.src.charCodeAt(e.pos),93===o&&(n--,0===n)){a=!0;break}if(s=e.pos,e.md.inline.skipToken(e),91===o)if(s===e.pos-1)n++;else if(r)return e.pos=l,-1}let c=-1;return a&&(c=e.pos),e.pos=l,c}r.d(t,{A:()=>n})},8859:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(54439);function a(e,t,r){let a,o,s=0,i=t;const l={ok:!1,pos:0,lines:0,str:""};if(i>=r)return l;if(o=e.charCodeAt(i),34!==o&&39!==o&&40!==o)return l;for(i++,40===o&&(o=41);i<r;){if(a=e.charCodeAt(i),a===o)return l.pos=i+1,l.lines=s,l.str=(0,n.unescapeAll)(e.slice(t+1,i)),l.ok=!0,l;if(40===a&&41===o)return l;10===a?s++:92===a&&i+1<r&&(i++,10===e.charCodeAt(i)&&s++),i++}return l}},56838:(e,t,r)=>{"use strict";r.d(t,{A:()=>y});var n=r(54439),a=r(80016),o=r(71455),s=r(55439),i=r(60737),l=r(42813),c=r(7237),u=r(25315),A=r(87072),g=r(69404),d=r(8079),p=r(26881);const m={default:g.A,zero:d.A,commonmark:p.A},h=/^(vbscript|javascript|file|data):/,E=/^data:image\/(gif|png|jpeg|webp);/;function f(e){const t=e.trim().toLowerCase();return!h.test(t)||E.test(t)}const C=["http:","https:","mailto:"];function B(e){const t=u.parse(e,!0);if(t.hostname&&(!t.protocol||C.indexOf(t.protocol)>=0))try{t.hostname=A.Ay.toASCII(t.hostname)}catch(e){}return u.encode(u.format(t))}function b(e){const t=u.parse(e,!0);if(t.hostname&&(!t.protocol||C.indexOf(t.protocol)>=0))try{t.hostname=A.Ay.toUnicode(t.hostname)}catch(e){}return u.decode(u.format(t),u.decode.defaultChars+"%")}function k(e,t){if(!(this instanceof k))return new k(e,t);t||n.isString(e)||(t=e||{},e="default"),this.inline=new l.A,this.block=new i.A,this.core=new s.A,this.renderer=new o.A,this.linkify=new c.A,this.validateLink=f,this.normalizeLink=B,this.normalizeLinkText=b,this.utils=n,this.helpers=n.assign({},a),this.options={},this.configure(e),t&&this.set(t)}k.prototype.set=function(e){return n.assign(this.options,e),this},k.prototype.configure=function(e){const t=this;if(n.isString(e)){const t=e;if(!(e=m[t]))throw new Error('Wrong `markdown-it` preset "'+t+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach((function(r){e.components[r].rules&&t[r].ruler.enableOnly(e.components[r].rules),e.components[r].rules2&&t[r].ruler2.enableOnly(e.components[r].rules2)})),this},k.prototype.enable=function(e,t){let r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){r=r.concat(this[t].ruler.enable(e,!0))}),this),r=r.concat(this.inline.ruler2.enable(e,!0));const n=e.filter((function(e){return r.indexOf(e)<0}));if(n.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+n);return this},k.prototype.disable=function(e,t){let r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){r=r.concat(this[t].ruler.disable(e,!0))}),this),r=r.concat(this.inline.ruler2.disable(e,!0));const n=e.filter((function(e){return r.indexOf(e)<0}));if(n.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+n);return this},k.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},k.prototype.parse=function(e,t){if("string"!=typeof e)throw new Error("Input data should be a String");const r=new this.core.State(e,this,t);return this.core.process(r),r.tokens},k.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},k.prototype.parseInline=function(e,t){const r=new this.core.State(e,this,t);return r.inlineMode=!0,this.core.process(r),r.tokens},k.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};const y=k},60737:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});var n=r(79358),a=r(52961),o=r(20712),s=r(47103),i=r(36283),l=r(97537),c=r(79062),u=r(25792),A=r(43863),g=r(72577),d=r(13318),p=r(94206),m=r(94970);const h=[["table",o.A,["paragraph","reference"]],["code",s.A],["fence",i.A,["paragraph","reference","blockquote","list"]],["blockquote",l.A,["paragraph","reference","blockquote","list"]],["hr",c.A,["paragraph","reference","blockquote","list"]],["list",u.A,["paragraph","reference","blockquote"]],["reference",A.A],["html_block",g.A,["paragraph","reference","blockquote"]],["heading",d.A,["paragraph","reference","blockquote"]],["lheading",p.A],["paragraph",m.A]];function E(){this.ruler=new n.A;for(let e=0;e<h.length;e++)this.ruler.push(h[e][0],h[e][1],{alt:(h[e][2]||[]).slice()})}E.prototype.tokenize=function(e,t,r){const n=this.ruler.getRules(""),a=n.length,o=e.md.options.maxNesting;let s=t,i=!1;for(;s<r&&(e.line=s=e.skipEmptyLines(s),!(s>=r))&&!(e.sCount[s]<e.blkIndent);){if(e.level>=o){e.line=r;break}const t=e.line;let l=!1;for(let o=0;o<a;o++)if(l=n[o](e,s,r,!1),l){if(t>=e.line)throw new Error("block rule didn't increment state.line");break}if(!l)throw new Error("none of the block rules matched");e.tight=!i,e.isEmpty(e.line-1)&&(i=!0),s=e.line,s<r&&e.isEmpty(s)&&(i=!0,s++,e.line=s)}},E.prototype.parse=function(e,t,r,n){if(!e)return;const a=new this.State(e,t,r,n);this.tokenize(a,a.line,a.lineMax)},E.prototype.State=a.A;const f=E},55439:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var n=r(79358),a=r(37569),o=r(2699),s=r(79417),i=r(85189),l=r(96084),c=r(48541),u=r(55834),A=r(11242);const g=[["normalize",o.A],["block",s.A],["inline",i.A],["linkify",l.A],["replacements",c.A],["smartquotes",u.A],["text_join",A.A]];function d(){this.ruler=new n.A;for(let e=0;e<g.length;e++)this.ruler.push(g[e][0],g[e][1])}d.prototype.process=function(e){const t=this.ruler.getRules("");for(let r=0,n=t.length;r<n;r++)t[r](e)},d.prototype.State=a.A;const p=d},42813:(e,t,r)=>{"use strict";r.d(t,{A:()=>k});var n=r(79358),a=r(60057),o=r(68597),s=r(44938),i=r(94076),l=r(17785),c=r(38797),u=r(50925),A=r(62206),g=r(22128),d=r(74427),p=r(85469),m=r(7105),h=r(41517),E=r(76014),f=r(70322);const C=[["text",o.A],["linkify",s.A],["newline",i.A],["escape",l.A],["backticks",c.A],["strikethrough",u.A.tokenize],["emphasis",A.A.tokenize],["link",g.A],["image",d.A],["autolink",p.A],["html_inline",m.A],["entity",h.A]],B=[["balance_pairs",E.A],["strikethrough",u.A.postProcess],["emphasis",A.A.postProcess],["fragments_join",f.A]];function b(){this.ruler=new n.A;for(let e=0;e<C.length;e++)this.ruler.push(C[e][0],C[e][1]);this.ruler2=new n.A;for(let e=0;e<B.length;e++)this.ruler2.push(B[e][0],B[e][1])}b.prototype.skipToken=function(e){const t=e.pos,r=this.ruler.getRules(""),n=r.length,a=e.md.options.maxNesting,o=e.cache;if(void 0!==o[t])return void(e.pos=o[t]);let s=!1;if(e.level<a){for(let a=0;a<n;a++)if(e.level++,s=r[a](e,!0),e.level--,s){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;s||e.pos++,o[t]=e.pos},b.prototype.tokenize=function(e){const t=this.ruler.getRules(""),r=t.length,n=e.posMax,a=e.md.options.maxNesting;for(;e.pos<n;){const o=e.pos;let s=!1;if(e.level<a)for(let n=0;n<r;n++)if(s=t[n](e,!1),s){if(o>=e.pos)throw new Error("inline rule didn't increment state.pos");break}if(s){if(e.pos>=n)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},b.prototype.parse=function(e,t,r,n){const a=new this.State(e,t,r,n);this.tokenize(a);const o=this.ruler2.getRules(""),s=o.length;for(let e=0;e<s;e++)o[e](a)},b.prototype.State=a.A;const k=b},26881:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}},69404:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}},8079:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}}},71455:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(54439);const a={};function o(){this.rules=(0,n.assign)({},a)}a.code_inline=function(e,t,r,a,o){const s=e[t];return"<code"+o.renderAttrs(s)+">"+(0,n.escapeHtml)(s.content)+"</code>"},a.code_block=function(e,t,r,a,o){const s=e[t];return"<pre"+o.renderAttrs(s)+"><code>"+(0,n.escapeHtml)(e[t].content)+"</code></pre>\n"},a.fence=function(e,t,r,a,o){const s=e[t],i=s.info?(0,n.unescapeAll)(s.info).trim():"";let l,c="",u="";if(i){const e=i.split(/(\s+)/g);c=e[0],u=e.slice(2).join("")}if(l=r.highlight&&r.highlight(s.content,c,u)||(0,n.escapeHtml)(s.content),0===l.indexOf("<pre"))return l+"\n";if(i){const e=s.attrIndex("class"),t=s.attrs?s.attrs.slice():[];e<0?t.push(["class",r.langPrefix+c]):(t[e]=t[e].slice(),t[e][1]+=" "+r.langPrefix+c);const n={attrs:t};return`<pre><code${o.renderAttrs(n)}>${l}</code></pre>\n`}return`<pre><code${o.renderAttrs(s)}>${l}</code></pre>\n`},a.image=function(e,t,r,n,a){const o=e[t];return o.attrs[o.attrIndex("alt")][1]=a.renderInlineAsText(o.children,r,n),a.renderToken(e,t,r)},a.hardbreak=function(e,t,r){return r.xhtmlOut?"<br />\n":"<br>\n"},a.softbreak=function(e,t,r){return r.breaks?r.xhtmlOut?"<br />\n":"<br>\n":"\n"},a.text=function(e,t){return(0,n.escapeHtml)(e[t].content)},a.html_block=function(e,t){return e[t].content},a.html_inline=function(e,t){return e[t].content},o.prototype.renderAttrs=function(e){let t,r,a;if(!e.attrs)return"";for(a="",t=0,r=e.attrs.length;t<r;t++)a+=" "+(0,n.escapeHtml)(e.attrs[t][0])+'="'+(0,n.escapeHtml)(e.attrs[t][1])+'"';return a},o.prototype.renderToken=function(e,t,r){const n=e[t];let a="";if(n.hidden)return"";n.block&&-1!==n.nesting&&t&&e[t-1].hidden&&(a+="\n"),a+=(-1===n.nesting?"</":"<")+n.tag,a+=this.renderAttrs(n),0===n.nesting&&r.xhtmlOut&&(a+=" /");let o=!1;if(n.block&&(o=!0,1===n.nesting&&t+1<e.length)){const r=e[t+1];("inline"===r.type||r.hidden||-1===r.nesting&&r.tag===n.tag)&&(o=!1)}return a+=o?">\n":">",a},o.prototype.renderInline=function(e,t,r){let n="";const a=this.rules;for(let o=0,s=e.length;o<s;o++){const s=e[o].type;void 0!==a[s]?n+=a[s](e,o,t,r,this):n+=this.renderToken(e,o,t)}return n},o.prototype.renderInlineAsText=function(e,t,r){let n="";for(let a=0,o=e.length;a<o;a++)switch(e[a].type){case"text":case"html_inline":case"html_block":n+=e[a].content;break;case"image":n+=this.renderInlineAsText(e[a].children,t,r);break;case"softbreak":case"hardbreak":n+="\n"}return n},o.prototype.render=function(e,t,r){let n="";const a=this.rules;for(let o=0,s=e.length;o<s;o++){const s=e[o].type;"inline"===s?n+=this.renderInline(e[o].children,t,r):void 0!==a[s]?n+=a[s](e,o,t,r,this):n+=this.renderToken(e,o,t,r)}return n};const s=o},79358:(e,t,r)=>{"use strict";function n(){this.__rules__=[],this.__cache__=null}r.d(t,{A:()=>a}),n.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},n.prototype.__compile__=function(){const e=this,t=[""];e.__rules__.forEach((function(e){e.enabled&&e.alt.forEach((function(e){t.indexOf(e)<0&&t.push(e)}))})),e.__cache__={},t.forEach((function(t){e.__cache__[t]=[],e.__rules__.forEach((function(r){r.enabled&&(t&&r.alt.indexOf(t)<0||e.__cache__[t].push(r.fn))}))}))},n.prototype.at=function(e,t,r){const n=this.__find__(e),a=r||{};if(-1===n)throw new Error("Parser rule not found: "+e);this.__rules__[n].fn=t,this.__rules__[n].alt=a.alt||[],this.__cache__=null},n.prototype.before=function(e,t,r,n){const a=this.__find__(e),o=n||{};if(-1===a)throw new Error("Parser rule not found: "+e);this.__rules__.splice(a,0,{name:t,enabled:!0,fn:r,alt:o.alt||[]}),this.__cache__=null},n.prototype.after=function(e,t,r,n){const a=this.__find__(e),o=n||{};if(-1===a)throw new Error("Parser rule not found: "+e);this.__rules__.splice(a+1,0,{name:t,enabled:!0,fn:r,alt:o.alt||[]}),this.__cache__=null},n.prototype.push=function(e,t,r){const n=r||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:n.alt||[]}),this.__cache__=null},n.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);const r=[];return e.forEach((function(e){const n=this.__find__(e);if(n<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[n].enabled=!0,r.push(e)}),this),this.__cache__=null,r},n.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach((function(e){e.enabled=!1})),this.enable(e,t)},n.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);const r=[];return e.forEach((function(e){const n=this.__find__(e);if(n<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[n].enabled=!1,r.push(e)}),this),this.__cache__=null,r},n.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]};const a=n},97537:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(54439);function a(e,t,r,a){let o=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];const i=e.lineMax;if(e.sCount[t]-e.blkIndent>=4)return!1;if(62!==e.src.charCodeAt(o))return!1;if(a)return!0;const l=[],c=[],u=[],A=[],g=e.md.block.ruler.getRules("blockquote"),d=e.parentType;e.parentType="blockquote";let p,m=!1;for(p=t;p<r;p++){const t=e.sCount[p]<e.blkIndent;if(o=e.bMarks[p]+e.tShift[p],s=e.eMarks[p],o>=s)break;if(62===e.src.charCodeAt(o++)&&!t){let t,r,a=e.sCount[p]+1;32===e.src.charCodeAt(o)?(o++,a++,r=!1,t=!0):9===e.src.charCodeAt(o)?(t=!0,(e.bsCount[p]+a)%4==3?(o++,a++,r=!1):r=!0):t=!1;let i=a;for(l.push(e.bMarks[p]),e.bMarks[p]=o;o<s;){const t=e.src.charCodeAt(o);if(!(0,n.isSpace)(t))break;9===t?i+=4-(i+e.bsCount[p]+(r?1:0))%4:i++,o++}m=o>=s,c.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(t?1:0),u.push(e.sCount[p]),e.sCount[p]=i-a,A.push(e.tShift[p]),e.tShift[p]=o-e.bMarks[p];continue}if(m)break;let a=!1;for(let t=0,n=g.length;t<n;t++)if(g[t](e,p,r,!0)){a=!0;break}if(a){e.lineMax=p,0!==e.blkIndent&&(l.push(e.bMarks[p]),c.push(e.bsCount[p]),A.push(e.tShift[p]),u.push(e.sCount[p]),e.sCount[p]-=e.blkIndent);break}l.push(e.bMarks[p]),c.push(e.bsCount[p]),A.push(e.tShift[p]),u.push(e.sCount[p]),e.sCount[p]=-1}const h=e.blkIndent;e.blkIndent=0;const E=e.push("blockquote_open","blockquote",1);E.markup=">";const f=[t,0];E.map=f,e.md.block.tokenize(e,t,p);e.push("blockquote_close","blockquote",-1).markup=">",e.lineMax=i,e.parentType=d,f[1]=e.line;for(let r=0;r<A.length;r++)e.bMarks[r+t]=l[r],e.tShift[r+t]=A[r],e.sCount[r+t]=u[r],e.bsCount[r+t]=c[r];return e.blkIndent=h,!0}},47103:(e,t,r)=>{"use strict";function n(e,t,r){if(e.sCount[t]-e.blkIndent<4)return!1;let n=t+1,a=n;for(;n<r;)if(e.isEmpty(n))n++;else{if(!(e.sCount[n]-e.blkIndent>=4))break;n++,a=n}e.line=a;const o=e.push("code_block","code",0);return o.content=e.getLines(t,a,4+e.blkIndent,!1)+"\n",o.map=[t,e.line],!0}r.d(t,{A:()=>n})},36283:(e,t,r)=>{"use strict";function n(e,t,r,n){let a=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(a+3>o)return!1;const s=e.src.charCodeAt(a);if(126!==s&&96!==s)return!1;let i=a;a=e.skipChars(a,s);let l=a-i;if(l<3)return!1;const c=e.src.slice(i,a),u=e.src.slice(a,o);if(96===s&&u.indexOf(String.fromCharCode(s))>=0)return!1;if(n)return!0;let A=t,g=!1;for(;(A++,!(A>=r))&&(a=i=e.bMarks[A]+e.tShift[A],o=e.eMarks[A],!(a<o&&e.sCount[A]<e.blkIndent));)if(e.src.charCodeAt(a)===s&&!(e.sCount[A]-e.blkIndent>=4||(a=e.skipChars(a,s),a-i<l||(a=e.skipSpaces(a),a<o)))){g=!0;break}l=e.sCount[t],e.line=A+(g?1:0);const d=e.push("fence","code",0);return d.info=u,d.content=e.getLines(t+1,A,l,!0),d.markup=c,d.map=[t,e.line],!0}r.d(t,{A:()=>n})},13318:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(54439);function a(e,t,r,a){let o=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let i=e.src.charCodeAt(o);if(35!==i||o>=s)return!1;let l=1;for(i=e.src.charCodeAt(++o);35===i&&o<s&&l<=6;)l++,i=e.src.charCodeAt(++o);if(l>6||o<s&&!(0,n.isSpace)(i))return!1;if(a)return!0;s=e.skipSpacesBack(s,o);const c=e.skipCharsBack(s,35,o);c>o&&(0,n.isSpace)(e.src.charCodeAt(c-1))&&(s=c),e.line=t+1;const u=e.push("heading_open","h"+String(l),1);u.markup="########".slice(0,l),u.map=[t,e.line];const A=e.push("inline","",0);A.content=e.src.slice(o,s).trim(),A.map=[t,e.line],A.children=[];return e.push("heading_close","h"+String(l),-1).markup="########".slice(0,l),!0}},79062:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(54439);function a(e,t,r,a){const o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let s=e.bMarks[t]+e.tShift[t];const i=e.src.charCodeAt(s++);if(42!==i&&45!==i&&95!==i)return!1;let l=1;for(;s<o;){const t=e.src.charCodeAt(s++);if(t!==i&&!(0,n.isSpace)(t))return!1;t===i&&l++}if(l<3)return!1;if(a)return!0;e.line=t+1;const c=e.push("hr","hr",0);return c.map=[t,e.line],c.markup=Array(l+1).join(String.fromCharCode(i)),!0}},72577:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(84384),a=r(58105);const o=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+n.A.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(a.p.source+"\\s*$"),/^$/,!1]];function s(e,t,r,n){let a=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(a))return!1;let i=e.src.slice(a,s),l=0;for(;l<o.length&&!o[l][0].test(i);l++);if(l===o.length)return!1;if(n)return o[l][2];let c=t+1;if(!o[l][1].test(i))for(;c<r&&!(e.sCount[c]<e.blkIndent);c++)if(a=e.bMarks[c]+e.tShift[c],s=e.eMarks[c],i=e.src.slice(a,s),o[l][1].test(i)){0!==i.length&&c++;break}e.line=c;const u=e.push("html_block","",0);return u.map=[t,c],u.content=e.getLines(t,c,e.blkIndent,!0),!0}},94206:(e,t,r)=>{"use strict";function n(e,t,r){const n=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const a=e.parentType;e.parentType="paragraph";let o,s=0,i=t+1;for(;i<r&&!e.isEmpty(i);i++){if(e.sCount[i]-e.blkIndent>3)continue;if(e.sCount[i]>=e.blkIndent){let t=e.bMarks[i]+e.tShift[i];const r=e.eMarks[i];if(t<r&&(o=e.src.charCodeAt(t),(45===o||61===o)&&(t=e.skipChars(t,o),t=e.skipSpaces(t),t>=r))){s=61===o?1:2;break}}if(e.sCount[i]<0)continue;let t=!1;for(let a=0,o=n.length;a<o;a++)if(n[a](e,i,r,!0)){t=!0;break}if(t)break}if(!s)return!1;const l=e.getLines(t,i,e.blkIndent,!1).trim();e.line=i+1;const c=e.push("heading_open","h"+String(s),1);c.markup=String.fromCharCode(o),c.map=[t,e.line];const u=e.push("inline","",0);u.content=l,u.map=[t,e.line-1],u.children=[];return e.push("heading_close","h"+String(s),-1).markup=String.fromCharCode(o),e.parentType=a,!0}r.d(t,{A:()=>n})},25792:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(54439);function a(e,t){const r=e.eMarks[t];let a=e.bMarks[t]+e.tShift[t];const o=e.src.charCodeAt(a++);if(42!==o&&45!==o&&43!==o)return-1;if(a<r){const t=e.src.charCodeAt(a);if(!(0,n.isSpace)(t))return-1}return a}function o(e,t){const r=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];let o=r;if(o+1>=a)return-1;let s=e.src.charCodeAt(o++);if(s<48||s>57)return-1;for(;;){if(o>=a)return-1;if(s=e.src.charCodeAt(o++),!(s>=48&&s<=57)){if(41===s||46===s)break;return-1}if(o-r>=10)return-1}return o<a&&(s=e.src.charCodeAt(o),!(0,n.isSpace)(s))?-1:o}function s(e,t,r,n){let s,i,l,c,u=t,A=!0;if(e.sCount[u]-e.blkIndent>=4)return!1;if(e.listIndent>=0&&e.sCount[u]-e.listIndent>=4&&e.sCount[u]<e.blkIndent)return!1;let g,d,p,m=!1;if(n&&"paragraph"===e.parentType&&e.sCount[u]>=e.blkIndent&&(m=!0),(p=o(e,u))>=0){if(g=!0,l=e.bMarks[u]+e.tShift[u],d=Number(e.src.slice(l,p-1)),m&&1!==d)return!1}else{if(!((p=a(e,u))>=0))return!1;g=!1}if(m&&e.skipSpaces(p)>=e.eMarks[u])return!1;if(n)return!0;const h=e.src.charCodeAt(p-1),E=e.tokens.length;g?(c=e.push("ordered_list_open","ol",1),1!==d&&(c.attrs=[["start",d]])):c=e.push("bullet_list_open","ul",1);const f=[u,0];c.map=f,c.markup=String.fromCharCode(h);let C=!1;const B=e.md.block.ruler.getRules("list"),b=e.parentType;for(e.parentType="list";u<r;){i=p,s=e.eMarks[u];const t=e.sCount[u]+p-(e.bMarks[u]+e.tShift[u]);let n=t;for(;i<s;){const t=e.src.charCodeAt(i);if(9===t)n+=4-(n+e.bsCount[u])%4;else{if(32!==t)break;n++}i++}const d=i;let m;m=d>=s?1:n-t,m>4&&(m=1);const E=t+m;c=e.push("list_item_open","li",1),c.markup=String.fromCharCode(h);const f=[u,0];c.map=f,g&&(c.info=e.src.slice(l,p-1));const b=e.tight,k=e.tShift[u],y=e.sCount[u],v=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=E,e.tight=!0,e.tShift[u]=d-e.bMarks[u],e.sCount[u]=n,d>=s&&e.isEmpty(u+1)?e.line=Math.min(e.line+2,r):e.md.block.tokenize(e,u,r,!0),e.tight&&!C||(A=!1),C=e.line-u>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=v,e.tShift[u]=k,e.sCount[u]=y,e.tight=b,c=e.push("list_item_close","li",-1),c.markup=String.fromCharCode(h),u=e.line,f[1]=u,u>=r)break;if(e.sCount[u]<e.blkIndent)break;if(e.sCount[u]-e.blkIndent>=4)break;let I=!1;for(let t=0,n=B.length;t<n;t++)if(B[t](e,u,r,!0)){I=!0;break}if(I)break;if(g){if(p=o(e,u),p<0)break;l=e.bMarks[u]+e.tShift[u]}else if(p=a(e,u),p<0)break;if(h!==e.src.charCodeAt(p-1))break}return c=g?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1),c.markup=String.fromCharCode(h),f[1]=u,e.line=u,e.parentType=b,A&&function(e,t){const r=e.level+2;for(let n=t+2,a=e.tokens.length-2;n<a;n++)e.tokens[n].level===r&&"paragraph_open"===e.tokens[n].type&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)}(e,E),!0}},94970:(e,t,r)=>{"use strict";function n(e,t,r){const n=e.md.block.ruler.getRules("paragraph"),a=e.parentType;let o=t+1;for(e.parentType="paragraph";o<r&&!e.isEmpty(o);o++){if(e.sCount[o]-e.blkIndent>3)continue;if(e.sCount[o]<0)continue;let t=!1;for(let a=0,s=n.length;a<s;a++)if(n[a](e,o,r,!0)){t=!0;break}if(t)break}const s=e.getLines(t,o,e.blkIndent,!1).trim();e.line=o;e.push("paragraph_open","p",1).map=[t,e.line];const i=e.push("inline","",0);return i.content=s,i.map=[t,e.line],i.children=[],e.push("paragraph_close","p",-1),e.parentType=a,!0}r.d(t,{A:()=>n})},43863:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(54439);function a(e,t,r,a){let o=0,s=e.bMarks[t]+e.tShift[t],i=e.eMarks[t],l=t+1;if(e.sCount[t]-e.blkIndent>=4)return!1;if(91!==e.src.charCodeAt(s))return!1;for(;++s<i;)if(93===e.src.charCodeAt(s)&&92!==e.src.charCodeAt(s-1)){if(s+1===i)return!1;if(58!==e.src.charCodeAt(s+1))return!1;break}const c=e.lineMax,u=e.md.block.ruler.getRules("reference"),A=e.parentType;for(e.parentType="reference";l<c&&!e.isEmpty(l);l++){if(e.sCount[l]-e.blkIndent>3)continue;if(e.sCount[l]<0)continue;let t=!1;for(let r=0,n=u.length;r<n;r++)if(u[r](e,l,c,!0)){t=!0;break}if(t)break}const g=e.getLines(t,l,e.blkIndent,!1).trim();i=g.length;let d=-1;for(s=1;s<i;s++){const e=g.charCodeAt(s);if(91===e)return!1;if(93===e){d=s;break}10===e?o++:92===e&&(s++,s<i&&10===g.charCodeAt(s)&&o++)}if(d<0||58!==g.charCodeAt(d+1))return!1;for(s=d+2;s<i;s++){const e=g.charCodeAt(s);if(10===e)o++;else if(!(0,n.isSpace)(e))break}const p=e.md.helpers.parseLinkDestination(g,s,i);if(!p.ok)return!1;const m=e.md.normalizeLink(p.str);if(!e.md.validateLink(m))return!1;s=p.pos,o+=p.lines;const h=s,E=o,f=s;for(;s<i;s++){const e=g.charCodeAt(s);if(10===e)o++;else if(!(0,n.isSpace)(e))break}const C=e.md.helpers.parseLinkTitle(g,s,i);let B;for(s<i&&f!==s&&C.ok?(B=C.str,s=C.pos,o+=C.lines):(B="",s=h,o=E);s<i;){const e=g.charCodeAt(s);if(!(0,n.isSpace)(e))break;s++}if(s<i&&10!==g.charCodeAt(s)&&B)for(B="",s=h,o=E;s<i;){const e=g.charCodeAt(s);if(!(0,n.isSpace)(e))break;s++}if(s<i&&10!==g.charCodeAt(s))return!1;const b=(0,n.normalizeReference)(g.slice(1,d));return!!b&&(a||(void 0===e.env.references&&(e.env.references={}),void 0===e.env.references[b]&&(e.env.references[b]={title:B,href:m}),e.parentType=A,e.line=t+o+1),!0)}},52961:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(57997),a=r(54439);function o(e,t,r,n){this.src=e,this.md=t,this.env=r,this.tokens=n,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const o=this.src;for(let e=0,t=0,r=0,n=0,s=o.length,i=!1;t<s;t++){const l=o.charCodeAt(t);if(!i){if((0,a.isSpace)(l)){r++,9===l?n+=4-n%4:n++;continue}i=!0}10!==l&&t!==s-1||(10!==l&&t++,this.bMarks.push(e),this.eMarks.push(t),this.tShift.push(r),this.sCount.push(n),this.bsCount.push(0),i=!1,r=0,n=0,e=t+1)}this.bMarks.push(o.length),this.eMarks.push(o.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}o.prototype.push=function(e,t,r){const a=new n.A(e,t,r);return a.block=!0,r<0&&this.level--,a.level=this.level,r>0&&this.level++,this.tokens.push(a),a},o.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},o.prototype.skipEmptyLines=function(e){for(let t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},o.prototype.skipSpaces=function(e){for(let t=this.src.length;e<t;e++){const t=this.src.charCodeAt(e);if(!(0,a.isSpace)(t))break}return e},o.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!(0,a.isSpace)(this.src.charCodeAt(--e)))return e+1;return e},o.prototype.skipChars=function(e,t){for(let r=this.src.length;e<r&&this.src.charCodeAt(e)===t;e++);return e},o.prototype.skipCharsBack=function(e,t,r){if(e<=r)return e;for(;e>r;)if(t!==this.src.charCodeAt(--e))return e+1;return e},o.prototype.getLines=function(e,t,r,n){if(e>=t)return"";const o=new Array(t-e);for(let s=0,i=e;i<t;i++,s++){let e=0;const l=this.bMarks[i];let c,u=l;for(c=i+1<t||n?this.eMarks[i]+1:this.eMarks[i];u<c&&e<r;){const t=this.src.charCodeAt(u);if((0,a.isSpace)(t))9===t?e+=4-(e+this.bsCount[i])%4:e++;else{if(!(u-l<this.tShift[i]))break;e++}u++}o[s]=e>r?new Array(e-r+1).join(" ")+this.src.slice(u,c):this.src.slice(u,c)}return o.join("")},o.prototype.Token=n.A;const s=o},20712:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(54439);function a(e,t){const r=e.bMarks[t]+e.tShift[t],n=e.eMarks[t];return e.src.slice(r,n)}function o(e){const t=[],r=e.length;let n=0,a=e.charCodeAt(n),o=!1,s=0,i="";for(;n<r;)124===a&&(o?(i+=e.substring(s,n-1),s=n):(t.push(i+e.substring(s,n)),i="",s=n+1)),o=92===a,n++,a=e.charCodeAt(n);return t.push(i+e.substring(s)),t}function s(e,t,r,s){if(t+2>r)return!1;let i=t+1;if(e.sCount[i]<e.blkIndent)return!1;if(e.sCount[i]-e.blkIndent>=4)return!1;let l=e.bMarks[i]+e.tShift[i];if(l>=e.eMarks[i])return!1;const c=e.src.charCodeAt(l++);if(124!==c&&45!==c&&58!==c)return!1;if(l>=e.eMarks[i])return!1;const u=e.src.charCodeAt(l++);if(124!==u&&45!==u&&58!==u&&!(0,n.isSpace)(u))return!1;if(45===c&&(0,n.isSpace)(u))return!1;for(;l<e.eMarks[i];){const t=e.src.charCodeAt(l);if(124!==t&&45!==t&&58!==t&&!(0,n.isSpace)(t))return!1;l++}let A=a(e,t+1),g=A.split("|");const d=[];for(let e=0;e<g.length;e++){const t=g[e].trim();if(!t){if(0===e||e===g.length-1)continue;return!1}if(!/^:?-+:?$/.test(t))return!1;58===t.charCodeAt(t.length-1)?d.push(58===t.charCodeAt(0)?"center":"right"):58===t.charCodeAt(0)?d.push("left"):d.push("")}if(A=a(e,t).trim(),-1===A.indexOf("|"))return!1;if(e.sCount[t]-e.blkIndent>=4)return!1;g=o(A),g.length&&""===g[0]&&g.shift(),g.length&&""===g[g.length-1]&&g.pop();const p=g.length;if(0===p||p!==d.length)return!1;if(s)return!0;const m=e.parentType;e.parentType="table";const h=e.md.block.ruler.getRules("blockquote"),E=[t,0];e.push("table_open","table",1).map=E;e.push("thead_open","thead",1).map=[t,t+1];e.push("tr_open","tr",1).map=[t,t+1];for(let t=0;t<g.length;t++){const r=e.push("th_open","th",1);d[t]&&(r.attrs=[["style","text-align:"+d[t]]]);const n=e.push("inline","",0);n.content=g[t].trim(),n.children=[],e.push("th_close","th",-1)}let f;for(e.push("tr_close","tr",-1),e.push("thead_close","thead",-1),i=t+2;i<r&&!(e.sCount[i]<e.blkIndent);i++){let n=!1;for(let t=0,a=h.length;t<a;t++)if(h[t](e,i,r,!0)){n=!0;break}if(n)break;if(A=a(e,i).trim(),!A)break;if(e.sCount[i]-e.blkIndent>=4)break;if(g=o(A),g.length&&""===g[0]&&g.shift(),g.length&&""===g[g.length-1]&&g.pop(),i===t+2){e.push("tbody_open","tbody",1).map=f=[t+2,0]}e.push("tr_open","tr",1).map=[i,i+1];for(let t=0;t<p;t++){const r=e.push("td_open","td",1);d[t]&&(r.attrs=[["style","text-align:"+d[t]]]);const n=e.push("inline","",0);n.content=g[t]?g[t].trim():"",n.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return f&&(e.push("tbody_close","tbody",-1),f[1]=i),e.push("table_close","table",-1),E[1]=i,e.parentType=m,e.line=i,!0}},79417:(e,t,r)=>{"use strict";function n(e){let t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}r.d(t,{A:()=>n})},85189:(e,t,r)=>{"use strict";function n(e){const t=e.tokens;for(let r=0,n=t.length;r<n;r++){const n=t[r];"inline"===n.type&&e.md.inline.parse(n.content,e.md,e.env,n.children)}}r.d(t,{A:()=>n})},96084:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(54439);function a(e){return/^<\/a\s*>/i.test(e)}function o(e){const t=e.tokens;var r;if(e.md.options.linkify)for(let o=0,s=t.length;o<s;o++){if("inline"!==t[o].type||!e.md.linkify.pretest(t[o].content))continue;let s=t[o].children,i=0;for(let l=s.length-1;l>=0;l--){const c=s[l];if("link_close"!==c.type){if("html_inline"===c.type&&(r=c.content,/^<a[>\s]/i.test(r)&&i>0&&i--,a(c.content)&&i++),!(i>0)&&"text"===c.type&&e.md.linkify.test(c.content)){const r=c.content;let a=e.md.linkify.match(r);const i=[];let u=c.level,A=0;a.length>0&&0===a[0].index&&l>0&&"text_special"===s[l-1].type&&(a=a.slice(1));for(let t=0;t<a.length;t++){const n=a[t].url,o=e.md.normalizeLink(n);if(!e.md.validateLink(o))continue;let s=a[t].text;s=a[t].schema?"mailto:"!==a[t].schema||/^mailto:/i.test(s)?e.md.normalizeLinkText(s):e.md.normalizeLinkText("mailto:"+s).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+s).replace(/^http:\/\//,"");const l=a[t].index;if(l>A){const t=new e.Token("text","",0);t.content=r.slice(A,l),t.level=u,i.push(t)}const c=new e.Token("link_open","a",1);c.attrs=[["href",o]],c.level=u++,c.markup="linkify",c.info="auto",i.push(c);const g=new e.Token("text","",0);g.content=s,g.level=u,i.push(g);const d=new e.Token("link_close","a",-1);d.level=--u,d.markup="linkify",d.info="auto",i.push(d),A=a[t].lastIndex}if(A<r.length){const t=new e.Token("text","",0);t.content=r.slice(A),t.level=u,i.push(t)}t[o].children=s=(0,n.arrayReplaceAt)(s,l,i)}}else for(l--;s[l].level!==c.level&&"link_open"!==s[l].type;)l--}}}},2699:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});const n=/\r\n?|\n/g,a=/\0/g;function o(e){let t;t=e.src.replace(n,"\n"),t=t.replace(a,"�"),e.src=t}},48541:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});const n=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,a=/\((c|tm|r)\)/i,o=/\((c|tm|r)\)/gi,s={c:"©",r:"®",tm:"™"};function i(e,t){return s[t.toLowerCase()]}function l(e){let t=0;for(let r=e.length-1;r>=0;r--){const n=e[r];"text"!==n.type||t||(n.content=n.content.replace(o,i)),"link_open"===n.type&&"auto"===n.info&&t--,"link_close"===n.type&&"auto"===n.info&&t++}}function c(e){let t=0;for(let r=e.length-1;r>=0;r--){const a=e[r];"text"!==a.type||t||n.test(a.content)&&(a.content=a.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),"link_open"===a.type&&"auto"===a.info&&t--,"link_close"===a.type&&"auto"===a.info&&t++}}function u(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&(a.test(e.tokens[t].content)&&l(e.tokens[t].children),n.test(e.tokens[t].content)&&c(e.tokens[t].children))}},55834:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(54439);const a=/['"]/,o=/['"]/g,s="’";function i(e,t,r){return e.slice(0,t)+r+e.slice(t+1)}function l(e,t){let r;const a=[];for(let l=0;l<e.length;l++){const c=e[l],u=e[l].level;for(r=a.length-1;r>=0&&!(a[r].level<=u);r--);if(a.length=r+1,"text"!==c.type)continue;let A=c.content,g=0,d=A.length;e:for(;g<d;){o.lastIndex=g;const p=o.exec(A);if(!p)break;let m=!0,h=!0;g=p.index+1;const E="'"===p[0];let f=32;if(p.index-1>=0)f=A.charCodeAt(p.index-1);else for(r=l-1;r>=0&&("softbreak"!==e[r].type&&"hardbreak"!==e[r].type);r--)if(e[r].content){f=e[r].content.charCodeAt(e[r].content.length-1);break}let C=32;if(g<d)C=A.charCodeAt(g);else for(r=l+1;r<e.length&&("softbreak"!==e[r].type&&"hardbreak"!==e[r].type);r++)if(e[r].content){C=e[r].content.charCodeAt(0);break}const B=(0,n.isMdAsciiPunct)(f)||(0,n.isPunctChar)(String.fromCharCode(f)),b=(0,n.isMdAsciiPunct)(C)||(0,n.isPunctChar)(String.fromCharCode(C)),k=(0,n.isWhiteSpace)(f),y=(0,n.isWhiteSpace)(C);if(y?m=!1:b&&(k||B||(m=!1)),k?h=!1:B&&(y||b||(h=!1)),34===C&&'"'===p[0]&&f>=48&&f<=57&&(h=m=!1),m&&h&&(m=B,h=b),m||h){if(h)for(r=a.length-1;r>=0;r--){let n=a[r];if(a[r].level<u)break;if(n.single===E&&a[r].level===u){let o,s;n=a[r],E?(o=t.md.options.quotes[2],s=t.md.options.quotes[3]):(o=t.md.options.quotes[0],s=t.md.options.quotes[1]),c.content=i(c.content,p.index,s),e[n.token].content=i(e[n.token].content,n.pos,o),g+=s.length-1,n.token===l&&(g+=o.length-1),A=c.content,d=A.length,a.length=r;continue e}}m?a.push({token:l,pos:p.index,single:E,level:u}):h&&E&&(c.content=i(c.content,p.index,s))}else E&&(c.content=i(c.content,p.index,s))}}}function c(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&a.test(e.tokens[t].content)&&l(e.tokens[t].children,e)}},37569:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(57997);function a(e,t,r){this.src=e,this.env=r,this.tokens=[],this.inlineMode=!1,this.md=t}a.prototype.Token=n.A;const o=a},11242:(e,t,r)=>{"use strict";function n(e){let t,r;const n=e.tokens,a=n.length;for(let e=0;e<a;e++){if("inline"!==n[e].type)continue;const a=n[e].children,o=a.length;for(t=0;t<o;t++)"text_special"===a[t].type&&(a[t].type="text");for(t=r=0;t<o;t++)"text"===a[t].type&&t+1<o&&"text"===a[t+1].type?a[t+1].content=a[t].content+a[t+1].content:(t!==r&&(a[r]=a[t]),r++);t!==r&&(a.length=r)}}r.d(t,{A:()=>n})},85469:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});const n=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,a=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function o(e,t){let r=e.pos;if(60!==e.src.charCodeAt(r))return!1;const o=e.pos,s=e.posMax;for(;;){if(++r>=s)return!1;const t=e.src.charCodeAt(r);if(60===t)return!1;if(62===t)break}const i=e.src.slice(o+1,r);if(a.test(i)){const r=e.md.normalizeLink(i);if(!e.md.validateLink(r))return!1;if(!t){const t=e.push("link_open","a",1);t.attrs=[["href",r]],t.markup="autolink",t.info="auto";e.push("text","",0).content=e.md.normalizeLinkText(i);const n=e.push("link_close","a",-1);n.markup="autolink",n.info="auto"}return e.pos+=i.length+2,!0}if(n.test(i)){const r=e.md.normalizeLink("mailto:"+i);if(!e.md.validateLink(r))return!1;if(!t){const t=e.push("link_open","a",1);t.attrs=[["href",r]],t.markup="autolink",t.info="auto";e.push("text","",0).content=e.md.normalizeLinkText(i);const n=e.push("link_close","a",-1);n.markup="autolink",n.info="auto"}return e.pos+=i.length+2,!0}return!1}},38797:(e,t,r)=>{"use strict";function n(e,t){let r=e.pos;if(96!==e.src.charCodeAt(r))return!1;const n=r;r++;const a=e.posMax;for(;r<a&&96===e.src.charCodeAt(r);)r++;const o=e.src.slice(n,r),s=o.length;if(e.backticksScanned&&(e.backticks[s]||0)<=n)return t||(e.pending+=o),e.pos+=s,!0;let i,l=r;for(;-1!==(i=e.src.indexOf("`",l));){for(l=i+1;l<a&&96===e.src.charCodeAt(l);)l++;const n=l-i;if(n===s){if(!t){const t=e.push("code_inline","code",0);t.markup=o,t.content=e.src.slice(r,i).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=l,!0}e.backticks[n]=i}return e.backticksScanned=!0,t||(e.pending+=o),e.pos+=s,!0}r.d(t,{A:()=>n})},76014:(e,t,r)=>{"use strict";function n(e){const t={},r=e.length;if(!r)return;let n=0,a=-2;const o=[];for(let s=0;s<r;s++){const r=e[s];if(o.push(0),e[n].marker===r.marker&&a===r.token-1||(n=s),a=r.token,r.length=r.length||0,!r.close)continue;t.hasOwnProperty(r.marker)||(t[r.marker]=[-1,-1,-1,-1,-1,-1]);const i=t[r.marker][(r.open?3:0)+r.length%3];let l=n-o[n]-1,c=l;for(;l>i;l-=o[l]+1){const t=e[l];if(t.marker===r.marker&&(t.open&&t.end<0)){let n=!1;if((t.close||r.open)&&(t.length+r.length)%3==0&&(t.length%3==0&&r.length%3==0||(n=!0)),!n){const n=l>0&&!e[l-1].open?o[l-1]+1:0;o[s]=s-l+n,o[l]=n,r.open=!1,t.end=s,t.close=!1,c=-1,a=-2;break}}}-1!==c&&(t[r.marker][(r.open?3:0)+(r.length||0)%3]=c)}}function a(e){const t=e.tokens_meta,r=e.tokens_meta.length;n(e.delimiters);for(let e=0;e<r;e++)t[e]&&t[e].delimiters&&n(t[e].delimiters)}r.d(t,{A:()=>a})},62206:(e,t,r)=>{"use strict";function n(e,t){for(let r=t.length-1;r>=0;r--){const n=t[r];if(95!==n.marker&&42!==n.marker)continue;if(-1===n.end)continue;const a=t[n.end],o=r>0&&t[r-1].end===n.end+1&&t[r-1].marker===n.marker&&t[r-1].token===n.token-1&&t[n.end+1].token===a.token+1,s=String.fromCharCode(n.marker),i=e.tokens[n.token];i.type=o?"strong_open":"em_open",i.tag=o?"strong":"em",i.nesting=1,i.markup=o?s+s:s,i.content="";const l=e.tokens[a.token];l.type=o?"strong_close":"em_close",l.tag=o?"strong":"em",l.nesting=-1,l.markup=o?s+s:s,l.content="",o&&(e.tokens[t[r-1].token].content="",e.tokens[t[n.end+1].token].content="",r--)}}r.d(t,{A:()=>a});const a={tokenize:function(e,t){const r=e.pos,n=e.src.charCodeAt(r);if(t)return!1;if(95!==n&&42!==n)return!1;const a=e.scanDelims(e.pos,42===n);for(let t=0;t<a.length;t++){e.push("text","",0).content=String.fromCharCode(n),e.delimiters.push({marker:n,length:a.length,token:e.tokens.length-1,end:-1,open:a.can_open,close:a.can_close})}return e.pos+=a.length,!0},postProcess:function(e){const t=e.tokens_meta,r=e.tokens_meta.length;n(e,e.delimiters);for(let a=0;a<r;a++)t[a]&&t[a].delimiters&&n(e,t[a].delimiters)}}},41517:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(9405),a=r(54439);const o=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,s=/^&([a-z][a-z0-9]{1,31});/i;function i(e,t){const r=e.pos,i=e.posMax;if(38!==e.src.charCodeAt(r))return!1;if(r+1>=i)return!1;if(35===e.src.charCodeAt(r+1)){const n=e.src.slice(r).match(o);if(n){if(!t){const t="x"===n[1][0].toLowerCase()?parseInt(n[1].slice(1),16):parseInt(n[1],10),r=e.push("text_special","",0);r.content=(0,a.isValidEntityCode)(t)?(0,a.fromCodePoint)(t):(0,a.fromCodePoint)(65533),r.markup=n[0],r.info="entity"}return e.pos+=n[0].length,!0}}else{const a=e.src.slice(r).match(s);if(a){const r=(0,n.Gz)(a[0]);if(r!==a[0]){if(!t){const t=e.push("text_special","",0);t.content=r,t.markup=a[0],t.info="entity"}return e.pos+=a[0].length,!0}}}return!1}},17785:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(54439);const a=[];for(let e=0;e<256;e++)a.push(0);function o(e,t){let r=e.pos;const o=e.posMax;if(92!==e.src.charCodeAt(r))return!1;if(r++,r>=o)return!1;let s=e.src.charCodeAt(r);if(10===s){for(t||e.push("hardbreak","br",0),r++;r<o&&(s=e.src.charCodeAt(r),(0,n.isSpace)(s));)r++;return e.pos=r,!0}let i=e.src[r];if(s>=55296&&s<=56319&&r+1<o){const t=e.src.charCodeAt(r+1);t>=56320&&t<=57343&&(i+=e.src[r+1],r++)}const l="\\"+i;if(!t){const t=e.push("text_special","",0);s<256&&0!==a[s]?t.content=i:t.content=l,t.markup=l,t.info="escape"}return e.pos=r+1,!0}"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach((function(e){a[e.charCodeAt(0)]=1}))},70322:(e,t,r)=>{"use strict";function n(e){let t,r,n=0;const a=e.tokens,o=e.tokens.length;for(t=r=0;t<o;t++)a[t].nesting<0&&n--,a[t].level=n,a[t].nesting>0&&n++,"text"===a[t].type&&t+1<o&&"text"===a[t+1].type?a[t+1].content=a[t].content+a[t+1].content:(t!==r&&(a[r]=a[t]),r++);t!==r&&(a.length=r)}r.d(t,{A:()=>n})},7105:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(58105);function a(e,t){if(!e.md.options.html)return!1;const r=e.posMax,a=e.pos;if(60!==e.src.charCodeAt(a)||a+2>=r)return!1;const o=e.src.charCodeAt(a+1);if(33!==o&&63!==o&&47!==o&&!function(e){const t=32|e;return t>=97&&t<=122}(o))return!1;const s=e.src.slice(a).match(n.l);if(!s)return!1;if(!t){const t=e.push("html_inline","",0);t.content=s[0],i=t.content,/^<a[>\s]/i.test(i)&&e.linkLevel++,function(e){return/^<\/a\s*>/i.test(e)}(t.content)&&e.linkLevel--}var i;return e.pos+=s[0].length,!0}},74427:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(54439);function a(e,t){let r,a,o,s,i,l,c,u,A="";const g=e.pos,d=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;const p=e.pos+2,m=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(m<0)return!1;if(s=m+1,s<d&&40===e.src.charCodeAt(s)){for(s++;s<d&&(r=e.src.charCodeAt(s),(0,n.isSpace)(r)||10===r);s++);if(s>=d)return!1;for(u=s,l=e.md.helpers.parseLinkDestination(e.src,s,e.posMax),l.ok&&(A=e.md.normalizeLink(l.str),e.md.validateLink(A)?s=l.pos:A=""),u=s;s<d&&(r=e.src.charCodeAt(s),(0,n.isSpace)(r)||10===r);s++);if(l=e.md.helpers.parseLinkTitle(e.src,s,e.posMax),s<d&&u!==s&&l.ok)for(c=l.str,s=l.pos;s<d&&(r=e.src.charCodeAt(s),(0,n.isSpace)(r)||10===r);s++);else c="";if(s>=d||41!==e.src.charCodeAt(s))return e.pos=g,!1;s++}else{if(void 0===e.env.references)return!1;if(s<d&&91===e.src.charCodeAt(s)?(u=s+1,s=e.md.helpers.parseLinkLabel(e,s),s>=0?o=e.src.slice(u,s++):s=m+1):s=m+1,o||(o=e.src.slice(p,m)),i=e.env.references[(0,n.normalizeReference)(o)],!i)return e.pos=g,!1;A=i.href,c=i.title}if(!t){a=e.src.slice(p,m);const t=[];e.md.inline.parse(a,e.md,e.env,t);const r=e.push("image","img",0),n=[["src",A],["alt",""]];r.attrs=n,r.children=t,r.content=a,c&&n.push(["title",c])}return e.pos=s,e.posMax=d,!0}},22128:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(54439);function a(e,t){let r,a,o,s,i="",l="",c=e.pos,u=!0;if(91!==e.src.charCodeAt(e.pos))return!1;const A=e.pos,g=e.posMax,d=e.pos+1,p=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(p<0)return!1;let m=p+1;if(m<g&&40===e.src.charCodeAt(m)){for(u=!1,m++;m<g&&(r=e.src.charCodeAt(m),(0,n.isSpace)(r)||10===r);m++);if(m>=g)return!1;if(c=m,o=e.md.helpers.parseLinkDestination(e.src,m,e.posMax),o.ok){for(i=e.md.normalizeLink(o.str),e.md.validateLink(i)?m=o.pos:i="",c=m;m<g&&(r=e.src.charCodeAt(m),(0,n.isSpace)(r)||10===r);m++);if(o=e.md.helpers.parseLinkTitle(e.src,m,e.posMax),m<g&&c!==m&&o.ok)for(l=o.str,m=o.pos;m<g&&(r=e.src.charCodeAt(m),(0,n.isSpace)(r)||10===r);m++);}(m>=g||41!==e.src.charCodeAt(m))&&(u=!0),m++}if(u){if(void 0===e.env.references)return!1;if(m<g&&91===e.src.charCodeAt(m)?(c=m+1,m=e.md.helpers.parseLinkLabel(e,m),m>=0?a=e.src.slice(c,m++):m=p+1):m=p+1,a||(a=e.src.slice(d,p)),s=e.env.references[(0,n.normalizeReference)(a)],!s)return e.pos=A,!1;i=s.href,l=s.title}if(!t){e.pos=d,e.posMax=p;const t=[["href",i]];e.push("link_open","a",1).attrs=t,l&&t.push(["title",l]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=m,e.posMax=g,!0}},44938:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});const n=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function a(e,t){if(!e.md.options.linkify)return!1;if(e.linkLevel>0)return!1;const r=e.pos;if(r+3>e.posMax)return!1;if(58!==e.src.charCodeAt(r))return!1;if(47!==e.src.charCodeAt(r+1))return!1;if(47!==e.src.charCodeAt(r+2))return!1;const a=e.pending.match(n);if(!a)return!1;const o=a[1],s=e.md.linkify.matchAtStart(e.src.slice(r-o.length));if(!s)return!1;let i=s.url;if(i.length<=o.length)return!1;i=i.replace(/\*+$/,"");const l=e.md.normalizeLink(i);if(!e.md.validateLink(l))return!1;if(!t){e.pending=e.pending.slice(0,-o.length);const t=e.push("link_open","a",1);t.attrs=[["href",l]],t.markup="linkify",t.info="auto";e.push("text","",0).content=e.md.normalizeLinkText(i);const r=e.push("link_close","a",-1);r.markup="linkify",r.info="auto"}return e.pos+=i.length-o.length,!0}},94076:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(54439);function a(e,t){let r=e.pos;if(10!==e.src.charCodeAt(r))return!1;const a=e.pending.length-1,o=e.posMax;if(!t)if(a>=0&&32===e.pending.charCodeAt(a))if(a>=1&&32===e.pending.charCodeAt(a-1)){let t=a-1;for(;t>=1&&32===e.pending.charCodeAt(t-1);)t--;e.pending=e.pending.slice(0,t),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(r++;r<o&&(0,n.isSpace)(e.src.charCodeAt(r));)r++;return e.pos=r,!0}},60057:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(57997),a=r(54439);function o(e,t,r,n){this.src=e,this.env=r,this.md=t,this.tokens=n,this.tokens_meta=Array(n.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}o.prototype.pushPending=function(){const e=new n.A("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},o.prototype.push=function(e,t,r){this.pending&&this.pushPending();const a=new n.A(e,t,r);let o=null;return r<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),a.level=this.level,r>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(a),this.tokens_meta.push(o),a},o.prototype.scanDelims=function(e,t){let r,n,o=!0,s=!0;const i=this.posMax,l=this.src.charCodeAt(e),c=e>0?this.src.charCodeAt(e-1):32;let u=e;for(;u<i&&this.src.charCodeAt(u)===l;)u++;const A=u-e,g=u<i?this.src.charCodeAt(u):32,d=(0,a.isMdAsciiPunct)(c)||(0,a.isPunctChar)(String.fromCharCode(c)),p=(0,a.isMdAsciiPunct)(g)||(0,a.isPunctChar)(String.fromCharCode(g)),m=(0,a.isWhiteSpace)(c),h=(0,a.isWhiteSpace)(g);return h?o=!1:p&&(m||d||(o=!1)),m?s=!1:d&&(h||p||(s=!1)),t?(r=o,n=s):(r=o&&(!s||d),n=s&&(!o||p)),{can_open:r,can_close:n,length:A}},o.prototype.Token=n.A;const s=o},50925:(e,t,r)=>{"use strict";function n(e,t){let r;const n=[],a=t.length;for(let o=0;o<a;o++){const a=t[o];if(126!==a.marker)continue;if(-1===a.end)continue;const s=t[a.end];r=e.tokens[a.token],r.type="s_open",r.tag="s",r.nesting=1,r.markup="~~",r.content="",r=e.tokens[s.token],r.type="s_close",r.tag="s",r.nesting=-1,r.markup="~~",r.content="","text"===e.tokens[s.token-1].type&&"~"===e.tokens[s.token-1].content&&n.push(s.token-1)}for(;n.length;){const t=n.pop();let a=t+1;for(;a<e.tokens.length&&"s_close"===e.tokens[a].type;)a++;a--,t!==a&&(r=e.tokens[a],e.tokens[a]=e.tokens[t],e.tokens[t]=r)}}r.d(t,{A:()=>a});const a={tokenize:function(e,t){const r=e.pos,n=e.src.charCodeAt(r);if(t)return!1;if(126!==n)return!1;const a=e.scanDelims(e.pos,!0);let o=a.length;const s=String.fromCharCode(n);if(o<2)return!1;let i;o%2&&(i=e.push("text","",0),i.content=s,o--);for(let t=0;t<o;t+=2)i=e.push("text","",0),i.content=s+s,e.delimiters.push({marker:n,length:0,token:e.tokens.length-1,end:-1,open:a.can_open,close:a.can_close});return e.pos+=a.length,!0},postProcess:function(e){const t=e.tokens_meta,r=e.tokens_meta.length;n(e,e.delimiters);for(let a=0;a<r;a++)t[a]&&t[a].delimiters&&n(e,t[a].delimiters)}}},68597:(e,t,r)=>{"use strict";function n(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function a(e,t){let r=e.pos;for(;r<e.posMax&&!n(e.src.charCodeAt(r));)r++;return r!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,r)),e.pos=r,!0)}r.d(t,{A:()=>a})},57997:(e,t,r)=>{"use strict";function n(e,t,r){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=r,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}r.d(t,{A:()=>a}),n.prototype.attrIndex=function(e){if(!this.attrs)return-1;const t=this.attrs;for(let r=0,n=t.length;r<n;r++)if(t[r][0]===e)return r;return-1},n.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},n.prototype.attrSet=function(e,t){const r=this.attrIndex(e),n=[e,t];r<0?this.attrPush(n):this.attrs[r]=n},n.prototype.attrGet=function(e){const t=this.attrIndex(e);let r=null;return t>=0&&(r=this.attrs[t][1]),r},n.prototype.attrJoin=function(e,t){const r=this.attrIndex(e);r<0?this.attrPush([e,t]):this.attrs[r][1]=this.attrs[r][1]+" "+t};const a=n},25315:(e,t,r)=>{"use strict";r.r(t),r.d(t,{decode:()=>n.A,encode:()=>a.A,format:()=>o.A,parse:()=>s.A});var n=r(51227),a=r(10963),o=r(5840),s=r(26786)},51227:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});const n={};function a(e,t){"string"!=typeof t&&(t=a.defaultChars);const r=function(e){let t=n[e];if(t)return t;t=n[e]=[];for(let e=0;e<128;e++){const r=String.fromCharCode(e);t.push(r)}for(let r=0;r<e.length;r++){const n=e.charCodeAt(r);t[n]="%"+("0"+n.toString(16).toUpperCase()).slice(-2)}return t}(t);return e.replace(/(%[a-f0-9]{2})+/gi,(function(e){let t="";for(let n=0,a=e.length;n<a;n+=3){const o=parseInt(e.slice(n+1,n+3),16);if(o<128)t+=r[o];else{if(192==(224&o)&&n+3<a){const r=parseInt(e.slice(n+4,n+6),16);if(128==(192&r)){const e=o<<6&1984|63&r;t+=e<128?"��":String.fromCharCode(e),n+=3;continue}}if(224==(240&o)&&n+6<a){const r=parseInt(e.slice(n+4,n+6),16),a=parseInt(e.slice(n+7,n+9),16);if(128==(192&r)&&128==(192&a)){const e=o<<12&61440|r<<6&4032|63&a;t+=e<2048||e>=55296&&e<=57343?"���":String.fromCharCode(e),n+=6;continue}}if(240==(248&o)&&n+9<a){const r=parseInt(e.slice(n+4,n+6),16),a=parseInt(e.slice(n+7,n+9),16),s=parseInt(e.slice(n+10,n+12),16);if(128==(192&r)&&128==(192&a)&&128==(192&s)){let e=o<<18&1835008|r<<12&258048|a<<6&4032|63&s;e<65536||e>1114111?t+="����":(e-=65536,t+=String.fromCharCode(55296+(e>>10),56320+(1023&e))),n+=9;continue}}t+="�"}}return t}))}a.defaultChars=";/?:@&=+$,#",a.componentChars="";const o=a},10963:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});const n={};function a(e,t,r){"string"!=typeof t&&(r=t,t=a.defaultChars),void 0===r&&(r=!0);const o=function(e){let t=n[e];if(t)return t;t=n[e]=[];for(let e=0;e<128;e++){const r=String.fromCharCode(e);/^[0-9a-z]$/i.test(r)?t.push(r):t.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2))}for(let r=0;r<e.length;r++)t[e.charCodeAt(r)]=e[r];return t}(t);let s="";for(let t=0,n=e.length;t<n;t++){const a=e.charCodeAt(t);if(r&&37===a&&t+2<n&&/^[0-9a-f]{2}$/i.test(e.slice(t+1,t+3)))s+=e.slice(t,t+3),t+=2;else if(a<128)s+=o[a];else if(a>=55296&&a<=57343){if(a>=55296&&a<=56319&&t+1<n){const r=e.charCodeAt(t+1);if(r>=56320&&r<=57343){s+=encodeURIComponent(e[t]+e[t+1]),t++;continue}}s+="%EF%BF%BD"}else s+=encodeURIComponent(e[t])}return s}a.defaultChars=";/?:@&=+$,-_.!~*'()#",a.componentChars="-_.!~*'()";const o=a},5840:(e,t,r)=>{"use strict";function n(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}r.d(t,{A:()=>n})},26786:(e,t,r)=>{"use strict";function n(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}r.d(t,{A:()=>m});const a=/^([a-z0-9.+-]+:)/i,o=/:[0-9]*$/,s=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,i=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(i),c=["%","/","?",";","#"].concat(l),u=["/","?","#"],A=/^[+a-z0-9A-Z_-]{0,63}$/,g=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,d={javascript:!0,"javascript:":!0},p={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};n.prototype.parse=function(e,t){let r,n,o,i=e;if(i=i.trim(),!t&&1===e.split("#").length){const e=s.exec(i);if(e)return this.pathname=e[1],e[2]&&(this.search=e[2]),this}let l=a.exec(i);if(l&&(l=l[0],r=l.toLowerCase(),this.protocol=l,i=i.substr(l.length)),(t||l||i.match(/^\/\/[^@\/]+@[^@\/]+/))&&(o="//"===i.substr(0,2),!o||l&&d[l]||(i=i.substr(2),this.slashes=!0)),!d[l]&&(o||l&&!p[l])){let e,t,r=-1;for(let e=0;e<u.length;e++)n=i.indexOf(u[e]),-1!==n&&(-1===r||n<r)&&(r=n);t=-1===r?i.lastIndexOf("@"):i.lastIndexOf("@",r),-1!==t&&(e=i.slice(0,t),i=i.slice(t+1),this.auth=e),r=-1;for(let e=0;e<c.length;e++)n=i.indexOf(c[e]),-1!==n&&(-1===r||n<r)&&(r=n);-1===r&&(r=i.length),":"===i[r-1]&&r--;const a=i.slice(0,r);i=i.slice(r),this.parseHost(a),this.hostname=this.hostname||"";const o="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!o){const e=this.hostname.split(/\./);for(let t=0,r=e.length;t<r;t++){const r=e[t];if(r&&!r.match(A)){let n="";for(let e=0,t=r.length;e<t;e++)r.charCodeAt(e)>127?n+="x":n+=r[e];if(!n.match(A)){const n=e.slice(0,t),a=e.slice(t+1),o=r.match(g);o&&(n.push(o[1]),a.unshift(o[2])),a.length&&(i=a.join(".")+i),this.hostname=n.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),o&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const m=i.indexOf("#");-1!==m&&(this.hash=i.substr(m),i=i.slice(0,m));const h=i.indexOf("?");return-1!==h&&(this.search=i.substr(h),i=i.slice(0,h)),i&&(this.pathname=i),p[r]&&this.hostname&&!this.pathname&&(this.pathname=""),this},n.prototype.parseHost=function(e){let t=o.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};const m=function(e,t){if(e&&e instanceof n)return e;const r=new n;return r.parse(e,t),r}},80786:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=/[\0-\x1F\x7F-\x9F]/},14935:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/},60804:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},47795:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/},3506:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},68407:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Any:()=>n.A,Cc:()=>a.A,Cf:()=>o.A,P:()=>s.A,S:()=>i.A,Z:()=>l.A});var n=r(60905),a=r(80786),o=r(14935),s=r(60804),i=r(47795),l=r(3506)},60905:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},38377:e=>{"use strict";e.exports=JSON.parse('{"T":{"White":"#fff","Black":"#000","Gray":"#646970","Gray 0":"#f6f7f7","Gray 5":"#dcdcde","Gray 10":"#c3c4c7","Gray 20":"#a7aaad","Gray 30":"#8c8f94","Gray 40":"#787c82","Gray 50":"#646970","Gray 60":"#50575e","Gray 70":"#3c434a","Gray 80":"#2c3338","Gray 90":"#1d2327","Gray 100":"#101517","Blue":"#0675c4","Blue 0":"#e9f0f5","Blue 5":"#bbe0fa","Blue 10":"#91caf2","Blue 20":"#68b3e8","Blue 30":"#399ce3","Blue 40":"#1689db","Blue 50":"#0675c4","Blue 60":"#055d9c","Blue 70":"#044b7a","Blue 80":"#02395c","Blue 90":"#01283d","Blue 100":"#001621","Purple":"#984a9c","Purple 0":"#f2e9ed","Purple 5":"#ebcee0","Purple 10":"#e3afd5","Purple 20":"#d48fc8","Purple 30":"#c475bd","Purple 40":"#b35eb1","Purple 50":"#984a9c","Purple 60":"#7c3982","Purple 70":"#662c6e","Purple 80":"#4d2054","Purple 90":"#35163b","Purple 100":"#1e0c21","Pink":"#c9356e","Pink 0":"#f5e9ed","Pink 5":"#f2ceda","Pink 10":"#f7a8c3","Pink 20":"#f283aa","Pink 30":"#eb6594","Pink 40":"#e34c84","Pink 50":"#c9356e","Pink 60":"#ab235a","Pink 70":"#8c1749","Pink 80":"#700f3b","Pink 90":"#4f092a","Pink 100":"#260415","Red":"#d63638","Red 0":"#f7ebec","Red 5":"#facfd2","Red 10":"#ffabaf","Red 20":"#ff8085","Red 30":"#f86368","Red 40":"#e65054","Red 50":"#d63638","Red 60":"#b32d2e","Red 70":"#8a2424","Red 80":"#691c1c","Red 90":"#451313","Red 100":"#240a0a","Orange":"#b26200","Orange 0":"#f5ece6","Orange 5":"#f7dcc6","Orange 10":"#ffbf86","Orange 20":"#faa754","Orange 30":"#e68b28","Orange 40":"#d67709","Orange 50":"#b26200","Orange 60":"#8a4d00","Orange 70":"#704000","Orange 80":"#543100","Orange 90":"#361f00","Orange 100":"#1f1200","Yellow":"#9d6e00","Yellow 0":"#f5f1e1","Yellow 5":"#f5e6b3","Yellow 10":"#f2d76b","Yellow 20":"#f0c930","Yellow 30":"#deb100","Yellow 40":"#c08c00","Yellow 50":"#9d6e00","Yellow 60":"#7d5600","Yellow 70":"#674600","Yellow 80":"#4f3500","Yellow 90":"#320","Yellow 100":"#1c1300","Green":"#008a20","Green 0":"#e6f2e8","Green 5":"#b8e6bf","Green 10":"#68de86","Green 20":"#1ed15a","Green 30":"#00ba37","Green 40":"#00a32a","Green 50":"#008a20","Green 60":"#007017","Green 70":"#005c12","Green 80":"#00450c","Green 90":"#003008","Green 100":"#001c05","Celadon":"#008763","Celadon 0":"#e4f2ed","Celadon 5":"#a7e8d3","Celadon 10":"#66deb9","Celadon 20":"#31cc9f","Celadon 30":"#09b585","Celadon 40":"#009e73","Celadon 50":"#008763","Celadon 60":"#007053","Celadon 70":"#005c44","Celadon 80":"#004533","Celadon 90":"#003024","Celadon 100":"#001c15","Automattic Blue":"#24a3e0","Automattic Blue 0":"#ebf4fa","Automattic Blue 5":"#c4e2f5","Automattic Blue 10":"#88ccf2","Automattic Blue 20":"#5ab7e8","Automattic Blue 30":"#24a3e0","Automattic Blue 40":"#1490c7","Automattic Blue 50":"#0277a8","Automattic Blue 60":"#036085","Automattic Blue 70":"#02506e","Automattic Blue 80":"#02384d","Automattic Blue 90":"#022836","Automattic Blue 100":"#021b24","WordPress Blue":"#006088","WordPress Blue 0":"#e6f1f5","WordPress Blue 5":"#bedae6","WordPress Blue 10":"#98c6d9","WordPress Blue 20":"#6ab3d0","WordPress Blue 30":"#3895ba","WordPress Blue 40":"#187aa2","WordPress Blue 50":"#006088","WordPress Blue 60":"#004e6e","WordPress Blue 70":"#003c56","WordPress Blue 80":"#002c40","WordPress Blue 90":"#001d2d","WordPress Blue 100":"#00101c","Simplenote Blue":"#3361cc","Simplenote Blue 0":"#e9ecf5","Simplenote Blue 5":"#ced9f2","Simplenote Blue 10":"#abc1f5","Simplenote Blue 20":"#84a4f0","Simplenote Blue 30":"#618df2","Simplenote Blue 40":"#4678eb","Simplenote Blue 50":"#3361cc","Simplenote Blue 60":"#1d4fc4","Simplenote Blue 70":"#113ead","Simplenote Blue 80":"#0d2f85","Simplenote Blue 90":"#09205c","Simplenote Blue 100":"#05102e","WooCommerce Purple":"#7f54b3","WooCommerce Purple 0":"#f7edf7","WooCommerce Purple 5":"#e5cfe8","WooCommerce Purple 10":"#d6b4e0","WooCommerce Purple 20":"#c792e0","WooCommerce Purple 30":"#af7dd1","WooCommerce Purple 40":"#9a69c7","WooCommerce Purple 50":"#7f54b3","WooCommerce Purple 60":"#674399","WooCommerce Purple 70":"#533582","WooCommerce Purple 80":"#3c2861","WooCommerce Purple 90":"#271b3d","WooCommerce Purple 100":"#140e1f","Jetpack Green":"#069e08","Jetpack Green 0":"#f0f2eb","Jetpack Green 5":"#d0e6b8","Jetpack Green 10":"#9dd977","Jetpack Green 20":"#64ca43","Jetpack Green 30":"#2fb41f","Jetpack Green 40":"#069e08","Jetpack Green 50":"#008710","Jetpack Green 60":"#007117","Jetpack Green 70":"#005b18","Jetpack Green 80":"#004515","Jetpack Green 90":"#003010","Jetpack Green 100":"#001c09"}}')},54681:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/ai-assistant","title":"AI Assistant","description":"Elevate your content creation with our AI-powered Gutenberg Block, offering seamless customization and generation. Bear in mind that, as an evolving tool, occasional imprecision may occur.","keywords":["AI","GPT","AL","Magic","help","assistant"],"version":"12.5.0","textdomain":"jetpack","category":"text","icon":"<svg viewBox=\'0 0 32 32\' width=\'32\' height=\'32\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M9.33301 5.33325L10.4644 8.20188L13.333 9.33325L10.4644 10.4646L9.33301 13.3333L8.20164 10.4646L5.33301 9.33325L8.20164 8.20188L9.33301 5.33325Z\'/><path d=\'M21.3333 5.33333L22.8418 9.15817L26.6667 10.6667L22.8418 12.1752L21.3333 16L19.8248 12.1752L16 10.6667L19.8248 9.15817L21.3333 5.33333Z\'/><path d=\'M14.6667 13.3333L16.5523 18.1144L21.3333 20L16.5523 21.8856L14.6667 26.6667L12.781 21.8856L8 20L12.781 18.1144L14.6667 13.3333Z\'/></svg>","supports":{"html":false,"multiple":true,"reusable":false},"attributes":{"content":{"type":"string"},"originalContent":{"type":"string"},"promptType":{"type":"string"},"originalMessages":{"type":"array","default":[]},"messages":{"type":"array","default":[]},"userPrompt":{"type":"string","default":""},"requestingState":{"type":"string","default":"init"}},"example":{"attributes":{"content":"With **Jetpack AI Assistant**, you can provide a prompt, and it will generate high-quality blog posts, informative pages, well-organized lists, and thorough tables that meet your specific requirements.\\n\\nTo start using the **Jetpack AI Assistant**, type `/AI` in the block editor."}}}')},9050:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/business-hours","title":"Business Hours","description":"Display opening hours for your business.","keywords":["opening hours","closing time","schedule","working day"],"version":"12.5.0","textdomain":"jetpack","category":"grow","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z\'/></svg>","supports":{"html":true,"color":{"gradients":true},"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true},"align":["wide","full"]},"attributes":{"days":{"type":"array","default":[{"name":"Sun","hours":[]},{"name":"Mon","hours":[{"opening":"09:00","closing":"17:00"}]},{"name":"Tue","hours":[{"opening":"09:00","closing":"17:00"}]},{"name":"Wed","hours":[{"opening":"09:00","closing":"17:00"}]},{"name":"Thu","hours":[{"opening":"09:00","closing":"17:00"}]},{"name":"Fri","hours":[{"opening":"09:00","closing":"17:00"}]},{"name":"Sat","hours":[]}]}},"example":{"attributes":{"days":[{"name":"Sun","hours":[]},{"name":"Mon","hours":[{"opening":"09:00","closing":"17:00"}]},{"name":"Tue","hours":[{"opening":"09:00","closing":"17:00"}]},{"name":"Wed","hours":[{"opening":"09:00","closing":"17:00"}]},{"name":"Thu","hours":[{"opening":"09:00","closing":"17:00"}]},{"name":"Fri","hours":[{"opening":"09:00","closing":"17:00"}]},{"name":"Sat","hours":[]}]}}}')},13248:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/calendly","title":"Calendly","description":"Embed a calendar for customers to schedule appointments.","keywords":["calendar","schedule","appointments","events","dates"],"version":"12.5.0","textdomain":"jetpack","category":"grow","icon":"<svg viewBox=\'0 0 23 24\' width=\'23\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M19,1h-2.3v0c0-0.6-0.4-1-1-1c-0.6,0-1,0.4-1,1v0H8.6v0c0-0.6-0.4-1-1-1c-0.6,0-1,0.4-1,1v0H4C1.8,1,0,2.8,0,5 v15c0,2.2,1.8,4,4,4h15c2.2,0,4-1.8,4-4V5C23,2.8,21.2,1,19,1z M21,20c0,1.1-0.9,2-2,2H4c-1.1,0-2-0.9-2-2V5c0-1.1,0.9-2,2-2h2.6 v0.8c0,0.6,0.4,1,1,1c0.6,0,1-0.4,1-1V3h6.1v0.8c0,0.6,0.4,1,1,1c0.6,0,1-0.4,1-1V3H19c1.1,0,2,0.9,2,2V20z M13.9,14.8l1.4,1.4 c-0.9,0.9-2.1,1.3-3.5,1.3c-2.4,0-4.5-2.1-4.5-4.7s2.1-4.7,4.5-4.7c1.4,0,2.5,0.4,3.4,1.1L14,10.9c-0.5-0.4-1.2-0.6-2.1-0.6 c-1.2,0-2.5,1.1-2.5,2.7c0,1.6,1.3,2.7,2.5,2.7C12.7,15.5,13.4,15.3,13.9,14.8z\'/></svg>","supports":{"align":true,"alignWide":false,"html":false},"attributes":{"backgroundColor":{"type":"string","default":"ffffff"},"hideEventTypeDetails":{"type":"boolean","default":false},"primaryColor":{"type":"string","default":"00A2FF"},"textColor":{"type":"string","default":"4D5055"},"style":{"type":"string","default":"inline","enum":["inline","link"]},"url":{"type":"string"}},"example":{"attributes":{"hideEventTypeDetails":false,"style":"inline","url":"https://calendly.com/wpcom/jetpack-block-example"},"innerBlocks":[{"name":"jetpack/button","attributes":{"element":"a","text":"Schedule time with me","uniqueId":"calendly-widget-id","url":"https://calendly.com/wpcom/jetpack-block-example"}}]}}')},75173:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/contact-info","title":"Contact Info","description":"Add an email address, phone number, and physical address with improved markup for better SEO results.","keywords":["email","phone","address"],"version":"12.5.0","textdomain":"jetpack","category":"grow","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M19 5v14H5V5h14m0-2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 9c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3zm0-4c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm6 10H6v-1.53c0-2.5 3.97-3.58 6-3.58s6 1.08 6 3.58V18zm-9.69-2h7.38c-.69-.56-2.38-1.12-3.69-1.12s-3.01.56-3.69 1.12z\'/></svg>","supports":{"align":["wide","full"],"html":false,"color":{"link":true,"gradients":true},"spacing":{"padding":true,"margin":true},"typography":{"fontSize":true,"lineHeight":true}},"example":{"attributes":{},"innerBlocks":[{"name":"jetpack/email","attributes":{"email":"hello@yourjetpack.blog"}},{"name":"jetpack/phone","attributes":{"phone":"123-456-7890"}},{"name":"jetpack/address","attributes":{"address":"987 Photon Drive","city":"Speedyville","region":"CA","postal":"12345","country":"USA"}}]}}')},87325:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/donations","title":"Donations Form","description":"Collect one-time, monthly, or annually recurring donations.","keywords":["charity","contribution","credit card","debit card","donate","earn","monetize","ecommerce","fundraising","fundraiser","gofundme","money","nonprofit","non-profit","paid","patreon","pay","payments","recurring","stripe","sponsor","square","tipping","venmo"],"version":"12.5.0","textdomain":"jetpack","category":"monetize","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M16.5 4.5c2.206 0 4 1.794 4 4 0 4.67-5.543 8.94-8.5 11.023C9.043 17.44 3.5 13.17 3.5 8.5c0-2.206 1.794-4 4-4 1.298 0 2.522.638 3.273 1.706L12 7.953l1.227-1.746c.75-1.07 1.975-1.707 3.273-1.707m0-1.5c-1.862 0-3.505.928-4.5 2.344C11.005 3.928 9.362 3 7.5 3 4.462 3 2 5.462 2 8.5c0 5.72 6.5 10.438 10 12.85 3.5-2.412 10-7.13 10-12.85C22 5.462 19.538 3 16.5 3z\' /></svg>","supports":{"html":false},"attributes":{"currency":{"type":"string","default":""},"oneTimeDonation":{"type":"object","default":{"show":true,"planId":null,"amounts":[5,15,100]}},"monthlyDonation":{"type":"object","default":{"show":true,"planId":null,"amounts":[5,15,100]}},"annualDonation":{"type":"object","default":{"show":true,"planId":null,"amounts":[5,15,100]}},"showCustomAmount":{"type":"boolean","default":true},"chooseAmountText":{"type":"string"},"customAmountText":{"type":"string"},"fallbackLinkUrl":{"type":"string"}},"example":{}}')},82306:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/eventbrite","title":"Eventbrite Checkout","description":"Embed Eventbrite event details and ticket checkout.","keywords":["events","tickets"],"version":"12.5.0","textdomain":"jetpack","category":"embed","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M18.041,3.931L5.959,3C4.325,3,3,4.325,3,5.959v12.083C3,19.675,4.325,21,5.959,21l12.083-0.931C19.699,19.983,21,18.744,21,17.11V6.89C21,5.256,19.741,4.027,18.041,3.931zM16.933,8.17c-0.082,0.215-0.192,0.432-0.378,0.551c-0.188,0.122-0.489,0.132-0.799,0.132c-1.521,0-3.062-0.048-4.607-0.048c-0.152,0.708-0.304,1.416-0.451,2.128c0.932-0.004,1.873,0.005,2.81,0.005c0.726,0,1.462-0.069,1.586,0.525c0.04,0.189-0.001,0.426-0.052,0.615c-0.105,0.38-0.258,0.676-0.625,0.783c-0.185,0.054-0.408,0.058-0.646,0.058c-1.145,0-2.345,0.017-3.493,0.02c-0.169,0.772-0.328,1.553-0.489,2.333c1.57-0.005,3.067-0.041,4.633-0.058c0.627-0.007,1.085,0.194,1.009,0.85c-0.031,0.262-0.098,0.497-0.211,0.725c-0.102,0.208-0.248,0.376-0.488,0.452c-0.237,0.075-0.541,0.064-0.862,0.078c-0.304,0.014-0.614,0.008-0.924,0.016c-0.309,0.009-0.619,0.022-0.919,0.022c-1.253,0-2.429,0.08-3.683,0.073c-0.603-0.004-1.014-0.249-1.124-0.757c-0.059-0.273-0.018-0.58,0.036-0.841c0.541-2.592,1.083-5.176,1.629-7.763c0.056-0.265,0.114-0.511,0.225-0.714C9.279,7.051,9.534,6.834,9.9,6.735c0.368-0.099,0.883-0.047,1.344-0.047c0.305,0,0.612,0.008,0.914,0.016c0.925,0.026,1.817,0.03,2.747,0.053c0.304,0.007,0.615,0.016,0.915,0.016c0.621,0,1.17,0.073,1.245,0.614C17.104,7.675,17.014,7.954,16.933,8.17z\'/></svg>","supports":{"html":false,"align":true},"attributes":{"url":{"type":"string"},"eventId":{"type":"number"},"style":{"type":"string","default":"inline"}},"example":{"attributes":{"url":"https://www.eventbrite.com/e/test-event-tickets-123456789","eventId":123456789,"style":"modal"},"innerBlocks":[{"name":"jetpack/button","attributes":{"element":"a","text":"Register","uniqueId":"eventbrite-widget-id"}}]}}')},5564:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/gif","title":"GIF","description":"Search for and insert an animated image.","keywords":["animated","giphy","image"],"version":"12.5.0","textdomain":"jetpack","category":"embed","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path fill=\'none\' d=\'M0 0h24v24H0V0z\'/><path d=\'M18 13v7H4V6h5.02c.05-.71.22-1.38.48-2H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-5l-2-2zm-1.5 5h-11l2.75-3.53 1.96 2.36 2.75-3.54L16.5 18zm2.8-9.11c.44-.7.7-1.51.7-2.39C20 4.01 17.99 2 15.5 2S11 4.01 11 6.5s2.01 4.5 4.49 4.5c.88 0 1.7-.26 2.39-.7L21 13.42 22.42 12 19.3 8.89zM15.5 9C14.12 9 13 7.88 13 6.5S14.12 4 15.5 4 18 5.12 18 6.5 16.88 9 15.5 9z\'/></svg>","supports":{"html":false,"align":true},"attributes":{"align":{"type":"string","default":"center"},"caption":{"type":"string"},"giphyUrl":{"type":"string"},"searchText":{"type":"string"},"paddingTop":{"type":"string","default":"56.2%"}},"example":{"attributes":{"align":"center","giphyUrl":"https://giphy.com/embed/fxKWgoOG9hzPPkE1oc","paddingTop":"100%","searchText":"WordPress"}}}')},76862:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/google-calendar","title":"Google Calendar","description":"Embed a Google Calendar.","keywords":["events","dates","schedule","appointments"],"version":"12.5.0","textdomain":"jetpack","category":"embed","icon":"<svg viewBox=\'0 0 24 23\' width=\'24\' height=\'23\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M19.5,23h-15c-2.2,0-4-1.8-4-4V4c0-2.2,1.8-4,4-4h15c2.2,0,4,1.8,4,4v15C23.5,21.2,21.7,23,19.5,23z M4.5,2 c-1.1,0-2,0.9-2,2v15c0,1.1,0.9,2,2,2h15c1.1,0,2-0.9,2-2V4c0-1.1-0.9-2-2-2H4.5z M6.9,3.9L6.9,3.9c0.5,0,0.9,0.4,0.9,0.9V5 c0,0.5-0.4,0.9-0.9,0.9l0,0C6.5,5.9,6.1,5.5,6.1,5V4.7C6.1,4.3,6.5,3.9,6.9,3.9z M17,3.9L17,3.9c0.5,0,0.9,0.4,0.9,0.9V5 c0,0.5-0.4,0.9-0.9,0.9l0,0c-0.5,0-0.9-0.4-0.9-0.9V4.7C16.2,4.3,16.5,3.9,17,3.9z M8.8,17.6c1.8,0,3.2-1,3.2-2.4 c0-1.1-0.7-1.8-1.8-1.9v-0.1c0.9-0.2,1.5-0.9,1.5-1.8c0-1.3-1.2-2.2-2.9-2.2c-1.8,0-2.9,1-3,2.5h1.6c0-0.7,0.6-1.1,1.4-1.1 c0.8,0,1.3,0.4,1.3,1.1c0,0.7-0.5,1.1-1.3,1.1h-1v1.3h1c0.9,0,1.5,0.4,1.5,1.1c0,0.7-0.6,1.2-1.4,1.2c-0.9,0-1.4-0.4-1.5-1.1H5.7 C5.8,16.6,7,17.6,8.8,17.6z M17.6,17.4V9.3h-1.7l-2.1,1.4v1.6l2-1.4h0.1v6.4H17.6z\'/></svg>","supports":{"align":true,"alignWide":true,"html":false},"attributes":{"url":{"type":"string"},"height":{"type":"integer","default":600}},"example":{"attributes":{"url":"https://calendar.google.com/calendar/embed?src=jb4bu80jirp0u11a6niie21pp4%40group.calendar.google.com&ctz=America/New_York"}}}')},89525:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/instagram-gallery","title":"Latest Instagram Posts","description":"Display an automatically updating list of the latest posts from your Instagram feed.","keywords":["images","photos","pictures"],"version":"12.5.0","textdomain":"jetpack","category":"embed","icon":"<svg width=\'24\' height=\'24\' viewBox=\'0 0 24 24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M12 4.622c2.403 0 2.688.01 3.637.052.877.04 1.354.187 1.67.31.42.163.72.358 1.036.673.315.315.51.615.673 1.035.123.317.27.794.31 1.67.043.95.052 1.235.052 3.638s-.01 2.688-.052 3.637c-.04.877-.187 1.354-.31 1.67-.163.42-.358.72-.673 1.036-.315.315-.615.51-1.035.673-.317.123-.794.27-1.67.31-.95.043-1.234.052-3.638.052s-2.688-.01-3.637-.052c-.877-.04-1.354-.187-1.67-.31-.42-.163-.72-.358-1.036-.673-.315-.315-.51-.615-.673-1.035-.123-.317-.27-.794-.31-1.67-.043-.95-.052-1.235-.052-3.638s.01-2.688.052-3.637c.04-.877.187-1.354.31-1.67.163-.42.358-.72.673-1.036.315-.315.615-.51 1.035-.673.317-.123.794-.27 1.67-.31.95-.043 1.235-.052 3.638-.052M12 3c-2.444 0-2.75.01-3.71.054s-1.613.196-2.185.418c-.592.23-1.094.538-1.594 1.04-.5.5-.807 1-1.037 1.593-.223.572-.375 1.226-.42 2.184C3.01 9.25 3 9.555 3 12s.01 2.75.054 3.71.196 1.613.418 2.186c.23.592.538 1.094 1.038 1.594s1.002.808 1.594 1.038c.572.222 1.227.375 2.185.418.96.044 1.266.054 3.71.054s2.75-.01 3.71-.054 1.613-.196 2.186-.418c.592-.23 1.094-.538 1.594-1.038s.808-1.002 1.038-1.594c.222-.572.375-1.227.418-2.185.044-.96.054-1.266.054-3.71s-.01-2.75-.054-3.71-.196-1.613-.418-2.186c-.23-.592-.538-1.094-1.038-1.594s-1.002-.808-1.594-1.038c-.572-.222-1.227-.375-2.185-.418C14.75 3.01 14.445 3 12 3zm0 4.378c-2.552 0-4.622 2.07-4.622 4.622s2.07 4.622 4.622 4.622 4.622-2.07 4.622-4.622S14.552 7.378 12 7.378zM12 15c-1.657 0-3-1.343-3-3s1.343-3 3-3 3 1.343 3 3-1.343 3-3 3zm4.804-8.884c-.596 0-1.08.484-1.08 1.08s.484 1.08 1.08 1.08c.596 0 1.08-.484 1.08-1.08s-.483-1.08-1.08-1.08z\'></path></svg>","supports":{"align":true,"html":false},"attributes":{"accessToken":{"type":"string"},"instagramUser":{"type":"string"},"columns":{"type":"number","default":3,"min":1,"max":6},"count":{"type":"number","default":9,"min":1,"max":30},"spacing":{"type":"number","default":10,"min":0,"max":50},"isStackedOnMobile":{"type":"boolean","default":true}}}')},37120:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/mailchimp","title":"Mailchimp","description":"Allow readers to join a Mailchimp audience.","keywords":["email","subscription","newsletter"],"version":"12.5.0","textdomain":"jetpack","category":"grow","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'m16.88,11.25c.17-.02.34-.02.49,0,.09-.2.1-.55.02-.93-.12-.57-.28-.91-.61-.86-.33.05-.34.46-.22,1.03.07.32.19.59.32.76\'/><path d=\'m14.03,11.7c.24.1.38.17.44.11.04-.04.03-.11-.03-.2-.12-.19-.36-.38-.61-.49-.52-.22-1.14-.15-1.62.19-.16.12-.31.28-.29.37,0,.03.03.06.09.06.13.01.59-.22,1.11-.25.37-.02.68.09.92.2\'/><path d=\'m13.56,11.97c-.31.05-.48.15-.59.25-.09.08-.15.17-.15.23,0,.03.01.05.02.06.01.01.03.02.05.02.07,0,.23-.06.23-.06.43-.15.71-.13.99-.1.16.02.23.03.26-.03.01-.02.02-.05,0-.1-.07-.12-.38-.32-.81-.26\'/><path d=\'m15.92,12.97c.21.1.44.06.52-.09s-.03-.36-.24-.46c-.21-.1-.44-.06-.52.09-.08.15.03.36.24.46\'/><path d=\'m17.26,11.79c-.17,0-.31.18-.32.42s.13.42.3.43.31-.18.32-.42c0-.23-.13-.42-.3-.43\'/><path d=\'m5.83,16c-.04-.05-.11-.04-.18-.02-.05.01-.1.02-.16.02-.13,0-.23-.06-.29-.15-.08-.12-.07-.3.01-.5l.04-.09c.14-.31.36-.82.11-1.31-.19-.37-.51-.6-.89-.64-.36-.05-.74.09-.98.35-.38.42-.44.98-.36,1.18.03.07.07.09.1.1.06,0,.16-.04.22-.2l.02-.05c.03-.08.08-.24.16-.37.1-.15.25-.26.43-.29.18-.04.37,0,.52.1.26.17.37.5.25.8-.06.16-.15.46-.13.72.04.51.35.71.63.73.27.01.46-.14.51-.25.03-.07,0-.11-.01-.12\'/><path d=\'m8.42,6.69c.89-1.03,1.98-1.92,2.96-2.42.03-.02.07.02.05.05-.08.14-.23.44-.28.67,0,.04.03.06.06.04.61-.42,1.67-.86,2.6-.92.04,0,.06.05.03.07-.14.11-.3.26-.41.41-.02.03,0,.06.03.06.65,0,1.57.23,2.17.57.04.02.01.1-.03.09-.91-.21-2.4-.37-3.94.01-1.38.34-2.43.86-3.2,1.41-.04.03-.09-.02-.05-.06h0Zm4.43,9.95h0s0,0,0,0h0Zm3.67.43s.04-.04.04-.07c0-.04-.04-.06-.07-.06,0,0-1.9.28-3.69-.38.2-.63.71-.41,1.5-.34,1.41.08,2.68-.12,3.62-.39.81-.23,1.88-.69,2.71-1.35.28.61.38,1.29.38,1.29,0,0,.22-.04.4.07.17.11.3.32.21.89-.17,1.05-.62,1.91-1.38,2.7-.46.49-1.02.92-1.65,1.24-.34.18-.7.33-1.08.46-2.84.93-5.75-.09-6.69-2.28-.07-.16-.14-.34-.19-.52-.4-1.44-.06-3.17,1-4.27h0c.07-.07.13-.15.13-.25,0-.09-.05-.18-.1-.24-.37-.54-1.66-1.45-1.4-3.23.19-1.27,1.3-2.17,2.34-2.12l.26.02c.45.03.84.08,1.21.1.62.03,1.18-.06,1.84-.61.22-.19.4-.35.7-.4.03,0,.11-.03.27-.03.16,0,.31.05.45.14.53.35.6,1.21.63,1.83.02.36.06,1.22.07,1.47.03.57.18.65.48.75.17.06.33.1.56.16.7.2,1.12.4,1.38.65.16.16.23.33.25.49.08.6-.47,1.35-1.93,2.03-1.59.74-3.53.93-4.87.78l-.47-.05c-1.07-.14-1.68,1.24-1.04,2.18.41.61,1.54,1.01,2.67,1.01,2.58,0,4.57-1.1,5.31-2.06l.06-.08c.04-.05,0-.08-.04-.05-.6.41-3.28,2.05-6.15,1.56,0,0-.35-.06-.67-.18-.25-.1-.78-.34-.85-.88,2.31.72,3.77.04,3.77.04h0ZM3.8,11.57c-.8.16-1.51.61-1.95,1.24-.26-.22-.74-.63-.83-.8-.69-1.31.76-3.87,1.77-5.32C5.3,3.13,9.21.43,11.02.92c.29.08,1.27,1.21,1.27,1.21,0,0-1.81,1.01-3.49,2.41-2.26,1.74-3.97,4.28-5,7.03h0Zm1.35,6.03c-.12.02-.25.03-.37.03-1.21-.03-2.52-1.12-2.65-2.42-.14-1.43.59-2.53,1.88-2.79.15-.03.34-.05.54-.04.72.04,1.79.6,2.04,2.17.22,1.4-.13,2.82-1.44,3.04h0Zm16.4-2.53s-.08-.28-.17-.58c-.09-.3-.19-.51-.19-.51.37-.56.38-1.06.33-1.34-.05-.35-.2-.65-.49-.96-.29-.31-.89-.62-1.74-.86l-.44-.12s-.02-1.04-.04-1.48c-.01-.32-.04-.82-.2-1.31-.18-.66-.5-1.24-.9-1.61,1.1-1.14,1.79-2.4,1.79-3.48,0-2.08-2.56-2.71-5.7-1.4l-.67.28s-1.2-1.18-1.22-1.2C8.33-2.63-2.89,9.84.7,12.86l.78.66c-.2.53-.28,1.13-.22,1.78.08.83.51,1.63,1.21,2.25.66.59,1.53.96,2.37.96,1.4,3.21,4.58,5.19,8.32,5.3,4.01.12,7.37-1.76,8.78-5.14.09-.24.48-1.31.48-2.25s-.54-1.34-.88-1.34\'/></svg>","supports":{"align":["wide","full"],"color":{"gradients":true},"spacing":{"padding":true,"margin":true}},"attributes":{"emailPlaceholder":{"type":"string"},"consentText":{"type":"string"},"interests":{"type":"array","default":[]},"processingLabel":{"type":"string"},"signupFieldTag":{"type":"string"},"signupFieldValue":{"type":"string"},"successLabel":{"type":"string"},"errorLabel":{"type":"string"},"preview":{"type":"boolean","default":false}},"example":{"attributes":{"preview":true},"innerBlocks":[{"name":"jetpack/button","attributes":{"element":"button","text":"Join my Mailchimp audience","uniqueId":"mailchimp-widget-id"}}]}}')},55740:e=>{"use strict";e.exports=JSON.parse('[{"id":"mapbox-gl-js","file":"node_modules/mapbox-gl/dist/mapbox-gl.js","version":"1.13.0"},{"id":"mapbox-gl-css","file":"node_modules/mapbox-gl/dist/mapbox-gl.css","version":"1.13.0"}]')},6852:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/map","title":"Map","description":"Add an interactive map showing one or more locations.","keywords":["maps","location","navigation"],"version":"12.5.0","textdomain":"jetpack","category":"embed","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path fill=\'none\' d=\'M0 0h24v24H0V0z\' /><path d=\'M20.5 3l-.16.03L15 5.1 9 3 3.36 4.9c-.21.07-.36.25-.36.48V20.5c0 .28.22.5.5.5l.16-.03L9 18.9l6 2.1 5.64-1.9c.21-.07.36-.25.36-.48V3.5c0-.28-.22-.5-.5-.5zM10 5.47l4 1.4v11.66l-4-1.4V5.47zm-5 .99l3-1.01v11.7l-3 1.16V6.46zm14 11.08l-3 1.01V6.86l3-1.16v11.84z\' /></svg>","supports":{"defaultStylePicker":false,"html":false},"attributes":{"align":{"type":"string"},"points":{"type":"array","default":[]},"address":{"type":"string","default":""},"mapDetails":{"type":"boolean","default":true},"zoom":{"type":"integer","default":13},"mapCenter":{"type":"object","default":{"longitude":-122.41941550000001,"latitude":37.7749295}},"markerColor":{"type":"string","default":"red"},"scrollToZoom":{"type":"boolean","default":false},"mapHeight":{"type":"integer"},"showFullscreenButton":{"type":"boolean","default":true}},"example":{}}')},73431:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/markdown","title":"Markdown","description":"Add headings, lists, or links to plain text with ease.","keywords":["formatting","syntax","markup"],"version":"12.5.0","textdomain":"jetpack","category":"text","icon":"<svg viewBox=\'0 0 208 128\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><rect width=\'198\' height=\'118\' x=\'5\' y=\'5\' ry=\'10\' stroke=\'currentColor\' strokeWidth=\'10\' fill=\'none\' /><path d=\'M30 98v-68h20l20 25 20-25h20v68h-20v-39l-20 25-20-25v39zM155 98l-30-33h20v-35h20v35h20z\' />","supports":{"align":["wide","full"],"html":false,"spacing":{"padding":true,"margin":true,"__experimentalDefaultControls":{"padding":true,"margin":true}}},"attributes":{"source":{"type":"string"}},"example":{"attributes":{"source":"## ## Try Markdown\\n\\nMarkdown is a text formatting syntax that is converted into HTML. You can _emphasize_ text or **make it strong** with just a few characters."}}}')},79018:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/opentable","title":"OpenTable","description":"Book a reservation with OpenTable.","keywords":["booking","reservation","restaurant"],"version":"12.5.0","textdomain":"jetpack","category":"monetize","icon":"<svg viewBox=\'0 0 22 16\' width=\'22\' height=\'16\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'m1.997 5.982c-.39457-.00039-.7804.11622-1.108699.33511-.328295.21888-.584312.5302-.735674.89459-.15136174.36439-.1912714.76548-.1146819 1.15254.0765899.38707.2662379.74274.5449639 1.02202.278726.27929.634011.46965 1.020921.54702.38692.07732.78809.03826 1.15278-.11238.36469-.15063.67652-.40602.89606-.73387.21954-.32786.33693-.71345.33733-1.10803v-.002c.001-1.1-.89-1.994-1.992-1.995zm12.006 3.988c-.3946.0004-.7805-.11625-1.1088-.33517-.3283-.21893-.5843-.53031-.7357-.89476-.1513-.36444-.1912-.76558-.1145-1.15268s.2664-.74276.5453-1.022c.2788-.27925.6342-.46953 1.0211-.54679.387-.07725.7882-.038 1.1529.11278.3647.15079.6764.40634.8959.73432.2194.32799.3366.71369.3368 1.1083v.003c.0003.52814-.2092 1.03477-.5824 1.4085s-.8795.58397-1.4076.5845zm0-9.96999843c-1.5777-.0009886-3.1203.46588743-4.43262 1.34158843-1.31236.8757-2.33558 2.1209-2.94025 3.57813-.60467 1.45722-.76365 3.06103-.45683 4.60861.30683 1.54757 1.06567 2.96947 2.18058 4.08577 1.1149 1.1163 2.53582 1.8769 4.08302 2.1856 1.5472.3088 3.1512.1518 4.6091-.451 1.458-.6028 2.7045-1.6245 3.5819-2.9358.8773-1.3112 1.3461-2.8532 1.3471-4.4309v-.005c.0008-2.11466-.8384-4.14304-2.3331-5.63899-1.4946-1.495952-3.5222-2.3369478-5.6369-2.33800843z\' /></svg>","supports":{"align":true,"html":false},"attributes":{"rid":{"default":[],"type":"array"},"style":{"default":"standard","type":"string","enum":["button","standard","wide","tall"]},"iframe":{"default":true,"type":"boolean"},"domain":{"default":"com","type":"string"},"lang":{"default":"en-US","type":"string","enum":["en-US","fr-CA","de-DE","es-MX","ja-JP","nl-NL","it-IT"]},"newtab":{"default":false,"type":"boolean"},"negativeMargin":{"default":false,"type":"boolean"}},"example":{"attributes":{"rid":["1"],"style":"standard","iframe":true,"domain":"com","lang":"en-US","newtab":false,"negativeMargin":false}}}')},73800:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/pinterest","title":"Pinterest","description":"Embed a Pinterest pin, board, or user.","keywords":["social","pinboard","pins"],"version":"12.5.0","textdomain":"jetpack","category":"embed","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M12,2C6.477,2,2,6.477,2,12c0,4.236,2.636,7.855,6.356,9.312c-0.087-0.791-0.166-2.005,0.035-2.869c0.182-0.78,1.173-4.971,1.173-4.971s-0.299-0.599-0.299-1.484c0-1.39,0.806-2.429,1.809-2.429c0.853,0,1.265,0.641,1.265,1.409c0,0.858-0.546,2.141-0.828,3.329c-0.236,0.996,0.499,1.807,1.481,1.807c1.777,0,3.144-1.874,3.144-4.579c0-2.394-1.72-4.068-4.177-4.068c-2.845,0-4.515,2.134-4.515,4.34c0,0.859,0.331,1.781,0.744,2.282c0.082,0.099,0.094,0.186,0.069,0.287C8.18,14.682,8.011,15.361,7.978,15.5c-0.044,0.183-0.145,0.222-0.334,0.134c-1.249-0.581-2.03-2.407-2.03-3.874c0-3.154,2.292-6.051,6.607-6.051c3.469,0,6.165,2.472,6.165,5.775c0,3.446-2.173,6.22-5.189,6.22c-1.013,0-1.966-0.526-2.292-1.148c0,0-0.501,1.909-0.623,2.377c-0.226,0.869-0.835,1.957-1.243,2.622C9.975,21.844,10.969,22,12,22c5.523,0,10-4.477,10-10C22,6.477,17.523,2,12,2z\'/></svg>","supports":{"html":false,"align":false,"inserter":false},"attributes":{"url":{"type":"string"}},"example":{"attributes":{"url":"https://pinterest.com/anapinskywalker/"}}}')},8206:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/rating-star","title":"Star Rating","description":"Rate movies, books, songs, recipes — anything you can put a number on.","keywords":["star","rating","review"],"version":"12.5.0","textdomain":"jetpack","category":"widgets","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z\'/></svg>","supports":{"html":false},"styles":[{"name":"filled","label":"Filled","isDefault":true},{"name":"outlined","label":"Outlined"}],"attributes":{"rating":{"type":"number","default":1},"maxRating":{"type":"number","default":5},"color":{"type":"string"},"ratingStyle":{"type":"string","default":"star"},"className":{"type":"string"},"align":{"type":"string","default":"left"}},"example":{}}')},88795:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/related-posts","title":"Related Posts","description":"Display a list of related posts.","keywords":["similar content","linked","connected"],"version":"12.5.0","textdomain":"jetpack","category":"embed","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'m19.5,3.5H3.5v4.94s.01,6,.01,6v4s-.01,0-.01,0v1h15.97v-.06h.05l-.02-15.88Zm-11,1v3.94s-3.99,0-3.99,0v-3.94s3.99,0,3.99,0Zm.01,4.94v4h-4v-4h4Zm-3.99,9v-4s3.99,0,3.99,0v4s-3.99,0-3.99,0Zm13.98-13.94v3.94s-8.99,0-8.99,0v-3.94s8.99,0,8.99,0Zm.01,4.94v4h-9v-4h9Zm-8.99,9v-4s8.99,0,8.99,0v4s-8.99,0-8.99,0Z\'/></svg>","supports":{"html":false,"multiple":false,"reusable":false,"color":{"gradients":true,"link":true},"spacing":{"margin":true,"padding":true},"typography":{"__experimentalFontFamily":true,"fontSize":true,"lineHeight":true},"align":["wide","full"]},"attributes":{"postLayout":{"type":"string","default":"grid"},"displayAuthor":{"type":"boolean","default":false},"displayDate":{"type":"boolean","default":true},"displayThumbnails":{"type":"boolean","default":false},"displayContext":{"type":"boolean","default":false},"postsToShow":{"type":"number","default":3}},"example":{"attributes":{"postLayout":"grid","displayAuthor":false,"displayDate":true,"displayThumbnails":true,"displayContext":false,"postsToShow":2}}}')},20242:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/repeat-visitor","title":"Repeat Visitor","description":"Control block visibility based on how often a visitor has viewed the page.","keywords":["return","visitors","visibility"],"version":"12.5.0","textdomain":"jetpack","category":"widgets","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z\'/></svg>","supports":{"align":["wide","full"],"html":false},"attributes":{"criteria":{"type":"string","default":"after-visits"},"threshold":{"type":"number","default":3}},"example":{"attributes":{"criteria":"after-visits","threshold":3},"innerBlocks":[{"name":"core/paragraph","attributes":"This block will only appear to a visitor who visited the page three or more times."}]}}')},16668:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/simple-payments","title":"Pay with PayPal","description":"Add credit and debit card payment buttons with minimal setup. Good for collecting donations or payments for products and services.","keywords":["buy","commerce","credit card","debit card","monetize","earn","ecommerce","money","paid","payments","products","purchase","sell","shop","square","payments"],"version":"12.5.0","textdomain":"jetpack","category":"monetize","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path fill=\'none\' d=\'M0 0h24v24H0V0z\' /><path d=\'M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z\' /></svg>","supports":{"className":false,"customClassName":false,"html":false,"reusable":false},"attributes":{"currency":{"type":"string","default":"USD"},"content":{"type":"string","source":"html","selector":".jetpack-simple-payments-description p","default":""},"email":{"type":"string","default":""},"featuredMediaId":{"type":"number","default":0},"featuredMediaUrl":{"type":"string","source":"attribute","selector":".jetpack-simple-payments-image img","attribute":"src","default":null},"featuredMediaTitle":{"type":"string","source":"attribute","selector":".jetpack-simple-payments-image img","attribute":"alt","default":null},"multiple":{"type":"boolean","default":false},"postLinkUrl":{"type":"string","source":"attribute","selector":".jetpack-simple-payments-purchase","attribute":"href"},"postLinkText":{"type":"string","source":"html","selector":".jetpack-simple-payments-purchase","default":"Click here to purchase."},"price":{"type":"number"},"productId":{"type":"number"},"title":{"type":"string","source":"html","selector":".jetpack-simple-payments-title p","default":""}},"example":{"attributes":{"price":25,"title":"Jetpack t-shirt","content":"Take flight in ultimate comfort with this stylish t-shirt featuring the Jetpack logo.","email":"jetpack@jetpack.com","featuredMediaUrl":"./simple-payments_example-1.jpg"}}}')},87762:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/slideshow","title":"Slideshow","description":"Display multiple images in sequential order.","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\'><path d=\'m19,21.5H6v-1h13c.83,0,1.5-.67,1.5-1.5v-11h1v11c0,1.38-1.12,2.5-2.5,2.5Z\'/><path d=\'m16.38,3.25H4.62c-.75,0-1.37.62-1.37,1.37v11.76c0,.75.62,1.37,1.37,1.37h11.76c.75,0,1.37-.62,1.37-1.37V4.62c0-.75-.62-1.37-1.37-1.37Zm.37,13.13c0,.2-.17.37-.37.37H4.62c-.2,0-.37-.17-.37-.37V4.62c0-.2.17-.37.37-.37h11.76c.2,0,.37.17.37.37v11.76Z\'/><path d=\'M9.39 7.51 12.73 11.04 9.31 14.32 8.61 13.6 11.34 10.99 8.67 8.2 9.39 7.51z\'/></svg>","supports":{"html":false,"align":["center","wide","full"]},"attributes":{"align":{"default":"center","type":"string"},"autoplay":{"type":"boolean","default":false},"delay":{"type":"number","default":3},"ids":{"default":[],"type":"array"},"images":{"type":"array","default":[],"source":"query","selector":".swiper-slide","query":{"alt":{"source":"attribute","selector":"img","attribute":"alt","default":""},"caption":{"type":"string","source":"html","selector":"figcaption"},"id":{"source":"attribute","selector":"img","attribute":"data-id"},"url":{"source":"attribute","selector":"img","attribute":"src"}}},"effect":{"type":"string","default":"slide"},"sizeSlug":{"type":"string"}},"example":{"align":"center","autoplay":true,"ids":[22,23,24],"images":[{"alt":"","caption":"","id":22,"url":"./slideshowExample1.png"},{"alt":"","caption":"","id":23,"url":"./slideshowExample2.png"},{"alt":"","caption":"","id":24,"url":"./slideshowExample3.png"}],"effect":"slide"}}')},76585:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/tiled-gallery","title":"Tiled Gallery","description":"Display multiple images in an elegantly organized tiled layout.","keywords":["columns","images","photos","pictures","square","circle","mosaic"],"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\'><path d=\'M19 5v2h-4V5h4M9 5v6H5V5h4m10 8v6h-4v-6h4M9 17v2H5v-2h4M21 3h-8v6h8V3zM11 3H3v10h8V3zm10 8h-8v10h8V11zm-10 4H3v6h8v-6z\'/></svg>","supports":{"align":["center","wide","full"],"color":{"gradients":true,"text":false},"customClassName":false,"html":false,"spacing":{"margin":true,"padding":true},"__experimentalHideChildBlockControls":true},"providesContext":{"imageCrop":"imageCrop"},"styles":[{"name":"rectangular","label":"Tiled mosaic","isDefault":true},{"name":"circle","label":"Circles"},{"name":"square","label":"Square tiles"},{"name":"columns","label":"Tiled columns"}],"attributes":{"align":{"type":"string","default":"center"},"className":{"type":"string","default":"is-style-rectangular"},"columns":{"type":"number"},"columnWidths":{"type":"array","default":[]},"ids":{"type":"array","default":[]},"imageFilter":{"type":"string"},"images":{"type":"array","default":[],"source":"query","selector":".tiled-gallery__item","query":{"alt":{"attribute":"alt","default":"","selector":"img","source":"attribute"},"height":{"attribute":"data-height","type":"number","selector":"img","source":"attribute"},"id":{"attribute":"data-id","selector":"img","source":"attribute"},"link":{"attribute":"data-link","selector":"img","source":"attribute"},"url":{"attribute":"data-url","selector":"img","source":"attribute"},"width":{"attribute":"data-width","selector":"img","source":"attribute","type":"number"}}},"imageCrop":{"type":"boolean","default":true},"linkTo":{"default":"none","type":"string"},"roundedCorners":{"type":"integer","default":0}}}')},86525:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/tock","title":"Tock","description":"Reserve a table at your restaurant with Tock.","keywords":["booking","reservation","restaurant"],"version":"12.5.0","textdomain":"jetpack","category":"monetize","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M10 15.619C6.84915 15.619 4.28572 13.0542 4.28572 9.90176C4.28572 7.24269 6.10957 5.00183 8.57143 4.36551V0C3.72557 0.693782 0 4.86162 0 9.90176C0 15.4274 4.47715 19.9069 10 19.9069C12.2461 19.9069 14.3193 19.1658 15.9887 17.9148L12.9003 14.825C12.0494 15.3287 11.0581 15.619 10 15.619 M15.7135 9.90176C15.7135 10.9604 15.4233 11.9522 14.9199 12.8035L18.0082 15.8935C19.2585 14.2232 19.9992 12.149 19.9992 9.90176C19.9992 4.86162 16.2736 0.693782 11.4277 0V4.36551C13.8896 5.00183 15.7135 7.24269 15.7135 9.90176\'/></svg>","supports":{"align":true,"html":false,"multiple":false},"attributes":{"url":{"type":"string"}},"example":{"attributes":{"url":"roister"},"viewportWidth":250}}')},15210:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/voice-to-content","title":"Voice to content","description":"Transform your spoken words into a post ready to publish with AI.","keywords":["AI","GPT","AL","Magic","help","assistant"],"version":"12.5.0","textdomain":"jetpack","category":"media","icon":"<svg viewBox=\'0 0 20 20\' width=\'20\' height=\'20\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M12 9V3c0-1.1-.89-2-2-2-1.12 0-2 .94-2 2v6c0 1.1.9 2 2 2 1.13 0 2-.94 2-2zm4 0c0 2.97-2.16 5.43-5 5.91V17h2c.56 0 1 .45 1 1s-.44 1-1 1H7c-.55 0-1-.45-1-1s.45-1 1-1h2v-2.09C6.17 14.43 4 11.97 4 9c0-.55.45-1 1-1 .56 0 1 .45 1 1 0 2.21 1.8 4 4 4 2.21 0 4-1.79 4-4 0-.55.45-1 1-1 .56 0 1 .45 1 1z\'/></svg>","supports":{"html":false,"multiple":true,"reusable":false},"attributes":{"content":{"type":"string"}}}')},16344:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/wordads","title":"Ad","description":"Earn income by adding high quality ads to your post.","keywords":["ads","WordAds","advertisement"],"version":"12.5.0","textdomain":"jetpack","category":"monetize","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M12,8H4A2,2 0 0,0 2,10V14A2,2 0 0,0 4,16H5V20A1,1 0 0,0 6,21H8A1,1 0 0,0 9,20V16H12L17,20V4L12,8M15,15.6L13,14H4V10H13L15,8.4V15.6M21.5,12C21.5,13.71 20.54,15.26 19,16V8C20.53,8.75 21.5,10.3 21.5,12Z\'/></svg>","supports":{"align":["left","center","right"],"alignWide":false,"className":false,"customClassName":false,"html":false,"reusable":false},"attributes":{"align":{"type":"string","default":"center"},"format":{"type":"string","default":"mrec"},"hideMobile":{"type":"boolean","default":false}},"example":{}}')},73391:e=>{"use strict";e.exports=JSON.parse('{"production":["ai-assistant","ai-chat","ai-assistant-plugin","blogging-prompt","business-hours","button","calendly","cookie-consent","contact-form","contact-form/salesforce-lead-form","contact-info","donations","eventbrite","gif","google-calendar","image-compare","instagram-gallery","like","likes","mailchimp","map","markdown","opentable","payments","pinterest","podcast-player","premium-content","publicize","rating-star","recurring-payments","related-posts","repeat-visitor","send-a-message","whatsapp-button","seo","sharing","shortlinks","simple-payments","slideshow","social-previews","story","subscriber-login","subscriptions","tiled-gallery","tock","videopress","wordads","payments-intro","post-publish-qr-post-panel","payment-buttons","videopress/video","ai-assistant-support","ai-assistant-form-support","paywall","blogroll","blogroll-item","nextdoor","ai-assistant-usage-panel","sharing-button","sharing-buttons","ai-content-lens","blog-stats","top-posts","goodreads","voice-to-content","ai-featured-image-generator","ai-title-optimization","ai-assistant-experimental-image-generation-support","ai-general-purpose-image-generator","ai-proofread-breve","ai-assistant-site-logo-support","ai-title-optimization-keywords-support"],"beta":["google-docs-embed","recipe","v6-video-frame-poster","videopress/video-chapters","ai-assistant-backend-prompts"],"experimental":[],"no-post-editor":["ai-assistant","business-hours","button","calendly","contact-form","contact-info","donations","eventbrite","gif","google-calendar","instagram-gallery","mailchimp","map","markdown","opentable","pinterest","rating-star","related-posts","repeat-visitor","simple-payments","slideshow","tiled-gallery","tock","videopress","voice-to-content","wordads"]}')},8912:e=>{"use strict";e.exports=JSON.parse('{"K":"iVBORw0KGgoAAAANSUhEUgAABwAAAAQACAYAAADm/02CAAAAAXNSR0IArs4c6QAAIABJREFUeF7s2UERAAAIAkHpX9oeN2sDVn7sHAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECGYFlkghCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgMAZAJWAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAQEjAABh6pigECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEDIA6QIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQCAkYAAMPVMUAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgZAHSBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECAQEjAAhp4pCgECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAEDoA4QIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQCAkYAEPPFIUAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQICAAVAHCBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECIQEDIChZ4pCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwACoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRCAgbA0DNFIUCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIGAA1AECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECIQEDYOiZohAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAwAOoAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAgZCAATD0TFEIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIGAB1gAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgEBIwAAYeqYoBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAyAOkCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIEAgJGAADD1TFAIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIGQB0gQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgEBIwAIaeKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABA6AOECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEAgJGABDzxSFAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAgAFQBwgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAiEBAyAoWeKQoAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQMAAqAMECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEQgIGwNAzRSFAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBgANQBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAiEBA2DomaIQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQMADqAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAIGQgAEw9ExRCBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBgAdYAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIBASMAAGHqmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQMgDpAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAICRgAAw9UxQCBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBkAdIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIBASMACGnikKAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQOgDhAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAICRgAQ88UhQABAgQIECBAgAABAgQIECBAgAABAgQIECBAgIABUAcIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIhAQMgKFnikKAAAECBAgQIECAAAECBAgQIECAAAECBAgQIEDAAKgDBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBEICBsDQM0UhQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgYADUAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIhAQNg6JmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEDAA6gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkIABMPRMUQgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgYAHWAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAQEjAABh6pigECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEDIA6QIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQCAkYAAMPVMUAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgZAHSBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECAQEjAAhp4pCgECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAEDoA4QIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQCAkYAEPPFIUAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQICAAVAHCBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECIQEDIChZ4pCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwACoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRCAgbA0DNFIUCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIGAA1AECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECIQEDYOiZohAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAwAOoAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAgZCAATD0TFEIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIGAB1gAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgEBIwAAYeqYoBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAyAOkCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIEAgJGAADD1TFAIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIGQB0gQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgEBIwAIaeKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABA6AOECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEAgJGABDzxSFAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAgAFQBwgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAiEBAyAoWeKQoAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQMAAqAMECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEQgIGwNAzRSFAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBgANQBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAiEBA2DomaIQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQMADqAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAIGQgAEw9ExRCBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBgAdYAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIBASMAAGHqmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQMgDpAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAICRgAAw9UxQCBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBkAdIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIBASMACGnikKAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQOgDhAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAICRgAQ88UhQABAgQIECBAgAABAgQIECBAgAABAgQIECBAgIABUAcIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIhAQMgKFnikKAAAECBAgQIECAAAECBAgQIECAAAECBAgQIEDAAKgDBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBEICBsDQM0UhQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgYADUAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIhAQNg6JmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEDAA6gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkIABMPRMUQgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgYAHWAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAQEjAABh6pigECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEDIA6QIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQCAkYAAMPVMUAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgZAHSBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECAQEjAAhp4pCgECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAEDoA4QIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQCAkYAEPPFIUAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQICAAVAHCBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECIQEDIChZ4pCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwACoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRCAgbA0DNFIUCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIGAA1AECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECIQEDYOiZohAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAwAOoAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAgZCAATD0TFEIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIGAB1gAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgEBIwAAYeqYoBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAyAOkCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIEAgJGAADD1TFAIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIGQB0gQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgEBIwAIaeKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABA6AOECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEAgJGABDzxSFAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAgAFQBwgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAiEBAyAoWeKQoAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQMAAqAMECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEQgIGwNAzRSFAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBgANQBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAiEBA2DomaIQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQMADqAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAIGQgAEw9ExRCBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBgAdYAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIBASMAAGHqmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQMgDpAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAICRgAAw9UxQCBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBkAdIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIBASMACGnikKAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQOgDhAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAICRgAQ88UhQABAgQIECBAgAABAgQIECBAgAABAgQIECBAgIABUAcIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIhAQMgKFnikKAAAECBAgQIECAAAECBAgQIECAAAECBAgQIEDAAKgDBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBEICBsDQM0UhQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgYADUAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIhAQNg6JmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEDAA6gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkIABMPRMUQgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgYAHWAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAQEjAABh6pigECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEDIA6QIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQCAkYAAMPVMUAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgZAHSBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECAQEjAAhp4pCgECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAEDoA4QIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQCAkYAEPPFIUAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQICAAVAHCBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECIQEDIChZ4pCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwACoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRCAgbA0DNFIUCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIGAA1AECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECIQEDYOiZohAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAwAOoAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAgZCAATD0TFEIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIGAB1gAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgEBIwAAYeqYoBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAyAOkCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIEAgJGAADD1TFAIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIGQB0gQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgEBIwAIaeKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABA6AOECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEAgJGABDzxSFAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAgAFQBwgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAiEBAyAoWeKQoAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQMAAqAMECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEQgIGwNAzRSFAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBgANQBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAiEBA2DomaIQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQMADqAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAIGQgAEw9ExRCBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBgAdYAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIBASMAAGHqmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQMgDpAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAICRgAAw9UxQCBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBkAdIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIBASMACGnikKAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQOgDhAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAICRgAQ88UhQABAgQIECBAgAABAgQIECBAgAABAgQIECBAgIABUAcIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIhAQMgKFnikKAAAECBAgQIECAAAECBAgQIECAAAECBAgQIEDAAKgDBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBEICBsDQM0UhQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgYADUAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIhAQNg6JmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEDAA6gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkIABMPRMUQgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgYAHWAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAQEjAABh6pigECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEDIA6QIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQCAkYAAMPVMUAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgZAHSBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECAQEjAAhp4pCgECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAEDoA4QIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQCAkYAEPPFIUAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQICAAVAHCBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECIQEDIChZ4pCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwACoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRCAgbA0DNFIUCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIGAA1AECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECIQEDYOiZohAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAwAOoAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAgZCAATD0TFEIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIGAB1gAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgEBIwAAYeqYoBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAyAOkCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIEAgJGAADD1TFAIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIGQB0gQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgEBIwAIaeKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABA6AOECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEAgJGABDzxSFAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAgAFQBwgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAiEBAyAoWeKQoAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQMAAqAMECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEQgIGwNAzRSFAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBgANQBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAiEBA2DomaIQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQMADqAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAIGQgAEw9ExRCBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBgAdYAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIBASMAAGHqmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQMgDpAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAICRgAAw9UxQCBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBkAdIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIBASMACGnikKAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQOgDhAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAICRgAQ88UhQABAgQIECBAgAABAgQIECBAgAABAgQIECBAgIABUAcIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIhAQMgKFnikKAAAECBAgQIECAAAECBAgQIECAAAECBAgQIEDAAKgDBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBEICBsDQM0UhQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgYADUAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIhAQNg6JmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEDAA6gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkIABMPRMUQgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgYAHWAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAQEjAABh6pigECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEDIA6QIAAAQIECBAgQIB7b027AAAgAElEQVQAAQIECBAgQIAAAQIECBAgQCAkYAAMPVMUAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgZAHSBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECAQEjAAhp4pCgECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAEDoA4QIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQCAkYAEPPFIUAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQICAAVAHCBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECIQEDIChZ4pCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwACoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRCAgbA0DNFIUCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIGAA1AECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECIQEDYOiZohAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAwAOoAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAgZCAATD0TFEIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIGAB1gAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgEBIwAAYeqYoBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAyAOkCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIEAgJGAADD1TFAIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIGQB0gQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgEBIwAIaeKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABA6AOECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEAgJGABDzxSFAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAgAFQBwgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAiEBAyAoWeKQoAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQMAAqAMECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEQgIGwNAzRSFAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBgANQBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAiEBA2DomaIQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQMADqAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAIGQgAEw9ExRCBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBgAdYAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIBASMAAGHqmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQMgDpAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAICRgAAw9UxQCBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBkAdIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIBASMACGnikKAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQOgDhAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAICRgAQ88UhQABAgQIECBAgAABAgQIECBAgAABAgQIECBAgIABUAcIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIhAQMgKFnikKAAAECBAgQIECAAAECBAgQIECAAAECBAgQIEDAAKgDBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBEICBsDQM0UhQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgYADUAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIhAQNg6JmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEDAA6gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkIABMPRMUQgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgYAHWAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAQEjAABh6pigECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEDIA6QIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQCAkYAAMPVMUAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgZAHSBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECAQEjAAhp4pCgECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAEDoA4QIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQCAkYAEPPFIUAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQICAAVAHCBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECIQEDIChZ4pCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwACoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRCAgbA0DNFIUCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIGAA1AECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECIQEDYOiZohAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAwAOoAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAgZCAATD0TFEIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIGAB1gAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgEBIwAAYeqYoBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAyAOkCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIEAgJGAADD1TFAIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIGQB0gQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgEBIwAIaeKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABA6AOECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEAgJGABDzxSFAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAgAFQBwgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAiEBAyAoWeKQoAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQMAAqAMECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEQgIGwNAzRSFAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBgANQBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAiEBA2DomaIQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQMADqAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAIGQgAEw9ExRCBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBgAdYAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIBASMAAGHqmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQMgDpAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAICRgAAw9UxQCBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBkAdIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIBASMACGnikKAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQOgDhAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAICRgAQ88UhQABAgQIECBAgAABAgQIECBAgAABAgQIECBAgIABUAcIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIhAQMgKFnikKAAAECBAgQIECAAAECBAgQIECAAAECBAgQIEDAAKgDBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBEICBsDQM0UhQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgYADUAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIhAQNg6JmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEDAA6gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkIABMPRMUQgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgYAHWAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAQEjAABh6pigECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEDIA6QIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQCAkYAAMPVMUAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgZAHSBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECAQEjAAhp4pCgECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAEDoA4QIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQCAkYAEPPFIUAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQICAAVAHCBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECIQEDIChZ4pCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwACoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRCAgbA0DNFIUCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIGAA1AECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECIQEDYOiZohAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAwAOoAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAgZCAATD0TFEIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIGAB1gAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgEBIwAAYeqYoBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAyAOkCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIEAgJGAADD1TFAIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIGQB0gQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgEBIwAIaeKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABA6AOECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEAgJGABDzxSFAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAgAFQBwgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAiEBAyAoWeKQoAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQMAAqAMECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEQgIGwNAzRSFAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBgANQBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAiEBA2DomaIQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQMADqAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAIGQgAEw9ExRCBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBgAdYAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIBASMAAGHqmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQMgDpAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAICRgAAw9UxQCBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBkAdIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIBASMACGnikKAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQOgDhAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAICRgAQ88UhQABAgQIECBAgAABAgQIECBAgAABAgQIECBAgIABUAcIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIhAQMgKFnikKAAAECBAgQIECAAAECBAgQIECAAAECBAgQIEDAAKgDBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBEICBsDQM0UhQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgYADUAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIhAQNg6JmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEDAA6gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkIABMPRMUQgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgYAHWAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAQEjAABh6pigECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEDIA6QIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQCAkYAAMPVMUAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgZAHSBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECAQEjAAhp4pCgECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAEDoA4QIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQCAkYAEPPFIUAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQICAAVAHCBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECIQEDIChZ4pCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwACoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRCAgbA0DNFIUCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIGAA1AECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECIQEDYOiZohAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAwAOoAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAgZCAATD0TFEIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIGAB1gAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgEBIwAAYeqYoBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAyAOkCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIEAgJGAADD1TFAIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIGQB0gQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgEBIwAIaeKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABA6AOECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEAgJGABDzxSFAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAgAFQBwgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAiEBAyAoWeKQoAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQMAAqAMECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEQgIGwNAzRSFAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBgANQBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAiEBA2DomaIQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQMADqAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAIGQgAEw9ExRCBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBgAdYAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIBASMAAGHqmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQMgDpAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAICRgAAw9UxQCBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBkAdIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIBASMACGnikKAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQOgDhAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAICRgAQ88UhQABAgQIECBAgAABAgQIECBAgAABAgQIECBAgIABUAcIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIhAQMgKFnikKAAAECBAgQIECAAAECBAgQIECAAAECBAgQIEDAAKgDBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBEICBsDQM0UhQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgYADUAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIhAQNg6JmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEDAA6gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkIABMPRMUQgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgYAHWAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAQEjAABh6pigECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEDIA6QIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQCAkYAAMPVMUAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgZAHSBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECAQEjAAhp4pCgECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAEDoA4QIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQCAkYAEPPFIUAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQICAAVAHCBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECIQEDIChZ4pCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwACoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRCAgbA0DNFIUCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIGAA1AECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECIQEDYOiZohAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAwAOoAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAgZCAATD0TFEIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIGAB1gAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgEBIwAAYeqYoBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAyAOkCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIEAgJGAADD1TFAIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIGQB0gQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgEBIwAIaeKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABA6AOECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEAgJGABDzxSFAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAgAFQBwgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAiEBAyAoWeKQoAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQMAAqAMECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEQgIGwNAzRSFAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBgANQBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAiEBA2DomaIQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQMADqAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAIGQgAEw9ExRCBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBgAdYAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIBASMAAGHqmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQMgDpAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAICRgAAw9UxQCBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBkAdIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIBASMACGnikKAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQOgDhAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAICRgAQ88UhQABAgQIECBAgAABAgQIECBAgAABAgQIECBAgIABUAcIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIhAQMgKFnikKAAAECBAgQIECAAAECBAgQIECAAAECBAgQIEDAAKgDBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBEICBsDQM0UhQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgYADUAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIhAQNg6JmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEDAA6gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkIABMPRMUQgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgYAHWAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAQEjAABh6pigECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEDIA6QIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQCAkYAAMPVMUAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgZAHSBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECAQEjAAhp4pCgECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAEDoA4QIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQCAkYAEPPFIUAAQIECBAgQG7bqScAACAASURBVIAAAQIECBAgQIAAAQIECBAgQICAAVAHCBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECIQEDIChZ4pCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwACoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRCAgbA0DNFIUCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIGAA1AECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECIQEDYOiZohAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAwAOoAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAgZCAATD0TFEIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIGAB1gAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgEBIwAAYeqYoBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAyAOkCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIEAgJGAADD1TFAIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIGQB0gQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgEBIwAIaeKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABA6AOECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEAgJGABDzxSFAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAgAFQBwgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAiEBAyAoWeKQoAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQMAAqAMECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEQgIGwNAzRSFAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBgANQBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAiEBA2DomaIQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQMADqAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAIGQgAEw9ExRCBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBgAdYAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIBASMAAGHqmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQMgDpAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAICRgAAw9UxQCBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBkAdIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIBASMACGnikKAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQOgDhAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAICRgAQ88UhQABAgQIECBAgAABAgQIECBAgAABAgQIECBAgIABUAcIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIhAQMgKFnikKAAAECBAgQIECAAAECBAgQIECAAAECBAgQIEDAAKgDBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBEICBsDQM0UhQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgYADUAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIhAQNg6JmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEDAA6gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkIABMPRMUQgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgYAHWAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAQEjAABh6pigECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEDIA6QIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQCAkYAAMPVMUAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgZAHSBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECAQEjAAhp4pCgECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAEDoA4QIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQCAkYAEPPFIUAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQICAAVAHCBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECIQEDIChZ4pCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwACoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRCAgbA0DNFIUCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIGAA1AECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECIQEDYOiZohAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAwAOoAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAgZCAATD0TFEIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIGAB1gAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgEBIwAAYeqYoBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAyAOkCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIEAgJGAADD1TFAIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIGQB0gQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgEBIwAIaeKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABA6AOECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEAgJGABDzxSFAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAgAFQBwgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAiEBAyAoWeKQoAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQMAAqAMECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEQgIGwNAzRSFAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBgANQBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAiEBA2DomaIQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQMADqAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAIGQgAEw9ExRCBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBgAdYAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIBASMAAGHqmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQMgDpAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAICRgAAw9UxQCBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBkAdIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIBASMACGnikKAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQOgDhAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAICRgAQ88UhQABAgQIECBAgAABAgQIECBAgAABAgQIECBAgIABUAcIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIhAQMgKFnikKAAAECBAgQIECAAAECBAgQIECAAAECBAgQIEDAAKgDBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBEICBsDQM0UhQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgYADUAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIhAQNg6JmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEDAA6gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkIABMPRMUQgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgYAHWAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAQEjAABh6pigECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEDIA6QIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQCAkYAAMPVMUAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgZAHSBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECAQEjAAhp4pCgECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAEDoA4QIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQ+PbsmAYAAABhmH/X87FUAoWPkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIGdj10AAAIABJREFUECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBwXgv4AAAFzklEQVRAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEAgxEwQBvhGJcwAAAABJRU5ErkJggg=="}')}},o={};function s(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={exports:{}};return a[e].call(r.exports,r,r.exports,s),r.exports}s.m=a,s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,s.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"==typeof r.then)return r}var a=Object.create(null);s.r(a);var o={};e=e||[null,t({}),t([]),t(t)];for(var i=2&n&&r;"object"==typeof i&&!~e.indexOf(i);i=t(i))Object.getOwnPropertyNames(i).forEach((e=>o[e]=()=>r[e]));return o.default=()=>r,s.d(a,o),a},s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce(((t,r)=>(s.f[r](e,t),t)),[])),s.u=e=>(979===e?"swiper":e)+".js?minify=false&ver="+{712:"590102f9b0dcc566fb9c",979:"f9a3c1afa1d13687c296"}[e],s.miniCssF=e=>"swiper.css?minify=false&ver=ec8bb6b572560ea05dfb",(()=>{if(!s.miniCssF)throw new Error("MiniCSSWithRTLPlugin was loaded before MiniCSSExtractPlugin");var e;s.miniCssF=(e=s.miniCssF,t=>{var r="rtl"===document.dir,n=e(t);return r?n.replace(/\.css(?:$|\?)/,".rtl$&"):n})})(),s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r={},n="Jetpack:",s.l=(e,t,a,o)=>{if(r[e])r[e].push(t);else{var i,l;if(void 0!==a)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var A=c[u];if(A.getAttribute("src")==e||A.getAttribute("data-webpack")==n+a){i=A;break}}i||(l=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,s.nc&&i.setAttribute("nonce",s.nc),i.setAttribute("data-webpack",n+a),i.src=e),r[e]=[t];var g=(t,n)=>{i.onerror=i.onload=null,clearTimeout(d);var a=r[e];if(delete r[e],i.parentNode&&i.parentNode.removeChild(i),a&&a.forEach((e=>e(n))),t)return t(n)},d=setTimeout(g.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=g.bind(null,i.onerror),i.onload=g.bind(null,i.onload),l&&document.head.appendChild(i)}},s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;s.g.importScripts&&(e=s.g.location+"");var t=s.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 n=r.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=r[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.p=e})(),(()=>{if("undefined"!=typeof document){var e=e=>new Promise(((t,r)=>{var n=s.miniCssF(e),a=s.p+n;if(((e,t)=>{for(var r=document.getElementsByTagName("link"),n=0;n<r.length;n++){var a=(s=r[n]).getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(a===e||a===t))return s}var o=document.getElementsByTagName("style");for(n=0;n<o.length;n++){var s;if((a=(s=o[n]).getAttribute("data-href"))===e||a===t)return s}})(n,a))return t();((e,t,r,n,a)=>{var o=document.createElement("link");o.rel="stylesheet",o.type="text/css",s.nc&&(o.nonce=s.nc),o.onerror=o.onload=r=>{if(o.onerror=o.onload=null,"load"===r.type)n();else{var s=r&&r.type,i=r&&r.target&&r.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+s+": "+i+")");l.name="ChunkLoadError",l.code="CSS_CHUNK_LOAD_FAILED",l.type=s,l.request=i,o.parentNode&&o.parentNode.removeChild(o),a(l)}},o.href=t,(e=>{r?r.parentNode.insertBefore(e,r.nextSibling):document.head.appendChild(e);for(const t of document.querySelectorAll("iframe[name=editor-canvas]"))try{const r=t.contentDocument;r.head.appendChild(r.importNode(e))}catch{}})(o)})(e,a,null,t,r)})),t={755:0};s.f.miniCss=(r,n)=>{t[r]?n.push(t[r]):0!==t[r]&&{979:1}[r]&&n.push(t[r]=e(r).then((()=>{t[r]=0}),(e=>{throw delete t[r],e})))}}})(),(()=>{var e={755:0};s.f.j=(t,r)=>{var n=s.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else if(979!=t){var a=new Promise(((r,a)=>n=e[t]=[r,a]));r.push(n[2]=a);var o=s.p+s.u(t),i=new Error;s.l(o,(r=>{if(s.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var a=r&&("load"===r.type?"missing":r.type),o=r&&r.target&&r.target.src;i.message="Loading chunk "+t+" failed.\n("+a+": "+o+")",i.name="ChunkLoadError",i.type=a,i.request=o,n[1](i)}}),"chunk-"+t,t)}else e[t]=0};var t=(t,r)=>{var n,a,o=r[0],i=r[1],l=r[2],c=0;if(o.some((t=>0!==e[t]))){for(n in i)s.o(i,n)&&(s.m[n]=i[n]);if(l)l(s)}for(t&&t(r);c<o.length;c++)a=o[c],s.o(e,a)&&e[a]&&e[a][0](),e[a]=0},r=self.webpackChunkJetpack=self.webpackChunkJetpack||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),s(67858),s(61351),s(71410),s(45878),s(60312),s(25907),s(46197),s(34590),s(55734),s(29280),s(92585),s(97618),s(12742),s(57809),s(82144),s(46010),s(30552),s(1063),s(79238),s(50134),s(96764),s(25589),s(4595),s(27156),s(72718);s(99398)})();
Save Changes
Rename File
Rename