Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ampproject/amp-facebook

Package Overview
Dependencies
Maintainers
16
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ampproject/amp-facebook - npm Package Compare versions

Comparing version 1.2108170213.0 to 1.2108190446.0

2

dist/component-preact.js
;
bent;var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__markAsModule=function(e){return __defProp(e,"__esModule",{value:!0})},__export=function(e,r){for(var t in __markAsModule(e),r)__defProp(e,t,{get:r[t],enumerable:!0})},__reExport=function(e,r,t){if(r&&"object"==typeof r||"function"==typeof r)for(var n,o=__getOwnPropNames(r),a=0,i=o.length;a<i;a++)n=o[a],__hasOwnProp.call(e,n)||"default"===n||__defProp(e,n,{get:function(e){return r[e]}.bind(null,n),enumerable:!(t=__getOwnPropDesc(r,n))||t.enumerable});return e},__toModule=function(e){return __reExport(__markAsModule(__defProp(null!=e?__create(__getProtoOf(e)):{},"default",e&&e.__esModule&&"default"in e?{get:function(){return e.default},enumerable:!0}:{value:e,enumerable:!0})),e)};__export(exports,{Facebook:function(){return Facebook}});var preact=__toModule(require("preact")),preactDOM=__toModule(require("preact")),hooks=__toModule(require("preact/hooks"));function createElement2(e,r,t){return preact.createElement.apply(void 0,arguments)}function createContext2(e){return preact.createContext(e,void 0)}function useState2(e){return hooks.useState(e)}function useRef2(e){return hooks.useRef(e)}function useEffect2(e,r){hooks.useEffect(e,r)}function useLayoutEffect2(e,r){hooks.useLayoutEffect(e,r)}function useContext2(e){return hooks.useContext(e)}function useMemo2(e,r){return hooks.useMemo(e,r)}function useCallback2(e,r){return hooks.useCallback(e,r)}function useImperativeHandle2(e,r,t){return hooks.useImperativeHandle(e,r,t)}var getRequiredSandboxFlags=function(){return["allow-top-navigation-by-user-activation","allow-popups-to-escape-sandbox"]},getOptionalSandboxFlags=function(){return["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts"]};function sequentialIdGenerator(){var e=0;return function(){return String(++e)}}var _Object$prototype=Object.prototype,hasOwn_=_Object$prototype.hasOwnProperty,toString_=_Object$prototype.toString;function map(e){var r=Object.create(null);return e&&Object.assign(r,e),r}function dict(e){return e||{}}function dashToUnderline(e){return e.replace("-","_")}function includes(e,r,t){return"number"!=typeof t&&(t=0),!(t+r.length>e.length)&&-1!==e.indexOf(r,t)}function isString(e){return"string"==typeof e}var _MAP,compat=__toModule(require("preact/compat"));function forwardRef2(e){return compat.forwardRef(e)}function _defineProperty(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var Loading={AUTO:"auto",LAZY:"lazy",EAGER:"eager",UNLOAD:"unload"},ORDER=[Loading.AUTO,Loading.LAZY,Loading.EAGER,Loading.UNLOAD],MAP=(_defineProperty(_MAP={},Loading.AUTO,0),_defineProperty(_MAP,Loading.LAZY,1),_defineProperty(_MAP,Loading.EAGER,2),_defineProperty(_MAP,Loading.UNLOAD,3),_MAP);function reducer(e,r){var t=MAP[e]||0,n=MAP[r]||0,o=Math.max(t,n);return ORDER[o]}var ReadyState={UPGRADING:"upgrading",BUILDING:"building",MOUNTING:"mounting",LOADING:"loading",COMPLETE:"complete",ERROR:"error"},_excluded=["as","children","className","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"];function ownKeys(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 _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty2(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function _defineProperty2(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _objectWithoutProperties(e,r){if(null==e)return{};var t,n,o=_objectWithoutPropertiesLoose(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 _objectWithoutPropertiesLoose(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 CONTAIN=[null,"paint","layout","content","size","size paint","size layout","strict"],SIZE_CONTENT_STYLE={"position":"relative","width":"100%","height":"100%"};function ContainWrapperWithRef(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,s=e.contentClassName,l=e.contentProps,u=e.contentRef,f=e.contentStyle,p=e.layout,d=void 0!==p&&p,y=e.paint,b=void 0!==y&&y,_=e.size,m=void 0!==_&&_,h=e.style,g=e.wrapperClassName,v=e.wrapperStyle,O=(m?4:0)+(d?2:0)+(b?1:0);return createElement2(n,_objectSpread(_objectSpread({},_objectWithoutProperties(e,_excluded)),{},{ref:r,className:"".concat(a||""," ").concat(g||"").trim()||null,style:_objectSpread(_objectSpread(_objectSpread({},h),v),{},{contain:CONTAIN[O]})}),createElement2(c,_objectSpread(_objectSpread({},l),{},{ref:u,className:s,style:_objectSpread(_objectSpread({},m&&SIZE_CONTENT_STYLE),{},{"overflow":b?"hidden":"visible"},f)}),o))}var ContainWrapper=forwardRef2(ContainWrapperWithRef),_excluded2=["as","children","className","style","wrapperClassName","wrapperStyle"];function ownKeys2(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 _objectSpread2(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys2(Object(t),!0).forEach((function(r){_defineProperty3(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys2(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function _defineProperty3(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _objectWithoutProperties2(e,r){if(null==e)return{};var t,n,o=_objectWithoutPropertiesLoose2(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 _objectWithoutPropertiesLoose2(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 WrapperWithRef(e,r){var t=e.as,n=void 0===t?"div":t,o=e.children,a=e.className,i=e.style,c=e.wrapperClassName,s=e.wrapperStyle;return createElement2(n,_objectSpread2(_objectSpread2({},_objectWithoutProperties2(e,_excluded2)),{},{ref:r,className:"".concat(a||""," ").concat(c||"").trim()||null,style:_objectSpread2(_objectSpread2({},i),s)}),o)}var context,Wrapper=forwardRef2(WrapperWithRef);function useValueRef(e){var r=useRef2(null);return r.current=e,r}function getAmpContext(){return context||(context=createContext2({renderable:!0,playable:!0,loading:Loading.AUTO}))}function useAmpContext(){return useContext2(getAmpContext())}function useLoading(e){return reducer(e,useAmpContext().loading)}var _excluded3=["allow","allowFullScreen","allowTransparency","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"];function ownKeys3(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 _objectSpread3(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys3(Object(t),!0).forEach((function(r){_defineProperty4(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys3(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function _defineProperty4(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _objectWithoutProperties3(e,r){if(null==e)return{};var t,n,o=_objectWithoutPropertiesLoose3(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 _objectWithoutPropertiesLoose3(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 DEFAULT_MATCHES_MESSAGING_ORIGIN=function(){return!1},ABOUT_BLANK="about:blank",canResetSrc=function(e){return e&&e!=ABOUT_BLANK&&!e.includes("#")};function IframeEmbedWithRef(e,r){var t=e.allow,n=e.allowFullScreen,o=e.allowTransparency,a=e.iframeStyle,i=e.name,c=e.title,s=e.matchesMessagingOrigin,l=void 0===s?DEFAULT_MATCHES_MESSAGING_ORIGIN:s,u=e.messageHandler,f=e.ready,p=void 0===f||f,d=e.loading,y=e.onReadyState,b=e.sandbox,_=e.src,m=_objectWithoutProperties3(e,_excluded3),h=useAmpContext().playable,g=useLoading(d),v=g!==Loading.UNLOAD,O=useRef2(!1),P=useValueRef(y),A=useCallback2((function(e){if(e!==O.current){O.current=e;var r=P.current;null==r||r(e?ReadyState.COMPLETE:ReadyState.LOADING)}}),[P]),j=useRef2(null);return useImperativeHandle2(r,(function(){return{get readyState(){return O.current?ReadyState.COMPLETE:ReadyState.LOADING},get node(){return j.current}}}),[]),useLayoutEffect2((function(){v||A(!1)}),[v,A]),useEffect2((function(){var e=j.current;if(!h&&e){var r=e.src;canResetSrc(r)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling)}}),[h]),useLayoutEffect2((function(){var e=j.current;if(e&&v){var r=function(e){var r=j.current;r&&e.source==r.contentWindow&&l(e.origin)&&u(e)},t=e.ownerDocument.defaultView;return t.addEventListener("message",r),function(){return t.removeEventListener("message",r)}}}),[l,u,v,p]),createElement2(ContainWrapper,_objectSpread3(_objectSpread3({},m),{},{layout:!0,size:!0,paint:!0}),v&&p&&createElement2("iframe",{allow:t,allowFullScreen:n,allowTransparency:o,frameborder:"0",loading:g,name:i,onLoad:function(){return A(!0)},part:"iframe",ref:j,sandbox:b,scrolling:"no",src:_,style:_objectSpread3(_objectSpread3({},a),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:c}))}var IframeEmbed=forwardRef2(IframeEmbedWithRef);function isProd(){return!0}function isTest(e){var r;if(isProd())return!1;var t=e||self;return!!(null!==(r=t.AMP_CONFIG)&&void 0!==r&&r.test||t.__AMP_TEST||t.__karma__)}function isMinified(){return!0}function version(){return"2108170213000"}IframeEmbed.displayName="IframeEmbed";var isArray=Array.isArray;function remove(e,r){for(var t=[],n=0,o=0;o<e.length;o++){var a=e[o];r(a,o,e)?t.push(a):(n<o&&(e[n]=a),n++)}return n<e.length&&(e.length=n),t}function isElement(e){return 1==(null==e?void 0:e.nodeType)}function elementStringOrPassThru(e){return isElement(e)?(e=e).tagName.toLowerCase()+(e.id?"#".concat(e.id):""):e}function assert(e,r){var t,n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Assertion failed";if(r)return r;e&&-1==o.indexOf(e)&&(o+=e);for(var a=3,i=o.split("%s"),c=i.shift(),s=[c];i.length;){var l=arguments[a++],u=i.shift();c+=elementStringOrPassThru(l)+u,s.push(l,u.trim())}var f=new Error(c);throw f.messageArray=remove(s,(function(e){return""!==e})),null===(t=(n=self).__AMP_REPORT_ERROR)||void 0===t||t.call(n,f),f}function assertType_(e,r,t,n,o){return isArray(o)?e(t,o.concat([r])):e(t,"".concat(o||n,": %s"),r),r}function assertString(e,r,t){return assertType_(e,r,isString(r),"String expected",t)}function devAssertDceCheck(){self.__AMP_ASSERTION_CHECK&&console.log("__devAssert_sentinel__")}function devAssert(e,r,t,n,o,a,i,c,s,l,u){return isMinified()?e:(devAssertDceCheck(),assert("",e,r,t,n,o,a,i,c,s,l,u))}function devAssertString(e,r){return isMinified()?e:(devAssertDceCheck(),assertString(devAssert,e,r))}function parseJson(e){return JSON.parse(e)}function tryParseJson(e,r){try{return parseJson(e)}catch(e){return null==r||r(e),null}}var env=self.AMP_CONFIG||{},thirdPartyFrameRegex=("string"==typeof env.thirdPartyFrameRegex?new RegExp(env.thirdPartyFrameRegex):env.thirdPartyFrameRegex)||/^d-\d+\.ampproject\.net$/,cdnProxyRegex=("string"==typeof env.cdnProxyRegex?new RegExp(env.cdnProxyRegex):env.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;function getMetaUrl(e){if(!self.document||!self.document.head)return null;if(self.location&&cdnProxyRegex.test(self.location.origin))return null;var r=self.document.head.querySelector('meta[name="'.concat(e,'"]'));return r&&r.getAttribute("content")||null}var urls={thirdParty:env.thirdPartyUrl||"https://3p.ampproject.net",thirdPartyFrameHost:env.thirdPartyFrameHost||"ampproject.net",thirdPartyFrameRegex:thirdPartyFrameRegex,cdn:env.cdnUrl||getMetaUrl("runtime-host")||"https://cdn.ampproject.org",cdnProxyRegex:cdnProxyRegex,localhostRegex:/^https?:\/\/localhost(:\d+)?$/,errorReporting:env.errorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r",betaErrorReporting:env.betaErrorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",localDev:env.localDev||!1,trustedViewerHosts:[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/,/(^|\.)gmail\.(com|dev)$/],geoApi:env.geoApiUrl||getMetaUrl("amp-geo-api")};function _createForOfIteratorHelper(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=_unsupportedIterableToArray(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{i||null==t.return||t.return()}finally{if(c)throw a}}}}function _unsupportedIterableToArray(e,r){if(e){if("string"==typeof e)return _arrayLikeToArray(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(e,r):void 0}}function _arrayLikeToArray(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 duplicateErrorIfNecessary(e){var r=Object.getOwnPropertyDescriptor(e,"message");if(null!=r&&r.writable)return e;var t=e.message,n=e.stack,o=new Error(t);for(var a in e)o[a]=e[a];return o.stack=n,o}function createError(e){var r,t=null,n="",o=_createForOfIteratorHelper(arguments);try{for(o.s();!(r=o.n()).done;){var a=r.value;a instanceof Error&&!t?t=duplicateErrorIfNecessary(a):(n&&(n+=" "),n+=a)}}catch(e){o.e(e)}finally{o.f()}return t?n&&(t.message=n+": "+t.message):t=new Error(n),t}function maybeReportError(e){var r,t;null===(r=(t=self).__AMP_REPORT_ERROR)||void 0===r||r.call(t,e)}function rethrowAsync(e){var r=createError.apply(null,arguments);setTimeout((function(){throw maybeReportError(r),r}))}self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var logs=self.__AMP_LOG;function _classCallCheck(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(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 _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),e}var cachedAnchorEl,urlCache,overrideBootstrapBaseUrl,LruCache=function(){function e(r){_classCallCheck(this,e),this.capacity_=r,this.size_=0,this.access_=0,this.cache_=map()}return _createClass(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}(),SERVING_TYPE_PREFIX=new Set(["c","v","a","ad"]);function parseUrlDeprecated(e,r){return cachedAnchorEl||(cachedAnchorEl=self.document.createElement("a"),urlCache=self.__AMP_URL_CACHE||(self.__AMP_URL_CACHE=new LruCache(100))),parseUrlWithA(cachedAnchorEl,e,r?null:urlCache)}function parseUrlWithA(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=isTest()&&Object.freeze?Object.freeze(o):o;return t&&t.put(r,a),a}function getBootstrapUrl(e){return isProd()?"".concat(urls.thirdParty,"/").concat(version(),"/vendor/").concat(e).concat(".js"):(isMinified()?"./vendor/".concat(e):"./vendor/".concat(e,".max"))+".js"}function getDefaultBootstrapBaseUrl(e,r){var t=r||"frame";return isProd()?(e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||getSubDomain(e),"https://"+e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+".".concat(urls.thirdPartyFrameHost,"/").concat(version(),"/")+"".concat(t,".html")):getDevelopmentBootstrapBaseUrl(e,t)}function getDevelopmentBootstrapBaseUrl(e,r){return overrideBootstrapBaseUrl||getAdsLocalhost(e)+"/dist.3p/"+(isMinified()?"".concat(version(),"/").concat(r):"current/".concat(r,".max"))+".html"}function getAdsLocalhost(e){var r=urls.thirdParty;return"https://3p.ampproject.net"==r&&(r="http://ads.localhost"),r+":"+(e.location.port||e.parent.location.port)}function getSubDomain(e){return"d-"+getRandom(e)}function getRandom(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 generateSentinel(e){for(var r=0,t=e;t&&t!=t.parent;t=t.parent)r++;return String(r)+"-"+getRandom(e)}var _excluded4=["allow","bootstrap","contextOptions","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"];function ownKeys4(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 _objectSpread4(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys4(Object(t),!0).forEach((function(r){_defineProperty5(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys4(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function _defineProperty5(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _slicedToArray(e,r){return _arrayWithHoles(e)||_iterableToArrayLimit(e,r)||_unsupportedIterableToArray2(e,r)||_nonIterableRest()}function _nonIterableRest(){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 _unsupportedIterableToArray2(e,r){if(e){if("string"==typeof e)return _arrayLikeToArray2(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray2(e,r):void 0}}function _arrayLikeToArray2(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 _iterableToArrayLimit(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 _arrayWithHoles(e){if(Array.isArray(e))return e}function _objectWithoutProperties4(e,r){if(null==e)return{};var t,n,o=_objectWithoutPropertiesLoose4(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 _objectWithoutPropertiesLoose4(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 countGenerators={},MessageType={EMBED_SIZE:"embed-size"},BLOCK_SYNC_XHR="sync-xhr 'none'",DEFAULT_SANDBOX=getRequiredSandboxFlags().join(" ")+" "+getOptionalSandboxFlags().join(" ");function ProxyIframeEmbedWithRef(e,r){var t=e.allow,n=void 0===t?BLOCK_SYNC_XHR:t,o=e.bootstrap,a=e.contextOptions,i=e.excludeSandbox,c=e.name,s=e.messageHandler,l=e.options,u=e.sandbox,f=void 0===u?DEFAULT_SANDBOX:u,p=e.src,d=e.type,y=e.title,b=void 0===y?d:y,_=_objectWithoutProperties4(e,_excluded4);if(!includes(n,BLOCK_SYNC_XHR))throw new Error("'allow' prop must contain \"".concat(BLOCK_SYNC_XHR,'". Found "').concat(n,'".'));var m=useRef2(null),h=useRef2(null),g=useMemo2((function(){return countGenerators[d]||(countGenerators[d]=sequentialIdGenerator()),countGenerators[d]()}),[d]),v=_slicedToArray(useState2({name:c,src:p}),2),O=v[0],P=v[1],A=O.name,j=O.src;return useLayoutEffect2((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?getDefaultBootstrapBaseUrl(t):"about:blank";if(c)P({name:c,src:n});else if(t){var i=Object.assign(dict({"location":{"href":t.location.href},"sentinel":generateSentinel(t)}),a),s=Object.assign(dict({"title":b,"type":d,"_context":i}),l);P({name:JSON.stringify(dict({"host":parseUrlDeprecated(n).hostname,"bootstrap":null!=o?o:getBootstrapUrl(d),"type":d,"count":g,"attributes":s})),src:n})}}),[o,a,g,c,l,p,b,d]),useEffect2((function(){var e,r=null===(e=h.current)||void 0===e?void 0:e.node;r&&r.parentNode.insertBefore(r,r.nextSibling)}),[A]),useImperativeHandle2(r,(function(){return{get readyState(){var e;return null===(e=h.current)||void 0===e?void 0:e.readyState},get node(){var e;return null===(e=h.current)||void 0===e?void 0:e.node}}}),[]),createElement2(IframeEmbed,_objectSpread4({allow:n,contentRef:m,messageHandler:s,name:A,ref:h,ready:!!A,sandbox:i?void 0:f,src:j,title:b},_))}var ProxyIframeEmbed=forwardRef2(ProxyIframeEmbedWithRef);ProxyIframeEmbed.displayName="ProxyIframeEmbed";var AMP_MESSAGE_PREFIX="amp-";function deserializeMessage(e){if(!isAmpMessage(e))return null;var r=devAssertString(e).indexOf("{");return devAssert(-1!=r),tryParseJson(devAssertString(e).substr(r),(function(r){rethrowAsync(new Error("MESSAGING: Failed to parse message: ".concat(e,"\n").concat(r.message)))}))}function isAmpMessage(e){return"string"==typeof e&&e.startsWith(AMP_MESSAGE_PREFIX)&&-1!=e.indexOf("{")}var _excluded5=["action","colorscheme","embedAs","hideCover","hideCta","href","includeCommentParent","kdSite","layout","locale","numPosts","onReady","orderBy","refLabel","requestResize","share","showFacepile","showText","size","smallHeader","style","tabs","title"];function ownKeys5(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 _objectSpread5(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys5(Object(t),!0).forEach((function(r){_defineProperty6(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys5(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function _defineProperty6(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _slicedToArray2(e,r){return _arrayWithHoles2(e)||_iterableToArrayLimit2(e,r)||_unsupportedIterableToArray3(e,r)||_nonIterableRest2()}function _nonIterableRest2(){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 _unsupportedIterableToArray3(e,r){if(e){if("string"==typeof e)return _arrayLikeToArray3(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray3(e,r):void 0}}function _arrayLikeToArray3(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 _iterableToArrayLimit2(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 _arrayWithHoles2(e){if(Array.isArray(e))return e}function _objectWithoutProperties5(e,r){if(null==e)return{};var t,n,o=_objectWithoutPropertiesLoose5(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 _objectWithoutPropertiesLoose5(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 TYPE="facebook",FULL_HEIGHT="100%",MATCHES_MESSAGING_ORIGIN=function(){return!0},DEFAULT_TITLE="Facebook comments";function FacebookWithRef(e,r){var t=e.action,n=e.colorscheme,o=e.embedAs,a=e.hideCover,i=e.hideCta,c=e.href,s=e.includeCommentParent,l=e.kdSite,u=e.layout,f=e.locale,p=e.numPosts,d=e.onReady,y=e.orderBy,b=e.refLabel,_=e.requestResize,m=e.share,h=e.showFacepile,g=e.showText,v=e.size,O=e.smallHeader,P=e.style,A=e.tabs,j=e.title,S=void 0===j?DEFAULT_TITLE:j,w=_objectWithoutProperties5(e,_excluded5),E=_slicedToArray2(useState2(null),2),R=E[0],x=E[1],T=useCallback2((function(e){var r,t=null!==(r=tryParseJson(e.data))&&void 0!==r?r:deserializeMessage(e.data);if("ready"==t.action&&(null==d||d()),t.type==MessageType.EMBED_SIZE){var n=t.height;_?(_(n),x(FULL_HEIGHT)):x(n)}}),[_,d]),L=_slicedToArray2(useState2(f),2),I=L[0],M=L[1];return useLayoutEffect2((function(){var e,t;if(f)M(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&&M(dashToUnderline(n.navigator.language))}}),[f,r]),createElement2(ProxyIframeEmbed,_objectSpread5(_objectSpread5({options:{action:t,colorscheme:n,embedAs:o,hideCover:a,hideCta:i,href:c,includeCommentParent:s,"kd_site":l,layout:u,locale:I,numPosts:p,orderBy:y,ref:b,share:m,showFacepile:h,showText:g,size:v,smallHeader:O,tabs:A},ref:r,title:S},w),{},{excludeSandbox:!0,matchesMessagingOrigin:MATCHES_MESSAGING_ORIGIN,messageHandler:T,type:TYPE,style:R?_objectSpread5(_objectSpread5({},P),{},{height:R}):P}))}var Facebook=forwardRef2(FacebookWithRef);Facebook.displayName="Facebook";
bent;var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__markAsModule=function(e){return __defProp(e,"__esModule",{value:!0})},__export=function(e,r){for(var t in __markAsModule(e),r)__defProp(e,t,{get:r[t],enumerable:!0})},__reExport=function(e,r,t){if(r&&"object"==typeof r||"function"==typeof r)for(var n,o=__getOwnPropNames(r),a=0,i=o.length;a<i;a++)n=o[a],__hasOwnProp.call(e,n)||"default"===n||__defProp(e,n,{get:function(e){return r[e]}.bind(null,n),enumerable:!(t=__getOwnPropDesc(r,n))||t.enumerable});return e},__toModule=function(e){return __reExport(__markAsModule(__defProp(null!=e?__create(__getProtoOf(e)):{},"default",e&&e.__esModule&&"default"in e?{get:function(){return e.default},enumerable:!0}:{value:e,enumerable:!0})),e)};__export(exports,{Facebook:function(){return Facebook}});var preact=__toModule(require("preact")),preactDOM=__toModule(require("preact")),hooks=__toModule(require("preact/hooks"));function createElement2(e,r,t){return preact.createElement.apply(void 0,arguments)}function createContext2(e){return preact.createContext(e,void 0)}function useState2(e){return hooks.useState(e)}function useRef2(e){return hooks.useRef(e)}function useEffect2(e,r){hooks.useEffect(e,r)}function useLayoutEffect2(e,r){hooks.useLayoutEffect(e,r)}function useContext2(e){return hooks.useContext(e)}function useMemo2(e,r){return hooks.useMemo(e,r)}function useCallback2(e,r){return hooks.useCallback(e,r)}function useImperativeHandle2(e,r,t){return hooks.useImperativeHandle(e,r,t)}var getRequiredSandboxFlags=function(){return["allow-top-navigation-by-user-activation","allow-popups-to-escape-sandbox"]},getOptionalSandboxFlags=function(){return["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts"]};function sequentialIdGenerator(){var e=0;return function(){return String(++e)}}var _Object$prototype=Object.prototype,hasOwn_=_Object$prototype.hasOwnProperty,toString_=_Object$prototype.toString;function map(e){var r=Object.create(null);return e&&Object.assign(r,e),r}function dict(e){return e||{}}function dashToUnderline(e){return e.replace("-","_")}function includes(e,r,t){return"number"!=typeof t&&(t=0),!(t+r.length>e.length)&&-1!==e.indexOf(r,t)}function isString(e){return"string"==typeof e}var _MAP,compat=__toModule(require("preact/compat"));function forwardRef2(e){return compat.forwardRef(e)}function _defineProperty(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var Loading={AUTO:"auto",LAZY:"lazy",EAGER:"eager",UNLOAD:"unload"},ORDER=[Loading.AUTO,Loading.LAZY,Loading.EAGER,Loading.UNLOAD],MAP=(_defineProperty(_MAP={},Loading.AUTO,0),_defineProperty(_MAP,Loading.LAZY,1),_defineProperty(_MAP,Loading.EAGER,2),_defineProperty(_MAP,Loading.UNLOAD,3),_MAP);function reducer(e,r){var t=MAP[e]||0,n=MAP[r]||0,o=Math.max(t,n);return ORDER[o]}var ReadyState={UPGRADING:"upgrading",BUILDING:"building",MOUNTING:"mounting",LOADING:"loading",COMPLETE:"complete",ERROR:"error"},_excluded=["as","children","className","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"];function ownKeys(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 _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty2(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function _defineProperty2(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _objectWithoutProperties(e,r){if(null==e)return{};var t,n,o=_objectWithoutPropertiesLoose(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 _objectWithoutPropertiesLoose(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 CONTAIN=[null,"paint","layout","content","size","size paint","size layout","strict"],SIZE_CONTENT_STYLE={"position":"relative","width":"100%","height":"100%"};function ContainWrapperWithRef(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,s=e.contentClassName,l=e.contentProps,u=e.contentRef,f=e.contentStyle,p=e.layout,d=void 0!==p&&p,y=e.paint,b=void 0!==y&&y,_=e.size,m=void 0!==_&&_,h=e.style,g=e.wrapperClassName,v=e.wrapperStyle,O=(m?4:0)+(d?2:0)+(b?1:0);return createElement2(n,_objectSpread(_objectSpread({},_objectWithoutProperties(e,_excluded)),{},{ref:r,className:"".concat(a||""," ").concat(g||"").trim()||null,style:_objectSpread(_objectSpread(_objectSpread({},h),v),{},{contain:CONTAIN[O]})}),createElement2(c,_objectSpread(_objectSpread({},l),{},{ref:u,className:s,style:_objectSpread(_objectSpread({},m&&SIZE_CONTENT_STYLE),{},{"overflow":b?"hidden":"visible"},f)}),o))}var ContainWrapper=forwardRef2(ContainWrapperWithRef),_excluded2=["as","children","className","style","wrapperClassName","wrapperStyle"];function ownKeys2(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 _objectSpread2(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys2(Object(t),!0).forEach((function(r){_defineProperty3(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys2(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function _defineProperty3(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _objectWithoutProperties2(e,r){if(null==e)return{};var t,n,o=_objectWithoutPropertiesLoose2(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 _objectWithoutPropertiesLoose2(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 WrapperWithRef(e,r){var t=e.as,n=void 0===t?"div":t,o=e.children,a=e.className,i=e.style,c=e.wrapperClassName,s=e.wrapperStyle;return createElement2(n,_objectSpread2(_objectSpread2({},_objectWithoutProperties2(e,_excluded2)),{},{ref:r,className:"".concat(a||""," ").concat(c||"").trim()||null,style:_objectSpread2(_objectSpread2({},i),s)}),o)}var context,Wrapper=forwardRef2(WrapperWithRef);function useValueRef(e){var r=useRef2(null);return r.current=e,r}function getAmpContext(){return context||(context=createContext2({renderable:!0,playable:!0,loading:Loading.AUTO}))}function useAmpContext(){return useContext2(getAmpContext())}function useLoading(e){return reducer(e,useAmpContext().loading)}var _excluded3=["allow","allowFullScreen","allowTransparency","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"];function ownKeys3(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 _objectSpread3(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys3(Object(t),!0).forEach((function(r){_defineProperty4(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys3(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function _defineProperty4(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _objectWithoutProperties3(e,r){if(null==e)return{};var t,n,o=_objectWithoutPropertiesLoose3(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 _objectWithoutPropertiesLoose3(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 DEFAULT_MATCHES_MESSAGING_ORIGIN=function(){return!1},ABOUT_BLANK="about:blank",canResetSrc=function(e){return e&&e!=ABOUT_BLANK&&!e.includes("#")};function IframeEmbedWithRef(e,r){var t=e.allow,n=e.allowFullScreen,o=e.allowTransparency,a=e.iframeStyle,i=e.name,c=e.title,s=e.matchesMessagingOrigin,l=void 0===s?DEFAULT_MATCHES_MESSAGING_ORIGIN:s,u=e.messageHandler,f=e.ready,p=void 0===f||f,d=e.loading,y=e.onReadyState,b=e.sandbox,_=e.src,m=_objectWithoutProperties3(e,_excluded3),h=useAmpContext().playable,g=useLoading(d),v=g!==Loading.UNLOAD,O=useRef2(!1),P=useValueRef(y),A=useCallback2((function(e){if(e!==O.current){O.current=e;var r=P.current;null==r||r(e?ReadyState.COMPLETE:ReadyState.LOADING)}}),[P]),j=useRef2(null);return useImperativeHandle2(r,(function(){return{get readyState(){return O.current?ReadyState.COMPLETE:ReadyState.LOADING},get node(){return j.current}}}),[]),useLayoutEffect2((function(){v||A(!1)}),[v,A]),useEffect2((function(){var e=j.current;if(!h&&e){var r=e.src;canResetSrc(r)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling)}}),[h]),useLayoutEffect2((function(){var e=j.current;if(e&&v){var r=function(e){var r=j.current;r&&e.source==r.contentWindow&&l(e.origin)&&u(e)},t=e.ownerDocument.defaultView;return t.addEventListener("message",r),function(){return t.removeEventListener("message",r)}}}),[l,u,v,p]),createElement2(ContainWrapper,_objectSpread3(_objectSpread3({},m),{},{layout:!0,size:!0,paint:!0}),v&&p&&createElement2("iframe",{allow:t,allowFullScreen:n,allowTransparency:o,frameborder:"0",loading:g,name:i,onLoad:function(){return A(!0)},part:"iframe",ref:j,sandbox:b,scrolling:"no",src:_,style:_objectSpread3(_objectSpread3({},a),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:c}))}var IframeEmbed=forwardRef2(IframeEmbedWithRef);function isProd(){return!0}function isTest(e){var r;if(isProd())return!1;var t=e||self;return!!(null!==(r=t.AMP_CONFIG)&&void 0!==r&&r.test||t.__AMP_TEST||t.__karma__)}function isMinified(){return!0}function version(){return"2108190446000"}function isEsm(){var e,r,t;return!isProd()&&null!==(e=null===(r=self)||void 0===r||null===(t=r.__AMP_MODE)||void 0===t?void 0:t.esm)&&void 0!==e&&e}IframeEmbed.displayName="IframeEmbed";var isArray=Array.isArray;function remove(e,r){for(var t=[],n=0,o=0;o<e.length;o++){var a=e[o];r(a,o,e)?t.push(a):(n<o&&(e[n]=a),n++)}return n<e.length&&(e.length=n),t}function isElement(e){return 1==(null==e?void 0:e.nodeType)}function elementStringOrPassThru(e){return isElement(e)?(e=e).tagName.toLowerCase()+(e.id?"#".concat(e.id):""):e}function assert(e,r){var t,n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Assertion failed";if(r)return r;e&&-1==o.indexOf(e)&&(o+=e);for(var a=3,i=o.split("%s"),c=i.shift(),s=[c];i.length;){var l=arguments[a++],u=i.shift();c+=elementStringOrPassThru(l)+u,s.push(l,u.trim())}var f=new Error(c);throw f.messageArray=remove(s,(function(e){return""!==e})),null===(t=(n=self).__AMP_REPORT_ERROR)||void 0===t||t.call(n,f),f}function assertType_(e,r,t,n,o){return isArray(o)?e(t,o.concat([r])):e(t,"".concat(o||n,": %s"),r),r}function assertString(e,r,t){return assertType_(e,r,isString(r),"String expected",t)}function devAssertDceCheck(){self.__AMP_ASSERTION_CHECK&&console.log("__devAssert_sentinel__")}function devAssert(e,r,t,n,o,a,i,c,s,l,u){return isMinified()?e:(devAssertDceCheck(),assert("",e,r,t,n,o,a,i,c,s,l,u))}function devAssertString(e,r){return isMinified()?e:(devAssertDceCheck(),assertString(devAssert,e,r))}function _createForOfIteratorHelper(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=_unsupportedIterableToArray(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{i||null==t.return||t.return()}finally{if(c)throw a}}}}function _unsupportedIterableToArray(e,r){if(e){if("string"==typeof e)return _arrayLikeToArray(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(e,r):void 0}}function _arrayLikeToArray(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 duplicateErrorIfNecessary(e){var r=Object.getOwnPropertyDescriptor(e,"message");if(null!=r&&r.writable)return e;var t=e.message,n=e.stack,o=new Error(t);for(var a in e)o[a]=e[a];return o.stack=n,o}function createError(e){var r,t=null,n="",o=_createForOfIteratorHelper(arguments);try{for(o.s();!(r=o.n()).done;){var a=r.value;a instanceof Error&&!t?t=duplicateErrorIfNecessary(a):(n&&(n+=" "),n+=a)}}catch(e){o.e(e)}finally{o.f()}return t?n&&(t.message=n+": "+t.message):t=new Error(n),t}function maybeReportError(e){var r,t;null===(r=(t=self).__AMP_REPORT_ERROR)||void 0===r||r.call(t,e)}function rethrowAsync(e){var r=createError.apply(null,arguments);setTimeout((function(){throw maybeReportError(r),r}))}function parseJson(e){return JSON.parse(e)}function tryParseJson(e,r){try{return parseJson(e)}catch(e){return null==r||r(e),null}}var env=self.AMP_CONFIG||{},thirdPartyFrameRegex=("string"==typeof env.thirdPartyFrameRegex?new RegExp(env.thirdPartyFrameRegex):env.thirdPartyFrameRegex)||/^d-\d+\.ampproject\.net$/,cdnProxyRegex=("string"==typeof env.cdnProxyRegex?new RegExp(env.cdnProxyRegex):env.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;function getMetaUrl(e){if(!self.document||!self.document.head)return null;if(self.location&&cdnProxyRegex.test(self.location.origin))return null;var r=self.document.head.querySelector('meta[name="'.concat(e,'"]'));return r&&r.getAttribute("content")||null}var urls={thirdParty:env.thirdPartyUrl||"https://3p.ampproject.net",thirdPartyFrameHost:env.thirdPartyFrameHost||"ampproject.net",thirdPartyFrameRegex:thirdPartyFrameRegex,cdn:env.cdnUrl||getMetaUrl("runtime-host")||"https://cdn.ampproject.org",cdnProxyRegex:cdnProxyRegex,localhostRegex:/^https?:\/\/localhost(:\d+)?$/,errorReporting:env.errorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r",betaErrorReporting:env.betaErrorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",localDev:env.localDev||!1,trustedViewerHosts:[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/,/(^|\.)gmail\.(com|dev)$/],geoApi:env.geoApiUrl||getMetaUrl("amp-geo-api")};self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var logs=self.__AMP_LOG;function _classCallCheck(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(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 _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),e}var cachedAnchorEl,urlCache,overrideBootstrapBaseUrl,LruCache=function(){function e(r){_classCallCheck(this,e),this.capacity_=r,this.size_=0,this.access_=0,this.cache_=map()}return _createClass(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}(),SERVING_TYPE_PREFIX=new Set(["c","v","a","ad"]);function parseUrlDeprecated(e,r){return cachedAnchorEl||(cachedAnchorEl=self.document.createElement("a"),urlCache=isEsm()?null:self.__AMP_URL_CACHE||(self.__AMP_URL_CACHE=new LruCache(100))),parseUrlWithA(cachedAnchorEl,e,isEsm()||r?null:urlCache)}function parseUrlWithA(e,r,t){if(isEsm())return e.href="",new URL(r,e.href);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=isTest()&&Object.freeze?Object.freeze(o):o;return t&&t.put(r,a),a}function getBootstrapUrl(e){var r=isEsm()?".mjs":".js";return isProd()?"".concat(urls.thirdParty,"/").concat(version(),"/vendor/").concat(e).concat(r):(isMinified()?"./vendor/".concat(e):"./vendor/".concat(e,".max"))+r}function getDefaultBootstrapBaseUrl(e,r){var t=r||"frame";return isProd()?(e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||getSubDomain(e),"https://"+e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+".".concat(urls.thirdPartyFrameHost,"/").concat(version(),"/")+"".concat(t,".html")):getDevelopmentBootstrapBaseUrl(e,t)}function getDevelopmentBootstrapBaseUrl(e,r){return overrideBootstrapBaseUrl||getAdsLocalhost(e)+"/dist.3p/"+(isMinified()?"".concat(version(),"/").concat(r):"current/".concat(r,".max"))+".html"}function getAdsLocalhost(e){var r=urls.thirdParty;return"https://3p.ampproject.net"==r&&(r="http://ads.localhost"),r+":"+(e.location.port||e.parent.location.port)}function getSubDomain(e){return"d-"+getRandom(e)}function getRandom(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 generateSentinel(e){for(var r=0,t=e;t&&t!=t.parent;t=t.parent)r++;return String(r)+"-"+getRandom(e)}var _excluded4=["allow","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"];function ownKeys4(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 _objectSpread4(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys4(Object(t),!0).forEach((function(r){_defineProperty5(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys4(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function _defineProperty5(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _slicedToArray(e,r){return _arrayWithHoles(e)||_iterableToArrayLimit(e,r)||_unsupportedIterableToArray2(e,r)||_nonIterableRest()}function _nonIterableRest(){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 _unsupportedIterableToArray2(e,r){if(e){if("string"==typeof e)return _arrayLikeToArray2(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray2(e,r):void 0}}function _arrayLikeToArray2(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 _iterableToArrayLimit(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 _arrayWithHoles(e){if(Array.isArray(e))return e}function _objectWithoutProperties4(e,r){if(null==e)return{};var t,n,o=_objectWithoutPropertiesLoose4(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 _objectWithoutPropertiesLoose4(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 countGenerators={},MessageType={EMBED_SIZE:"embed-size"},BLOCK_SYNC_XHR="sync-xhr 'none'",DEFAULT_SANDBOX=getRequiredSandboxFlags().join(" ")+" "+getOptionalSandboxFlags().join(" ");function ProxyIframeEmbedWithRef(e,r){var t=e.allow,n=void 0===t?BLOCK_SYNC_XHR:t,o=e.excludeSandbox,a=e.name,i=e.messageHandler,c=e.options,s=e.sandbox,l=void 0===s?DEFAULT_SANDBOX:s,u=e.src,f=e.type,p=e.title,d=void 0===p?f:p,y=_objectWithoutProperties4(e,_excluded4);if(!includes(n,BLOCK_SYNC_XHR))throw new Error("'allow' prop must contain \"".concat(BLOCK_SYNC_XHR,'". Found "').concat(n,'".'));var b=useRef2(null),_=useRef2(null),m=useMemo2((function(){return countGenerators[f]||(countGenerators[f]=sequentialIdGenerator()),countGenerators[f]()}),[f]),h=_slicedToArray(useState2({name:a,src:u}),2),g=h[0],v=h[1],O=g.name,P=g.src,A=useRef2(null);return useLayoutEffect2((function(){var e,r,t=null===(e=b.current)||void 0===e||null===(r=e.ownerDocument)||void 0===r?void 0:r.defaultView,n=null!=u?u:t?getDefaultBootstrapBaseUrl(t):"about:blank";if(a)v({name:a,src:n});else if(t){A.current||(A.current=generateSentinel(t));var o=Object.assign(dict({"location":{"href":t.location.href},"sentinel":A.current})),i=Object.assign(dict({"title":d,"type":f,"_context":o}),c);v({name:JSON.stringify(dict({"host":parseUrlDeprecated(n).hostname,"bootstrap":getBootstrapUrl(f),"type":f,"count":m,"attributes":i})),src:n})}}),[m,a,c,u,d,f]),useEffect2((function(){var e,r=null===(e=_.current)||void 0===e?void 0:e.node;r&&r.parentNode.insertBefore(r,r.nextSibling)}),[O]),useImperativeHandle2(r,(function(){return{get readyState(){var e;return null===(e=_.current)||void 0===e?void 0:e.readyState},get node(){var e;return null===(e=_.current)||void 0===e?void 0:e.node}}}),[]),createElement2(IframeEmbed,_objectSpread4({allow:n,contentRef:b,messageHandler:i,name:O,ref:_,ready:!!O,sandbox:o?void 0:l,src:P,title:d},y))}var ProxyIframeEmbed=forwardRef2(ProxyIframeEmbedWithRef);ProxyIframeEmbed.displayName="ProxyIframeEmbed";var AMP_MESSAGE_PREFIX="amp-";function deserializeMessage(e){if(!isAmpMessage(e))return null;var r=devAssertString(e).indexOf("{");return devAssert(-1!=r),tryParseJson(devAssertString(e).substr(r),(function(r){rethrowAsync(new Error("MESSAGING: Failed to parse message: ".concat(e,"\n").concat(r.message)))}))}function isAmpMessage(e){return"string"==typeof e&&e.startsWith(AMP_MESSAGE_PREFIX)&&-1!=e.indexOf("{")}var _excluded5=["action","colorscheme","embedAs","hideCover","hideCta","href","includeCommentParent","kdSite","layout","locale","numPosts","onReady","orderBy","refLabel","requestResize","share","showFacepile","showText","size","smallHeader","style","tabs","title"];function ownKeys5(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 _objectSpread5(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys5(Object(t),!0).forEach((function(r){_defineProperty6(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys5(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function _defineProperty6(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _slicedToArray2(e,r){return _arrayWithHoles2(e)||_iterableToArrayLimit2(e,r)||_unsupportedIterableToArray3(e,r)||_nonIterableRest2()}function _nonIterableRest2(){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 _unsupportedIterableToArray3(e,r){if(e){if("string"==typeof e)return _arrayLikeToArray3(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray3(e,r):void 0}}function _arrayLikeToArray3(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 _iterableToArrayLimit2(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 _arrayWithHoles2(e){if(Array.isArray(e))return e}function _objectWithoutProperties5(e,r){if(null==e)return{};var t,n,o=_objectWithoutPropertiesLoose5(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 _objectWithoutPropertiesLoose5(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 TYPE="facebook",FULL_HEIGHT="100%",MATCHES_MESSAGING_ORIGIN=function(){return!0},DEFAULT_TITLE="Facebook comments";function FacebookWithRef(e,r){var t=e.action,n=e.colorscheme,o=e.embedAs,a=e.hideCover,i=e.hideCta,c=e.href,s=e.includeCommentParent,l=e.kdSite,u=e.layout,f=e.locale,p=e.numPosts,d=e.onReady,y=e.orderBy,b=e.refLabel,_=e.requestResize,m=e.share,h=e.showFacepile,g=e.showText,v=e.size,O=e.smallHeader,P=e.style,A=e.tabs,j=e.title,S=void 0===j?DEFAULT_TITLE:j,w=_objectWithoutProperties5(e,_excluded5),E=_slicedToArray2(useState2(null),2),R=E[0],x=E[1],T=useCallback2((function(e){var r,t=null!==(r=tryParseJson(e.data))&&void 0!==r?r:deserializeMessage(e.data);if("ready"==t.action&&(null==d||d()),t.type==MessageType.EMBED_SIZE){var n=t.height;_?(_(n),x(FULL_HEIGHT)):x(n)}}),[_,d]),L=_slicedToArray2(useState2(f),2),I=L[0],M=L[1];useLayoutEffect2((function(){var e,t;if(f)M(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&&M(dashToUnderline(n.navigator.language))}}),[f,r]);var C=useMemo2((function(){return{action:t,colorscheme:n,embedAs:o,hideCover:a,hideCta:i,href:c,includeCommentParent:s,"kd_site":l,layout:u,locale:I,numPosts:p,orderBy:y,ref:b,share:m,showFacepile:h,showText:g,size:v,smallHeader:O,tabs:A}}),[t,n,o,a,i,c,s,l,u,I,p,y,b,m,h,g,v,O,A]);return createElement2(ProxyIframeEmbed,_objectSpread5(_objectSpread5({options:C,ref:r,title:S},w),{},{excludeSandbox:!0,matchesMessagingOrigin:MATCHES_MESSAGING_ORIGIN,messageHandler:T,type:TYPE,style:R?_objectSpread5(_objectSpread5({},P),{},{height:R}):P}))}var Facebook=forwardRef2(FacebookWithRef);Facebook.displayName="Facebook";
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */

@@ -444,5 +444,14 @@ bent

function version() {
return "2108170213000";
return "2108190446000";
}
// src/core/mode/esm.js
function isEsm() {
var _self$__AMP_MODE$esm, _self, _self$__AMP_MODE;
if (isProd()) {
return false;
}
return (_self$__AMP_MODE$esm = (_self = self) == null ? void 0 : (_self$__AMP_MODE = _self.__AMP_MODE) == null ? void 0 : _self$__AMP_MODE.esm) != null ? _self$__AMP_MODE$esm : false;
}
// src/core/types/array.js

@@ -545,43 +554,2 @@ var isArray = Array.isArray;

// src/core/types/object/json.js
function parseJson(json) {
return JSON.parse(json);
}
function tryParseJson(json, opt_onFailed) {
try {
return parseJson(json);
} catch (e) {
opt_onFailed == null ? void 0 : opt_onFailed(e);
return null;
}
}
// src/config.js
var env = self.AMP_CONFIG || {};
var thirdPartyFrameRegex = (typeof env["thirdPartyFrameRegex"] == "string" ? new RegExp(env["thirdPartyFrameRegex"]) : env["thirdPartyFrameRegex"]) || /^d-\d+\.ampproject\.net$/;
var cdnProxyRegex = (typeof env["cdnProxyRegex"] == "string" ? new RegExp(env["cdnProxyRegex"]) : env["cdnProxyRegex"]) || /^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;
function getMetaUrl(name) {
if (!self.document || !self.document.head) {
return null;
}
if (self.location && cdnProxyRegex.test(self.location.origin)) {
return null;
}
var metaEl = self.document.head.querySelector('meta[name="' + name + '"]');
return metaEl && metaEl.getAttribute("content") || null;
}
var urls = {
thirdParty: env["thirdPartyUrl"] || "https://3p.ampproject.net",
thirdPartyFrameHost: env["thirdPartyFrameHost"] || "ampproject.net",
thirdPartyFrameRegex: thirdPartyFrameRegex,
cdn: env["cdnUrl"] || getMetaUrl("runtime-host") || "https://cdn.ampproject.org",
cdnProxyRegex: cdnProxyRegex,
localhostRegex: /^https?:\/\/localhost(:\d+)?$/,
errorReporting: env["errorReportingUrl"] || "https://us-central1-amp-error-reporting.cloudfunctions.net/r",
betaErrorReporting: env["betaErrorReportingUrl"] || "https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",
localDev: env["localDev"] || false,
trustedViewerHosts: [/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/, /(^|\.)gmail\.(com|dev)$/],
geoApi: env["geoApiUrl"] || getMetaUrl("amp-geo-api")
};
// src/core/error/index.js

@@ -670,2 +638,43 @@ function _createForOfIteratorHelperLoose(o, allowArrayLike) {

// src/core/types/object/json.js
function parseJson(json) {
return JSON.parse(json);
}
function tryParseJson(json, opt_onFailed) {
try {
return parseJson(json);
} catch (e) {
opt_onFailed == null ? void 0 : opt_onFailed(e);
return null;
}
}
// src/config.js
var env = self.AMP_CONFIG || {};
var thirdPartyFrameRegex = (typeof env["thirdPartyFrameRegex"] == "string" ? new RegExp(env["thirdPartyFrameRegex"]) : env["thirdPartyFrameRegex"]) || /^d-\d+\.ampproject\.net$/;
var cdnProxyRegex = (typeof env["cdnProxyRegex"] == "string" ? new RegExp(env["cdnProxyRegex"]) : env["cdnProxyRegex"]) || /^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;
function getMetaUrl(name) {
if (!self.document || !self.document.head) {
return null;
}
if (self.location && cdnProxyRegex.test(self.location.origin)) {
return null;
}
var metaEl = self.document.head.querySelector('meta[name="' + name + '"]');
return metaEl && metaEl.getAttribute("content") || null;
}
var urls = {
thirdParty: env["thirdPartyUrl"] || "https://3p.ampproject.net",
thirdPartyFrameHost: env["thirdPartyFrameHost"] || "ampproject.net",
thirdPartyFrameRegex: thirdPartyFrameRegex,
cdn: env["cdnUrl"] || getMetaUrl("runtime-host") || "https://cdn.ampproject.org",
cdnProxyRegex: cdnProxyRegex,
localhostRegex: /^https?:\/\/localhost(:\d+)?$/,
errorReporting: env["errorReportingUrl"] || "https://us-central1-amp-error-reporting.cloudfunctions.net/r",
betaErrorReporting: env["betaErrorReportingUrl"] || "https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",
localDev: env["localDev"] || false,
trustedViewerHosts: [/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/, /(^|\.)gmail\.(com|dev)$/],
geoApi: env["geoApiUrl"] || getMetaUrl("amp-geo-api")
};
// src/log.js

@@ -774,8 +783,8 @@ self.__AMP_LOG = self.__AMP_LOG || {

cachedAnchorEl = self.document.createElement("a");
urlCache = false ? null : self.__AMP_URL_CACHE || (self.__AMP_URL_CACHE = new LruCache(100));
urlCache = isEsm() ? null : self.__AMP_URL_CACHE || (self.__AMP_URL_CACHE = new LruCache(100));
}
return parseUrlWithA(cachedAnchorEl, url, opt_nocache ? null : urlCache);
return parseUrlWithA(cachedAnchorEl, url, isEsm() || opt_nocache ? null : urlCache);
}
function parseUrlWithA(anchorEl, url, opt_cache) {
if (false) {
if (isEsm()) {
anchorEl.href = "";

@@ -828,3 +837,3 @@ return new URL(url, anchorEl.href);

function getBootstrapUrl(type) {
var extension = false ? ".mjs" : ".js";
var extension = isEsm() ? ".mjs" : ".js";
if (isProd()) {

@@ -877,3 +886,3 @@ return urls.thirdParty + "/" + version() + "/vendor/" + type + extension;

// src/preact/component/3p-frame.js
var _excluded4 = ["allow", "bootstrap", "contextOptions", "excludeSandbox", "name", "messageHandler", "options", "sandbox", "src", "type", "title"];
var _excluded4 = ["allow", "excludeSandbox", "name", "messageHandler", "options", "sandbox", "src", "type", "title"];
function _extends4() {

@@ -914,3 +923,3 @@ _extends4 = Object.assign || function(target) {

function ProxyIframeEmbedWithRef(_ref, ref) {
var _ref$allow = _ref.allow, allow = _ref$allow === void 0 ? BLOCK_SYNC_XHR : _ref$allow, bootstrap = _ref.bootstrap, contextOptions = _ref.contextOptions, excludeSandbox = _ref.excludeSandbox, nameProp = _ref.name, messageHandler = _ref.messageHandler, options = _ref.options, _ref$sandbox = _ref.sandbox, sandbox = _ref$sandbox === void 0 ? DEFAULT_SANDBOX : _ref$sandbox, srcProp = _ref.src, type = _ref.type, _ref$title = _ref.title, title = _ref$title === void 0 ? type : _ref$title, rest = _objectWithoutPropertiesLoose4(_ref, _excluded4);
var _ref$allow = _ref.allow, allow = _ref$allow === void 0 ? BLOCK_SYNC_XHR : _ref$allow, excludeSandbox = _ref.excludeSandbox, nameProp = _ref.name, messageHandler = _ref.messageHandler, options = _ref.options, _ref$sandbox = _ref.sandbox, sandbox = _ref$sandbox === void 0 ? DEFAULT_SANDBOX : _ref$sandbox, srcProp = _ref.src, type = _ref.type, _ref$title = _ref.title, title = _ref$title === void 0 ? type : _ref$title, rest = _objectWithoutPropertiesLoose4(_ref, _excluded4);
if (!includes(allow, BLOCK_SYNC_XHR)) {

@@ -932,2 +941,3 @@ throw new Error("'allow' prop must contain \"" + BLOCK_SYNC_XHR + '". Found "' + allow + '".');

var name = nameAndSrc.name, src = nameAndSrc.src;
var sentinelRef = useRef2(null);
useLayoutEffect2(function() {

@@ -947,2 +957,5 @@ var _contentRef$current, _contentRef$current$o;

}
if (!sentinelRef.current) {
sentinelRef.current = generateSentinel(win);
}
var context2 = Object.assign(dict({

@@ -952,4 +965,4 @@ "location": {

},
"sentinel": generateSentinel(win)
}), contextOptions);
"sentinel": sentinelRef.current
}));
var attrs = Object.assign(dict({

@@ -963,3 +976,3 @@ "title": title,

"host": parseUrlDeprecated(src2).hostname,
"bootstrap": bootstrap != null ? bootstrap : getBootstrapUrl(type),
"bootstrap": getBootstrapUrl(type),
"type": type,

@@ -971,3 +984,3 @@ "count": count,

});
}, [bootstrap, contextOptions, count, nameProp, options, srcProp, title, type]);
}, [count, nameProp, options, srcProp, title, type]);
useEffect2(function() {

@@ -1093,4 +1106,4 @@ var _iframeRef$current;

}, [localeProp, ref]);
return createElement2(ProxyIframeEmbed, _extends5({
options: {
var options = useMemo2(function() {
return {
action: action,

@@ -1115,3 +1128,6 @@ colorscheme: colorscheme,

tabs: tabs
},
};
}, [action, colorscheme, embedAs, hideCover, hideCta, href, includeCommentParent, kdSite, layout, locale, numPosts, orderBy, refLabel, share, showFacepile, showText, size, smallHeader, tabs]);
return createElement2(ProxyIframeEmbed, _extends5({
options: options,
ref: ref,

@@ -1118,0 +1134,0 @@ title: title

@@ -79,2 +79,9 @@ bent

} = Object.prototype;
function map(opt_initial) {
const obj = Object.create(null);
if (opt_initial) {
Object.assign(obj, opt_initial);
}
return obj;
}
function dict(opt_initial) {

@@ -454,5 +461,14 @@ return opt_initial || {};

function version() {
return "2108170213000";
return "2108190446000";
}
// src/core/mode/esm.js
function isEsm() {
var _self$__AMP_MODE$esm, _self, _self$__AMP_MODE;
if (isProd()) {
return true;
}
return (_self$__AMP_MODE$esm = (_self = self) == null ? void 0 : (_self$__AMP_MODE = _self.__AMP_MODE) == null ? void 0 : _self$__AMP_MODE.esm) != null ? _self$__AMP_MODE$esm : true;
}
// src/core/types/array.js

@@ -552,43 +568,2 @@ var {

// src/core/types/object/json.js
function parseJson(json) {
return JSON.parse(json);
}
function tryParseJson(json, opt_onFailed) {
try {
return parseJson(json);
} catch (e) {
opt_onFailed == null ? void 0 : opt_onFailed(e);
return null;
}
}
// src/config.js
var env = self.AMP_CONFIG || {};
var thirdPartyFrameRegex = (typeof env["thirdPartyFrameRegex"] == "string" ? new RegExp(env["thirdPartyFrameRegex"]) : env["thirdPartyFrameRegex"]) || /^d-\d+\.ampproject\.net$/;
var cdnProxyRegex = (typeof env["cdnProxyRegex"] == "string" ? new RegExp(env["cdnProxyRegex"]) : env["cdnProxyRegex"]) || /^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;
function getMetaUrl(name) {
if (!self.document || !self.document.head) {
return null;
}
if (self.location && cdnProxyRegex.test(self.location.origin)) {
return null;
}
const metaEl = self.document.head.querySelector(`meta[name="${name}"]`);
return metaEl && metaEl.getAttribute("content") || null;
}
var urls = {
thirdParty: env["thirdPartyUrl"] || "https://3p.ampproject.net",
thirdPartyFrameHost: env["thirdPartyFrameHost"] || "ampproject.net",
thirdPartyFrameRegex,
cdn: env["cdnUrl"] || getMetaUrl("runtime-host") || "https://cdn.ampproject.org",
cdnProxyRegex,
localhostRegex: /^https?:\/\/localhost(:\d+)?$/,
errorReporting: env["errorReportingUrl"] || "https://us-central1-amp-error-reporting.cloudfunctions.net/r",
betaErrorReporting: env["betaErrorReportingUrl"] || "https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",
localDev: env["localDev"] || false,
trustedViewerHosts: [/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/, /(^|\.)gmail\.(com|dev)$/],
geoApi: env["geoApiUrl"] || getMetaUrl("amp-geo-api")
};
// src/core/error/index.js

@@ -642,2 +617,43 @@ function duplicateErrorIfNecessary(error) {

// src/core/types/object/json.js
function parseJson(json) {
return JSON.parse(json);
}
function tryParseJson(json, opt_onFailed) {
try {
return parseJson(json);
} catch (e) {
opt_onFailed == null ? void 0 : opt_onFailed(e);
return null;
}
}
// src/config.js
var env = self.AMP_CONFIG || {};
var thirdPartyFrameRegex = (typeof env["thirdPartyFrameRegex"] == "string" ? new RegExp(env["thirdPartyFrameRegex"]) : env["thirdPartyFrameRegex"]) || /^d-\d+\.ampproject\.net$/;
var cdnProxyRegex = (typeof env["cdnProxyRegex"] == "string" ? new RegExp(env["cdnProxyRegex"]) : env["cdnProxyRegex"]) || /^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;
function getMetaUrl(name) {
if (!self.document || !self.document.head) {
return null;
}
if (self.location && cdnProxyRegex.test(self.location.origin)) {
return null;
}
const metaEl = self.document.head.querySelector(`meta[name="${name}"]`);
return metaEl && metaEl.getAttribute("content") || null;
}
var urls = {
thirdParty: env["thirdPartyUrl"] || "https://3p.ampproject.net",
thirdPartyFrameHost: env["thirdPartyFrameHost"] || "ampproject.net",
thirdPartyFrameRegex,
cdn: env["cdnUrl"] || getMetaUrl("runtime-host") || "https://cdn.ampproject.org",
cdnProxyRegex,
localhostRegex: /^https?:\/\/localhost(:\d+)?$/,
errorReporting: env["errorReportingUrl"] || "https://us-central1-amp-error-reporting.cloudfunctions.net/r",
betaErrorReporting: env["betaErrorReportingUrl"] || "https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",
localDev: env["localDev"] || false,
trustedViewerHosts: [/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/, /(^|\.)gmail\.(com|dev)$/],
geoApi: env["geoApiUrl"] || getMetaUrl("amp-geo-api")
};
// src/log.js

@@ -651,2 +667,87 @@ self.__AMP_LOG = self.__AMP_LOG || {

// src/core/data-structures/lru-cache.js
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}
function _defineProperties(target, props) {
for (var i = 0; i < props.length; i++) {
var descriptor = props[i];
descriptor.enumerable = descriptor.enumerable || false;
descriptor.configurable = true;
if ("value" in descriptor)
descriptor.writable = true;
Object.defineProperty(target, descriptor.key, descriptor);
}
}
function _createClass(Constructor, protoProps, staticProps) {
if (protoProps)
_defineProperties(Constructor.prototype, protoProps);
if (staticProps)
_defineProperties(Constructor, staticProps);
return Constructor;
}
var LruCache = /* @__PURE__ */ function() {
function LruCache2(capacity) {
_classCallCheck(this, LruCache2);
this.capacity_ = capacity;
this.size_ = 0;
this.access_ = 0;
this.cache_ = map();
}
_createClass(LruCache2, [{
key: "has",
value: function has(key) {
return !!this.cache_[key];
}
}, {
key: "get",
value: function get(key) {
const cacheable = this.cache_[key];
if (cacheable) {
cacheable.access = ++this.access_;
return cacheable.payload;
}
return void 0;
}
}, {
key: "put",
value: function put(key, payload) {
if (!this.has(key)) {
this.size_++;
}
this.cache_[key] = {
payload,
access: this.access_
};
this.evict_();
}
}, {
key: "evict_",
value: function evict_() {
if (this.size_ <= this.capacity_) {
return;
}
const cache = this.cache_;
let oldest = this.access_ + 1;
let oldestKey;
for (const key in cache) {
const {
access
} = cache[key];
if (access < oldest) {
oldest = access;
oldestKey = key;
}
}
if (oldestKey !== void 0) {
delete cache[oldestKey];
this.size_--;
}
}
}]);
return LruCache2;
}();
// src/url.js

@@ -664,8 +765,8 @@ var SERVING_TYPE_PREFIX = new Set([

cachedAnchorEl = self.document.createElement("a");
urlCache = true ? null : self.__AMP_URL_CACHE || (self.__AMP_URL_CACHE = new LruCache(100));
urlCache = isEsm() ? null : self.__AMP_URL_CACHE || (self.__AMP_URL_CACHE = new LruCache(100));
}
return parseUrlWithA(cachedAnchorEl, url, true ? null : urlCache);
return parseUrlWithA(cachedAnchorEl, url, isEsm() || opt_nocache ? null : urlCache);
}
function parseUrlWithA(anchorEl, url, opt_cache) {
if (true) {
if (isEsm()) {
anchorEl.href = "";

@@ -718,3 +819,3 @@ return new URL(url, anchorEl.href);

function getBootstrapUrl(type) {
const extension = true ? ".mjs" : ".js";
const extension = isEsm() ? ".mjs" : ".js";
if (isProd()) {

@@ -767,3 +868,3 @@ return `${urls.thirdParty}/${version()}/vendor/${type}${extension}`;

// src/preact/component/3p-frame.js
var _excluded4 = ["allow", "bootstrap", "contextOptions", "excludeSandbox", "name", "messageHandler", "options", "sandbox", "src", "type", "title"];
var _excluded4 = ["allow", "excludeSandbox", "name", "messageHandler", "options", "sandbox", "src", "type", "title"];
function _extends4() {

@@ -806,4 +907,2 @@ _extends4 = Object.assign || function(target) {

allow = BLOCK_SYNC_XHR,
bootstrap,
contextOptions,
excludeSandbox,

@@ -837,2 +936,3 @@ name: nameProp,

} = nameAndSrc;
const sentinelRef = useRef2(null);
useLayoutEffect2(() => {

@@ -852,2 +952,5 @@ var _contentRef$current, _contentRef$current$o;

}
if (!sentinelRef.current) {
sentinelRef.current = generateSentinel(win);
}
const context2 = Object.assign(dict({

@@ -857,4 +960,4 @@ "location": {

},
"sentinel": generateSentinel(win)
}), contextOptions);
"sentinel": sentinelRef.current
}));
const attrs = Object.assign(dict({

@@ -868,3 +971,3 @@ "title": title,

"host": parseUrlDeprecated(src2).hostname,
"bootstrap": bootstrap != null ? bootstrap : getBootstrapUrl(type),
"bootstrap": getBootstrapUrl(type),
"type": type,

@@ -876,3 +979,3 @@ "count": count,

});
}, [bootstrap, contextOptions, count, nameProp, options, srcProp, title, type]);
}, [count, nameProp, options, srcProp, title, type]);
useEffect2(() => {

@@ -1019,24 +1122,25 @@ var _iframeRef$current;

}, [localeProp, ref]);
const options = useMemo2(() => ({
action,
colorscheme,
embedAs,
hideCover,
hideCta,
href,
includeCommentParent,
"kd_site": kdSite,
layout,
locale,
numPosts,
orderBy,
ref: refLabel,
share,
showFacepile,
showText,
size,
smallHeader,
tabs
}), [action, colorscheme, embedAs, hideCover, hideCta, href, includeCommentParent, kdSite, layout, locale, numPosts, orderBy, refLabel, share, showFacepile, showText, size, smallHeader, tabs]);
return createElement2(ProxyIframeEmbed, _extends5({
options: {
action,
colorscheme,
embedAs,
hideCover,
hideCta,
href,
includeCommentParent,
"kd_site": kdSite,
layout,
locale,
numPosts,
orderBy,
ref: refLabel,
share,
showFacepile,
showText,
size,
smallHeader,
tabs
},
options,
ref,

@@ -1043,0 +1147,0 @@ title

;
bent;import{cloneElement as e,createContext as t,createElement as r,createRef as n}from"preact";import{hydrate as o,render as a}from"preact";import{useCallback as l,useContext as i,useEffect as c,useImperativeHandle as s,useLayoutEffect as u,useMemo as f,useRef as p,useState as y}from"preact/hooks";function b(e,t,n){return r.apply(void 0,arguments)}function d(e){return y(e)}function O(e){return p(e)}function m(e,t){c(e,t)}function g(e,t){u(e,t)}function w(e,t){return l(e,t)}function v(e,t,r){return s(e,t,r)}var{hasOwnProperty:h,toString:j}=Object.prototype;function P(e){return e||{}}import{Children as S,createPortal as x,forwardRef as E}from"preact/compat";function _(e){return E(e)}var D=["auto","lazy","eager","unload"],R={auto:0,lazy:1,eager:2,unload:3},A=["as","children","className","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"];function N(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 k(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?N(Object(r),!0).forEach((function(t){F(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):N(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function F(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var M,T=[null,"paint","layout","content","size","size paint","size layout","strict"],C={"position":"relative","width":"100%","height":"100%"},z=_((function(e,t){let{as:r="div",children:n,"className":o,contentAs:a="div",contentClassName:l,contentProps:i,contentRef:c,contentStyle:s,layout:u=!1,paint:f=!1,size:p=!1,"style":y,wrapperClassName:d,wrapperStyle:O}=e;const m=(p?4:0)+(u?2:0)+(f?1:0);return b(r,k(k({},function(e,t){if(null==e)return{};var r,n,o=function(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}(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}(e,A)),{},{ref:t,className:`${o||""} ${d||""}`.trim()||null,style:k(k(k({},y),O),{},{contain:T[m]})}),b(a,k(k({},i),{},{ref:c,className:l,style:k(k({},p&&C),{},{"overflow":f?"hidden":"visible"},s)}),n))})),U=["as","children","className","style","wrapperClassName","wrapperStyle"];function $(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 I(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$(Object(r),!0).forEach((function(t){L(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function L(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function B(){const e=M||(M=t({renderable:!0,playable:!0,loading:"auto"},void 0));return i(e)}_((function(e,t){let{as:r="div",children:n,"className":o,"style":a,wrapperClassName:l,wrapperStyle:i}=e;return b(r,I(I({},function(e,t){if(null==e)return{};var r,n,o=function(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}(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}(e,U)),{},{ref:t,className:`${o||""} ${l||""}`.trim()||null,style:I(I({},a),i)}),n)}));var H=["allow","allowFullScreen","allowTransparency","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"];function G(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 V(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?G(Object(r),!0).forEach((function(t){q(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):G(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function q(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var J=()=>!1,W=_((function(e,t){let{allow:r,allowFullScreen:n,allowTransparency:o,iframeStyle:a,name:l,title:i,matchesMessagingOrigin:c=J,messageHandler:s,ready:u=!0,loading:f,onReadyState:p,sandbox:y,src:d}=e,h=function(e,t){if(null==e)return{};var r,n,o=function(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}(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}(e,H);const{playable:j}=B(),P=function(e){const{loading:t}=B();return function(e,t){const r=R[e]||0,n=R[t]||0,o=Math.max(r,n);return D[o]}(e,t)}(f),S="unload"!==P,x=O(!1),E=function(e){const t=O(null);return t.current=e,t}(p),_=w((e=>{if(e!==x.current){x.current=e;const t=E.current;null==t||t(e?"complete":"loading")}}),[E]),A=O(null);return v(t,(()=>({get readyState(){return x.current?"complete":"loading"},get node(){return A.current}})),[]),g((()=>{S||_(!1)}),[S,_]),m((()=>{const e=A.current;if(!j&&e){const{src:t}=e;(e=>e&&"about:blank"!=e&&!e.includes("#"))(t)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling)}}),[j]),g((()=>{const e=A.current;if(!e||!S)return;const t=e=>{const t=A.current;t&&e.source==t.contentWindow&&c(e.origin)&&s(e)},{defaultView:r}=e.ownerDocument;return r.addEventListener("message",t),()=>r.removeEventListener("message",t)}),[c,s,S,u]),b(z,V(V({},h),{},{layout:!0,size:!0,paint:!0}),S&&u&&b("iframe",{allow:r,allowFullScreen:n,allowTransparency:o,frameborder:"0",loading:P,name:l,onLoad:()=>_(!0),part:"iframe",ref:A,sandbox:y,scrolling:"no",src:d,style:V(V({},a),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:i}))}));W.displayName="IframeEmbed";var{isArray:Z}=Array;function K(e,t){return e}function Q(e,t){try{return function(e){return JSON.parse(e)}(e)}catch(e){return null==t||t(e),null}}var X=self.AMP_CONFIG||{},Y=("string"==typeof X.thirdPartyFrameRegex?new RegExp(X.thirdPartyFrameRegex):X.thirdPartyFrameRegex,("string"==typeof X.cdnProxyRegex?new RegExp(X.cdnProxyRegex):X.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/);function ee(e){if(!self.document||!self.document.head)return null;if(self.location&&Y.test(self.location.origin))return null;const t=self.document.head.querySelector(`meta[name="${e}"]`);return t&&t.getAttribute("content")||null}var te,re=X.thirdPartyUrl||"https://3p.ampproject.net",ne=X.thirdPartyFrameHost||"ampproject.net";function oe(e){const t=Object.getOwnPropertyDescriptor(e,"message");if(null!=t&&t.writable)return e;const{message:r,stack:n}=e,o=new Error(r);for(const t in e)o[t]=e[t];return o.stack=n,o}function ae(e){let t=null,r="";for(const e of arguments)e instanceof Error&&!t?t=oe(e):(r&&(r+=" "),r+=e);return t?r&&(t.message=r+": "+t.message):t=new Error(r),t}function le(e){var t,r;null===(t=(r=self).__AMP_REPORT_ERROR)||void 0===t||t.call(r,e)}function ie(e){return`${re}/2108170213000/vendor/${e}.mjs`}function ce(e){let t;if(e.crypto&&e.crypto.getRandomValues){const 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 se(e){let t=0;for(let r=e;r&&r!=r.parent;r=r.parent)t++;return String(t)+"-"+ce(e)}X.cdnUrl||ee("runtime-host"),X.errorReportingUrl,X.betaErrorReportingUrl,X.localDev,X.geoApiUrl||ee("amp-geo-api"),self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null},self.__AMP_LOG,new Set(["c","v","a","ad"]);var ue=["allow","bootstrap","contextOptions","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"];function fe(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 pe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ye={},be="sync-xhr 'none'",de=["allow-top-navigation-by-user-activation","allow-popups-to-escape-sandbox"].join(" ")+" "+["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts"].join(" "),Oe=_((function(e,t){let{allow:r=be,bootstrap:n,contextOptions:o,excludeSandbox:a,name:l,messageHandler:i,options:c,sandbox:s=de,src:u,type:p,title:y=p}=e,w=function(e,t){if(null==e)return{};var r,n,o=function(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}(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}(e,ue);if(h=r,"number"!=typeof S&&(S=0),S+(j=be).length>h.length||-1===h.indexOf(j,S))throw new Error(`'allow' prop must contain "${be}". Found "${r}".`);var h,j,S;const x=O(null),E=O(null),_=f((()=>(ye[p]||(ye[p]=function(){let e=0;return()=>String(++e)}()),ye[p]())),[p]),[D,R]=d({name:l,src:u}),{name:A,src:N}=D;return g((()=>{var e,t;const r=null===(e=x.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView,a=null!=u?u:r?((i=r).__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=i.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||"d-"+ce(i),"https://"+i.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+`.${ne}/2108170213000/frame.html`):"about:blank";var i;if(l)return void R({name:l,src:a});if(!r)return;const s=Object.assign(P({"location":{"href":r.location.href},"sentinel":se(r)}),o),f=Object.assign(P({"title":y,"type":p,"_context":s}),c);var b;R({name:JSON.stringify(P({"host":(b=a,te||(te=self.document.createElement("a")),function(e,t,r){return e.href="",new URL(t,e.href)}(te,b)).hostname,"bootstrap":null!=n?n:ie(p),"type":p,"count":_,"attributes":f})),src:a})}),[n,o,_,l,c,u,y,p]),m((()=>{var e;const t=null===(e=E.current)||void 0===e?void 0:e.node;t&&t.parentNode.insertBefore(t,t.nextSibling)}),[A]),v(t,(()=>({get readyState(){var e;return null===(e=E.current)||void 0===e?void 0:e.readyState},get node(){var e;return null===(e=E.current)||void 0===e?void 0:e.node}})),[]),b(W,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?fe(Object(r),!0).forEach((function(t){pe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({allow:r,contentRef:x,messageHandler:i,name:A,ref:E,ready:!!A,sandbox:a?void 0:s,src:N,title:y},w))}));Oe.displayName="ProxyIframeEmbed";var me=["action","colorscheme","embedAs","hideCover","hideCta","href","includeCommentParent","kdSite","layout","locale","numPosts","onReady","orderBy","refLabel","requestResize","share","showFacepile","showText","size","smallHeader","style","tabs","title"];function ge(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 we(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ge(Object(r),!0).forEach((function(t){ve(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ge(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ve(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var he=()=>!0,je="Facebook comments",Pe=_((function(e,t){let{action:r,colorscheme:n,embedAs:o,hideCover:a,hideCta:l,href:i,includeCommentParent:c,kdSite:s,layout:u,locale:f,numPosts:p,onReady:y,orderBy:O,refLabel:m,requestResize:v,share:h,showFacepile:j,showText:P,size:S,smallHeader:x,style:E,tabs:_,title:D=je}=e,R=function(e,t){if(null==e)return{};var r,n,o=function(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}(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}(e,me);const[A,N]=d(null),k=w((e=>{var t;const r=null!==(t=Q(e.data))&&void 0!==t?t:function(e){if(!function(e){return"string"==typeof e&&e.startsWith("amp-")&&-1!=e.indexOf("{")}(e))return null;const t=K(e).indexOf("{");return Q(K(e).substr(t),(t=>{!function(e){const t=ae.apply(null,arguments);setTimeout((()=>{throw le(t),t}))}(new Error(`MESSAGING: Failed to parse message: ${e}\n${t.message}`))}))}(e.data);if("ready"==r.action&&(null==y||y()),"embed-size"==r.type){const e=r.height;v?(v(e),N("100%")):N(e)}}),[v,y]),[F,M]=d(f);return g((()=>{var e,r;if(f)return void M(f);const n=null==t||null===(e=t.current)||void 0===e||null===(r=e.ownerDocument)||void 0===r?void 0:r.defaultView;n&&M(n.navigator.language.replace("-","_"))}),[f,t]),b(Oe,we(we({options:{action:r,colorscheme:n,embedAs:o,hideCover:a,hideCta:l,href:i,includeCommentParent:c,"kd_site":s,layout:u,locale:F,numPosts:p,orderBy:O,ref:m,share:h,showFacepile:j,showText:P,size:S,smallHeader:x,tabs:_},ref:t,title:D},R),{},{excludeSandbox:!0,matchesMessagingOrigin:he,messageHandler:k,type:"facebook",style:A?we(we({},E),{},{height:A}):E}))}));Pe.displayName="Facebook";export{Pe as Facebook};
bent;import{cloneElement as e,createContext as t,createElement as r,createRef as n}from"preact";import{hydrate as o,render as a}from"preact";import{useCallback as l,useContext as c,useEffect as i,useImperativeHandle as s,useLayoutEffect as u,useMemo as f,useRef as p,useState as y}from"preact/hooks";function b(e,t,n){return r.apply(void 0,arguments)}function d(e){return y(e)}function O(e){return p(e)}function m(e,t){i(e,t)}function g(e,t){u(e,t)}function w(e,t){return f(e,t)}function v(e,t){return l(e,t)}function h(e,t,r){return s(e,t,r)}var{hasOwnProperty:j,toString:P}=Object.prototype;function S(e){return e||{}}import{Children as x,createPortal as E,forwardRef as _}from"preact/compat";function D(e){return _(e)}var R=["auto","lazy","eager","unload"],A={auto:0,lazy:1,eager:2,unload:3},N=["as","children","className","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"];function k(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 F(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?k(Object(r),!0).forEach((function(t){M(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):k(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function M(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var T,C=[null,"paint","layout","content","size","size paint","size layout","strict"],z={"position":"relative","width":"100%","height":"100%"},U=D((function(e,t){let{as:r="div",children:n,"className":o,contentAs:a="div",contentClassName:l,contentProps:c,contentRef:i,contentStyle:s,layout:u=!1,paint:f=!1,size:p=!1,"style":y,wrapperClassName:d,wrapperStyle:O}=e;const m=(p?4:0)+(u?2:0)+(f?1:0);return b(r,F(F({},function(e,t){if(null==e)return{};var r,n,o=function(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}(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}(e,N)),{},{ref:t,className:`${o||""} ${d||""}`.trim()||null,style:F(F(F({},y),O),{},{contain:C[m]})}),b(a,F(F({},c),{},{ref:i,className:l,style:F(F({},p&&z),{},{"overflow":f?"hidden":"visible"},s)}),n))})),$=["as","children","className","style","wrapperClassName","wrapperStyle"];function I(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 L(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?I(Object(r),!0).forEach((function(t){B(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):I(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function B(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function H(){const e=T||(T=t({renderable:!0,playable:!0,loading:"auto"},void 0));return c(e)}D((function(e,t){let{as:r="div",children:n,"className":o,"style":a,wrapperClassName:l,wrapperStyle:c}=e;return b(r,L(L({},function(e,t){if(null==e)return{};var r,n,o=function(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}(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}(e,$)),{},{ref:t,className:`${o||""} ${l||""}`.trim()||null,style:L(L({},a),c)}),n)}));var G=["allow","allowFullScreen","allowTransparency","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"];function V(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?V(Object(r),!0).forEach((function(t){J(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):V(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function J(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var W=()=>!1,Z=D((function(e,t){let{allow:r,allowFullScreen:n,allowTransparency:o,iframeStyle:a,name:l,title:c,matchesMessagingOrigin:i=W,messageHandler:s,ready:u=!0,loading:f,onReadyState:p,sandbox:y,src:d}=e,w=function(e,t){if(null==e)return{};var r,n,o=function(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}(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}(e,G);const{playable:j}=H(),P=function(e){const{loading:t}=H();return function(e,t){const r=A[e]||0,n=A[t]||0,o=Math.max(r,n);return R[o]}(e,t)}(f),S="unload"!==P,x=O(!1),E=function(e){const t=O(null);return t.current=e,t}(p),_=v((e=>{if(e!==x.current){x.current=e;const t=E.current;null==t||t(e?"complete":"loading")}}),[E]),D=O(null);return h(t,(()=>({get readyState(){return x.current?"complete":"loading"},get node(){return D.current}})),[]),g((()=>{S||_(!1)}),[S,_]),m((()=>{const e=D.current;if(!j&&e){const{src:t}=e;(e=>e&&"about:blank"!=e&&!e.includes("#"))(t)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling)}}),[j]),g((()=>{const e=D.current;if(!e||!S)return;const t=e=>{const t=D.current;t&&e.source==t.contentWindow&&i(e.origin)&&s(e)},{defaultView:r}=e.ownerDocument;return r.addEventListener("message",t),()=>r.removeEventListener("message",t)}),[i,s,S,u]),b(U,q(q({},w),{},{layout:!0,size:!0,paint:!0}),S&&u&&b("iframe",{allow:r,allowFullScreen:n,allowTransparency:o,frameborder:"0",loading:P,name:l,onLoad:()=>_(!0),part:"iframe",ref:D,sandbox:y,scrolling:"no",src:d,style:q(q({},a),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:c}))}));Z.displayName="IframeEmbed";var{isArray:K}=Array;function Q(e,t){return e}function X(e){const t=Object.getOwnPropertyDescriptor(e,"message");if(null!=t&&t.writable)return e;const{message:r,stack:n}=e,o=new Error(r);for(const t in e)o[t]=e[t];return o.stack=n,o}function Y(e){let t=null,r="";for(const e of arguments)e instanceof Error&&!t?t=X(e):(r&&(r+=" "),r+=e);return t?r&&(t.message=r+": "+t.message):t=new Error(r),t}function ee(e){var t,r;null===(t=(r=self).__AMP_REPORT_ERROR)||void 0===t||t.call(r,e)}function te(e,t){try{return function(e){return JSON.parse(e)}(e)}catch(e){return null==t||t(e),null}}var re=self.AMP_CONFIG||{},ne=("string"==typeof re.thirdPartyFrameRegex?new RegExp(re.thirdPartyFrameRegex):re.thirdPartyFrameRegex,("string"==typeof re.cdnProxyRegex?new RegExp(re.cdnProxyRegex):re.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/);function oe(e){if(!self.document||!self.document.head)return null;if(self.location&&ne.test(self.location.origin))return null;const t=self.document.head.querySelector(`meta[name="${e}"]`);return t&&t.getAttribute("content")||null}var ae,le=re.thirdPartyUrl||"https://3p.ampproject.net",ce=re.thirdPartyFrameHost||"ampproject.net";function ie(e){return`${le}/2108190446000/vendor/${e}.mjs`}function se(e){let t;if(e.crypto&&e.crypto.getRandomValues){const 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}re.cdnUrl||oe("runtime-host"),re.errorReportingUrl,re.betaErrorReportingUrl,re.localDev,re.geoApiUrl||oe("amp-geo-api"),self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null},self.__AMP_LOG,new Set(["c","v","a","ad"]);var ue=["allow","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"];function fe(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 pe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ye={},be="sync-xhr 'none'",de=["allow-top-navigation-by-user-activation","allow-popups-to-escape-sandbox"].join(" ")+" "+["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts"].join(" "),Oe=D((function(e,t){let{allow:r=be,excludeSandbox:n,name:o,messageHandler:a,options:l,sandbox:c=de,src:i,type:s,title:u=s}=e,f=function(e,t){if(null==e)return{};var r,n,o=function(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}(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}(e,ue);if(p=r,"number"!=typeof v&&(v=0),v+(y=be).length>p.length||-1===p.indexOf(y,v))throw new Error(`'allow' prop must contain "${be}". Found "${r}".`);var p,y,v;const j=O(null),P=O(null),x=w((()=>(ye[s]||(ye[s]=function(){let e=0;return()=>String(++e)}()),ye[s]())),[s]),[E,_]=d({name:o,src:i}),{name:D,src:R}=E,A=O(null);return g((()=>{var e,t;const r=null===(e=j.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView,n=null!=i?i:r?((a=r).__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=a.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||"d-"+se(a),"https://"+a.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+`.${ce}/2108190446000/frame.html`):"about:blank";var a;if(o)return void _({name:o,src:n});if(!r)return;A.current||(A.current=function(e){let t=0;for(let r=e;r&&r!=r.parent;r=r.parent)t++;return String(t)+"-"+se(e)}(r));const c=Object.assign(S({"location":{"href":r.location.href},"sentinel":A.current})),f=Object.assign(S({"title":u,"type":s,"_context":c}),l);var p;_({name:JSON.stringify(S({"host":(p=n,ae||(ae=self.document.createElement("a")),function(e,t,r){return e.href="",new URL(t,e.href)}(ae,p)).hostname,"bootstrap":ie(s),"type":s,"count":x,"attributes":f})),src:n})}),[x,o,l,i,u,s]),m((()=>{var e;const t=null===(e=P.current)||void 0===e?void 0:e.node;t&&t.parentNode.insertBefore(t,t.nextSibling)}),[D]),h(t,(()=>({get readyState(){var e;return null===(e=P.current)||void 0===e?void 0:e.readyState},get node(){var e;return null===(e=P.current)||void 0===e?void 0:e.node}})),[]),b(Z,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?fe(Object(r),!0).forEach((function(t){pe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({allow:r,contentRef:j,messageHandler:a,name:D,ref:P,ready:!!D,sandbox:n?void 0:c,src:R,title:u},f))}));Oe.displayName="ProxyIframeEmbed";var me=["action","colorscheme","embedAs","hideCover","hideCta","href","includeCommentParent","kdSite","layout","locale","numPosts","onReady","orderBy","refLabel","requestResize","share","showFacepile","showText","size","smallHeader","style","tabs","title"];function ge(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 we(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ge(Object(r),!0).forEach((function(t){ve(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ge(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ve(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var he=()=>!0,je="Facebook comments",Pe=D((function(e,t){let{action:r,colorscheme:n,embedAs:o,hideCover:a,hideCta:l,href:c,includeCommentParent:i,kdSite:s,layout:u,locale:f,numPosts:p,onReady:y,orderBy:O,refLabel:m,requestResize:h,share:j,showFacepile:P,showText:S,size:x,smallHeader:E,style:_,tabs:D,title:R=je}=e,A=function(e,t){if(null==e)return{};var r,n,o=function(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}(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}(e,me);const[N,k]=d(null),F=v((e=>{var t;const r=null!==(t=te(e.data))&&void 0!==t?t:function(e){if(!function(e){return"string"==typeof e&&e.startsWith("amp-")&&-1!=e.indexOf("{")}(e))return null;const t=Q(e).indexOf("{");return te(Q(e).substr(t),(t=>{!function(e){const t=Y.apply(null,arguments);setTimeout((()=>{throw ee(t),t}))}(new Error(`MESSAGING: Failed to parse message: ${e}\n${t.message}`))}))}(e.data);if("ready"==r.action&&(null==y||y()),"embed-size"==r.type){const e=r.height;h?(h(e),k("100%")):k(e)}}),[h,y]),[M,T]=d(f);g((()=>{var e,r;if(f)return void T(f);const n=null==t||null===(e=t.current)||void 0===e||null===(r=e.ownerDocument)||void 0===r?void 0:r.defaultView;n&&T(n.navigator.language.replace("-","_"))}),[f,t]);const C=w((()=>({action:r,colorscheme:n,embedAs:o,hideCover:a,hideCta:l,href:c,includeCommentParent:i,"kd_site":s,layout:u,locale:M,numPosts:p,orderBy:O,ref:m,share:j,showFacepile:P,showText:S,size:x,smallHeader:E,tabs:D})),[r,n,o,a,l,c,i,s,u,M,p,O,m,j,P,S,x,E,D]);return b(Oe,we(we({options:C,ref:t,title:R},A),{},{excludeSandbox:!0,matchesMessagingOrigin:he,messageHandler:F,type:"facebook",style:N?we(we({},_),{},{height:N}):_}))}));Pe.displayName="Facebook";export{Pe as Facebook};
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */
;
bent;var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__markAsModule=function(e){return __defProp(e,"__esModule",{value:!0})},__export=function(e,r){for(var t in __markAsModule(e),r)__defProp(e,t,{get:r[t],enumerable:!0})},__reExport=function(e,r,t){if(r&&"object"==typeof r||"function"==typeof r)for(var n,o=__getOwnPropNames(r),a=0,i=o.length;a<i;a++)n=o[a],__hasOwnProp.call(e,n)||"default"===n||__defProp(e,n,{get:function(e){return r[e]}.bind(null,n),enumerable:!(t=__getOwnPropDesc(r,n))||t.enumerable});return e},__toModule=function(e){return __reExport(__markAsModule(__defProp(null!=e?__create(__getProtoOf(e)):{},"default",e&&e.__esModule&&"default"in e?{get:function(){return e.default},enumerable:!0}:{value:e,enumerable:!0})),e)};__export(exports,{Facebook:function(){return Facebook}});var preact=__toModule(require("react")),preactDOM=__toModule(require("react-dom")),hooks=__toModule(require("react"));function createElement2(e,r,t){return preact.createElement.apply(void 0,arguments)}function createContext2(e){return preact.createContext(e,void 0)}function useState2(e){return hooks.useState(e)}function useRef2(e){return hooks.useRef(e)}function useEffect2(e,r){hooks.useEffect(e,r)}function useLayoutEffect2(e,r){hooks.useLayoutEffect(e,r)}function useContext2(e){return hooks.useContext(e)}function useMemo2(e,r){return hooks.useMemo(e,r)}function useCallback2(e,r){return hooks.useCallback(e,r)}function useImperativeHandle2(e,r,t){return hooks.useImperativeHandle(e,r,t)}var getRequiredSandboxFlags=function(){return["allow-top-navigation-by-user-activation","allow-popups-to-escape-sandbox"]},getOptionalSandboxFlags=function(){return["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts"]};function sequentialIdGenerator(){var e=0;return function(){return String(++e)}}var _Object$prototype=Object.prototype,hasOwn_=_Object$prototype.hasOwnProperty,toString_=_Object$prototype.toString;function map(e){var r=Object.create(null);return e&&Object.assign(r,e),r}function dict(e){return e||{}}function dashToUnderline(e){return e.replace("-","_")}function includes(e,r,t){return"number"!=typeof t&&(t=0),!(t+r.length>e.length)&&-1!==e.indexOf(r,t)}function isString(e){return"string"==typeof e}var _MAP,compat=__toModule(require("react"));function forwardRef2(e){return compat.forwardRef(e)}function _defineProperty(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var Loading={AUTO:"auto",LAZY:"lazy",EAGER:"eager",UNLOAD:"unload"},ORDER=[Loading.AUTO,Loading.LAZY,Loading.EAGER,Loading.UNLOAD],MAP=(_defineProperty(_MAP={},Loading.AUTO,0),_defineProperty(_MAP,Loading.LAZY,1),_defineProperty(_MAP,Loading.EAGER,2),_defineProperty(_MAP,Loading.UNLOAD,3),_MAP);function reducer(e,r){var t=MAP[e]||0,n=MAP[r]||0,o=Math.max(t,n);return ORDER[o]}var ReadyState={UPGRADING:"upgrading",BUILDING:"building",MOUNTING:"mounting",LOADING:"loading",COMPLETE:"complete",ERROR:"error"},_excluded=["as","children","className","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"];function ownKeys(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 _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty2(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function _defineProperty2(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _objectWithoutProperties(e,r){if(null==e)return{};var t,n,o=_objectWithoutPropertiesLoose(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 _objectWithoutPropertiesLoose(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 CONTAIN=[null,"paint","layout","content","size","size paint","size layout","strict"],SIZE_CONTENT_STYLE={"position":"relative","width":"100%","height":"100%"};function ContainWrapperWithRef(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,s=e.contentClassName,l=e.contentProps,u=e.contentRef,f=e.contentStyle,p=e.layout,d=void 0!==p&&p,y=e.paint,b=void 0!==y&&y,_=e.size,m=void 0!==_&&_,h=e.style,g=e.wrapperClassName,v=e.wrapperStyle,O=(m?4:0)+(d?2:0)+(b?1:0);return createElement2(n,_objectSpread(_objectSpread({},_objectWithoutProperties(e,_excluded)),{},{ref:r,className:"".concat(a||""," ").concat(g||"").trim()||null,style:_objectSpread(_objectSpread(_objectSpread({},h),v),{},{contain:CONTAIN[O]})}),createElement2(c,_objectSpread(_objectSpread({},l),{},{ref:u,className:s,style:_objectSpread(_objectSpread({},m&&SIZE_CONTENT_STYLE),{},{"overflow":b?"hidden":"visible"},f)}),o))}var ContainWrapper=forwardRef2(ContainWrapperWithRef),_excluded2=["as","children","className","style","wrapperClassName","wrapperStyle"];function ownKeys2(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 _objectSpread2(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys2(Object(t),!0).forEach((function(r){_defineProperty3(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys2(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function _defineProperty3(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _objectWithoutProperties2(e,r){if(null==e)return{};var t,n,o=_objectWithoutPropertiesLoose2(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 _objectWithoutPropertiesLoose2(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 WrapperWithRef(e,r){var t=e.as,n=void 0===t?"div":t,o=e.children,a=e.className,i=e.style,c=e.wrapperClassName,s=e.wrapperStyle;return createElement2(n,_objectSpread2(_objectSpread2({},_objectWithoutProperties2(e,_excluded2)),{},{ref:r,className:"".concat(a||""," ").concat(c||"").trim()||null,style:_objectSpread2(_objectSpread2({},i),s)}),o)}var context,Wrapper=forwardRef2(WrapperWithRef);function useValueRef(e){var r=useRef2(null);return r.current=e,r}function getAmpContext(){return context||(context=createContext2({renderable:!0,playable:!0,loading:Loading.AUTO}))}function useAmpContext(){return useContext2(getAmpContext())}function useLoading(e){return reducer(e,useAmpContext().loading)}var _excluded3=["allow","allowFullScreen","allowTransparency","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"];function ownKeys3(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 _objectSpread3(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys3(Object(t),!0).forEach((function(r){_defineProperty4(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys3(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function _defineProperty4(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _objectWithoutProperties3(e,r){if(null==e)return{};var t,n,o=_objectWithoutPropertiesLoose3(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 _objectWithoutPropertiesLoose3(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 DEFAULT_MATCHES_MESSAGING_ORIGIN=function(){return!1},ABOUT_BLANK="about:blank",canResetSrc=function(e){return e&&e!=ABOUT_BLANK&&!e.includes("#")};function IframeEmbedWithRef(e,r){var t=e.allow,n=e.allowFullScreen,o=e.allowTransparency,a=e.iframeStyle,i=e.name,c=e.title,s=e.matchesMessagingOrigin,l=void 0===s?DEFAULT_MATCHES_MESSAGING_ORIGIN:s,u=e.messageHandler,f=e.ready,p=void 0===f||f,d=e.loading,y=e.onReadyState,b=e.sandbox,_=e.src,m=_objectWithoutProperties3(e,_excluded3),h=useAmpContext().playable,g=useLoading(d),v=g!==Loading.UNLOAD,O=useRef2(!1),P=useValueRef(y),A=useCallback2((function(e){if(e!==O.current){O.current=e;var r=P.current;null==r||r(e?ReadyState.COMPLETE:ReadyState.LOADING)}}),[P]),j=useRef2(null);return useImperativeHandle2(r,(function(){return{get readyState(){return O.current?ReadyState.COMPLETE:ReadyState.LOADING},get node(){return j.current}}}),[]),useLayoutEffect2((function(){v||A(!1)}),[v,A]),useEffect2((function(){var e=j.current;if(!h&&e){var r=e.src;canResetSrc(r)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling)}}),[h]),useLayoutEffect2((function(){var e=j.current;if(e&&v){var r=function(e){var r=j.current;r&&e.source==r.contentWindow&&l(e.origin)&&u(e)},t=e.ownerDocument.defaultView;return t.addEventListener("message",r),function(){return t.removeEventListener("message",r)}}}),[l,u,v,p]),createElement2(ContainWrapper,_objectSpread3(_objectSpread3({},m),{},{layout:!0,size:!0,paint:!0}),v&&p&&createElement2("iframe",{allow:t,allowFullScreen:n,allowTransparency:o,frameborder:"0",loading:g,name:i,onLoad:function(){return A(!0)},part:"iframe",ref:j,sandbox:b,scrolling:"no",src:_,style:_objectSpread3(_objectSpread3({},a),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:c}))}var IframeEmbed=forwardRef2(IframeEmbedWithRef);function isProd(){return!0}function isTest(e){var r;if(isProd())return!1;var t=e||self;return!!(null!==(r=t.AMP_CONFIG)&&void 0!==r&&r.test||t.__AMP_TEST||t.__karma__)}function isMinified(){return!0}function version(){return"2108170213000"}IframeEmbed.displayName="IframeEmbed";var isArray=Array.isArray;function remove(e,r){for(var t=[],n=0,o=0;o<e.length;o++){var a=e[o];r(a,o,e)?t.push(a):(n<o&&(e[n]=a),n++)}return n<e.length&&(e.length=n),t}function isElement(e){return 1==(null==e?void 0:e.nodeType)}function elementStringOrPassThru(e){return isElement(e)?(e=e).tagName.toLowerCase()+(e.id?"#".concat(e.id):""):e}function assert(e,r){var t,n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Assertion failed";if(r)return r;e&&-1==o.indexOf(e)&&(o+=e);for(var a=3,i=o.split("%s"),c=i.shift(),s=[c];i.length;){var l=arguments[a++],u=i.shift();c+=elementStringOrPassThru(l)+u,s.push(l,u.trim())}var f=new Error(c);throw f.messageArray=remove(s,(function(e){return""!==e})),null===(t=(n=self).__AMP_REPORT_ERROR)||void 0===t||t.call(n,f),f}function assertType_(e,r,t,n,o){return isArray(o)?e(t,o.concat([r])):e(t,"".concat(o||n,": %s"),r),r}function assertString(e,r,t){return assertType_(e,r,isString(r),"String expected",t)}function devAssertDceCheck(){self.__AMP_ASSERTION_CHECK&&console.log("__devAssert_sentinel__")}function devAssert(e,r,t,n,o,a,i,c,s,l,u){return isMinified()?e:(devAssertDceCheck(),assert("",e,r,t,n,o,a,i,c,s,l,u))}function devAssertString(e,r){return isMinified()?e:(devAssertDceCheck(),assertString(devAssert,e,r))}function parseJson(e){return JSON.parse(e)}function tryParseJson(e,r){try{return parseJson(e)}catch(e){return null==r||r(e),null}}var env=self.AMP_CONFIG||{},thirdPartyFrameRegex=("string"==typeof env.thirdPartyFrameRegex?new RegExp(env.thirdPartyFrameRegex):env.thirdPartyFrameRegex)||/^d-\d+\.ampproject\.net$/,cdnProxyRegex=("string"==typeof env.cdnProxyRegex?new RegExp(env.cdnProxyRegex):env.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;function getMetaUrl(e){if(!self.document||!self.document.head)return null;if(self.location&&cdnProxyRegex.test(self.location.origin))return null;var r=self.document.head.querySelector('meta[name="'.concat(e,'"]'));return r&&r.getAttribute("content")||null}var urls={thirdParty:env.thirdPartyUrl||"https://3p.ampproject.net",thirdPartyFrameHost:env.thirdPartyFrameHost||"ampproject.net",thirdPartyFrameRegex:thirdPartyFrameRegex,cdn:env.cdnUrl||getMetaUrl("runtime-host")||"https://cdn.ampproject.org",cdnProxyRegex:cdnProxyRegex,localhostRegex:/^https?:\/\/localhost(:\d+)?$/,errorReporting:env.errorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r",betaErrorReporting:env.betaErrorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",localDev:env.localDev||!1,trustedViewerHosts:[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/,/(^|\.)gmail\.(com|dev)$/],geoApi:env.geoApiUrl||getMetaUrl("amp-geo-api")};function _createForOfIteratorHelper(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=_unsupportedIterableToArray(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{i||null==t.return||t.return()}finally{if(c)throw a}}}}function _unsupportedIterableToArray(e,r){if(e){if("string"==typeof e)return _arrayLikeToArray(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(e,r):void 0}}function _arrayLikeToArray(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 duplicateErrorIfNecessary(e){var r=Object.getOwnPropertyDescriptor(e,"message");if(null!=r&&r.writable)return e;var t=e.message,n=e.stack,o=new Error(t);for(var a in e)o[a]=e[a];return o.stack=n,o}function createError(e){var r,t=null,n="",o=_createForOfIteratorHelper(arguments);try{for(o.s();!(r=o.n()).done;){var a=r.value;a instanceof Error&&!t?t=duplicateErrorIfNecessary(a):(n&&(n+=" "),n+=a)}}catch(e){o.e(e)}finally{o.f()}return t?n&&(t.message=n+": "+t.message):t=new Error(n),t}function maybeReportError(e){var r,t;null===(r=(t=self).__AMP_REPORT_ERROR)||void 0===r||r.call(t,e)}function rethrowAsync(e){var r=createError.apply(null,arguments);setTimeout((function(){throw maybeReportError(r),r}))}self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var logs=self.__AMP_LOG;function _classCallCheck(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(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 _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),e}var cachedAnchorEl,urlCache,overrideBootstrapBaseUrl,LruCache=function(){function e(r){_classCallCheck(this,e),this.capacity_=r,this.size_=0,this.access_=0,this.cache_=map()}return _createClass(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}(),SERVING_TYPE_PREFIX=new Set(["c","v","a","ad"]);function parseUrlDeprecated(e,r){return cachedAnchorEl||(cachedAnchorEl=self.document.createElement("a"),urlCache=self.__AMP_URL_CACHE||(self.__AMP_URL_CACHE=new LruCache(100))),parseUrlWithA(cachedAnchorEl,e,r?null:urlCache)}function parseUrlWithA(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=isTest()&&Object.freeze?Object.freeze(o):o;return t&&t.put(r,a),a}function getBootstrapUrl(e){return isProd()?"".concat(urls.thirdParty,"/").concat(version(),"/vendor/").concat(e).concat(".js"):(isMinified()?"./vendor/".concat(e):"./vendor/".concat(e,".max"))+".js"}function getDefaultBootstrapBaseUrl(e,r){var t=r||"frame";return isProd()?(e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||getSubDomain(e),"https://"+e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+".".concat(urls.thirdPartyFrameHost,"/").concat(version(),"/")+"".concat(t,".html")):getDevelopmentBootstrapBaseUrl(e,t)}function getDevelopmentBootstrapBaseUrl(e,r){return overrideBootstrapBaseUrl||getAdsLocalhost(e)+"/dist.3p/"+(isMinified()?"".concat(version(),"/").concat(r):"current/".concat(r,".max"))+".html"}function getAdsLocalhost(e){var r=urls.thirdParty;return"https://3p.ampproject.net"==r&&(r="http://ads.localhost"),r+":"+(e.location.port||e.parent.location.port)}function getSubDomain(e){return"d-"+getRandom(e)}function getRandom(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 generateSentinel(e){for(var r=0,t=e;t&&t!=t.parent;t=t.parent)r++;return String(r)+"-"+getRandom(e)}var _excluded4=["allow","bootstrap","contextOptions","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"];function ownKeys4(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 _objectSpread4(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys4(Object(t),!0).forEach((function(r){_defineProperty5(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys4(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function _defineProperty5(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _slicedToArray(e,r){return _arrayWithHoles(e)||_iterableToArrayLimit(e,r)||_unsupportedIterableToArray2(e,r)||_nonIterableRest()}function _nonIterableRest(){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 _unsupportedIterableToArray2(e,r){if(e){if("string"==typeof e)return _arrayLikeToArray2(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray2(e,r):void 0}}function _arrayLikeToArray2(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 _iterableToArrayLimit(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 _arrayWithHoles(e){if(Array.isArray(e))return e}function _objectWithoutProperties4(e,r){if(null==e)return{};var t,n,o=_objectWithoutPropertiesLoose4(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 _objectWithoutPropertiesLoose4(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 countGenerators={},MessageType={EMBED_SIZE:"embed-size"},BLOCK_SYNC_XHR="sync-xhr 'none'",DEFAULT_SANDBOX=getRequiredSandboxFlags().join(" ")+" "+getOptionalSandboxFlags().join(" ");function ProxyIframeEmbedWithRef(e,r){var t=e.allow,n=void 0===t?BLOCK_SYNC_XHR:t,o=e.bootstrap,a=e.contextOptions,i=e.excludeSandbox,c=e.name,s=e.messageHandler,l=e.options,u=e.sandbox,f=void 0===u?DEFAULT_SANDBOX:u,p=e.src,d=e.type,y=e.title,b=void 0===y?d:y,_=_objectWithoutProperties4(e,_excluded4);if(!includes(n,BLOCK_SYNC_XHR))throw new Error("'allow' prop must contain \"".concat(BLOCK_SYNC_XHR,'". Found "').concat(n,'".'));var m=useRef2(null),h=useRef2(null),g=useMemo2((function(){return countGenerators[d]||(countGenerators[d]=sequentialIdGenerator()),countGenerators[d]()}),[d]),v=_slicedToArray(useState2({name:c,src:p}),2),O=v[0],P=v[1],A=O.name,j=O.src;return useLayoutEffect2((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?getDefaultBootstrapBaseUrl(t):"about:blank";if(c)P({name:c,src:n});else if(t){var i=Object.assign(dict({"location":{"href":t.location.href},"sentinel":generateSentinel(t)}),a),s=Object.assign(dict({"title":b,"type":d,"_context":i}),l);P({name:JSON.stringify(dict({"host":parseUrlDeprecated(n).hostname,"bootstrap":null!=o?o:getBootstrapUrl(d),"type":d,"count":g,"attributes":s})),src:n})}}),[o,a,g,c,l,p,b,d]),useEffect2((function(){var e,r=null===(e=h.current)||void 0===e?void 0:e.node;r&&r.parentNode.insertBefore(r,r.nextSibling)}),[A]),useImperativeHandle2(r,(function(){return{get readyState(){var e;return null===(e=h.current)||void 0===e?void 0:e.readyState},get node(){var e;return null===(e=h.current)||void 0===e?void 0:e.node}}}),[]),createElement2(IframeEmbed,_objectSpread4({allow:n,contentRef:m,messageHandler:s,name:A,ref:h,ready:!!A,sandbox:i?void 0:f,src:j,title:b},_))}var ProxyIframeEmbed=forwardRef2(ProxyIframeEmbedWithRef);ProxyIframeEmbed.displayName="ProxyIframeEmbed";var AMP_MESSAGE_PREFIX="amp-";function deserializeMessage(e){if(!isAmpMessage(e))return null;var r=devAssertString(e).indexOf("{");return devAssert(-1!=r),tryParseJson(devAssertString(e).substr(r),(function(r){rethrowAsync(new Error("MESSAGING: Failed to parse message: ".concat(e,"\n").concat(r.message)))}))}function isAmpMessage(e){return"string"==typeof e&&e.startsWith(AMP_MESSAGE_PREFIX)&&-1!=e.indexOf("{")}var _excluded5=["action","colorscheme","embedAs","hideCover","hideCta","href","includeCommentParent","kdSite","layout","locale","numPosts","onReady","orderBy","refLabel","requestResize","share","showFacepile","showText","size","smallHeader","style","tabs","title"];function ownKeys5(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 _objectSpread5(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys5(Object(t),!0).forEach((function(r){_defineProperty6(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys5(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function _defineProperty6(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _slicedToArray2(e,r){return _arrayWithHoles2(e)||_iterableToArrayLimit2(e,r)||_unsupportedIterableToArray3(e,r)||_nonIterableRest2()}function _nonIterableRest2(){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 _unsupportedIterableToArray3(e,r){if(e){if("string"==typeof e)return _arrayLikeToArray3(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray3(e,r):void 0}}function _arrayLikeToArray3(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 _iterableToArrayLimit2(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 _arrayWithHoles2(e){if(Array.isArray(e))return e}function _objectWithoutProperties5(e,r){if(null==e)return{};var t,n,o=_objectWithoutPropertiesLoose5(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 _objectWithoutPropertiesLoose5(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 TYPE="facebook",FULL_HEIGHT="100%",MATCHES_MESSAGING_ORIGIN=function(){return!0},DEFAULT_TITLE="Facebook comments";function FacebookWithRef(e,r){var t=e.action,n=e.colorscheme,o=e.embedAs,a=e.hideCover,i=e.hideCta,c=e.href,s=e.includeCommentParent,l=e.kdSite,u=e.layout,f=e.locale,p=e.numPosts,d=e.onReady,y=e.orderBy,b=e.refLabel,_=e.requestResize,m=e.share,h=e.showFacepile,g=e.showText,v=e.size,O=e.smallHeader,P=e.style,A=e.tabs,j=e.title,S=void 0===j?DEFAULT_TITLE:j,w=_objectWithoutProperties5(e,_excluded5),E=_slicedToArray2(useState2(null),2),R=E[0],x=E[1],T=useCallback2((function(e){var r,t=null!==(r=tryParseJson(e.data))&&void 0!==r?r:deserializeMessage(e.data);if("ready"==t.action&&(null==d||d()),t.type==MessageType.EMBED_SIZE){var n=t.height;_?(_(n),x(FULL_HEIGHT)):x(n)}}),[_,d]),L=_slicedToArray2(useState2(f),2),I=L[0],M=L[1];return useLayoutEffect2((function(){var e,t;if(f)M(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&&M(dashToUnderline(n.navigator.language))}}),[f,r]),createElement2(ProxyIframeEmbed,_objectSpread5(_objectSpread5({options:{action:t,colorscheme:n,embedAs:o,hideCover:a,hideCta:i,href:c,includeCommentParent:s,"kd_site":l,layout:u,locale:I,numPosts:p,orderBy:y,ref:b,share:m,showFacepile:h,showText:g,size:v,smallHeader:O,tabs:A},ref:r,title:S},w),{},{excludeSandbox:!0,matchesMessagingOrigin:MATCHES_MESSAGING_ORIGIN,messageHandler:T,type:TYPE,style:R?_objectSpread5(_objectSpread5({},P),{},{height:R}):P}))}var Facebook=forwardRef2(FacebookWithRef);Facebook.displayName="Facebook";
bent;var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__markAsModule=function(e){return __defProp(e,"__esModule",{value:!0})},__export=function(e,r){for(var t in __markAsModule(e),r)__defProp(e,t,{get:r[t],enumerable:!0})},__reExport=function(e,r,t){if(r&&"object"==typeof r||"function"==typeof r)for(var n,o=__getOwnPropNames(r),a=0,i=o.length;a<i;a++)n=o[a],__hasOwnProp.call(e,n)||"default"===n||__defProp(e,n,{get:function(e){return r[e]}.bind(null,n),enumerable:!(t=__getOwnPropDesc(r,n))||t.enumerable});return e},__toModule=function(e){return __reExport(__markAsModule(__defProp(null!=e?__create(__getProtoOf(e)):{},"default",e&&e.__esModule&&"default"in e?{get:function(){return e.default},enumerable:!0}:{value:e,enumerable:!0})),e)};__export(exports,{Facebook:function(){return Facebook}});var preact=__toModule(require("react")),preactDOM=__toModule(require("react-dom")),hooks=__toModule(require("react"));function createElement2(e,r,t){return preact.createElement.apply(void 0,arguments)}function createContext2(e){return preact.createContext(e,void 0)}function useState2(e){return hooks.useState(e)}function useRef2(e){return hooks.useRef(e)}function useEffect2(e,r){hooks.useEffect(e,r)}function useLayoutEffect2(e,r){hooks.useLayoutEffect(e,r)}function useContext2(e){return hooks.useContext(e)}function useMemo2(e,r){return hooks.useMemo(e,r)}function useCallback2(e,r){return hooks.useCallback(e,r)}function useImperativeHandle2(e,r,t){return hooks.useImperativeHandle(e,r,t)}var getRequiredSandboxFlags=function(){return["allow-top-navigation-by-user-activation","allow-popups-to-escape-sandbox"]},getOptionalSandboxFlags=function(){return["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts"]};function sequentialIdGenerator(){var e=0;return function(){return String(++e)}}var _Object$prototype=Object.prototype,hasOwn_=_Object$prototype.hasOwnProperty,toString_=_Object$prototype.toString;function map(e){var r=Object.create(null);return e&&Object.assign(r,e),r}function dict(e){return e||{}}function dashToUnderline(e){return e.replace("-","_")}function includes(e,r,t){return"number"!=typeof t&&(t=0),!(t+r.length>e.length)&&-1!==e.indexOf(r,t)}function isString(e){return"string"==typeof e}var _MAP,compat=__toModule(require("react"));function forwardRef2(e){return compat.forwardRef(e)}function _defineProperty(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var Loading={AUTO:"auto",LAZY:"lazy",EAGER:"eager",UNLOAD:"unload"},ORDER=[Loading.AUTO,Loading.LAZY,Loading.EAGER,Loading.UNLOAD],MAP=(_defineProperty(_MAP={},Loading.AUTO,0),_defineProperty(_MAP,Loading.LAZY,1),_defineProperty(_MAP,Loading.EAGER,2),_defineProperty(_MAP,Loading.UNLOAD,3),_MAP);function reducer(e,r){var t=MAP[e]||0,n=MAP[r]||0,o=Math.max(t,n);return ORDER[o]}var ReadyState={UPGRADING:"upgrading",BUILDING:"building",MOUNTING:"mounting",LOADING:"loading",COMPLETE:"complete",ERROR:"error"},_excluded=["as","children","className","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"];function ownKeys(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 _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty2(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function _defineProperty2(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _objectWithoutProperties(e,r){if(null==e)return{};var t,n,o=_objectWithoutPropertiesLoose(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 _objectWithoutPropertiesLoose(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 CONTAIN=[null,"paint","layout","content","size","size paint","size layout","strict"],SIZE_CONTENT_STYLE={"position":"relative","width":"100%","height":"100%"};function ContainWrapperWithRef(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,s=e.contentClassName,l=e.contentProps,u=e.contentRef,f=e.contentStyle,p=e.layout,d=void 0!==p&&p,y=e.paint,b=void 0!==y&&y,_=e.size,m=void 0!==_&&_,h=e.style,g=e.wrapperClassName,v=e.wrapperStyle,O=(m?4:0)+(d?2:0)+(b?1:0);return createElement2(n,_objectSpread(_objectSpread({},_objectWithoutProperties(e,_excluded)),{},{ref:r,className:"".concat(a||""," ").concat(g||"").trim()||null,style:_objectSpread(_objectSpread(_objectSpread({},h),v),{},{contain:CONTAIN[O]})}),createElement2(c,_objectSpread(_objectSpread({},l),{},{ref:u,className:s,style:_objectSpread(_objectSpread({},m&&SIZE_CONTENT_STYLE),{},{"overflow":b?"hidden":"visible"},f)}),o))}var ContainWrapper=forwardRef2(ContainWrapperWithRef),_excluded2=["as","children","className","style","wrapperClassName","wrapperStyle"];function ownKeys2(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 _objectSpread2(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys2(Object(t),!0).forEach((function(r){_defineProperty3(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys2(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function _defineProperty3(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _objectWithoutProperties2(e,r){if(null==e)return{};var t,n,o=_objectWithoutPropertiesLoose2(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 _objectWithoutPropertiesLoose2(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 WrapperWithRef(e,r){var t=e.as,n=void 0===t?"div":t,o=e.children,a=e.className,i=e.style,c=e.wrapperClassName,s=e.wrapperStyle;return createElement2(n,_objectSpread2(_objectSpread2({},_objectWithoutProperties2(e,_excluded2)),{},{ref:r,className:"".concat(a||""," ").concat(c||"").trim()||null,style:_objectSpread2(_objectSpread2({},i),s)}),o)}var context,Wrapper=forwardRef2(WrapperWithRef);function useValueRef(e){var r=useRef2(null);return r.current=e,r}function getAmpContext(){return context||(context=createContext2({renderable:!0,playable:!0,loading:Loading.AUTO}))}function useAmpContext(){return useContext2(getAmpContext())}function useLoading(e){return reducer(e,useAmpContext().loading)}var _excluded3=["allow","allowFullScreen","allowTransparency","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"];function ownKeys3(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 _objectSpread3(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys3(Object(t),!0).forEach((function(r){_defineProperty4(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys3(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function _defineProperty4(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _objectWithoutProperties3(e,r){if(null==e)return{};var t,n,o=_objectWithoutPropertiesLoose3(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 _objectWithoutPropertiesLoose3(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 DEFAULT_MATCHES_MESSAGING_ORIGIN=function(){return!1},ABOUT_BLANK="about:blank",canResetSrc=function(e){return e&&e!=ABOUT_BLANK&&!e.includes("#")};function IframeEmbedWithRef(e,r){var t=e.allow,n=e.allowFullScreen,o=e.allowTransparency,a=e.iframeStyle,i=e.name,c=e.title,s=e.matchesMessagingOrigin,l=void 0===s?DEFAULT_MATCHES_MESSAGING_ORIGIN:s,u=e.messageHandler,f=e.ready,p=void 0===f||f,d=e.loading,y=e.onReadyState,b=e.sandbox,_=e.src,m=_objectWithoutProperties3(e,_excluded3),h=useAmpContext().playable,g=useLoading(d),v=g!==Loading.UNLOAD,O=useRef2(!1),P=useValueRef(y),A=useCallback2((function(e){if(e!==O.current){O.current=e;var r=P.current;null==r||r(e?ReadyState.COMPLETE:ReadyState.LOADING)}}),[P]),j=useRef2(null);return useImperativeHandle2(r,(function(){return{get readyState(){return O.current?ReadyState.COMPLETE:ReadyState.LOADING},get node(){return j.current}}}),[]),useLayoutEffect2((function(){v||A(!1)}),[v,A]),useEffect2((function(){var e=j.current;if(!h&&e){var r=e.src;canResetSrc(r)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling)}}),[h]),useLayoutEffect2((function(){var e=j.current;if(e&&v){var r=function(e){var r=j.current;r&&e.source==r.contentWindow&&l(e.origin)&&u(e)},t=e.ownerDocument.defaultView;return t.addEventListener("message",r),function(){return t.removeEventListener("message",r)}}}),[l,u,v,p]),createElement2(ContainWrapper,_objectSpread3(_objectSpread3({},m),{},{layout:!0,size:!0,paint:!0}),v&&p&&createElement2("iframe",{allow:t,allowFullScreen:n,allowTransparency:o,frameborder:"0",loading:g,name:i,onLoad:function(){return A(!0)},part:"iframe",ref:j,sandbox:b,scrolling:"no",src:_,style:_objectSpread3(_objectSpread3({},a),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:c}))}var IframeEmbed=forwardRef2(IframeEmbedWithRef);function isProd(){return!0}function isTest(e){var r;if(isProd())return!1;var t=e||self;return!!(null!==(r=t.AMP_CONFIG)&&void 0!==r&&r.test||t.__AMP_TEST||t.__karma__)}function isMinified(){return!0}function version(){return"2108190446000"}function isEsm(){var e,r,t;return!isProd()&&null!==(e=null===(r=self)||void 0===r||null===(t=r.__AMP_MODE)||void 0===t?void 0:t.esm)&&void 0!==e&&e}IframeEmbed.displayName="IframeEmbed";var isArray=Array.isArray;function remove(e,r){for(var t=[],n=0,o=0;o<e.length;o++){var a=e[o];r(a,o,e)?t.push(a):(n<o&&(e[n]=a),n++)}return n<e.length&&(e.length=n),t}function isElement(e){return 1==(null==e?void 0:e.nodeType)}function elementStringOrPassThru(e){return isElement(e)?(e=e).tagName.toLowerCase()+(e.id?"#".concat(e.id):""):e}function assert(e,r){var t,n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Assertion failed";if(r)return r;e&&-1==o.indexOf(e)&&(o+=e);for(var a=3,i=o.split("%s"),c=i.shift(),s=[c];i.length;){var l=arguments[a++],u=i.shift();c+=elementStringOrPassThru(l)+u,s.push(l,u.trim())}var f=new Error(c);throw f.messageArray=remove(s,(function(e){return""!==e})),null===(t=(n=self).__AMP_REPORT_ERROR)||void 0===t||t.call(n,f),f}function assertType_(e,r,t,n,o){return isArray(o)?e(t,o.concat([r])):e(t,"".concat(o||n,": %s"),r),r}function assertString(e,r,t){return assertType_(e,r,isString(r),"String expected",t)}function devAssertDceCheck(){self.__AMP_ASSERTION_CHECK&&console.log("__devAssert_sentinel__")}function devAssert(e,r,t,n,o,a,i,c,s,l,u){return isMinified()?e:(devAssertDceCheck(),assert("",e,r,t,n,o,a,i,c,s,l,u))}function devAssertString(e,r){return isMinified()?e:(devAssertDceCheck(),assertString(devAssert,e,r))}function _createForOfIteratorHelper(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=_unsupportedIterableToArray(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{i||null==t.return||t.return()}finally{if(c)throw a}}}}function _unsupportedIterableToArray(e,r){if(e){if("string"==typeof e)return _arrayLikeToArray(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(e,r):void 0}}function _arrayLikeToArray(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 duplicateErrorIfNecessary(e){var r=Object.getOwnPropertyDescriptor(e,"message");if(null!=r&&r.writable)return e;var t=e.message,n=e.stack,o=new Error(t);for(var a in e)o[a]=e[a];return o.stack=n,o}function createError(e){var r,t=null,n="",o=_createForOfIteratorHelper(arguments);try{for(o.s();!(r=o.n()).done;){var a=r.value;a instanceof Error&&!t?t=duplicateErrorIfNecessary(a):(n&&(n+=" "),n+=a)}}catch(e){o.e(e)}finally{o.f()}return t?n&&(t.message=n+": "+t.message):t=new Error(n),t}function maybeReportError(e){var r,t;null===(r=(t=self).__AMP_REPORT_ERROR)||void 0===r||r.call(t,e)}function rethrowAsync(e){var r=createError.apply(null,arguments);setTimeout((function(){throw maybeReportError(r),r}))}function parseJson(e){return JSON.parse(e)}function tryParseJson(e,r){try{return parseJson(e)}catch(e){return null==r||r(e),null}}var env=self.AMP_CONFIG||{},thirdPartyFrameRegex=("string"==typeof env.thirdPartyFrameRegex?new RegExp(env.thirdPartyFrameRegex):env.thirdPartyFrameRegex)||/^d-\d+\.ampproject\.net$/,cdnProxyRegex=("string"==typeof env.cdnProxyRegex?new RegExp(env.cdnProxyRegex):env.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;function getMetaUrl(e){if(!self.document||!self.document.head)return null;if(self.location&&cdnProxyRegex.test(self.location.origin))return null;var r=self.document.head.querySelector('meta[name="'.concat(e,'"]'));return r&&r.getAttribute("content")||null}var urls={thirdParty:env.thirdPartyUrl||"https://3p.ampproject.net",thirdPartyFrameHost:env.thirdPartyFrameHost||"ampproject.net",thirdPartyFrameRegex:thirdPartyFrameRegex,cdn:env.cdnUrl||getMetaUrl("runtime-host")||"https://cdn.ampproject.org",cdnProxyRegex:cdnProxyRegex,localhostRegex:/^https?:\/\/localhost(:\d+)?$/,errorReporting:env.errorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r",betaErrorReporting:env.betaErrorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",localDev:env.localDev||!1,trustedViewerHosts:[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/,/(^|\.)gmail\.(com|dev)$/],geoApi:env.geoApiUrl||getMetaUrl("amp-geo-api")};self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var logs=self.__AMP_LOG;function _classCallCheck(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(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 _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),e}var cachedAnchorEl,urlCache,overrideBootstrapBaseUrl,LruCache=function(){function e(r){_classCallCheck(this,e),this.capacity_=r,this.size_=0,this.access_=0,this.cache_=map()}return _createClass(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}(),SERVING_TYPE_PREFIX=new Set(["c","v","a","ad"]);function parseUrlDeprecated(e,r){return cachedAnchorEl||(cachedAnchorEl=self.document.createElement("a"),urlCache=isEsm()?null:self.__AMP_URL_CACHE||(self.__AMP_URL_CACHE=new LruCache(100))),parseUrlWithA(cachedAnchorEl,e,isEsm()||r?null:urlCache)}function parseUrlWithA(e,r,t){if(isEsm())return e.href="",new URL(r,e.href);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=isTest()&&Object.freeze?Object.freeze(o):o;return t&&t.put(r,a),a}function getBootstrapUrl(e){var r=isEsm()?".mjs":".js";return isProd()?"".concat(urls.thirdParty,"/").concat(version(),"/vendor/").concat(e).concat(r):(isMinified()?"./vendor/".concat(e):"./vendor/".concat(e,".max"))+r}function getDefaultBootstrapBaseUrl(e,r){var t=r||"frame";return isProd()?(e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||getSubDomain(e),"https://"+e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+".".concat(urls.thirdPartyFrameHost,"/").concat(version(),"/")+"".concat(t,".html")):getDevelopmentBootstrapBaseUrl(e,t)}function getDevelopmentBootstrapBaseUrl(e,r){return overrideBootstrapBaseUrl||getAdsLocalhost(e)+"/dist.3p/"+(isMinified()?"".concat(version(),"/").concat(r):"current/".concat(r,".max"))+".html"}function getAdsLocalhost(e){var r=urls.thirdParty;return"https://3p.ampproject.net"==r&&(r="http://ads.localhost"),r+":"+(e.location.port||e.parent.location.port)}function getSubDomain(e){return"d-"+getRandom(e)}function getRandom(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 generateSentinel(e){for(var r=0,t=e;t&&t!=t.parent;t=t.parent)r++;return String(r)+"-"+getRandom(e)}var _excluded4=["allow","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"];function ownKeys4(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 _objectSpread4(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys4(Object(t),!0).forEach((function(r){_defineProperty5(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys4(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function _defineProperty5(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _slicedToArray(e,r){return _arrayWithHoles(e)||_iterableToArrayLimit(e,r)||_unsupportedIterableToArray2(e,r)||_nonIterableRest()}function _nonIterableRest(){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 _unsupportedIterableToArray2(e,r){if(e){if("string"==typeof e)return _arrayLikeToArray2(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray2(e,r):void 0}}function _arrayLikeToArray2(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 _iterableToArrayLimit(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 _arrayWithHoles(e){if(Array.isArray(e))return e}function _objectWithoutProperties4(e,r){if(null==e)return{};var t,n,o=_objectWithoutPropertiesLoose4(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 _objectWithoutPropertiesLoose4(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 countGenerators={},MessageType={EMBED_SIZE:"embed-size"},BLOCK_SYNC_XHR="sync-xhr 'none'",DEFAULT_SANDBOX=getRequiredSandboxFlags().join(" ")+" "+getOptionalSandboxFlags().join(" ");function ProxyIframeEmbedWithRef(e,r){var t=e.allow,n=void 0===t?BLOCK_SYNC_XHR:t,o=e.excludeSandbox,a=e.name,i=e.messageHandler,c=e.options,s=e.sandbox,l=void 0===s?DEFAULT_SANDBOX:s,u=e.src,f=e.type,p=e.title,d=void 0===p?f:p,y=_objectWithoutProperties4(e,_excluded4);if(!includes(n,BLOCK_SYNC_XHR))throw new Error("'allow' prop must contain \"".concat(BLOCK_SYNC_XHR,'". Found "').concat(n,'".'));var b=useRef2(null),_=useRef2(null),m=useMemo2((function(){return countGenerators[f]||(countGenerators[f]=sequentialIdGenerator()),countGenerators[f]()}),[f]),h=_slicedToArray(useState2({name:a,src:u}),2),g=h[0],v=h[1],O=g.name,P=g.src,A=useRef2(null);return useLayoutEffect2((function(){var e,r,t=null===(e=b.current)||void 0===e||null===(r=e.ownerDocument)||void 0===r?void 0:r.defaultView,n=null!=u?u:t?getDefaultBootstrapBaseUrl(t):"about:blank";if(a)v({name:a,src:n});else if(t){A.current||(A.current=generateSentinel(t));var o=Object.assign(dict({"location":{"href":t.location.href},"sentinel":A.current})),i=Object.assign(dict({"title":d,"type":f,"_context":o}),c);v({name:JSON.stringify(dict({"host":parseUrlDeprecated(n).hostname,"bootstrap":getBootstrapUrl(f),"type":f,"count":m,"attributes":i})),src:n})}}),[m,a,c,u,d,f]),useEffect2((function(){var e,r=null===(e=_.current)||void 0===e?void 0:e.node;r&&r.parentNode.insertBefore(r,r.nextSibling)}),[O]),useImperativeHandle2(r,(function(){return{get readyState(){var e;return null===(e=_.current)||void 0===e?void 0:e.readyState},get node(){var e;return null===(e=_.current)||void 0===e?void 0:e.node}}}),[]),createElement2(IframeEmbed,_objectSpread4({allow:n,contentRef:b,messageHandler:i,name:O,ref:_,ready:!!O,sandbox:o?void 0:l,src:P,title:d},y))}var ProxyIframeEmbed=forwardRef2(ProxyIframeEmbedWithRef);ProxyIframeEmbed.displayName="ProxyIframeEmbed";var AMP_MESSAGE_PREFIX="amp-";function deserializeMessage(e){if(!isAmpMessage(e))return null;var r=devAssertString(e).indexOf("{");return devAssert(-1!=r),tryParseJson(devAssertString(e).substr(r),(function(r){rethrowAsync(new Error("MESSAGING: Failed to parse message: ".concat(e,"\n").concat(r.message)))}))}function isAmpMessage(e){return"string"==typeof e&&e.startsWith(AMP_MESSAGE_PREFIX)&&-1!=e.indexOf("{")}var _excluded5=["action","colorscheme","embedAs","hideCover","hideCta","href","includeCommentParent","kdSite","layout","locale","numPosts","onReady","orderBy","refLabel","requestResize","share","showFacepile","showText","size","smallHeader","style","tabs","title"];function ownKeys5(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 _objectSpread5(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys5(Object(t),!0).forEach((function(r){_defineProperty6(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys5(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function _defineProperty6(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _slicedToArray2(e,r){return _arrayWithHoles2(e)||_iterableToArrayLimit2(e,r)||_unsupportedIterableToArray3(e,r)||_nonIterableRest2()}function _nonIterableRest2(){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 _unsupportedIterableToArray3(e,r){if(e){if("string"==typeof e)return _arrayLikeToArray3(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray3(e,r):void 0}}function _arrayLikeToArray3(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 _iterableToArrayLimit2(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 _arrayWithHoles2(e){if(Array.isArray(e))return e}function _objectWithoutProperties5(e,r){if(null==e)return{};var t,n,o=_objectWithoutPropertiesLoose5(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 _objectWithoutPropertiesLoose5(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 TYPE="facebook",FULL_HEIGHT="100%",MATCHES_MESSAGING_ORIGIN=function(){return!0},DEFAULT_TITLE="Facebook comments";function FacebookWithRef(e,r){var t=e.action,n=e.colorscheme,o=e.embedAs,a=e.hideCover,i=e.hideCta,c=e.href,s=e.includeCommentParent,l=e.kdSite,u=e.layout,f=e.locale,p=e.numPosts,d=e.onReady,y=e.orderBy,b=e.refLabel,_=e.requestResize,m=e.share,h=e.showFacepile,g=e.showText,v=e.size,O=e.smallHeader,P=e.style,A=e.tabs,j=e.title,S=void 0===j?DEFAULT_TITLE:j,w=_objectWithoutProperties5(e,_excluded5),E=_slicedToArray2(useState2(null),2),R=E[0],x=E[1],T=useCallback2((function(e){var r,t=null!==(r=tryParseJson(e.data))&&void 0!==r?r:deserializeMessage(e.data);if("ready"==t.action&&(null==d||d()),t.type==MessageType.EMBED_SIZE){var n=t.height;_?(_(n),x(FULL_HEIGHT)):x(n)}}),[_,d]),L=_slicedToArray2(useState2(f),2),I=L[0],M=L[1];useLayoutEffect2((function(){var e,t;if(f)M(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&&M(dashToUnderline(n.navigator.language))}}),[f,r]);var C=useMemo2((function(){return{action:t,colorscheme:n,embedAs:o,hideCover:a,hideCta:i,href:c,includeCommentParent:s,"kd_site":l,layout:u,locale:I,numPosts:p,orderBy:y,ref:b,share:m,showFacepile:h,showText:g,size:v,smallHeader:O,tabs:A}}),[t,n,o,a,i,c,s,l,u,I,p,y,b,m,h,g,v,O,A]);return createElement2(ProxyIframeEmbed,_objectSpread5(_objectSpread5({options:C,ref:r,title:S},w),{},{excludeSandbox:!0,matchesMessagingOrigin:MATCHES_MESSAGING_ORIGIN,messageHandler:T,type:TYPE,style:R?_objectSpread5(_objectSpread5({},P),{},{height:R}):P}))}var Facebook=forwardRef2(FacebookWithRef);Facebook.displayName="Facebook";
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */

@@ -444,5 +444,14 @@ bent

function version() {
return "2108170213000";
return "2108190446000";
}
// src/core/mode/esm.js
function isEsm() {
var _self$__AMP_MODE$esm, _self, _self$__AMP_MODE;
if (isProd()) {
return false;
}
return (_self$__AMP_MODE$esm = (_self = self) == null ? void 0 : (_self$__AMP_MODE = _self.__AMP_MODE) == null ? void 0 : _self$__AMP_MODE.esm) != null ? _self$__AMP_MODE$esm : false;
}
// src/core/types/array.js

@@ -545,43 +554,2 @@ var isArray = Array.isArray;

// src/core/types/object/json.js
function parseJson(json) {
return JSON.parse(json);
}
function tryParseJson(json, opt_onFailed) {
try {
return parseJson(json);
} catch (e) {
opt_onFailed == null ? void 0 : opt_onFailed(e);
return null;
}
}
// src/config.js
var env = self.AMP_CONFIG || {};
var thirdPartyFrameRegex = (typeof env["thirdPartyFrameRegex"] == "string" ? new RegExp(env["thirdPartyFrameRegex"]) : env["thirdPartyFrameRegex"]) || /^d-\d+\.ampproject\.net$/;
var cdnProxyRegex = (typeof env["cdnProxyRegex"] == "string" ? new RegExp(env["cdnProxyRegex"]) : env["cdnProxyRegex"]) || /^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;
function getMetaUrl(name) {
if (!self.document || !self.document.head) {
return null;
}
if (self.location && cdnProxyRegex.test(self.location.origin)) {
return null;
}
var metaEl = self.document.head.querySelector('meta[name="' + name + '"]');
return metaEl && metaEl.getAttribute("content") || null;
}
var urls = {
thirdParty: env["thirdPartyUrl"] || "https://3p.ampproject.net",
thirdPartyFrameHost: env["thirdPartyFrameHost"] || "ampproject.net",
thirdPartyFrameRegex: thirdPartyFrameRegex,
cdn: env["cdnUrl"] || getMetaUrl("runtime-host") || "https://cdn.ampproject.org",
cdnProxyRegex: cdnProxyRegex,
localhostRegex: /^https?:\/\/localhost(:\d+)?$/,
errorReporting: env["errorReportingUrl"] || "https://us-central1-amp-error-reporting.cloudfunctions.net/r",
betaErrorReporting: env["betaErrorReportingUrl"] || "https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",
localDev: env["localDev"] || false,
trustedViewerHosts: [/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/, /(^|\.)gmail\.(com|dev)$/],
geoApi: env["geoApiUrl"] || getMetaUrl("amp-geo-api")
};
// src/core/error/index.js

@@ -670,2 +638,43 @@ function _createForOfIteratorHelperLoose(o, allowArrayLike) {

// src/core/types/object/json.js
function parseJson(json) {
return JSON.parse(json);
}
function tryParseJson(json, opt_onFailed) {
try {
return parseJson(json);
} catch (e) {
opt_onFailed == null ? void 0 : opt_onFailed(e);
return null;
}
}
// src/config.js
var env = self.AMP_CONFIG || {};
var thirdPartyFrameRegex = (typeof env["thirdPartyFrameRegex"] == "string" ? new RegExp(env["thirdPartyFrameRegex"]) : env["thirdPartyFrameRegex"]) || /^d-\d+\.ampproject\.net$/;
var cdnProxyRegex = (typeof env["cdnProxyRegex"] == "string" ? new RegExp(env["cdnProxyRegex"]) : env["cdnProxyRegex"]) || /^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;
function getMetaUrl(name) {
if (!self.document || !self.document.head) {
return null;
}
if (self.location && cdnProxyRegex.test(self.location.origin)) {
return null;
}
var metaEl = self.document.head.querySelector('meta[name="' + name + '"]');
return metaEl && metaEl.getAttribute("content") || null;
}
var urls = {
thirdParty: env["thirdPartyUrl"] || "https://3p.ampproject.net",
thirdPartyFrameHost: env["thirdPartyFrameHost"] || "ampproject.net",
thirdPartyFrameRegex: thirdPartyFrameRegex,
cdn: env["cdnUrl"] || getMetaUrl("runtime-host") || "https://cdn.ampproject.org",
cdnProxyRegex: cdnProxyRegex,
localhostRegex: /^https?:\/\/localhost(:\d+)?$/,
errorReporting: env["errorReportingUrl"] || "https://us-central1-amp-error-reporting.cloudfunctions.net/r",
betaErrorReporting: env["betaErrorReportingUrl"] || "https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",
localDev: env["localDev"] || false,
trustedViewerHosts: [/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/, /(^|\.)gmail\.(com|dev)$/],
geoApi: env["geoApiUrl"] || getMetaUrl("amp-geo-api")
};
// src/log.js

@@ -774,8 +783,8 @@ self.__AMP_LOG = self.__AMP_LOG || {

cachedAnchorEl = self.document.createElement("a");
urlCache = false ? null : self.__AMP_URL_CACHE || (self.__AMP_URL_CACHE = new LruCache(100));
urlCache = isEsm() ? null : self.__AMP_URL_CACHE || (self.__AMP_URL_CACHE = new LruCache(100));
}
return parseUrlWithA(cachedAnchorEl, url, opt_nocache ? null : urlCache);
return parseUrlWithA(cachedAnchorEl, url, isEsm() || opt_nocache ? null : urlCache);
}
function parseUrlWithA(anchorEl, url, opt_cache) {
if (false) {
if (isEsm()) {
anchorEl.href = "";

@@ -828,3 +837,3 @@ return new URL(url, anchorEl.href);

function getBootstrapUrl(type) {
var extension = false ? ".mjs" : ".js";
var extension = isEsm() ? ".mjs" : ".js";
if (isProd()) {

@@ -877,3 +886,3 @@ return urls.thirdParty + "/" + version() + "/vendor/" + type + extension;

// src/preact/component/3p-frame.js
var _excluded4 = ["allow", "bootstrap", "contextOptions", "excludeSandbox", "name", "messageHandler", "options", "sandbox", "src", "type", "title"];
var _excluded4 = ["allow", "excludeSandbox", "name", "messageHandler", "options", "sandbox", "src", "type", "title"];
function _extends4() {

@@ -914,3 +923,3 @@ _extends4 = Object.assign || function(target) {

function ProxyIframeEmbedWithRef(_ref, ref) {
var _ref$allow = _ref.allow, allow = _ref$allow === void 0 ? BLOCK_SYNC_XHR : _ref$allow, bootstrap = _ref.bootstrap, contextOptions = _ref.contextOptions, excludeSandbox = _ref.excludeSandbox, nameProp = _ref.name, messageHandler = _ref.messageHandler, options = _ref.options, _ref$sandbox = _ref.sandbox, sandbox = _ref$sandbox === void 0 ? DEFAULT_SANDBOX : _ref$sandbox, srcProp = _ref.src, type = _ref.type, _ref$title = _ref.title, title = _ref$title === void 0 ? type : _ref$title, rest = _objectWithoutPropertiesLoose4(_ref, _excluded4);
var _ref$allow = _ref.allow, allow = _ref$allow === void 0 ? BLOCK_SYNC_XHR : _ref$allow, excludeSandbox = _ref.excludeSandbox, nameProp = _ref.name, messageHandler = _ref.messageHandler, options = _ref.options, _ref$sandbox = _ref.sandbox, sandbox = _ref$sandbox === void 0 ? DEFAULT_SANDBOX : _ref$sandbox, srcProp = _ref.src, type = _ref.type, _ref$title = _ref.title, title = _ref$title === void 0 ? type : _ref$title, rest = _objectWithoutPropertiesLoose4(_ref, _excluded4);
if (!includes(allow, BLOCK_SYNC_XHR)) {

@@ -932,2 +941,3 @@ throw new Error("'allow' prop must contain \"" + BLOCK_SYNC_XHR + '". Found "' + allow + '".');

var name = nameAndSrc.name, src = nameAndSrc.src;
var sentinelRef = useRef2(null);
useLayoutEffect2(function() {

@@ -947,2 +957,5 @@ var _contentRef$current, _contentRef$current$o;

}
if (!sentinelRef.current) {
sentinelRef.current = generateSentinel(win);
}
var context2 = Object.assign(dict({

@@ -952,4 +965,4 @@ "location": {

},
"sentinel": generateSentinel(win)
}), contextOptions);
"sentinel": sentinelRef.current
}));
var attrs = Object.assign(dict({

@@ -963,3 +976,3 @@ "title": title,

"host": parseUrlDeprecated(src2).hostname,
"bootstrap": bootstrap != null ? bootstrap : getBootstrapUrl(type),
"bootstrap": getBootstrapUrl(type),
"type": type,

@@ -971,3 +984,3 @@ "count": count,

});
}, [bootstrap, contextOptions, count, nameProp, options, srcProp, title, type]);
}, [count, nameProp, options, srcProp, title, type]);
useEffect2(function() {

@@ -1093,4 +1106,4 @@ var _iframeRef$current;

}, [localeProp, ref]);
return createElement2(ProxyIframeEmbed, _extends5({
options: {
var options = useMemo2(function() {
return {
action: action,

@@ -1115,3 +1128,6 @@ colorscheme: colorscheme,

tabs: tabs
},
};
}, [action, colorscheme, embedAs, hideCover, hideCta, href, includeCommentParent, kdSite, layout, locale, numPosts, orderBy, refLabel, share, showFacepile, showText, size, smallHeader, tabs]);
return createElement2(ProxyIframeEmbed, _extends5({
options: options,
ref: ref,

@@ -1118,0 +1134,0 @@ title: title

@@ -79,2 +79,9 @@ bent

} = Object.prototype;
function map(opt_initial) {
const obj = Object.create(null);
if (opt_initial) {
Object.assign(obj, opt_initial);
}
return obj;
}
function dict(opt_initial) {

@@ -454,5 +461,14 @@ return opt_initial || {};

function version() {
return "2108170213000";
return "2108190446000";
}
// src/core/mode/esm.js
function isEsm() {
var _self$__AMP_MODE$esm, _self, _self$__AMP_MODE;
if (isProd()) {
return true;
}
return (_self$__AMP_MODE$esm = (_self = self) == null ? void 0 : (_self$__AMP_MODE = _self.__AMP_MODE) == null ? void 0 : _self$__AMP_MODE.esm) != null ? _self$__AMP_MODE$esm : true;
}
// src/core/types/array.js

@@ -552,43 +568,2 @@ var {

// src/core/types/object/json.js
function parseJson(json) {
return JSON.parse(json);
}
function tryParseJson(json, opt_onFailed) {
try {
return parseJson(json);
} catch (e) {
opt_onFailed == null ? void 0 : opt_onFailed(e);
return null;
}
}
// src/config.js
var env = self.AMP_CONFIG || {};
var thirdPartyFrameRegex = (typeof env["thirdPartyFrameRegex"] == "string" ? new RegExp(env["thirdPartyFrameRegex"]) : env["thirdPartyFrameRegex"]) || /^d-\d+\.ampproject\.net$/;
var cdnProxyRegex = (typeof env["cdnProxyRegex"] == "string" ? new RegExp(env["cdnProxyRegex"]) : env["cdnProxyRegex"]) || /^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;
function getMetaUrl(name) {
if (!self.document || !self.document.head) {
return null;
}
if (self.location && cdnProxyRegex.test(self.location.origin)) {
return null;
}
const metaEl = self.document.head.querySelector(`meta[name="${name}"]`);
return metaEl && metaEl.getAttribute("content") || null;
}
var urls = {
thirdParty: env["thirdPartyUrl"] || "https://3p.ampproject.net",
thirdPartyFrameHost: env["thirdPartyFrameHost"] || "ampproject.net",
thirdPartyFrameRegex,
cdn: env["cdnUrl"] || getMetaUrl("runtime-host") || "https://cdn.ampproject.org",
cdnProxyRegex,
localhostRegex: /^https?:\/\/localhost(:\d+)?$/,
errorReporting: env["errorReportingUrl"] || "https://us-central1-amp-error-reporting.cloudfunctions.net/r",
betaErrorReporting: env["betaErrorReportingUrl"] || "https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",
localDev: env["localDev"] || false,
trustedViewerHosts: [/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/, /(^|\.)gmail\.(com|dev)$/],
geoApi: env["geoApiUrl"] || getMetaUrl("amp-geo-api")
};
// src/core/error/index.js

@@ -642,2 +617,43 @@ function duplicateErrorIfNecessary(error) {

// src/core/types/object/json.js
function parseJson(json) {
return JSON.parse(json);
}
function tryParseJson(json, opt_onFailed) {
try {
return parseJson(json);
} catch (e) {
opt_onFailed == null ? void 0 : opt_onFailed(e);
return null;
}
}
// src/config.js
var env = self.AMP_CONFIG || {};
var thirdPartyFrameRegex = (typeof env["thirdPartyFrameRegex"] == "string" ? new RegExp(env["thirdPartyFrameRegex"]) : env["thirdPartyFrameRegex"]) || /^d-\d+\.ampproject\.net$/;
var cdnProxyRegex = (typeof env["cdnProxyRegex"] == "string" ? new RegExp(env["cdnProxyRegex"]) : env["cdnProxyRegex"]) || /^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;
function getMetaUrl(name) {
if (!self.document || !self.document.head) {
return null;
}
if (self.location && cdnProxyRegex.test(self.location.origin)) {
return null;
}
const metaEl = self.document.head.querySelector(`meta[name="${name}"]`);
return metaEl && metaEl.getAttribute("content") || null;
}
var urls = {
thirdParty: env["thirdPartyUrl"] || "https://3p.ampproject.net",
thirdPartyFrameHost: env["thirdPartyFrameHost"] || "ampproject.net",
thirdPartyFrameRegex,
cdn: env["cdnUrl"] || getMetaUrl("runtime-host") || "https://cdn.ampproject.org",
cdnProxyRegex,
localhostRegex: /^https?:\/\/localhost(:\d+)?$/,
errorReporting: env["errorReportingUrl"] || "https://us-central1-amp-error-reporting.cloudfunctions.net/r",
betaErrorReporting: env["betaErrorReportingUrl"] || "https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",
localDev: env["localDev"] || false,
trustedViewerHosts: [/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/, /(^|\.)gmail\.(com|dev)$/],
geoApi: env["geoApiUrl"] || getMetaUrl("amp-geo-api")
};
// src/log.js

@@ -651,2 +667,87 @@ self.__AMP_LOG = self.__AMP_LOG || {

// src/core/data-structures/lru-cache.js
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}
function _defineProperties(target, props) {
for (var i = 0; i < props.length; i++) {
var descriptor = props[i];
descriptor.enumerable = descriptor.enumerable || false;
descriptor.configurable = true;
if ("value" in descriptor)
descriptor.writable = true;
Object.defineProperty(target, descriptor.key, descriptor);
}
}
function _createClass(Constructor, protoProps, staticProps) {
if (protoProps)
_defineProperties(Constructor.prototype, protoProps);
if (staticProps)
_defineProperties(Constructor, staticProps);
return Constructor;
}
var LruCache = /* @__PURE__ */ function() {
function LruCache2(capacity) {
_classCallCheck(this, LruCache2);
this.capacity_ = capacity;
this.size_ = 0;
this.access_ = 0;
this.cache_ = map();
}
_createClass(LruCache2, [{
key: "has",
value: function has(key) {
return !!this.cache_[key];
}
}, {
key: "get",
value: function get(key) {
const cacheable = this.cache_[key];
if (cacheable) {
cacheable.access = ++this.access_;
return cacheable.payload;
}
return void 0;
}
}, {
key: "put",
value: function put(key, payload) {
if (!this.has(key)) {
this.size_++;
}
this.cache_[key] = {
payload,
access: this.access_
};
this.evict_();
}
}, {
key: "evict_",
value: function evict_() {
if (this.size_ <= this.capacity_) {
return;
}
const cache = this.cache_;
let oldest = this.access_ + 1;
let oldestKey;
for (const key in cache) {
const {
access
} = cache[key];
if (access < oldest) {
oldest = access;
oldestKey = key;
}
}
if (oldestKey !== void 0) {
delete cache[oldestKey];
this.size_--;
}
}
}]);
return LruCache2;
}();
// src/url.js

@@ -664,8 +765,8 @@ var SERVING_TYPE_PREFIX = new Set([

cachedAnchorEl = self.document.createElement("a");
urlCache = true ? null : self.__AMP_URL_CACHE || (self.__AMP_URL_CACHE = new LruCache(100));
urlCache = isEsm() ? null : self.__AMP_URL_CACHE || (self.__AMP_URL_CACHE = new LruCache(100));
}
return parseUrlWithA(cachedAnchorEl, url, true ? null : urlCache);
return parseUrlWithA(cachedAnchorEl, url, isEsm() || opt_nocache ? null : urlCache);
}
function parseUrlWithA(anchorEl, url, opt_cache) {
if (true) {
if (isEsm()) {
anchorEl.href = "";

@@ -718,3 +819,3 @@ return new URL(url, anchorEl.href);

function getBootstrapUrl(type) {
const extension = true ? ".mjs" : ".js";
const extension = isEsm() ? ".mjs" : ".js";
if (isProd()) {

@@ -767,3 +868,3 @@ return `${urls.thirdParty}/${version()}/vendor/${type}${extension}`;

// src/preact/component/3p-frame.js
var _excluded4 = ["allow", "bootstrap", "contextOptions", "excludeSandbox", "name", "messageHandler", "options", "sandbox", "src", "type", "title"];
var _excluded4 = ["allow", "excludeSandbox", "name", "messageHandler", "options", "sandbox", "src", "type", "title"];
function _extends4() {

@@ -806,4 +907,2 @@ _extends4 = Object.assign || function(target) {

allow = BLOCK_SYNC_XHR,
bootstrap,
contextOptions,
excludeSandbox,

@@ -837,2 +936,3 @@ name: nameProp,

} = nameAndSrc;
const sentinelRef = useRef2(null);
useLayoutEffect2(() => {

@@ -852,2 +952,5 @@ var _contentRef$current, _contentRef$current$o;

}
if (!sentinelRef.current) {
sentinelRef.current = generateSentinel(win);
}
const context2 = Object.assign(dict({

@@ -857,4 +960,4 @@ "location": {

},
"sentinel": generateSentinel(win)
}), contextOptions);
"sentinel": sentinelRef.current
}));
const attrs = Object.assign(dict({

@@ -868,3 +971,3 @@ "title": title,

"host": parseUrlDeprecated(src2).hostname,
"bootstrap": bootstrap != null ? bootstrap : getBootstrapUrl(type),
"bootstrap": getBootstrapUrl(type),
"type": type,

@@ -876,3 +979,3 @@ "count": count,

});
}, [bootstrap, contextOptions, count, nameProp, options, srcProp, title, type]);
}, [count, nameProp, options, srcProp, title, type]);
useEffect2(() => {

@@ -1019,24 +1122,25 @@ var _iframeRef$current;

}, [localeProp, ref]);
const options = useMemo2(() => ({
action,
colorscheme,
embedAs,
hideCover,
hideCta,
href,
includeCommentParent,
"kd_site": kdSite,
layout,
locale,
numPosts,
orderBy,
ref: refLabel,
share,
showFacepile,
showText,
size,
smallHeader,
tabs
}), [action, colorscheme, embedAs, hideCover, hideCta, href, includeCommentParent, kdSite, layout, locale, numPosts, orderBy, refLabel, share, showFacepile, showText, size, smallHeader, tabs]);
return createElement2(ProxyIframeEmbed, _extends5({
options: {
action,
colorscheme,
embedAs,
hideCover,
hideCta,
href,
includeCommentParent,
"kd_site": kdSite,
layout,
locale,
numPosts,
orderBy,
ref: refLabel,
share,
showFacepile,
showText,
size,
smallHeader,
tabs
},
options,
ref,

@@ -1043,0 +1147,0 @@ title

;
bent;import{cloneElement as e,createContext as t,createElement as r,createRef as n}from"react";import{hydrate as o,render as a}from"react-dom";import{useCallback as l,useContext as i,useEffect as c,useImperativeHandle as s,useLayoutEffect as u,useMemo as f,useRef as p,useState as y}from"react";function b(e,t,n){return r.apply(void 0,arguments)}function d(e){return y(e)}function O(e){return p(e)}function m(e,t){c(e,t)}function g(e,t){u(e,t)}function w(e,t){return l(e,t)}function v(e,t,r){return s(e,t,r)}var{hasOwnProperty:h,toString:j}=Object.prototype;function P(e){return e||{}}import{Children as S,createPortal as x,forwardRef as E}from"react";function _(e){return E(e)}var D=["auto","lazy","eager","unload"],R={auto:0,lazy:1,eager:2,unload:3},A=["as","children","className","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"];function N(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 k(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?N(Object(r),!0).forEach((function(t){F(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):N(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function F(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var M,T=[null,"paint","layout","content","size","size paint","size layout","strict"],C={"position":"relative","width":"100%","height":"100%"},z=_((function(e,t){let{as:r="div",children:n,"className":o,contentAs:a="div",contentClassName:l,contentProps:i,contentRef:c,contentStyle:s,layout:u=!1,paint:f=!1,size:p=!1,"style":y,wrapperClassName:d,wrapperStyle:O}=e;const m=(p?4:0)+(u?2:0)+(f?1:0);return b(r,k(k({},function(e,t){if(null==e)return{};var r,n,o=function(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}(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}(e,A)),{},{ref:t,className:`${o||""} ${d||""}`.trim()||null,style:k(k(k({},y),O),{},{contain:T[m]})}),b(a,k(k({},i),{},{ref:c,className:l,style:k(k({},p&&C),{},{"overflow":f?"hidden":"visible"},s)}),n))})),U=["as","children","className","style","wrapperClassName","wrapperStyle"];function $(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 I(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$(Object(r),!0).forEach((function(t){L(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function L(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function B(){const e=M||(M=t({renderable:!0,playable:!0,loading:"auto"},void 0));return i(e)}_((function(e,t){let{as:r="div",children:n,"className":o,"style":a,wrapperClassName:l,wrapperStyle:i}=e;return b(r,I(I({},function(e,t){if(null==e)return{};var r,n,o=function(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}(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}(e,U)),{},{ref:t,className:`${o||""} ${l||""}`.trim()||null,style:I(I({},a),i)}),n)}));var H=["allow","allowFullScreen","allowTransparency","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"];function G(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 V(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?G(Object(r),!0).forEach((function(t){q(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):G(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function q(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var J=()=>!1,W=_((function(e,t){let{allow:r,allowFullScreen:n,allowTransparency:o,iframeStyle:a,name:l,title:i,matchesMessagingOrigin:c=J,messageHandler:s,ready:u=!0,loading:f,onReadyState:p,sandbox:y,src:d}=e,h=function(e,t){if(null==e)return{};var r,n,o=function(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}(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}(e,H);const{playable:j}=B(),P=function(e){const{loading:t}=B();return function(e,t){const r=R[e]||0,n=R[t]||0,o=Math.max(r,n);return D[o]}(e,t)}(f),S="unload"!==P,x=O(!1),E=function(e){const t=O(null);return t.current=e,t}(p),_=w((e=>{if(e!==x.current){x.current=e;const t=E.current;null==t||t(e?"complete":"loading")}}),[E]),A=O(null);return v(t,(()=>({get readyState(){return x.current?"complete":"loading"},get node(){return A.current}})),[]),g((()=>{S||_(!1)}),[S,_]),m((()=>{const e=A.current;if(!j&&e){const{src:t}=e;(e=>e&&"about:blank"!=e&&!e.includes("#"))(t)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling)}}),[j]),g((()=>{const e=A.current;if(!e||!S)return;const t=e=>{const t=A.current;t&&e.source==t.contentWindow&&c(e.origin)&&s(e)},{defaultView:r}=e.ownerDocument;return r.addEventListener("message",t),()=>r.removeEventListener("message",t)}),[c,s,S,u]),b(z,V(V({},h),{},{layout:!0,size:!0,paint:!0}),S&&u&&b("iframe",{allow:r,allowFullScreen:n,allowTransparency:o,frameborder:"0",loading:P,name:l,onLoad:()=>_(!0),part:"iframe",ref:A,sandbox:y,scrolling:"no",src:d,style:V(V({},a),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:i}))}));W.displayName="IframeEmbed";var{isArray:Z}=Array;function K(e,t){return e}function Q(e,t){try{return function(e){return JSON.parse(e)}(e)}catch(e){return null==t||t(e),null}}var X=self.AMP_CONFIG||{},Y=("string"==typeof X.thirdPartyFrameRegex?new RegExp(X.thirdPartyFrameRegex):X.thirdPartyFrameRegex,("string"==typeof X.cdnProxyRegex?new RegExp(X.cdnProxyRegex):X.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/);function ee(e){if(!self.document||!self.document.head)return null;if(self.location&&Y.test(self.location.origin))return null;const t=self.document.head.querySelector(`meta[name="${e}"]`);return t&&t.getAttribute("content")||null}var te,re=X.thirdPartyUrl||"https://3p.ampproject.net",ne=X.thirdPartyFrameHost||"ampproject.net";function oe(e){const t=Object.getOwnPropertyDescriptor(e,"message");if(null!=t&&t.writable)return e;const{message:r,stack:n}=e,o=new Error(r);for(const t in e)o[t]=e[t];return o.stack=n,o}function ae(e){let t=null,r="";for(const e of arguments)e instanceof Error&&!t?t=oe(e):(r&&(r+=" "),r+=e);return t?r&&(t.message=r+": "+t.message):t=new Error(r),t}function le(e){var t,r;null===(t=(r=self).__AMP_REPORT_ERROR)||void 0===t||t.call(r,e)}function ie(e){return`${re}/2108170213000/vendor/${e}.mjs`}function ce(e){let t;if(e.crypto&&e.crypto.getRandomValues){const 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 se(e){let t=0;for(let r=e;r&&r!=r.parent;r=r.parent)t++;return String(t)+"-"+ce(e)}X.cdnUrl||ee("runtime-host"),X.errorReportingUrl,X.betaErrorReportingUrl,X.localDev,X.geoApiUrl||ee("amp-geo-api"),self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null},self.__AMP_LOG,new Set(["c","v","a","ad"]);var ue=["allow","bootstrap","contextOptions","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"];function fe(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 pe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ye={},be="sync-xhr 'none'",de=["allow-top-navigation-by-user-activation","allow-popups-to-escape-sandbox"].join(" ")+" "+["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts"].join(" "),Oe=_((function(e,t){let{allow:r=be,bootstrap:n,contextOptions:o,excludeSandbox:a,name:l,messageHandler:i,options:c,sandbox:s=de,src:u,type:p,title:y=p}=e,w=function(e,t){if(null==e)return{};var r,n,o=function(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}(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}(e,ue);if(h=r,"number"!=typeof S&&(S=0),S+(j=be).length>h.length||-1===h.indexOf(j,S))throw new Error(`'allow' prop must contain "${be}". Found "${r}".`);var h,j,S;const x=O(null),E=O(null),_=f((()=>(ye[p]||(ye[p]=function(){let e=0;return()=>String(++e)}()),ye[p]())),[p]),[D,R]=d({name:l,src:u}),{name:A,src:N}=D;return g((()=>{var e,t;const r=null===(e=x.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView,a=null!=u?u:r?((i=r).__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=i.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||"d-"+ce(i),"https://"+i.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+`.${ne}/2108170213000/frame.html`):"about:blank";var i;if(l)return void R({name:l,src:a});if(!r)return;const s=Object.assign(P({"location":{"href":r.location.href},"sentinel":se(r)}),o),f=Object.assign(P({"title":y,"type":p,"_context":s}),c);var b;R({name:JSON.stringify(P({"host":(b=a,te||(te=self.document.createElement("a")),function(e,t,r){return e.href="",new URL(t,e.href)}(te,b)).hostname,"bootstrap":null!=n?n:ie(p),"type":p,"count":_,"attributes":f})),src:a})}),[n,o,_,l,c,u,y,p]),m((()=>{var e;const t=null===(e=E.current)||void 0===e?void 0:e.node;t&&t.parentNode.insertBefore(t,t.nextSibling)}),[A]),v(t,(()=>({get readyState(){var e;return null===(e=E.current)||void 0===e?void 0:e.readyState},get node(){var e;return null===(e=E.current)||void 0===e?void 0:e.node}})),[]),b(W,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?fe(Object(r),!0).forEach((function(t){pe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({allow:r,contentRef:x,messageHandler:i,name:A,ref:E,ready:!!A,sandbox:a?void 0:s,src:N,title:y},w))}));Oe.displayName="ProxyIframeEmbed";var me=["action","colorscheme","embedAs","hideCover","hideCta","href","includeCommentParent","kdSite","layout","locale","numPosts","onReady","orderBy","refLabel","requestResize","share","showFacepile","showText","size","smallHeader","style","tabs","title"];function ge(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 we(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ge(Object(r),!0).forEach((function(t){ve(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ge(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ve(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var he=()=>!0,je="Facebook comments",Pe=_((function(e,t){let{action:r,colorscheme:n,embedAs:o,hideCover:a,hideCta:l,href:i,includeCommentParent:c,kdSite:s,layout:u,locale:f,numPosts:p,onReady:y,orderBy:O,refLabel:m,requestResize:v,share:h,showFacepile:j,showText:P,size:S,smallHeader:x,style:E,tabs:_,title:D=je}=e,R=function(e,t){if(null==e)return{};var r,n,o=function(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}(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}(e,me);const[A,N]=d(null),k=w((e=>{var t;const r=null!==(t=Q(e.data))&&void 0!==t?t:function(e){if(!function(e){return"string"==typeof e&&e.startsWith("amp-")&&-1!=e.indexOf("{")}(e))return null;const t=K(e).indexOf("{");return Q(K(e).substr(t),(t=>{!function(e){const t=ae.apply(null,arguments);setTimeout((()=>{throw le(t),t}))}(new Error(`MESSAGING: Failed to parse message: ${e}\n${t.message}`))}))}(e.data);if("ready"==r.action&&(null==y||y()),"embed-size"==r.type){const e=r.height;v?(v(e),N("100%")):N(e)}}),[v,y]),[F,M]=d(f);return g((()=>{var e,r;if(f)return void M(f);const n=null==t||null===(e=t.current)||void 0===e||null===(r=e.ownerDocument)||void 0===r?void 0:r.defaultView;n&&M(n.navigator.language.replace("-","_"))}),[f,t]),b(Oe,we(we({options:{action:r,colorscheme:n,embedAs:o,hideCover:a,hideCta:l,href:i,includeCommentParent:c,"kd_site":s,layout:u,locale:F,numPosts:p,orderBy:O,ref:m,share:h,showFacepile:j,showText:P,size:S,smallHeader:x,tabs:_},ref:t,title:D},R),{},{excludeSandbox:!0,matchesMessagingOrigin:he,messageHandler:k,type:"facebook",style:A?we(we({},E),{},{height:A}):E}))}));Pe.displayName="Facebook";export{Pe as Facebook};
bent;import{cloneElement as e,createContext as t,createElement as r,createRef as n}from"react";import{hydrate as o,render as a}from"react-dom";import{useCallback as l,useContext as c,useEffect as i,useImperativeHandle as s,useLayoutEffect as u,useMemo as f,useRef as p,useState as y}from"react";function b(e,t,n){return r.apply(void 0,arguments)}function d(e){return y(e)}function O(e){return p(e)}function m(e,t){i(e,t)}function g(e,t){u(e,t)}function w(e,t){return f(e,t)}function v(e,t){return l(e,t)}function h(e,t,r){return s(e,t,r)}var{hasOwnProperty:j,toString:P}=Object.prototype;function S(e){return e||{}}import{Children as x,createPortal as E,forwardRef as _}from"react";function D(e){return _(e)}var R=["auto","lazy","eager","unload"],A={auto:0,lazy:1,eager:2,unload:3},N=["as","children","className","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"];function k(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 F(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?k(Object(r),!0).forEach((function(t){M(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):k(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function M(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var T,C=[null,"paint","layout","content","size","size paint","size layout","strict"],z={"position":"relative","width":"100%","height":"100%"},U=D((function(e,t){let{as:r="div",children:n,"className":o,contentAs:a="div",contentClassName:l,contentProps:c,contentRef:i,contentStyle:s,layout:u=!1,paint:f=!1,size:p=!1,"style":y,wrapperClassName:d,wrapperStyle:O}=e;const m=(p?4:0)+(u?2:0)+(f?1:0);return b(r,F(F({},function(e,t){if(null==e)return{};var r,n,o=function(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}(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}(e,N)),{},{ref:t,className:`${o||""} ${d||""}`.trim()||null,style:F(F(F({},y),O),{},{contain:C[m]})}),b(a,F(F({},c),{},{ref:i,className:l,style:F(F({},p&&z),{},{"overflow":f?"hidden":"visible"},s)}),n))})),$=["as","children","className","style","wrapperClassName","wrapperStyle"];function I(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 L(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?I(Object(r),!0).forEach((function(t){B(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):I(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function B(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function H(){const e=T||(T=t({renderable:!0,playable:!0,loading:"auto"},void 0));return c(e)}D((function(e,t){let{as:r="div",children:n,"className":o,"style":a,wrapperClassName:l,wrapperStyle:c}=e;return b(r,L(L({},function(e,t){if(null==e)return{};var r,n,o=function(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}(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}(e,$)),{},{ref:t,className:`${o||""} ${l||""}`.trim()||null,style:L(L({},a),c)}),n)}));var G=["allow","allowFullScreen","allowTransparency","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"];function V(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?V(Object(r),!0).forEach((function(t){J(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):V(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function J(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var W=()=>!1,Z=D((function(e,t){let{allow:r,allowFullScreen:n,allowTransparency:o,iframeStyle:a,name:l,title:c,matchesMessagingOrigin:i=W,messageHandler:s,ready:u=!0,loading:f,onReadyState:p,sandbox:y,src:d}=e,w=function(e,t){if(null==e)return{};var r,n,o=function(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}(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}(e,G);const{playable:j}=H(),P=function(e){const{loading:t}=H();return function(e,t){const r=A[e]||0,n=A[t]||0,o=Math.max(r,n);return R[o]}(e,t)}(f),S="unload"!==P,x=O(!1),E=function(e){const t=O(null);return t.current=e,t}(p),_=v((e=>{if(e!==x.current){x.current=e;const t=E.current;null==t||t(e?"complete":"loading")}}),[E]),D=O(null);return h(t,(()=>({get readyState(){return x.current?"complete":"loading"},get node(){return D.current}})),[]),g((()=>{S||_(!1)}),[S,_]),m((()=>{const e=D.current;if(!j&&e){const{src:t}=e;(e=>e&&"about:blank"!=e&&!e.includes("#"))(t)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling)}}),[j]),g((()=>{const e=D.current;if(!e||!S)return;const t=e=>{const t=D.current;t&&e.source==t.contentWindow&&i(e.origin)&&s(e)},{defaultView:r}=e.ownerDocument;return r.addEventListener("message",t),()=>r.removeEventListener("message",t)}),[i,s,S,u]),b(U,q(q({},w),{},{layout:!0,size:!0,paint:!0}),S&&u&&b("iframe",{allow:r,allowFullScreen:n,allowTransparency:o,frameborder:"0",loading:P,name:l,onLoad:()=>_(!0),part:"iframe",ref:D,sandbox:y,scrolling:"no",src:d,style:q(q({},a),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:c}))}));Z.displayName="IframeEmbed";var{isArray:K}=Array;function Q(e,t){return e}function X(e){const t=Object.getOwnPropertyDescriptor(e,"message");if(null!=t&&t.writable)return e;const{message:r,stack:n}=e,o=new Error(r);for(const t in e)o[t]=e[t];return o.stack=n,o}function Y(e){let t=null,r="";for(const e of arguments)e instanceof Error&&!t?t=X(e):(r&&(r+=" "),r+=e);return t?r&&(t.message=r+": "+t.message):t=new Error(r),t}function ee(e){var t,r;null===(t=(r=self).__AMP_REPORT_ERROR)||void 0===t||t.call(r,e)}function te(e,t){try{return function(e){return JSON.parse(e)}(e)}catch(e){return null==t||t(e),null}}var re=self.AMP_CONFIG||{},ne=("string"==typeof re.thirdPartyFrameRegex?new RegExp(re.thirdPartyFrameRegex):re.thirdPartyFrameRegex,("string"==typeof re.cdnProxyRegex?new RegExp(re.cdnProxyRegex):re.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/);function oe(e){if(!self.document||!self.document.head)return null;if(self.location&&ne.test(self.location.origin))return null;const t=self.document.head.querySelector(`meta[name="${e}"]`);return t&&t.getAttribute("content")||null}var ae,le=re.thirdPartyUrl||"https://3p.ampproject.net",ce=re.thirdPartyFrameHost||"ampproject.net";function ie(e){return`${le}/2108190446000/vendor/${e}.mjs`}function se(e){let t;if(e.crypto&&e.crypto.getRandomValues){const 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}re.cdnUrl||oe("runtime-host"),re.errorReportingUrl,re.betaErrorReportingUrl,re.localDev,re.geoApiUrl||oe("amp-geo-api"),self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null},self.__AMP_LOG,new Set(["c","v","a","ad"]);var ue=["allow","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"];function fe(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 pe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ye={},be="sync-xhr 'none'",de=["allow-top-navigation-by-user-activation","allow-popups-to-escape-sandbox"].join(" ")+" "+["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts"].join(" "),Oe=D((function(e,t){let{allow:r=be,excludeSandbox:n,name:o,messageHandler:a,options:l,sandbox:c=de,src:i,type:s,title:u=s}=e,f=function(e,t){if(null==e)return{};var r,n,o=function(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}(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}(e,ue);if(p=r,"number"!=typeof v&&(v=0),v+(y=be).length>p.length||-1===p.indexOf(y,v))throw new Error(`'allow' prop must contain "${be}". Found "${r}".`);var p,y,v;const j=O(null),P=O(null),x=w((()=>(ye[s]||(ye[s]=function(){let e=0;return()=>String(++e)}()),ye[s]())),[s]),[E,_]=d({name:o,src:i}),{name:D,src:R}=E,A=O(null);return g((()=>{var e,t;const r=null===(e=j.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView,n=null!=i?i:r?((a=r).__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=a.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||"d-"+se(a),"https://"+a.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+`.${ce}/2108190446000/frame.html`):"about:blank";var a;if(o)return void _({name:o,src:n});if(!r)return;A.current||(A.current=function(e){let t=0;for(let r=e;r&&r!=r.parent;r=r.parent)t++;return String(t)+"-"+se(e)}(r));const c=Object.assign(S({"location":{"href":r.location.href},"sentinel":A.current})),f=Object.assign(S({"title":u,"type":s,"_context":c}),l);var p;_({name:JSON.stringify(S({"host":(p=n,ae||(ae=self.document.createElement("a")),function(e,t,r){return e.href="",new URL(t,e.href)}(ae,p)).hostname,"bootstrap":ie(s),"type":s,"count":x,"attributes":f})),src:n})}),[x,o,l,i,u,s]),m((()=>{var e;const t=null===(e=P.current)||void 0===e?void 0:e.node;t&&t.parentNode.insertBefore(t,t.nextSibling)}),[D]),h(t,(()=>({get readyState(){var e;return null===(e=P.current)||void 0===e?void 0:e.readyState},get node(){var e;return null===(e=P.current)||void 0===e?void 0:e.node}})),[]),b(Z,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?fe(Object(r),!0).forEach((function(t){pe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({allow:r,contentRef:j,messageHandler:a,name:D,ref:P,ready:!!D,sandbox:n?void 0:c,src:R,title:u},f))}));Oe.displayName="ProxyIframeEmbed";var me=["action","colorscheme","embedAs","hideCover","hideCta","href","includeCommentParent","kdSite","layout","locale","numPosts","onReady","orderBy","refLabel","requestResize","share","showFacepile","showText","size","smallHeader","style","tabs","title"];function ge(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 we(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ge(Object(r),!0).forEach((function(t){ve(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ge(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ve(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var he=()=>!0,je="Facebook comments",Pe=D((function(e,t){let{action:r,colorscheme:n,embedAs:o,hideCover:a,hideCta:l,href:c,includeCommentParent:i,kdSite:s,layout:u,locale:f,numPosts:p,onReady:y,orderBy:O,refLabel:m,requestResize:h,share:j,showFacepile:P,showText:S,size:x,smallHeader:E,style:_,tabs:D,title:R=je}=e,A=function(e,t){if(null==e)return{};var r,n,o=function(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}(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}(e,me);const[N,k]=d(null),F=v((e=>{var t;const r=null!==(t=te(e.data))&&void 0!==t?t:function(e){if(!function(e){return"string"==typeof e&&e.startsWith("amp-")&&-1!=e.indexOf("{")}(e))return null;const t=Q(e).indexOf("{");return te(Q(e).substr(t),(t=>{!function(e){const t=Y.apply(null,arguments);setTimeout((()=>{throw ee(t),t}))}(new Error(`MESSAGING: Failed to parse message: ${e}\n${t.message}`))}))}(e.data);if("ready"==r.action&&(null==y||y()),"embed-size"==r.type){const e=r.height;h?(h(e),k("100%")):k(e)}}),[h,y]),[M,T]=d(f);g((()=>{var e,r;if(f)return void T(f);const n=null==t||null===(e=t.current)||void 0===e||null===(r=e.ownerDocument)||void 0===r?void 0:r.defaultView;n&&T(n.navigator.language.replace("-","_"))}),[f,t]);const C=w((()=>({action:r,colorscheme:n,embedAs:o,hideCover:a,hideCta:l,href:c,includeCommentParent:i,"kd_site":s,layout:u,locale:M,numPosts:p,orderBy:O,ref:m,share:j,showFacepile:P,showText:S,size:x,smallHeader:E,tabs:D})),[r,n,o,a,l,c,i,s,u,M,p,O,m,j,P,S,x,E,D]);return b(Oe,we(we({options:C,ref:t,title:R},A),{},{excludeSandbox:!0,matchesMessagingOrigin:he,messageHandler:F,type:"facebook",style:N?we(we({},_),{},{height:N}):_}))}));Pe.displayName="Facebook";export{Pe as Facebook};
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */
{
"name": "@ampproject/amp-facebook",
"version": "1.2108170213.0",
"version": "1.2108190446.0",
"description": "AMP HTML amp-facebook Component",

@@ -5,0 +5,0 @@ "author": "The AMP HTML Authors",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc