(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{createElement:()=>d,deepSignal:()=>Ft,directive:()=>ue,store:()=>ne,useContext:()=>tt,useEffect:()=>Y,useMemo:()=>Z});var n,r,o,i,_,s,u,l,c={},f=[],a=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function p(t,e){for(var n in e)t[n]=e[n];return t}function h(t){var e=t.parentNode;e&&e.removeChild(t)}function d(t,e,r){var o,i,_,s={};for(_ in e)"key"==_?o=e[_]:"ref"==_?i=e[_]:s[_]=e[_];if(arguments.length>2&&(s.children=arguments.length>3?n.call(arguments,2):r),"function"==typeof t&&null!=t.defaultProps)for(_ in t.defaultProps)void 0===s[_]&&(s[_]=t.defaultProps[_]);return v(t,s,o,i,null)}function v(t,e,n,i,_){var s={type:t,props:e,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==_?++o:_};return null==_&&null!=r.vnode&&r.vnode(s),s}function y(t){return t.children}function m(t,e){this.props=t,this.context=e}function g(t,e){if(null==e)return t.__?g(t.__,t.__.__k.indexOf(t)+1):null;for(var n;ee&&i.sort(u));w.__r=0}function k(t,e,n,r,o,i,_,s,u,l){var a,p,h,d,m,b,x,w=r&&r.__k||f,k=w.length;for(n.__k=[],a=0;a0?v(d.type,d.props,d.key,d.ref?d.ref:null,d.__v):d)){if(d.__=n,d.__b=n.__b+1,null===(h=w[a])||h&&d.key==h.key&&d.type===h.type)w[a]=void 0;else for(p=0;p=0;e--)if((n=t.__k[e])&&(r=E(n)))return r;return null}function P(t,e,n){"-"===e[0]?t.setProperty(e,null==n?"":n):t[e]=null==n?"":"number"!=typeof n||a.test(e)?n:n+"px"}function $(t,e,n,r,o){var i;t:if("style"===e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof r&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||P(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||P(t.style,e,n[e])}else if("o"===e[0]&&"n"===e[1])i=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=n,n?r||t.addEventListener(e,i?O:N,i):t.removeEventListener(e,i?O:N,i);else if("dangerouslySetInnerHTML"!==e){if(o)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==e&&"height"!==e&&"href"!==e&&"list"!==e&&"form"!==e&&"tabIndex"!==e&&"download"!==e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null==n||!1===n&&"-"!==e[4]?t.removeAttribute(e):t.setAttribute(e,n))}}function N(t){return this.l[t.type+!1](r.event?r.event(t):t)}function O(t){return this.l[t.type+!0](r.event?r.event(t):t)}function T(t,e,n,o,i,_,s,u,l){var c,f,a,h,d,v,g,b,x,w,S,C,E,P,$,N=e.type;if(void 0!==e.constructor)return null;null!=n.__h&&(l=n.__h,u=e.__e=n.__e,e.__h=null,_=[u]),(c=r.__b)&&c(e);try{t:if("function"==typeof N){if(b=e.props,x=(c=N.contextType)&&o[c.__c],w=c?x?x.props.value:c.__:o,n.__c?g=(f=e.__c=n.__c).__=f.__E:("prototype"in N&&N.prototype.render?e.__c=f=new N(b,w):(e.__c=f=new m(b,w),f.constructor=N,f.render=M),x&&x.sub(f),f.props=b,f.state||(f.state={}),f.context=w,f.__n=o,a=f.__d=!0,f.__h=[],f._sb=[]),null==f.__s&&(f.__s=f.state),null!=N.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=p({},f.__s)),p(f.__s,N.getDerivedStateFromProps(b,f.__s))),h=f.props,d=f.state,f.__v=e,a)null==N.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==N.getDerivedStateFromProps&&b!==h&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(b,w),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(b,f.__s,w)||e.__v===n.__v){for(e.__v!==n.__v&&(f.props=b,f.state=f.__s,f.__d=!1),f.__e=!1,e.__e=n.__e,e.__k=n.__k,e.__k.forEach((function(t){t&&(t.__=e)})),S=0;S=n.__.length&&n.__.push({__V:I}),n.__[t]}function Y(t,e){var n=X(F++,3);!r.__s&&_t(n.__H,e)&&(n.__=t,n.i=e,D.__H.__h.push(n))}function Z(t,e){var n=X(F++,7);return _t(n.__H,e)?(n.__V=t(),n.i=e,n.__h=t,n.__V):n.__}function tt(t){var e=D.context[t.__c],n=X(F++,9);return n.c=t,e?(null==n.__&&(n.__=!0,e.sub(D)),e.props.value):t.__}function et(){for(var t;t=B.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(ot),t.__H.__h.forEach(it),t.__H.__h=[]}catch(e){t.__H.__h=[],r.__e(e,t.__v)}}r.__b=function(t){D=null,z&&z(t)},r.__r=function(t){G&&G(t),F=0;var e=(D=t.__c).__H;e&&(R===D?(e.__h=[],D.__h=[],e.__.forEach((function(t){t.__N&&(t.__=t.__N),t.__V=I,t.__N=t.i=void 0}))):(e.__h.forEach(ot),e.__h.forEach(it),e.__h=[])),R=D},r.diffed=function(t){J&&J(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==B.push(e)&&V===r.requestAnimationFrame||((V=r.requestAnimationFrame)||rt)(et)),e.__H.__.forEach((function(t){t.i&&(t.__H=t.i),t.__V!==I&&(t.__=t.__V),t.i=void 0,t.__V=I}))),R=D=null},r.__c=function(t,e){e.some((function(t){try{t.__h.forEach(ot),t.__h=t.__h.filter((function(t){return!t.__||it(t)}))}catch(n){e.some((function(t){t.__h&&(t.__h=[])})),e=[],r.__e(n,t.__v)}})),K&&K(t,e)},r.unmount=function(t){Q&&Q(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach((function(t){try{ot(t)}catch(t){e=t}})),n.__H=void 0,e&&r.__e(e,n.__v))};var nt="function"==typeof requestAnimationFrame;function rt(t){var e,n=function(){clearTimeout(r),nt&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);nt&&(e=requestAnimationFrame(n))}function ot(t){var e=D,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),D=e}function it(t){var e=D;t.__c=t.__(),D=e}function _t(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function st(){throw new Error("Cycle detected")}function ut(){if(at>1)at--;else{for(var t,e=!1;void 0!==ft;){var n=ft;for(ft=void 0,pt++;void 0!==n;){var r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&mt(n))try{n.c()}catch(n){e||(t=n,e=!0)}n=r}}if(pt=0,at--,e)throw t}}var lt,ct=void 0,ft=void 0,at=0,pt=0,ht=0;function dt(t){if(void 0!==ct){var e=t.n;if(void 0===e||e.t!==ct)return e={i:0,S:t,p:ct.s,n:void 0,t:ct,e:void 0,x:void 0,r:e},void 0!==ct.s&&(ct.s.n=e),ct.s=e,t.n=e,32&ct.f&&t.S(e),e;if(-1===e.i)return e.i=0,void 0!==e.n&&(e.n.p=e.p,void 0!==e.p&&(e.p.n=e.n),e.p=ct.s,e.n=void 0,ct.s.n=e,ct.s=e),e}}function vt(t){this.v=t,this.i=0,this.n=void 0,this.t=void 0}function yt(t){return new vt(t)}function mt(t){for(var e=t.s;void 0!==e;e=e.n)if(e.S.i!==e.i||!e.S.h()||e.S.i!==e.i)return!0;return!1}function gt(t){for(var e=t.s;void 0!==e;e=e.n){var n=e.S.n;if(void 0!==n&&(e.r=n),e.S.n=e,e.i=-1,void 0===e.n){t.s=e;break}}}function bt(t){for(var e=t.s,n=void 0;void 0!==e;){var r=e.p;-1===e.i?(e.S.U(e),void 0!==r&&(r.n=e.n),void 0!==e.n&&(e.n.p=r)):n=e,e.S.n=e.r,void 0!==e.r&&(e.r=void 0),e=r}t.s=n}function xt(t){vt.call(this,void 0),this.x=t,this.s=void 0,this.g=ht-1,this.f=4}function wt(t){return new xt(t)}function kt(t){var e=t.u;if(t.u=void 0,"function"==typeof e){at++;var n=ct;ct=void 0;try{e()}catch(e){throw t.f&=-2,t.f|=8,St(t),e}finally{ct=n,ut()}}}function St(t){for(var e=t.s;void 0!==e;e=e.n)e.S.U(e);t.x=void 0,t.s=void 0,kt(t)}function Ct(t){if(ct!==this)throw new Error("Out-of-order effect");bt(this),ct=t,this.f&=-2,8&this.f&&St(this),ut()}function Et(t){this.x=t,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function Pt(t){var e=new Et(t);try{e.c()}catch(t){throw e.d(),t}return e.d.bind(e)}function $t(t,e){r[t]=e.bind(null,r[t]||function(){})}function Nt(t){lt&<(),lt=t&&t.S()}function Ot(t){var e=this,n=t.data,r=function(t){return Z((function(){return yt(t)}),[])}(n);r.value=n;var o=Z((function(){for(var t=e.__v;t=t.__;)if(t.__c){t.__c.__$f|=4;break}return e.__$u.c=function(){e.base.data=o.peek()},wt((function(){var t=r.value.value;return 0===t?0:!0===t?"":t||""}))}),[]);return o.value}function Tt(t,e,n,r){var o=e in t&&void 0===t.ownerSVGElement,i=yt(n);return{o:function(t,e){i.value=t,r=e},d:Pt((function(){var n=i.value.value;r[e]!==n&&(r[e]=n,o?t[e]=n:n?t.setAttribute(e,n):t.removeAttribute(e))}))}}vt.prototype.h=function(){return!0},vt.prototype.S=function(t){this.t!==t&&void 0===t.e&&(t.x=this.t,void 0!==this.t&&(this.t.e=t),this.t=t)},vt.prototype.U=function(t){if(void 0!==this.t){var e=t.e,n=t.x;void 0!==e&&(e.x=n,t.e=void 0),void 0!==n&&(n.e=e,t.x=void 0),t===this.t&&(this.t=n)}},vt.prototype.subscribe=function(t){var e=this;return Pt((function(){var n=e.value,r=32&this.f;this.f&=-33;try{t(n)}finally{this.f|=r}}))},vt.prototype.valueOf=function(){return this.value},vt.prototype.toString=function(){return this.value+""},vt.prototype.toJSON=function(){return this.value},vt.prototype.peek=function(){return this.v},Object.defineProperty(vt.prototype,"value",{get:function(){var t=dt(this);return void 0!==t&&(t.i=this.i),this.v},set:function(t){if(ct instanceof xt&&function(){throw new Error("Computed cannot have side-effects")}(),t!==this.v){pt>100&&st(),this.v=t,this.i++,ht++,at++;try{for(var e=this.t;void 0!==e;e=e.x)e.t.N()}finally{ut()}}}}),(xt.prototype=new vt).h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===ht)return!0;if(this.g=ht,this.f|=1,this.i>0&&!mt(this))return this.f&=-2,!0;var t=ct;try{gt(this),ct=this;var e=this.x();(16&this.f||this.v!==e||0===this.i)&&(this.v=e,this.f&=-17,this.i++)}catch(t){this.v=t,this.f|=16,this.i++}return ct=t,bt(this),this.f&=-2,!0},xt.prototype.S=function(t){if(void 0===this.t){this.f|=36;for(var e=this.s;void 0!==e;e=e.n)e.S.S(e)}vt.prototype.S.call(this,t)},xt.prototype.U=function(t){if(void 0!==this.t&&(vt.prototype.U.call(this,t),void 0===this.t)){this.f&=-33;for(var e=this.s;void 0!==e;e=e.n)e.S.U(e)}},xt.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var t=this.t;void 0!==t;t=t.x)t.t.N()}},xt.prototype.peek=function(){if(this.h()||st(),16&this.f)throw this.v;return this.v},Object.defineProperty(xt.prototype,"value",{get:function(){1&this.f&&st();var t=dt(this);if(this.h(),void 0!==t&&(t.i=this.i),16&this.f)throw this.v;return this.v}}),Et.prototype.c=function(){var t=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var e=this.x();"function"==typeof e&&(this.u=e)}finally{t()}},Et.prototype.S=function(){1&this.f&&st(),this.f|=1,this.f&=-9,kt(this),gt(this),at++;var t=ct;return ct=this,Ct.bind(this,t)},Et.prototype.N=function(){2&this.f||(this.f|=2,this.o=ft,ft=this)},Et.prototype.d=function(){this.f|=8,1&this.f||St(this)},Ot.displayName="_st",Object.defineProperties(vt.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:Ot},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}}),$t("__b",(function(t,e){if("string"==typeof e.type){var n,r=e.props;for(var o in r)if("children"!==o){var i=r[o];i instanceof vt&&(n||(e.__np=n={}),n[o]=i,r[o]=i.peek())}}t(e)})),$t("__r",(function(t,e){Nt();var n,r=e.__c;r&&(r.__$f&=-2,void 0===(n=r.__$u)&&(r.__$u=n=function(t){var e;return Pt((function(){e=this})),e.c=function(){r.__$f|=1,r.setState({})},e}())),Nt(n),t(e)})),$t("__e",(function(t,e,n,r){Nt(),t(e,n,r)})),$t("diffed",(function(t,e){var n;if(Nt(),"string"==typeof e.type&&(n=e.__e)){var r=e.__np,o=e.props;if(r){var i=n.U;if(i)for(var _ in i){var s=i[_];void 0===s||_ in r||(s.d(),i[_]=void 0)}else n.U=i={};for(var u in r){var l=i[u],c=r[u];void 0===l?(l=Tt(n,u,c,o),i[u]=l):l.o(c,o)}}}t(e)})),$t("unmount",(function(t,e){if("string"==typeof e.type){var n=e.__e;if(n){var r=n.U;if(r)for(var o in n.U=void 0,r){var i=r[o];i&&i.d()}}}else{var _=e.__c;if(_){var s=_.__$u;s&&(_.__$u=void 0,s.d())}}t(e)})),$t("__h",(function(t,e,n,r){r<3&&(e.__$f|=2),t(e,n,r)})),m.prototype.shouldComponentUpdate=function(t,e){var n=this.__$u;if(!(n&&void 0!==n.s||4&this.__$f))return!0;if(3&this.__$f)return!0;for(var r in e)return!0;for(var o in t)if("__source"!==o&&t[o]!==this.props[o])return!0;for(var i in this.props)if(!(i in t))return!0;return!1};var At=new WeakMap,Ht=new WeakMap,Ut=new WeakMap,jt=new WeakSet,Mt=new WeakMap,Lt=/^\$/,Wt=!1,Ft=function(t){if(!Jt(t))throw new Error("This object can't be observed.");return Ht.has(t)||Ht.set(t,Rt(t,Bt)),Ht.get(t)},Dt=function(t,e){Wt=!0;var n=t[e];try{Wt=!1}catch(t){}return n},Rt=function(t,e){var n=new Proxy(t,e);return jt.add(n),n},Vt=function(){throw new Error("Don't mutate the signals directly.")},qt=function(t){return function(e,n,r){var o;if(Wt)return Reflect.get(e,n,r);var i=t||"$"===n[0];if(!t&&i&&Array.isArray(e)){if("$"===n)return Ut.has(e)||Ut.set(e,Rt(e,It)),Ut.get(e);i="$length"===n}At.has(r)||At.set(r,new Map);var _=At.get(r),s=i?n.replace(Lt,""):n;if(_.has(s)||"function"!=typeof(null==(o=Object.getOwnPropertyDescriptor(e,s))?void 0:o.get)){var u=Reflect.get(e,s,r);if(i&&"function"==typeof u)return;if("symbol"==typeof s&&zt.has(s))return u;_.has(s)||(Jt(u)&&(Ht.has(u)||Ht.set(u,Rt(u,Bt)),u=Ht.get(u)),_.set(s,yt(u)))}else _.set(s,wt((function(){return Reflect.get(e,s,r)})));return i?_.get(s):_.get(s).value}},Bt={get:qt(!1),set:function(t,e,n,r){At.has(r)||At.set(r,new Map);var o=At.get(r);if("$"===e[0]){n instanceof vt||Vt();var i=e.replace(Lt,"");return o.set(i,n),Reflect.set(t,i,n.peek(),r)}var _=n;Jt(n)&&(Ht.has(n)||Ht.set(n,Rt(n,Bt)),_=Ht.get(n));var s=!(e in t),u=Reflect.set(t,e,n,r);return o.has(e)?o.get(e).value=_:o.set(e,yt(_)),s&&Mt.has(t)&&Mt.get(t).value++,Array.isArray(t)&&o.has("length")&&(o.get("length").value=t.length),u},deleteProperty:function(t,e){"$"===e[0]&&Vt();var n=At.get(Ht.get(t)),r=Reflect.deleteProperty(t,e);return n&&n.has(e)&&(n.get(e).value=void 0),Mt.has(t)&&Mt.get(t).value++,r},ownKeys:function(t){return Mt.has(t)||Mt.set(t,yt(0)),Mt._=Mt.get(t).value,Reflect.ownKeys(t)}},It={get:qt(!0),set:Vt,deleteProperty:Vt},zt=new Set(Object.getOwnPropertyNames(Symbol).map((function(t){return Symbol[t]})).filter((function(t){return"symbol"==typeof t}))),Gt=new Set([Object,Array]),Jt=function(t){return"object"==typeof t&&null!==t&&(!("function"==typeof t.constructor&&t.constructor.name in globalThis&&globalThis[t.constructor.name]===t.constructor)||Gt.has(t.constructor))&&!jt.has(t)};function Kt(t){return this.getChildContext=()=>t.context,t.children}function Qt(t){const e=this,n=t._container;e.componentWillUnmount=function(){L(null,e._temp),e._temp=null,e._container=null},e._container&&e._container!==n&&e.componentWillUnmount(),t._vnode?(e._temp||(e._container=n,e._temp={nodeType:1,parentNode:n,childNodes:[],appendChild(t){this.childNodes.push(t),e._container.appendChild(t)},insertBefore(t){this.childNodes.push(t),e._container.appendChild(t)},removeChild(t){this.childNodes.splice(this.childNodes.indexOf(t)>>>1,1),e._container.removeChild(t)}}),L(d(Kt,{context:e.context},t._vnode),e._temp)):e._temp&&e.componentWillUnmount()}const Xt=t=>t&&"object"==typeof t&&!Array.isArray(t),Yt=(t,e)=>{if(Xt(t)&&Xt(e))for(const n in e)Xt(e[n])?(t[n]||Object.assign(t,{[n]:{}}),Yt(t[n],e[n])):Object.assign(t,{[n]:e[n]})},Zt=new Set,te=(()=>{const t=document.querySelector('script[type="application/json"]#wp-interactivity-store-data');if(!t)return{};try{const{state:e}=JSON.parse(t.textContent);if(Xt(e))return e;throw Error("Parsed state is not an object")}catch(t){console.log(t)}return{}})(),ee={state:Ft(te)},ne=({state:t,...e},{afterLoad:n}={})=>{Yt(ee,e),Yt(te,t),n&&Zt.add(n)};var re=0;function oe(t,e,n,o,i,_){var s,u,l={};for(u in e)"ref"==u?s=e[u]:l[u]=e[u];var c={type:t,props:l,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--re,__source:i,__self:_};if("function"==typeof t&&(s=t.defaultProps))for(u in s)void 0===l[u]&&(l[u]=s[u]);return r.vnode&&r.vnode(c),c}const ie=function(t,e){var n={__c:e="__cC"+l++,__:{},Consumer:function(t,e){return t.children(e)},Provider:function(t){var n,r;return this.getChildContext||(n=[],(r={})[e]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&n.some((function(t){t.__e=!0,x(t)}))},this.sub=function(t){n.push(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){n.splice(n.indexOf(t),1),e&&e.call(t)}}),t.children}};return n.Provider.__=n.Consumer.contextType=n}(),_e={},se={},ue=(t,e,{priority:n=10}={})=>{_e[t]=e,se[t]=n},le=({directives:t,priorityLevels:[e,...r],element:o,evaluate:i,originalProps:_,elemRef:s})=>{var u;s=s||(q=5,Z((function(){return{current:null}}),[])),i=i||(u=(({ref:t}={})=>(e,n={})=>{const r="!"===e[0]&&!!(e=e.slice(1)),o=((t,e)=>{let n={...ee,context:e};return t.split(".").forEach((t=>n=n[t])),n})(e,n.context),i="function"==typeof o?o({ref:t.current,...ee,...n}):o;return r?!i:i})({ref:s}),q=8,Z((function(){return u}),[])),o=function(t,e,r){var o,i,_,s=p({},t.props);for(_ in e)"key"==_?o=e[_]:"ref"==_?i=e[_]:s[_]=e[_];return arguments.length>2&&(s.children=arguments.length>3?n.call(arguments,2):r),v(t.type,s,o||t.key,i||t.ref,null)}(o,{ref:s});const l=r.length>0?oe(le,{directives:t,priorityLevels:r,element:o,evaluate:i,originalProps:_,elemRef:s}):o,c={..._,children:l},f={directives:t,props:c,element:o,context:ie,evaluate:i};for(const t of e){const e=_e[t]?.(f);void 0!==e&&(c.children=e)}return c.children},ce=r.vnode;r.vnode=t=>{if(t.props.__directives){const e=t.props,n=e.__directives;delete e.__directives;const r=(t=>{const e=Object.keys(t).reduce(((t,e)=>{if(_e[e]){const n=se[e];(t[n]=t[n]||[]).push(e)}return t}),{});return Object.entries(e).sort((([t],[e])=>t-e)).map((([,t])=>t))})(n);r.length>0&&(t.props={directives:n,priorityLevels:r,originalProps:e,type:t.type,element:d(t.type,e),top:!0},t.type=le)}ce&&ce(t)};const fe=t=>t&&"object"==typeof t&&!Array.isArray(t),ae=(t,e)=>{for(const n in e)void 0===Dt(t,n)?t[`$${n}`]=e[`$${n}`]:fe(Dt(t,n))&&fe(Dt(e,n))&&ae(t[`$${n}`].peek(),e[`$${n}`].peek())},pe="wp",he=`data-${pe}-ignore`,de=`data-${pe}-interactive`,ve=`data-${pe}-`,ye=new RegExp(`^data-${pe}-([a-z0-9]+(?:-[a-z0-9]+)*)(?:--([a-z0-9_-]+))?$`,"i"),me=new WeakSet;(()=>{ue("context",(({directives:{context:{default:t}},props:{children:e},context:n})=>{const{Provider:r}=n,o=tt(n);return oe(r,{value:Z((()=>{const e=Ft(t);return ae(e,o),e}),[t,o]),children:e})}),{priority:5}),ue("body",(({props:{children:t}})=>function(t,e){const n=d(Qt,{_vnode:t,_container:e});return n.containerInfo=e,n}(t,document.body))),ue("effect",(({directives:{effect:t},context:e,evaluate:n})=>{const r=tt(e);Object.values(t).forEach((t=>{var e;e=()=>n(t,{context:r}),Y((()=>{let t=null,n=!1;return t=function(t,e){let n;const r=Pt((function(){return n=this.c.bind(this),this.x=t,this.c=e,t()}));return{flush:n,dispose:r}}(e,(async()=>{t&&!n&&(n=!0,await(t=>new Promise((e=>{const n=()=>{clearTimeout(r),window.cancelAnimationFrame(o),setTimeout((()=>{t(),e()}))},r=setTimeout(n,100),o=window.requestAnimationFrame(n)})))(t.flush),n=!1)})),t.dispose}),[])}))})),ue("init",(({directives:{init:t},context:e,evaluate:n})=>{const r=tt(e);Object.values(t).forEach((t=>{Y((()=>n(t,{context:r})),[])}))})),ue("on",(({directives:{on:t},element:e,evaluate:n,context:r})=>{const o=tt(r);Object.entries(t).forEach((([t,r])=>{e.props[`on${t}`]=t=>{n(r,{event:t,context:o})}}))})),ue("class",(({directives:{class:t},element:e,evaluate:n,context:r})=>{const o=tt(r);Object.keys(t).filter((t=>"default"!==t)).forEach((r=>{const i=n(t[r],{className:r,context:o}),_=e.props.class||"",s=new RegExp(`(^|\\s)${r}(\\s|$)`,"g");i?s.test(_)||(e.props.class=_?`${_} ${r}`:r):e.props.class=_.replace(s," ").trim(),Y((()=>{i?e.ref.current.classList.add(r):e.ref.current.classList.remove(r)}),[])}))}));const t=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,e=/\/\*[^]*?\*\/| +/g,n=/\n+/g;ue("style",(({directives:{style:r},element:o,evaluate:i,context:_})=>{const s=tt(_);Object.keys(r).filter((t=>"default"!==t)).forEach((_=>{const u=i(r[_],{key:_,context:s});o.props.style=o.props.style||{},"string"==typeof o.props.style&&(o.props.style=(r=>{const o=[{}];let i,_;for(;i=t.exec(r.replace(e,""));)i[4]?o.shift():i[3]?(_=i[3].replace(n," ").trim(),o.unshift(o[0][_]=o[0][_]||{})):o[0][i[1]]=i[2].replace(n," ").trim();return o[0]})(o.props.style)),u?o.props.style[_]=u:delete o.props.style[_],Y((()=>{u?o.ref.current.style[_]=u:o.ref.current.style.removeProperty(_)}),[])}))})),ue("bind",(({directives:{bind:t},element:e,context:n,evaluate:r})=>{const o=tt(n);Object.entries(t).filter((t=>"default"!==t)).forEach((([t,n])=>{const i=r(n,{context:o});e.props[t]=i,Y((()=>{!1===i&&"-"!==t[4]?e.ref.current.removeAttribute(t):e.ref.current.setAttribute(t,!0===i&&"-"!==t[4]?"":i)}),[])}))})),ue("ignore",(({element:{type:t,props:{innerHTML:e,...n}}})=>oe(t,{dangerouslySetInnerHTML:{__html:Z((()=>e),[])},...n}))),ue("text",(({directives:{text:{default:t}},element:e,evaluate:n,context:r})=>{const o=tt(r);e.props.children=n(t,{context:o})}))})(),document.addEventListener("DOMContentLoaded",(async()=>{await(async()=>{document.querySelectorAll(`[data-${pe}-interactive]`).forEach((t=>{if(!me.has(t)){const e=((t,e)=>{const n=(e=[].concat(e))[e.length-1].nextSibling;function r(e,r){t.insertBefore(e,r||n)}return t.__k={nodeType:1,parentNode:t,firstChild:e[0],childNodes:e,insertBefore:r,appendChild:r,removeChild(e){t.removeChild(e)}}})(t.parentNode,t),n=function(t){const e=document.createTreeWalker(t,205);return function t(n){const{attributes:r,nodeType:o}=n;if(3===o)return[n.data];if(4===o){const t=e.nextSibling();return n.replaceWith(new window.Text(n.nodeValue)),[n.nodeValue,t]}if(8===o||7===o){const t=e.nextSibling();return n.remove(),[null,t]}const i={},_=[],s={};let u=!1,l=!1,c=!1;for(let t=0;tt(ee)))})),(window.wp=window.wp||{}).interactivity=e})(); //# sourceMappingURL=index.min.js.map; (()=>{"use strict";const i=window.wp.interactivity,t=i=>{let t;try{t=new window.ActiveXObject(i)}catch(i){t=void 0}return t};(0,i.store)({selectors:{core:{file:{hasPdfPreview:()=>!(window.navigator.userAgent.indexOf("Mobi")>-1||window.navigator.userAgent.indexOf("Android")>-1||window.navigator.userAgent.indexOf("Macintosh")>-1&&window.navigator.maxTouchPoints&&window.navigator.maxTouchPoints>2||(window.ActiveXObject||"ActiveXObject"in window)&&!t("AcroPDF.PDF")&&!t("PDF.PdfCtrl"))}}}})})(); //# sourceMappingURL=view-interactivity.min.js.map; !function(){"use strict";var e,t={noop:function(){},texturize:function(e){return(e=(e=(e=(e+="").replace(/'/g,"’").replace(/'/g,"’")).replace(/"/g,"”").replace(/"/g,"”").replace(/"/g,"”").replace(/[\u201D]/g,"”")).replace(/([\w]+)=&#[\d]+;(.+?)&#[\d]+;/g,'$1="$2"')).trim()},applyReplacements:function(e,t){if(e)return t?e.replace(/{(\d+)}/g,(function(e,r){return void 0!==t[r]?t[r]:e})):e},getBackgroundImage:function(e){var t=document.createElement("canvas"),r=t.getContext&&t.getContext("2d");if(e){r.filter="blur(20px) ",r.drawImage(e,0,0);var o=t.toDataURL("image/png");return t=null,o}}},r=function(){function e(e,t){return Element.prototype.matches?e.matches(t):Element.prototype.msMatchesSelector?e.msMatchesSelector(t):void 0}function r(e,t,r,o){if(!e)return o();e.style.removeProperty("display"),e.style.opacity=t,e.style.transition="opacity 0.2s",e.style.pointerEvents="none";var a=function(t){t.target===e&&"opacity"===t.propertyName&&(e.style.removeProperty("transition"),e.style.removeProperty("opacity"),e.style.removeProperty("pointer-events"),e.removeEventListener("transitionend",a),e.removeEventListener("transitioncancel",a),o())};requestAnimationFrame((function(){requestAnimationFrame((function(){e.addEventListener("transitionend",a),e.addEventListener("transitioncancel",a),e.style.opacity=r}))}))}return{closest:function(t,r){if(t.closest)return t.closest(r);var o=t;do{if(e(o,r))return o;o=o.parentElement||o.parentNode}while(null!==o&&1===o.nodeType);return null},matches:e,hide:function(e){e&&(e.style.display="none")},show:function(e){e&&(e.style.display="block")},fadeIn:function(e,o){r(e,"0","1",o=o||t.noop)},fadeOut:function(e,o){o=o||t.noop,r(e,"1","0",(function(){e&&(e.style.display="none"),o()}))},scrollToElement:function(e,t,r){if(!e||!t)return r?r():void 0;var o=t.querySelector(".jp-carousel-info-extra");o&&(o.style.minHeight=window.innerHeight-64+"px");var a=!0,i=Date.now(),n=t.scrollTop,l=Math.max(0,e.offsetTop-Math.max(0,window.innerHeight-function(e){var t=e.querySelector(".jp-carousel-info-footer"),r=e.querySelector(".jp-carousel-info-extra"),o=e.querySelector(".jp-carousel-info-content-wrapper");if(t&&r&&o){var a=window.getComputedStyle(r),i=parseInt(a.paddingTop,10)+parseInt(a.paddingBottom,10);return i=isNaN(i)?0:i,o.offsetHeight+t.offsetHeight+i}return 0}(t)))-t.scrollTop;function s(){a=!1}l=Math.min(l,t.scrollHeight-window.innerHeight),t.addEventListener("wheel",s),function e(){var c,u=Date.now(),d=(c=(u-i)/300)<.5?2*c*c:1-Math.pow(-2*c+2,2)/2,p=(d=d>1?1:d)*l;if(t.scrollTop=n+p,u<=i+300&&a)return requestAnimationFrame(e);r&&r(),o&&(o.style.minHeight=""),a=!1,t.removeEventListener("wheel",s)}()},getJSONAttribute:function(e,t){if(e&&e.hasAttribute(t))try{return JSON.parse(e.getAttribute(t))}catch(e){return}},convertToPlainText:function(e){var t=document.createElement("div");return t.textContent=e,t.innerHTML},stripHTML:function(e){return e.replace(/<[^>]*>?/gm,"")},emitEvent:function(e,t,r){var o;try{o=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:r||null})}catch(e){(o=document.createEvent("CustomEvent")).initCustomEvent(t,!0,!0,r||null)}e.dispatchEvent(o)},isTouch:function(){return"ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch}}}();function o(){var o,a,i,n,l="",s=!1,c="div.gallery, div.tiled-gallery, ul.wp-block-gallery, ul.blocks-gallery-grid, figure.wp-block-gallery.has-nested-images, div.wp-block-jetpack-tiled-gallery, a.single-image-gallery",u=".gallery-item, .tiled-gallery-item, .blocks-gallery-item, .tiled-gallery__item",d=u+", .wp-block-image",p={},m="undefined"!=typeof wpcom&&wpcom.carousel&&wpcom.carousel.stat?wpcom.carousel.stat:t.noop,g="undefined"!=typeof wpcom&&wpcom.carousel&&wpcom.carousel.pageview?wpcom.carousel.pageview:t.noop;function h(t){if(!s)switch(t.which){case 38:t.preventDefault(),p.overlay.scrollTop-=100;break;case 40:t.preventDefault(),p.overlay.scrollTop+=100;break;case 39:t.preventDefault(),e.slideNext();break;case 37:case 8:t.preventDefault(),e.slidePrev();break;case 27:t.preventDefault(),b()}}function f(){s=!0}function v(){s=!1}function y(){p.overlay||(p.overlay=document.querySelector(".jp-carousel-overlay"),p.container=p.overlay.querySelector(".jp-carousel-wrap"),p.gallery=p.container.querySelector(".jp-carousel"),p.info=p.overlay.querySelector(".jp-carousel-info"),p.caption=p.info.querySelector(".jp-carousel-caption"),p.commentField=p.overlay.querySelector("#jp-carousel-comment-form-comment-field"),p.emailField=p.overlay.querySelector("#jp-carousel-comment-form-email-field"),p.authorField=p.overlay.querySelector("#jp-carousel-comment-form-author-field"),p.urlField=p.overlay.querySelector("#jp-carousel-comment-form-url-field"),window.innerWidth<=760&&Math.round(window.innerWidth/760*110)<40&&r.isTouch(),[p.commentField,p.emailField,p.authorField,p.urlField].forEach((function(e){e&&(e.addEventListener("focus",f),e.addEventListener("blur",v))})),p.overlay.addEventListener("click",(function(e){var t,o,a=e.target,i=!!r.closest(a,".jp-carousel-close-hint"),n=!!window.matchMedia("(max-device-width: 760px)").matches;if(a===p.overlay){if(n)return;b()}else if(i)b();else if(a.classList.contains("jp-carousel-image-download"))m("download_original_click");else if(a.classList.contains("jp-carousel-comment-login"))t=p.currentSlide,o=t?t.attrs.attachmentId:"0",window.location.href=jetpackCarouselStrings.login_url+"%23jp-carousel-"+o;else if(r.closest(a,"#jp-carousel-comment-form-container"))!function(e){var t=e.target,o=r.getJSONAttribute(p.container,"data-carousel-extra")||{},a=p.currentSlide.attrs.attachmentId,i=document.querySelector("#jp-carousel-comment-form-submit-and-info-wrapper"),n=document.querySelector("#jp-carousel-comment-form-spinner"),l=document.querySelector("#jp-carousel-comment-form-button-submit"),s=document.querySelector("#jp-carousel-comment-form");if(p.commentField&&p.commentField.getAttribute("id")===t.getAttribute("id"))f(),r.show(i);else if(r.matches(t,'input[type="submit"]')){e.preventDefault(),e.stopPropagation(),r.show(n),s.classList.add("jp-carousel-is-disabled");var c={action:"post_attachment_comment",nonce:jetpackCarouselStrings.nonce,blog_id:o.blog_id,id:a,comment:p.commentField.value};if(!c.comment.length)return void w(jetpackCarouselStrings.no_comment_text,!1);if(1!==Number(jetpackCarouselStrings.is_logged_in)&&(c.email=p.emailField.value,c.author=p.authorField.value,c.url=p.urlField.value,1===Number(jetpackCarouselStrings.require_name_email))){if(!c.email.length||!c.email.match("@"))return void w(jetpackCarouselStrings.no_comment_email,!1);if(!c.author.length)return void w(jetpackCarouselStrings.no_comment_author,!1)}var u=new XMLHttpRequest;u.open("POST",jetpackCarouselStrings.ajaxurl,!0),u.setRequestHeader("X-Requested-With","XMLHttpRequest"),u.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),u.onreadystatechange=function(){if(this.readyState===XMLHttpRequest.DONE&&this.status>=200&&this.status<300){var e;try{e=JSON.parse(this.response)}catch(e){return void w(jetpackCarouselStrings.comment_post_error,!1)}"approved"===e.comment_status?w(jetpackCarouselStrings.comment_approved,!0):"unapproved"===e.comment_status?w(jetpackCarouselStrings.comment_unapproved,!0):w(jetpackCarouselStrings.comment_post_error,!1),E(),q(a),l.value=jetpackCarouselStrings.post_comment,r.hide(n),s.classList.remove("jp-carousel-is-disabled")}else w(jetpackCarouselStrings.comment_post_error,!1)};var d=[];for(var m in c)if(m){var g=encodeURIComponent(m)+"="+encodeURIComponent(c[m]);d.push(g.replace(/%20/g,"+"))}var h=d.join("&");u.send(h)}}(e);else if(r.closest(a,".jp-carousel-photo-icons-container")||a.classList.contains("jp-carousel-photo-title"))!function(e){e.preventDefault();var t=e.target,o=p.info.querySelector(".jp-carousel-info-extra"),a=p.info.querySelector(".jp-carousel-image-meta"),i=p.info.querySelector(".jp-carousel-comments-wrapper"),n=p.info.querySelector(".jp-carousel-icon-info"),l=p.info.querySelector(".jp-carousel-icon-comments");function s(){l&&l.classList.remove("jp-carousel-selected"),n.classList.toggle("jp-carousel-selected"),i&&i.classList.remove("jp-carousel-show"),a&&(a.classList.toggle("jp-carousel-show"),a.classList.contains("jp-carousel-show")?o.classList.add("jp-carousel-show"):o.classList.remove("jp-carousel-show"))}function c(){n&&n.classList.remove("jp-carousel-selected"),l.classList.toggle("jp-carousel-selected"),a&&a.classList.remove("jp-carousel-show"),i&&(i.classList.toggle("jp-carousel-show"),i.classList.contains("jp-carousel-show")?o.classList.add("jp-carousel-show"):o.classList.remove("jp-carousel-show"))}(r.closest(t,".jp-carousel-icon-info")||t.classList.contains("jp-carousel-photo-title"))&&(a&&a.classList.contains("jp-carousel-show")?r.scrollToElement(p.overlay,p.overlay,s):(s(),r.scrollToElement(p.info,p.overlay))),r.closest(t,".jp-carousel-icon-comments")&&(i&&i.classList.contains("jp-carousel-show")?r.scrollToElement(p.overlay,p.overlay,c):(c(),r.scrollToElement(p.info,p.overlay)))}(e);else if(!r.closest(a,".jp-carousel-info"))return})),window.addEventListener("keydown",h),p.overlay.addEventListener("jp_carousel.afterOpen",(function(){v(),p.slides.length<=1||(p.slides.length<=5?r.show(p.info.querySelector(".jp-swiper-pagination")):r.show(p.info.querySelector(".jp-carousel-pagination")))})),p.overlay.addEventListener("jp_carousel.beforeClose",(function(){f(),document.documentElement.style.removeProperty("height"),e&&e.enable(),r.hide(p.info.querySelector(".jp-swiper-pagination")),r.hide(p.info.querySelector(".jp-carousel-pagination"))})),p.overlay.addEventListener("jp_carousel.afterClose",(function(){window.history.pushState?history.pushState("",document.title,window.location.pathname+window.location.search):window.location.href="",l="",p.isOpen=!1})),p.overlay.addEventListener("touchstart",(function(e){e.touches.length>1&&e.preventDefault()})))}function w(e,t){var o=p.overlay.querySelector("#jp-carousel-comment-post-results"),a="jp-carousel-comment-post-"+(t?"success":"error");o.innerHTML=''+e+"",r.hide(p.overlay.querySelector("#jp-carousel-comment-form-spinner")),p.overlay.querySelector("#jp-carousel-comment-form").classList.remove("jp-carousel-is-disabled"),r.show(o)}function j(){var e=document.querySelectorAll("a img[data-attachment-id]");Array.prototype.forEach.call(e,(function(e){var t=e.parentElement,o=t.parentElement;if(!o.classList.contains("gallery-icon")&&!r.closest(o,u)&&t.hasAttribute("href")){var a=!1;t.getAttribute("href").split("?")[0]===e.getAttribute("data-orig-file").split("?")[0]&&1===Number(jetpackCarouselStrings.single_image_gallery_media_file)&&(a=!0),t.getAttribute("href")===e.getAttribute("data-permalink")&&(a=!0),a&&(t.classList.add("single-image-gallery"),t.setAttribute("data-carousel-extra",JSON.stringify({blog_id:Number(jetpackCarouselStrings.blog_id)})))}}))}function S(o){(!o||o<0||o>p.slides.length)&&(o=0),p.currentSlide=p.slides[o];var a,i,n=p.currentSlide,s=n.attrs.attachmentId;!function(e){var t=e.el,r=e.attrs,o=t.querySelector("img");if(!o.hasAttribute("data-loaded")){var a=!!r.previewImage,i=r.thumbSize;!a||i&&t.offsetWidth>i.width?o.src=r.src:o.src=r.previewImage,o.setAttribute("itemprop","image"),o.setAttribute("data-loaded",1)}}(p.slides[o]),1!==Number(jetpackCarouselStrings.display_background_image)||p.slides[o].backgroundImage||function(t){var r=t.el;e&&e.slides&&(r=e.slides[e.activeIndex]);var o=t.attrs.originalElement;o.complete&&0!==o.naturalHeight?A(t,r,o):o.onload=function(){A(t,r,o)}}(p.slides[o]),r.hide(p.caption),function(e){var t,o,a,i,n="",l="",s="";if(t=p.overlay.querySelector(".jp-carousel-photo-caption"),o=p.overlay.querySelector(".jp-carousel-caption"),a=p.overlay.querySelector(".jp-carousel-photo-title"),i=p.overlay.querySelector(".jp-carousel-photo-description"),r.hide(t),r.hide(o),r.hide(a),r.hide(i),n=k(e.caption)||"",l=k(e.title)||"",s=k(e.desc)||"",(n||l||s)&&(n&&(t.innerHTML=n,o.innerHTML=n,r.show(t),r.show(o)),r.stripHTML(n)===r.stripHTML(l)&&(l=""),r.stripHTML(n)===r.stripHTML(s)&&(s=""),r.stripHTML(l)===r.stripHTML(s)&&(s=""),s&&(i.innerHTML=s,r.show(i),l||n||(t.innerHTML=r.stripHTML(s),r.show(t))),l)){var c=r.stripHTML(l);a.innerHTML=c,n||(t.innerHTML=c,o.innerHTML=c,r.show(t)),r.show(a)}}({caption:n.attrs.caption,title:n.attrs.title,desc:n.attrs.desc}),function(e){if(!e||1!==Number(jetpackCarouselStrings.display_exif))return!1;var t=p.info.querySelector(".jp-carousel-image-meta ul.jp-carousel-image-exif"),r="";for(var o in e){var a=e[o],i=jetpackCarouselStrings.meta_data||[];if(0!==parseFloat(a)&&a.length&&-1!==i.indexOf(o)){switch(o){case"focal_length":a+="mm";break;case"shutter_speed":a=x(a);break;case"aperture":a="f/"+a}r+="
  • "+jetpackCarouselStrings[o]+"
    "+a+"
  • "}}t.innerHTML=r,t.style.removeProperty("display")}(p.slides[o].attrs.imageMeta),function(e){if(!e)return!1;var r,o=[e.attrs.origWidth,e.attrs.origHeight],a=document.createElement("a");a.href=e.attrs.src.replace(/\?.+$/,""),r=null!==a.hostname.match(/^i[\d]{1}\.wp\.com$/i)?a.href:e.attrs.origFile.replace(/\?.+$/,"");var i=p.info.querySelector(".jp-carousel-download-text"),n=p.info.querySelector(".jp-carousel-image-download");i.innerHTML=t.applyReplacements(jetpackCarouselStrings.download_original,o),n.setAttribute("href",r),n.style.removeProperty("display")}(n),1===Number(jetpackCarouselStrings.display_comments)&&(a=p.slides[o].attrs.commentsOpened,i=p.container.querySelector(".jp-carousel-comment-form-container"),1===parseInt(a,10)?r.fadeIn(i):r.fadeOut(i),q(s),r.hide(p.info.querySelector("#jp-carousel-comment-post-results")));var c=p.info.querySelector(".jp-carousel-pagination");if(c&&p.slides.length>5){var u=o+1;c.innerHTML=""+u+" / "+p.slides.length+""}jetpackCarouselStrings.stats&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?"+jetpackCarouselStrings.stats+"&post="+encodeURIComponent(s)+"&rand="+Math.random()),g(s),window.location.hash=l="#jp-carousel-"+s}function b(){document.body.style.overflow=a,document.documentElement.style.overflow=i,E(),f(),r.emitEvent(p.overlay,"jp_carousel.beforeClose"),window.scrollTo(window.scrollX||window.pageXOffset||0,n||0),e.destroy(),p.isOpen=!1,p.slides=[],p.currentSlide=void 0,p.gallery.innerHTML="",r.fadeOut(p.overlay,(function(){r.emitEvent(p.overlay,"jp_carousel.afterClose")}))}function L(e,t,r){var o=r?e.replace(/.*=([\d]+%2C[\d]+).*$/,"$1"):e.replace(/.*-([\d]+x[\d]+)\..+$/,"$1"),a=o!==e?r?o.split("%2C"):o.split("x"):[t,0];return"9999"===a[0]&&(a[0]="0"),"9999"===a[1]&&(a[1]="0"),a}function x(e){return e>=1?Math.round(10*e)/10+"s":"1/"+Math.round(1/e)+"s"}function k(e){return!e.match(" ")&&e.match("_")?"":e}function q(e,t){var a=void 0===t,i=p.info.querySelector(".jp-carousel-icon-comments .jp-carousel-has-comments-indicator");if(i.classList.remove("jp-carousel-show"),clearInterval(o),e){(!t||t<1)&&(t=0);var n=p.info.querySelector(".jp-carousel-comments"),l=p.info.querySelector("#jp-carousel-comments-loading");r.show(l),a&&(r.hide(n),n.innerHTML="");var s=new XMLHttpRequest,c=jetpackCarouselStrings.ajaxurl+"?action=get_attachment_comments&nonce="+jetpackCarouselStrings.nonce+"&id="+e+"&offset="+t;s.open("GET",c),s.setRequestHeader("X-Requested-With","XMLHttpRequest");var u=function(){r.fadeIn(n),r.fadeOut(l)};s.onload=function(){if(p.currentSlide&&p.currentSlide.attrs.attachmentId===e){var c,d=s.status>=200&&s.status<300;try{c=JSON.parse(s.responseText)}catch(e){}if(!d||!c||!Array.isArray(c))return u();a&&(n.innerHTML="");for(var m=0;m'+g.gravatar_markup+'
    '+g.author_markup+'
    '+g.date_gmt+"
    "+g.content+"
    ",n.appendChild(h),clearInterval(o),o=setInterval((function(){p.container.scrollTop+150>window.innerHeight&&(q(e,t+10),clearInterval(o))}),300)}c.length>0&&(r.show(n),i.innerText=c.length,i.classList.add("jp-carousel-show")),r.hide(l)}},s.onerror=u,s.send()}}function A(e,r,o){var a=t.getBackgroundImage(o);e.backgroundImage=a,r.style.backgroundImage="url("+a+")",r.style.backgroundSize="cover"}function E(){p.commentField&&(p.commentField.value="")}function H(e,o){p.slides=[];var a={width:window.innerWidth,height:window.innerHeight-64};0!==o&&((new Image).src=e[o].getAttribute("data-gallery-src"));var i=!!r.closest(e[0],".tiled-gallery.type-rectangular");Array.prototype.forEach.call(e,(function(e,o){var n=r.closest(e,"a"),l=e.getAttribute("data-orig-file")||e.getAttribute("src-orig"),s=e.getAttribute("data-attachment-id")||e.getAttribute("data-id")||"0",c=document.querySelector('img[data-attachment-id="'+s+'"] + figcaption');c=c?c.innerHTML:e.getAttribute("data-image-caption");var u={originalElement:e,attachmentId:s,commentsOpened:e.getAttribute("data-comments-opened")||"0",imageMeta:r.getJSONAttribute(e,"data-image-meta")||{},title:e.getAttribute("data-image-title")||"",desc:e.getAttribute("data-image-description")||"",mediumFile:e.getAttribute("data-medium-file")||"",largeFile:e.getAttribute("data-large-file")||"",origFile:l||"",thumbSize:{width:e.naturalWidth,height:e.naturalHeight},caption:c||"",permalink:n&&n.getAttribute("href"),src:l||e.getAttribute("src")||""},d=r.closest(e,".tiled-gallery-item"),m=d&&d.querySelector(".tiled-gallery-caption"),g=m&&m.innerHTML;g&&(u.caption=g);var h=function(e){var t=e.getAttribute("data-orig-size")||"";if(t){var r=t.split(",");return{width:parseInt(r[0],10),height:parseInt(r[1],10)}}return{width:e.getAttribute("data-original-width")||e.getAttribute("width")||void 0,height:e.getAttribute("data-original-height")||e.getAttribute("height")||void 0}}(e);if(u.origWidth=h.width||u.thumbSize.width,u.origHeight=h.height||u.thumbSize.height,"undefined"!=typeof wpcom&&wpcom.carousel&&wpcom.carousel.generateImgSrc?u.src=wpcom.carousel.generateImgSrc(e,a):u.src=function(e){if("object"!=typeof e&&(e={}),void 0===e.origFile)return"";if(void 0===e.origWidth||void 0===e.maxWidth)return e.origFile;if(void 0===e.mediumFile||void 0===e.largeFile)return e.origFile;var t=document.createElement("a");t.href=e.largeFile;var r=/^i[0-2]\.wp\.com$/i.test(t.hostname),o=L(e.mediumFile,e.origWidth,r),a=L(e.largeFile,e.origWidth,r),i=parseInt(a[0],10),n=parseInt(a[1],10),l=parseInt(o[0],10),s=parseInt(o[1],10);if(e.origMaxWidth=e.maxWidth,e.origMaxHeight=e.maxHeight,void 0!==window.devicePixelRatio&&window.devicePixelRatio>1&&(e.maxWidth=e.maxWidth*window.devicePixelRatio,e.maxHeight=e.maxHeight*window.devicePixelRatio),i>=e.maxWidth||n>=e.maxHeight)return e.largeFile;if(l>=e.maxWidth||s>=e.maxHeight)return e.mediumFile;if(r){var c=e.largeFile.lastIndexOf("?"),u=e.largeFile;return-1!==c&&(u=e.largeFile.substring(0,c),(e.origWidth>e.maxWidth||e.origHeight>e.maxHeight)&&(e.origMaxWidth=2*e.maxWidth,e.origMaxHeight=2*e.maxHeight,u+="?fit="+e.origMaxWidth+"%2C"+e.origMaxHeight)),u}return e.origFile}({origFile:u.src,origWidth:u.origWidth,origHeight:u.origHeight,maxWidth:a.width,maxHeight:a.height,mediumFile:u.mediumFile,largeFile:u.largeFile}),e.setAttribute("data-gallery-src",u.src),"0"!==u.attachmentId){u.title=t.texturize(u.title),u.desc=t.texturize(u.desc),u.caption=t.texturize(u.caption);var f=new Image;f.src=u.src;var v=document.createElement("div");v.classList.add("swiper-slide"),v.setAttribute("itemprop","associatedMedia"),v.setAttribute("itemscope",""),v.setAttribute("itemtype","https://schema.org/ImageObject");var y=document.createElement("div");y.classList.add("swiper-zoom-container"),p.gallery.appendChild(v),v.appendChild(y),y.appendChild(f),v.setAttribute("data-attachment-id",u.attachmentId),v.setAttribute("data-permalink",u.permalink),v.setAttribute("data-orig-file",u.origFile),i&&(u.previewImage=u.src);var w={el:v,attrs:u,index:o};p.slides.push(w)}}))}function T(e,t){if(!window.Swiper670){var o=document.querySelector("#jp-carousel-loading-overlay");r.show(o);var a=document.createElement("script");return a.id="jetpack-carousel-swiper-js",a.src=window.jetpackSwiperLibraryPath.url,a.async=!0,a.onload=function(){r.hide(o),C(e,t)},a.onerror=function(){r.hide(o)},void document.head.appendChild(a)}C(e,t)}function C(t,o){var l,s={imgSelector:".gallery-item [data-attachment-id], .tiled-gallery-item [data-attachment-id], img[data-attachment-id], img[data-id]",startIndex:0},c=r.getJSONAttribute(t,"data-carousel-extra");if(c&&(y(),!p.isOpen)){for(var u in p.isOpen=!0,a=getComputedStyle(document.body).overflow,document.body.style.overflow="hidden",i=getComputedStyle(document.documentElement).overflow,document.documentElement.style.overflow="hidden",n=window.scrollY||window.pageYOffset||0,p.container.setAttribute("data-carousel-extra",JSON.stringify(c)),m(["open","view_image"]),o||{})s[u]=o[u];-1===s.startIndex&&(s.startIndex=0),r.emitEvent(p.overlay,"jp_carousel.beforeOpen"),p.gallery.innerHTML="",p.overlay.style.opacity=1,p.overlay.style.display="block",H(t.querySelectorAll(s.imgSelector),s.startIndex),(e=new window.Swiper670(".jp-carousel-swiper-container",{centeredSlides:!0,zoom:!0,loop:p.slides.length>1,enabled:p.slides.length>1,pagination:{el:".jp-swiper-pagination",clickable:!0},navigation:{nextEl:".jp-swiper-button-next",prevEl:".jp-swiper-button-prev"},initialSlide:s.startIndex,on:{init:function(){S(s.startIndex)}},preventClicks:!1,preventClicksPropagation:!1,preventInteractionOnTransition:!r.isTouch(),threshold:5})).on("slideChange",(function(e){S(0===e.activeIndex?p.slides.length-1:e.activeIndex===p.slides.length+1?0:e.activeIndex-1),p.overlay.classList.remove("jp-carousel-hide-controls")})),e.on("zoomChange",(function(e,t){t>1&&p.overlay.classList.add("jp-carousel-hide-controls"),1===t&&p.overlay.classList.remove("jp-carousel-hide-controls")})),e.on("doubleTap",(function(e){if(clearTimeout(l),1===e.zoom.scale)var t=setTimeout((function(){p.overlay.classList.remove("jp-carousel-hide-controls"),clearTimeout(t)}),150)})),e.on("tap",(function(){e.zoom.scale>1&&(l=setTimeout((function(){p.overlay.classList.toggle("jp-carousel-hide-controls")}),150))})),r.fadeIn(p.overlay,(function(){r.emitEvent(p.overlay,"jp_carousel.afterOpen")}))}}document.body.addEventListener("click",(function(e){if(window.CSS&&window.CSS.supports&&window.CSS.supports("display","grid")){var t,o=e.target,a=r.closest(o,c);if(a){if(!(t=a)||!t.getAttribute("data-carousel-extra"))return;var i=o.parentElement,n=i.parentElement,l=null;if(n&&n.classList.contains("wp-block-image")?l=i.getAttribute("href"):i&&i.classList.contains("wp-block-image")&&i.querySelector(":scope > a")&&(l=i.querySelector(":scope > a").getAttribute("href")),l&&l.split("?")[0]!==o.getAttribute("data-orig-file").split("?")[0]&&l!==o.getAttribute("data-permalink"))return;if(i.classList.contains("gallery-caption"))return;if(r.matches(i,"figcaption"))return;document.documentElement.style.height="auto",e.preventDefault(),e.stopPropagation();var s=r.closest(o,d),u=Array.prototype.indexOf.call(a.querySelectorAll(d),s);T(a,{startIndex:u})}}})),1===Number(jetpackCarouselStrings.single_image_gallery)&&(j(),document.body.addEventListener("is.post-load",(function(){j()}))),window.addEventListener("hashchange",(function(){var t=/jp-carousel-(\d+)/;if(window.location.hash&&t.test(window.location.hash)){if(window.location.hash!==l||!p.isOpen)if(window.location.hash&&p.gallery&&!p.isOpen&&history.back)history.back();else{l=window.location.hash;for(var r,o,a=window.location.hash.match(t),i=parseInt(a[1],10),n=document.querySelectorAll(c),s=0;s{var e={3914:(e,t,a)=>{(e=a.nmd(e))&&(e.exports=function(){var e,t="en",a=/[?&#]lang=([a-zA-Z\-_]+)/;"object"==typeof _wp_google_translate_widget&&"string"==typeof _wp_google_translate_widget.lang&&(t=_wp_google_translate_widget.lang),(e=window.location.href.match(a))&&(window.location.href=window.location.href.replace(a,"").replace(/#googtrans\([a-zA-Z\-_|]+\)/,"")+"#googtrans("+t+"|"+e[1]+")"),new google.translate.TranslateElement({pageLanguage:t,layout:_wp_google_translate_widget.layout,autoDisplay:!1},"google_translate_element")})}},t={};function a(o){var n=t[o];if(void 0!==n)return n.exports;var l=t[o]={id:o,loaded:!1,exports:{}};return e[o](l,l.exports,a),l.loaded=!0,l.exports}a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var o=a(3914);googleTranslateElementInit=o})();;