Skip to Content

JavaScript File

URL: https://cdn.ampproject.org/rtv/012011252111002/v0/amp-auto-lightbox-0.1.js
HTTP Status: 200 OK
MIME Type: text/javascript
Last Modified: Mon, 01 Jan 1601 00:00:00 GMT
Download Time: Less than a second
Cookies: None
Size: 6 KB
HTTP Headers:  12 headers
Links In:  1 pages
  
OK Issues: No issues found

1(self.AMP=self.AMP||[]).push({n:"amp-auto-lightbox",v:"2011252111002",f:(function(AMP,_){

2'use strict';function k(a){for(var b=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global],c=0;c<b.length;++c){var d=b[c];if(d&&d.Math==Math)return}

3(function(){throw Error("Cannot find global object");}

4)()}

5k(this);"function"===typeof Symbol&&Symbol("x");var m;function n(){var a,b;this.promise=new Promise(function(c,d){a=c;b=d}

6);this.resolve=a;this.reject=b}

7;function p(a){return a?Array.prototype.slice.call(a):[]}

8;var q=self.AMP_CONFIG||{}

9,r=("string"==typeof q.cdnProxyRegex?new RegExp(q.cdnProxyRegex):q.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;function t(a){if(self.document&&self.document.head&&(!self.location||!r.test(self.location.origin))){var b=self.document.head.querySelector('meta[name="'+a+'"]');b&&b.getAttribute("content")}

10}

11q.cdnUrl||t("runtime-host");q.geoApiUrl||t("amp-geo-api");self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null}

12;var u=self.__AMP_LOG;function v(){if(u.dev)return u.dev;throw Error("failed to call initLogConstructor");}

13;function w(a,b){a=a.__AMP_TOP||(a.__AMP_TOP=a);return x(a,b)}

14function y(a,b){var c=z(a);c=A(c);return x(c,b)}

15function z(a){return a.nodeType?w((a.ownerDocument||a).defaultView,"ampdoc").getAmpDoc(a):a}

16function A(a){a=z(a);return a.isSingleDoc()?a.win:a}

17function x(a,b){B(a,b);var c=a.__AMP_SERVICES;c||(c=a.__AMP_SERVICES={}

18);a=c[b];a.obj||(a.obj=new a.ctor(a.context),a.ctor=null,a.context=null,a.resolve&&a.resolve(a.obj));return a.obj}

19

20function B(a,b){a=a.__AMP_SERVICES&&a.__AMP_SERVICES[b];return!(!a||!a.ctor&&!a.obj)}

21;/*

22 https://mths.be/cssescape v1.5.1 by @mathias | MIT license */

23function C(a,b){for(;a&&void 0!==a;a=a.parentElement)if(b(a))return a;return null}

24

25function D(a){return a.closest?a.closest("a[href],amp-script,amp-story,button,amp-lightbox,amp-carousel,[placeholder],[data-amp-auto-lightbox-disable],amp-selector [option],[subscriptions-action]"):C(a,function(b){var c=b.matches||b.webkitMatchesSelector||b.mozMatchesSelector||b.msMatchesSelector||b.oMatchesSelector;return c?c.call(b,"a[href],amp-script,amp-story,button,amp-lightbox,amp-carousel,[placeholder],[data-amp-auto-lightbox-disable],amp-selector [option],[subscriptions-action]"):!1}

26)}

27

28function E(a){a.tagName.startsWith("AMP-");if(a.createdCallback)return Promise.resolve(a);if(!a.__AMP_UPG_PRM){var b=new n;a.__AMP_UPG_PRM=b.promise;a.__AMP_UPG_RES=b.resolve}

29return a.__AMP_UPG_PRM}

30;/nochunking=1/.test(self.location.hash);(function(){return m?m:m=Promise.resolve(void 0)}

31)();var F={Article:!0,NewsArticle:!0,BlogPosting:!0,LiveBlogPosting:!0,DiscussionForumPosting:!0}

32;function G(){}

33var H=/\s+([0-9]+)w(,|[\S\s]*$)/g;function I(a){return y(a,"mutator").mutateElement(a,function(){a.setAttribute("i-amphtml-auto-lightbox-visited","")}

34)}

35function J(a){return E(a).then(function(b){return b.signals().whenSignal("load-end")}

36)}

37

38function K(a){return p(a.getRootNode().querySelectorAll('script[type="application/ld+json"]')).map(function(b){try{var c=JSON.parse(b.textContent)}

39catch(d){c=null}

40return(c||{}

...

</html>