@ampproject/amp-facebook
Advanced tools
Comparing version 1.2107170150.0 to 1.2107200040.0
@@ -1,3 +0,3 @@ | ||
var Or=Object.create,te=Object.defineProperty,_r=Object.getOwnPropertyDescriptor,Pr=Object.getOwnPropertyNames,Fr=Object.getPrototypeOf,Rr=Object.prototype.hasOwnProperty,Ie=function(e){return te(e,"__esModule",{value:!0})},Nr=function(e,r){for(var t in Ie(e),r)te(e,t,{get:r[t],enumerable:!0})},Ir=function(e,r,t){if(r&&"object"==typeof r||"function"==typeof r)for(var n,o=Pr(r),a=0,i=o.length;a<i;a++)n=o[a],!Rr.call(e,n)&&"default"!==n&&te(e,n,{get:function(e){return r[e]}.bind(null,n),enumerable:!(t=_r(r,n))||t.enumerable});return e},ne=function(e){return Ir(Ie(te(null!=e?Or(Fr(e)):{},"default",e&&e.__esModule&&"default"in e?{get:function(){return e.default},enumerable:!0}:{value:e,enumerable:!0})),e)};Nr(exports,{Facebook:function(){return Er}});var H=ne(require("preact")),De=ne(require("preact")),p=ne(require("preact/hooks"));function g(e,r,t){return H.createElement.apply(void 0,arguments)}function Te(e){return H.createContext(e,void 0)}function z(e){return p.useState(e)}function j(e){return p.useRef(e)}function oe(e,r){p.useEffect(e,r)}function U(e,r){p.useLayoutEffect(e,r)}function we(e){return p.useContext(e)}function me(e,r){return p.useMemo(e,r)}function ie(e,r){return p.useCallback(e,r)}function K(e,r,t){return p.useImperativeHandle(e,r,t)}var ve=function(){return["allow-top-navigation-by-user-activation","allow-popups-to-escape-sandbox"]},de=function(){return["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts"]};function Me(){var e=0;return function(){return String(++e)}}var Ce=Object.prototype,Xt=Ce.hasOwnProperty,qt=Ce.toString;function Y(e){var r=Object.create(null);return e&&Object.assign(r,e),r}function D(e){return e||{}}function Le(e){return e.replace("-","_")}function je(e,r,t){return"number"!=typeof t&&(t=0),!(t+r.length>e.length)&&-1!==e.indexOf(r,t)}var X,ae=ne(require("preact/compat"));function F(e){return ae.forwardRef(e)}function ue(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var x={AUTO:"auto",LAZY:"lazy",EAGER:"eager",UNLOAD:"unload"},Dr=[x.AUTO,x.LAZY,x.EAGER,x.UNLOAD],Ue=(ue(X={},x.AUTO,0),ue(X,x.LAZY,1),ue(X,x.EAGER,2),ue(X,x.UNLOAD,3),X);function ke(e,r){var t=Ue[e]||0,n=Ue[r]||0,o=Math.max(t,n);return Dr[o]}var Z={UPGRADING:"upgrading",BUILDING:"building",MOUNTING:"mounting",LOADING:"loading",COMPLETE:"complete",ERROR:"error"},Tr=["as","children","className","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"];function Be(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function T(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?Be(Object(t),!0).forEach((function(r){wr(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Be(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function wr(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Mr(e,r){if(null==e)return{};var t,n,o=Cr(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],!(r.indexOf(t)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,t)||(o[t]=e[t]))}return o}function Cr(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],!(r.indexOf(t)>=0)&&(o[t]=e[t]);return o}var Lr=[null,"paint","layout","content","size","size paint","size layout","strict"],jr={position:"relative",width:"100%",height:"100%"};function Ur(e,r){var t=e.as,n=void 0===t?"div":t,o=e.children,a=e.className,i=e.contentAs,c=void 0===i?"div":i,l=e.contentClassName,u=e.contentProps,s=e.contentRef,f=e.contentStyle,p=e.layout,y=void 0!==p&&p,d=e.paint,b=void 0!==d&&d,O=e.size,m=void 0!==O&&O,v=e.style,h=e.wrapperClassName,w=e.wrapperStyle,j=(m?4:0)+(y?2:0)+(b?1:0);return g(n,T(T({},Mr(e,Tr)),{},{ref:r,className:"".concat(a||""," ").concat(h||"").trim()||null,style:T(T(T({},v),w),{},{contain:Lr[j]})}),g(c,T(T({},u),{},{ref:s,className:l,style:T(T({},m&&jr),{},{overflow:b?"hidden":"visible"},f)}),o))}var ge=F(Ur),kr=["as","children","className","style","wrapperClassName","wrapperStyle"];function He(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function se(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?He(Object(t),!0).forEach((function(r){Br(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):He(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function Br(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Hr(e,r){if(null==e)return{};var t,n,o=Vr(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],!(r.indexOf(t)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,t)||(o[t]=e[t]))}return o}function Vr(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],!(r.indexOf(t)>=0)&&(o[t]=e[t]);return o}function Gr(e,r){var t=e.as,n=void 0===t?"div":t,o=e.children,a=e.className,i=e.style,c=e.wrapperClassName,l=e.wrapperStyle;return g(n,se(se({},Hr(e,kr)),{},{ref:r,className:"".concat(a||""," ").concat(c||"").trim()||null,style:se(se({},i),l)}),o)}var Ve,Wr=F(Gr);function ye(e){var r=j(null);return r.current=e,r}function $r(){return Ve||(Ve=Te({renderable:!0,playable:!0,loading:x.AUTO}))}function he(){return we($r())}function Ge(e){return ke(e,he().loading)}var zr=["allow","allowFullScreen","allowTransparency","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"];function We(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function ce(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?We(Object(t),!0).forEach((function(r){Xr(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):We(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function Xr(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function qr(e,r){if(null==e)return{};var t,n,o=Jr(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],!(r.indexOf(t)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,t)||(o[t]=e[t]))}return o}function Jr(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],!(r.indexOf(t)>=0)&&(o[t]=e[t]);return o}var Kr=function(){return!1},Yr="about:blank",Zr=function(e){return e&&e!=Yr&&!e.includes("#")};function Qr(e,r){var t=e.allow,n=e.allowFullScreen,o=e.allowTransparency,a=e.iframeStyle,i=e.name,c=e.title,l=e.matchesMessagingOrigin,u=void 0===l?Kr:l,s=e.messageHandler,f=e.ready,p=void 0===f||f,y=e.loading,d=e.onReadyState,b=e.sandbox,O=e.src,m=qr(e,zr),v=he().playable,h=Ge(y),w=h!==x.UNLOAD,P=j(!1),S=ye(d),_=ie((function(e){if(e!==P.current){P.current=e;var r=S.current;null==r||r(e?Z.COMPLETE:Z.LOADING)}}),[S]),E=j(null);return K(r,(function(){return{get readyState(){return P.current?Z.COMPLETE:Z.LOADING},get node(){return E.current}}}),[]),U((function(){w||_(!1)}),[w,_]),oe((function(){var e=E.current;if(!v&&e){var r=e.src;if(Zr(r))e.src=e.src;else e.parentNode.insertBefore(e,e.nextSibling)}}),[v]),U((function(){var e=E.current;if(e&&w){var r=function(e){var r=E.current;!r||e.source!=r.contentWindow||!u(e.origin)||s(e)},t=e.ownerDocument.defaultView;return t.addEventListener("message",r),function(){return t.removeEventListener("message",r)}}}),[u,s,w,p]),g(ge,ce(ce({},m),{},{layout:!0,size:!0,paint:!0}),w&&p&&g("iframe",{allow:t,allowFullScreen:n,allowTransparency:o,frameborder:"0",loading:h,name:i,onLoad:function(){return _(!0)},part:"iframe",ref:E,sandbox:b,scrolling:"no",src:O,style:ce(ce({},a),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:c}))}var xe=F(Qr);xe.displayName="IframeEmbed";var y=self.AMP_CONFIG||{},et=("string"==typeof y.thirdPartyFrameRegex?new RegExp(y.thirdPartyFrameRegex):y.thirdPartyFrameRegex)||/^d-\d+\.ampproject\.net$/,$e=("string"==typeof y.cdnProxyRegex?new RegExp(y.cdnProxyRegex):y.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;function ze(e){if(!self.document||!self.document.head||self.location&&$e.test(self.location.origin))return null;var r=self.document.head.querySelector('meta[name="'.concat(e,'"]'));return r&&r.getAttribute("content")||null}var V={thirdParty:y.thirdPartyUrl||"https://3p.ampproject.net",thirdPartyFrameHost:y.thirdPartyFrameHost||"ampproject.net",thirdPartyFrameRegex:et,cdn:y.cdnUrl||ze("runtime-host")||"https://cdn.ampproject.org",cdnProxyRegex:$e,localhostRegex:/^https?:\/\/localhost(:\d+)?$/,errorReporting:y.errorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r",betaErrorReporting:y.betaErrorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",localDev:y.localDev||!1,trustedViewerHosts:[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/,/(^|\.)gmail\.(com|dev)$/],geoApi:y.geoApiUrl||ze("amp-geo-api")};function le(){return!1}function Q(e){var r;if(!le())return!1;var t=e||self;return!!(null!==(r=t.AMP_CONFIG)&&void 0!==r&&r.test||t.__AMP_TEST||t.__karma__)}var ee=Array.isArray;function tr(e){return JSON.parse(e)}function re(e,r){try{return tr(e)}catch(e){return null==r||r(e),null}}function q(){return"2107170150000"}var be={OFF:0,ERROR:1,WARN:2,INFO:3,FINE:4};self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var Ee=self.__AMP_LOG,ir=null;function J(){if(Ee.dev)return Ee.dev;if(!ir)throw new Error("failed to call initLogConstructor");return Ee.dev=new ir(self,(function(e){return e>=3?be.FINE:e>=2?be.INFO:be.OFF}))}function fe(e,r,t,n,o,a,i,c,l,u,s){return e}function pt(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function ur(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function mt(e,r,t){return r&&ur(e.prototype,r),t&&ur(e,t),e}var Se,cr,sr=function(){function e(r){pt(this,e),this.capacity_=r,this.size_=0,this.access_=0,this.cache_=Y()}return mt(e,[{key:"has",value:function(e){return!!this.cache_[e]}},{key:"get",value:function(e){var r=this.cache_[e];if(r)return r.access=++this.access_,r.payload}},{key:"put",value:function(e,r){this.has(e)||this.size_++,this.cache_[e]={payload:r,access:this.access_},this.evict_()}},{key:"evict_",value:function(){if(!(this.size_<=this.capacity_)){var e,r=this.cache_,t=this.access_+1;for(var n in r){var o=r[n].access;o<t&&(t=o,e=n)}void 0!==e&&(delete r[e],this.size_--)}}}]),e}(),Va=new Set(["c","v","a","ad"]);function Ae(e,r){return Se||(Se=self.document.createElement("a"),cr=self.__AMP_URL_CACHE||(self.__AMP_URL_CACHE=new sr(100))),vt(Se,e,r?null:cr)}function vt(e,r,t){if(t&&t.has(r))return t.get(r);e.href=r,e.protocol||(e.href=e.href);var n,o={href:e.href,protocol:e.protocol,host:e.host,hostname:e.hostname,port:"0"==e.port?"":e.port,pathname:e.pathname,search:e.search,hash:e.hash,origin:null};"/"!==o.pathname[0]&&(o.pathname="/"+o.pathname),("http:"==o.protocol&&80==o.port||"https:"==o.protocol&&443==o.port)&&(o.port="",o.host=o.hostname),n=e.origin&&"null"!=e.origin?e.origin:"data:"!=o.protocol&&o.host?o.protocol+"//"+o.host:o.href,o.origin=n;var a=Q()&&Object.freeze?Object.freeze(o):o;return t&&t.put(r,a),a}function lr(e){return"".concat(V.thirdParty,"/").concat(q(),"/vendor/").concat(e).concat(".js")}function fr(e,r){var t=r||"frame";return e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||dt(e),"https://"+e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+".".concat(V.thirdPartyFrameHost,"/").concat(q(),"/")+"".concat(t,".html")}function dt(e){return"d-"+pr(e)}function pr(e){var r;if(e.crypto&&e.crypto.getRandomValues){var t=new Uint32Array(2);e.crypto.getRandomValues(t),r=String(t[0])+t[1]}else r=String(e.Math.random()).substr(2)+"0";return r}function mr(e){for(var r=0,t=e;t&&t!=t.parent;t=t.parent)r++;return String(r)+"-"+pr(e)}var gt=["allow","bootstrap","contextOptions","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"];function vr(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function yt(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?vr(Object(t),!0).forEach((function(r){ht(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):vr(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function ht(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function xt(e,r){return At(e)||St(e,r)||Et(e,r)||bt()}function bt(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Et(e,r){if(e){if("string"==typeof e)return dr(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return dr(e,r)}}function dr(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function St(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,a=[],i=!0,c=!1;try{for(t=t.call(e);!(i=(n=t.next()).done)&&(a.push(n.value),!r||a.length!==r);i=!0);}catch(e){c=!0,o=e}finally{try{!i&&null!=t.return&&t.return()}finally{if(c)throw o}}return a}}function At(e){if(Array.isArray(e))return e}function Ot(e,r){if(null==e)return{};var t,n,o=_t(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],!(r.indexOf(t)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,t)||(o[t]=e[t]))}return o}function _t(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],!(r.indexOf(t)>=0)&&(o[t]=e[t]);return o}var Oe={},gr={EMBED_SIZE:"embed-size"},_e="sync-xhr 'none'",Pt=ve().join(" ")+" "+de().join(" ");function Ft(e,r){var t=e.allow,n=void 0===t?_e:t,o=e.bootstrap,a=e.contextOptions,i=e.excludeSandbox,c=e.name,l=e.messageHandler,u=e.options,s=e.sandbox,f=void 0===s?Pt:s,p=e.src,y=e.type,d=e.title,b=void 0===d?y:d,O=Ot(e,gt);if(!je(n,_e))throw new Error("'allow' prop must contain \"".concat(_e,'". Found "').concat(n,'".'));var m=j(null),v=j(null),h=me((function(){return Oe[y]||(Oe[y]=Me()),Oe[y]()}),[y]),w=xt(z({name:c,src:p}),2),P=w[0],S=P.name,x=P.src,_=w[1];return U((function(){var e,r,t=null===(e=m.current)||void 0===e||null===(r=e.ownerDocument)||void 0===r?void 0:r.defaultView,n=null!=p?p:t?fr(t):"about:blank";if(c)_({name:c,src:n});else if(t){var i=Object.assign(D({location:{href:t.location.href},sentinel:mr(t)}),a),l=Object.assign(D({title:b,type:y,_context:i}),u);_({name:JSON.stringify(D({host:Ae(n).hostname,bootstrap:null!=o?o:lr(y),type:y,count:h,attributes:l})),src:n})}}),[o,a,h,c,u,p,b,y]),oe((function(){var e,r=null===(e=v.current)||void 0===e?void 0:e.node;r&&r.parentNode.insertBefore(r,r.nextSibling)}),[S]),K(r,(function(){return{get readyState(){var e;return null===(e=v.current)||void 0===e?void 0:e.readyState},get node(){var e;return null===(e=v.current)||void 0===e?void 0:e.node}}}),[]),g(xe,yt({allow:n,contentRef:m,messageHandler:l,name:S,ref:v,ready:!!S,sandbox:i?void 0:f,src:x,title:b},O))}var Pe=F(Ft);Pe.displayName="ProxyIframeEmbed";var Rt="amp-";function yr(e){if(!Nt(e))return null;var r=e.indexOf("{");return fe(-1!=r),re(e.substr(r),(function(r){return J().error("MESSAGING","Failed to parse message: "+e,r)}))}function Nt(e){return"string"==typeof e&&0==e.indexOf(Rt)&&-1!=e.indexOf("{")}var It=["action","colorscheme","embedAs","hideCover","hideCta","href","includeCommentParent","kdSite","layout","locale","numPosts","onReady","orderBy","refLabel","requestResize","share","showFacepile","showText","size","smallHeader","style","tabs","title"];function hr(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function pe(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?hr(Object(t),!0).forEach((function(r){Dt(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):hr(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function Dt(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function xr(e,r){return Ct(e)||Mt(e,r)||wt(e,r)||Tt()}function Tt(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function wt(e,r){if(e){if("string"==typeof e)return br(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return br(e,r)}}function br(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function Mt(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,a=[],i=!0,c=!1;try{for(t=t.call(e);!(i=(n=t.next()).done)&&(a.push(n.value),!r||a.length!==r);i=!0);}catch(e){c=!0,o=e}finally{try{!i&&null!=t.return&&t.return()}finally{if(c)throw o}}return a}}function Ct(e){if(Array.isArray(e))return e}function Lt(e,r){if(null==e)return{};var t,n,o=jt(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],!(r.indexOf(t)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,t)||(o[t]=e[t]))}return o}function jt(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],!(r.indexOf(t)>=0)&&(o[t]=e[t]);return o}var Ut="facebook",kt="100%",Bt=function(){return!0},Ht="Facebook comments";function Vt(e,r){var t=e.action,n=e.colorscheme,o=e.embedAs,a=e.hideCover,i=e.hideCta,c=e.href,l=e.includeCommentParent,u=e.kdSite,s=e.layout,f=e.locale,p=e.numPosts,y=e.onReady,d=e.orderBy,b=e.refLabel,O=e.requestResize,m=e.share,v=e.showFacepile,h=e.showText,w=e.size,j=e.smallHeader,P=e.style,S=e.tabs,x=e.title,_=void 0===x?Ht:x,E=Lt(e,It),A=xr(z(null),2),D=A[0],R=A[1],N=ie((function(e){var r,t=null!==(r=re(e.data))&&void 0!==r?r:yr(e.data);if("ready"==t.action&&(null==y||y()),t.type==gr.EMBED_SIZE){var n=t.height;O?(O(n),R(kt)):R(n)}}),[O,y]),T=xr(z(f),2),F=T[0],I=T[1];return U((function(){var e,t;if(f)I(f);else{var n=null==r||null===(e=r.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView;!n||I(Le(n.navigator.language))}}),[f,r]),g(Pe,pe(pe({options:{action:t,colorscheme:n,embedAs:o,hideCover:a,hideCta:i,href:c,includeCommentParent:l,kd_site:u,layout:s,locale:F,numPosts:p,orderBy:d,ref:b,share:m,showFacepile:v,showText:h,size:w,smallHeader:j,tabs:S},ref:r,title:_},E),{},{excludeSandbox:!0,matchesMessagingOrigin:Bt,messageHandler:N,type:Ut,style:D?pe(pe({},P),{},{height:D}):P}))}var Er=F(Vt);Er.displayName="Facebook"; | ||
var Or=Object.create,te=Object.defineProperty,_r=Object.getOwnPropertyDescriptor,Pr=Object.getOwnPropertyNames,Fr=Object.getPrototypeOf,Rr=Object.prototype.hasOwnProperty,Ie=function(e){return te(e,"__esModule",{value:!0})},Nr=function(e,r){for(var t in Ie(e),r)te(e,t,{get:r[t],enumerable:!0})},Ir=function(e,r,t){if(r&&"object"==typeof r||"function"==typeof r)for(var n,o=Pr(r),a=0,i=o.length;a<i;a++)n=o[a],!Rr.call(e,n)&&"default"!==n&&te(e,n,{get:function(e){return r[e]}.bind(null,n),enumerable:!(t=_r(r,n))||t.enumerable});return e},ne=function(e){return Ir(Ie(te(null!=e?Or(Fr(e)):{},"default",e&&e.__esModule&&"default"in e?{get:function(){return e.default},enumerable:!0}:{value:e,enumerable:!0})),e)};Nr(exports,{Facebook:function(){return Er}});var H=ne(require("preact")),De=ne(require("preact")),p=ne(require("preact/hooks"));function g(e,r,t){return H.createElement.apply(void 0,arguments)}function Te(e){return H.createContext(e,void 0)}function z(e){return p.useState(e)}function j(e){return p.useRef(e)}function oe(e,r){p.useEffect(e,r)}function U(e,r){p.useLayoutEffect(e,r)}function we(e){return p.useContext(e)}function me(e,r){return p.useMemo(e,r)}function ie(e,r){return p.useCallback(e,r)}function K(e,r,t){return p.useImperativeHandle(e,r,t)}var ve=function(){return["allow-top-navigation-by-user-activation","allow-popups-to-escape-sandbox"]},de=function(){return["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts"]};function Me(){var e=0;return function(){return String(++e)}}var Ce=Object.prototype,Xt=Ce.hasOwnProperty,qt=Ce.toString;function Y(e){var r=Object.create(null);return e&&Object.assign(r,e),r}function D(e){return e||{}}function Le(e){return e.replace("-","_")}function je(e,r,t){return"number"!=typeof t&&(t=0),!(t+r.length>e.length)&&-1!==e.indexOf(r,t)}var X,ae=ne(require("preact/compat"));function F(e){return ae.forwardRef(e)}function ue(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var x={AUTO:"auto",LAZY:"lazy",EAGER:"eager",UNLOAD:"unload"},Dr=[x.AUTO,x.LAZY,x.EAGER,x.UNLOAD],Ue=(ue(X={},x.AUTO,0),ue(X,x.LAZY,1),ue(X,x.EAGER,2),ue(X,x.UNLOAD,3),X);function ke(e,r){var t=Ue[e]||0,n=Ue[r]||0,o=Math.max(t,n);return Dr[o]}var Z={UPGRADING:"upgrading",BUILDING:"building",MOUNTING:"mounting",LOADING:"loading",COMPLETE:"complete",ERROR:"error"},Tr=["as","children","className","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"];function Be(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function T(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?Be(Object(t),!0).forEach((function(r){wr(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Be(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function wr(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Mr(e,r){if(null==e)return{};var t,n,o=Cr(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],!(r.indexOf(t)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,t)||(o[t]=e[t]))}return o}function Cr(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],!(r.indexOf(t)>=0)&&(o[t]=e[t]);return o}var Lr=[null,"paint","layout","content","size","size paint","size layout","strict"],jr={position:"relative",width:"100%",height:"100%"};function Ur(e,r){var t=e.as,n=void 0===t?"div":t,o=e.children,a=e.className,i=e.contentAs,c=void 0===i?"div":i,l=e.contentClassName,u=e.contentProps,s=e.contentRef,f=e.contentStyle,p=e.layout,y=void 0!==p&&p,d=e.paint,b=void 0!==d&&d,O=e.size,m=void 0!==O&&O,v=e.style,h=e.wrapperClassName,w=e.wrapperStyle,j=(m?4:0)+(y?2:0)+(b?1:0);return g(n,T(T({},Mr(e,Tr)),{},{ref:r,className:"".concat(a||""," ").concat(h||"").trim()||null,style:T(T(T({},v),w),{},{contain:Lr[j]})}),g(c,T(T({},u),{},{ref:s,className:l,style:T(T({},m&&jr),{},{overflow:b?"hidden":"visible"},f)}),o))}var ge=F(Ur),kr=["as","children","className","style","wrapperClassName","wrapperStyle"];function He(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function se(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?He(Object(t),!0).forEach((function(r){Br(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):He(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function Br(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Hr(e,r){if(null==e)return{};var t,n,o=Vr(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],!(r.indexOf(t)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,t)||(o[t]=e[t]))}return o}function Vr(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],!(r.indexOf(t)>=0)&&(o[t]=e[t]);return o}function Gr(e,r){var t=e.as,n=void 0===t?"div":t,o=e.children,a=e.className,i=e.style,c=e.wrapperClassName,l=e.wrapperStyle;return g(n,se(se({},Hr(e,kr)),{},{ref:r,className:"".concat(a||""," ").concat(c||"").trim()||null,style:se(se({},i),l)}),o)}var Ve,Wr=F(Gr);function ye(e){var r=j(null);return r.current=e,r}function $r(){return Ve||(Ve=Te({renderable:!0,playable:!0,loading:x.AUTO}))}function he(){return we($r())}function Ge(e){return ke(e,he().loading)}var zr=["allow","allowFullScreen","allowTransparency","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"];function We(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function ce(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?We(Object(t),!0).forEach((function(r){Xr(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):We(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function Xr(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function qr(e,r){if(null==e)return{};var t,n,o=Jr(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],!(r.indexOf(t)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,t)||(o[t]=e[t]))}return o}function Jr(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],!(r.indexOf(t)>=0)&&(o[t]=e[t]);return o}var Kr=function(){return!1},Yr="about:blank",Zr=function(e){return e&&e!=Yr&&!e.includes("#")};function Qr(e,r){var t=e.allow,n=e.allowFullScreen,o=e.allowTransparency,a=e.iframeStyle,i=e.name,c=e.title,l=e.matchesMessagingOrigin,u=void 0===l?Kr:l,s=e.messageHandler,f=e.ready,p=void 0===f||f,y=e.loading,d=e.onReadyState,b=e.sandbox,O=e.src,m=qr(e,zr),v=he().playable,h=Ge(y),w=h!==x.UNLOAD,P=j(!1),S=ye(d),_=ie((function(e){if(e!==P.current){P.current=e;var r=S.current;null==r||r(e?Z.COMPLETE:Z.LOADING)}}),[S]),E=j(null);return K(r,(function(){return{get readyState(){return P.current?Z.COMPLETE:Z.LOADING},get node(){return E.current}}}),[]),U((function(){w||_(!1)}),[w,_]),oe((function(){var e=E.current;if(!v&&e){var r=e.src;if(Zr(r))e.src=e.src;else e.parentNode.insertBefore(e,e.nextSibling)}}),[v]),U((function(){var e=E.current;if(e&&w){var r=function(e){var r=E.current;!r||e.source!=r.contentWindow||!u(e.origin)||s(e)},t=e.ownerDocument.defaultView;return t.addEventListener("message",r),function(){return t.removeEventListener("message",r)}}}),[u,s,w,p]),g(ge,ce(ce({},m),{},{layout:!0,size:!0,paint:!0}),w&&p&&g("iframe",{allow:t,allowFullScreen:n,allowTransparency:o,frameborder:"0",loading:h,name:i,onLoad:function(){return _(!0)},part:"iframe",ref:E,sandbox:b,scrolling:"no",src:O,style:ce(ce({},a),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:c}))}var xe=F(Qr);xe.displayName="IframeEmbed";var y=self.AMP_CONFIG||{},et=("string"==typeof y.thirdPartyFrameRegex?new RegExp(y.thirdPartyFrameRegex):y.thirdPartyFrameRegex)||/^d-\d+\.ampproject\.net$/,$e=("string"==typeof y.cdnProxyRegex?new RegExp(y.cdnProxyRegex):y.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;function ze(e){if(!self.document||!self.document.head||self.location&&$e.test(self.location.origin))return null;var r=self.document.head.querySelector('meta[name="'.concat(e,'"]'));return r&&r.getAttribute("content")||null}var V={thirdParty:y.thirdPartyUrl||"https://3p.ampproject.net",thirdPartyFrameHost:y.thirdPartyFrameHost||"ampproject.net",thirdPartyFrameRegex:et,cdn:y.cdnUrl||ze("runtime-host")||"https://cdn.ampproject.org",cdnProxyRegex:$e,localhostRegex:/^https?:\/\/localhost(:\d+)?$/,errorReporting:y.errorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r",betaErrorReporting:y.betaErrorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",localDev:y.localDev||!1,trustedViewerHosts:[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/,/(^|\.)gmail\.(com|dev)$/],geoApi:y.geoApiUrl||ze("amp-geo-api")};function le(){return!1}function Q(e){var r;if(!le())return!1;var t=e||self;return!!(null!==(r=t.AMP_CONFIG)&&void 0!==r&&r.test||t.__AMP_TEST||t.__karma__)}var ee=Array.isArray;function tr(e){return JSON.parse(e)}function re(e,r){try{return tr(e)}catch(e){return null==r||r(e),null}}function q(){return"2107200040000"}var be={OFF:0,ERROR:1,WARN:2,INFO:3,FINE:4};self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var Ee=self.__AMP_LOG,ir=null;function J(){if(Ee.dev)return Ee.dev;if(!ir)throw new Error("failed to call initLogConstructor");return Ee.dev=new ir(self,(function(e){return e>=3?be.FINE:e>=2?be.INFO:be.OFF}))}function fe(e,r,t,n,o,a,i,c,l,u,s){return e}function pt(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function ur(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function mt(e,r,t){return r&&ur(e.prototype,r),t&&ur(e,t),e}var Se,cr,sr=function(){function e(r){pt(this,e),this.capacity_=r,this.size_=0,this.access_=0,this.cache_=Y()}return mt(e,[{key:"has",value:function(e){return!!this.cache_[e]}},{key:"get",value:function(e){var r=this.cache_[e];if(r)return r.access=++this.access_,r.payload}},{key:"put",value:function(e,r){this.has(e)||this.size_++,this.cache_[e]={payload:r,access:this.access_},this.evict_()}},{key:"evict_",value:function(){if(!(this.size_<=this.capacity_)){var e,r=this.cache_,t=this.access_+1;for(var n in r){var o=r[n].access;o<t&&(t=o,e=n)}void 0!==e&&(delete r[e],this.size_--)}}}]),e}(),Va=new Set(["c","v","a","ad"]);function Ae(e,r){return Se||(Se=self.document.createElement("a"),cr=self.__AMP_URL_CACHE||(self.__AMP_URL_CACHE=new sr(100))),vt(Se,e,r?null:cr)}function vt(e,r,t){if(t&&t.has(r))return t.get(r);e.href=r,e.protocol||(e.href=e.href);var n,o={href:e.href,protocol:e.protocol,host:e.host,hostname:e.hostname,port:"0"==e.port?"":e.port,pathname:e.pathname,search:e.search,hash:e.hash,origin:null};"/"!==o.pathname[0]&&(o.pathname="/"+o.pathname),("http:"==o.protocol&&80==o.port||"https:"==o.protocol&&443==o.port)&&(o.port="",o.host=o.hostname),n=e.origin&&"null"!=e.origin?e.origin:"data:"!=o.protocol&&o.host?o.protocol+"//"+o.host:o.href,o.origin=n;var a=Q()&&Object.freeze?Object.freeze(o):o;return t&&t.put(r,a),a}function lr(e){return"".concat(V.thirdParty,"/").concat(q(),"/vendor/").concat(e).concat(".js")}function fr(e,r){var t=r||"frame";return e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||dt(e),"https://"+e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+".".concat(V.thirdPartyFrameHost,"/").concat(q(),"/")+"".concat(t,".html")}function dt(e){return"d-"+pr(e)}function pr(e){var r;if(e.crypto&&e.crypto.getRandomValues){var t=new Uint32Array(2);e.crypto.getRandomValues(t),r=String(t[0])+t[1]}else r=String(e.Math.random()).substr(2)+"0";return r}function mr(e){for(var r=0,t=e;t&&t!=t.parent;t=t.parent)r++;return String(r)+"-"+pr(e)}var gt=["allow","bootstrap","contextOptions","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"];function vr(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function yt(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?vr(Object(t),!0).forEach((function(r){ht(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):vr(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function ht(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function xt(e,r){return At(e)||St(e,r)||Et(e,r)||bt()}function bt(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Et(e,r){if(e){if("string"==typeof e)return dr(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return dr(e,r)}}function dr(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function St(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,a=[],i=!0,c=!1;try{for(t=t.call(e);!(i=(n=t.next()).done)&&(a.push(n.value),!r||a.length!==r);i=!0);}catch(e){c=!0,o=e}finally{try{!i&&null!=t.return&&t.return()}finally{if(c)throw o}}return a}}function At(e){if(Array.isArray(e))return e}function Ot(e,r){if(null==e)return{};var t,n,o=_t(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],!(r.indexOf(t)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,t)||(o[t]=e[t]))}return o}function _t(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],!(r.indexOf(t)>=0)&&(o[t]=e[t]);return o}var Oe={},gr={EMBED_SIZE:"embed-size"},_e="sync-xhr 'none'",Pt=ve().join(" ")+" "+de().join(" ");function Ft(e,r){var t=e.allow,n=void 0===t?_e:t,o=e.bootstrap,a=e.contextOptions,i=e.excludeSandbox,c=e.name,l=e.messageHandler,u=e.options,s=e.sandbox,f=void 0===s?Pt:s,p=e.src,y=e.type,d=e.title,b=void 0===d?y:d,O=Ot(e,gt);if(!je(n,_e))throw new Error("'allow' prop must contain \"".concat(_e,'". Found "').concat(n,'".'));var m=j(null),v=j(null),h=me((function(){return Oe[y]||(Oe[y]=Me()),Oe[y]()}),[y]),w=xt(z({name:c,src:p}),2),P=w[0],S=P.name,x=P.src,_=w[1];return U((function(){var e,r,t=null===(e=m.current)||void 0===e||null===(r=e.ownerDocument)||void 0===r?void 0:r.defaultView,n=null!=p?p:t?fr(t):"about:blank";if(c)_({name:c,src:n});else if(t){var i=Object.assign(D({location:{href:t.location.href},sentinel:mr(t)}),a),l=Object.assign(D({title:b,type:y,_context:i}),u);_({name:JSON.stringify(D({host:Ae(n).hostname,bootstrap:null!=o?o:lr(y),type:y,count:h,attributes:l})),src:n})}}),[o,a,h,c,u,p,b,y]),oe((function(){var e,r=null===(e=v.current)||void 0===e?void 0:e.node;r&&r.parentNode.insertBefore(r,r.nextSibling)}),[S]),K(r,(function(){return{get readyState(){var e;return null===(e=v.current)||void 0===e?void 0:e.readyState},get node(){var e;return null===(e=v.current)||void 0===e?void 0:e.node}}}),[]),g(xe,yt({allow:n,contentRef:m,messageHandler:l,name:S,ref:v,ready:!!S,sandbox:i?void 0:f,src:x,title:b},O))}var Pe=F(Ft);Pe.displayName="ProxyIframeEmbed";var Rt="amp-";function yr(e){if(!Nt(e))return null;var r=e.indexOf("{");return fe(-1!=r),re(e.substr(r),(function(r){return J().error("MESSAGING","Failed to parse message: "+e,r)}))}function Nt(e){return"string"==typeof e&&0==e.indexOf(Rt)&&-1!=e.indexOf("{")}var It=["action","colorscheme","embedAs","hideCover","hideCta","href","includeCommentParent","kdSite","layout","locale","numPosts","onReady","orderBy","refLabel","requestResize","share","showFacepile","showText","size","smallHeader","style","tabs","title"];function hr(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function pe(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?hr(Object(t),!0).forEach((function(r){Dt(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):hr(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function Dt(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function xr(e,r){return Ct(e)||Mt(e,r)||wt(e,r)||Tt()}function Tt(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function wt(e,r){if(e){if("string"==typeof e)return br(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return br(e,r)}}function br(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function Mt(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,a=[],i=!0,c=!1;try{for(t=t.call(e);!(i=(n=t.next()).done)&&(a.push(n.value),!r||a.length!==r);i=!0);}catch(e){c=!0,o=e}finally{try{!i&&null!=t.return&&t.return()}finally{if(c)throw o}}return a}}function Ct(e){if(Array.isArray(e))return e}function Lt(e,r){if(null==e)return{};var t,n,o=jt(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],!(r.indexOf(t)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,t)||(o[t]=e[t]))}return o}function jt(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],!(r.indexOf(t)>=0)&&(o[t]=e[t]);return o}var Ut="facebook",kt="100%",Bt=function(){return!0},Ht="Facebook comments";function Vt(e,r){var t=e.action,n=e.colorscheme,o=e.embedAs,a=e.hideCover,i=e.hideCta,c=e.href,l=e.includeCommentParent,u=e.kdSite,s=e.layout,f=e.locale,p=e.numPosts,y=e.onReady,d=e.orderBy,b=e.refLabel,O=e.requestResize,m=e.share,v=e.showFacepile,h=e.showText,w=e.size,j=e.smallHeader,P=e.style,S=e.tabs,x=e.title,_=void 0===x?Ht:x,E=Lt(e,It),A=xr(z(null),2),D=A[0],R=A[1],N=ie((function(e){var r,t=null!==(r=re(e.data))&&void 0!==r?r:yr(e.data);if("ready"==t.action&&(null==y||y()),t.type==gr.EMBED_SIZE){var n=t.height;O?(O(n),R(kt)):R(n)}}),[O,y]),T=xr(z(f),2),F=T[0],I=T[1];return U((function(){var e,t;if(f)I(f);else{var n=null==r||null===(e=r.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView;!n||I(Le(n.navigator.language))}}),[f,r]),g(Pe,pe(pe({options:{action:t,colorscheme:n,embedAs:o,hideCover:a,hideCta:i,href:c,includeCommentParent:l,kd_site:u,layout:s,locale:F,numPosts:p,orderBy:d,ref:b,share:m,showFacepile:v,showText:h,size:w,smallHeader:j,tabs:S},ref:r,title:_},E),{},{excludeSandbox:!0,matchesMessagingOrigin:Bt,messageHandler:N,type:Ut,style:D?pe(pe({},P),{},{height:D}):P}))}var Er=F(Vt);Er.displayName="Facebook"; | ||
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */ | ||
//# sourceMappingURL=component-preact.js.map |
@@ -516,3 +516,3 @@ var __create = Object.create; | ||
function internalRuntimeVersion() { | ||
return "2107170150000"; | ||
return "2107200040000"; | ||
} | ||
@@ -519,0 +519,0 @@ |
@@ -527,3 +527,3 @@ // src/preact/index.js | ||
function internalRuntimeVersion() { | ||
return "2107170150000"; | ||
return "2107200040000"; | ||
} | ||
@@ -530,0 +530,0 @@ |
@@ -1,3 +0,3 @@ | ||
import{Fragment as Or,cloneElement as vr,createContext as nt,createElement as rt,createRef as Sr}from"preact";import{hydrate as br,render as _r}from"preact";import{useCallback as lt,useContext as at,useEffect as st,useImperativeHandle as ft,useLayoutEffect as ct,useMemo as ut,useRef as it,useState as ot}from"preact/hooks";function d(e,t,r){return rt.apply(void 0,arguments)}function Ee(e){return nt(e,void 0)}function $(e){return ot(e)}function F(e){return it(e)}function z(e,t){st(e,t)}function T(e,t){ct(e,t)}function ye(e){return at(e)}function te(e,t){return ut(e,t)}function X(e,t){return lt(e,t)}function H(e,t,r){return ft(e,t,r)}var re=()=>["allow-top-navigation-by-user-activation","allow-popups-to-escape-sandbox"],ne=()=>["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts"];function ve(){let e=0;return()=>String(++e)}var{hasOwnProperty:Nr,toString:Rr}=Object.prototype;function N(e){return e||{}}function _e(e){return e.replace("-","_")}function be(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}import{Children as wr,createPortal as Dr,forwardRef as pt}from"preact/compat";function A(e){return pt(e)}var x={AUTO:"auto",LAZY:"lazy",EAGER:"eager",UNLOAD:"unload"},mt=[x.AUTO,x.LAZY,x.EAGER,x.UNLOAD],Oe={[x.AUTO]:0,[x.LAZY]:1,[x.EAGER]:2,[x.UNLOAD]:3};function Se(e,t){let r=Oe[e]||0,n=Oe[t]||0,o=Math.max(r,n);return mt[o]}var k={UPGRADING:"upgrading",BUILDING:"building",MOUNTING:"mounting",LOADING:"loading",COMPLETE:"complete",ERROR:"error"},dt=["as","children","className","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"];function Ae(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 R(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ae(Object(r),!0).forEach((function(t){gt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ae(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function gt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ht(e,t){if(null==e)return{};var r,n,o=xt(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function xt(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}var Et=[null,"paint","layout","content","size","size paint","size layout","strict"],yt={position:"relative",width:"100%",height:"100%"};function vt(e,t){let{as:r="div",children:n,className:o,contentAs:a="div",contentClassName:l,contentProps:i,contentRef:c,contentStyle:u,layout:s=!1,paint:f=!1,size:p=!1,style:y,wrapperClassName:O,wrapperStyle:b}=e,m=(p?4:0)+(s?2:0)+(f?1:0);return d(r,R(R({},ht(e,dt)),{},{ref:t,className:`${o||""} ${O||""}`.trim()||null,style:R(R(R({},y),b),{},{contain:Et[m]})}),d(a,R(R({},i),{},{ref:c,className:l,style:R(R({},p&&yt),{},{overflow:f?"hidden":"visible"},u)}),n))}var oe=A(vt),_t=["as","children","className","style","wrapperClassName","wrapperStyle"];function Pe(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 q(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Pe(Object(r),!0).forEach((function(t){bt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function bt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ot(e,t){if(null==e)return{};var r,n,o=St(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function St(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}function At(e,t){let{as:r="div",children:n,className:o,style:a,wrapperClassName:l,wrapperStyle:i}=e;return d(r,q(q({},Ot(e,_t)),{},{ref:t,className:`${o||""} ${l||""}`.trim()||null,style:q(q({},a),i)}),n)}var Ne,Pt=A(At);function ie(e){let t=F(null);return t.current=e,t}function Nt(){return Ne||(Ne=Ee({renderable:!0,playable:!0,loading:x.AUTO}))}function se(){return ye(Nt())}function Re(e){let{loading:t}=se();return Se(e,t)}var Rt=["allow","allowFullScreen","allowTransparency","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"];function Ie(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 J(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ie(Object(r),!0).forEach((function(t){It(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ie(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function It(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Mt(e,t){if(null==e)return{};var r,n,o=Ft(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function Ft(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}var Tt=()=>!1,Dt="about:blank",wt=e=>e&&e!=Dt&&!e.includes("#");function Ct(e,t){let{allow:r,allowFullScreen:n,allowTransparency:o,iframeStyle:a,name:l,title:i,matchesMessagingOrigin:c=Tt,messageHandler:u,ready:s=!0,loading:f,onReadyState:p,sandbox:y,src:O}=e,b=Mt(e,Rt),{playable:m}=se(),g=Re(f),v=g!==x.UNLOAD,h=F(!1),w=ie(p),P=X((e=>{if(e!==h.current){h.current=e;let t=w.current;null==t||t(e?k.COMPLETE:k.LOADING)}}),[w]),j=F(null);return H(t,(()=>({get readyState(){return h.current?k.COMPLETE:k.LOADING},get node(){return j.current}})),[]),T((()=>{v||P(!1)}),[v,P]),z((()=>{let e=j.current;if(!m&&e){let{src:t}=e;wt(t)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling)}}),[m]),T((()=>{let e=j.current;if(!e||!v)return;let t=e=>{let t=j.current;!t||e.source!=t.contentWindow||!c(e.origin)||u(e)},{defaultView:r}=e.ownerDocument;return r.addEventListener("message",t),()=>r.removeEventListener("message",t)}),[c,u,v,s]),d(oe,J(J({},b),{},{layout:!0,size:!0,paint:!0}),v&&s&&d("iframe",{allow:r,allowFullScreen:n,allowTransparency:o,frameborder:"0",loading:g,name:l,onLoad:()=>P(!0),part:"iframe",ref:j,sandbox:y,scrolling:"no",src:O,style:J(J({},a),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:i}))}var ce=A(Ct);ce.displayName="IframeEmbed";var g=self.AMP_CONFIG||{},Lt=("string"==typeof g.thirdPartyFrameRegex?new RegExp(g.thirdPartyFrameRegex):g.thirdPartyFrameRegex)||/^d-\d+\.ampproject\.net$/,Me=("string"==typeof g.cdnProxyRegex?new RegExp(g.cdnProxyRegex):g.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;function Fe(e){if(!self.document||!self.document.head||self.location&&Me.test(self.location.origin))return null;let t=self.document.head.querySelector(`meta[name="${e}"]`);return t&&t.getAttribute("content")||null}var C={thirdParty:g.thirdPartyUrl||"https://3p.ampproject.net",thirdPartyFrameHost:g.thirdPartyFrameHost||"ampproject.net",thirdPartyFrameRegex:Lt,cdn:g.cdnUrl||Fe("runtime-host")||"https://cdn.ampproject.org",cdnProxyRegex:Me,localhostRegex:/^https?:\/\/localhost(:\d+)?$/,errorReporting:g.errorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r",betaErrorReporting:g.betaErrorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",localDev:g.localDev||!1,trustedViewerHosts:[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/,/(^|\.)gmail\.(com|dev)$/],geoApi:g.geoApiUrl||Fe("amp-geo-api")};function K(){return!1}function G(e){var t;if(!K())return!1;let r=e||self;return!!(null!==(t=r.AMP_CONFIG)&&void 0!==t&&t.test||r.__AMP_TEST||r.__karma__)}function Ve(e){return JSON.parse(e)}function W(e,t){try{return Ve(e)}catch(e){return null==t||t(e),null}}function B(){return"2107170150000"}var ue={OFF:0,ERROR:1,WARN:2,INFO:3,FINE:4};self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var le=self.__AMP_LOG,Ge=null;function Z(){if(le.dev)return le.dev;if(!Ge)throw new Error("failed to call initLogConstructor");return le.dev=new Ge(self,(e=>e>=3?ue.FINE:e>=2?ue.INFO:ue.OFF))}function Q(e,t,r,n,o,a,l,i,c,u,s){return e}var fe,qt,Ns=new Set(["c","v","a","ad"]);function pe(e,t){return fe||(fe=self.document.createElement("a"),qt=null),Jt(fe,e,null)}function Jt(e,t,r){return e.href="",new URL(t,e.href)}function ze(e){return`${C.thirdParty}/${B()}/vendor/${e}.mjs`}function Xe(e,t){let r=t||"frame";return e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||Kt(e),"https://"+e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+`.${C.thirdPartyFrameHost}/${B()}/${r}.html`}function Kt(e){return"d-"+qe(e)}function qe(e){let t;if(e.crypto&&e.crypto.getRandomValues){let r=new Uint32Array(2);e.crypto.getRandomValues(r),t=String(r[0])+r[1]}else t=String(e.Math.random()).substr(2)+"0";return t}function Je(e){let t=0;for(let r=e;r&&r!=r.parent;r=r.parent)t++;return String(t)+"-"+qe(e)}var Yt=["allow","bootstrap","contextOptions","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"];function Ke(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 Zt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ke(Object(r),!0).forEach((function(t){Qt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ke(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Qt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function er(e,t){if(null==e)return{};var r,n,o=tr(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function tr(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}var me={},Ye={EMBED_SIZE:"embed-size"},de="sync-xhr 'none'",rr=re().join(" ")+" "+ne().join(" ");function nr(e,t){let{allow:r=de,bootstrap:n,contextOptions:o,excludeSandbox:a,name:l,messageHandler:i,options:c,sandbox:u=rr,src:s,type:f,title:p=f}=e,y=er(e,Yt);if(!be(r,de))throw new Error(`'allow' prop must contain "${de}". Found "${r}".`);let O=F(null),b=F(null),m=te((()=>(me[f]||(me[f]=ve()),me[f]())),[f]),{0:{name:g,src:v},1:h}=$({name:l,src:s});return T((()=>{var e,t;let r=null===(e=O.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView,a=null!=s?s:r?Xe(r):"about:blank";if(l)return void h({name:l,src:a});if(!r)return;let i=Object.assign(N({location:{href:r.location.href},sentinel:Je(r)}),o),u=Object.assign(N({title:p,type:f,_context:i}),c);h({name:JSON.stringify(N({host:pe(a).hostname,bootstrap:null!=n?n:ze(f),type:f,count:m,attributes:u})),src:a})}),[n,o,m,l,c,s,p,f]),z((()=>{var e;let t=null===(e=b.current)||void 0===e?void 0:e.node;t&&t.parentNode.insertBefore(t,t.nextSibling)}),[g]),H(t,(()=>({get readyState(){var e;return null===(e=b.current)||void 0===e?void 0:e.readyState},get node(){var e;return null===(e=b.current)||void 0===e?void 0:e.node}})),[]),d(ce,Zt({allow:r,contentRef:O,messageHandler:i,name:g,ref:b,ready:!!g,sandbox:a?void 0:u,src:v,title:p},y))}var ge=A(nr);ge.displayName="ProxyIframeEmbed";var or="amp-";function Ze(e){if(!ir(e))return null;let t=e.indexOf("{");return Q(-1!=t),W(e.substr(t),(t=>Z().error("MESSAGING","Failed to parse message: "+e,t)))}function ir(e){return"string"==typeof e&&0==e.indexOf(or)&&-1!=e.indexOf("{")}var sr=["action","colorscheme","embedAs","hideCover","hideCta","href","includeCommentParent","kdSite","layout","locale","numPosts","onReady","orderBy","refLabel","requestResize","share","showFacepile","showText","size","smallHeader","style","tabs","title"];function Qe(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 ee(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Qe(Object(r),!0).forEach((function(t){cr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function cr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ar(e,t){if(null==e)return{};var r,n,o=ur(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function ur(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}var lr="facebook",fr="100%",pr=()=>!0,mr="Facebook comments";function dr(e,t){let{action:r,colorscheme:n,embedAs:o,hideCover:a,hideCta:l,href:i,includeCommentParent:c,kdSite:u,layout:s,locale:f,numPosts:p,onReady:y,orderBy:O,refLabel:b,requestResize:m,share:g,showFacepile:v,showText:h,size:w,smallHeader:P,style:j,tabs:x,title:S=mr}=e,E=ar(e,sr),{0:A,1:R}=$(null),N=X((e=>{var t;let r=null!==(t=W(e.data))&&void 0!==t?t:Ze(e.data);if("ready"==r.action&&(null==y||y()),r.type==Ye.EMBED_SIZE){let e=r.height;m?(m(e),R(fr)):R(e)}}),[m,y]),{0:D,1:F}=$(f);return T((()=>{var e,r;if(f)return void F(f);let n=null==t||null===(e=t.current)||void 0===e||null===(r=e.ownerDocument)||void 0===r?void 0:r.defaultView;!n||F(_e(n.navigator.language))}),[f,t]),d(ge,ee(ee({options:{action:r,colorscheme:n,embedAs:o,hideCover:a,hideCta:l,href:i,includeCommentParent:c,kd_site:u,layout:s,locale:D,numPosts:p,orderBy:O,ref:b,share:g,showFacepile:v,showText:h,size:w,smallHeader:P,tabs:x},ref:t,title:S},E),{},{excludeSandbox:!0,matchesMessagingOrigin:pr,messageHandler:N,type:lr,style:A?ee(ee({},j),{},{height:A}):j}))}var gr=A(dr);gr.displayName="Facebook";export{gr as Facebook}; | ||
import{Fragment as Or,cloneElement as vr,createContext as nt,createElement as rt,createRef as Sr}from"preact";import{hydrate as br,render as _r}from"preact";import{useCallback as lt,useContext as at,useEffect as st,useImperativeHandle as ft,useLayoutEffect as ct,useMemo as ut,useRef as it,useState as ot}from"preact/hooks";function d(e,t,r){return rt.apply(void 0,arguments)}function Ee(e){return nt(e,void 0)}function $(e){return ot(e)}function F(e){return it(e)}function z(e,t){st(e,t)}function T(e,t){ct(e,t)}function ye(e){return at(e)}function te(e,t){return ut(e,t)}function X(e,t){return lt(e,t)}function H(e,t,r){return ft(e,t,r)}var re=()=>["allow-top-navigation-by-user-activation","allow-popups-to-escape-sandbox"],ne=()=>["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts"];function ve(){let e=0;return()=>String(++e)}var{hasOwnProperty:Nr,toString:Rr}=Object.prototype;function N(e){return e||{}}function _e(e){return e.replace("-","_")}function be(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}import{Children as wr,createPortal as Dr,forwardRef as pt}from"preact/compat";function A(e){return pt(e)}var x={AUTO:"auto",LAZY:"lazy",EAGER:"eager",UNLOAD:"unload"},mt=[x.AUTO,x.LAZY,x.EAGER,x.UNLOAD],Oe={[x.AUTO]:0,[x.LAZY]:1,[x.EAGER]:2,[x.UNLOAD]:3};function Se(e,t){let r=Oe[e]||0,n=Oe[t]||0,o=Math.max(r,n);return mt[o]}var k={UPGRADING:"upgrading",BUILDING:"building",MOUNTING:"mounting",LOADING:"loading",COMPLETE:"complete",ERROR:"error"},dt=["as","children","className","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"];function Ae(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 R(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ae(Object(r),!0).forEach((function(t){gt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ae(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function gt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ht(e,t){if(null==e)return{};var r,n,o=xt(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function xt(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}var Et=[null,"paint","layout","content","size","size paint","size layout","strict"],yt={position:"relative",width:"100%",height:"100%"};function vt(e,t){let{as:r="div",children:n,className:o,contentAs:a="div",contentClassName:l,contentProps:i,contentRef:c,contentStyle:u,layout:s=!1,paint:f=!1,size:p=!1,style:y,wrapperClassName:O,wrapperStyle:b}=e,m=(p?4:0)+(s?2:0)+(f?1:0);return d(r,R(R({},ht(e,dt)),{},{ref:t,className:`${o||""} ${O||""}`.trim()||null,style:R(R(R({},y),b),{},{contain:Et[m]})}),d(a,R(R({},i),{},{ref:c,className:l,style:R(R({},p&&yt),{},{overflow:f?"hidden":"visible"},u)}),n))}var oe=A(vt),_t=["as","children","className","style","wrapperClassName","wrapperStyle"];function Pe(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 q(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Pe(Object(r),!0).forEach((function(t){bt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function bt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ot(e,t){if(null==e)return{};var r,n,o=St(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function St(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}function At(e,t){let{as:r="div",children:n,className:o,style:a,wrapperClassName:l,wrapperStyle:i}=e;return d(r,q(q({},Ot(e,_t)),{},{ref:t,className:`${o||""} ${l||""}`.trim()||null,style:q(q({},a),i)}),n)}var Ne,Pt=A(At);function ie(e){let t=F(null);return t.current=e,t}function Nt(){return Ne||(Ne=Ee({renderable:!0,playable:!0,loading:x.AUTO}))}function se(){return ye(Nt())}function Re(e){let{loading:t}=se();return Se(e,t)}var Rt=["allow","allowFullScreen","allowTransparency","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"];function Ie(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 J(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ie(Object(r),!0).forEach((function(t){It(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ie(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function It(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Mt(e,t){if(null==e)return{};var r,n,o=Ft(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function Ft(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}var Tt=()=>!1,Dt="about:blank",wt=e=>e&&e!=Dt&&!e.includes("#");function Ct(e,t){let{allow:r,allowFullScreen:n,allowTransparency:o,iframeStyle:a,name:l,title:i,matchesMessagingOrigin:c=Tt,messageHandler:u,ready:s=!0,loading:f,onReadyState:p,sandbox:y,src:O}=e,b=Mt(e,Rt),{playable:m}=se(),g=Re(f),v=g!==x.UNLOAD,h=F(!1),w=ie(p),P=X((e=>{if(e!==h.current){h.current=e;let t=w.current;null==t||t(e?k.COMPLETE:k.LOADING)}}),[w]),j=F(null);return H(t,(()=>({get readyState(){return h.current?k.COMPLETE:k.LOADING},get node(){return j.current}})),[]),T((()=>{v||P(!1)}),[v,P]),z((()=>{let e=j.current;if(!m&&e){let{src:t}=e;wt(t)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling)}}),[m]),T((()=>{let e=j.current;if(!e||!v)return;let t=e=>{let t=j.current;!t||e.source!=t.contentWindow||!c(e.origin)||u(e)},{defaultView:r}=e.ownerDocument;return r.addEventListener("message",t),()=>r.removeEventListener("message",t)}),[c,u,v,s]),d(oe,J(J({},b),{},{layout:!0,size:!0,paint:!0}),v&&s&&d("iframe",{allow:r,allowFullScreen:n,allowTransparency:o,frameborder:"0",loading:g,name:l,onLoad:()=>P(!0),part:"iframe",ref:j,sandbox:y,scrolling:"no",src:O,style:J(J({},a),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:i}))}var ce=A(Ct);ce.displayName="IframeEmbed";var g=self.AMP_CONFIG||{},Lt=("string"==typeof g.thirdPartyFrameRegex?new RegExp(g.thirdPartyFrameRegex):g.thirdPartyFrameRegex)||/^d-\d+\.ampproject\.net$/,Me=("string"==typeof g.cdnProxyRegex?new RegExp(g.cdnProxyRegex):g.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;function Fe(e){if(!self.document||!self.document.head||self.location&&Me.test(self.location.origin))return null;let t=self.document.head.querySelector(`meta[name="${e}"]`);return t&&t.getAttribute("content")||null}var C={thirdParty:g.thirdPartyUrl||"https://3p.ampproject.net",thirdPartyFrameHost:g.thirdPartyFrameHost||"ampproject.net",thirdPartyFrameRegex:Lt,cdn:g.cdnUrl||Fe("runtime-host")||"https://cdn.ampproject.org",cdnProxyRegex:Me,localhostRegex:/^https?:\/\/localhost(:\d+)?$/,errorReporting:g.errorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r",betaErrorReporting:g.betaErrorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",localDev:g.localDev||!1,trustedViewerHosts:[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/,/(^|\.)gmail\.(com|dev)$/],geoApi:g.geoApiUrl||Fe("amp-geo-api")};function K(){return!1}function G(e){var t;if(!K())return!1;let r=e||self;return!!(null!==(t=r.AMP_CONFIG)&&void 0!==t&&t.test||r.__AMP_TEST||r.__karma__)}function Ve(e){return JSON.parse(e)}function W(e,t){try{return Ve(e)}catch(e){return null==t||t(e),null}}function B(){return"2107200040000"}var ue={OFF:0,ERROR:1,WARN:2,INFO:3,FINE:4};self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var le=self.__AMP_LOG,Ge=null;function Z(){if(le.dev)return le.dev;if(!Ge)throw new Error("failed to call initLogConstructor");return le.dev=new Ge(self,(e=>e>=3?ue.FINE:e>=2?ue.INFO:ue.OFF))}function Q(e,t,r,n,o,a,l,i,c,u,s){return e}var fe,qt,Ns=new Set(["c","v","a","ad"]);function pe(e,t){return fe||(fe=self.document.createElement("a"),qt=null),Jt(fe,e,null)}function Jt(e,t,r){return e.href="",new URL(t,e.href)}function ze(e){return`${C.thirdParty}/${B()}/vendor/${e}.mjs`}function Xe(e,t){let r=t||"frame";return e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||Kt(e),"https://"+e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+`.${C.thirdPartyFrameHost}/${B()}/${r}.html`}function Kt(e){return"d-"+qe(e)}function qe(e){let t;if(e.crypto&&e.crypto.getRandomValues){let r=new Uint32Array(2);e.crypto.getRandomValues(r),t=String(r[0])+r[1]}else t=String(e.Math.random()).substr(2)+"0";return t}function Je(e){let t=0;for(let r=e;r&&r!=r.parent;r=r.parent)t++;return String(t)+"-"+qe(e)}var Yt=["allow","bootstrap","contextOptions","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"];function Ke(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 Zt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ke(Object(r),!0).forEach((function(t){Qt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ke(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Qt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function er(e,t){if(null==e)return{};var r,n,o=tr(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function tr(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}var me={},Ye={EMBED_SIZE:"embed-size"},de="sync-xhr 'none'",rr=re().join(" ")+" "+ne().join(" ");function nr(e,t){let{allow:r=de,bootstrap:n,contextOptions:o,excludeSandbox:a,name:l,messageHandler:i,options:c,sandbox:u=rr,src:s,type:f,title:p=f}=e,y=er(e,Yt);if(!be(r,de))throw new Error(`'allow' prop must contain "${de}". Found "${r}".`);let O=F(null),b=F(null),m=te((()=>(me[f]||(me[f]=ve()),me[f]())),[f]),{0:{name:g,src:v},1:h}=$({name:l,src:s});return T((()=>{var e,t;let r=null===(e=O.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView,a=null!=s?s:r?Xe(r):"about:blank";if(l)return void h({name:l,src:a});if(!r)return;let i=Object.assign(N({location:{href:r.location.href},sentinel:Je(r)}),o),u=Object.assign(N({title:p,type:f,_context:i}),c);h({name:JSON.stringify(N({host:pe(a).hostname,bootstrap:null!=n?n:ze(f),type:f,count:m,attributes:u})),src:a})}),[n,o,m,l,c,s,p,f]),z((()=>{var e;let t=null===(e=b.current)||void 0===e?void 0:e.node;t&&t.parentNode.insertBefore(t,t.nextSibling)}),[g]),H(t,(()=>({get readyState(){var e;return null===(e=b.current)||void 0===e?void 0:e.readyState},get node(){var e;return null===(e=b.current)||void 0===e?void 0:e.node}})),[]),d(ce,Zt({allow:r,contentRef:O,messageHandler:i,name:g,ref:b,ready:!!g,sandbox:a?void 0:u,src:v,title:p},y))}var ge=A(nr);ge.displayName="ProxyIframeEmbed";var or="amp-";function Ze(e){if(!ir(e))return null;let t=e.indexOf("{");return Q(-1!=t),W(e.substr(t),(t=>Z().error("MESSAGING","Failed to parse message: "+e,t)))}function ir(e){return"string"==typeof e&&0==e.indexOf(or)&&-1!=e.indexOf("{")}var sr=["action","colorscheme","embedAs","hideCover","hideCta","href","includeCommentParent","kdSite","layout","locale","numPosts","onReady","orderBy","refLabel","requestResize","share","showFacepile","showText","size","smallHeader","style","tabs","title"];function Qe(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 ee(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Qe(Object(r),!0).forEach((function(t){cr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function cr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ar(e,t){if(null==e)return{};var r,n,o=ur(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function ur(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}var lr="facebook",fr="100%",pr=()=>!0,mr="Facebook comments";function dr(e,t){let{action:r,colorscheme:n,embedAs:o,hideCover:a,hideCta:l,href:i,includeCommentParent:c,kdSite:u,layout:s,locale:f,numPosts:p,onReady:y,orderBy:O,refLabel:b,requestResize:m,share:g,showFacepile:v,showText:h,size:w,smallHeader:P,style:j,tabs:x,title:S=mr}=e,E=ar(e,sr),{0:A,1:R}=$(null),N=X((e=>{var t;let r=null!==(t=W(e.data))&&void 0!==t?t:Ze(e.data);if("ready"==r.action&&(null==y||y()),r.type==Ye.EMBED_SIZE){let e=r.height;m?(m(e),R(fr)):R(e)}}),[m,y]),{0:D,1:F}=$(f);return T((()=>{var e,r;if(f)return void F(f);let n=null==t||null===(e=t.current)||void 0===e||null===(r=e.ownerDocument)||void 0===r?void 0:r.defaultView;!n||F(_e(n.navigator.language))}),[f,t]),d(ge,ee(ee({options:{action:r,colorscheme:n,embedAs:o,hideCover:a,hideCta:l,href:i,includeCommentParent:c,kd_site:u,layout:s,locale:D,numPosts:p,orderBy:O,ref:b,share:g,showFacepile:v,showText:h,size:w,smallHeader:P,tabs:x},ref:t,title:S},E),{},{excludeSandbox:!0,matchesMessagingOrigin:pr,messageHandler:N,type:lr,style:A?ee(ee({},j),{},{height:A}):j}))}var gr=A(dr);gr.displayName="Facebook";export{gr as Facebook}; | ||
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */ | ||
//# sourceMappingURL=component-preact.module.js.map |
@@ -1,3 +0,3 @@ | ||
var Or=Object.create,te=Object.defineProperty,_r=Object.getOwnPropertyDescriptor,Pr=Object.getOwnPropertyNames,Fr=Object.getPrototypeOf,Rr=Object.prototype.hasOwnProperty,Ie=function(e){return te(e,"__esModule",{value:!0})},Nr=function(e,r){for(var t in Ie(e),r)te(e,t,{get:r[t],enumerable:!0})},Ir=function(e,r,t){if(r&&"object"==typeof r||"function"==typeof r)for(var n,o=Pr(r),a=0,i=o.length;a<i;a++)n=o[a],!Rr.call(e,n)&&"default"!==n&&te(e,n,{get:function(e){return r[e]}.bind(null,n),enumerable:!(t=_r(r,n))||t.enumerable});return e},ne=function(e){return Ir(Ie(te(null!=e?Or(Fr(e)):{},"default",e&&e.__esModule&&"default"in e?{get:function(){return e.default},enumerable:!0}:{value:e,enumerable:!0})),e)};Nr(exports,{Facebook:function(){return Er}});var H=ne(require("react")),De=ne(require("react-dom")),p=ne(require("react"));function g(e,r,t){return H.createElement.apply(void 0,arguments)}function Te(e){return H.createContext(e,void 0)}function z(e){return p.useState(e)}function j(e){return p.useRef(e)}function oe(e,r){p.useEffect(e,r)}function U(e,r){p.useLayoutEffect(e,r)}function we(e){return p.useContext(e)}function me(e,r){return p.useMemo(e,r)}function ie(e,r){return p.useCallback(e,r)}function K(e,r,t){return p.useImperativeHandle(e,r,t)}var ve=function(){return["allow-top-navigation-by-user-activation","allow-popups-to-escape-sandbox"]},de=function(){return["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts"]};function Me(){var e=0;return function(){return String(++e)}}var Ce=Object.prototype,Xt=Ce.hasOwnProperty,qt=Ce.toString;function Y(e){var r=Object.create(null);return e&&Object.assign(r,e),r}function D(e){return e||{}}function Le(e){return e.replace("-","_")}function je(e,r,t){return"number"!=typeof t&&(t=0),!(t+r.length>e.length)&&-1!==e.indexOf(r,t)}var X,ae=ne(require("react"));function F(e){return ae.forwardRef(e)}function ue(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var x={AUTO:"auto",LAZY:"lazy",EAGER:"eager",UNLOAD:"unload"},Dr=[x.AUTO,x.LAZY,x.EAGER,x.UNLOAD],Ue=(ue(X={},x.AUTO,0),ue(X,x.LAZY,1),ue(X,x.EAGER,2),ue(X,x.UNLOAD,3),X);function ke(e,r){var t=Ue[e]||0,n=Ue[r]||0,o=Math.max(t,n);return Dr[o]}var Z={UPGRADING:"upgrading",BUILDING:"building",MOUNTING:"mounting",LOADING:"loading",COMPLETE:"complete",ERROR:"error"},Tr=["as","children","className","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"];function Be(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function T(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?Be(Object(t),!0).forEach((function(r){wr(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Be(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function wr(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Mr(e,r){if(null==e)return{};var t,n,o=Cr(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],!(r.indexOf(t)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,t)||(o[t]=e[t]))}return o}function Cr(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],!(r.indexOf(t)>=0)&&(o[t]=e[t]);return o}var Lr=[null,"paint","layout","content","size","size paint","size layout","strict"],jr={position:"relative",width:"100%",height:"100%"};function Ur(e,r){var t=e.as,n=void 0===t?"div":t,o=e.children,a=e.className,i=e.contentAs,c=void 0===i?"div":i,l=e.contentClassName,u=e.contentProps,s=e.contentRef,f=e.contentStyle,p=e.layout,y=void 0!==p&&p,d=e.paint,b=void 0!==d&&d,O=e.size,m=void 0!==O&&O,v=e.style,h=e.wrapperClassName,w=e.wrapperStyle,j=(m?4:0)+(y?2:0)+(b?1:0);return g(n,T(T({},Mr(e,Tr)),{},{ref:r,className:"".concat(a||""," ").concat(h||"").trim()||null,style:T(T(T({},v),w),{},{contain:Lr[j]})}),g(c,T(T({},u),{},{ref:s,className:l,style:T(T({},m&&jr),{},{overflow:b?"hidden":"visible"},f)}),o))}var ge=F(Ur),kr=["as","children","className","style","wrapperClassName","wrapperStyle"];function He(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function se(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?He(Object(t),!0).forEach((function(r){Br(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):He(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function Br(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Hr(e,r){if(null==e)return{};var t,n,o=Vr(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],!(r.indexOf(t)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,t)||(o[t]=e[t]))}return o}function Vr(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],!(r.indexOf(t)>=0)&&(o[t]=e[t]);return o}function Gr(e,r){var t=e.as,n=void 0===t?"div":t,o=e.children,a=e.className,i=e.style,c=e.wrapperClassName,l=e.wrapperStyle;return g(n,se(se({},Hr(e,kr)),{},{ref:r,className:"".concat(a||""," ").concat(c||"").trim()||null,style:se(se({},i),l)}),o)}var Ve,Wr=F(Gr);function ye(e){var r=j(null);return r.current=e,r}function $r(){return Ve||(Ve=Te({renderable:!0,playable:!0,loading:x.AUTO}))}function he(){return we($r())}function Ge(e){return ke(e,he().loading)}var zr=["allow","allowFullScreen","allowTransparency","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"];function We(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function ce(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?We(Object(t),!0).forEach((function(r){Xr(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):We(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function Xr(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function qr(e,r){if(null==e)return{};var t,n,o=Jr(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],!(r.indexOf(t)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,t)||(o[t]=e[t]))}return o}function Jr(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],!(r.indexOf(t)>=0)&&(o[t]=e[t]);return o}var Kr=function(){return!1},Yr="about:blank",Zr=function(e){return e&&e!=Yr&&!e.includes("#")};function Qr(e,r){var t=e.allow,n=e.allowFullScreen,o=e.allowTransparency,a=e.iframeStyle,i=e.name,c=e.title,l=e.matchesMessagingOrigin,u=void 0===l?Kr:l,s=e.messageHandler,f=e.ready,p=void 0===f||f,y=e.loading,d=e.onReadyState,b=e.sandbox,O=e.src,m=qr(e,zr),v=he().playable,h=Ge(y),w=h!==x.UNLOAD,P=j(!1),S=ye(d),_=ie((function(e){if(e!==P.current){P.current=e;var r=S.current;null==r||r(e?Z.COMPLETE:Z.LOADING)}}),[S]),E=j(null);return K(r,(function(){return{get readyState(){return P.current?Z.COMPLETE:Z.LOADING},get node(){return E.current}}}),[]),U((function(){w||_(!1)}),[w,_]),oe((function(){var e=E.current;if(!v&&e){var r=e.src;if(Zr(r))e.src=e.src;else e.parentNode.insertBefore(e,e.nextSibling)}}),[v]),U((function(){var e=E.current;if(e&&w){var r=function(e){var r=E.current;!r||e.source!=r.contentWindow||!u(e.origin)||s(e)},t=e.ownerDocument.defaultView;return t.addEventListener("message",r),function(){return t.removeEventListener("message",r)}}}),[u,s,w,p]),g(ge,ce(ce({},m),{},{layout:!0,size:!0,paint:!0}),w&&p&&g("iframe",{allow:t,allowFullScreen:n,allowTransparency:o,frameborder:"0",loading:h,name:i,onLoad:function(){return _(!0)},part:"iframe",ref:E,sandbox:b,scrolling:"no",src:O,style:ce(ce({},a),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:c}))}var xe=F(Qr);xe.displayName="IframeEmbed";var y=self.AMP_CONFIG||{},et=("string"==typeof y.thirdPartyFrameRegex?new RegExp(y.thirdPartyFrameRegex):y.thirdPartyFrameRegex)||/^d-\d+\.ampproject\.net$/,$e=("string"==typeof y.cdnProxyRegex?new RegExp(y.cdnProxyRegex):y.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;function ze(e){if(!self.document||!self.document.head||self.location&&$e.test(self.location.origin))return null;var r=self.document.head.querySelector('meta[name="'.concat(e,'"]'));return r&&r.getAttribute("content")||null}var V={thirdParty:y.thirdPartyUrl||"https://3p.ampproject.net",thirdPartyFrameHost:y.thirdPartyFrameHost||"ampproject.net",thirdPartyFrameRegex:et,cdn:y.cdnUrl||ze("runtime-host")||"https://cdn.ampproject.org",cdnProxyRegex:$e,localhostRegex:/^https?:\/\/localhost(:\d+)?$/,errorReporting:y.errorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r",betaErrorReporting:y.betaErrorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",localDev:y.localDev||!1,trustedViewerHosts:[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/,/(^|\.)gmail\.(com|dev)$/],geoApi:y.geoApiUrl||ze("amp-geo-api")};function le(){return!1}function Q(e){var r;if(!le())return!1;var t=e||self;return!!(null!==(r=t.AMP_CONFIG)&&void 0!==r&&r.test||t.__AMP_TEST||t.__karma__)}var ee=Array.isArray;function tr(e){return JSON.parse(e)}function re(e,r){try{return tr(e)}catch(e){return null==r||r(e),null}}function q(){return"2107170150000"}var be={OFF:0,ERROR:1,WARN:2,INFO:3,FINE:4};self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var Ee=self.__AMP_LOG,ir=null;function J(){if(Ee.dev)return Ee.dev;if(!ir)throw new Error("failed to call initLogConstructor");return Ee.dev=new ir(self,(function(e){return e>=3?be.FINE:e>=2?be.INFO:be.OFF}))}function fe(e,r,t,n,o,a,i,c,l,u,s){return e}function pt(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function ur(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function mt(e,r,t){return r&&ur(e.prototype,r),t&&ur(e,t),e}var Se,cr,sr=function(){function e(r){pt(this,e),this.capacity_=r,this.size_=0,this.access_=0,this.cache_=Y()}return mt(e,[{key:"has",value:function(e){return!!this.cache_[e]}},{key:"get",value:function(e){var r=this.cache_[e];if(r)return r.access=++this.access_,r.payload}},{key:"put",value:function(e,r){this.has(e)||this.size_++,this.cache_[e]={payload:r,access:this.access_},this.evict_()}},{key:"evict_",value:function(){if(!(this.size_<=this.capacity_)){var e,r=this.cache_,t=this.access_+1;for(var n in r){var o=r[n].access;o<t&&(t=o,e=n)}void 0!==e&&(delete r[e],this.size_--)}}}]),e}(),Va=new Set(["c","v","a","ad"]);function Ae(e,r){return Se||(Se=self.document.createElement("a"),cr=self.__AMP_URL_CACHE||(self.__AMP_URL_CACHE=new sr(100))),vt(Se,e,r?null:cr)}function vt(e,r,t){if(t&&t.has(r))return t.get(r);e.href=r,e.protocol||(e.href=e.href);var n,o={href:e.href,protocol:e.protocol,host:e.host,hostname:e.hostname,port:"0"==e.port?"":e.port,pathname:e.pathname,search:e.search,hash:e.hash,origin:null};"/"!==o.pathname[0]&&(o.pathname="/"+o.pathname),("http:"==o.protocol&&80==o.port||"https:"==o.protocol&&443==o.port)&&(o.port="",o.host=o.hostname),n=e.origin&&"null"!=e.origin?e.origin:"data:"!=o.protocol&&o.host?o.protocol+"//"+o.host:o.href,o.origin=n;var a=Q()&&Object.freeze?Object.freeze(o):o;return t&&t.put(r,a),a}function lr(e){return"".concat(V.thirdParty,"/").concat(q(),"/vendor/").concat(e).concat(".js")}function fr(e,r){var t=r||"frame";return e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||dt(e),"https://"+e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+".".concat(V.thirdPartyFrameHost,"/").concat(q(),"/")+"".concat(t,".html")}function dt(e){return"d-"+pr(e)}function pr(e){var r;if(e.crypto&&e.crypto.getRandomValues){var t=new Uint32Array(2);e.crypto.getRandomValues(t),r=String(t[0])+t[1]}else r=String(e.Math.random()).substr(2)+"0";return r}function mr(e){for(var r=0,t=e;t&&t!=t.parent;t=t.parent)r++;return String(r)+"-"+pr(e)}var gt=["allow","bootstrap","contextOptions","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"];function vr(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function yt(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?vr(Object(t),!0).forEach((function(r){ht(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):vr(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function ht(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function xt(e,r){return At(e)||St(e,r)||Et(e,r)||bt()}function bt(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Et(e,r){if(e){if("string"==typeof e)return dr(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return dr(e,r)}}function dr(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function St(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,a=[],i=!0,c=!1;try{for(t=t.call(e);!(i=(n=t.next()).done)&&(a.push(n.value),!r||a.length!==r);i=!0);}catch(e){c=!0,o=e}finally{try{!i&&null!=t.return&&t.return()}finally{if(c)throw o}}return a}}function At(e){if(Array.isArray(e))return e}function Ot(e,r){if(null==e)return{};var t,n,o=_t(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],!(r.indexOf(t)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,t)||(o[t]=e[t]))}return o}function _t(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],!(r.indexOf(t)>=0)&&(o[t]=e[t]);return o}var Oe={},gr={EMBED_SIZE:"embed-size"},_e="sync-xhr 'none'",Pt=ve().join(" ")+" "+de().join(" ");function Ft(e,r){var t=e.allow,n=void 0===t?_e:t,o=e.bootstrap,a=e.contextOptions,i=e.excludeSandbox,c=e.name,l=e.messageHandler,u=e.options,s=e.sandbox,f=void 0===s?Pt:s,p=e.src,y=e.type,d=e.title,b=void 0===d?y:d,O=Ot(e,gt);if(!je(n,_e))throw new Error("'allow' prop must contain \"".concat(_e,'". Found "').concat(n,'".'));var m=j(null),v=j(null),h=me((function(){return Oe[y]||(Oe[y]=Me()),Oe[y]()}),[y]),w=xt(z({name:c,src:p}),2),P=w[0],S=P.name,x=P.src,_=w[1];return U((function(){var e,r,t=null===(e=m.current)||void 0===e||null===(r=e.ownerDocument)||void 0===r?void 0:r.defaultView,n=null!=p?p:t?fr(t):"about:blank";if(c)_({name:c,src:n});else if(t){var i=Object.assign(D({location:{href:t.location.href},sentinel:mr(t)}),a),l=Object.assign(D({title:b,type:y,_context:i}),u);_({name:JSON.stringify(D({host:Ae(n).hostname,bootstrap:null!=o?o:lr(y),type:y,count:h,attributes:l})),src:n})}}),[o,a,h,c,u,p,b,y]),oe((function(){var e,r=null===(e=v.current)||void 0===e?void 0:e.node;r&&r.parentNode.insertBefore(r,r.nextSibling)}),[S]),K(r,(function(){return{get readyState(){var e;return null===(e=v.current)||void 0===e?void 0:e.readyState},get node(){var e;return null===(e=v.current)||void 0===e?void 0:e.node}}}),[]),g(xe,yt({allow:n,contentRef:m,messageHandler:l,name:S,ref:v,ready:!!S,sandbox:i?void 0:f,src:x,title:b},O))}var Pe=F(Ft);Pe.displayName="ProxyIframeEmbed";var Rt="amp-";function yr(e){if(!Nt(e))return null;var r=e.indexOf("{");return fe(-1!=r),re(e.substr(r),(function(r){return J().error("MESSAGING","Failed to parse message: "+e,r)}))}function Nt(e){return"string"==typeof e&&0==e.indexOf(Rt)&&-1!=e.indexOf("{")}var It=["action","colorscheme","embedAs","hideCover","hideCta","href","includeCommentParent","kdSite","layout","locale","numPosts","onReady","orderBy","refLabel","requestResize","share","showFacepile","showText","size","smallHeader","style","tabs","title"];function hr(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function pe(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?hr(Object(t),!0).forEach((function(r){Dt(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):hr(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function Dt(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function xr(e,r){return Ct(e)||Mt(e,r)||wt(e,r)||Tt()}function Tt(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function wt(e,r){if(e){if("string"==typeof e)return br(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return br(e,r)}}function br(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function Mt(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,a=[],i=!0,c=!1;try{for(t=t.call(e);!(i=(n=t.next()).done)&&(a.push(n.value),!r||a.length!==r);i=!0);}catch(e){c=!0,o=e}finally{try{!i&&null!=t.return&&t.return()}finally{if(c)throw o}}return a}}function Ct(e){if(Array.isArray(e))return e}function Lt(e,r){if(null==e)return{};var t,n,o=jt(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],!(r.indexOf(t)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,t)||(o[t]=e[t]))}return o}function jt(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],!(r.indexOf(t)>=0)&&(o[t]=e[t]);return o}var Ut="facebook",kt="100%",Bt=function(){return!0},Ht="Facebook comments";function Vt(e,r){var t=e.action,n=e.colorscheme,o=e.embedAs,a=e.hideCover,i=e.hideCta,c=e.href,l=e.includeCommentParent,u=e.kdSite,s=e.layout,f=e.locale,p=e.numPosts,y=e.onReady,d=e.orderBy,b=e.refLabel,O=e.requestResize,m=e.share,v=e.showFacepile,h=e.showText,w=e.size,j=e.smallHeader,P=e.style,S=e.tabs,x=e.title,_=void 0===x?Ht:x,E=Lt(e,It),A=xr(z(null),2),D=A[0],R=A[1],N=ie((function(e){var r,t=null!==(r=re(e.data))&&void 0!==r?r:yr(e.data);if("ready"==t.action&&(null==y||y()),t.type==gr.EMBED_SIZE){var n=t.height;O?(O(n),R(kt)):R(n)}}),[O,y]),T=xr(z(f),2),F=T[0],I=T[1];return U((function(){var e,t;if(f)I(f);else{var n=null==r||null===(e=r.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView;!n||I(Le(n.navigator.language))}}),[f,r]),g(Pe,pe(pe({options:{action:t,colorscheme:n,embedAs:o,hideCover:a,hideCta:i,href:c,includeCommentParent:l,kd_site:u,layout:s,locale:F,numPosts:p,orderBy:d,ref:b,share:m,showFacepile:v,showText:h,size:w,smallHeader:j,tabs:S},ref:r,title:_},E),{},{excludeSandbox:!0,matchesMessagingOrigin:Bt,messageHandler:N,type:Ut,style:D?pe(pe({},P),{},{height:D}):P}))}var Er=F(Vt);Er.displayName="Facebook"; | ||
var Or=Object.create,te=Object.defineProperty,_r=Object.getOwnPropertyDescriptor,Pr=Object.getOwnPropertyNames,Fr=Object.getPrototypeOf,Rr=Object.prototype.hasOwnProperty,Ie=function(e){return te(e,"__esModule",{value:!0})},Nr=function(e,r){for(var t in Ie(e),r)te(e,t,{get:r[t],enumerable:!0})},Ir=function(e,r,t){if(r&&"object"==typeof r||"function"==typeof r)for(var n,o=Pr(r),a=0,i=o.length;a<i;a++)n=o[a],!Rr.call(e,n)&&"default"!==n&&te(e,n,{get:function(e){return r[e]}.bind(null,n),enumerable:!(t=_r(r,n))||t.enumerable});return e},ne=function(e){return Ir(Ie(te(null!=e?Or(Fr(e)):{},"default",e&&e.__esModule&&"default"in e?{get:function(){return e.default},enumerable:!0}:{value:e,enumerable:!0})),e)};Nr(exports,{Facebook:function(){return Er}});var H=ne(require("react")),De=ne(require("react-dom")),p=ne(require("react"));function g(e,r,t){return H.createElement.apply(void 0,arguments)}function Te(e){return H.createContext(e,void 0)}function z(e){return p.useState(e)}function j(e){return p.useRef(e)}function oe(e,r){p.useEffect(e,r)}function U(e,r){p.useLayoutEffect(e,r)}function we(e){return p.useContext(e)}function me(e,r){return p.useMemo(e,r)}function ie(e,r){return p.useCallback(e,r)}function K(e,r,t){return p.useImperativeHandle(e,r,t)}var ve=function(){return["allow-top-navigation-by-user-activation","allow-popups-to-escape-sandbox"]},de=function(){return["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts"]};function Me(){var e=0;return function(){return String(++e)}}var Ce=Object.prototype,Xt=Ce.hasOwnProperty,qt=Ce.toString;function Y(e){var r=Object.create(null);return e&&Object.assign(r,e),r}function D(e){return e||{}}function Le(e){return e.replace("-","_")}function je(e,r,t){return"number"!=typeof t&&(t=0),!(t+r.length>e.length)&&-1!==e.indexOf(r,t)}var X,ae=ne(require("react"));function F(e){return ae.forwardRef(e)}function ue(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var x={AUTO:"auto",LAZY:"lazy",EAGER:"eager",UNLOAD:"unload"},Dr=[x.AUTO,x.LAZY,x.EAGER,x.UNLOAD],Ue=(ue(X={},x.AUTO,0),ue(X,x.LAZY,1),ue(X,x.EAGER,2),ue(X,x.UNLOAD,3),X);function ke(e,r){var t=Ue[e]||0,n=Ue[r]||0,o=Math.max(t,n);return Dr[o]}var Z={UPGRADING:"upgrading",BUILDING:"building",MOUNTING:"mounting",LOADING:"loading",COMPLETE:"complete",ERROR:"error"},Tr=["as","children","className","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"];function Be(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function T(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?Be(Object(t),!0).forEach((function(r){wr(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Be(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function wr(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Mr(e,r){if(null==e)return{};var t,n,o=Cr(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],!(r.indexOf(t)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,t)||(o[t]=e[t]))}return o}function Cr(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],!(r.indexOf(t)>=0)&&(o[t]=e[t]);return o}var Lr=[null,"paint","layout","content","size","size paint","size layout","strict"],jr={position:"relative",width:"100%",height:"100%"};function Ur(e,r){var t=e.as,n=void 0===t?"div":t,o=e.children,a=e.className,i=e.contentAs,c=void 0===i?"div":i,l=e.contentClassName,u=e.contentProps,s=e.contentRef,f=e.contentStyle,p=e.layout,y=void 0!==p&&p,d=e.paint,b=void 0!==d&&d,O=e.size,m=void 0!==O&&O,v=e.style,h=e.wrapperClassName,w=e.wrapperStyle,j=(m?4:0)+(y?2:0)+(b?1:0);return g(n,T(T({},Mr(e,Tr)),{},{ref:r,className:"".concat(a||""," ").concat(h||"").trim()||null,style:T(T(T({},v),w),{},{contain:Lr[j]})}),g(c,T(T({},u),{},{ref:s,className:l,style:T(T({},m&&jr),{},{overflow:b?"hidden":"visible"},f)}),o))}var ge=F(Ur),kr=["as","children","className","style","wrapperClassName","wrapperStyle"];function He(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function se(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?He(Object(t),!0).forEach((function(r){Br(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):He(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function Br(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Hr(e,r){if(null==e)return{};var t,n,o=Vr(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],!(r.indexOf(t)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,t)||(o[t]=e[t]))}return o}function Vr(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],!(r.indexOf(t)>=0)&&(o[t]=e[t]);return o}function Gr(e,r){var t=e.as,n=void 0===t?"div":t,o=e.children,a=e.className,i=e.style,c=e.wrapperClassName,l=e.wrapperStyle;return g(n,se(se({},Hr(e,kr)),{},{ref:r,className:"".concat(a||""," ").concat(c||"").trim()||null,style:se(se({},i),l)}),o)}var Ve,Wr=F(Gr);function ye(e){var r=j(null);return r.current=e,r}function $r(){return Ve||(Ve=Te({renderable:!0,playable:!0,loading:x.AUTO}))}function he(){return we($r())}function Ge(e){return ke(e,he().loading)}var zr=["allow","allowFullScreen","allowTransparency","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"];function We(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function ce(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?We(Object(t),!0).forEach((function(r){Xr(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):We(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function Xr(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function qr(e,r){if(null==e)return{};var t,n,o=Jr(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],!(r.indexOf(t)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,t)||(o[t]=e[t]))}return o}function Jr(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],!(r.indexOf(t)>=0)&&(o[t]=e[t]);return o}var Kr=function(){return!1},Yr="about:blank",Zr=function(e){return e&&e!=Yr&&!e.includes("#")};function Qr(e,r){var t=e.allow,n=e.allowFullScreen,o=e.allowTransparency,a=e.iframeStyle,i=e.name,c=e.title,l=e.matchesMessagingOrigin,u=void 0===l?Kr:l,s=e.messageHandler,f=e.ready,p=void 0===f||f,y=e.loading,d=e.onReadyState,b=e.sandbox,O=e.src,m=qr(e,zr),v=he().playable,h=Ge(y),w=h!==x.UNLOAD,P=j(!1),S=ye(d),_=ie((function(e){if(e!==P.current){P.current=e;var r=S.current;null==r||r(e?Z.COMPLETE:Z.LOADING)}}),[S]),E=j(null);return K(r,(function(){return{get readyState(){return P.current?Z.COMPLETE:Z.LOADING},get node(){return E.current}}}),[]),U((function(){w||_(!1)}),[w,_]),oe((function(){var e=E.current;if(!v&&e){var r=e.src;if(Zr(r))e.src=e.src;else e.parentNode.insertBefore(e,e.nextSibling)}}),[v]),U((function(){var e=E.current;if(e&&w){var r=function(e){var r=E.current;!r||e.source!=r.contentWindow||!u(e.origin)||s(e)},t=e.ownerDocument.defaultView;return t.addEventListener("message",r),function(){return t.removeEventListener("message",r)}}}),[u,s,w,p]),g(ge,ce(ce({},m),{},{layout:!0,size:!0,paint:!0}),w&&p&&g("iframe",{allow:t,allowFullScreen:n,allowTransparency:o,frameborder:"0",loading:h,name:i,onLoad:function(){return _(!0)},part:"iframe",ref:E,sandbox:b,scrolling:"no",src:O,style:ce(ce({},a),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:c}))}var xe=F(Qr);xe.displayName="IframeEmbed";var y=self.AMP_CONFIG||{},et=("string"==typeof y.thirdPartyFrameRegex?new RegExp(y.thirdPartyFrameRegex):y.thirdPartyFrameRegex)||/^d-\d+\.ampproject\.net$/,$e=("string"==typeof y.cdnProxyRegex?new RegExp(y.cdnProxyRegex):y.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;function ze(e){if(!self.document||!self.document.head||self.location&&$e.test(self.location.origin))return null;var r=self.document.head.querySelector('meta[name="'.concat(e,'"]'));return r&&r.getAttribute("content")||null}var V={thirdParty:y.thirdPartyUrl||"https://3p.ampproject.net",thirdPartyFrameHost:y.thirdPartyFrameHost||"ampproject.net",thirdPartyFrameRegex:et,cdn:y.cdnUrl||ze("runtime-host")||"https://cdn.ampproject.org",cdnProxyRegex:$e,localhostRegex:/^https?:\/\/localhost(:\d+)?$/,errorReporting:y.errorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r",betaErrorReporting:y.betaErrorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",localDev:y.localDev||!1,trustedViewerHosts:[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/,/(^|\.)gmail\.(com|dev)$/],geoApi:y.geoApiUrl||ze("amp-geo-api")};function le(){return!1}function Q(e){var r;if(!le())return!1;var t=e||self;return!!(null!==(r=t.AMP_CONFIG)&&void 0!==r&&r.test||t.__AMP_TEST||t.__karma__)}var ee=Array.isArray;function tr(e){return JSON.parse(e)}function re(e,r){try{return tr(e)}catch(e){return null==r||r(e),null}}function q(){return"2107200040000"}var be={OFF:0,ERROR:1,WARN:2,INFO:3,FINE:4};self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var Ee=self.__AMP_LOG,ir=null;function J(){if(Ee.dev)return Ee.dev;if(!ir)throw new Error("failed to call initLogConstructor");return Ee.dev=new ir(self,(function(e){return e>=3?be.FINE:e>=2?be.INFO:be.OFF}))}function fe(e,r,t,n,o,a,i,c,l,u,s){return e}function pt(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function ur(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function mt(e,r,t){return r&&ur(e.prototype,r),t&&ur(e,t),e}var Se,cr,sr=function(){function e(r){pt(this,e),this.capacity_=r,this.size_=0,this.access_=0,this.cache_=Y()}return mt(e,[{key:"has",value:function(e){return!!this.cache_[e]}},{key:"get",value:function(e){var r=this.cache_[e];if(r)return r.access=++this.access_,r.payload}},{key:"put",value:function(e,r){this.has(e)||this.size_++,this.cache_[e]={payload:r,access:this.access_},this.evict_()}},{key:"evict_",value:function(){if(!(this.size_<=this.capacity_)){var e,r=this.cache_,t=this.access_+1;for(var n in r){var o=r[n].access;o<t&&(t=o,e=n)}void 0!==e&&(delete r[e],this.size_--)}}}]),e}(),Va=new Set(["c","v","a","ad"]);function Ae(e,r){return Se||(Se=self.document.createElement("a"),cr=self.__AMP_URL_CACHE||(self.__AMP_URL_CACHE=new sr(100))),vt(Se,e,r?null:cr)}function vt(e,r,t){if(t&&t.has(r))return t.get(r);e.href=r,e.protocol||(e.href=e.href);var n,o={href:e.href,protocol:e.protocol,host:e.host,hostname:e.hostname,port:"0"==e.port?"":e.port,pathname:e.pathname,search:e.search,hash:e.hash,origin:null};"/"!==o.pathname[0]&&(o.pathname="/"+o.pathname),("http:"==o.protocol&&80==o.port||"https:"==o.protocol&&443==o.port)&&(o.port="",o.host=o.hostname),n=e.origin&&"null"!=e.origin?e.origin:"data:"!=o.protocol&&o.host?o.protocol+"//"+o.host:o.href,o.origin=n;var a=Q()&&Object.freeze?Object.freeze(o):o;return t&&t.put(r,a),a}function lr(e){return"".concat(V.thirdParty,"/").concat(q(),"/vendor/").concat(e).concat(".js")}function fr(e,r){var t=r||"frame";return e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||dt(e),"https://"+e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+".".concat(V.thirdPartyFrameHost,"/").concat(q(),"/")+"".concat(t,".html")}function dt(e){return"d-"+pr(e)}function pr(e){var r;if(e.crypto&&e.crypto.getRandomValues){var t=new Uint32Array(2);e.crypto.getRandomValues(t),r=String(t[0])+t[1]}else r=String(e.Math.random()).substr(2)+"0";return r}function mr(e){for(var r=0,t=e;t&&t!=t.parent;t=t.parent)r++;return String(r)+"-"+pr(e)}var gt=["allow","bootstrap","contextOptions","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"];function vr(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function yt(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?vr(Object(t),!0).forEach((function(r){ht(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):vr(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function ht(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function xt(e,r){return At(e)||St(e,r)||Et(e,r)||bt()}function bt(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Et(e,r){if(e){if("string"==typeof e)return dr(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return dr(e,r)}}function dr(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function St(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,a=[],i=!0,c=!1;try{for(t=t.call(e);!(i=(n=t.next()).done)&&(a.push(n.value),!r||a.length!==r);i=!0);}catch(e){c=!0,o=e}finally{try{!i&&null!=t.return&&t.return()}finally{if(c)throw o}}return a}}function At(e){if(Array.isArray(e))return e}function Ot(e,r){if(null==e)return{};var t,n,o=_t(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],!(r.indexOf(t)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,t)||(o[t]=e[t]))}return o}function _t(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],!(r.indexOf(t)>=0)&&(o[t]=e[t]);return o}var Oe={},gr={EMBED_SIZE:"embed-size"},_e="sync-xhr 'none'",Pt=ve().join(" ")+" "+de().join(" ");function Ft(e,r){var t=e.allow,n=void 0===t?_e:t,o=e.bootstrap,a=e.contextOptions,i=e.excludeSandbox,c=e.name,l=e.messageHandler,u=e.options,s=e.sandbox,f=void 0===s?Pt:s,p=e.src,y=e.type,d=e.title,b=void 0===d?y:d,O=Ot(e,gt);if(!je(n,_e))throw new Error("'allow' prop must contain \"".concat(_e,'". Found "').concat(n,'".'));var m=j(null),v=j(null),h=me((function(){return Oe[y]||(Oe[y]=Me()),Oe[y]()}),[y]),w=xt(z({name:c,src:p}),2),P=w[0],S=P.name,x=P.src,_=w[1];return U((function(){var e,r,t=null===(e=m.current)||void 0===e||null===(r=e.ownerDocument)||void 0===r?void 0:r.defaultView,n=null!=p?p:t?fr(t):"about:blank";if(c)_({name:c,src:n});else if(t){var i=Object.assign(D({location:{href:t.location.href},sentinel:mr(t)}),a),l=Object.assign(D({title:b,type:y,_context:i}),u);_({name:JSON.stringify(D({host:Ae(n).hostname,bootstrap:null!=o?o:lr(y),type:y,count:h,attributes:l})),src:n})}}),[o,a,h,c,u,p,b,y]),oe((function(){var e,r=null===(e=v.current)||void 0===e?void 0:e.node;r&&r.parentNode.insertBefore(r,r.nextSibling)}),[S]),K(r,(function(){return{get readyState(){var e;return null===(e=v.current)||void 0===e?void 0:e.readyState},get node(){var e;return null===(e=v.current)||void 0===e?void 0:e.node}}}),[]),g(xe,yt({allow:n,contentRef:m,messageHandler:l,name:S,ref:v,ready:!!S,sandbox:i?void 0:f,src:x,title:b},O))}var Pe=F(Ft);Pe.displayName="ProxyIframeEmbed";var Rt="amp-";function yr(e){if(!Nt(e))return null;var r=e.indexOf("{");return fe(-1!=r),re(e.substr(r),(function(r){return J().error("MESSAGING","Failed to parse message: "+e,r)}))}function Nt(e){return"string"==typeof e&&0==e.indexOf(Rt)&&-1!=e.indexOf("{")}var It=["action","colorscheme","embedAs","hideCover","hideCta","href","includeCommentParent","kdSite","layout","locale","numPosts","onReady","orderBy","refLabel","requestResize","share","showFacepile","showText","size","smallHeader","style","tabs","title"];function hr(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function pe(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?hr(Object(t),!0).forEach((function(r){Dt(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):hr(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function Dt(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function xr(e,r){return Ct(e)||Mt(e,r)||wt(e,r)||Tt()}function Tt(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function wt(e,r){if(e){if("string"==typeof e)return br(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return br(e,r)}}function br(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function Mt(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,a=[],i=!0,c=!1;try{for(t=t.call(e);!(i=(n=t.next()).done)&&(a.push(n.value),!r||a.length!==r);i=!0);}catch(e){c=!0,o=e}finally{try{!i&&null!=t.return&&t.return()}finally{if(c)throw o}}return a}}function Ct(e){if(Array.isArray(e))return e}function Lt(e,r){if(null==e)return{};var t,n,o=jt(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],!(r.indexOf(t)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,t)||(o[t]=e[t]))}return o}function jt(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],!(r.indexOf(t)>=0)&&(o[t]=e[t]);return o}var Ut="facebook",kt="100%",Bt=function(){return!0},Ht="Facebook comments";function Vt(e,r){var t=e.action,n=e.colorscheme,o=e.embedAs,a=e.hideCover,i=e.hideCta,c=e.href,l=e.includeCommentParent,u=e.kdSite,s=e.layout,f=e.locale,p=e.numPosts,y=e.onReady,d=e.orderBy,b=e.refLabel,O=e.requestResize,m=e.share,v=e.showFacepile,h=e.showText,w=e.size,j=e.smallHeader,P=e.style,S=e.tabs,x=e.title,_=void 0===x?Ht:x,E=Lt(e,It),A=xr(z(null),2),D=A[0],R=A[1],N=ie((function(e){var r,t=null!==(r=re(e.data))&&void 0!==r?r:yr(e.data);if("ready"==t.action&&(null==y||y()),t.type==gr.EMBED_SIZE){var n=t.height;O?(O(n),R(kt)):R(n)}}),[O,y]),T=xr(z(f),2),F=T[0],I=T[1];return U((function(){var e,t;if(f)I(f);else{var n=null==r||null===(e=r.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView;!n||I(Le(n.navigator.language))}}),[f,r]),g(Pe,pe(pe({options:{action:t,colorscheme:n,embedAs:o,hideCover:a,hideCta:i,href:c,includeCommentParent:l,kd_site:u,layout:s,locale:F,numPosts:p,orderBy:d,ref:b,share:m,showFacepile:v,showText:h,size:w,smallHeader:j,tabs:S},ref:r,title:_},E),{},{excludeSandbox:!0,matchesMessagingOrigin:Bt,messageHandler:N,type:Ut,style:D?pe(pe({},P),{},{height:D}):P}))}var Er=F(Vt);Er.displayName="Facebook"; | ||
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */ | ||
//# sourceMappingURL=component-react.js.map |
@@ -516,3 +516,3 @@ var __create = Object.create; | ||
function internalRuntimeVersion() { | ||
return "2107170150000"; | ||
return "2107200040000"; | ||
} | ||
@@ -519,0 +519,0 @@ |
@@ -527,3 +527,3 @@ // src/preact/index.js | ||
function internalRuntimeVersion() { | ||
return "2107170150000"; | ||
return "2107200040000"; | ||
} | ||
@@ -530,0 +530,0 @@ |
@@ -1,3 +0,3 @@ | ||
import{Fragment as Or,cloneElement as vr,createContext as nt,createElement as rt,createRef as Sr}from"react";import{hydrate as br,render as _r}from"react-dom";import{useCallback as lt,useContext as at,useEffect as st,useImperativeHandle as ft,useLayoutEffect as ct,useMemo as ut,useRef as it,useState as ot}from"react";function d(e,t,r){return rt.apply(void 0,arguments)}function Ee(e){return nt(e,void 0)}function $(e){return ot(e)}function F(e){return it(e)}function z(e,t){st(e,t)}function T(e,t){ct(e,t)}function ye(e){return at(e)}function te(e,t){return ut(e,t)}function X(e,t){return lt(e,t)}function H(e,t,r){return ft(e,t,r)}var re=()=>["allow-top-navigation-by-user-activation","allow-popups-to-escape-sandbox"],ne=()=>["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts"];function ve(){let e=0;return()=>String(++e)}var{hasOwnProperty:Nr,toString:Rr}=Object.prototype;function N(e){return e||{}}function _e(e){return e.replace("-","_")}function be(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}import{Children as wr,createPortal as Dr,forwardRef as pt}from"react";function A(e){return pt(e)}var x={AUTO:"auto",LAZY:"lazy",EAGER:"eager",UNLOAD:"unload"},mt=[x.AUTO,x.LAZY,x.EAGER,x.UNLOAD],Oe={[x.AUTO]:0,[x.LAZY]:1,[x.EAGER]:2,[x.UNLOAD]:3};function Se(e,t){let r=Oe[e]||0,n=Oe[t]||0,o=Math.max(r,n);return mt[o]}var k={UPGRADING:"upgrading",BUILDING:"building",MOUNTING:"mounting",LOADING:"loading",COMPLETE:"complete",ERROR:"error"},dt=["as","children","className","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"];function Ae(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 R(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ae(Object(r),!0).forEach((function(t){gt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ae(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function gt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ht(e,t){if(null==e)return{};var r,n,o=xt(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function xt(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}var Et=[null,"paint","layout","content","size","size paint","size layout","strict"],yt={position:"relative",width:"100%",height:"100%"};function vt(e,t){let{as:r="div",children:n,className:o,contentAs:a="div",contentClassName:l,contentProps:i,contentRef:c,contentStyle:u,layout:s=!1,paint:f=!1,size:p=!1,style:y,wrapperClassName:O,wrapperStyle:b}=e,m=(p?4:0)+(s?2:0)+(f?1:0);return d(r,R(R({},ht(e,dt)),{},{ref:t,className:`${o||""} ${O||""}`.trim()||null,style:R(R(R({},y),b),{},{contain:Et[m]})}),d(a,R(R({},i),{},{ref:c,className:l,style:R(R({},p&&yt),{},{overflow:f?"hidden":"visible"},u)}),n))}var oe=A(vt),_t=["as","children","className","style","wrapperClassName","wrapperStyle"];function Pe(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 q(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Pe(Object(r),!0).forEach((function(t){bt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function bt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ot(e,t){if(null==e)return{};var r,n,o=St(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function St(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}function At(e,t){let{as:r="div",children:n,className:o,style:a,wrapperClassName:l,wrapperStyle:i}=e;return d(r,q(q({},Ot(e,_t)),{},{ref:t,className:`${o||""} ${l||""}`.trim()||null,style:q(q({},a),i)}),n)}var Ne,Pt=A(At);function ie(e){let t=F(null);return t.current=e,t}function Nt(){return Ne||(Ne=Ee({renderable:!0,playable:!0,loading:x.AUTO}))}function se(){return ye(Nt())}function Re(e){let{loading:t}=se();return Se(e,t)}var Rt=["allow","allowFullScreen","allowTransparency","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"];function Ie(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 J(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ie(Object(r),!0).forEach((function(t){It(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ie(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function It(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Mt(e,t){if(null==e)return{};var r,n,o=Ft(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function Ft(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}var Tt=()=>!1,Dt="about:blank",wt=e=>e&&e!=Dt&&!e.includes("#");function Ct(e,t){let{allow:r,allowFullScreen:n,allowTransparency:o,iframeStyle:a,name:l,title:i,matchesMessagingOrigin:c=Tt,messageHandler:u,ready:s=!0,loading:f,onReadyState:p,sandbox:y,src:O}=e,b=Mt(e,Rt),{playable:m}=se(),g=Re(f),v=g!==x.UNLOAD,h=F(!1),w=ie(p),P=X((e=>{if(e!==h.current){h.current=e;let t=w.current;null==t||t(e?k.COMPLETE:k.LOADING)}}),[w]),j=F(null);return H(t,(()=>({get readyState(){return h.current?k.COMPLETE:k.LOADING},get node(){return j.current}})),[]),T((()=>{v||P(!1)}),[v,P]),z((()=>{let e=j.current;if(!m&&e){let{src:t}=e;wt(t)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling)}}),[m]),T((()=>{let e=j.current;if(!e||!v)return;let t=e=>{let t=j.current;!t||e.source!=t.contentWindow||!c(e.origin)||u(e)},{defaultView:r}=e.ownerDocument;return r.addEventListener("message",t),()=>r.removeEventListener("message",t)}),[c,u,v,s]),d(oe,J(J({},b),{},{layout:!0,size:!0,paint:!0}),v&&s&&d("iframe",{allow:r,allowFullScreen:n,allowTransparency:o,frameborder:"0",loading:g,name:l,onLoad:()=>P(!0),part:"iframe",ref:j,sandbox:y,scrolling:"no",src:O,style:J(J({},a),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:i}))}var ce=A(Ct);ce.displayName="IframeEmbed";var g=self.AMP_CONFIG||{},Lt=("string"==typeof g.thirdPartyFrameRegex?new RegExp(g.thirdPartyFrameRegex):g.thirdPartyFrameRegex)||/^d-\d+\.ampproject\.net$/,Me=("string"==typeof g.cdnProxyRegex?new RegExp(g.cdnProxyRegex):g.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;function Fe(e){if(!self.document||!self.document.head||self.location&&Me.test(self.location.origin))return null;let t=self.document.head.querySelector(`meta[name="${e}"]`);return t&&t.getAttribute("content")||null}var C={thirdParty:g.thirdPartyUrl||"https://3p.ampproject.net",thirdPartyFrameHost:g.thirdPartyFrameHost||"ampproject.net",thirdPartyFrameRegex:Lt,cdn:g.cdnUrl||Fe("runtime-host")||"https://cdn.ampproject.org",cdnProxyRegex:Me,localhostRegex:/^https?:\/\/localhost(:\d+)?$/,errorReporting:g.errorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r",betaErrorReporting:g.betaErrorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",localDev:g.localDev||!1,trustedViewerHosts:[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/,/(^|\.)gmail\.(com|dev)$/],geoApi:g.geoApiUrl||Fe("amp-geo-api")};function K(){return!1}function G(e){var t;if(!K())return!1;let r=e||self;return!!(null!==(t=r.AMP_CONFIG)&&void 0!==t&&t.test||r.__AMP_TEST||r.__karma__)}function Ve(e){return JSON.parse(e)}function W(e,t){try{return Ve(e)}catch(e){return null==t||t(e),null}}function B(){return"2107170150000"}var ue={OFF:0,ERROR:1,WARN:2,INFO:3,FINE:4};self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var le=self.__AMP_LOG,Ge=null;function Z(){if(le.dev)return le.dev;if(!Ge)throw new Error("failed to call initLogConstructor");return le.dev=new Ge(self,(e=>e>=3?ue.FINE:e>=2?ue.INFO:ue.OFF))}function Q(e,t,r,n,o,a,l,i,c,u,s){return e}var fe,qt,Ns=new Set(["c","v","a","ad"]);function pe(e,t){return fe||(fe=self.document.createElement("a"),qt=null),Jt(fe,e,null)}function Jt(e,t,r){return e.href="",new URL(t,e.href)}function ze(e){return`${C.thirdParty}/${B()}/vendor/${e}.mjs`}function Xe(e,t){let r=t||"frame";return e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||Kt(e),"https://"+e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+`.${C.thirdPartyFrameHost}/${B()}/${r}.html`}function Kt(e){return"d-"+qe(e)}function qe(e){let t;if(e.crypto&&e.crypto.getRandomValues){let r=new Uint32Array(2);e.crypto.getRandomValues(r),t=String(r[0])+r[1]}else t=String(e.Math.random()).substr(2)+"0";return t}function Je(e){let t=0;for(let r=e;r&&r!=r.parent;r=r.parent)t++;return String(t)+"-"+qe(e)}var Yt=["allow","bootstrap","contextOptions","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"];function Ke(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 Zt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ke(Object(r),!0).forEach((function(t){Qt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ke(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Qt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function er(e,t){if(null==e)return{};var r,n,o=tr(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function tr(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}var me={},Ye={EMBED_SIZE:"embed-size"},de="sync-xhr 'none'",rr=re().join(" ")+" "+ne().join(" ");function nr(e,t){let{allow:r=de,bootstrap:n,contextOptions:o,excludeSandbox:a,name:l,messageHandler:i,options:c,sandbox:u=rr,src:s,type:f,title:p=f}=e,y=er(e,Yt);if(!be(r,de))throw new Error(`'allow' prop must contain "${de}". Found "${r}".`);let O=F(null),b=F(null),m=te((()=>(me[f]||(me[f]=ve()),me[f]())),[f]),{0:{name:g,src:v},1:h}=$({name:l,src:s});return T((()=>{var e,t;let r=null===(e=O.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView,a=null!=s?s:r?Xe(r):"about:blank";if(l)return void h({name:l,src:a});if(!r)return;let i=Object.assign(N({location:{href:r.location.href},sentinel:Je(r)}),o),u=Object.assign(N({title:p,type:f,_context:i}),c);h({name:JSON.stringify(N({host:pe(a).hostname,bootstrap:null!=n?n:ze(f),type:f,count:m,attributes:u})),src:a})}),[n,o,m,l,c,s,p,f]),z((()=>{var e;let t=null===(e=b.current)||void 0===e?void 0:e.node;t&&t.parentNode.insertBefore(t,t.nextSibling)}),[g]),H(t,(()=>({get readyState(){var e;return null===(e=b.current)||void 0===e?void 0:e.readyState},get node(){var e;return null===(e=b.current)||void 0===e?void 0:e.node}})),[]),d(ce,Zt({allow:r,contentRef:O,messageHandler:i,name:g,ref:b,ready:!!g,sandbox:a?void 0:u,src:v,title:p},y))}var ge=A(nr);ge.displayName="ProxyIframeEmbed";var or="amp-";function Ze(e){if(!ir(e))return null;let t=e.indexOf("{");return Q(-1!=t),W(e.substr(t),(t=>Z().error("MESSAGING","Failed to parse message: "+e,t)))}function ir(e){return"string"==typeof e&&0==e.indexOf(or)&&-1!=e.indexOf("{")}var sr=["action","colorscheme","embedAs","hideCover","hideCta","href","includeCommentParent","kdSite","layout","locale","numPosts","onReady","orderBy","refLabel","requestResize","share","showFacepile","showText","size","smallHeader","style","tabs","title"];function Qe(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 ee(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Qe(Object(r),!0).forEach((function(t){cr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function cr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ar(e,t){if(null==e)return{};var r,n,o=ur(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function ur(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}var lr="facebook",fr="100%",pr=()=>!0,mr="Facebook comments";function dr(e,t){let{action:r,colorscheme:n,embedAs:o,hideCover:a,hideCta:l,href:i,includeCommentParent:c,kdSite:u,layout:s,locale:f,numPosts:p,onReady:y,orderBy:O,refLabel:b,requestResize:m,share:g,showFacepile:v,showText:h,size:w,smallHeader:P,style:j,tabs:x,title:S=mr}=e,E=ar(e,sr),{0:A,1:R}=$(null),N=X((e=>{var t;let r=null!==(t=W(e.data))&&void 0!==t?t:Ze(e.data);if("ready"==r.action&&(null==y||y()),r.type==Ye.EMBED_SIZE){let e=r.height;m?(m(e),R(fr)):R(e)}}),[m,y]),{0:D,1:F}=$(f);return T((()=>{var e,r;if(f)return void F(f);let n=null==t||null===(e=t.current)||void 0===e||null===(r=e.ownerDocument)||void 0===r?void 0:r.defaultView;!n||F(_e(n.navigator.language))}),[f,t]),d(ge,ee(ee({options:{action:r,colorscheme:n,embedAs:o,hideCover:a,hideCta:l,href:i,includeCommentParent:c,kd_site:u,layout:s,locale:D,numPosts:p,orderBy:O,ref:b,share:g,showFacepile:v,showText:h,size:w,smallHeader:P,tabs:x},ref:t,title:S},E),{},{excludeSandbox:!0,matchesMessagingOrigin:pr,messageHandler:N,type:lr,style:A?ee(ee({},j),{},{height:A}):j}))}var gr=A(dr);gr.displayName="Facebook";export{gr as Facebook}; | ||
import{Fragment as Or,cloneElement as vr,createContext as nt,createElement as rt,createRef as Sr}from"react";import{hydrate as br,render as _r}from"react-dom";import{useCallback as lt,useContext as at,useEffect as st,useImperativeHandle as ft,useLayoutEffect as ct,useMemo as ut,useRef as it,useState as ot}from"react";function d(e,t,r){return rt.apply(void 0,arguments)}function Ee(e){return nt(e,void 0)}function $(e){return ot(e)}function F(e){return it(e)}function z(e,t){st(e,t)}function T(e,t){ct(e,t)}function ye(e){return at(e)}function te(e,t){return ut(e,t)}function X(e,t){return lt(e,t)}function H(e,t,r){return ft(e,t,r)}var re=()=>["allow-top-navigation-by-user-activation","allow-popups-to-escape-sandbox"],ne=()=>["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts"];function ve(){let e=0;return()=>String(++e)}var{hasOwnProperty:Nr,toString:Rr}=Object.prototype;function N(e){return e||{}}function _e(e){return e.replace("-","_")}function be(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}import{Children as wr,createPortal as Dr,forwardRef as pt}from"react";function A(e){return pt(e)}var x={AUTO:"auto",LAZY:"lazy",EAGER:"eager",UNLOAD:"unload"},mt=[x.AUTO,x.LAZY,x.EAGER,x.UNLOAD],Oe={[x.AUTO]:0,[x.LAZY]:1,[x.EAGER]:2,[x.UNLOAD]:3};function Se(e,t){let r=Oe[e]||0,n=Oe[t]||0,o=Math.max(r,n);return mt[o]}var k={UPGRADING:"upgrading",BUILDING:"building",MOUNTING:"mounting",LOADING:"loading",COMPLETE:"complete",ERROR:"error"},dt=["as","children","className","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"];function Ae(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 R(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ae(Object(r),!0).forEach((function(t){gt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ae(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function gt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ht(e,t){if(null==e)return{};var r,n,o=xt(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function xt(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}var Et=[null,"paint","layout","content","size","size paint","size layout","strict"],yt={position:"relative",width:"100%",height:"100%"};function vt(e,t){let{as:r="div",children:n,className:o,contentAs:a="div",contentClassName:l,contentProps:i,contentRef:c,contentStyle:u,layout:s=!1,paint:f=!1,size:p=!1,style:y,wrapperClassName:O,wrapperStyle:b}=e,m=(p?4:0)+(s?2:0)+(f?1:0);return d(r,R(R({},ht(e,dt)),{},{ref:t,className:`${o||""} ${O||""}`.trim()||null,style:R(R(R({},y),b),{},{contain:Et[m]})}),d(a,R(R({},i),{},{ref:c,className:l,style:R(R({},p&&yt),{},{overflow:f?"hidden":"visible"},u)}),n))}var oe=A(vt),_t=["as","children","className","style","wrapperClassName","wrapperStyle"];function Pe(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 q(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Pe(Object(r),!0).forEach((function(t){bt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function bt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ot(e,t){if(null==e)return{};var r,n,o=St(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function St(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}function At(e,t){let{as:r="div",children:n,className:o,style:a,wrapperClassName:l,wrapperStyle:i}=e;return d(r,q(q({},Ot(e,_t)),{},{ref:t,className:`${o||""} ${l||""}`.trim()||null,style:q(q({},a),i)}),n)}var Ne,Pt=A(At);function ie(e){let t=F(null);return t.current=e,t}function Nt(){return Ne||(Ne=Ee({renderable:!0,playable:!0,loading:x.AUTO}))}function se(){return ye(Nt())}function Re(e){let{loading:t}=se();return Se(e,t)}var Rt=["allow","allowFullScreen","allowTransparency","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"];function Ie(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 J(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ie(Object(r),!0).forEach((function(t){It(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ie(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function It(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Mt(e,t){if(null==e)return{};var r,n,o=Ft(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function Ft(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}var Tt=()=>!1,Dt="about:blank",wt=e=>e&&e!=Dt&&!e.includes("#");function Ct(e,t){let{allow:r,allowFullScreen:n,allowTransparency:o,iframeStyle:a,name:l,title:i,matchesMessagingOrigin:c=Tt,messageHandler:u,ready:s=!0,loading:f,onReadyState:p,sandbox:y,src:O}=e,b=Mt(e,Rt),{playable:m}=se(),g=Re(f),v=g!==x.UNLOAD,h=F(!1),w=ie(p),P=X((e=>{if(e!==h.current){h.current=e;let t=w.current;null==t||t(e?k.COMPLETE:k.LOADING)}}),[w]),j=F(null);return H(t,(()=>({get readyState(){return h.current?k.COMPLETE:k.LOADING},get node(){return j.current}})),[]),T((()=>{v||P(!1)}),[v,P]),z((()=>{let e=j.current;if(!m&&e){let{src:t}=e;wt(t)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling)}}),[m]),T((()=>{let e=j.current;if(!e||!v)return;let t=e=>{let t=j.current;!t||e.source!=t.contentWindow||!c(e.origin)||u(e)},{defaultView:r}=e.ownerDocument;return r.addEventListener("message",t),()=>r.removeEventListener("message",t)}),[c,u,v,s]),d(oe,J(J({},b),{},{layout:!0,size:!0,paint:!0}),v&&s&&d("iframe",{allow:r,allowFullScreen:n,allowTransparency:o,frameborder:"0",loading:g,name:l,onLoad:()=>P(!0),part:"iframe",ref:j,sandbox:y,scrolling:"no",src:O,style:J(J({},a),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:i}))}var ce=A(Ct);ce.displayName="IframeEmbed";var g=self.AMP_CONFIG||{},Lt=("string"==typeof g.thirdPartyFrameRegex?new RegExp(g.thirdPartyFrameRegex):g.thirdPartyFrameRegex)||/^d-\d+\.ampproject\.net$/,Me=("string"==typeof g.cdnProxyRegex?new RegExp(g.cdnProxyRegex):g.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;function Fe(e){if(!self.document||!self.document.head||self.location&&Me.test(self.location.origin))return null;let t=self.document.head.querySelector(`meta[name="${e}"]`);return t&&t.getAttribute("content")||null}var C={thirdParty:g.thirdPartyUrl||"https://3p.ampproject.net",thirdPartyFrameHost:g.thirdPartyFrameHost||"ampproject.net",thirdPartyFrameRegex:Lt,cdn:g.cdnUrl||Fe("runtime-host")||"https://cdn.ampproject.org",cdnProxyRegex:Me,localhostRegex:/^https?:\/\/localhost(:\d+)?$/,errorReporting:g.errorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r",betaErrorReporting:g.betaErrorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",localDev:g.localDev||!1,trustedViewerHosts:[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/,/(^|\.)gmail\.(com|dev)$/],geoApi:g.geoApiUrl||Fe("amp-geo-api")};function K(){return!1}function G(e){var t;if(!K())return!1;let r=e||self;return!!(null!==(t=r.AMP_CONFIG)&&void 0!==t&&t.test||r.__AMP_TEST||r.__karma__)}function Ve(e){return JSON.parse(e)}function W(e,t){try{return Ve(e)}catch(e){return null==t||t(e),null}}function B(){return"2107200040000"}var ue={OFF:0,ERROR:1,WARN:2,INFO:3,FINE:4};self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var le=self.__AMP_LOG,Ge=null;function Z(){if(le.dev)return le.dev;if(!Ge)throw new Error("failed to call initLogConstructor");return le.dev=new Ge(self,(e=>e>=3?ue.FINE:e>=2?ue.INFO:ue.OFF))}function Q(e,t,r,n,o,a,l,i,c,u,s){return e}var fe,qt,Ns=new Set(["c","v","a","ad"]);function pe(e,t){return fe||(fe=self.document.createElement("a"),qt=null),Jt(fe,e,null)}function Jt(e,t,r){return e.href="",new URL(t,e.href)}function ze(e){return`${C.thirdParty}/${B()}/vendor/${e}.mjs`}function Xe(e,t){let r=t||"frame";return e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||Kt(e),"https://"+e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+`.${C.thirdPartyFrameHost}/${B()}/${r}.html`}function Kt(e){return"d-"+qe(e)}function qe(e){let t;if(e.crypto&&e.crypto.getRandomValues){let r=new Uint32Array(2);e.crypto.getRandomValues(r),t=String(r[0])+r[1]}else t=String(e.Math.random()).substr(2)+"0";return t}function Je(e){let t=0;for(let r=e;r&&r!=r.parent;r=r.parent)t++;return String(t)+"-"+qe(e)}var Yt=["allow","bootstrap","contextOptions","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"];function Ke(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 Zt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ke(Object(r),!0).forEach((function(t){Qt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ke(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Qt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function er(e,t){if(null==e)return{};var r,n,o=tr(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function tr(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}var me={},Ye={EMBED_SIZE:"embed-size"},de="sync-xhr 'none'",rr=re().join(" ")+" "+ne().join(" ");function nr(e,t){let{allow:r=de,bootstrap:n,contextOptions:o,excludeSandbox:a,name:l,messageHandler:i,options:c,sandbox:u=rr,src:s,type:f,title:p=f}=e,y=er(e,Yt);if(!be(r,de))throw new Error(`'allow' prop must contain "${de}". Found "${r}".`);let O=F(null),b=F(null),m=te((()=>(me[f]||(me[f]=ve()),me[f]())),[f]),{0:{name:g,src:v},1:h}=$({name:l,src:s});return T((()=>{var e,t;let r=null===(e=O.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView,a=null!=s?s:r?Xe(r):"about:blank";if(l)return void h({name:l,src:a});if(!r)return;let i=Object.assign(N({location:{href:r.location.href},sentinel:Je(r)}),o),u=Object.assign(N({title:p,type:f,_context:i}),c);h({name:JSON.stringify(N({host:pe(a).hostname,bootstrap:null!=n?n:ze(f),type:f,count:m,attributes:u})),src:a})}),[n,o,m,l,c,s,p,f]),z((()=>{var e;let t=null===(e=b.current)||void 0===e?void 0:e.node;t&&t.parentNode.insertBefore(t,t.nextSibling)}),[g]),H(t,(()=>({get readyState(){var e;return null===(e=b.current)||void 0===e?void 0:e.readyState},get node(){var e;return null===(e=b.current)||void 0===e?void 0:e.node}})),[]),d(ce,Zt({allow:r,contentRef:O,messageHandler:i,name:g,ref:b,ready:!!g,sandbox:a?void 0:u,src:v,title:p},y))}var ge=A(nr);ge.displayName="ProxyIframeEmbed";var or="amp-";function Ze(e){if(!ir(e))return null;let t=e.indexOf("{");return Q(-1!=t),W(e.substr(t),(t=>Z().error("MESSAGING","Failed to parse message: "+e,t)))}function ir(e){return"string"==typeof e&&0==e.indexOf(or)&&-1!=e.indexOf("{")}var sr=["action","colorscheme","embedAs","hideCover","hideCta","href","includeCommentParent","kdSite","layout","locale","numPosts","onReady","orderBy","refLabel","requestResize","share","showFacepile","showText","size","smallHeader","style","tabs","title"];function Qe(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 ee(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Qe(Object(r),!0).forEach((function(t){cr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function cr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ar(e,t){if(null==e)return{};var r,n,o=ur(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function ur(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}var lr="facebook",fr="100%",pr=()=>!0,mr="Facebook comments";function dr(e,t){let{action:r,colorscheme:n,embedAs:o,hideCover:a,hideCta:l,href:i,includeCommentParent:c,kdSite:u,layout:s,locale:f,numPosts:p,onReady:y,orderBy:O,refLabel:b,requestResize:m,share:g,showFacepile:v,showText:h,size:w,smallHeader:P,style:j,tabs:x,title:S=mr}=e,E=ar(e,sr),{0:A,1:R}=$(null),N=X((e=>{var t;let r=null!==(t=W(e.data))&&void 0!==t?t:Ze(e.data);if("ready"==r.action&&(null==y||y()),r.type==Ye.EMBED_SIZE){let e=r.height;m?(m(e),R(fr)):R(e)}}),[m,y]),{0:D,1:F}=$(f);return T((()=>{var e,r;if(f)return void F(f);let n=null==t||null===(e=t.current)||void 0===e||null===(r=e.ownerDocument)||void 0===r?void 0:r.defaultView;!n||F(_e(n.navigator.language))}),[f,t]),d(ge,ee(ee({options:{action:r,colorscheme:n,embedAs:o,hideCover:a,hideCta:l,href:i,includeCommentParent:c,kd_site:u,layout:s,locale:D,numPosts:p,orderBy:O,ref:b,share:g,showFacepile:v,showText:h,size:w,smallHeader:P,tabs:x},ref:t,title:S},E),{},{excludeSandbox:!0,matchesMessagingOrigin:pr,messageHandler:N,type:lr,style:A?ee(ee({},j),{},{height:A}):j}))}var gr=A(dr);gr.displayName="Facebook";export{gr as Facebook}; | ||
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */ | ||
//# sourceMappingURL=component-react.module.js.map |
{ | ||
"name": "@ampproject/amp-facebook", | ||
"version": "1.2107170150.0", | ||
"version": "1.2107200040.0", | ||
"description": "AMP HTML amp-facebook Component", | ||
@@ -5,0 +5,0 @@ "author": "The AMP HTML Authors", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package