; (self.AMP=self.AMP||[]).push({m:1,v:"2601162341000",n:"amp-wordpress-embed",ev:"1.0",l:!0,f:function(t,n){(()=>{var n=Object.defineProperty;function i(t,n,i){return n in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t}function e(t,n){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);n&&(e=e.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),i.push.apply(i,e)}return i}function r(t){for(var n=1;n{i=!1,t()};return t=>{i||(i=!0,(t||n)(e))}}function A(t){const n=Object.getOwnPropertyDescriptor(t,"message");if(null!=n&&n.writable)return t;const{message:i,stack:e}=t,r=new Error(i);for(const n in t)r[n]=t[n];return r.stack=e,r}function R(t){let n=null,i="";for(const t of arguments)t instanceof Error&&!n?n=A(t):(i&&(i+=" "),i+=t);return n?i&&(n.message=i+": "+n.message):n=new Error(i),n}function k(t){var n,i;null===(n=(i=self).__AMP_REPORT_ERROR)||void 0===n||n.call(i,t)}function S(t){const n=R.apply(null,arguments);setTimeout((()=>{throw k(n),n}))}function M(t,...n){try{return t.apply(null,n)}catch(t){S(t)}}function E(t,n,i,e=!0,r=!0){if(r){const r=n(t,i,e);r&&E(t,n,i,r,!1)}else if(t.children)for(const r of t.children)E(r,n,i,e,!0)}var T=[],V=()=>{};function C(t,n){return t.values.scan(n)}function I(t,n,i){return t.values.scanAll(i)}function O(t,n){return t.values.has(n)}function j(t){return!!t.recursive}function z(t){return void 0!==t}var L=class t{static get(n){let i=n.__AMP_NODE;return i||(i=new t(n,null),n.__AMP_NODE=i),i}static closest(n,i=!0){let e=n;for(;e;){if(e!=n||i){if(e.__AMP_NODE)return e.__AMP_NODE;const{nodeType:n}=e;if(9==n||11==n||f(e)&&e.tagName.startsWith("AMP-"))return t.get(e)}e=e.__AMP_ASSIGNED_SLOT||e.assignedSlot||e.parentNode}return null}static assignSlot(t,n){t.__AMP_ASSIGNED_SLOT!=n&&(t.__AMP_ASSIGNED_SLOT=n,x(t))}static unassignSlot(t,n){t.__AMP_ASSIGNED_SLOT==n&&(t.__AMP_ASSIGNED_SLOT=void 0,x(t))}static rediscoverChildren(t){var n;const i=t.__AMP_NODE;null==i||null===(n=i.children)||void 0===n||n.forEach($)}constructor(n,i){this.node=n,this.name=i,this.isRoot=9==n.nodeType,this.root=this.isRoot?this:null,this.parent=null,this.children=null,this.groups=null,this.values=new class{constructor(t){this.Qr=t,this.iL=null,this.eL=null,this.rL=P(this.rL.bind(this),setTimeout)}set(t,n,i){h(n),h(void 0!==i);const{key:e}=t,r=this.iL||(this.iL=new Map);let s=r.get(e);s||(s={values:[],setters:[]},r.set(e,s));const o=s.setters.indexOf(n),l=-1==o||s.values[o]!==i;-1==o?(s.setters.push(n),s.values.push(i)):l&&(s.values[o]=i),l&&(this.ping(t,!1),j(t)&&E(this.Qr,C,t,!0,!1))}remove(t,n){h(n);const{key:i}=t,e=this.iL,r=null==e?void 0:e.get(i);if(r){h(e);const s=r.setters.indexOf(n);-1!=s&&(r.setters.splice(s,1),r.values.splice(s,1),0==r.setters.length&&e.delete(i),E(this.Qr,C,t))}}has(t){var n;return!(null===(n=this.iL)||void 0===n||!n.has(t.key))}subscribe(t,n){const i=this.sL(t);if(!l(i.subscribers,n))return;const e=i.value;z(e)&&this.Ss()&&n(e)}unsubscribe(t,n){var i;const e=null===(i=this.eL)||void 0===i?void 0:i.get(t.key);e&&u(e.subscribers,n)&&this.oL(e)}ping(t,n){var i,e;null===(i=this.eL)||void 0===i||null===(e=i.get(t.key))||void 0===e||e.ping(n)}parentUpdated(){this.Ss()&&E(this.Qr,I,void 0,T)}rootUpdated(){const t=this.eL;t&&(this.Ss()?t.forEach((t=>{const{prop:n}=t;this.ping(n,!0)})):t.forEach((t=>{const{prop:n}=t;j(n)&&this.uL(t,null)})))}scan(t){return this.ping(t,!0),!!j(t)&&!this.has(t)}scanAll(t){let n=null;const i=this.eL;return i&&i.forEach((i=>{const{prop:e}=i,{key:r}=e;-1==(n||t).indexOf(r)&&(this.ping(e,!0),this.Qr.children&&this.has(e)&&(n||(n=t.slice(0)),n.push(r)))})),n||t}Ss(){return!!this.Qr.root}sL(t){const{deps:n,key:i}=t,e=this.eL||(this.eL=new Map);let r=e.get(i);return r||(r={prop:t,subscribers:[],value:void 0,pending:0,counter:0,depValues:n.length>0?n.map(V):T,parentValue:void 0,parentContextNode:null,ping:t=>{if(this.Ss()){const n=t?2:1;r.pending=Math.max(r.pending,n),this.rL()}},pingDep:n.length>0?n.map(((t,n)=>t=>{r.depValues[n]=t,r.ping()})):T,pingParent:j(t)?t=>{r.parentValue=t,r.ping()}:null},e.set(i,r),n.forEach(((t,n)=>this.subscribe(t,r.pingDep[n]))),r.ping(!1)),r}oL(t){var n;if(t.subscribers.length>0)return;const{pingDep:i,prop:e}=t,{deps:r,key:s}=e;null===(n=this.eL)||void 0===n||n.delete(s),this.uL(t,null),r.length>0&&r.forEach(((t,n)=>{this.unsubscribe(t,i[n])}))}rL(){if(!this.Ss())return;const t=this.eL;if(!t)return;let n;t.forEach((t=>{t.counter=0}));do{n=0,t.forEach((t=>{if(0!=t.pending){const{key:i}=t.prop;if(t.counter++,t.counter>5)return S(`cyclical prop: ${i}`),void(t.pending=0);n++,this.lL(t)}}))}while(n>0)}lL(t){const n=2==t.pending;let i;try{i=this.cL(t,n)}catch(t){S(t)}t.pending=0,this.hL(t,i)}hL(t,n){const{prop:i,value:e}=t,{key:r}=i,s=this.eL;if(e===n||t!==(null==s?void 0:s.get(r))||!this.Ss())return;t.value=n;const{subscribers:o}=t;for(const t of o)t(n)}cL(t,n){var i,e;h(this.Ss());const{depValues:r,prop:s}=t,{compute:o,defaultValue:l,key:u}=s,c=null===(i=this.iL)||void 0===i||null===(e=i.get(u))||void 0===e?void 0:e.values,a=function(t,n){const{compute:i,recursive:e}=t;return"function"==typeof e?!n||e(n):!(e&&n&&!i)&&e}(s,c);if(n||a!=Boolean(t.parentContextNode)){const n=a?function(t,n,i,e=!0){for(let r=e?t:t.parent;r;r=r.parent)if(n(r,i))return r;return null}(this.Qr,O,s,!1):null;this.uL(t,n)}const f=z(t.parentValue)?t.parentValue:a&&!t.parentContextNode?l:void 0;let d;if(r.every(z)&&(!a||z(f))){const{node:t}=this.Qr;c&&!o?d=c[0]:j(s)?c||r.length>0?d=function(t,n,i,e,r){switch(r.length){case 0:return t(n,i,e);case 1:return t(n,i,e,r[0]);case 2:return t(n,i,e,r[0],r[1]);case 3:return t(n,i,e,r[0],r[1],r[2]);default:return t.apply(null,[n,i,e].concat(r))}}(o,t,c||T,f,r):z(f)&&(d=f):o&&(d=function(t,n,i,e){switch(e.length){case 0:return t(n,i);case 1:return t(n,i,e[0]);case 2:return t(n,i,e[0],e[1]);case 3:return t(n,i,e[0],e[1],e[2]);default:return t.apply(null,[n,i].concat(e))}}(o,t,c||T,r))}return d}uL(t,n){const{parentContextNode:i,pingParent:e,prop:r}=t;n!=i&&(t.parentContextNode=n,t.parentValue=void 0,h(e),i&&i.values.unsubscribe(r,e),n&&(h(e),n.values.subscribe(r,e)))}}(this),this.aL=null,this.fL=!1,this.dL=P(this.vL.bind(this),setTimeout),11==n.nodeType&&n.addEventListener("slotchange",(n=>{var i,e;const r=n.target;r.assignedNodes().forEach(x),null===(i=t.closest(r))||void 0===i||null===(e=i.children)||void 0===e||e.forEach($)})),this.discover()}discover(){this.isDiscoverable()?this.dL():this.name&&this.children&&this.children.forEach($)}isDiscoverable(){return!this.isRoot&&!this.fL}setParent(n){const i=null!=n&&n.nodeType?t.get(n):n;this.pL(i,null!=n)}setIsRoot(t){var n,i;this.isRoot=t;const e=t?this:null!==(n=null===(i=this.parent)||void 0===i?void 0:i.root)&&void 0!==n?n:null;this.updateRoot(e)}updateRoot(t){h(!t||t.isRoot);const n=this.root;var i,e;t!=n&&(this.root=t,this.values.rootUpdated(),null===(i=this.aL)||void 0===i||i.forEach((t=>t.rootUpdated())),null===(e=this.children)||void 0===e||e.forEach((n=>n.updateRoot(t))))}addGroup(n,i,e){const r=this.groups||(this.groups=new Map),{children:s,node:o}=this,l=new t(o,n);return r.set(n,{cn:l,match:i,weight:e}),l.setParent(this),null==s||s.forEach($),l}group(t){var n,i;return(null===(n=this.groups)||void 0===n||null===(i=n.get(t))||void 0===i?void 0:i.cn)||null}findGroup(t){const{groups:n}=this;if(!n)return null;let i=null,e=Number.NEGATIVE_INFINITY;return n.forEach((({cn:n,match:r,weight:s})=>{r(t,this.node)&&s>e&&(i=n,e=s)})),i}subscribe(t,n,i,e){const r=this.aL||(this.aL=new Map);let s=r.get(t);s||(s=new n(this,i,e),r.set(t,s))}unsubscribe(t){const n=this.aL,i=null==n?void 0:n.get(t);i&&(i.dispose(),h(n),n.delete(t))}vL(){if(!this.isDiscoverable())return;const n=t.closest(this.node,!1),i=(null==n?void 0:n.findGroup(this.node))||n;this.pL(i,!1)}pL(t,n){var i;this.fL=n;const e=this.parent;if(t!=e){if(this.parent=t,null!=e&&e.children&&(h(e.children),u(e.children,this)),t){const n=t.children||(t.children=[]);l(n,this);for(const t of n)t!=this&&t.isDiscoverable()&&t.discover()}this.values.parentUpdated()}this.updateRoot(null!==(i=null==t?void 0:t.root)&&void 0!==i?i:null)}};function x(t){!function(t,n,i=!0){const e=L.closest(t,i);if(e)if(e.node==t)n(e);else if(e.children)for(const i of e.children)t.contains(i.node)&&n(i)}(t,$)}function $(t){t.discover()}var N=[];function U(t,n){const i=r({key:t,deps:N,recursive:!1},n);return h(0==i.deps.length||i.compute),i}var q=[],F=()=>{};function D(t,n,i){n=o(n);const e=i;L.get(t).subscribe(e,H,i,n)}var W,H=class{constructor(t,n,i){if(this.contextNode=t,this.mL=n,this.yL=i,this.bL=i.length>0?i.map(F):q,this._L=i.length>0?i.map(((t,n)=>t=>{this.bL[n]=t,this.if()})):q,this.pn=!1,this.gL=null,this.if=P(this.if.bind(this),setTimeout),i.length>0){const{values:t}=this.contextNode;i.forEach(((n,i)=>t.subscribe(n,this._L[i])))}this.Ss()&&this.if()}dispose(){if(this.yL.length>0){const{values:t}=this.contextNode;this.yL.forEach(((n,i)=>t.unsubscribe(n,this._L[i])))}this.ar()}rootUpdated(){const t=this.Ss();this.ar(),t&&this.if()}Ss(){return!!this.contextNode.root}if(){this.Ss()&&(this.bL.every(B)?(this.pn=!0,this.PL()):this.pn&&(this.pn=!1,this.ar()))}PL(){this.ar();const t=this.mL;this.gL=function(t,n){switch(n.length){case 0:return t();case 1:return t(n[0]);case 2:return t(n[0],n[1]);case 3:return t(n[0],n[1],n[2]);default:return t.apply(null,n)}}(t,this.bL)}ar(){this.gL&&(M(this.gL),this.gL=null)}};function B(t){return void 0!==t}function G(t){L.get(t).discover()}function Q(t,n,i,e){L.get(t).values.set(n,i,e)}function Z(t,n,i){L.get(t).values.remove(n,i)}function J(){return W||(W=Promise.resolve(void 0))}var K=class{constructor(){this.promise=new Promise(((t,n)=>{this.resolve=t,this.reject=n}))}};function X(t){return(t.ownerDocument||t).defaultView}function Y(t){h(/^[\w-]+$/.test(t))}function tt(t,n){return t.querySelector(function(t,n){return t.replace(/^|,/g,"$&:scope ")}(n))}function nt(t,n){return t.matches(n)}function it(t,n){return Y(n),tt(t,`> [${n}]`)}function et(t){return function(t,n){const i=[];for(let n=t.firstChild;n;n=n.nextSibling)!rt(n)&&i.push(n);return i}(t)}function rt(t){return!!function(t){let n;return"string"==typeof t?n=t:f(t)&&(n=t.tagName),!!n&&n.toLowerCase().startsWith("i-")}(t)||t.nodeType===Node.ELEMENT_NODE&&(t.hasAttribute("placeholder")||t.hasAttribute("fallback")||t.hasAttribute("overflow"))}var st={bubbles:!0,cancelable:!0};function ot(t,n,i){return function(t,n){for(const i in n)t.setAttribute(i,n[i]);return t}(t.createElement(n),i)}function lt(t,n,i,e){const r=i||{};h(t.ownerDocument);const{bubbles:s,cancelable:o}=e||st,l=new MessageEvent(n,{data:r,bubbles:s,cancelable:o});t.dispatchEvent(l)}function ut(t,n){return[{query:t.matchMedia(n),value:"1"},{query:null,value:""}]}function ct(t,n){return n.split(",").map((n=>{if(0==(n=n.replace(/\s+/g," ").trim()).length)return;let i,e,r;if(")"==n.charAt(n.length-1)){let t=1;for(r=n.length-2;r>=0;r--){const i=n.charAt(r);if("("==i?t--:")"==i&&t++,0==t)break}const i=r-1;if(r>0)for(r--;r>=0;r--){const t=n.charAt(r);if(!("%"==t||"-"==t||"_"==t||t>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"))break}if(r>=i)return null}else for(r=n.length-2;r>=0;r--){const t=n.charAt(r);if(!("%"==t||"."==t||t>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"))break}return r>=0?(i=n.substring(0,r+1).trim(),e=n.substring(r+1).trim()):(e=n,i=void 0),e?{query:i?t.matchMedia(i):null,value:e}:null})).filter(Boolean)}function at(t,n,i){for(let e=0;e"","getPropertyValue":()=>""},ht=/vertical/,dt=new WeakMap,vt=new WeakMap,pt=new WeakMap;function yt(t){let n=dt.get(t);return n||(n=new t.ResizeObserver(mt),dt.set(t,n)),n}function mt(t){const n=new Set;for(let i=t.length-1;i>=0;i--){const e=t[i],{target:r}=e;if(n.has(r))continue;n.add(r);const s=vt.get(r);if(s){pt.set(r,e);for(let t=0;t0?t[0]:{inlineSize:0,blockSize:0};else{const{target:t}=i,n=X(t),r=ht.test(function(t,n){return t.getComputedStyle(n)||ft}(n,t).writingMode),{offsetHeight:s,offsetWidth:o}=t;let l,u;r?(u=o,l=s):(l=o,u=s),e={inlineSize:l,blockSize:u}}M(n,e)}}var gt,_t,wt,Pt,At,Rt,kt,St,Mt,Et={};((t,i)=>{for(var e in i)n(t,e,{get:i[e],enumerable:!0})})(Et,{Fragment:()=>Nn,cloneElement:()=>an,createContext:()=>fn,createElement:()=>Nt,createRef:()=>qt,hydrate:()=>cn,isValidElement:()=>Pt,render:()=>un,useCallback:()=>En,useContext:()=>Tn,useEffect:()=>An,useImperativeHandle:()=>Sn,useLayoutEffect:()=>Rn,useMemo:()=>Mn,useReducer:()=>Pn,useRef:()=>kn,useState:()=>wn});var Tt,Vt,Ct,It,Ot={},jt=[],zt=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Lt=Array.isArray;function xt(t,n){for(var i in n)t[i]=n[i];return t}function $t(t){var n=t.parentNode;n&&n.removeChild(t)}function Nt(t,n,i){var e,r,s,o={};for(s in n)"key"==s?e=n[s]:"ref"==s?r=n[s]:o[s]=n[s];if(arguments.length>2&&(o.children=arguments.length>3?gt.call(arguments,2):i),"function"==typeof t&&null!=t.defaultProps)for(s in t.defaultProps)void 0===o[s]&&(o[s]=t.defaultProps[s]);return Ut(t,o,e,r,null)}function Ut(t,n,i,e,r){var s={type:t,props:n,key:i,ref:e,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++wt:r};return null==r&&null!=_t.vnode&&_t.vnode(s),s}function qt(){return{current:null}}function Ft(t){return t.children}function Dt(t,n){this.props=t,this.context=n}function Wt(t,n){if(null==n)return t.__?Wt(t.__,t.__.__k.indexOf(t)+1):null;for(var i;nn&&At.sort(St));Gt.__r=0}function Qt(t,n,i,e,r,s,o,l,u,c,a){var f,h,d,v,p,y,m,b,g,_,w=0,P=e&&e.__k||jt,A=P.length,R=A,k=n.length;for(i.__k=[],f=0;f0?Ut(v.type,v.props,v.key,v.ref?v.ref:null,v.__v):v)&&(v.__=i,v.__b=i.__b+1,-1===(b=Kt(v,P,m=f+w,R))?d=Ot:(d=P[b]||Ot,P[b]=void 0,R--),en(t,v,d,r,s,o,l,u,c,a),p=v.__e,(h=v.ref)&&d.ref!=h&&(d.ref&&sn(d.ref,null,v),a.push(h,v.__c||p,v)),null!=p&&(null==y&&(y=p),_=!(g=d===Ot||null===d.__v)&&b===m,g?-1==b&&w--:b!==m&&(b===m+1?(w++,_=!0):b>m?R>k-m?(w+=b-m,_=!0):w--:w=b(null!=u?1:0))for(;o>=0||l=0){if((u=n[o])&&r==u.key&&s===u.type)return o;o--}if(l2&&(l.children=arguments.length>3?gt.call(arguments,2):i),Ut(t.type,l,e||t.key,r||t.ref,null)}function fn(t,n){var i={__c:n="__cC"+Mt++,__:t,Consumer:function(t,n){return t.children(n)},Provider:function(t){var i,e;return this.getChildContext||(i=[],(e={})[n]=this,this.getChildContext=function(){return e},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&i.some((function(t){t.__e=!0,Bt(t)}))},this.sub=function(t){i.push(t);var n=t.componentWillUnmount;t.componentWillUnmount=function(){i.splice(i.indexOf(t),1),n&&n.call(t)}}),t.children}};return i.Provider.__=i.Consumer.contextType=i}gt=jt.slice,_t={__e:function(t,n,i,e){for(var r,s,o;n=n.__;)if((r=n.__c)&&!r.__)try{if((s=r.constructor)&&null!=s.getDerivedStateFromError&&(r.setState(s.getDerivedStateFromError(t)),o=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(t,e||{}),o=r.__d),o)return r.__E=r}catch(n){t=n}throw t}},wt=0,Pt=function(t){return null!=t&&void 0===t.constructor},Dt.prototype.setState=function(t,n){var i;i=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=xt({},this.state),"function"==typeof t&&(t=t(xt({},i),this.props)),t&&xt(i,t),null!=t&&this.__v&&(n&&this._sb.push(n),Bt(this))},Dt.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),Bt(this))},Dt.prototype.render=Ft,At=[],kt="function"==typeof Promise?Promise.prototype.then.bind(J()):setTimeout,St=function(t,n){return t.__v.__b-n.__v.__b},Gt.__r=0,Mt=0;var hn=0,dn=[],vn=[],pn=_t.__b,yn=_t.__r,mn=_t.diffed,bn=_t.__c,gn=_t.unmount;function _n(t,n){_t.__h&&_t.__h(Vt,t,hn||n),hn=0;var i=Vt.__H||(Vt.__H={__:[],__h:[]});return t>=i.__.length&&i.__.push({__V:vn}),i.__[t]}function wn(t){return hn=1,Pn($n,t)}function Pn(t,n,i){var e=_n(Tt++,2);if(e.t=t,!e.__c&&(e.__=[i?i(n):$n(void 0,n),function(t){var n=e.__N?e.__N[0]:e.__[0],i=e.t(n,t);n!==i&&(e.__N=[i,e.__[1]],e.__c.setState({}))}],e.__c=Vt,!Vt.u)){var r=function(t,n,i){if(!e.__c.__H)return!0;var r=e.__c.__H.__.filter((function(t){return t.__c}));if(r.every((function(t){return!t.__N})))return!s||s.call(this,t,n,i);var o=!1;return r.forEach((function(t){if(t.__N){var n=t.__[0];t.__=t.__N,t.__N=void 0,n!==t.__[0]&&(o=!0)}})),!(!o&&e.__c.props===t)&&(!s||s.call(this,t,n,i))};Vt.u=!0;var s=Vt.shouldComponentUpdate,o=Vt.componentWillUpdate;Vt.componentWillUpdate=function(t,n,i){if(this.__e){var e=s;s=void 0,r(t,n,i),s=e}o&&o.call(this,t,n,i)},Vt.shouldComponentUpdate=r}return e.__N||e.__}function An(t,n){var i=_n(Tt++,3);!_t.__s&&xn(i.__H,n)&&(i.__=t,i.i=n,Vt.__H.__h.push(i))}function Rn(t,n){var i=_n(Tt++,4);!_t.__s&&xn(i.__H,n)&&(i.__=t,i.i=n,Vt.__h.push(i))}function kn(t){return hn=5,Mn((function(){return{current:t}}),[])}function Sn(t,n,i){hn=6,Rn((function(){return"function"==typeof t?(t(n()),function(){return t(null)}):t?(t.current=n(),function(){return t.current=null}):void 0}),null==i?i:i.concat(t))}function Mn(t,n){var i=_n(Tt++,7);return xn(i.__H,n)?(i.__V=t(),i.i=n,i.__h=t,i.__V):i.__}function En(t,n){return hn=8,Mn((function(){return t}),n)}function Tn(t){var n=Vt.context[t.__c],i=_n(Tt++,9);return i.c=t,n?(null==i.__&&(i.__=!0,n.sub(Vt)),n.props.value):t.__}function Vn(){for(var t;t=dn.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(zn),t.__H.__h.forEach(Ln),t.__H.__h=[]}catch(n){t.__H.__h=[],_t.__e(n,t.__v)}}_t.__b=function(t){Vt=null,pn&&pn(t)},_t.__r=function(t){yn&&yn(t),Tt=0;var n=(Vt=t.__c).__H;n&&(Ct===Vt?(n.__h=[],Vt.__h=[],n.__.forEach((function(t){t.__N&&(t.__=t.__N),t.__V=vn,t.__N=t.i=void 0}))):(n.__h.forEach(zn),n.__h.forEach(Ln),n.__h=[],Tt=0)),Ct=Vt},_t.diffed=function(t){mn&&mn(t);var n=t.__c;n&&n.__H&&(n.__H.__h.length&&(1!==dn.push(n)&&It===_t.requestAnimationFrame||((It=_t.requestAnimationFrame)||jn)(Vn)),n.__H.__.forEach((function(t){t.i&&(t.__H=t.i),t.__V!==vn&&(t.__=t.__V),t.i=void 0,t.__V=vn}))),Ct=Vt=null},_t.__c=function(t,n){n.some((function(t){try{t.__h.forEach(zn),t.__h=t.__h.filter((function(t){return!t.__||Ln(t)}))}catch(i){n.some((function(t){t.__h&&(t.__h=[])})),n=[],_t.__e(i,t.__v)}})),bn&&bn(t,n)},_t.unmount=function(t){gn&&gn(t);var n,i=t.__c;i&&i.__H&&(i.__H.__.forEach((function(t){try{zn(t)}catch(t){n=t}})),i.__H=void 0,n&&_t.__e(n,i.__v))};var Cn,In,On="function"==typeof requestAnimationFrame;function jn(t){var n,i=function(){clearTimeout(e),On&&cancelAnimationFrame(n),setTimeout(t)},e=setTimeout(i,100);On&&(n=requestAnimationFrame(i))}function zn(t){var n=Vt,i=t.__c;"function"==typeof i&&(t.__c=void 0,i()),Vt=n}function Ln(t){var n=Vt;t.__c=t.__(),Vt=n}function xn(t,n){return!t||t.length!==n.length||n.some((function(n,i){return n!==t[i]}))}function $n(t,n){return"function"==typeof n?n(t):n}function Nn(t){return t.children}if(void 0!==t&&t.BaseElement)Cn=t.BaseElement;else{class t{constructor(t){this.element=t,this.win=X(t)}mutateElement(t){J().then(t)}isLayoutSupported(){return!0}mountCallback(){}unmountCallback(){}buildCallback(){}}Cn=t}function Un(){return In||(In=fn({renderable:!0,playable:!0,loading:d}))}function qn({children:t,loading:n="auto",notify:i,playable:e=!0,renderable:r=!0}){const s=Fn(),o=r&&s.renderable,l=o&&e&&s.playable,u=g(o?d:v,g(n,s.loading)),c=i||s.notify,a=Mn((()=>({renderable:o,playable:l,loading:u,notify:c})),[o,l,u,c]);return Nt(Un().Provider,{children:t,value:a})}function Fn(){return Tn(Un())}var Dn=U("CanRender",{defaultValue:!0,recursive:t=>t.reduce(Bn),compute:(t,n,i)=>i&&n.reduce(Bn,!0)||!1}),Wn=U("CanPlay",{defaultValue:!0,recursive:t=>t.reduce(Bn),deps:[Dn],compute:(t,n,i,e)=>e&&i&&n.reduce(Bn,!0)||!1}),Hn=U("Loading",{defaultValue:d,recursive:!0,deps:[Dn],compute:(t,n,i,e)=>g(e?d:v,g(i||d,n.reduce(g,d)))}),Bn=(t,n)=>t&&n,Gn="i-amphtml-element",Qn=t=>t.ensureLoaded(),Zn=t=>t.pause(),Jn=t=>t.unmount();function Kn(t,n=!0){ti(t,n,!1,Qn)}function Xn(t,n=!0){ti(t,n,!0,Zn)}function Yn(t,n=!0){ti(t,n,!0,Jn)}function ti(t,n,i,e){const r=o(t);for(let t=0;t{const n=t.current;return h(f(n)),Q(n,Dn,si,e.renderable),Q(n,Wn,si,e.playable),Q(n,Hn,si,e.loading),e.playable||oi(n,Xn,!0),()=>{var t;Z(n,Dn,si),Z(n,Wn,si),Z(n,Hn,si),t=n,L.rediscoverChildren(t)}}),[t,e]),Rn((()=>{const n=t.current;return h(f(n)),i!=v&&oi(n,Kn,!0),()=>{oi(n,Yn,!1)}}),[t,i])}(n,t),An((()=>{t.postRender&&t.postRender()})),Nt("slot",r(r({},t),{},{ref:n}))}function oi(t,n,i){const e=t.assignedElements?t.assignedElements():t;if(Array.isArray(e)&&0==e.length)return;if(!i)return void n(e);const r=t.ownerDocument.defaultView;r&&(r.requestIdleCallback||r.setTimeout)((()=>n(e)))}var li={"position":"absolute","top":"0","left":"0","width":"100%","height":"100%"},ui=function(){let t=0;return()=>String(++t)}();function ci(t,n){return Object.values(t).some(n)}var ai=t=>"string"==typeof t||!!t.selector,fi=t=>{var n;return 3===t.nodeType&&0===(null===(n=t.nodeValue)||void 0===n?void 0:n.trim().length)};function hi(t,n,i,e,s){const{"layoutSizeDefined":o,"lightDomTag":l,"props":u}=t;s&&s.start();const c=r(r({},e),{},{ref:i});return l&&(c["i-amphtml-rendered"]=!0,c.__AMP_RENDERED=!0,c.as=l),o&&(t.usesShadowDom?c.style=li:c.class="i-amphtml-fill-content"),di(t,c,u,n,s),s&&s.complete(),c}function di(t,n,i,e,r){if(ci(i,ai)){const s=function(t){return function(t,n){const i=[];for(let n=t.firstElementChild;n;n=n.nextElementSibling)!rt(n)&&i.push(n);return i}(t)}(e);for(let e=0;e!0,Si=t=>!!t.media,Mi=t=>!(!t.passthrough&&!t.passthroughNonEmpty),Ei=class extends Cn{static R1(){return!0}static requiresShadowDom(){return this.usesShadowDom}static usesLoading(){return this.loadable}static prerenderAllowed(){return!this.usesLoading()}static previewAllowed(){return!1}static Component(){h(!1)}getDefaultProps(){return{"loading":d,"onReadyState":(t,n)=>{this.wL(t,n)},"onPlayingState":t=>{this.VM(t)}}}constructor(t){super(t),this.AL=this.getDefaultProps(),this.t$={renderable:!1,playable:!0,loading:d,notify:()=>this.mutateElement((()=>{}))},this.RL=!1,this.kL=null,this.TL=null,this.SL=t=>{null!==t&&(this.kL?this.ML(t):this.EL(t)),this.TL=t,this.IL()},this.VL=null,this.OL=null,this.v_=null,this.CL=!1,this.jL=null,this.xL=()=>{this.CL=!1,this.LL()},this.zL=!1,this.Os=!1,this.observer=null,this.ib=new class{constructor(t){this.yf=t,this.ob=!1,this.rb=!1,this.sb=this.sb.bind(this)}updatePlaying(t){t!==this.ob&&(this.ob=t,t?(this.rb=!1,function(t,n){!function(t,n,i){const e=t.ownerDocument.defaultView;if(!e)return;let r=vt.get(t);if(r||(r=[],vt.set(t,r),yt(e).observe(t)),!r.some((t=>t.callback===i&&1===t.type))){r.push({type:1,callback:i});const n=pt.get(t);n&&setTimeout((()=>bt(1,i,n)))}}(t,0,n)}(this.yf,this.sb)):function(t,n){!function(t,n,i){const e=vt.get(t);if(e&&(function(t,n){const e=[];let r=0;for(let n=0;n0&&t>0;if(i===this.rb)return;this.rb=i;const e=this.yf;i||e.pause()}}(t),this.qs=null}init(){}isLayoutSupported(t){return this.constructor.layoutSizeDefined?function(t){return"fixed"==t||"fixed-height"==t||"responsive"==t||"fill"==t||"flex-item"==t||"fluid"==t||"intrinsic"==t}(t)||"container"==t:super.isLayoutSupported(t)}buildCallback(){const t=this.constructor;this.observer=new MutationObserver((t=>this.NL(t)));const{props:n}=t,i=ci(n,ai)?yi:null,e=ci(n,Mi)?mi:null,s=t.usesTemplate?bi:null;this.observer.observe(this.element,r(r(r({attributes:!0},i),e),s)),this.qs=ci(n,Si)?new class{constructor(t,n){this.i=t,this.xt=n,this.De={},this.Le=null}start(){this.Le=this.De,this.De={}}resolveMatchQuery(t){return"1"===this.Ue(t,ut,"1")}resolveListQuery(t){return this.Ue(t,ct,"")}complete(){for(const t in this.Le)t in this.De||at(this.Le[t],this.xt,!1);this.Le=null}dispose(){for(const t in this.De)at(this.De[t],this.xt,!1);this.De={}}Ue(t,n,i){if(!t.trim())return i;let e=this.De[t];return e||(h(this.Le),e=this.Le[t]),e||(e=n(this.i,t),at(e,this.xt,!0)),this.De[t]=e,function(t){for(let n=0;nthis.$L())):null;const{staticProps:o}=t,l=this.init();Object.assign(this.AL,o,l),this.checkPropsPostMutations(),D(this.element,[],(()=>()=>{this.Os=!1,this.v_&&un(null,this.v_)})),D(this.element,[Dn,Wn,Hn],((t,n,i)=>{this.t$.renderable=t,this.t$.playable=n,this.t$.loading=i,this.Os=!0,this.$L()}));const{useContexts:u}=t;var c;return 0!=u.length&&D(this.element,u,((...t)=>{this.OL=t,this.$L()})),this.jL=new K,this.$L(),t.loadable&&(null===(c=this.setReadyState)||void 0===c||c.call(this,_)),this.IL(),this.jL.promise}ensureLoaded(){this.constructor.loadable&&(this.mutateProps({"loading":p}),this.RL=!0)}mountCallback(){G(this.element),this.constructor.loadable&&this.getProp("loading")!=d&&(this.mutateProps({"loading":d}),this.RL=!1)}unmountCallback(){var t;G(this.element),this.constructor.loadable&&this.mutateProps({"loading":y}),this.VM(!1),null===(t=this.qs)||void 0===t||t.dispose()}mutateProps(t){Object.assign(this.AL,t),this.$L()}api(){const t=this.TL;return h(t),t}mutationObserverCallback(t){}checkPropsPostMutations(){}updatePropsForRendering(t){}isReady(t){return!0}NL(t){const n=this.constructor;this.mutationObserverCallback(t);const i=t.some((t=>function(t,n){const{type:i}=n;if("attributes"==i){if(t.usesTemplate&&"template"==n.attributeName)return!0;const{props:i}=t;for(const t in i){var e,r;const s=i[t],o=n.attributeName;if(h(o),o==s.attr||null!==(e=s.attrs)&&void 0!==e&&e.includes(o)||null!==(r=s.attrMatches)&&void 0!==r&&r.call(s,o))return!0}return!1}return"childList"==i&&(Ti(n.addedNodes)||Ti(n.removedNodes))}(n,t)));i&&(this.checkPropsPostMutations(),this.$L())}$L(){this.CL||(this.CL=!0,this.mutateElement(this.xL))}IL(){const{TL:t}=this,n=null==t?void 0:t.readyState;n&&n!==this.element.readyState&&this.wL(n)}wL(t,n){var i;null===(i=this.setReadyState)||void 0===i||i.call(this,t,n),this.constructor.unloadOnPause&&this.VM(t==w),this.RL&&(this.RL=!1,this.mutateProps({"loading":d}))}LL(){if(!this.Os)return;const t=this.constructor,{detached:n,usesShadowDom:i}=t,e=i?null:t.lightDomTag;if(!this.v_){const r=this.win.document;if(i){h(!n);let{shadowRoot:i}=this.element,e=i&&(p=i,Y("c"),tt(p,"> c"));if(e)this.zL=!0;else{var s,o,l,u,c,a;i=this.element.attachShadow({mode:"open",delegatesFocus:t.delegatesFocus});const{shadowCss:n}=t;n&&function(t,n,i){const e=t.ownerDocument,r=e.defaultView;if(void 0!==t.adoptedStyleSheets&&void 0!==r.CSSStyleSheet.prototype.replaceSync){const e=r.__AMP_SHADOW_CSS||(r.__AMP_SHADOW_CSS={});let s=e[n];s||(s=new r.CSSStyleSheet,h(s.replaceSync),s.replaceSync(i),e[n]=s),t.adoptedStyleSheets=t.adoptedStyleSheets.concat(s)}else{const r=e.createElement("style");r.setAttribute("data-name",n),r.textContent=i,t.appendChild(r)}}(i,this.element.tagName,n),e=ot(r,"c",gi),i.appendChild(e);const f=ot(r,"slot",wi);i.appendChild(f),null===(s=this.getPlaceholder)||void 0===s||null===(o=s.call(this))||void 0===o||o.setAttribute("slot",_i),null===(l=this.getFallback)||void 0===l||null===(u=l.call(this))||void 0===u||u.setAttribute("slot",_i),null===(c=this.getOverflowElement)||void 0===c||null===(a=c.call(this))||void 0===a||a.setAttribute("slot",_i)}this.v_=e,h(i),function(t,n){L.get(t).setParent(n)}(i,this.element),function(t,n,i,e=0){L.get(t).addGroup(n,i,e)}(this.element,Ri,ki,-1),f=this.element,d=Dn,null===(v=L.get(f).group("unslotted"))||void 0===v||v.values.set(d,this,!1)}else if(e){const n=this.element;this.v_=n;const i=it(n,Pi)||ot(r,e,Ai);i.__AMP_RENDERED=!0,t.layoutSizeDefined&&i.classList.add("i-amphtml-fill-content"),this.v_.appendChild(i)}else{const t=r.createElement("i-amphtml-c");this.v_=t,t.classList.add("i-amphtml-fill-content"),n||this.element.appendChild(t)}}var f,d,v,p;const y=this.v_;h(y);const{useContexts:m}=t,b=this.OL;if(0!=m.length&&null==b)return;const g=hi(t,this.element,this.SL,this.AL,this.qs);if(this.updatePropsForRendering(g),!this.isReady(g))return;let _=Nt(t.Component,g);for(let t=0;tlt(this.element,"amp:dom-update",void 0))),this.jL&&(this.jL.resolve(void 0),this.jL=null)}getProp(t,n){return i=this.AL,e=t,c.call(i,e)?this.AL[t]:n;var i,e}getApi(){const t=this.kL;return t?Promise.resolve(t):(this.VL||(this.VL=new K),this.VL.promise)}EL(t){const n=Object.create(null),i=Object.keys(t);for(let t=0;t{const t=this.TL;return h(t),t[n]},set:t=>{const i=this.TL;h(i),i[n]=t}})}};function Ti(t){for(let n=0;n{throw this.getOverflowElement&&!this.getOverflowElement()&&console.warn("[overflow] element not found. Provide one to enable resizing to full contents.",this.element),t}))}getDefaultProps(){return r(r({},super.getDefaultProps()),{},{"onLoading":()=>{this.handleOnLoading()},"onLoad":()=>{this.handleOnLoad()},"onError":()=>{this.handleOnError()}})}handleOnLoad(){var t,n,i;null===(t=this.toggleLoading)||void 0===t||t.call(this,!1),null===(n=this.toggleFallback)||void 0===n||n.call(this,!1),null===(i=this.togglePlaceholder)||void 0===i||i.call(this,!1)}handleOnLoading(){var t;null===(t=this.toggleLoading)||void 0===t||t.call(this,!0)}handleOnError(){var t,n,i,e,r;null===(t=this.toggleLoading)||void 0===t||t.call(this,!1),null!==(n=this.getFallback)&&void 0!==n&&n.call(this)?(null===(i=this.toggleFallback)||void 0===i||i.call(this,!0),null===(e=this.togglePlaceholder)||void 0===e||e.call(this,!1)):null===(r=this.togglePlaceholder)||void 0===r||r.call(this,!0)}registerApiAction(t,n,i=2){var e;null===(e=this.registerAction)||void 0===e||e.call(this,t,(t=>n(this.api(),t)),i)}};function Ci(t,n){if(null==t)return{};var i,e,r={},s=Object.keys(t);for(e=0;e=0||(r[i]=t[i]);return r}var Ii,Oi=["ref"],ji="undefined"!=typeof Symbol&&(null===(Ii=Symbol.for)||void 0===Ii?void 0:Ii.call(Symbol,"react.forward_ref"))||3911,zi=_t.__b;_t.__b=function(t){var n;null!==(n=t.type)&&void 0!==n&&n.qL&&t.ref&&(t.props.ref=t.ref,t.ref=null),null==zi||zi(t)};var Li=function(t){function n(n){const{ref:i}=n,e=Ci(n,Oi);return t(e,i)}return n.$$typeof=ji,n.render=n,n.prototype.isReactComponent=!0,n.qL=!0,n};function xi(t){return(xi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function $i(t){var n=function(t,n){if("object"!==xi(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var e=i.call(t,"string");if("object"!==xi(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===xi(n)?n:String(n)}var Ni=[null,"paint","layout","content","size","size paint","size layout","strict"],Ui={"position":"relative","width":"100%","height":"100%"},qi=Li((function(t,n){let i="class",{as:e="div",children:s,contentAs:o="div",contentClassName:l,contentProps:u,contentRef:c,contentStyle:a,layout:f=!1,paint:h=!1,size:d=!1,"style":v,wrapperClassName:p,wrapperStyle:y,[i]:m}=t;const b=(d?4:0)+(f?2:0)+(h?1:0);return Nt(e,r(r({},Ci(t,["as","children","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle",i].map($i))),{},{ref:n,class:`${m||""} ${p||""}`.trim()||null,style:r(r(r({},v),y),{},{contain:Ni[b]})}),Nt(o,r(r({},u),{},{ref:c,class:l,style:r(r({},d&&Ui),{},{"overflow":h?"hidden":"visible"},a)}),s))}));function Fi(t){const n=kn(t);return n.current=t,n}Li((function(t,n){let i="class",{as:e="div",children:s,"style":o,wrapperClassName:l,wrapperStyle:u,[i]:c}=t;return Nt(e,r(r({},Ci(t,["as","children","style","wrapperClassName","wrapperStyle",i].map($i))),{},{ref:n,class:`${c||""} ${l||""}`.trim()||null,style:r(r({},o),u)}),s)}));var Di=["allow","allowFullScreen","iframeStyle","loading","matchesMessagingOrigin","messageHandler","name","onReadyState","ready","sandbox","src","title"],Wi=()=>!1,Hi=Li((function(t,n){let{allow:i,allowFullScreen:e,iframeStyle:s,loading:o,matchesMessagingOrigin:l=Wi,messageHandler:u,name:c,onReadyState:a,ready:f=!0,sandbox:h,src:d,title:v}=t,p=Ci(t,Di);const{playable:m}=Fn(),b=function(t){const{loading:n}=Fn();return g(t,n)}(o),P=b!==y,A=kn(!1),R=Fi(a),k=En((t=>{if(t!==A.current){A.current=t;const n=R.current;null==n||n(t?w:_)}}),[R]),S=kn(null);return Sn(n,(()=>({get readyState(){return A.current?w:_},get node(){return S.current}})),[]),Rn((()=>{P||k(!1)}),[P,k]),An((()=>{const t=S.current;if(!m&&t){const{src:n}=t;if((t=>!(!t||"about:blank"==t||t.includes("#")))(n))t.src=t.src;else{const n=t.parentNode;null==n||n.insertBefore(t,t.nextSibling)}}}),[m]),Rn((()=>{const t=S.current;if(!t||!P)return;const n=t=>{const n=S.current;n&&t.source==n.contentWindow&&l(t.origin)&&u(t)},{defaultView:i}=t.ownerDocument;return null==i||i.addEventListener("message",n),()=>null==i?void 0:i.removeEventListener("message",n)}),[l,u,P,f]),Nt(qi,r(r({},p),{},{layout:!0,size:!0,paint:!0}),P&&f&&Nt("iframe",{allow:i,allowFullScreen:e,frameBorder:"0",loading:b,name:c,onLoad:()=>k(!0),part:"iframe",ref:S,sandbox:h,scrolling:"no",src:d,style:r(r({},s),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:v}))}));Hi.displayName="IframeEmbed",self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null},self.__AMP_LOG;var Bi=["onLoad","requestResize","title","url"],{useCallback:Gi,useEffect:Qi,useMemo:Zi,useRef:Ji,useState:Ki}=Et,Xi={},Yi=Li((function(t,n){let{onLoad:i,requestResize:e,title:s="WordPress Embed",url:o}=t,l=Ci(t,Bi);const[u,c]=Ki(Xi),[a,f]=Ki(0),h=Ji(null),[d,v]=Ki(null),p=Fi(i),y=Zi((()=>function(t,n,i,e){return function(t,n,i){if(!n)return t;const e=t.split("#",2),r=e[0].split("?",2);let s=r[0]+(r[1]?`?${r[1]}&${n}`:`?${n}`);return s+=e[1]?`#${e[1]}`:"",s}(t,`${encodeURIComponent("embed")}=${encodeURIComponent("true")}`)}(o)),[o]),m=Gi((t=>{const n=new URL(o),i=new URL(t);return n.origin===i.origin}),[o]),b=Gi((t=>{var n;const i=function(t){return t.data}(t);switch(i.message){case"height":if("number"==typeof i.value){const t=i.value;e&&e(t),c({"height":t}),f(1)}null===(n=p.current)||void 0===n||n.call(p);break;case"link":m(i.value)&&d&&(d.top.location.href=i.value)}}),[e,m,d,p]);return Qi((()=>{var t,n;v(null===(t=h.current)||void 0===t||null===(n=t.ownerDocument)||void 0===n?void 0:n.defaultView)}),[]),function(t){try{return new URL(t),!0}catch(t){return console.warn("Please provide a valid url"),!1}}(o)?Nt(Hi,r({iframeStyle:{opacity:a},matchesMessagingOrigin:m,messageHandler:b,ref:n,contentRef:h,src:y,wrapperStyle:u,title:s},l)):null}));Yi.displayName="BentoWordPressEmbed";var te=class extends Ei{};te.Component=Yi,te.props={url:{attr:"data-url",default:""},title:{attr:"title"}},te.layoutSizeDefined=!0,te.usesShadowDom=!0;var ne=class extends(function(t,n){return Object.setPrototypeOf(t,n),Object.setPrototypeOf(t.prototype,n.prototype),t}(te,Vi)){isLayoutSupported(t){return super.isLayoutSupported(t)}init(){return{"requestResize":t=>this.attemptChangeHeight(t).catch((()=>{}))}}};t.registerElement("amp-wordpress-embed",ne)})(); /*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */}}); //# sourceMappingURL=amp-wordpress-embed-1.0.mjs.map