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

@ampproject/amp-instagram

Package Overview
Dependencies
Maintainers
16
Versions
94
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ampproject/amp-instagram - npm Package Compare versions

Comparing version 1.2107302322.0 to 1.2107302322.1

6

dist/component-preact.js

@@ -1,3 +0,3 @@

var Ne=Object.create,F=Object.defineProperty,Te=Object.getOwnPropertyDescriptor,je=Object.getOwnPropertyNames,De=Object.getPrototypeOf,Fe=Object.prototype.hasOwnProperty,ne=function(e){return F(e,"__esModule",{value:!0})},Ue=function(e,r){for(var t in ne(e),r)F(e,t,{get:r[t],enumerable:!0})},Ge=function(e,r,t){if(r&&"object"==typeof r||"function"==typeof r)for(var n,o=je(r),a=0,c=o.length;a<c;a++)n=o[a],!Fe.call(e,n)&&"default"!==n&&F(e,n,{get:function(e){return r[e]}.bind(null,n),enumerable:!(t=Te(r,n))||t.enumerable});return e},U=function(e){return Ge(ne(F(null!=e?Ne(De(e)):{},"default",e&&e.__esModule&&"default"in e?{get:function(){return e.default},enumerable:!0}:{value:e,enumerable:!0})),e)};Ue(exports,{Instagram:function(){return Le}});var M,C=U(require("preact")),oe=U(require("preact")),u=U(require("preact/hooks"));function p(e,r,t){return C.createElement.apply(void 0,arguments)}function ae(e){return C.createContext(e,void 0)}function G(e){return u.useState(e)}function N(e){return u.useRef(e)}function ie(e,r){u.useEffect(e,r)}function H(e,r){u.useLayoutEffect(e,r)}function se(e){return u.useContext(e)}function k(e,r){return u.useCallback(e,r)}function Q(e,r,t){return u.useImperativeHandle(e,r,t)}function V(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var c={AUTO:"auto",LAZY:"lazy",EAGER:"eager",UNLOAD:"unload"},He=[c.AUTO,c.LAZY,c.EAGER,c.UNLOAD],ue=(V(M={},c.AUTO,0),V(M,c.LAZY,1),V(M,c.EAGER,2),V(M,c.UNLOAD,3),M);function fe(e,r){var t=ue[e]||0,n=ue[r]||0,o=Math.max(t,n);return He[o]}var T={UPGRADING:"upgrading",BUILDING:"building",MOUNTING:"mounting",LOADING:"loading",COMPLETE:"complete",ERROR:"error"},$=U(require("preact/compat"));function y(e){return $.forwardRef(e)}var ke=["as","children","className","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"];function le(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 v(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?le(Object(t),!0).forEach((function(r){Ve(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):le(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function Ve(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function $e(e,r){if(null==e)return{};var t,n,o=ze(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 ze(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 Be=[null,"paint","layout","content","size","size paint","size layout","strict"],We={position:"relative",width:"100%",height:"100%"};function qe(e,r){var t=e.as,n=void 0===t?"div":t,o=e.children,a=e.className,c=e.contentAs,i=void 0===c?"div":c,l=e.contentClassName,u=e.contentProps,s=e.contentRef,f=e.contentStyle,y=e.layout,b=void 0!==y&&y,O=e.paint,d=void 0!==O&&O,g=e.size,m=void 0!==g&&g,w=e.style,j=e.wrapperClassName,h=e.wrapperStyle,P=(m?4:0)+(b?2:0)+(d?1:0);return p(n,v(v({},$e(e,ke)),{},{ref:r,className:"".concat(a||""," ").concat(j||"").trim()||null,style:v(v(v({},w),h),{},{contain:Be[P]})}),p(i,v(v({},u),{},{ref:s,className:l,style:v(v({},m&&We),{},{overflow:d?"hidden":"visible"},f)}),o))}var Y=y(qe),Je=["as","children","className","style","wrapperClassName","wrapperStyle"];function ce(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 z(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ce(Object(t),!0).forEach((function(r){Qe(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ce(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function Qe(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Ye(e,r){if(null==e)return{};var t,n,o=Ze(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 Ze(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 Ke(e,r){var t=e.as,n=void 0===t?"div":t,o=e.children,a=e.className,c=e.style,i=e.wrapperClassName,l=e.wrapperStyle;return p(n,z(z({},Ye(e,Je)),{},{ref:r,className:"".concat(a||""," ").concat(i||"").trim()||null,style:z(z({},c),l)}),o)}var pe,Xe=y(Ke);function Z(e){var r=N(null);return r.current=e,r}function er(){return pe||(pe=ae({renderable:!0,playable:!0,loading:c.AUTO}))}function K(){return se(er())}function me(e){return fe(e,K().loading)}var rr=["allow","allowFullScreen","allowTransparency","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"];function de(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 B(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?de(Object(t),!0).forEach((function(r){tr(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):de(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function tr(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function nr(e,r){if(null==e)return{};var t,n,o=or(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 or(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 ar=function(){return!1},ir="about:blank",sr=function(e){return e&&e!=ir&&!e.includes("#")};function ur(e,r){var t=e.allow,n=e.allowFullScreen,o=e.allowTransparency,a=e.iframeStyle,i=e.name,l=e.title,u=e.matchesMessagingOrigin,s=void 0===u?ar:u,f=e.messageHandler,y=e.ready,b=void 0===y||y,O=e.loading,d=e.onReadyState,g=e.sandbox,m=e.src,v=nr(e,rr),w=K().playable,j=me(O),h=j!==c.UNLOAD,P=N(!1),S=Z(d),E=k((function(e){if(e!==P.current){P.current=e;var r=S.current;null==r||r(e?T.COMPLETE:T.LOADING)}}),[S]),A=N(null);return Q(r,(function(){return{get readyState(){return P.current?T.COMPLETE:T.LOADING},get node(){return A.current}}}),[]),H((function(){h||E(!1)}),[h,E]),ie((function(){var e=A.current;if(!w&&e){var r=e.src;if(sr(r))e.src=e.src;else e.parentNode.insertBefore(e,e.nextSibling)}}),[w]),H((function(){var e=A.current;if(e&&h){var r=function(e){var r=A.current;!r||e.source!=r.contentWindow||!s(e.origin)||f(e)},t=e.ownerDocument.defaultView;return t.addEventListener("message",r),function(){return t.removeEventListener("message",r)}}}),[s,f,h,b]),p(Y,B(B({},v),{},{layout:!0,size:!0,paint:!0}),h&&b&&p("iframe",{allow:t,allowFullScreen:n,allowTransparency:o,frameborder:"0",loading:j,name:i,onLoad:function(){return E(!0)},part:"iframe",ref:A,sandbox:g,scrolling:"no",src:m,style:B(B({},a),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:l}))}var X=y(ur);X.displayName="IframeEmbed";var ve=Object.prototype,vt=ve.hasOwnProperty,gt=ve.toString;function ee(e){return e||{}}var W=Array.isArray,f=self.AMP_CONFIG||{},vr=("string"==typeof f.thirdPartyFrameRegex?new RegExp(f.thirdPartyFrameRegex):f.thirdPartyFrameRegex)||/^d-\d+\.ampproject\.net$/,_e=("string"==typeof f.cdnProxyRegex?new RegExp(f.cdnProxyRegex):f.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;function Pe(e){if(!self.document||!self.document.head||self.location&&_e.test(self.location.origin))return null;var r=self.document.head.querySelector('meta[name="'.concat(e,'"]'));return r&&r.getAttribute("content")||null}var gr={thirdParty:f.thirdPartyUrl||"https://3p.ampproject.net",thirdPartyFrameHost:f.thirdPartyFrameHost||"ampproject.net",thirdPartyFrameRegex:vr,cdn:f.cdnUrl||Pe("runtime-host")||"https://cdn.ampproject.org",cdnProxyRegex:_e,localhostRegex:/^https?:\/\/localhost(:\d+)?$/,errorReporting:f.errorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r",betaErrorReporting:f.betaErrorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",localDev:f.localDev||!1,trustedViewerHosts:[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/,/(^|\.)gmail\.(com|dev)$/],geoApi:f.geoApiUrl||Pe("amp-geo-api")};self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var Vn=self.__AMP_LOG;function Re(e){return e.data}function we(e){return JSON.parse(e)}var hr=["captioned","requestResize","shortcode","title"];function Ce(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 xr(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?Ce(Object(t),!0).forEach((function(r){Er(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ce(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function Er(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Me(e,r){return Sr(e)||Ar(e,r)||Or(e,r)||br()}function br(){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 Or(e,r){if(e){if("string"==typeof e)return Ie(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Ie(e,r)}}function Ie(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 Ar(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,a=[],c=!0,i=!1;try{for(t=t.call(e);!(c=(n=t.next()).done)&&(a.push(n.value),!r||a.length!==r);c=!0);}catch(e){i=!0,o=e}finally{try{!c&&null!=t.return&&t.return()}finally{if(i)throw o}}return a}}function Sr(e){if(Array.isArray(e))return e}function _r(e,r){if(null==e)return{};var t,n,o=Pr(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 Pr(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 Rr=ee(),wr=function(e){return"https://www.instagram.com"===e};function Cr(e,r){var t=e.captioned,n=e.requestResize,o=e.shortcode,a=e.title,c=void 0===a?"Instagram":a,i=_r(e,hr),l=Me(G(Rr),2),u=l[0],s=l[1],f=Me(G(0),2),y=f[0],b=f[1],O=k((function(e){var r=we(Re(e));if("MEASURE"==r.type&&r.details){var t=r.details.height;n&&n(t),s(ee({height:t})),b(1)}}),[n]);return p(X,xr({allowTransparency:!0,iframeStyle:{opacity:y},matchesMessagingOrigin:wr,messageHandler:O,ref:r,src:"https://www.instagram.com/p/"+encodeURIComponent(o)+"/embed/"+(t?"captioned/":"")+"?cr=1&v=12",title:c,wrapperStyle:u},i))}var Le=y(Cr);Le.displayName="Instagram";
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */
//# sourceMappingURL=component-preact.js.map
;
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,t){for(var r in __markAsModule(e),t)__defProp(e,r,{get:t[r],enumerable:!0})},__reExport=function(e,t,r){if(t&&"object"==typeof t||"function"==typeof t)for(var n,o=__getOwnPropNames(t),a=0,i=o.length;a<i;a++)n=o[a],__hasOwnProp.call(e,n)||"default"===n||__defProp(e,n,{get:function(e){return t[e]}.bind(null,n),enumerable:!(r=__getOwnPropDesc(t,n))||r.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,{Instagram:function(){return Instagram}});var _MAP,preact=__toModule(require("preact")),preactDOM=__toModule(require("preact")),hooks=__toModule(require("preact/hooks"));function createElement2(e,t,r){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,t){hooks.useEffect(e,t)}function useLayoutEffect2(e,t){hooks.useLayoutEffect(e,t)}function useContext2(e){return hooks.useContext(e)}function useCallback2(e,t){return hooks.useCallback(e,t)}function useImperativeHandle2(e,t,r){return hooks.useImperativeHandle(e,t,r)}function _defineProperty(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,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,t){var r=MAP[e]||0,n=MAP[t]||0,o=Math.max(r,n);return ORDER[o]}var ReadyState={UPGRADING:"upgrading",BUILDING:"building",MOUNTING:"mounting",LOADING:"loading",COMPLETE:"complete",ERROR:"error"},compat=__toModule(require("preact/compat"));function forwardRef2(e){return compat.forwardRef(e)}var _excluded=["as","children","className","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"];function ownKeys(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 _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach((function(t){_defineProperty2(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _defineProperty2(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _objectWithoutProperties(e,t){if(null==e)return{};var r,n,o=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}var CONTAIN=[null,"paint","layout","content","size","size paint","size layout","strict"],SIZE_CONTENT_STYLE={"position":"relative","width":"100%","height":"100%"};function ContainWrapperWithRef(e,t){var r=e.as,n=void 0===r?"div":r,o=e.children,a=e.className,i=e.contentAs,c=void 0===i?"div":i,u=e.contentClassName,l=e.contentProps,s=e.contentRef,p=e.contentStyle,f=e.layout,d=void 0!==f&&f,y=e.paint,b=void 0!==y&&y,_=e.size,O=void 0!==_&&_,g=e.style,m=e.wrapperClassName,P=e.wrapperStyle,j=(O?4:0)+(d?2:0)+(b?1:0);return createElement2(n,_objectSpread(_objectSpread({},_objectWithoutProperties(e,_excluded)),{},{ref:t,className:"".concat(a||""," ").concat(m||"").trim()||null,style:_objectSpread(_objectSpread(_objectSpread({},g),P),{},{contain:CONTAIN[j]})}),createElement2(c,_objectSpread(_objectSpread({},l),{},{ref:s,className:u,style:_objectSpread(_objectSpread({},O&&SIZE_CONTENT_STYLE),{},{"overflow":b?"hidden":"visible"},p)}),o))}var ContainWrapper=forwardRef2(ContainWrapperWithRef),_excluded2=["as","children","className","style","wrapperClassName","wrapperStyle"];function ownKeys2(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 _objectSpread2(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys2(Object(r),!0).forEach((function(t){_defineProperty3(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys2(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _defineProperty3(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _objectWithoutProperties2(e,t){if(null==e)return{};var r,n,o=_objectWithoutPropertiesLoose2(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function _objectWithoutPropertiesLoose2(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}function WrapperWithRef(e,t){var r=e.as,n=void 0===r?"div":r,o=e.children,a=e.className,i=e.style,c=e.wrapperClassName,u=e.wrapperStyle;return createElement2(n,_objectSpread2(_objectSpread2({},_objectWithoutProperties2(e,_excluded2)),{},{ref:t,className:"".concat(a||""," ").concat(c||"").trim()||null,style:_objectSpread2(_objectSpread2({},i),u)}),o)}var context,Wrapper=forwardRef2(WrapperWithRef);function useValueRef(e){var t=useRef2(null);return t.current=e,t}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,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 _objectSpread3(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys3(Object(r),!0).forEach((function(t){_defineProperty4(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys3(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _defineProperty4(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _objectWithoutProperties3(e,t){if(null==e)return{};var r,n,o=_objectWithoutPropertiesLoose3(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function _objectWithoutPropertiesLoose3(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}var DEFAULT_MATCHES_MESSAGING_ORIGIN=function(){return!1},ABOUT_BLANK="about:blank",canResetSrc=function(e){return e&&e!=ABOUT_BLANK&&!e.includes("#")};function IframeEmbedWithRef(e,t){var r=e.allow,n=e.allowFullScreen,o=e.allowTransparency,a=e.iframeStyle,i=e.name,c=e.title,u=e.matchesMessagingOrigin,l=void 0===u?DEFAULT_MATCHES_MESSAGING_ORIGIN:u,s=e.messageHandler,p=e.ready,f=void 0===p||p,d=e.loading,y=e.onReadyState,b=e.sandbox,_=e.src,O=_objectWithoutProperties3(e,_excluded3),g=useAmpContext().playable,m=useLoading(d),P=m!==Loading.UNLOAD,j=useRef2(!1),v=useValueRef(y),h=useCallback2((function(e){if(e!==j.current){j.current=e;var t=v.current;null==t||t(e?ReadyState.COMPLETE:ReadyState.LOADING)}}),[v]),w=useRef2(null);return useImperativeHandle2(t,(function(){return{get readyState(){return j.current?ReadyState.COMPLETE:ReadyState.LOADING},get node(){return w.current}}}),[]),useLayoutEffect2((function(){P||h(!1)}),[P,h]),useEffect2((function(){var e=w.current;if(!g&&e){var t=e.src;canResetSrc(t)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling)}}),[g]),useLayoutEffect2((function(){var e=w.current;if(e&&P){var t=function(e){var t=w.current;t&&e.source==t.contentWindow&&l(e.origin)&&s(e)},r=e.ownerDocument.defaultView;return r.addEventListener("message",t),function(){return r.removeEventListener("message",t)}}}),[l,s,P,f]),createElement2(ContainWrapper,_objectSpread3(_objectSpread3({},O),{},{layout:!0,size:!0,paint:!0}),P&&f&&createElement2("iframe",{allow:r,allowFullScreen:n,allowTransparency:o,frameborder:"0",loading:m,name:i,onLoad:function(){return h(!0)},part:"iframe",ref:w,sandbox:b,scrolling:"no",src:_,style:_objectSpread3(_objectSpread3({},a),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:c}))}var IframeEmbed=forwardRef2(IframeEmbedWithRef);IframeEmbed.displayName="IframeEmbed";var _Object$prototype=Object.prototype,hasOwn_=_Object$prototype.hasOwnProperty,toString_=_Object$prototype.toString;function dict(e){return e||{}}var isArray=Array.isArray,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 t=self.document.head.querySelector('meta[name="'.concat(e,'"]'));return t&&t.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 getData(e){return e.data}function parseJson(e){return JSON.parse(e)}var _excluded4=["captioned","requestResize","shortcode","title"];function ownKeys4(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 _objectSpread4(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys4(Object(r),!0).forEach((function(t){_defineProperty5(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys4(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _defineProperty5(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_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 _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _iterableToArrayLimit(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,c=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(c)throw o}}return a}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _objectWithoutProperties4(e,t){if(null==e)return{};var r,n,o=_objectWithoutPropertiesLoose4(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function _objectWithoutPropertiesLoose4(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}var NO_HEIGHT_STYLE=dict(),MATCHES_MESSAGING_ORIGIN=function(e){return"https://www.instagram.com"===e};function InstagramWithRef(e,t){var r=e.captioned,n=e.requestResize,o=e.shortcode,a=e.title,i=void 0===a?"Instagram":a,c=_objectWithoutProperties4(e,_excluded4),u=_slicedToArray(useState2(NO_HEIGHT_STYLE),2),l=u[0],s=u[1],p=_slicedToArray(useState2(0),2),f=p[0],d=p[1],y=useCallback2((function(e){var t=parseJson(getData(e));if("MEASURE"==t.type&&t.details){var r=t.details.height;n&&n(r),s(dict({"height":r})),d(1)}}),[n]);return createElement2(IframeEmbed,_objectSpread4({allowTransparency:!0,iframeStyle:{opacity:f},matchesMessagingOrigin:MATCHES_MESSAGING_ORIGIN,messageHandler:y,ref:t,src:"https://www.instagram.com/p/"+encodeURIComponent(o)+"/embed/"+(r?"captioned/":"")+"?cr=1&v=12",title:i,wrapperStyle:l},c))}var Instagram=forwardRef2(InstagramWithRef);Instagram.displayName="Instagram";
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */

@@ -1,3 +0,3 @@

import{cloneElement as yt,createContext as ye,createElement as xe,createRef as _t}from"preact";import{hydrate as Ot,render as Et}from"preact";import{useCallback as Se,useContext as ve,useEffect as _e,useImperativeHandle as Ae,useLayoutEffect as be,useMemo as bt,useRef as Oe,useState as Ee}from"preact/hooks";function c(e,t,r){return xe.apply(void 0,arguments)}function J(e){return ye(e,void 0)}function w(e){return Ee(e)}function S(e){return Oe(e)}function W(e,t){_e(e,t)}function C(e,t){be(e,t)}function Q(e){return ve(e)}function M(e,t){return Se(e,t)}function U(e,t,r){return Ae(e,t,r)}var u={AUTO:"auto",LAZY:"lazy",EAGER:"eager",UNLOAD:"unload"},Pe=[u.AUTO,u.LAZY,u.EAGER,u.UNLOAD],Y={[u.AUTO]:0,[u.LAZY]:1,[u.EAGER]:2,[u.UNLOAD]:3};function Z(e,t){let r=Y[e]||0,n=Y[t]||0,a=Math.max(r,n);return Pe[a]}var A={UPGRADING:"upgrading",BUILDING:"building",MOUNTING:"mounting",LOADING:"loading",COMPLETE:"complete",ERROR:"error"};import{Children as wt,createPortal as Rt,forwardRef as Re}from"preact/compat";function m(e){return Re(e)}var we=["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 l(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){Ce(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 Ce(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Me(e,t){if(null==e)return{};var r,n,a=Ne(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(a[r]=e[r]))}return a}function Ne(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&(a[r]=e[r]);return a}var Le=[null,"paint","layout","content","size","size paint","size layout","strict"],Ie={position:"relative",width:"100%",height:"100%"};function je(e,t){let{as:r="div",children:n,className:a,contentAs:o="div",contentClassName:i,contentProps:s,contentRef:u,contentStyle:p,layout:f=!1,paint:y=!1,size:O=!1,style:m,wrapperClassName:b,wrapperStyle:g}=e,d=(O?4:0)+(f?2:0)+(y?1:0);return c(r,l(l({},Me(e,we)),{},{ref:t,className:`${a||""} ${b||""}`.trim()||null,style:l(l(l({},m),g),{},{contain:Le[d]})}),c(o,l(l({},s),{},{ref:u,className:i,style:l(l({},O&&Ie),{},{overflow:y?"hidden":"visible"},p)}),n))}var k=m(je),De=["as","children","className","style","wrapperClassName","wrapperStyle"];function X(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 N(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?X(Object(r),!0).forEach((function(t){Te(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):X(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Te(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Fe(e,t){if(null==e)return{};var r,n,a=Ue(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(a[r]=e[r]))}return a}function Ue(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&(a[r]=e[r]);return a}function ke(e,t){let{as:r="div",children:n,className:a,style:o,wrapperClassName:l,wrapperStyle:i}=e;return c(r,N(N({},Fe(e,De)),{},{ref:t,className:`${a||""} ${l||""}`.trim()||null,style:N(N({},o),i)}),n)}var ee,$e=m(ke);function $(e){let t=S(null);return t.current=e,t}function Ve(){return ee||(ee=J({renderable:!0,playable:!0,loading:u.AUTO}))}function V(){return Q(Ve())}function te(e){let{loading:t}=V();return Z(e,t)}var Ge=["allow","allowFullScreen","allowTransparency","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"];function re(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?re(Object(r),!0).forEach((function(t){He(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):re(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function He(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ze(e,t){if(null==e)return{};var r,n,a=qe(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(a[r]=e[r]))}return a}function qe(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&(a[r]=e[r]);return a}var Be=()=>!1,Je="about:blank",We=e=>e&&e!=Je&&!e.includes("#");function Qe(e,t){let{allow:r,allowFullScreen:n,allowTransparency:a,iframeStyle:o,name:l,title:i,matchesMessagingOrigin:s=Be,messageHandler:p,ready:f=!0,loading:y,onReadyState:O,sandbox:m,src:b}=e,g=ze(e,Ge),{playable:d}=V(),w=te(y),h=w!==u.UNLOAD,j=S(!1),P=$(O),v=M((e=>{if(e!==j.current){j.current=e;let t=P.current;null==t||t(e?A.COMPLETE:A.LOADING)}}),[P]),E=S(null);return U(t,(()=>({get readyState(){return j.current?A.COMPLETE:A.LOADING},get node(){return E.current}})),[]),C((()=>{h||v(!1)}),[h,v]),W((()=>{let e=E.current;if(!d&&e){let{src:t}=e;We(t)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling)}}),[d]),C((()=>{let e=E.current;if(!e||!h)return;let t=e=>{let t=E.current;!t||e.source!=t.contentWindow||!s(e.origin)||p(e)},{defaultView:r}=e.ownerDocument;return r.addEventListener("message",t),()=>r.removeEventListener("message",t)}),[s,p,h,f]),c(k,L(L({},g),{},{layout:!0,size:!0,paint:!0}),h&&f&&c("iframe",{allow:r,allowFullScreen:n,allowTransparency:a,frameborder:"0",loading:w,name:l,onLoad:()=>v(!0),part:"iframe",ref:E,sandbox:m,scrolling:"no",src:b,style:L(L({},o),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:i}))}var G=m(Qe);G.displayName="IframeEmbed";var{hasOwnProperty:ur,toString:cr}=Object.prototype;function H(e){return e||{}}var a=self.AMP_CONFIG||{},rt=("string"==typeof a.thirdPartyFrameRegex?new RegExp(a.thirdPartyFrameRegex):a.thirdPartyFrameRegex)||/^d-\d+\.ampproject\.net$/,pe=("string"==typeof a.cdnProxyRegex?new RegExp(a.cdnProxyRegex):a.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;function me(e){if(!self.document||!self.document.head||self.location&&pe.test(self.location.origin))return null;let t=self.document.head.querySelector(`meta[name="${e}"]`);return t&&t.getAttribute("content")||null}var nt={thirdParty:a.thirdPartyUrl||"https://3p.ampproject.net",thirdPartyFrameHost:a.thirdPartyFrameHost||"ampproject.net",thirdPartyFrameRegex:rt,cdn:a.cdnUrl||me("runtime-host")||"https://cdn.ampproject.org",cdnProxyRegex:pe,localhostRegex:/^https?:\/\/localhost(:\d+)?$/,errorReporting:a.errorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r",betaErrorReporting:a.betaErrorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",localDev:a.localDev||!1,trustedViewerHosts:[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/,/(^|\.)gmail\.(com|dev)$/],geoApi:a.geoApiUrl||me("amp-geo-api")};self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var Dn=self.__AMP_LOG;function de(e){return e.data}function ge(e){return JSON.parse(e)}var st=["captioned","requestResize","shortcode","title"];function he(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 it(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?he(Object(r),!0).forEach((function(t){at(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):he(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function at(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ut(e,t){if(null==e)return{};var r,n,a=ct(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(a[r]=e[r]))}return a}function ct(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&(a[r]=e[r]);return a}var lt=H(),ft=e=>"https://www.instagram.com"===e;function pt(e,t){let{captioned:r,requestResize:n,shortcode:a,title:o="Instagram"}=e,l=ut(e,st),{0:i,1:s}=w(lt),{0:u,1:p}=w(0),f=M((e=>{let t=ge(de(e));if("MEASURE"==t.type&&t.details){let e=t.details.height;n&&n(e),s(H({height:e})),p(1)}}),[n]);return c(G,it({allowTransparency:!0,iframeStyle:{opacity:u},matchesMessagingOrigin:ft,messageHandler:f,ref:t,src:"https://www.instagram.com/p/"+encodeURIComponent(a)+"/embed/"+(r?"captioned/":"")+"?cr=1&v=12",title:o,wrapperStyle:i},l))}var mt=m(pt);mt.displayName="Instagram";export{mt as Instagram};
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */
//# sourceMappingURL=component-preact.module.js.map
;
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 c,useContext as l,useEffect as i,useImperativeHandle as s,useLayoutEffect as u,useMemo as p,useRef as f,useState as y}from"preact/hooks";function b(e,t,n){return r.apply(void 0,arguments)}function O(e){return y(e)}function g(e){return f(e)}function m(e,t){u(e,t)}function d(e,t){return c(e,t)}var w=["auto","lazy","eager","unload"],j={auto:0,lazy:1,eager:2,unload:3};import{Children as P,createPortal as h,forwardRef as v}from"preact/compat";function S(e){return v(e)}var x=["as","children","className","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"];function E(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 D(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?E(Object(r),!0).forEach((function(t){N(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function N(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var R,z=[null,"paint","layout","content","size","size paint","size layout","strict"],_={"position":"relative","width":"100%","height":"100%"},k=S((function(e,t){let{as:r="div",children:n,"className":o,contentAs:a="div",contentClassName:c,contentProps:l,contentRef:i,contentStyle:s,layout:u=!1,paint:p=!1,size:f=!1,"style":y,wrapperClassName:O,wrapperStyle:g}=e;const m=(f?4:0)+(u?2:0)+(p?1:0);return b(r,D(D({},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,x)),{},{ref:t,className:`${o||""} ${O||""}`.trim()||null,style:D(D(D({},y),g),{},{contain:z[m]})}),b(a,D(D({},l),{},{ref:i,className:c,style:D(D({},f&&_),{},{"overflow":p?"hidden":"visible"},s)}),n))})),A=["as","children","className","style","wrapperClassName","wrapperStyle"];function F(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?F(Object(r),!0).forEach((function(t){M(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):F(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}function C(){const e=R||(R=t({renderable:!0,playable:!0,loading:"auto"},void 0));return l(e)}S((function(e,t){let{as:r="div",children:n,"className":o,"style":a,wrapperClassName:c,wrapperStyle:l}=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,A)),{},{ref:t,className:`${o||""} ${c||""}`.trim()||null,style:I(I({},a),l)}),n)}));var U=["allow","allowFullScreen","allowTransparency","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"];function L(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 $(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?L(Object(r),!0).forEach((function(t){G(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):L(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function G(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var H=()=>!1,T=S((function(e,t){let{allow:r,allowFullScreen:n,allowTransparency:o,iframeStyle:a,name:c,title:l,matchesMessagingOrigin:u=H,messageHandler:p,ready:f=!0,loading:y,onReadyState:O,sandbox:P,src:h}=e,v=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);const{playable:S}=C(),x=function(e){const{loading:t}=C();return function(e,t){const r=j[e]||0,n=j[t]||0,o=Math.max(r,n);return w[o]}(e,t)}(y),E="unload"!==x,D=g(!1),N=function(e){const t=g(null);return t.current=e,t}(O),R=d((e=>{if(e!==D.current){D.current=e;const t=N.current;null==t||t(e?"complete":"loading")}}),[N]),z=g(null);return function(e,t,r){s(e,(()=>({get readyState(){return D.current?"complete":"loading"},get node(){return z.current}})),[])}(t),m((()=>{E||R(!1)}),[E,R]),i((()=>{const e=z.current;if(!S&&e){const{src:t}=e;(e=>e&&"about:blank"!=e&&!e.includes("#"))(t)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling)}}),[S]),m((()=>{const e=z.current;if(!e||!E)return;const t=e=>{const t=z.current;t&&e.source==t.contentWindow&&u(e.origin)&&p(e)},{defaultView:r}=e.ownerDocument;return r.addEventListener("message",t),()=>r.removeEventListener("message",t)}),[u,p,E,f]),b(k,$($({},v),{},{layout:!0,size:!0,paint:!0}),E&&f&&b("iframe",{allow:r,allowFullScreen:n,allowTransparency:o,frameborder:"0",loading:x,name:c,onLoad:()=>R(!0),part:"iframe",ref:z,sandbox:P,scrolling:"no",src:h,style:$($({},a),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:l}))}));T.displayName="IframeEmbed";var{hasOwnProperty:q,toString:V}=Object.prototype;function B(e){return e||{}}var J=self.AMP_CONFIG||{},W=("string"==typeof J.thirdPartyFrameRegex?new RegExp(J.thirdPartyFrameRegex):J.thirdPartyFrameRegex,("string"==typeof J.cdnProxyRegex?new RegExp(J.cdnProxyRegex):J.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/);function Z(e){if(!self.document||!self.document.head)return null;if(self.location&&W.test(self.location.origin))return null;const t=self.document.head.querySelector(`meta[name="${e}"]`);return t&&t.getAttribute("content")||null}J.thirdPartyUrl,J.thirdPartyFrameHost,J.cdnUrl||Z("runtime-host"),J.errorReportingUrl,J.betaErrorReportingUrl,J.localDev,J.geoApiUrl||Z("amp-geo-api"),self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null},self.__AMP_LOG;var K=["captioned","requestResize","shortcode","title"];function Q(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 X(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Y=B(),ee=e=>"https://www.instagram.com"===e,te=S((function(e,t){let{captioned:r,requestResize:n,shortcode:o,title:a="Instagram"}=e,c=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,K);const{0:l,1:i}=O(Y),{0:s,1:u}=O(0),p=d((e=>{const t=(r=function(e){return e.data}(e),JSON.parse(r));var r;if("MEASURE"==t.type&&t.details){const e=t.details.height;n&&n(e),i(B({"height":e})),u(1)}}),[n]);return b(T,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(r),!0).forEach((function(t){X(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Q(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({allowTransparency:!0,iframeStyle:{opacity:s},matchesMessagingOrigin:ee,messageHandler:p,ref:t,src:"https://www.instagram.com/p/"+encodeURIComponent(o)+"/embed/"+(r?"captioned/":"")+"?cr=1&v=12",title:a,wrapperStyle:l},c))}));te.displayName="Instagram";export{te as Instagram};
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */

@@ -1,3 +0,3 @@

var Ne=Object.create,F=Object.defineProperty,Te=Object.getOwnPropertyDescriptor,je=Object.getOwnPropertyNames,De=Object.getPrototypeOf,Fe=Object.prototype.hasOwnProperty,ne=function(e){return F(e,"__esModule",{value:!0})},Ue=function(e,r){for(var t in ne(e),r)F(e,t,{get:r[t],enumerable:!0})},Ge=function(e,r,t){if(r&&"object"==typeof r||"function"==typeof r)for(var n,o=je(r),a=0,c=o.length;a<c;a++)n=o[a],!Fe.call(e,n)&&"default"!==n&&F(e,n,{get:function(e){return r[e]}.bind(null,n),enumerable:!(t=Te(r,n))||t.enumerable});return e},U=function(e){return Ge(ne(F(null!=e?Ne(De(e)):{},"default",e&&e.__esModule&&"default"in e?{get:function(){return e.default},enumerable:!0}:{value:e,enumerable:!0})),e)};Ue(exports,{Instagram:function(){return Le}});var M,C=U(require("react")),oe=U(require("react-dom")),u=U(require("react"));function p(e,r,t){return C.createElement.apply(void 0,arguments)}function ae(e){return C.createContext(e,void 0)}function G(e){return u.useState(e)}function N(e){return u.useRef(e)}function ie(e,r){u.useEffect(e,r)}function H(e,r){u.useLayoutEffect(e,r)}function se(e){return u.useContext(e)}function k(e,r){return u.useCallback(e,r)}function Q(e,r,t){return u.useImperativeHandle(e,r,t)}function V(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var c={AUTO:"auto",LAZY:"lazy",EAGER:"eager",UNLOAD:"unload"},He=[c.AUTO,c.LAZY,c.EAGER,c.UNLOAD],ue=(V(M={},c.AUTO,0),V(M,c.LAZY,1),V(M,c.EAGER,2),V(M,c.UNLOAD,3),M);function fe(e,r){var t=ue[e]||0,n=ue[r]||0,o=Math.max(t,n);return He[o]}var T={UPGRADING:"upgrading",BUILDING:"building",MOUNTING:"mounting",LOADING:"loading",COMPLETE:"complete",ERROR:"error"},$=U(require("react"));function y(e){return $.forwardRef(e)}var ke=["as","children","className","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"];function le(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 v(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?le(Object(t),!0).forEach((function(r){Ve(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):le(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function Ve(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function $e(e,r){if(null==e)return{};var t,n,o=ze(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 ze(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 Be=[null,"paint","layout","content","size","size paint","size layout","strict"],We={position:"relative",width:"100%",height:"100%"};function qe(e,r){var t=e.as,n=void 0===t?"div":t,o=e.children,a=e.className,c=e.contentAs,i=void 0===c?"div":c,l=e.contentClassName,u=e.contentProps,f=e.contentRef,s=e.contentStyle,y=e.layout,b=void 0!==y&&y,O=e.paint,d=void 0!==O&&O,g=e.size,m=void 0!==g&&g,w=e.style,j=e.wrapperClassName,h=e.wrapperStyle,P=(m?4:0)+(b?2:0)+(d?1:0);return p(n,v(v({},$e(e,ke)),{},{ref:r,className:"".concat(a||""," ").concat(j||"").trim()||null,style:v(v(v({},w),h),{},{contain:Be[P]})}),p(i,v(v({},u),{},{ref:f,className:l,style:v(v({},m&&We),{},{overflow:d?"hidden":"visible"},s)}),o))}var Y=y(qe),Je=["as","children","className","style","wrapperClassName","wrapperStyle"];function ce(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 z(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ce(Object(t),!0).forEach((function(r){Qe(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ce(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function Qe(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Ye(e,r){if(null==e)return{};var t,n,o=Ze(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 Ze(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 Ke(e,r){var t=e.as,n=void 0===t?"div":t,o=e.children,a=e.className,c=e.style,i=e.wrapperClassName,l=e.wrapperStyle;return p(n,z(z({},Ye(e,Je)),{},{ref:r,className:"".concat(a||""," ").concat(i||"").trim()||null,style:z(z({},c),l)}),o)}var pe,Xe=y(Ke);function Z(e){var r=N(null);return r.current=e,r}function er(){return pe||(pe=ae({renderable:!0,playable:!0,loading:c.AUTO}))}function K(){return se(er())}function me(e){return fe(e,K().loading)}var rr=["allow","allowFullScreen","allowTransparency","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"];function de(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 B(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?de(Object(t),!0).forEach((function(r){tr(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):de(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function tr(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function nr(e,r){if(null==e)return{};var t,n,o=or(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 or(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 ar=function(){return!1},ir="about:blank",sr=function(e){return e&&e!=ir&&!e.includes("#")};function ur(e,r){var t=e.allow,n=e.allowFullScreen,o=e.allowTransparency,a=e.iframeStyle,i=e.name,l=e.title,u=e.matchesMessagingOrigin,f=void 0===u?ar:u,s=e.messageHandler,y=e.ready,b=void 0===y||y,O=e.loading,d=e.onReadyState,g=e.sandbox,m=e.src,v=nr(e,rr),w=K().playable,j=me(O),h=j!==c.UNLOAD,P=N(!1),S=Z(d),E=k((function(e){if(e!==P.current){P.current=e;var r=S.current;null==r||r(e?T.COMPLETE:T.LOADING)}}),[S]),A=N(null);return Q(r,(function(){return{get readyState(){return P.current?T.COMPLETE:T.LOADING},get node(){return A.current}}}),[]),H((function(){h||E(!1)}),[h,E]),ie((function(){var e=A.current;if(!w&&e){var r=e.src;if(sr(r))e.src=e.src;else e.parentNode.insertBefore(e,e.nextSibling)}}),[w]),H((function(){var e=A.current;if(e&&h){var r=function(e){var r=A.current;!r||e.source!=r.contentWindow||!f(e.origin)||s(e)},t=e.ownerDocument.defaultView;return t.addEventListener("message",r),function(){return t.removeEventListener("message",r)}}}),[f,s,h,b]),p(Y,B(B({},v),{},{layout:!0,size:!0,paint:!0}),h&&b&&p("iframe",{allow:t,allowFullScreen:n,allowTransparency:o,frameborder:"0",loading:j,name:i,onLoad:function(){return E(!0)},part:"iframe",ref:A,sandbox:g,scrolling:"no",src:m,style:B(B({},a),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:l}))}var X=y(ur);X.displayName="IframeEmbed";var ve=Object.prototype,vt=ve.hasOwnProperty,gt=ve.toString;function ee(e){return e||{}}var W=Array.isArray,f=self.AMP_CONFIG||{},vr=("string"==typeof f.thirdPartyFrameRegex?new RegExp(f.thirdPartyFrameRegex):f.thirdPartyFrameRegex)||/^d-\d+\.ampproject\.net$/,_e=("string"==typeof f.cdnProxyRegex?new RegExp(f.cdnProxyRegex):f.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;function Pe(e){if(!self.document||!self.document.head||self.location&&_e.test(self.location.origin))return null;var r=self.document.head.querySelector('meta[name="'.concat(e,'"]'));return r&&r.getAttribute("content")||null}var gr={thirdParty:f.thirdPartyUrl||"https://3p.ampproject.net",thirdPartyFrameHost:f.thirdPartyFrameHost||"ampproject.net",thirdPartyFrameRegex:vr,cdn:f.cdnUrl||Pe("runtime-host")||"https://cdn.ampproject.org",cdnProxyRegex:_e,localhostRegex:/^https?:\/\/localhost(:\d+)?$/,errorReporting:f.errorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r",betaErrorReporting:f.betaErrorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",localDev:f.localDev||!1,trustedViewerHosts:[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/,/(^|\.)gmail\.(com|dev)$/],geoApi:f.geoApiUrl||Pe("amp-geo-api")};self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var Vn=self.__AMP_LOG;function Re(e){return e.data}function we(e){return JSON.parse(e)}var hr=["captioned","requestResize","shortcode","title"];function Ce(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 xr(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?Ce(Object(t),!0).forEach((function(r){Er(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ce(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function Er(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Me(e,r){return Sr(e)||Ar(e,r)||Or(e,r)||br()}function br(){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 Or(e,r){if(e){if("string"==typeof e)return Ie(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Ie(e,r)}}function Ie(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 Ar(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,a=[],c=!0,i=!1;try{for(t=t.call(e);!(c=(n=t.next()).done)&&(a.push(n.value),!r||a.length!==r);c=!0);}catch(e){i=!0,o=e}finally{try{!c&&null!=t.return&&t.return()}finally{if(i)throw o}}return a}}function Sr(e){if(Array.isArray(e))return e}function _r(e,r){if(null==e)return{};var t,n,o=Pr(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 Pr(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 Rr=ee(),wr=function(e){return"https://www.instagram.com"===e};function Cr(e,r){var t=e.captioned,n=e.requestResize,o=e.shortcode,a=e.title,c=void 0===a?"Instagram":a,i=_r(e,hr),l=Me(G(Rr),2),u=l[0],f=l[1],s=Me(G(0),2),y=s[0],b=s[1],O=k((function(e){var r=we(Re(e));if("MEASURE"==r.type&&r.details){var t=r.details.height;n&&n(t),f(ee({height:t})),b(1)}}),[n]);return p(X,xr({allowTransparency:!0,iframeStyle:{opacity:y},matchesMessagingOrigin:wr,messageHandler:O,ref:r,src:"https://www.instagram.com/p/"+encodeURIComponent(o)+"/embed/"+(t?"captioned/":"")+"?cr=1&v=12",title:c,wrapperStyle:u},i))}var Le=y(Cr);Le.displayName="Instagram";
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */
//# sourceMappingURL=component-react.js.map
;
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,t){for(var r in __markAsModule(e),t)__defProp(e,r,{get:t[r],enumerable:!0})},__reExport=function(e,t,r){if(t&&"object"==typeof t||"function"==typeof t)for(var n,o=__getOwnPropNames(t),a=0,i=o.length;a<i;a++)n=o[a],__hasOwnProp.call(e,n)||"default"===n||__defProp(e,n,{get:function(e){return t[e]}.bind(null,n),enumerable:!(r=__getOwnPropDesc(t,n))||r.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,{Instagram:function(){return Instagram}});var _MAP,preact=__toModule(require("react")),preactDOM=__toModule(require("react-dom")),hooks=__toModule(require("react"));function createElement2(e,t,r){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,t){hooks.useEffect(e,t)}function useLayoutEffect2(e,t){hooks.useLayoutEffect(e,t)}function useContext2(e){return hooks.useContext(e)}function useCallback2(e,t){return hooks.useCallback(e,t)}function useImperativeHandle2(e,t,r){return hooks.useImperativeHandle(e,t,r)}function _defineProperty(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,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,t){var r=MAP[e]||0,n=MAP[t]||0,o=Math.max(r,n);return ORDER[o]}var ReadyState={UPGRADING:"upgrading",BUILDING:"building",MOUNTING:"mounting",LOADING:"loading",COMPLETE:"complete",ERROR:"error"},compat=__toModule(require("react"));function forwardRef2(e){return compat.forwardRef(e)}var _excluded=["as","children","className","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"];function ownKeys(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 _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach((function(t){_defineProperty2(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _defineProperty2(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _objectWithoutProperties(e,t){if(null==e)return{};var r,n,o=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}var CONTAIN=[null,"paint","layout","content","size","size paint","size layout","strict"],SIZE_CONTENT_STYLE={"position":"relative","width":"100%","height":"100%"};function ContainWrapperWithRef(e,t){var r=e.as,n=void 0===r?"div":r,o=e.children,a=e.className,i=e.contentAs,c=void 0===i?"div":i,u=e.contentClassName,l=e.contentProps,s=e.contentRef,p=e.contentStyle,f=e.layout,d=void 0!==f&&f,y=e.paint,b=void 0!==y&&y,_=e.size,O=void 0!==_&&_,g=e.style,m=e.wrapperClassName,P=e.wrapperStyle,j=(O?4:0)+(d?2:0)+(b?1:0);return createElement2(n,_objectSpread(_objectSpread({},_objectWithoutProperties(e,_excluded)),{},{ref:t,className:"".concat(a||""," ").concat(m||"").trim()||null,style:_objectSpread(_objectSpread(_objectSpread({},g),P),{},{contain:CONTAIN[j]})}),createElement2(c,_objectSpread(_objectSpread({},l),{},{ref:s,className:u,style:_objectSpread(_objectSpread({},O&&SIZE_CONTENT_STYLE),{},{"overflow":b?"hidden":"visible"},p)}),o))}var ContainWrapper=forwardRef2(ContainWrapperWithRef),_excluded2=["as","children","className","style","wrapperClassName","wrapperStyle"];function ownKeys2(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 _objectSpread2(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys2(Object(r),!0).forEach((function(t){_defineProperty3(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys2(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _defineProperty3(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _objectWithoutProperties2(e,t){if(null==e)return{};var r,n,o=_objectWithoutPropertiesLoose2(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function _objectWithoutPropertiesLoose2(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}function WrapperWithRef(e,t){var r=e.as,n=void 0===r?"div":r,o=e.children,a=e.className,i=e.style,c=e.wrapperClassName,u=e.wrapperStyle;return createElement2(n,_objectSpread2(_objectSpread2({},_objectWithoutProperties2(e,_excluded2)),{},{ref:t,className:"".concat(a||""," ").concat(c||"").trim()||null,style:_objectSpread2(_objectSpread2({},i),u)}),o)}var context,Wrapper=forwardRef2(WrapperWithRef);function useValueRef(e){var t=useRef2(null);return t.current=e,t}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,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 _objectSpread3(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys3(Object(r),!0).forEach((function(t){_defineProperty4(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys3(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _defineProperty4(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _objectWithoutProperties3(e,t){if(null==e)return{};var r,n,o=_objectWithoutPropertiesLoose3(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function _objectWithoutPropertiesLoose3(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}var DEFAULT_MATCHES_MESSAGING_ORIGIN=function(){return!1},ABOUT_BLANK="about:blank",canResetSrc=function(e){return e&&e!=ABOUT_BLANK&&!e.includes("#")};function IframeEmbedWithRef(e,t){var r=e.allow,n=e.allowFullScreen,o=e.allowTransparency,a=e.iframeStyle,i=e.name,c=e.title,u=e.matchesMessagingOrigin,l=void 0===u?DEFAULT_MATCHES_MESSAGING_ORIGIN:u,s=e.messageHandler,p=e.ready,f=void 0===p||p,d=e.loading,y=e.onReadyState,b=e.sandbox,_=e.src,O=_objectWithoutProperties3(e,_excluded3),g=useAmpContext().playable,m=useLoading(d),P=m!==Loading.UNLOAD,j=useRef2(!1),v=useValueRef(y),h=useCallback2((function(e){if(e!==j.current){j.current=e;var t=v.current;null==t||t(e?ReadyState.COMPLETE:ReadyState.LOADING)}}),[v]),w=useRef2(null);return useImperativeHandle2(t,(function(){return{get readyState(){return j.current?ReadyState.COMPLETE:ReadyState.LOADING},get node(){return w.current}}}),[]),useLayoutEffect2((function(){P||h(!1)}),[P,h]),useEffect2((function(){var e=w.current;if(!g&&e){var t=e.src;canResetSrc(t)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling)}}),[g]),useLayoutEffect2((function(){var e=w.current;if(e&&P){var t=function(e){var t=w.current;t&&e.source==t.contentWindow&&l(e.origin)&&s(e)},r=e.ownerDocument.defaultView;return r.addEventListener("message",t),function(){return r.removeEventListener("message",t)}}}),[l,s,P,f]),createElement2(ContainWrapper,_objectSpread3(_objectSpread3({},O),{},{layout:!0,size:!0,paint:!0}),P&&f&&createElement2("iframe",{allow:r,allowFullScreen:n,allowTransparency:o,frameborder:"0",loading:m,name:i,onLoad:function(){return h(!0)},part:"iframe",ref:w,sandbox:b,scrolling:"no",src:_,style:_objectSpread3(_objectSpread3({},a),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:c}))}var IframeEmbed=forwardRef2(IframeEmbedWithRef);IframeEmbed.displayName="IframeEmbed";var _Object$prototype=Object.prototype,hasOwn_=_Object$prototype.hasOwnProperty,toString_=_Object$prototype.toString;function dict(e){return e||{}}var isArray=Array.isArray,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 t=self.document.head.querySelector('meta[name="'.concat(e,'"]'));return t&&t.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 getData(e){return e.data}function parseJson(e){return JSON.parse(e)}var _excluded4=["captioned","requestResize","shortcode","title"];function ownKeys4(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 _objectSpread4(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys4(Object(r),!0).forEach((function(t){_defineProperty5(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys4(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _defineProperty5(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_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 _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _iterableToArrayLimit(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,c=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(c)throw o}}return a}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _objectWithoutProperties4(e,t){if(null==e)return{};var r,n,o=_objectWithoutPropertiesLoose4(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function _objectWithoutPropertiesLoose4(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}var NO_HEIGHT_STYLE=dict(),MATCHES_MESSAGING_ORIGIN=function(e){return"https://www.instagram.com"===e};function InstagramWithRef(e,t){var r=e.captioned,n=e.requestResize,o=e.shortcode,a=e.title,i=void 0===a?"Instagram":a,c=_objectWithoutProperties4(e,_excluded4),u=_slicedToArray(useState2(NO_HEIGHT_STYLE),2),l=u[0],s=u[1],p=_slicedToArray(useState2(0),2),f=p[0],d=p[1],y=useCallback2((function(e){var t=parseJson(getData(e));if("MEASURE"==t.type&&t.details){var r=t.details.height;n&&n(r),s(dict({"height":r})),d(1)}}),[n]);return createElement2(IframeEmbed,_objectSpread4({allowTransparency:!0,iframeStyle:{opacity:f},matchesMessagingOrigin:MATCHES_MESSAGING_ORIGIN,messageHandler:y,ref:t,src:"https://www.instagram.com/p/"+encodeURIComponent(o)+"/embed/"+(r?"captioned/":"")+"?cr=1&v=12",title:i,wrapperStyle:l},c))}var Instagram=forwardRef2(InstagramWithRef);Instagram.displayName="Instagram";
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */

@@ -1,3 +0,3 @@

import{cloneElement as yt,createContext as ye,createElement as xe,createRef as _t}from"react";import{hydrate as Ot,render as Et}from"react-dom";import{useCallback as Se,useContext as ve,useEffect as _e,useImperativeHandle as Ae,useLayoutEffect as be,useMemo as bt,useRef as Oe,useState as Ee}from"react";function c(e,t,r){return xe.apply(void 0,arguments)}function J(e){return ye(e,void 0)}function w(e){return Ee(e)}function S(e){return Oe(e)}function W(e,t){_e(e,t)}function C(e,t){be(e,t)}function Q(e){return ve(e)}function M(e,t){return Se(e,t)}function U(e,t,r){return Ae(e,t,r)}var u={AUTO:"auto",LAZY:"lazy",EAGER:"eager",UNLOAD:"unload"},Pe=[u.AUTO,u.LAZY,u.EAGER,u.UNLOAD],Y={[u.AUTO]:0,[u.LAZY]:1,[u.EAGER]:2,[u.UNLOAD]:3};function Z(e,t){let r=Y[e]||0,n=Y[t]||0,a=Math.max(r,n);return Pe[a]}var A={UPGRADING:"upgrading",BUILDING:"building",MOUNTING:"mounting",LOADING:"loading",COMPLETE:"complete",ERROR:"error"};import{Children as wt,createPortal as Rt,forwardRef as Re}from"react";function m(e){return Re(e)}var we=["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 l(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){Ce(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 Ce(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Me(e,t){if(null==e)return{};var r,n,a=Ne(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(a[r]=e[r]))}return a}function Ne(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&(a[r]=e[r]);return a}var Le=[null,"paint","layout","content","size","size paint","size layout","strict"],Ie={position:"relative",width:"100%",height:"100%"};function je(e,t){let{as:r="div",children:n,className:a,contentAs:o="div",contentClassName:i,contentProps:s,contentRef:u,contentStyle:p,layout:f=!1,paint:y=!1,size:O=!1,style:m,wrapperClassName:b,wrapperStyle:g}=e,d=(O?4:0)+(f?2:0)+(y?1:0);return c(r,l(l({},Me(e,we)),{},{ref:t,className:`${a||""} ${b||""}`.trim()||null,style:l(l(l({},m),g),{},{contain:Le[d]})}),c(o,l(l({},s),{},{ref:u,className:i,style:l(l({},O&&Ie),{},{overflow:y?"hidden":"visible"},p)}),n))}var k=m(je),De=["as","children","className","style","wrapperClassName","wrapperStyle"];function X(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 N(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?X(Object(r),!0).forEach((function(t){Te(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):X(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Te(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Fe(e,t){if(null==e)return{};var r,n,a=Ue(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(a[r]=e[r]))}return a}function Ue(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&(a[r]=e[r]);return a}function ke(e,t){let{as:r="div",children:n,className:a,style:o,wrapperClassName:l,wrapperStyle:i}=e;return c(r,N(N({},Fe(e,De)),{},{ref:t,className:`${a||""} ${l||""}`.trim()||null,style:N(N({},o),i)}),n)}var ee,$e=m(ke);function $(e){let t=S(null);return t.current=e,t}function Ve(){return ee||(ee=J({renderable:!0,playable:!0,loading:u.AUTO}))}function V(){return Q(Ve())}function te(e){let{loading:t}=V();return Z(e,t)}var Ge=["allow","allowFullScreen","allowTransparency","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"];function re(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?re(Object(r),!0).forEach((function(t){He(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):re(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function He(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ze(e,t){if(null==e)return{};var r,n,a=qe(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(a[r]=e[r]))}return a}function qe(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&(a[r]=e[r]);return a}var Be=()=>!1,Je="about:blank",We=e=>e&&e!=Je&&!e.includes("#");function Qe(e,t){let{allow:r,allowFullScreen:n,allowTransparency:a,iframeStyle:o,name:l,title:i,matchesMessagingOrigin:s=Be,messageHandler:p,ready:f=!0,loading:y,onReadyState:O,sandbox:m,src:b}=e,g=ze(e,Ge),{playable:d}=V(),w=te(y),h=w!==u.UNLOAD,j=S(!1),P=$(O),v=M((e=>{if(e!==j.current){j.current=e;let t=P.current;null==t||t(e?A.COMPLETE:A.LOADING)}}),[P]),E=S(null);return U(t,(()=>({get readyState(){return j.current?A.COMPLETE:A.LOADING},get node(){return E.current}})),[]),C((()=>{h||v(!1)}),[h,v]),W((()=>{let e=E.current;if(!d&&e){let{src:t}=e;We(t)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling)}}),[d]),C((()=>{let e=E.current;if(!e||!h)return;let t=e=>{let t=E.current;!t||e.source!=t.contentWindow||!s(e.origin)||p(e)},{defaultView:r}=e.ownerDocument;return r.addEventListener("message",t),()=>r.removeEventListener("message",t)}),[s,p,h,f]),c(k,L(L({},g),{},{layout:!0,size:!0,paint:!0}),h&&f&&c("iframe",{allow:r,allowFullScreen:n,allowTransparency:a,frameborder:"0",loading:w,name:l,onLoad:()=>v(!0),part:"iframe",ref:E,sandbox:m,scrolling:"no",src:b,style:L(L({},o),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:i}))}var G=m(Qe);G.displayName="IframeEmbed";var{hasOwnProperty:ur,toString:cr}=Object.prototype;function H(e){return e||{}}var a=self.AMP_CONFIG||{},rt=("string"==typeof a.thirdPartyFrameRegex?new RegExp(a.thirdPartyFrameRegex):a.thirdPartyFrameRegex)||/^d-\d+\.ampproject\.net$/,pe=("string"==typeof a.cdnProxyRegex?new RegExp(a.cdnProxyRegex):a.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;function me(e){if(!self.document||!self.document.head||self.location&&pe.test(self.location.origin))return null;let t=self.document.head.querySelector(`meta[name="${e}"]`);return t&&t.getAttribute("content")||null}var nt={thirdParty:a.thirdPartyUrl||"https://3p.ampproject.net",thirdPartyFrameHost:a.thirdPartyFrameHost||"ampproject.net",thirdPartyFrameRegex:rt,cdn:a.cdnUrl||me("runtime-host")||"https://cdn.ampproject.org",cdnProxyRegex:pe,localhostRegex:/^https?:\/\/localhost(:\d+)?$/,errorReporting:a.errorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r",betaErrorReporting:a.betaErrorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",localDev:a.localDev||!1,trustedViewerHosts:[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/,/(^|\.)gmail\.(com|dev)$/],geoApi:a.geoApiUrl||me("amp-geo-api")};self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var Dn=self.__AMP_LOG;function de(e){return e.data}function ge(e){return JSON.parse(e)}var st=["captioned","requestResize","shortcode","title"];function he(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 it(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?he(Object(r),!0).forEach((function(t){at(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):he(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function at(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ut(e,t){if(null==e)return{};var r,n,a=ct(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(a[r]=e[r]))}return a}function ct(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&(a[r]=e[r]);return a}var lt=H(),ft=e=>"https://www.instagram.com"===e;function pt(e,t){let{captioned:r,requestResize:n,shortcode:a,title:o="Instagram"}=e,l=ut(e,st),{0:i,1:s}=w(lt),{0:u,1:p}=w(0),f=M((e=>{let t=ge(de(e));if("MEASURE"==t.type&&t.details){let e=t.details.height;n&&n(e),s(H({height:e})),p(1)}}),[n]);return c(G,it({allowTransparency:!0,iframeStyle:{opacity:u},matchesMessagingOrigin:ft,messageHandler:f,ref:t,src:"https://www.instagram.com/p/"+encodeURIComponent(a)+"/embed/"+(r?"captioned/":"")+"?cr=1&v=12",title:o,wrapperStyle:i},l))}var mt=m(pt);mt.displayName="Instagram";export{mt as Instagram};
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */
//# sourceMappingURL=component-react.module.js.map
;
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 c,useContext as l,useEffect as i,useImperativeHandle as s,useLayoutEffect as u,useMemo as p,useRef as f,useState as y}from"react";function b(e,t,n){return r.apply(void 0,arguments)}function O(e){return y(e)}function g(e){return f(e)}function m(e,t){u(e,t)}function d(e,t){return c(e,t)}var w=["auto","lazy","eager","unload"],j={auto:0,lazy:1,eager:2,unload:3};import{Children as P,createPortal as h,forwardRef as v}from"react";function S(e){return v(e)}var x=["as","children","className","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"];function E(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 D(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?E(Object(r),!0).forEach((function(t){N(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function N(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var R,z=[null,"paint","layout","content","size","size paint","size layout","strict"],_={"position":"relative","width":"100%","height":"100%"},A=S((function(e,t){let{as:r="div",children:n,"className":o,contentAs:a="div",contentClassName:c,contentProps:l,contentRef:i,contentStyle:s,layout:u=!1,paint:p=!1,size:f=!1,"style":y,wrapperClassName:O,wrapperStyle:g}=e;const m=(f?4:0)+(u?2:0)+(p?1:0);return b(r,D(D({},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,x)),{},{ref:t,className:`${o||""} ${O||""}`.trim()||null,style:D(D(D({},y),g),{},{contain:z[m]})}),b(a,D(D({},l),{},{ref:i,className:c,style:D(D({},f&&_),{},{"overflow":p?"hidden":"visible"},s)}),n))})),k=["as","children","className","style","wrapperClassName","wrapperStyle"];function F(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?F(Object(r),!0).forEach((function(t){M(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):F(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}function C(){const e=R||(R=t({renderable:!0,playable:!0,loading:"auto"},void 0));return l(e)}S((function(e,t){let{as:r="div",children:n,"className":o,"style":a,wrapperClassName:c,wrapperStyle:l}=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,k)),{},{ref:t,className:`${o||""} ${c||""}`.trim()||null,style:I(I({},a),l)}),n)}));var U=["allow","allowFullScreen","allowTransparency","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"];function L(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 $(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?L(Object(r),!0).forEach((function(t){G(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):L(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function G(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var H=()=>!1,T=S((function(e,t){let{allow:r,allowFullScreen:n,allowTransparency:o,iframeStyle:a,name:c,title:l,matchesMessagingOrigin:u=H,messageHandler:p,ready:f=!0,loading:y,onReadyState:O,sandbox:P,src:h}=e,v=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);const{playable:S}=C(),x=function(e){const{loading:t}=C();return function(e,t){const r=j[e]||0,n=j[t]||0,o=Math.max(r,n);return w[o]}(e,t)}(y),E="unload"!==x,D=g(!1),N=function(e){const t=g(null);return t.current=e,t}(O),R=d((e=>{if(e!==D.current){D.current=e;const t=N.current;null==t||t(e?"complete":"loading")}}),[N]),z=g(null);return function(e,t,r){s(e,(()=>({get readyState(){return D.current?"complete":"loading"},get node(){return z.current}})),[])}(t),m((()=>{E||R(!1)}),[E,R]),i((()=>{const e=z.current;if(!S&&e){const{src:t}=e;(e=>e&&"about:blank"!=e&&!e.includes("#"))(t)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling)}}),[S]),m((()=>{const e=z.current;if(!e||!E)return;const t=e=>{const t=z.current;t&&e.source==t.contentWindow&&u(e.origin)&&p(e)},{defaultView:r}=e.ownerDocument;return r.addEventListener("message",t),()=>r.removeEventListener("message",t)}),[u,p,E,f]),b(A,$($({},v),{},{layout:!0,size:!0,paint:!0}),E&&f&&b("iframe",{allow:r,allowFullScreen:n,allowTransparency:o,frameborder:"0",loading:x,name:c,onLoad:()=>R(!0),part:"iframe",ref:z,sandbox:P,scrolling:"no",src:h,style:$($({},a),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:l}))}));T.displayName="IframeEmbed";var{hasOwnProperty:q,toString:V}=Object.prototype;function B(e){return e||{}}var J=self.AMP_CONFIG||{},W=("string"==typeof J.thirdPartyFrameRegex?new RegExp(J.thirdPartyFrameRegex):J.thirdPartyFrameRegex,("string"==typeof J.cdnProxyRegex?new RegExp(J.cdnProxyRegex):J.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/);function Z(e){if(!self.document||!self.document.head)return null;if(self.location&&W.test(self.location.origin))return null;const t=self.document.head.querySelector(`meta[name="${e}"]`);return t&&t.getAttribute("content")||null}J.thirdPartyUrl,J.thirdPartyFrameHost,J.cdnUrl||Z("runtime-host"),J.errorReportingUrl,J.betaErrorReportingUrl,J.localDev,J.geoApiUrl||Z("amp-geo-api"),self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null},self.__AMP_LOG;var K=["captioned","requestResize","shortcode","title"];function Q(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 X(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Y=B(),ee=e=>"https://www.instagram.com"===e,te=S((function(e,t){let{captioned:r,requestResize:n,shortcode:o,title:a="Instagram"}=e,c=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,K);const{0:l,1:i}=O(Y),{0:s,1:u}=O(0),p=d((e=>{const t=(r=function(e){return e.data}(e),JSON.parse(r));var r;if("MEASURE"==t.type&&t.details){const e=t.details.height;n&&n(e),i(B({"height":e})),u(1)}}),[n]);return b(T,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(r),!0).forEach((function(t){X(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Q(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({allowTransparency:!0,iframeStyle:{opacity:s},matchesMessagingOrigin:ee,messageHandler:p,ref:t,src:"https://www.instagram.com/p/"+encodeURIComponent(o)+"/embed/"+(r?"captioned/":"")+"?cr=1&v=12",title:a,wrapperStyle:l},c))}));te.displayName="Instagram";export{te as Instagram};
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */
{
"name": "@ampproject/amp-instagram",
"version": "1.2107302322.0",
"version": "1.2107302322.1",
"description": "AMP HTML amp-instagram 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