fetch_util 0.5.2 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +66 -0
- data/README.md +3 -1
- data/Rakefile +0 -2
- data/lib/fetch_util/assets/extract.js +1 -1
- data/lib/fetch_util/browser/interaction_helpers/consent_helpers.rb +12 -17
- data/lib/fetch_util/browser/interaction_helpers/timing_helpers.rb +42 -15
- data/lib/fetch_util/browser/site_stabilization/azure_devops_pr_commit_details_script.rb +48 -0
- data/lib/fetch_util/browser/site_stabilization/azure_devops_pr_product_state_script.rb +80 -0
- data/lib/fetch_util/browser/site_stabilization/azure_devops_pr_request_helpers_script.rb +53 -0
- data/lib/fetch_util/browser/site_stabilization/azure_devops_pr_request_state_script.rb +118 -0
- data/lib/fetch_util/browser/site_stabilization/azure_devops_pr_stabilization.rb +54 -0
- data/lib/fetch_util/browser/site_stabilization/azure_devops_pr_state.rb +27 -0
- data/lib/fetch_util/browser/site_stabilization/bitbucket_cloud_pull_diff_product_state.rb +55 -0
- data/lib/fetch_util/browser/site_stabilization/bitbucket_cloud_pull_diff_request_state.rb +100 -0
- data/lib/fetch_util/browser/site_stabilization/bitbucket_cloud_pull_diff_state.rb +59 -0
- data/lib/fetch_util/browser/site_stabilization/bitbucket_cloud_pull_resource_modules.rb +26 -0
- data/lib/fetch_util/browser/site_stabilization/bitbucket_cloud_pull_resource_state.rb +93 -0
- data/lib/fetch_util/browser/site_stabilization/bitbucket_cloud_pull_resources.rb +73 -0
- data/lib/fetch_util/browser/site_stabilization/bitbucket_cloud_thread_state.rb +92 -0
- data/lib/fetch_util/browser/site_stabilization/bitbucket_cloud_threads.rb +71 -0
- data/lib/fetch_util/browser/site_stabilization/community_and_marketplace.rb +9 -10
- data/lib/fetch_util/browser/site_stabilization/facebook_stabilization.rb +56 -0
- data/lib/fetch_util/browser/site_stabilization/gerrit_change_product_state_script.rb +97 -0
- data/lib/fetch_util/browser/site_stabilization/gerrit_change_request_state_script.rb +75 -0
- data/lib/fetch_util/browser/site_stabilization/gerrit_change_stabilization.rb +37 -0
- data/lib/fetch_util/browser/site_stabilization/gerrit_change_state.rb +39 -0
- data/lib/fetch_util/browser/site_stabilization/gerrit_file_resource_fetch_state_script.rb +31 -0
- data/lib/fetch_util/browser/site_stabilization/gerrit_file_resource_product_state_script.rb +76 -0
- data/lib/fetch_util/browser/site_stabilization/gerrit_file_resource_request_state_script.rb +111 -0
- data/lib/fetch_util/browser/site_stabilization/gerrit_file_resource_route_state_script.rb +71 -0
- data/lib/fetch_util/browser/site_stabilization/gerrit_file_resource_stabilization.rb +37 -0
- data/lib/fetch_util/browser/site_stabilization/gerrit_file_resource_state.rb +42 -0
- data/lib/fetch_util/browser/site_stabilization/gerrit_file_resource_validation_state_script.rb +49 -0
- data/lib/fetch_util/browser/site_stabilization/gitea_family_pull_resource_product_state.rb +88 -0
- data/lib/fetch_util/browser/site_stabilization/gitea_family_pull_resource_state.rb +109 -0
- data/lib/fetch_util/browser/site_stabilization/gitea_family_pull_resources.rb +30 -0
- data/lib/fetch_util/browser/site_stabilization/gitea_family_stabilization.rb +60 -0
- data/lib/fetch_util/browser/site_stabilization/gitea_family_thread_product_state.rb +74 -0
- data/lib/fetch_util/browser/site_stabilization/gitea_family_thread_timeline_state.rb +69 -0
- data/lib/fetch_util/browser/site_stabilization/gitea_family_threads.rb +28 -0
- data/lib/fetch_util/browser/site_stabilization/gitea_family_visibility_script.rb +28 -0
- data/lib/fetch_util/browser/site_stabilization/github_pull_resource_stabilization.rb +31 -0
- data/lib/fetch_util/browser/site_stabilization/github_pull_resources.rb +105 -0
- data/lib/fetch_util/browser/site_stabilization/github_threads.rb +82 -0
- data/lib/fetch_util/browser/site_stabilization/gitlab_merge_request_resource_state.rb +17 -0
- data/lib/fetch_util/browser/site_stabilization/gitlab_merge_request_resource_state_script.rb +98 -0
- data/lib/fetch_util/browser/site_stabilization/gitlab_merge_request_resource_visibility_script.rb +43 -0
- data/lib/fetch_util/browser/site_stabilization/gitlab_merge_request_resources.rb +28 -0
- data/lib/fetch_util/browser/site_stabilization/gitlab_repo.rb +3 -11
- data/lib/fetch_util/browser/site_stabilization/gitlab_stabilization.rb +33 -0
- data/lib/fetch_util/browser/site_stabilization/gitlab_threads.rb +92 -0
- data/lib/fetch_util/browser/site_stabilization/social_platforms.rb +19 -38
- data/lib/fetch_util/browser/site_stabilization/travel_and_lodging.rb +3 -3
- data/lib/fetch_util/browser/site_stabilization.rb +89 -0
- data/lib/fetch_util/browser/stabilization/anubis.rb +4 -5
- data/lib/fetch_util/browser/stabilization/page_flow.rb +71 -27
- data/lib/fetch_util/browser/stabilization/spa_hydration.rb +7 -5
- data/lib/fetch_util/browser.rb +88 -17
- data/lib/fetch_util/cli.rb +69 -23
- data/lib/fetch_util/extractor.rb +8 -2
- data/lib/fetch_util/fetcher.rb +144 -43
- data/lib/fetch_util/http_redirect_client.rb +161 -0
- data/lib/fetch_util/parallel_fetcher.rb +125 -28
- data/lib/fetch_util/raw_docs_fallback.rb +158 -21
- data/lib/fetch_util/regulatory/cache_store.rb +47 -14
- data/lib/fetch_util/regulatory/fetch_records.rb +10 -7
- data/lib/fetch_util/regulatory/headers.rb +8 -1
- data/lib/fetch_util/regulatory/http_client.rb +2 -97
- data/lib/fetch_util/regulatory/orchestration.rb +10 -6
- data/lib/fetch_util/regulatory/page.rb +8 -11
- data/lib/fetch_util/regulatory/robots.rb +2 -10
- data/lib/fetch_util/regulatory/source_selection.rb +13 -3
- data/lib/fetch_util/regulatory/tdm_page.rb +9 -4
- data/lib/fetch_util/regulatory/tdm_policy.rb +16 -9
- data/lib/fetch_util/regulatory/tdm_rep.rb +4 -3
- data/lib/fetch_util/regulatory/tdm_support.rb +10 -6
- data/lib/fetch_util/regulatory.rb +5 -1
- data/lib/fetch_util/request_log.rb +24 -3
- data/lib/fetch_util/result.rb +37 -89
- data/lib/fetch_util/search_transport.rb +102 -35
- data/lib/fetch_util/searcher.rb +15 -13
- data/lib/fetch_util/version.rb +1 -1
- data/lib/fetch_util.rb +4 -1
- metadata +66 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e){function t(e){return"string"!=typeof e&&(e=null==e?"":String(e)),e.replace(/\s+/g," ").trim()}function r(e){try{return decodeURIComponent(e)}catch(t){return e}}function n(e){return t(e&&e.textContent).length}function o(e){if(!e)return null;try{return new URL(e,document.baseURI).href}catch(t){return e}}function i(e){return document.body&&document.body.innerText||e||""}function a(e){return t(String(e||"").split("/").pop().replace(/[_-]+/g," "))}function l(e){var r=t(e||"").toLowerCase();if(!r)return null;var n=r.split(",")[0].replace(/_/g,"-").match(/^[a-z]{2,3}(?=-|$)/);if(!n)return null;var o=n[0];return 2===(o={eng:"en",spa:"es",hin:"hi",fra:"fr",fre:"fr",deu:"de",ger:"de",por:"pt",zho:"zh",chi:"zh"}[o]||o).length?o:null}function s(){return l(document.documentElement&&document.documentElement.getAttribute("lang"))||l($("Content-Language","http-equiv"))||l($("og:locale","property"))||function(){var e=t(document.body&&document.body.innerText||"");if(e.length<80)return null;for(var r=e.replace(/\s/g,""),n=[["hi",/[\u0900-\u097F]/g],["ar",/[\u0600-\u06FF]/g],["zh",/[\u4E00-\u9FFF]/g],["ja",/[\u3040-\u30FF]/g],["ko",/[\uAC00-\uD7AF]/g],["el",/[\u0370-\u03FF]/g],["ru",/[\u0400-\u04FF]/g]],o=0;o<n.length;o++){var i=r.match(n[o][1])||[];if(i.length>=20&&i.length/r.length>=.25)return n[o][0]}var a=e.toLowerCase().match(/[a-zÀ-ž]+/g)||[];if(a.length<30)return null;var l={en:/^(?:the|and|that|for|with|this|from|are|was|were|have|has|not|but|their|about|more|will|would|which|when)$/,es:/^(?:el|la|los|las|un|una|del|de|al|a|en|y|por|con|para|que|más|son|sus|su|se|pero|como|esta|todo|nos|hay|fue|muy|han|sin|sobre|tiene)$/,fr:/^(?:les|des|une|est|dans|pour|sur|par|pas|qui|que|avec|son|sont|plus|ses|mais|cette|ont|tout|nous|vous|aux|leur)$/,de:/^(?:und|die|der|das|ist|von|zu|mit|den|ein|eine|für|auf|als|auch|nicht|sich|werden|nach|bei|aus|wie|oder|noch|nur|dem|des|über)$/,pt:/^(?:dos|das|uma|por|com|para|que|mais|são|mas|como|esta|seu|sua|tem|nos|foi|pode|muito|seus|sobre|também)$/,it:/^(?:gli|una|del|per|con|che|sono|più|dalla|della|delle|dei|anche|come|questa|tutto|suo|sua|suoi|nelle|alla)$/,nl:/^(?:een|het|van|zijn|met|dat|voor|maar|niet|ook|als|nog|wel|hun|uit|bij|kan|zou|meer|alle|dit|wordt)$/},s={};Object.keys(l).forEach(function(e){s[e]=0}),a.forEach(function(e){Object.keys(l).forEach(function(t){l[t].test(e)&&(s[t]+=1)})});var c=Object.keys(s).sort(function(e,t){return s[t]-s[e]})[0],u=Object.keys(s).sort(function(e,t){return s[t]-s[e]})[1];return c&&s[c]>=4&&s[c]>=1.8*(s[u]||0)?c:null}()}function c(e,r){var n=t(u(["meta[name='generator']"],"content")||""),o=t(u(["meta[name='application-name']","meta[property='og:site_name']"],"content")||""),i=(Array.isArray(r)?r:r?[r]:[]).map(function(t){return"function"==typeof t?t(e,n,o):u([t])});return 0===i.length&&(i=[e&&e.title,e&&e.siteName,n,o,document.title]),{generator:n,appName:o,signature:t(i.join(" "))}}function u(e,r){for(var n=0;n<e.length;n+=1){var o=document.querySelector(e[n]);if(o){var i=r?o.getAttribute(r):o.textContent;if(i=t(i))return i}}return null}function d(){var e=[];return["article[itemtype*='NewsArticle']","article[itemtype*='Article']","article","main article","main"].forEach(function(t){document.querySelectorAll(t).forEach(function(t){-1===e.indexOf(t)&&n(t)>=80&&e.push(t)})}),e.length?e:[document]}function m(e,r,n){for(var o=0;o<e.length;o+=1)for(var i=0;i<r.length;i+=1){var a=e[o].querySelector(r[i]);if(a&&!a.closest("nav, footer, aside")){var l=n?a.getAttribute(n):a.textContent;if(l=t(l))return l}}return null}function p(){return t(m(d(),["[rel='author']","[itemprop='author'] [itemprop='name']","[itemprop='author']","[class*='byline' i]","[class*='author' i]","[class*='autor' i]","[class*='auteur' i]","[class*='verfasser' i]","[class*='redakteur' i]","[class*='penulis' i]","[class*='tac-gia' i]","[class*='tacgia' i]","[class*='writer' i]","[class*='reporter' i]","[data-testid*='author' i]"])||"").replace(/^(?:by|por|par|von|di|da|door|av|af|de|autor(?:a)?|auteur|redactie|redacción|redacao|redação|penulis|oleh|tác giả|tac gia|بقلم|כתבת?|מאת)\s*:?\s+/i,"")||null}function h(){return m(d(),["time[datetime]"],"datetime")||m(d(),["[itemprop='datePublished']","[itemprop='dateModified']","[class*='pubdate' i]","[class*='published-date' i]","[class*='published_at' i]","[class*='published-at' i]","[class*='publication-date' i]","[class*='fecha' i]","[class*='data-publicacao' i]","[class*='data-publicação' i]","[class*='datum' i]","[class*='tarih' i]","[class*='date' i]","[class*='time' i]","[class*='publish' i]","[class*='posted' i]","[data-testid*='date' i]","time"])}function f(e,r){var n={},o=[];return e.forEach(function(e){document.querySelectorAll(e).forEach(function(e){if(!(r&&o.length>=r)){var i=t(e.textContent);i&&!n[i]&&(n[i]=!0,o.push(i))}})}),o}function g(e){return e?Array.isArray(e)?e:[e]:[]}function y(e,t){e&&(Array.isArray(e)?e.forEach(function(e){y(e,t)}):"object"==typeof e&&(e["@graph"]&&y(e["@graph"],t),t.push(e)))}function b(){var e=[];return document.querySelectorAll('script[type="application/ld+json"]').forEach(function(r){var n=r.textContent||r.innerText||"";if(t(n))try{y(JSON.parse(n),e)}catch(e){}}),e}function v(e){return g(e&&e["@type"]).map(function(e){return String(e)})}function w(e){var t=g(e);return b().find(function(e){return v(e).some(function(e){return-1!==t.indexOf(e)})})||null}function x(e){return e?"string"==typeof e?t(e):Array.isArray(e)?x(e[0]):t(e.name||e.headline||e.alternateName||""):null}function S(e){return e?"string"==typeof e?t(e):Array.isArray(e)?t(e.map(function(e){return S(e)||""}).join(" ")):t(e.text||e.description||e.name||""):null}function k(e){var r="string"==typeof e?e:S(e);if(!t(r))return null;if(/<[a-z][\s\S]*>/i.test(r)){var n=document.createElement("div");return n.innerHTML=r,Ut(tr(n.innerHTML))}return Ut(r)}function A(e){if(!e)return null;if("string"==typeof e)return t(e);if(Array.isArray(e))return t(e.map(A).filter(Boolean).join("; "));if("object"!=typeof e)return null;var r=e.address||e;return"string"==typeof r?t(r):t([r.streetAddress,r.addressLocality,r.addressRegion,r.postalCode,r.addressCountry&&S(r.addressCountry)].filter(Boolean).join(", "))||S(e)}function C(e){return e.map(function(e){var t=e.url?"- ["+e.text+"]("+e.url+")":"- "+e.text,r=e.card,n=r&&r.matches&&r.matches("tr")?e.detail:"",o=(n?[n]:[e.category,e.summary,q(r,"[rel='author'], [itemprop='author'], [class*='author' i], [data-author]")||e.author,q(r,"time, [datetime], [class*='timestamp' i], [class*='date' i]")||e.time,q(r,"[class*='score' i], [data-score], [data-karma]")||e.score,q(r,".reply, .replies, .comment, .comments, [class~='reply'], [class~='replies'], [class~='comment'], [class~='comments'], [class*='reply'], [class*='replie'], [class*='comment'], [data-reply], [data-replies], [data-comment], [data-comments]")||e.replyCount,q(r,"[class*='community' i], [class*='subreddit' i], [data-community]")||e.community,e.image,e.caption]).filter(Boolean).filter(function(e,t,r){return r.indexOf(e)===t}).join(" - ");return o?t+=" - "+o:e.detail&&(t+=" - "+e.detail),t}).join("\n")}function q(e,r){if(!e||!e.querySelector)return"";var n=po(e,r)[0];if(!n)return"";var o=t(n.getAttribute("datetime")||n.getAttribute("content")||n.textContent||"");return o?/^(comment|comments|reply|replies|score|points|likes?)$/i.test(o)?"":o:""}function T(e){var r=[],n=[];e.title&&r.push("# "+e.title),e.byline&&n.push("- Author: "+e.byline),e.publishedTime&&n.push("- Published: "+e.publishedTime),g(e.details).forEach(function(e){e&&n.push("- "+e)}),n.length&&r.push(n.join("\n")),e.description&&r.push(e.description),e.highlights&&e.highlights.length&&r.push(e.highlights.map(function(e){return"- "+e}).join("\n"));var o=r.filter(Boolean).join("\n\n").trim();return{title:e.title,byline:e.byline||null,excerpt:e.description||null,siteName:e.siteName||location.hostname,publishedTime:e.publishedTime||null,html:"",markdown:o,textContent:t(o),docsLike:!!e.docsLike,hostAware:!!e.hostAware,readerMode:!1,contentType:e.contentType||"article",socialKind:e.socialKind||null,platform:e.platform||null,handle:e.handle||null,replyCount:void 0===e.replyCount?null:e.replyCount,community:e.community||null,score:void 0===e.score?null:e.score}}function _(e){return new URLSearchParams(location.search).get(e)}function E(){return _("q")||_("p")||_("query")||_("text")||""}function j(e){var t=null!=e.markdown?e.markdown:C(e.items||[]);return{title:e.title,byline:null,excerpt:e.excerpt,siteName:e.siteName||location.hostname,publishedTime:null,html:e.html||"",textContent:null!=e.textContent?e.textContent:t,markdown:t,readerMode:!1,contentType:"list"}}function L(e,t){var r=(t=t||{}).items,n=null!=t.markdown?t.markdown:C(r||[]),o={title:t.title||e&&e.title||document.title,byline:null,excerpt:null!=t.excerpt?t.excerpt:r[0]?r[0].text:e&&e.excerpt,siteName:t.siteName||e&&e.siteName||location.hostname,publishedTime:void 0===t.publishedTime?null:t.publishedTime,html:t.html||"",textContent:null!=t.textContent?t.textContent:n,markdown:n,readerMode:!1,contentType:t.contentType||"list"};return r&&(o.itemCount=r.length),t.hostAware&&(o.hostAware=!0),t.portalRootEvidence&&(o.portalRootEvidence=t.portalRootEvidence),t.statusPage&&(o.statusPage=!0),o}function $(e,t){var r="meta["+t+'="'+e+'"]',n=document.querySelector(r);return n?n.getAttribute("content"):null}function P(e){return e.join("|")}function N(e,t){return new RegExp("^(?:"+P(e)+")$",t||"i")}function z(e,t,r){return new RegExp("^\\s*(?:"+P(e)+")"+(t||"")+"\\s*$",r||"gmi")}function M(e){return e.map(function(e){return new RegExp("^\\s*(?:"+e+")\\b.*$","gmi")})}var R="(?:outbrain|taboola|zemanta|revcontent|mgid|content\\.ad|plista|ligatus|adblade|nativendo|dianomi|nativo|sharethrough|triplelift)\\.(?:com|net|co|io)",B=/(cookie|privacy|consent|prywatności|datenschutz|données|datos|dati|クッキー|쿠키|同意|隐私|принять|ኩኪ)/i,H=[/cookie settings|cookie preferences|manage cookie preferences|manage cookies|accept all cookies|reject optional cookies|we use cookies|this website uses cookies|by accepting cookies|allow the use of cookies|privacy choices|privacy preference center|your privacy settings|your privacy choices|manage privacy preferences|manage consent preferences|cookie information|cookie declaration|cookie list|cookies details|list of partners(?: \(vendors\))?|cookies from other companies|essential cookies|personalize advertising|use cookies and similar technologies|before you continue|wish to store and access information|access information on your devices|collect personal data|personalized ads|trusted third party partners|browsing history|device identifiers|cookie declaration last updated|consent id|change your consent|your current state/i,/configurações avançadas de cookies|declaração de cookies|gerenciar cookies|utilizamos cookies|dados pessoais/i,/informazioni sulla vostra privacy|gestisci preferenze consenso|elenco dei cookie|dati personali|impostazioni dei cookie|preferenze cookie|accetta tutto/i,/pliki cookie|ustawienia prywatności|polityka prywatności i cookies/i,/datenschutz|cookie-einstellungen/i,/données personnelles|paramètres des cookies/i,/datos personales|configuración de cookies/i,/クッキー|Cookieプリファレンス|Cookie設定|同意設定|すべて受け入れる|すべて許可/i,/쿠키|동의|모두 허용/i,/全部接受|接受全部|隐私设置/i,/файлы cookie|настройки cookie|принять все/i,/we gebruiken cookies/i,/о вашој приватности|пристанак|колачић|колачиће|подешавања приватности/i,/የእርስዎ ግላዊነት|ግላዊነት|ኩኪ|ኩኪዎች|የኩኪ ቅንብሮች/i,/pro pokračování vyberte|technické cookies|jakou formou vám máme zobrazovat obsah/i],F=/cookie|cookies|preferences|privacy choices|privacy preference center|your privacy settings|your privacy choices|manage privacy preferences|manage consent preferences|cookie information|cookie declaration|cookie list|cookies details|list of partners|accept all|reject optional|essential cookies|personalize advertising|personal data|browsing history|device identifiers|personalized ads|trusted third party|wish to store|consent id|change your consent|your current state|configurações avançadas de cookies|declaração de cookies|gerenciar cookies|utilizamos cookies|dados pessoais|informazioni sulla vostra privacy|gestisci preferenze consenso|elenco dei cookie|pliki cookie|prywatności|datenschutz|données|datos|dati|クッキー|쿠키|同意|接受|隐私|принять|cookie設定|ግላዊነት|ኩኪ|pokračování|technické cookies/g,O=/copyright|all rights reserved|privacy policy|cookie policy|terms of use|terms and conditions|impressum|link utili|contatti|chi siamo|newsletter|advertising|pubblicit[àa]|manage preferences|cookie settings/g,I=["video player is loading.","videosoitin","play video","playback speed","fullscreen","mute","unmute"],D=[/^playback speed \d/,/^this is a modal window\./,/^beginning of dialog window\./,/^end of dialog window\./,/^current time\s+\d/,/^remaining time\s/,/^duration\s/,/^loaded:\s*\d/,/^progress:\s*\d/],U=/^(play|pause|resume|volume\s+\d+%|rewind\s+\d+\s+seconds|forward\s+\d+\s+seconds|skip\s+(?:back|forward)|chromecast|closed captions|captions|settings|fullscreen|full screen|mute|unmute|next up|up next|current time\s+\d|remaining time\s+|duration\s+|learn more)$/,Z=/^\d+:\d+$/,W=/^(log in|login|sign in|register|create account|get disney\+|accept all|reject all|confirm my choices|manage preferences|save preferences|allow all|more details|cookies details)$/i,G=[/^(nearby entries|browse nearby words|cited by|related content|more like this|people also viewed|recommended articles?|translation|numerology|citation|word of the day|quiz|discover more|related posts|latest news|trending now|popular posts|most read|you might also like|you may also like|read more|related articles?|leave a reply|cancel reply|about the authors?|#\s*tags|comments?\s*\d*|also read|further reading|see also|more stories|don't miss|privacy preference center|your privacy settings|manage privacy preferences|manage consent preferences|informazioni sulla vostra privacy|gestisci preferenze consenso|elenco dei cookie|list of partners(?: \(vendors\))?|polecane|przeczytaj (też|również)|podobne (artykuły|wpisy)|leia (também|mais)|artigos? relacionados?|também pode gostar|ähnliche (beiträge|artikel)|das könnte sie auch interessieren|weiterlesen|mehr zum thema|artículos? relacionados?|también te puede interesar|te puede interesar|lee también|noticias relacionadas|articles? (connexes?|similaires?|associée?s?)|à lire aussi|sur le même (sujet|thème)|vous aimerez aussi)$/i,/^more from /i,/^popular in /i,/^browse definitions\.net$/i,/^(الأكثر قراءة|الأكثر مشاهدة|الأكثر تعليقاً|مقالات ذات صلة|اقرأ أيضاً|أخبار ذات صلة|مواضيع ذات صلة|موضوعات متعلقة|الأكثر تداولاً|قد يهمك|المزيد|تابع القراءة|הנקראים ביותר|כתבות קשורות|פופולרי|נצפה הכי הרבה|הכי נקראים|مزید پڑھیں|سب سے زیادہ پڑھی جانے والی|متعلقہ خبریں|بیشتر بخوانید|محبوبترین|پربازدیدترین)$/i,/^(en çok okunan|ilgili haberler|benzer haberler|popüler haberler|çok okunanlar|ilgili içerikler)$/i,/^(บทความที่เกี่ยวข้อง|อ่านเพิ่มเติม|ข่าวที่เกี่ยวข้อง|ข่าวยอดนิยม|บทความยอดนิยม|อ่านต่อ|เนื้อหาที่เกี่ยวข้อง|แนะนำสำหรับคุณ|ข่าวล่าสุด)$/i,/^(bài viết liên quan|tin liên quan|đọc thêm|xem thêm|tin tức liên quan|bài viết nổi bật|có thể bạn quan tâm|tin nổi bật|bài viết mới nhất|đọc nhiều nhất)$/i,/^(σχετικά άρθρα|διαβάστε (επίσης|ακόμη|περισσότερα)|δημοφιλή άρθρα|περισσότερα νέα|τελευταία νέα|δείτε επίσης|μπορεί να σας ενδιαφέρει|σχετικά νέα|τα πιο δημοφιλή)$/i,/^(схожі (статті|матеріали|новини)|читайте (також|ще)|також читайте|популярні (статті|новини)|останні новини|найпопулярніше|вас (також )?може зацікавити|рекомендуємо|дивіться також)$/i,/^(baca juga|artikel terkait|berita terkait|berita populer|artikel populer|terpopuler|baca selengkapnya|lihat juga|rekomendasi|berita lainnya|pilihan editor)$/i,/^(lees ook|gerelateerde (artikelen|berichten)|ook interessant|meer (lezen|artikelen|nieuws)|populair(st)?e? artikelen|aanbevolen|bekijk ook|misschien vind je dit ook leuk|dit vind je misschien ook interessant|meest gelezen)$/i,/^(povezani (članci|tekstovi)|pročitajte (još|i|također)|slični (članci|tekstovi)|popularno|najčitanije|preporučujemo|pogledajte (još|i|takođe)|više vesti|повезани (чланци|текстови)|прочитајте (још|и|такође)|слични (чланци|текстови)|популарно|најчитаније|препоручујемо|погледајте (још|и|такође)|више вести)$/i,/^(baca juga|artikel berkaitan|berita berkaitan|berita popular|artikel popular|terpopular|baca lagi|lihat juga|cadangan|berita lain|pilihan editor|paling dibaca|trending)$/i,/^(leia (também|mais)|artigos? relacionados?|também pode gostar|mais (lidos?|populares?|notícias)|notícias relacionadas|veja (também|mais)|confira também|continue lendo|recomendado|sugestões?|últimas notícias)$/i,/^(související (články|zprávy)|čtěte (také|dále|více)|mohlo by vás zajímat|doporučujeme|nejčtenější|nejnovější zprávy|další články|přečtěte si (také|též)|více článků)$/i,/^(relaterade (artiklar|nyheter)|läs (också|mer|vidare|även)|mest lästa|populärast|senaste (nyheterna|artiklarna)|fler (artiklar|nyheter)|rekommenderat|du kanske också gillar)$/i,/^(relaterede (artikler|nyheder)|læs (også|mere|videre)|mest læste|populært|seneste (nyheder|artikler)|flere (artikler|nyheder)|anbefalet|det kunne også interessere dig)$/i,/^(kaugnay na (mga )?artikulo|basahin (din|rin)|mga kaugnay na balita|pinaka-?popular|pinakabagong balita|iba pang mga artikulo|maaari mo ring gustuhin)$/i,/^(ተዛማጅ ዜናዎች|ተጨማሪ ያንብቡ|ተመልከቱ|ተጨማሪ ዜና|በጣም የተነበቡ|ቀጣይ ዜና)$/i,/^(relaterte (artikler|saker|nyheter)|les (også|mer|videre)|mest lest[e]?|populær[te]?|siste nytt|flere (artikler|saker|nyheter)|anbefalt|aktive debatter|se flere meldinger|du vil kanskje også like)$/i,/^(articles? relaciona(ts?|des?)|notícies relacionades|llegeix (també|més)|més (llegits?|populars?|notícies)|últimes notícies|també et pot interessar|contingut relacionat|mostra'n més|temes relacionats)$/i,/^(დაკავშირებული (სტატიები|ამბები|სიახლეები)|წაიკითხეთ (ასევე|მეტი)|ყველაზე (წაკითხვადი|პოპულარული)|ბოლო ამბები|მეტი (სტატიები|ამბები)|რეკომენდებული|გაიგეთ მეტი)$/i,/^(සම්බන්ධිත (පුවත්|ලිපි)|තවත් කියවන්න|වැඩි විස්තර|උණුසුම් පුවත්|නවතම පුවත්|ජනප්රිය (පුවත්|ලිපි)|වැඩි විස්තර කියවන්න)$/i,/^(əlaqəli (xəbərlər|məqalələr)|daha çox oxu(?:yun)?|ən çox oxunan(?:lar)?|son xəbərlər|digər (xəbərlər|məqalələr)|tövsiyə olunan|oxşar xəbərlər)$/i,/^(powiązane (artykuły|wpisy|tematy|wiadomości)|najczęściej czytane|najpopularniejsze|najnowsze (wiadomości|artykuły)|więcej (artykułów|wpisów|wiadomości)|może cię (też )?zainteresować|zobacz (też|również|także)|czytaj (też|również|także)|warto przeczytać|to też warto przeczytać|to może cię zainteresować|ostatnie (wpisy|artykuły)|popularne (wpisy|artykuły|tematy)|komentarze\s*\d*|dodaj komentarz|zostaw komentarz|napisz komentarz)$/i];function K(e,t){for(var r=0;r<t.length;r+=1)if(t[r].test(e))return!0;return!1}function V(e,r){for(var n=0;n<r.length;n+=1){var o=e.querySelector(r[n]),i=t(o&&o.textContent);if(i)return i}return""}function J(){if(!document.body)return"";var e=t(document.body.innerText||"");if(e&&(!B.test(e)||!X(e)))return e;var r=Pe(document.body,document);return r.querySelectorAll("script, style, noscript, template, iframe").forEach(function(e){e.remove()}),Ae(r),t(r.textContent)}function X(e){var r=t(e||"").toLowerCase();return!(!r||r.length>5e3)&&(!!K(r,H)&&(r.match(F)||[]).length>=2)}function Y(e){var r=t(e||"").toLowerCase();return!(!r||r.length>5e3)&&(r.match(O)||[]).length>=2}function Q(e){return/^your browser doesn't support html5 audio$/i.test(t(e||""))}function ee(e){var r=t(e||"").toLowerCase();return!(!r||r.length>120)&&(U.test(r)||Z.test(r))}function te(e){return K(e||"",G)}function re(e){if(!e)return"";try{var t=new URL(e,location.href),r=t.origin+t.pathname+t.search;return(r=r.replace(/([?&])(?:utm_[^&=]+|fbclid|gclid|dclid|msclkid|mc_cid|mc_eid)=[^&]*&?/gi,"$1")).replace("?&","?").replace(/[?&]$/,"")}catch(t){return e.split("#")[0]}}function ne(){var e=(location.pathname||"").toLowerCase();return""===e||"/"===e||/^\/(?:index|default|home)(?:\.[a-z0-9]+)?\/?$/i.test(e)}function oe(e,r){return r=r||"",!(e=t(e||""))||(e.length>180||(!!/^(home|menu|search|sign in|log in|login|register|create account|my account|account|subscribe|newsletter|advertise|contact|about|privacy|terms|cookies?|careers?|help|support|learn more|read more|view all|see all|show more|skip to content|open menu|close|language|english|français|deutsch|español|italiano)$/i.test(e)||(!!(/^(buy|sell|rent|sold|agents?|homes?|condos?|commercial|mortgages?|calculators?|guides?|news|travel|trains?|buses?|flights?|hotels?|cars?|packages?|deals?|offers?|destinations?|routes?|stations?|tickets?|timetables?)$/i.test(e)&&e.length<18)||!!/\b(?:privacy|terms|cookie|login|signin|sign-in|register|account|newsletter|subscribe|advertise|contact|about)\b/i.test(r))))}function ie(e){var t=0;return e.querySelectorAll("section, [role='region']").forEach(function(e){for(var r=e.parentElement;r;){if(r.matches&&r.matches("aside, nav, header, footer, [role='navigation'], [role='complementary'], [role='banner'], [role='contentinfo']"))return;r=r.parentElement}$r(e)||$r(e.parentElement)||e.querySelector("h1, h2, h3, h4")&&e.querySelector("article a[href], li a[href], [class*='card'] a[href], [class*='story'] a[href]")&&(t+=1)}),t>=2}var ae,le="nav, aside, footer, script, style, noscript, template",se=le+", .sidebar, .toc, .pagination, .edit-link, .theme-toggle",ce=le+", .breadcrumb, .site-header, .site-footer, .region-sidebar",ue="[class*='related-posts'], [class*='related_posts'], [id*='related-posts'], [id*='related_posts'], .yarpp-related, [class*='recommended-posts'], [class*='more-stories'], [class*='also-like'], [class*='you-may-also'], .jp-relatedposts, [class*='more-from'], [class*='more_from'], [class*='latest-news'], [class*='latest_news'], [class*='trending'], [class*='popular-posts'], [class*='popular_posts'], [class*='related-articles'], [class*='related_articles'], [id*='related-articles'], [id*='related_articles'], [class*='related-links'], [class*='related_links'], [class*='further-reading'], [class*='further_reading']",de=N(["report this article","\\+?\\s*follow","sign in","sign up","join now","show more","show less","log in","create account","create an account","subscribe to read","inloggen","iniciar sessão","entrar","prijavi se","пријави се","log masuk","maak een account","criar conta","registreer","cadastre-se","přihlásit se","logga in","log ind","logg inn","inicia sessió","iniciar sessió","giriş yap","შესვლა","පිවිසෙන්න","daxil ol","zaloguj się","zarejestruj się","zaloguj","załóż konto","moje konto","dołącz do nas","zobacz więcej","czytaj więcej","czytaj dalej","pokaż więcej","zwiń","rozwiń"],"i"),me=(ae="i",new RegExp("^(?:"+P(["skip ad","continue watching","visit advertiser website","go to page","advertisement \\d+\\/\\d+","advertisement","close ad","skip this ad","skip in \\d+","ad \\d+ of \\d+","sponsored","sponsor","reklama","materiał sponsorowany","materiał promocyjny","materiał partnerski","autopromocja","ad$","Реклама","Рекламний блок","Рекламний матеріал","Διαφήμιση","Iklan","Quảng cáo","โฆษณา","Sponsorlu","Reklama?","Advertentie","Оглас","Publicidade","Anúncio","Annons","Annonce","Reklame","Annonsørinnhold","Kommersielt innhold","Contingut patrocinat"])+")",ae||"i")),pe=/^(like|dislike|share|save|bookmark|pin it|tweet|follow us|subscribe|subscribe now|sign up|view all|show more comments?|load more|report|flag|print|copy link|copy url|edit|delete|reply|retweet|repost|reblog|thanks for your feedback!?)$/,he=N(["join (?:us )?on (?:telegram|whatsapp|instagram|facebook|youtube|twitter|x|viber)","follow (?:us )?on (?:telegram|whatsapp|instagram|facebook|youtube|twitter|x|viber)","join (?:our )?(?:telegram|whatsapp|viber) (?:group|channel)","download (?:our|the) app","get (?:our|the) app","install (?:our|the) app","डाउनलोड करें","ऐप डाउनलोड","टेलीग्राम","व्हाट्सएप ग्रुप","হোয়াটসঅ্যাপ","টেলিগ্রাম","(?:become|be) a (?:member|subscriber|patron)","subscribe (?:now|today|here)","sign up (?:for|to) (?:our )?(?:newsletter|updates|emails?)","get started for free","サブスクライブ","구독하기","підписуйтесь на наш","приєднуйтесь до нас","підписатися на телеграм","підписатися на канал","ακολουθήστε μας","εγγραφείτε","ikuti kami di","gabung (?:di )?(?:telegram|whatsapp)","berlangganan","ติดตาม(?:เรา)?(?:ที่|ใน|ได้ที่)","theo dõi chúng tôi","volg ons","schrijf je in","abonneer","meld je aan","пратите нас","пријавите се","претплатите се","pratite nas","prijavite se","pretplatite se","ikut(?:i)? kami","langgan","inscreva-se","siga-nos","assine","sledujte nás","odebírejte","přihlaste se k odběru","připojte se","följ oss","prenumerera","registrera dig","følg os","abonner","tilmeld dig","følg oss","abonner på","meld deg på","registrer deg","subscriu-te","fes-te subscriptor","fes-te'n subscriptor","გამოიწერეთ","შემოგვიერთდით","მოგვყევით","අපව අනුගමනය කරන්න","bizə qoşulun","abunə olun","bizi izləyin","subskrybuj","zasubskrybuj","zapisz się na newsletter","dołącz do nas","obserwuj nas","śledź nas"],"i"),fe="[class*='app-download'], [class*='app_download'], [class*='download-app'], [class*='download_app'], [class*='app-banner'], [class*='app_banner'], [class*='app-install'], [class*='app_install'], [class*='install-app'], [class*='install_app'], [class*='mobile-app'], [class*='mobile_app'], [class*='open-in-app'], [class*='open_in_app'], [class*='app-promo'], [class*='app_promo'], [class*='amp-banner'], [class*='amp_banner'], [class*='amp-promo'], [class*='amp_promo'], [class*='subscribe-cta'], [class*='subscribe_cta'], [class*='newsletter-signup'], [class*='newsletter_signup'], [class*='push-notification'], [class*='push_notification'], [class*='telegram-cta'], [class*='whatsapp-cta']",ge="[class*='share'], [class*='social'], [class*='rating'], [class*='vote'], [class*='like-button'], [class*='dislike'], [data-testid*='share'], [data-testid*='like'], [class*='ad-overlay'], [class*='ad_overlay'], [class*='video-ad'], [class*='adWrapper'], [class*='ad-wrapper'], [class*='ad-container'], [id*='ad-overlay'], [id*='ad_overlay'], [class*='announcement-bar'], [class*='global-alert'], [id*='announcement-bar']",ye="[class*='taboola'], [id*='taboola'], [class*='outbrain'], [id*='outbrain'], [data-widget-type*='taboola'], [data-widget-type*='outbrain'], [class*='promoted-content'], [class*='promoted_content'], [id*='promoted-content'], [class*='sponsored-content'], [class*='sponsored_content'], [class*='mgid'], [id*='mgid'], [class*='zergnet'], [id*='zergnet'], [class*='revcontent'], [id*='revcontent']",be=new RegExp("(?:^|[-_\\s])(ad|ads|advert|advertisement|promo|promoted|sponsor|sponsored|subscription|subscribe|subscriber|paywall|upsell|marketing|newsletter|cta)(?:[-_\\s]|$)","i"),ve=new RegExp("\\b(save\\s+\\d+%|subscribe\\s+(?:now|today)|subscription|subscriber|sign\\s+up\\s+for|get\\s+started\\s+for\\s+free|limited\\s+time\\s+offer|annual\\s+subscriptions?|trusted\\s+destination\\s+for)\\b","i"),we=new RegExp("(?:\\/|[-_])(ad|ads|advert|promo|sponsor|sponsored|subscription|subscribe|marketing|upsell)(?:\\/|[-_.?]|$)","i"),xe=N(["related\\s*(articles?|stories|news|posts|content|links)?","more\\s*(from|in|stories|articles?|news)","see\\s*also","you\\s*may\\s*(also\\s*)?like","recommended","trending","popular","latest\\s*news","other\\s*news","also\\s*read","read\\s*more\\s*:?","further\\s*reading","references","citations","metrics","altmetric","więcej\\s*(z\\s*tej\\s*kategorii|artykułów|wiadomości|na\\s*ten\\s*temat)","zobacz\\s*również","polecamy","czytaj\\s*również","inne\\s*wiadomości","повезано","погледајте","сродне\\s*вијести","слично","такође\\s*прочитајте","още\\s*от","виж\\s*също","свързани\\s*новини","más\\s*de","noticias\\s*relacionadas","ver\\s*también","plus\\s*de","à\\s*lire\\s*aussi","lire\\s*aussi","sur\\s*le\\s*même\\s*sujet","mehr\\s*aus","lesen\\s*sie\\s*auch","das\\s*könnte\\s*sie\\s*auch\\s*interessieren","altre\\s*notizie","leggi\\s*anche","ook\\s*interessant","lees\\s*ook","läs\\s*också","relateret","relaterte\\s*saker","les\\s*også","aiheeseen\\s*liittyvät","lue\\s*myös","ilgili\\s*haberler","daha\\s*fazla","saistītie","susijusios\\s*naujienos","поврзано","citește\\s*și","articole\\s*similare","також\\s*читайте","схожі\\s*новини","σχετικά\\s*νέα","διαβάστε\\s*επίσης","関連記事","関連ニュース","おすすめ","あわせて読みたい","続きを読む","更多相关新闻","相关新闻","相关阅读","延伸阅读","관련\\s*기사","함께\\s*읽기","اقرأ\\s*أيض[اً]ا","إقرأ\\s*أيض[اً]ا","مواضيع\\s*ذات\\s*صلة","أخبار\\s*ذات\\s*صلة","مطالب\\s*مرتبط","مطالب\\s*ذات\\s*صلة","مرتبط","עוד\\s*כתבות","כתבות\\s*נוספות","संबंधित\\s*(?:खबरें|लेख)","और\\s*पढ़ें","আরও\\s*পড়ুন","সম্পর্কিত\\s*খবর","อ่านเพิ่มเติม","ข่าวที่เกี่ยวข้อง","tin\\s*liên\\s*quan","đọc\\s*thêm","baca\\s*juga","berita\\s*terkait"],"i"),Se=N(["za ogled potrebujemo tvojo privolitev(?: za vstavljanje vsebin družbenih omrežij in tretjih ponudnikov\\.?)?","omogoči piškotke","cookie manager","your cookie preferences","got it!","let us know your cookie preferences","we value your privacy","manage choices","privacy settings","polityka prywatności i cookies","nie widzisz nawet do 30% treści dostępnych w serwisie","data preferences(?:\\s*[\\/|]\\s*|\\s+)manage your data","data preferences","manage your data","manage (?:privacy|cookie|consent|data) preferences","privacy preference center","your privacy settings","your privacy choices","veri tercihleri","nastavení souhlasu","souhlas s personalizací","เว็บไซต์นี้ใช้คุ้กกี้"],"i");function ke(e){if(!e||1!==e.nodeType)return!1;var r=t([e.getAttribute("id"),e.getAttribute("class"),e.getAttribute("aria-label"),e.getAttribute("data-testid")].join(" ")).toLowerCase(),n=t(e.textContent||"");if(/(onetrust|ot-sdk|\bot-[\w-]*|cookiebot|cybot|cookiedeclaration|cookie-declaration|usercentrics|trustarc|didomi|quantcast|osano|cookieyes|cky-|sourcepoint|sp_message|privacy-center|privacy preference center|cookie information|cookie list|consent preferences)/.test(r)||"true"===e.getAttribute("data-nosnippet"))return!0;if(!n)return!1;var o=/(cookie|consent|privacy|gdpr|ccpa)/.test(r);if(o&&X(n))return!0;if(o&&n.length>5e3&&/(cookie|cookies|consent|privacy|gdpr|ccpa)/i.test(n.slice(0,2e3)))return!0;if((e.matches("[role='dialog'], [aria-modal='true'], dialog")||/position:\s*(fixed|sticky)/i.test(e.getAttribute("style")||""))&&X(n))return!0;if("undefined"!=typeof window&&e.ownerDocument&&e.ownerDocument.defaultView)try{var i=e.ownerDocument.defaultView.getComputedStyle(e);if(i&&/fixed|sticky/.test(i.position)&&X(n))return!0}catch(e){}return!!(X(n)&&n.length<3e3&&e.querySelectorAll("button, a, input[type='button'], input[type='submit']").length>=1)}function Ae(e){return e&&e.querySelectorAll?(e.querySelectorAll("[role='dialog'], [aria-modal='true'], dialog, [id*='cookie' i], [class*='cookie' i], [id*='consent' i], [class*='consent' i], [id*='privacy' i], [class*='privacy' i], [id*='onetrust' i], [class*='onetrust' i], [id^='ot-' i], [class*='ot-' i], [id*='gdpr' i], [class*='gdpr' i], [id*='ccpa' i], [class*='ccpa' i], [class*='CookieConsent' i], [id*='CookieConsent' i], [class*='CookieDeclaration' i], [id*='CookieDeclaration' i], [class*='cookiebar' i], [id*='cookiebar' i], [class*='cookie-banner' i], [id*='cookie-banner' i], [class*='cookie-notice' i], [id*='cookie-notice' i], [class*='privacy-center' i], [id*='privacy-center' i], [data-nosnippet='true'], .cc-banner, .cc-window, #CybotCookiebotDialog, .cky-consent-container, #usercentrics-root, .osano-cm-dialog").forEach(function(e){ke(e)&&e.remove()}),e.querySelectorAll("section, div, aside, form").forEach(function(e){ke(e)&&e.remove()}),e):e}function Ce(e){return e.querySelectorAll("img").forEach(function(e){var t=parseInt(e.getAttribute("width")||"",10),r=parseInt(e.getAttribute("height")||"",10),n=(e.getAttribute("src")||"").toLowerCase();t<=2&&r<=2||0===t||0===r?e.remove():(/\/(pixel|beacon|track|rt)\.(gif|png|jpg)|\/pixel\?|\/beacon\?|1x1\.|spacer\.|transparent\.|blank\.(gif|png)|\/tr\?|\.gif\?.*utm_|__utm\.gif|\/pixel\.php/i.test(n)&&e.remove(),/^data:image\/(svg\+xml|png|gif|jpeg);base64,/.test(n)&&n.length<300&&e.remove())}),e}function qe(e){return e.querySelectorAll("img").forEach(function(e){var t=e.getAttribute("src"),r=e.getAttribute("data-lazy-src")||e.getAttribute("data-src")||e.getAttribute("data-original")||e.getAttribute("data-lazy");!r||t&&!/^data:image\//i.test(t)||e.setAttribute("src",o(r))}),e}function Te(e){return e.querySelectorAll("a, button, span, div").forEach(function(e){var r=t(e.textContent).toLowerCase();pe.test(r)&&n(e)<60&&e.remove(),ee(r)&&n(e)<80&&e.remove()}),e.querySelectorAll("a, button, div, p, span, li").forEach(function(e){var r=t(e.textContent).toLowerCase();n(e)>200||he.test(r)&&e.remove()}),e.querySelectorAll(fe).forEach(function(e){n(e)<300&&e.remove()}),e.querySelectorAll("img").forEach(function(e){var t=(e.getAttribute("alt")||"").toLowerCase(),r=(e.getAttribute("src")||"").toLowerCase();/^close$/.test(t)&&/(close|cross|dismiss|x-icon)/i.test(r)&&e.remove()}),e.querySelectorAll(ge).forEach(function(e){var r=t(e.textContent||"");(r.length<120||/covid|coronavirus|shipping|discount/i.test(r))&&e.remove()}),e.querySelectorAll(ye).forEach(function(e){e.remove()}),e.querySelectorAll("[class*='comment-count'], [class*='comment_count'], [class*='comments-count'], [class*='commentCount'], [class*='komentari'], [data-type='comment-count']").forEach(function(e){n(e)<30&&e.remove()}),e.querySelectorAll("img").forEach(function(e){var t=e.getAttribute("src")||"";/maps\.wikimedia\.org\/osm|\/osm-intl\/\d+\/|tile\.openstreetmap\.org|maps\.wikimedia\.org\/v4\/marker/i.test(t)&&e.remove()}),e.querySelectorAll("a, button, div, span").forEach(function(e){var r=t(e.textContent).toLowerCase(),o=(e.getAttribute("title")||"").toLowerCase();(/^(zoom in|zoom out|show in full screen|layers|leaflet|maplibre)$/.test(r)&&n(e)<40||/^(zoom in|zoom out)$/.test(o)&&n(e)<10)&&e.remove()}),e.querySelectorAll("[class*='leaflet-'], [class*='maplibre-'], [class*='map-container'], [class*='kartographer']").forEach(function(e){n(e)<200&&e.remove()}),e}function _e(e){e.querySelectorAll("h2, h3, h4").forEach(function(e){var r=t(e.textContent||"").trim();if(r&&xe.test(r)&&e.parentElement){for(var n=[],o=e.nextElementSibling;o;){var i=o.tagName;if(/^H[1-4]$/.test(i)&&!xe.test(t(o.textContent||"").trim()))break;n.push(o),o=o.nextElementSibling}var a=0,l=0;n.forEach(function(e){a+=(e.matches&&e.matches("a[href]")?1:0)+(e.querySelectorAll?e.querySelectorAll("a[href]").length:0),l+=t(e.textContent||"").length}),a>=2&&(l<1500||a>=4)&&(e.remove(),n.forEach(function(e){e.remove()}))}}),e.querySelectorAll("div, section, aside").forEach(function(e){if(e.closest("article, main, [role='main']")){var r=t(e.textContent||"").trim();if(r&&xe.test(r.slice(0,120)))e.querySelectorAll("a[href]").length>=2&&r.length<5e3&&e.remove()}})}function Ee(e){return e.querySelectorAll("[role='navigation'], [role='menubar'], [role='menu'], [role='toolbar'], [role='complementary'], [role='banner'], [role='contentinfo'], [aria-label*='navigation' i], [aria-label*='menu' i], [aria-label*='breadcrumb' i], [aria-label*='sidebar' i]").forEach(function(e){e.remove()}),e.querySelectorAll("header").forEach(function(e){var r=e.querySelectorAll("a[href]").length,n=t(e.textContent||"");r>=4&&n.length<800&&e.remove()}),e.querySelectorAll("[class*='sidebar'], [class*='side-nav'], [class*='sidenav'], [class*='left-rail'], [class*='right-rail'], [class*='article-drawer'], [class*='toc-drawer'], [class*='table-of-contents'], [class*='mobile-menu'], [class*='mobile-nav'], [class*='hamburger-menu'], [class*='toc']").forEach(function(e){var r=e.querySelectorAll("a[href]").length,n=t(e.textContent||"");if(r>=3&&!e.querySelector("article, main, [role='main'], pre, blockquote, table"))e.remove();else if(r>=3&&n.length<1200){var o=n.split(/\s+/).length;o>0&&r/o>.3&&e.remove()}}),e.querySelectorAll("div, section, ul").forEach(function(e){if(!e.closest("article, main, [role='main']")||!e.matches("article *, main *, [role='main'] *")){var r=t(e.textContent||""),n=e.querySelectorAll("a[href]").length,o=r.split(/\s+/).length;n>=6&&o>0&&n/o>.5&&r.length<600&&!e.querySelector("article, main, [role='main'], p, h1, h2, h3, blockquote, pre, table")&&e.remove()}}),e}function je(e,t){if(t=t||location.hostname||"",!e)return!1;if(Array.isArray(e)){for(var r=0;r<e.length;r+=1)if(je(e[r],t))return!0;return!1}return e instanceof RegExp?e.test(t):"function"==typeof e?e(t):"string"==typeof e&&(t===e||t.slice(-(e.length+1))==="."+e)}function Le(e){return/^[\w.-]+\.[a-z]{2,}$/i.test(t(e||""))}function $e(e,t){if(t=t||document,!e)return null;if(3===e.nodeType)return t.createTextNode(e.textContent||"");if(1!==e.nodeType)return null;var r,n=(e.tagName||"").toLowerCase(),o=n&&!/-/.test(n)?n:"div";try{r=t.createElement(o||"div")}catch(e){r=t.createElement("div")}return Array.prototype.forEach.call(e.attributes||[],function(e){if(e&&e.name&&!/^on/i.test(e.name))try{r.setAttribute(e.name,e.value)}catch(e){}}),Array.prototype.forEach.call(e.childNodes||[],function(e){var n=$e(e,t);n&&r.appendChild(n)}),r}function Pe(e,t){try{return e.cloneNode(!0)}catch(r){return $e(e,t)}}function Ne(e){for(var t=e;t&&1===t.nodeType;){var r=window.getComputedStyle?window.getComputedStyle(t):null;if(t.hidden)return!0;if(r&&("none"===r.display||"hidden"===r.visibility||"collapse"===r.visibility))return!0;t=t.parentElement}return!1}function ze(e,r){if(ke(e))return document.createElement("div");var n,i=Pe(e,document);return i?(r&&i.querySelectorAll(r).forEach(function(e){e.setAttribute("data-fetchutil-preserve","true")}),(n=i)&&n.querySelectorAll&&n.querySelectorAll("button, [role='button'], input[type='button'], input[type='submit']").forEach(function(e){var r=t(e.innerText||e.textContent||e.getAttribute("value")||"");if(!e.hasAttribute("data-fetchutil-preserve")&&function(e){var r=t(e||"");return!!r&&!(r.length<30||r.length>320)&&!(X(r)||te(r)||ee(r))&&!W.test(r)&&r.split(/\s+/).length>=4}(r)){var n=document.createElement("p");n.textContent=r,n.setAttribute("data-fetchutil-button-text","true"),e.replaceWith(n)}}),i.querySelectorAll("button").forEach(function(e){var r=e.querySelector("[class*='http-verb']");if(r){for(var n="",o=e.querySelectorAll("span"),i=0;i<o.length;i++)if(o[i]!==r&&!o[i].querySelector("[class*='http-verb']")&&!/collapser|ellipsis|arrow/i.test(o[i].className||"")){var a=t(o[i].textContent);if(a&&/^\//.test(a)){n=a;break}}if(n){var l=document.createElement("p");l.innerHTML="<code>"+t(r.textContent).toUpperCase()+" "+n+"</code>",e.replaceWith(l)}}}),i.querySelectorAll("script, style, noscript, template, iframe, form, button, input, aside, nav, footer").forEach(function(e){e.hasAttribute("data-fetchutil-preserve")||e.remove()}),Ae(i),i.querySelectorAll("a").forEach(function(e){var t=e.getAttribute("href");t&&e.setAttribute("href",o(t))}),i.querySelectorAll("img").forEach(function(e){var t=e.getAttribute("src"),r=e.getAttribute("data-lazy-src")||e.getAttribute("data-src")||e.getAttribute("data-original")||e.getAttribute("data-lazy");!r||t&&!/^data:image\//i.test(t)||(t=r),t||(t=r),t&&e.setAttribute("src",o(t))}),i):document.createElement("div")}function Me(e,t){return e&&t?(e.querySelectorAll(t).forEach(function(e){e.remove()}),e):e}function Re(e){return Ae(e),function(e){e&&e.querySelectorAll&&e.querySelectorAll("p, div, span, section, aside, figcaption, li, a, button").forEach(function(e){var r=t(e.textContent||"");!r||r.length>250||Se.test(r)&&e.remove()})}(e),e.querySelectorAll("#comments, #respond, .comments-area, .comment-list, .comments-section, #disqus_thread, .disqus-comment-count, [class*='comment-respond'], .wp-block-comments, .post-comments").forEach(function(e){e.remove()}),e.querySelectorAll(ue).forEach(function(e){e.remove()}),_e(e),e.querySelectorAll("section, div, aside, form, table, ul").forEach(function(e){(function(e){if(!e||1!==e.nodeType)return!1;if(t(e.textContent||"").length>1e3&&e.querySelectorAll("p, h1, h2, h3, h4, h5, h6").length>=2)return!1;var r=t((e.querySelector("h2, h3, h4, h5, h6, strong, b")||{}).textContent||"");if(!r){var n=t((e.firstElementChild||e).textContent||"");n.length<=40&&(r=n)}return!!te(r)&&e.querySelectorAll("a[href], li, tr").length>=3})(e)&&e.remove()}),function(e){e.querySelectorAll("aside, section, div, figure, picture").forEach(function(e){if(!e.matches("main, article, [role='main']")&&!e.querySelector("article, main, [role='main']")){var r=t(e.textContent||""),n=r.toLowerCase(),o=[e.className||"",e.id||"",e.getAttribute("data-testid")||"",e.getAttribute("data-test")||"",e.getAttribute("aria-label")||""].join(" ").toLowerCase(),i=Array.prototype.map.call(e.querySelectorAll("img, source"),function(e){return(e.getAttribute("src")||e.getAttribute("srcset")||"").toLowerCase()}).join(" "),a=be.test(o),l=ve.test(n),s=we.test(i);((a||s)&&(r.length<900||l)||l&&s&&r.length<1200)&&e.remove()}})}(e),e.querySelectorAll('a[href^="#"]').forEach(function(e){var r=t(e.textContent),n=(e.className||"").toString();r&&!/anchor|heading/i.test(n)||e.remove(),/^skip\s+(to\s+)?(main\s+)?/i.test(r)&&e.remove(),/^(تخطى|تجاوز|דלג)\s/i.test(r)&&e.remove(),/^(μετάβαση στο |παράλειψη |перейти до |пропустити |bỏ qua |ข้ามไปยัง|lewati |langsung ke )/i.test(r)&&e.remove(),/^(ga naar |doorgaan naar |overslaan|spring naar |прескочи |пређи на |langkau |ir para |pular para |saltar )/i.test(r)&&e.remove(),/^(přejít na |přeskočit |gå til |spring over |hoppa till |gå vidare |pumunta sa |laktawan |hopp over |gå til innhold|anar a |saltar a )/i.test(r)&&e.remove(),/^(przejdź do |pomiń )/i.test(r)&&e.remove()}),e.querySelectorAll("a, button").forEach(function(e){var r=t(e.textContent).toLowerCase();de.test(r)&&e.remove()}),e.querySelectorAll("p, div, span, a, button, li").forEach(function(e){var r=t(e.textContent).toLowerCase();me.test(r)&&n(e)<80&&e.remove()}),e.querySelectorAll("p, div").forEach(function(e){(function(e){if(!e)return!1;var r=t(e.textContent);if(r.length>200)return!1;var n=e.querySelectorAll("img").length,o=e.querySelectorAll("a").length,i=t(Array.prototype.map.call(e.querySelectorAll("img[alt]"),function(e){return e.getAttribute("alt")||""}).join(" ")).toLowerCase();return n>=1&&o>=1&&(r.length<=24||/\b(status|badge|build|coverage|workflow|ci)\b/.test(i))})(e)&&e.remove()}),e.querySelectorAll("p, div, li, span, strong, button").forEach(function(e){var r,n;(Q(e.textContent)||(r=e.textContent,n=t(r||"").toLowerCase(),-1!==I.indexOf(n)||K(n,D)))&&e.remove()}),e.querySelectorAll("svg, .octicon").forEach(function(e){e.remove()}),e.querySelectorAll(".anchor, .heading-link, .header-anchor").forEach(function(e){var r=t(e.textContent);e.closest("h1, h2, h3, h4, h5, h6")&&r.length>=8?e.replaceWith(document.createTextNode(r)):e.remove()}),e.querySelectorAll("p, div, span, li, td").forEach(function(e){var r,n;r=e.textContent,!(!(n=t(r||""))||n.length>1200||n.length<12)&&/\b(document\.(body|getElementById|querySelector|createElement|cookie|write)|window\.(location|addEventListener|dataLayer|gtag|ga\()|function\s*\(|var\s+\w+\s*=\s*|\.push\s*\(\s*function|\.classList\.(add|remove|toggle)|\.style\.\w+\s*=|\.innerHTML\s*=|\.setAttribute\s*\(|addEventListener\s*\(|\.insertBefore\s*\(|\.appendChild\s*\(|\.parentNode\s*\.|new\s+(Date|Array|Object|RegExp|Map|Set)\s*\(|typeof\s+\w+\s*[!=]==?\s*|===?\s*['"]undefined['"]|console\.(log|warn|error)|setTimeout\s*\(|setInterval\s*\(|JSON\.(parse|stringify)|Promise\.(resolve|reject|all)|Object\.(keys|values|assign|defineProperty)|Array\.(isArray|from|prototype)|return\s+(true|false|null|void|this)\b|if\s*\([^)]*\)\s*\{|try\s*\{|catch\s*\(\w+\)\s*\{|throw\s+new\s+\w+)/.test(n)&&(n.match(/[{};()=]|function\s|var\s|const\s|let\s|return\s|\.push\(|\.call\(|\.apply\(|=>|===?|!==?|&&|\|\|/g)||[]).length>=3&&!e.querySelector("p, h1, h2, h3, h4, h5, h6, ul, ol, table, blockquote, pre, article")&&e.remove()}),e.querySelectorAll("p, div, span, li, td").forEach(function(e){var r,n;r=e.textContent,!(n=t(r||""))||n.length<40||!/\bdebug info:|fetchCache\[|\.expirationTime:|cache key:/i.test(n)||e.querySelector("p, h1, h2, h3, h4, h5, h6, ul, ol, table, blockquote, pre, article")||e.remove()}),Ce(e),qe(e),Te(e),Ee(e),e}function Be(e,t,r,n,o,i){return"function"==typeof e?e(t,r,n,o,i):e}var He=["[data-paywall]","[class*='paywall' i]","[id*='paywall' i]","[class*='subscribe-wall' i]","[class*='premium-wall' i]","[class*='piano-offer' i]"];function Fe(e,t,r){return Ke(e,t,r)}var Oe=["article[id^='post-'] .entry-content","article[id^='post-'] .post-content","article[id^='post-'] [itemprop='articleBody']",".entry-content",".post-content","[itemprop='articleBody']"],Ie=["h1.entry-title",".entry-title","article h1","main h1","h1"],De=["[rel='author']",".author",".byline",".post-author","[class*='author' i]"],Ue=[".sharedaddy",".share",".share-links",".share-buttons",".social-sharing",".social-buttons",".related-posts",".yarpp-related",".jp-relatedposts",".adsbygoogle","[class*='related' i]","[class*='recommend' i]","[class*='share' i]","[class*='advert' i]","[class*='sponsor' i]","[id*='ad-' i]","iframe","script","style"];function Ze(e,r){if((r=r||{}).hostPattern&&!at(r.hostPattern,location.hostname))return null;if(r.pathPattern&&!at(r.pathPattern,location.pathname||""))return null;if(r.homepagePath&&at(r.homepagePath,location.pathname||""))return null;"function"==typeof r.beforeExtract&&r.beforeExtract(e);var n=function(e){if("function"==typeof e.body)return e.body();var r=e.minVisibleBodyTextLength||0;if(!r)return lt({bodySelectors:e.bodySelectors||Oe});for(var n=e.bodySelectors||Oe,o=0;o<n.length;o+=1){var i=document.querySelector(n[o]);if(i&&t(i.textContent||"").length>=r)return i}return null}(r)||function(e){var r=e.restFallback;if(!r)return null;var n=function(e){if("function"==typeof e.postId)return e.postId(location);if(e.postId)return e.postId;var t=e.postIdPattern||/(?:^|\/)news_(\d+)\/?$/i,r=(location.pathname||"").match(t);return r&&r[1]}(r);if(!n)return null;var o=function(e,t){var r="function"==typeof e.path?e.path(t):e.path||"/wp-json/wp/v2/posts/"+t;try{var n=new XMLHttpRequest;return n.open("GET",r,!1),n.send(null),n.status<200||n.status>=300||!n.responseText?null:JSON.parse(n.responseText)}catch(e){return null}}(r,n),i=o&&o.content&&o.content.rendered;if(!i)return null;var a=document.createElement("div");return a.innerHTML=i,t(a.textContent||"").length<(r.minTextLength||e.minBodyTextLength||0)?null:a}(r);return n?Fe(e,n,{title:We(e,r),byline:Ge(e,r),publishedTime:r.publishedTime,minTextLength:r.minBodyTextLength||r.minTextLength||0,contentType:r.contentType||"article",extra:r.extra,rewriteRoot:function(e,t){Me(e,function(e){return Ue.concat(e.removalSelectors||[])}(r).join(", ")),ut(e,r.removalTextPatterns),"function"==typeof r.rewriteRoot&&r.rewriteRoot(e,t)}}):null}function We(e,r){return"function"==typeof r.title?r.title(e):void 0!==r.title?r.title:u(r.titleSelectors||Ie)||t(e&&e.title)}function Ge(e,t){return"function"==typeof t.byline?t.byline(e):void 0!==t.byline?t.byline:e&&e.byline||u(t.bylineSelectors||De)}function Ke(e,r,n){if(!r)return null;var o=!1===(n=n||{}).cloneRoot?r:ze(r);if(!o)return null;"function"==typeof n.rewriteRoot&&n.rewriteRoot(o,r),!1!==n.cleanupRoot&&Re(o);var i=tr(o.innerHTML);!1!==n.cleanupMarkdown&&(i=Ut(i)),"function"==typeof n.postProcessMarkdown&&(i=n.postProcessMarkdown(i,o,r));var a=t(i);if(!a||a.length<(n.minTextLength||0))return null;if("function"==typeof n.validateMarkdown&&!n.validateMarkdown(i,a,o,r))return null;var l=function(e,r,n,o){if("function"==typeof o.title)return t(o.title(e,r,n));if(o.title)return t(o.title);if(o.titleSelectors){var i=u(o.titleSelectors);if(i)return i}return t(e&&e.title)}(e,o,r,n);l&&!1!==n.prependTitle&&!Et(i,l)&&(i="# "+l+"\n\n"+i);var s=t(i),c=Be(n.excerpt,e,o,r,i,a);void 0===c&&!1!==n.defaultExcerpt&&(c=a.slice(0,280)||e&&e.excerpt);var d=Be(n.byline,e,o,r,i,a);void 0===d&&(d=e&&e.byline);var m={title:l||e&&e.title,byline:d,excerpt:c,siteName:Be(n.siteName,e,o,r,i,a)||e&&e.siteName||location.hostname,publishedTime:null===n.publishedTime?null:Be(n.publishedTime,e,o,r,i,a)||e&&e.publishedTime,html:o.innerHTML,markdown:i,textContent:s,readerMode:!1,contentType:n.contentType||"article",hostAware:!1!==n.hostAware};if(n.extra){var p=Be(n.extra,e,o,r,i,a)||{};Object.keys(p).forEach(function(e){m[e]=p[e]})}return m}function Ve(e){var r=function(e){if("function"==typeof e.scope)return e.scope();if(e.scope)return e.scope;for(var t=e.scopeSelectors||[],r=0;r<t.length;r+=1){var n=document.querySelector(t[r]);if(n)return n}return document}(e=e||{});if(!r)return null;var n,o=document.createElement("article"),i=[];return Xe(o,r,e.titleSelectors,i,!1),Xe(o,r,e.leadSelectors,i,!1),Xe(o,r,e.summarySelectors,i,!1),Xe(o,r,e.captionSelectors||e.mediaCaptionSelectors,i,!1),n=Xe(o,r,e.bodySelectors,i,!0),(!1===e.requireBody||n)&&t(o.textContent||"").length>=(e.minTextLength||0)?o:null}function Je(e,t){var r=document.createElement("article");return e&&r.appendChild(Pe(e,document)),t&&r.appendChild(Pe(t,document)),r}function Xe(e,t,r,n,o){if(!r)return!1;for(var i=Array.isArray(r)?r:[r],a=!1,l=0;l<i.length;l+=1){var s=Ye(t,i[l]);if(s&&(Qe(e,s,n)&&(a=!0),a&&!o))return!0}return a}function Ye(e,t){return"function"==typeof t?t(e,document):t&&1===t.nodeType?t:t?e.querySelector&&e.querySelector(t)||document.querySelector(t):null}function Qe(e,r,n){var o=t(r.textContent||"");return!(!o||n.indexOf(o)>=0)&&(n.push(o),e.appendChild(Pe(r,document)),!0)}function et(e,r){var n=function(e){if("function"==typeof e.selectedEntry)return e.selectedEntry(e);if(e.selectedEntry)return e.selectedEntry;var t="function"==typeof e.entryIdFromUrl?e.entryIdFromUrl(location):e.entryIdFromUrl;if(t){var r=document.getElementById(String(t));if(!r&&e.entryIdPrefix&&(r=document.getElementById(e.entryIdPrefix+t)),r||"function"!=typeof e.entryForId||(r=e.entryForId(t)),r)return r}if(!e.entrySelector)return null;var n=Array.prototype.slice.call(document.querySelectorAll(e.entrySelector));if(!n.length)return null;if("function"==typeof e.entryMatcher){var o=n.find(function(t){return e.entryMatcher(t,e)});if(o)return o}return n[0]}(r=r||{});if(!n)return null;"function"==typeof r.beforeBuild&&r.beforeBuild(e,n);var o=function(e,r){if("function"==typeof r.rootBuilder)return r.rootBuilder(e,r);if(!r.bodySelector)return e;var n=document.createElement("article");return function(e,t,r){(Array.isArray(r)?r:[r]).forEach(function(r){if(r){var n=t.matches&&t.matches(r)?t:t.querySelector(r);n&&e.appendChild(Pe(n,document))}})}(n,e,r.bodySelector),t(n.textContent||"")?n:null}(n,r);if(!o)return null;var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.cloneRoot=!1,i.title=void 0!==r.title?tt(r.title,e,o,n):rt(n,r.titleSelector),i.byline=void 0!==r.byline?tt(r.byline,e,o,n):rt(n,r.bylineSelector),i.publishedTime=void 0!==r.publishedTime?tt(r.publishedTime,e,o,n):function(e,r){if(!r)return;var n=e.querySelector(r);return n?n.getAttribute("datetime")||t(n.textContent||""):void 0}(n,r.timeSelector),i.rewriteRoot=function(e,t){r.cleanupSelectors&&Me(e,Array.isArray(r.cleanupSelectors)?r.cleanupSelectors.join(", "):r.cleanupSelectors),"function"==typeof r.rewriteRoot&&r.rewriteRoot(e,t)},i.extra=function(e,t,n,o,i){var a=Be(r.extra,e,t,n,o,i)||{};return a.isolatedLiveblogEntry=!0,a},Fe(e,o,i)}function tt(e,t,r,n){return"function"==typeof e?e(t,r,n):e}function rt(e,r){if(r)for(var n=Array.isArray(r)?r:[r],o=0;o<n.length;o+=1){var i=n[o],a=e.querySelector(i.selector||i),l=i.attr?a&&a.getAttribute(i.attr):a&&a.textContent;if(l=t(l))return l}}function nt(e,r,n){n=n||{};var o=e||document.body;if(!o)return e;var i=o.cloneNode(!0);ot(i,n.removalSelectors),it(i,n.textRemovalPattern,n.textRemovalMaxLength);var a=t(i.textContent||"");if(n.bodyRejectPattern&&n.bodyRejectPattern.test(a))return e;if(n.hardPaywallPattern&&n.hardPaywallPattern.test(a))return e;if(n.pageHardPaywallPattern){var l=t(document.body&&(document.body.innerText||document.body.textContent)||"");if(n.pageHardPaywallPattern.test(l))return e}var s=n.paragraphSelectors||"p",c=n.paragraphMinLength||70,u=Array.prototype.filter.call(i.querySelectorAll(s),function(e){return t(e.textContent||"").length>=c}).length;return a.length<(n.minBodyTextLength||1200)||u<(void 0===n.minParagraphCount?3:n.minParagraphCount)||(ot(o,n.removalSelectors),it(o,n.textRemovalPattern,n.textRemovalMaxLength),ot(document,n.signalRemovalSelectors||n.removalSelectors),it(document,n.textRemovalPattern,n.textRemovalMaxLength),function(e){var t=e.stripAttributeSelectors;if(!t)return;document.querySelectorAll(t).forEach(function(t){if(e.stripIdPattern&&e.stripIdPattern.test(t.getAttribute("id")||"")&&t.removeAttribute("id"),e.stripClassPattern){var r=(t.getAttribute("class")||"").split(/\s+/).filter(function(t){return t&&!e.stripClassPattern.test(t)});r.length?t.setAttribute("class",r.join(" ")):t.removeAttribute("class")}})}(n),function(e,t){document.querySelectorAll("script[type='application/ld+json']").forEach(function(e){var r=e.textContent||"";"remove"!==t.structuredDataMode?/isAccessibleForFree/i.test(r)&&(e.textContent=r.replace(/("isAccessibleForFree"\s*:\s*)"?(?:false|False)"?/g,"$1true")):(t.structuredDataRemovalPattern||/isAccessibleForFree/i).test(r)&&e.remove()}),document.querySelectorAll("meta[property='article:content_tier'], meta[name='article:content_tier']").forEach(function(e){/^(locked|metered|premium)$/i.test(e.getAttribute("content")||"")&&e.remove()}),e&&(e.isAccessibleForFree=!0,e.contentTier&&(e.contentTier=null))}(r,n)),e}function ot(e,t){e&&t&&Me(e,Array.isArray(t)?t.join(", "):t)}function it(e,r,n){e&&r&&(n=n||280,e.querySelectorAll("p, div, span, section, aside, figcaption").forEach(function(e){var o=t(e.textContent||"");!o||o.length>n||r.test(o)&&e.remove()}))}function at(e,t){return!e||(t=t||"",e instanceof RegExp?e.test(t):"string"==typeof e&&(t===e||t.slice(-(e.length+1))==="."+e))}function lt(e){if("function"==typeof e.body)return e.body();for(var t=e.bodySelectors||[],r=0;r<t.length;r+=1){var n=document.querySelector(t[r]);if(n)return n}return null}function st(e,r){return"function"==typeof e.title?e.title(r):void 0!==e.title?e.title:e.titleSelectors?u(e.titleSelectors)||t(r&&r.title):void 0}function ct(e,t){return"function"==typeof e.byline?e.byline(t):void 0!==e.byline?e.byline:e.bylineSelectors?u(e.bylineSelectors)||t&&t.byline:void 0}function ut(e,r){(r||[]).forEach(function(r){e.querySelectorAll("p, div, span, section, a, button, h2, h3, h4, li").forEach(function(e){var n=t(e.textContent||"");n&&(r instanceof RegExp&&r.test(n)&&e.remove(),"string"==typeof r&&n===r&&e.remove())})})}function dt(e){return e=e||{},function(t){if(!at(e.hostPattern,location.hostname))return null;if(e.pathPattern&&!at(e.pathPattern,location.pathname||""))return null;if(e.homepagePath&&at(e.homepagePath,location.pathname||""))return null;"function"==typeof e.beforeExtract&&e.beforeExtract(t);var r=lt(e);return r?Fe(t,r,{title:st(e,t),titleSelectors:e.titleSelectors,byline:ct(e,t),publishedTime:e.publishedTime,minTextLength:e.minBodyTextLength||0,contentType:e.contentType||"article",extra:e.extra,rewriteRoot:function(t,r){Me(t,(e.removalSelectors||[]).join(", ")),ut(t,e.removalTextPatterns),"function"==typeof e.rewriteRoot&&e.rewriteRoot(t,r)}}):null}}function mt(e){e=e||{},registerHostAwareProfile(void 0===e.condition||e.condition,dt(e))}function pt(e,r,n){e.querySelectorAll(r).forEach(function(e){var r=t(e.textContent);r&&n.test(r)&&e.remove()})}function ht(e){if(!e)return!1;var t=location.href.split("#")[0]+"#";return"#"===e||0===e.indexOf("#")||0===e.indexOf(t)}function ft(e){var r=Array.prototype.slice.call(e.querySelectorAll("a[href]"));if(r.length<4||r.length>30)return!1;var n=r.filter(function(e){return ht(e.getAttribute("href"))}).length,o=t(e.textContent);return n>=4&&n>=Math.ceil(.8*r.length)&&o.length<900}function gt(e){return t((e||"").replace(/[\u200B\u200C\u200D\uFEFF]/g,"").replace(/\s*(?:Copy\s*(?:for\s+LLMs?|page(?:\s+as\s+Markdown)?(?:\s+for\s+LLMs?)?)|View\s+as\s+Markdown|Open\s+(?:this\s+page\s+as\s+Markdown|in\s+(?:ChatGPT|Claude|Cursor))|Get\s+insights\s+from\s+(?:ChatGPT|Claude)|Connect\s+to\s+Cursor|Ask\s+AI|Download\s+OpenAPI\s+spec(?:ification)?)\s*/gi,"")).replace(/\s+copy item path$/i,"").replace(/[¶#\uF0C1\uF0C6\uF08E\uF14C]+$/,"").replace(/\s*Copy$/i,"")}function yt(e,r){if(""!==(n=(location.pathname||"").replace(/\/+(?:index\.html?)?$/i,""))&&"/"!==n||!r)return!1;var n;if(!/^(docusaurus|nextra|next|sphinx|readthedocs)$/i.test(r.system||""))return!1;var o=t(document.body&&document.body.textContent||""),i=t(e&&e.textContent||""),a=document.querySelectorAll(".card, [class*='card' i], [class*='feature' i], [class*='tile' i], [class*='landing' i]").length,l=document.querySelectorAll("header a[href], nav a[href], aside a[href], [class*='sidebar' i] a[href], [class*='navbar' i] a[href]").length;return a>=3||(!!/\b(?:get started|getting started|quick start|api|reference|guides?|tutorials?)\s*\|\s*/i.test(i)||l>=8&&o.length>=1e3&&i.length>=300)}function bt(e,r){return r=r||{},pt(e,"a, button, span, div, p, li",/^(copy page|copy for llm|copy page as markdown|copy page as markdown for llms?|view as markdown|open this page as markdown|open in (?:chatgpt|claude|cursor)|get insights from (?:chatgpt|claude)|connect to cursor|download openapi spec(?:ification)?|ask about this section|ask ai|copy link|copy permalink|send feedback|edit this page|report feedback|pdf|rss|focus mode|skip to main content|skip to content|copy item path|view source|view on github|report a problem with this content|open menu|open sidebar|search|settings|help|search or ask copilot|expand description|show more|show less|expand|collapse|javascripttypescript|typescriptjavascript)$/i),pt(e,"h2, h3, h4, h5, p, div, span, li",/^(on this page|in this article|table of contents|last updated.*|api preferences|select language:.*|breadcrumbs?)$/i),e.querySelectorAll("section, div").forEach(function(e){var r=t(e.textContent);r&&(/^feedback\b/i.test(r)&&r.length<500&&e.querySelectorAll("a, button").length>=1||/^(was this page helpful|is this page helpful)\??$/i.test(r.split("\n")[0])&&r.length<300)&&e.remove()}),pt(e,"p, div, span",/^last modified\s/i),e.querySelectorAll("section, div, aside, form").forEach(function(e){var r=t(e.textContent);if(r){var n=e.querySelector("h2, h3, h4");n&&/^(subscribe|newsletter|stay up[- ]to[- ]date|get (?:the )?latest|sign up for (?:our )?(?:newsletter|updates)|mailing list)$/i.test(t(n.textContent))&&r.length<800&&e.remove()}}),pt(e,"p, div, span, a",/^(privacy\s*policy|terms\s+(?:of\s+(?:service|use)|and\s+conditions)|powered by [a-z]+)$/i),e.querySelectorAll("h1, h2, h3, h4, h5, h6").forEach(function(e){var t=gt(e.textContent);t&&(e.textContent=t)}),e.querySelectorAll("nav, [aria-label*='breadcrumb' i], ol[aria-label*='breadcrumb' i]").forEach(function(e){e.remove()}),e.querySelectorAll("a[href]").forEach(function(e){var r=t(e.textContent),n=t(e.getAttribute("title"));e.closest("h1, h2, h3, h4, h5, h6")&&r.length>=8||ht(e.getAttribute("href"))&&(!r||r.length<40||/link for this heading/i.test(n)||/^skip to (?:main )?content$/i.test(r))&&e.remove()}),e.querySelectorAll("section, div, ul, ol").forEach(function(e){var r=t(e.textContent);r&&(/^on this page\b/i.test(r)&&r.length<1200||ft(e)||function(e){if(e.closest&&e.closest(".landing-card, .card--fullwidth"))return!1;var r=Array.prototype.slice.call(e.querySelectorAll("a[href]"));if(r.length<2||r.length>8)return!1;var n=t(e.textContent);return!(!n||n.length>220)&&!e.querySelector("p, strong, b, h1, h2, h3, h4, h5, h6")&&r.every(function(e){return t(e.textContent).length>0&&t(e.textContent).length<40})}(e))&&e.remove()}),r.removeTryIt&&(e.querySelectorAll("section, div").forEach(function(e){var r=t(e.textContent),n=e.querySelector("h2, h3, h4");(n&&/^try it$/i.test(t(n.textContent))||/^try it\b/i.test(r)&&r.length<600)&&e.remove()}),pt(e,"h2, h3, h4",/^try it$/i)),r.removeCookiePrefs&&pt(e,"h1, h2, h3, p, div, span",/^(select your cookie preferences|customize cookie preferences|unable to save cookie preferences)$/i),r.removeMarketingTips&&e.querySelectorAll("section, div, aside").forEach(function(e){var r=t(e.textContent);/\b(tip|note)\b/i.test(r)&&/(workshop|builder center|sign up|training|studio)/i.test(r)&&r.length<600&&e.remove()}),e}function vt(e,r){for(var n=0;n<r.length;n+=1)for(var o=e.querySelectorAll(r[n]),i=0;i<o.length;i+=1){var a=t(o[i].textContent);if(a)return a}return null}function wt(e,t,r){return Array.prototype.slice.call(e.querySelectorAll(t)).filter(function(t){for(var n=t.parentElement;n&&n!==e;){if(n.matches&&n.matches(r))return!1;n=n.parentElement}return!0})}function xt(e,r,n){for(var o=0;o<r.length;o+=1)for(var i=wt(e,r[o],n),a=0;a<i.length;a+=1){var l=t(i[a].textContent);if(l)return l}return""}function St(e){for(var t=0;t<e.length;t+=1){var r=document.querySelector(e[t]);if(r)return r}return null}function kt(e){return t([location.hostname,e&&e.siteName,e&&e.title,document.title].join(" "))}function At(e,t,r){return e?("function"==typeof t&&(e=t(e,r)),gt(e||"")||null):null}function Ct(e,t,r,n){var o=u(t||[]);return o||"function"!=typeof r||(o=r(e)),o||"string"!=typeof r||(o=r),At(o,n,e)}function qt(e,t,r){t=t||"h1, h2, h3, h4, h5, h6",r=r||function(e){return gt(e)},e.querySelectorAll(t).forEach(function(e){var t=r(e.textContent,e);t&&(e.textContent=t)})}function Tt(e){var t=r((location.hash||"").replace(/^#/,"")).trim();if(!t)return null;var n=document.getElementById(t)||function(e){if(!e)return null;for(var t=document.querySelectorAll("a[name]"),r=0;r<t.length;r+=1)if((t[r].getAttribute("name")||"")===e)return t[r];return null}(t);return n&&(e===n||e.contains(n))?n:null}function _t(e){var t=Tt(e);if(!t)return null;var r=t.matches&&t.matches("h1, h2, h3, h4, h5, h6")?t:t.querySelector("h1, h2, h3, h4, h5, h6");return!r&&t.matches&&t.matches("a[name]")&&(r=t.nextElementSibling),gt((r||t).textContent)||null}function Et(e,r){if(!(r=t(r).replace(/[\`*_]/g,"")))return!1;var n=t(r).toLowerCase();return(e||"").split("\n").slice(0,8).map(function(e){return t(e).replace(/^#+\s*/,"").replace(/^\[([^\]]+)\]\([^)]*\)$/,"$1").replace(/[\`*_]/g,"")}).filter(Boolean).some(function(e){var r=t(e).toLowerCase();return r===n||0===r.indexOf(n)})}function jt(e){return t(e||"").replace(/([a-z0-9])((?:Default:|Can be one of:|For more information:|Example:|Required))/g,"$1 $2").replace(/([a-z])([A-Z][a-z])/g,"$1 $2")}function Lt(e,t,r){return Pt(e,St(t),r)}function $t(e,t,r){if(!(t=t||ta(e))||t.system!==r.system)return null;var n=r.headingFormatter||function(e){return gt(e)},o=r.titleFormatter||r.headingFormatter,i={preserveSelector:r.preserveSelector,rewriteRoot:function(e){r.removeSelectors&&e.querySelectorAll(r.removeSelectors).forEach(function(e){e.remove()}),r.removeTextPattern&&pt(e,r.removeTextSelector||"a, button, div, p, span, li",r.removeTextPattern),"function"==typeof r.rewriteRoot&&r.rewriteRoot(e,a),!1!==r.headingFormatter&&qt(e,r.headingSelector,n)}},a=null;!1===r.preferFragmentTitle?(a=Ct(e,r.titleSelectors,r.fallbackTitle,o),i.title=a):(i.titleSelectors=r.titleSelectors,i.fallbackTitle=r.fallbackTitle,i.titleFormatter=o);var l=St(r.rootSelectors);return"function"==typeof r.contentType?i.contentType=r.contentType(l,t):r.contentType&&(i.contentType=r.contentType),Pt(e,l,i)}function Pt(e,t,r){if(r=r||{},!t)return null;var n={};if(Object.keys(r).forEach(function(e){"titleSelectors"!==e&&"fallbackTitle"!==e&&"preferFragmentTitle"!==e&&"titleFormatter"!==e&&(n[e]=r[e])}),!n.title&&(r.titleSelectors||r.fallbackTitle)){var o=!1===r.preferFragmentTitle?null:_t(t);o=At(o,r.titleFormatter,e)||Ct(e,r.titleSelectors,r.fallbackTitle,r.titleFormatter),n.title=o}return Nt(e,t,n)}function Nt(e,r,n){if(!r)return null;var o,i=!1===(n=n||{}).focusFragment?r:function(e){var r=Tt(e);if(!r)return e;for(var n=r;n&&n!==e;){var o=t(n.textContent);if(/^(section|article|div|li|dt|dd|main)$/i.test(n.tagName||"")&&o.length>=20)return n;n=n.parentElement}return r}(r),a=ze(i,n.preserveSelector);if(Re(a),bt(a,n),"function"==typeof n.rewriteRoot)try{n.rewriteRoot(a)}catch(e){}try{o=tr(a.innerHTML).trim()}catch(e){o=""}"function"==typeof n.postProcessMarkdown&&(o=n.postProcessMarkdown(o,a));var l=gt(n.title||_t(r)||vt(a,["h1","header h1","h2"])||"")||null,s=n.description||vt(a,["p"]);return o?(l&&!Et(o,l)&&(o="# "+l+"\n\n"+o),{title:l||e.title,byline:e.byline,excerpt:s||e.excerpt,siteName:e.siteName||location.hostname,publishedTime:e.publishedTime,html:a.innerHTML,markdown:o,textContent:t(o),docsLike:!0,hostAware:!1!==n.hostAware,readerMode:!1,contentType:n.contentType||"article"}):l||s?T({title:l||e.title,description:s||e.excerpt,siteName:e.siteName||location.hostname,docsLike:!0,hostAware:!1!==n.hostAware}):null}var zt=z(["Реклама","Рекламний блок","Рекламний матеріал","Διαφήμιση","Iklan","Quảng cáo","โฆษณา","Sponsorlu","Reklama?","Advertentie","Реклама","Оглас","Publicidade","Anúncio","Annons","Annonce","Reklame","Annonsørinnhold","Kommersielt innhold","Contingut patrocinat"],"\\s*:?"),Mt=z(["(?:Join|Follow)\\s+(?:us\\s+)?on\\s+(?:Telegram|WhatsApp|Instagram|Facebook|YouTube|Twitter|X)","(?:Join|Follow)\\s+(?:our\\s+)?(?:Telegram|WhatsApp)\\s+(?:Group|Channel)","(?:Download|Get|Install)\\s+(?:our|the)\\s+(?:App|Mobile App)"]),Rt=M(["Підписуйтесь на наш|Приєднуйтесь до нас|Підписатися на (?:телеграм|канал)|Читай(?:те)? також у|Ми у (?:телеграмі|фейсбуці|інстаграмі)","Ακολουθήστε μας|Εγγραφείτε","Ikuti kami di|Gabung (?:di )?(?:Telegram|WhatsApp)|Berlangganan","Theo dõi chúng tôi","Volg ons|Schrijf je in|Abonneer je|Meld je aan voor","Пратите нас|Претплатите се|Пријавите се|Pratite nas|Pretplatite se|Prijavite se","Ikuti kami|Langgan(?:i)?|Sertai (?:kami|saluran)","Siga-nos|Inscreva-se|Assine|Acompanhe-nos","Sledujte nás|Odebírejte|Přihlaste se k odběru|Připojte se","Följ oss|Prenumerera|Registrera dig","Følg os|Abonner|Tilmeld dig","Følg oss|Abonner på|Meld deg på|Registrer deg","Subscriu-te|Fer-se subscriptor|Si ets subscriptor|Suma't a|Quins són els avantatges|Fes-te subscriptor|Fes-te'n subscriptor","გამოიწერეთ|შემოგვიერთდით|მოგვყევით","වැඩි විස්තර කියවන්න|අපව අනුගමනය කරන්න","Bizə qoşulun|Abunə olun|Bizi izləyin"]),Bt=M(["Subskrybuj|Zasubskrybuj|Zapisz się na newsletter|Dołącz do nas|Obserwuj nas|Śledź nas","Dziękujemy,?\\s*że\\s*przeczytała?(?:ś|ś\\/eś|eś)?","Bądź na bieżąco","Obserwuj nas w Google","Dalszy ciąg (?:artykułu|materiału) (?:pod |poniżej )?(?:materiałem wideo|wideo|galerią|zdjęciem)","Sprawdź,?\\s*gdzie kupisz","Materiał (?:sponsorowany|promocyjny|partnerski)"]).concat(function(e){return e.map(function(e){return z([e])})}(["Zobacz więcej|Czytaj więcej|Czytaj dalej|Pokaż więcej|Więcej informacji","Zaloguj się|Zarejestruj się|Zaloguj|Załóż konto|Moje konto","Udostępnij|Skomentuj|Komentarze\\s*\\d*|Dodaj komentarz|Napisz komentarz","Autopromocja"])),Ht=z(["Met een account kan je","Log in of maak een account","Acesse seus artigos salvos","Uma só conta para todos","Maak een account aan","Cadastre-se","Faça login","Faça seu login","Crie sua conta","Meld je aan","Inloggen","Entrar na sua conta","Sign in to save","Create an account","Log in to continue","Log in","Sign in","Create account","Subscribe to read","Daftar atau masuk","Giriş yap","Logg inn","Opprett konto","For å kunne lagre","Inicia sessió","Crea un compte","Registra't","පිවිසෙන්න","ගිණුමක් සාදන්න","Daxil ol","Hesab yaradın"],"\\b.*"),Ft=new RegExp("\\[([^\\]]*)\\]\\(https?:\\/\\/(?:[a-z0-9-]+\\.)*"+R+"\\/[^)]*\\)","gi"),Ot=new RegExp("^\\s*https?:\\/\\/(?:[a-z0-9-]+\\.)*"+R+"\\b[^\\n]*$","gmi"),It=[/Was (?:this )?(?:summary |article |page )?helpful\?\s+Thank you\s+(?:for\s+)?feedback/i,/Trusted by Consumers\.\s+Recognized by AI\./i,/(?:^|\n|\s{2,})(?:AI[-\s]generated summary|AI summary|Related content|Related articles|You May Also Like|Need (?:to )?Find (?:an? )?Attorney\?|For Legal Professionals|Get updates|Subscribe to read|Create account|Sign in)\b/i];function Dt(e,t){var r=e;return t.forEach(function(e){r=r.replace(e,"")}),r}function Ut(e){var r=function(e){var t=[];return{markdown:String(e||"").replace(/(^|\n)(```[^\n]*\n[\s\S]*?\n```)/g,function(e,r,n){var o="@@FETCH_UTIL_FENCE_"+t.length+"@@";return t.push(n),r+o}),blocks:t}}(e),n=r.markdown.replace(/Your browser doesn't support HTML5 audio\s*/g,"").replace(/^\s*[-*]\s*$/gm,"").replace(/<iframe\b[^>]*>?(?:<\/iframe>)?/gi,"").replace(/<iframe\b[^\n]*/gi,"").replace(/document\s*\.\s*body\s*\.\s*classList\s*\.\s*add\s*\([^)]*\)\s*;?/g,"").replace(/\biaw\s*\.\s*cmd\s*\.\s*push\s*\([^)]*\)\s*;?/g,"").replace(/\biaw\s*\.\s*display\s*\([^)]*\)\s*;?\s*\}\s*\)\s*;?/g,"").replace(/^\s*(?:var|let|const)\s+\w+\s*=\s*[^;]+;\s*$/gm,"").replace(/\bSkip Ad\b/g,"").replace(/\bContinue watching\s*(?:after the ad)?/gi,"").replace(/Visit Advertiser website/gi,"").replace(/\bExplore\b[^\n]{0,120}S\W*U\W*B\W*S\W*C\W*R\W*I\W*B\W*E\b/gi,"").replace(/\bExplore\b[^\n]{0,100}\bSUBSCRIBE\b/gi,"").replace(/\bExplore\s+[A-Z][A-Za-z0-9 .!&-]{0,80}\d+%\s+SUBSCRIBE\b/gi,"").replace(/\bExplore\s+(?:[A-Z][A-Za-z0-9&.-]+\s+)?\d+%\s+SUBSCRIBE\b/gi,"").replace(/\b\d+%[^\n]{0,60}S\W*U\W*B\W*S\W*C\W*R\W*I\W*B\W*E\b/gi,"").replace(/\b\d+%\s+SUBSCRIBE\b/g,"").replace(/\b[A-Z][A-Za-z0-9 .&-]{1,60}\s+AIchevron_right[A-Z][A-Za-z0-9 .&-]{0,80}\b/g,"").replace(/\b[A-Z][A-Za-z0-9 .&-]{0,60}\s+AI(?:chevron_right)?\s*AI-generated answers? from [^.\n]{0,180}\.\s*AI makes mistakes,?\s*so verify(?: using| with)? [^.\n]{0,160}\.?/g,"").replace(/\bAI-generated answers? from [^.\n]{0,180}\.\s*AI makes mistakes,?\s*so verify(?: using| with)? [^.\n]{0,160}\.?/gi,"").replace(/,?\s*so verify(?: using| with)? [A-Z][A-Za-z0-9 .&-]{0,80} articles\.?/g,"").replace(/GO TO PAGE\.?/g,"").replace(/^\s*#{1,6}\s*$/gm,"").replace(/\bAdvertisement\s+\d+\/\d+\b/gi,"").replace(/^\s*Advertisement\s*$/gim,"").replace(zt,"").replace(/Definition Source\s+All sources\s+\w+/gi,"").replace(/^.*\bdebug info:.*(?:\n.*(?:fetchCache|expirationTime|cache key|seconds remaining|All fetchCache).*)*$/gim,"").replace(/!\[close\]\([^)]*(?:close|cross)[^)]*\)/gi,"").replace(/^\s*#\s*Tags?\s*$/gim,"").replace(/^\s*Comments?\s*\d*\s*$/gim,"").replace(/^\s*Leave a Reply\s*(?:Cancel reply)?\s*$/gim,"").replace(/^\s*Loading comments\.*\s*$/gim,"").replace(/Current Time\s+\d+:\d+\s*/gi,"").replace(/Duration\s+[-\\]?:?[-\\]?\s*/gi,"").replace(/Remaining Time\s+-?\d+:\d+\s*/gi,"").replace(/Loaded:\s*\d+%?\s*/gi,"").replace(/Progress:\s*\d+%?\s*/gi,"").replace(/^\s*Volume\s+\d+%\s*$/gim,"").replace(/^\s*Rewind\s+\d+\s+Seconds\s*$/gim,"").replace(/^\s*Chromecast\s*$/gim,"").replace(/^\s*Closed Captions\s*$/gim,"").replace(/^\s*Settings\s*$/gim,"").replace(/^\s*Fullscreen\s*$/gim,"").replace(/^\s*Learn More\s*$/gim,"").replace(/^\s*This website uses cookies\..*$/gim,"").replace(/^\s*By accepting cookies.*$/gim,"").replace(/^\s*Cookie declaration last updated.*$/gim,"").replace(/^\s*Consent ID:.*$/gim,"").replace(/^\s*Change your consent.*$/gim,"").replace(/^\s*Your current state:.*$/gim,"").replace(/^\s*(?:Necessary|Preference|Statistics|Marketing)\s*\(\d+\)\s*$/gim,"").replace(/^\s*Video Player is loading\.\s*$/gim,"").replace(/^\s*Play Video\s*$/gim,"").replace(/^\s*Playback Speed\s*$/gim,"").replace(Mt,"").replace(/^\s*(?:Skip to main content|Skip to content|View on GitHub|Report a problem with this content|Copy item path|Open menu|Open Sidebar|Search or ask Copilot|API preferences|JavaScriptTypeScript|TypeScriptJavaScript)\s*$/gim,"").replace(/^\s*\/\s*$/gm,"").replace(/^\s*\*\s+\*\s+\*\s*$/gm,"").replace(/^\s*(?:show sidebar|hide sidebar|toggle sidebar|show attributes?|hide attributes?|show child attributes?|hide child attributes?)\s*$/gim,"").replace(/\s+(?:Hide|Show)\s+(?:child\s+)?attributes?\s+(?:Hide|Show)\s+(?:child\s+)?attributes?\s*$/gm,"").replace(/Stay organized with collections\s*Save and categorize content based on your preferences\.?\s*/gi,"").replace(/!\[]\([^)]+\)\s*/g,"").replace(/\[]\([^)]+\)\s*/g,"").replace(/!\[[^\]]*\]\(data:image\/(?:png|gif|jpe?g|webp);base64,[A-Za-z0-9+/=]{500,}\)\s*/gi,"").replace(/^\s*([-*])\s+\[(?:!\[[^\]]*\]\([^)]+\)\s*)?\n+\s*#{1,6}\s*([^\n]+)\n+\s*\]\(([^)]+)\)/gm,"$1 [$2]($3)").replace(/^(\s*[-*]\s*)!#{1,6}\s*/gm,"$1").replace(/^(\s*[-*]\s*)#{1,6}\s*/gm,"$1").replace(/^\s*\[\s*\n+\s*(#{1,6})\s+([^\n]+)\n+\s*\]\((https?:\/\/[^)]+)\)\s*$/gm,"$1 [$2]($3)").replace(/^\s*\]\((https?:\/\/[^)]+)\)\[\s*\n+\s*([^\n\[\]#][^\n]*)\n+\s*\]\(\1\)\s*$/gm,"[$2]($1)").replace(/^\s*\[\s*$/gm,"").replace(/^\s*\]\(https?:\/\/[^)]+\)\[?\s*$/gm,"").replace(/^\s*\]\s*$/gm,"").replace(/\[([^\]]*\d)\]\(([^)]*\/section-[^)]+)\)_([a-z])_\\?-([0-9])/gi,"[$1$3-$4]($2)").replace(/\[(\d+)\]\(([^)]*\/link\/uscode\/[^)]+)\)_([a-z])_/gi,"[$1$3]($2)").replace(/(\b\d+)_([a-z])_,_/gi,"$1$2,").replace(/(\b\d+)_([a-z])_\\?-/gi,"$1$2-").replace(/(\b\d+)_([a-z])_(?=[\s),.;])/gi,"$1$2").replace(/^\s*Last modified\s+\w+\s+\d{1,2},\s+\d{4}.*$/gim,"").replace(Ht,"").replace(/(!?\[[^\]\n]*\]\([^\)\s]+)\s+"[^"\n]*\bundefined\b[^"\n]*"\)/gi,"$1)").replace(/!\[\s*undefined\s*\]\(([^)]+)\)/gi,"").replace(/\s*-->\s*/g," ").replace(/\s*<!--\s*/g," ").replace(/(?:^|\n)\s*\d{1,3}\s+\d{1,3}\s*(?:\n|$)/g,"\n").replace(Ft,"").replace(Ot,"").replace(/\n{3,}/g,"\n\n").trim();n=Dt(n,Rt),n=function(e){for(var r=(e||"").split("\n"),n=0,o=0;o<r.length&&n<4;o++){var i=r[o];if(t(i)&&!/^#{1,6}\s/.test(i)){n++;var a=t(i);if(/\bIntroduction & Top Questions/.test(a)&&/\bReferences & Edit History\b/.test(a)&&/\bQuizzes\b/.test(a)&&/\b(?:Written by|Fact-checked by|Last updated)\b/.test(a)){var l=a.search(/\b(?:History\s+)?Top Questions\s+What\b/);if(!(l<0)){r[o]=a.slice(l).replace(/^History\s+/,"").replace(/\?([A-Z])/g,"? $1");break}}}}return r.join("\n")}(n=Dt(n,Bt)),n=function(e){var t=e||"";if(t.length<300)return t;var r=Math.floor(.35*t.length),n=-1;return It.forEach(function(e){for(var o,i=new RegExp(e.source,e.flags.indexOf("g")>=0?e.flags:e.flags+"g");null!==(o=i.exec(t));)o.index>=r&&(n<0||o.index<n)&&(n=o.index),o.index===i.lastIndex&&(i.lastIndex+=1)}),n>=0?t.slice(0,n).trim():t}(n),n=function(e){var r=null,n=!1;return(e||"").split("\n").map(function(e){if(/^\s*```/.test(e))return n=!n,e;if(n)return e;var o=e.match(/^\s*#{1,6}\s+(.+)$/);if(o)return r=t(o[1].replace(/\[([^\]]+)\]\([^)]+\)/g,"$1").replace(/[`*_]/g,"")),e;if(!t(e))return e;if(r&&!/^\s*(?:[-*+]\s+|\d+[.)]\s+|[|>])/.test(e)){var i=e.replace(/^(\s*)([a-z][A-Za-z'-]{3,})(\b)/,function(e,t,n,o){for(var i=n.toLowerCase(),a=r.match(/[A-Za-z][A-Za-z'-]{4,}/g)||[],l=0;l<a.length;l+=1){var s=a[l];if(s.slice(1).toLowerCase()===i)return t+s.charAt(0)+n+o}return e});return r=null,i}return r=null,e}).join("\n")}(n);for(var o=(n=n.split("\n").map(function(e){return e.length<120||/\[[^\]]+\]\([^)]+\)/.test(e)?e:e.replace(/(.{50,300}?[.!?])(?:\s*\1)+/g,"$1")}).join("\n")).split("\n"),i=[],a=null,l=0,s=0;s<o.length;s++){var c=o[s].trim();c===a&&c.length>0?++l<2&&i.push(o[s]):(a=c,l=1,i.push(o[s]))}o=(n=i.join("\n")).split("\n");for(var u={},d=0;d<o.length;d++){var m=o[d].trim();m.length>0&&!/^#{1,6}\s/.test(m)&&(u[m]=(u[m]||0)+1)}for(var p={},h=[],f=0;f<o.length;f++){var g=o[f].trim();g.length>0&&!/^#{1,6}\s/.test(g)&&(u[g]||0)>=4?p[g]||(p[g]=!0,h.push(o[f])):h.push(o[f])}return function(e,t){return e.replace(/@@FETCH_UTIL_FENCE_(\d+)@@/g,function(e,r){return t[Number(r)]||""})}(h.join("\n").replace(/\n{3,}/g,"\n\n").trim(),r.blocks)}function Zt(e){return String(e||"").replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Wt(e){return String(e||"").replace(/^Copy(?: to clipboard)?\s*/i,"").replace(/\u00b6/g,"").replace(/\r\n?/g,"\n").replace(/^\n+|\n+$/g,"")}function Gt(e,t){return"\n\n```"+e+"\n"+t+"\n```\n\n"}function Kt(e){var r=t([e&&e.className,e&&e.getAttribute&&e.getAttribute("data-language"),e&&e.getAttribute&&e.getAttribute("data-testid"),e&&e.parentElement&&e.parentElement.className].join(" ")).toLowerCase();return/python|pycon/.test(r)?"python":/javascript|js\b/.test(r)?"javascript":/typescript|tsx|ts\b/.test(r)?"typescript":/json/.test(r)?"json":/yaml|yml/.test(r)?"yaml":/bash|shell|sh\b|curl/.test(r)?"bash":""}function Vt(e){e.querySelectorAll("div.redoc-json, div[class*='redoc-json']").forEach(function(e){var t=function(e){var t=[];!function e(r){for(var n=r.childNodes,o=0;o<n.length;o++){var i=n[o];if(3===i.nodeType){var a=i.textContent;a&&!/^\s*$/.test(a)&&t.push(a)}else if(1===i.nodeType){var l=i.nodeName,s=i.className||"";if("BUTTON"===l)continue;if(/\bellipsis\b/.test(s))continue;if("SPAN"===l){var c=i.textContent;c&&!/^\s*$/.test(c)&&t.push(c);continue}e(i)}}}(e);var r=t.join("").replace(/,(\s*[}\]])/g,"$1");try{var n=JSON.parse(r);return JSON.stringify(n,null,2)}catch(e){return r.replace(/\s+/g," ").trim()}}(e);if(t){var r=document.createElement("pre"),n=document.createElement("code");n.setAttribute("data-language","json"),n.textContent=t,r.appendChild(n),e.replaceWith(r)}})}function Jt(e){return t(e).toLowerCase().replace(/\s+/g,"")}function Xt(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return null;if(/^(p|div|section|article|header|h[1-6]|li)$/i.test(e.tagName))return e;for(var t=0;t<e.children.length;t+=1){var r=Xt(e.children[t]);if(r)return r}return null}function Yt(e){var r=function(e){for(var t=e.cloneNode(!0),r=Array.prototype.slice.call(t.children),n=1;n<r.length;n+=1){var o=Xt(r[n-1]),i=Xt(r[n]);if(o&&i){var a=Jt(o.textContent),l=Jt(i.textContent);a&&a===l&&i.remove()}}return t}(e),n=[];return Array.prototype.forEach.call(r.childNodes,function(e){var r=t(e.textContent);r&&n.push(r)}),n.length?n.join(" "):r.textContent}function Qt(e){var r=Array.prototype.map.call(e.querySelectorAll("thead th, thead td"),function(e){return t(e.textContent).toLowerCase()}),n=t((e.querySelector("caption")||{}).textContent).toLowerCase(),o=Array.prototype.slice.call(e.querySelectorAll("tbody tr"));if(!o.length)return null;if(e.querySelector("td[kind='field'][title], th[kind='field'][title]")){var i=o.map(function(e){for(var r=e.querySelector("td[kind='field'][title], th[kind='field'][title]"),n=e.querySelectorAll("th, td"),o=null,i=0;i<n.length;i+=1)if(n[i]!==r){o=n[i];break}if(!r||!o)return null;var a=t(r.getAttribute("title")||(r.querySelector(".property-name")||{}).textContent||r.textContent);if(!a)return null;var l=/\brequired\b/i.test(t(e.textContent)),s=[];Array.prototype.forEach.call(o.querySelectorAll(":scope > span, :scope > code, :scope > div, :scope > strong, :scope > em"),function(e){if(!e.querySelector("p, ul, ol, table, pre")){var r=t(e.textContent);r&&!/^required$/i.test(r)&&s.push(r)}});var c=Array.prototype.map.call(o.querySelectorAll("p, li"),function(e){return t(e.textContent)}).filter(Boolean).join(" "),u=[];s.length&&u.push(s.shift()),s.forEach(function(e){/^(Default:|Example:|Enum:)/i.test(e)?u.push(e):c?c+=" "+e:c=e}),l&&u.push("required");var d="- `"+a+"`";return u.length&&(d+=" ("+u.join("; ")+")"),c&&(d+=": "+c),d}).filter(Boolean);return i.length?i.join("\n"):null}if(1===r.length&&/name, type, description/.test(r[0])||/parameter/.test(n)){var a=o.map(function(e){return function(e){var r=e.querySelector("div > div")||e.firstElementChild||e,n=r.querySelector("code, strong, b"),o=t(n&&n.textContent);if(!o)return null;var i=jt(r.textContent),a=t(i.replace(new RegExp("^"+Zt(o)),"")).replace(/\brequired\b/i,""),l=/\brequired\b/i.test(i),s=Array.prototype.map.call(e.querySelectorAll("p, li"),function(e){return jt(e.textContent)}).filter(Boolean).join(" ");s||(s=jt(e.textContent).replace(new RegExp("^"+Zt(o)+"\\s*"+Zt(a)),"").trim());var c="- `"+o+"`";if(a||l){var u=[];a&&u.push(a),l&&u.push("required"),c+=" ("+u.join(", ")+")"}return s&&(c+=": "+s),c}(e.querySelector("td, th"))}).filter(Boolean);return a.length?a.join("\n"):null}if(r.length>=2&&/status code/.test(r[0])&&/description/.test(r[1])){var l=o.map(function(e){var r=e.querySelectorAll("th, td");if(r.length<2)return null;var n=t(r[0].textContent),o=jt(r[1].textContent);return n&&o?"- `"+n+"`: "+o:null}).filter(Boolean);return l.length?l.join("\n"):null}return null}function er(e,r){var n=Qt(e);if(n)return n;if(e.querySelector("table")&&!e.querySelector("th, caption"))return String(r||"").trim();var o=Array.prototype.map.call(e.querySelectorAll("tr"),function(e){return Array.prototype.map.call(e.querySelectorAll("th, td"),function(e){return t(Yt(e)).replace(/\|/g,"\\|")})}).filter(function(e){return e.length>0});if(!o.length)return"";var i=o.reduce(function(e,t){return Math.max(e,t.length)},0),a=(o=o.map(function(e){for(;e.length<i;)e.push("");return e}))[0],l=a.map(function(){return"---"}),s=o.slice(1);return[a,l].concat(s).map(function(e){return"| "+e.join(" | ")+" |"}).join("\n")}function tr(e){if("function"!=typeof TurndownService)return e;var r=document.createElement("div");r.innerHTML=e,function(e){e.querySelectorAll("font, span, a[style], b[style], i[style], u[style], em[style], strong[style], mark[style]").forEach(function(e){e.removeAttribute("style")}),e.querySelectorAll("font, p > span, li > span, blockquote > span").forEach(function(e){e.replaceWith.apply(e,Array.prototype.slice.call(e.childNodes))})}(r),Re(r),function(e){pt(e,"button, a, span, div",/^(copy|copy to clipboard)$/i),e.querySelectorAll("button.copybutton, [aria-label*='copy' i], [title*='copy to clipboard' i]").forEach(function(e){e.remove()}),e.querySelectorAll("font").forEach(function(e){e.replaceWith(document.createTextNode(e.textContent))}),e.querySelectorAll("pre span[style], code span[style]").forEach(function(e){e.replaceWith(document.createTextNode(e.textContent))}),e.querySelectorAll("div.highlight, div[class*='CodeBlock'], div[class*='codeBlock'], div[class*='code-sample'], div[class*='CodeSample'], div[class*='snippet'], div.redoc-json, div[class*='redoc-json']").forEach(function(e){var t=e.querySelector("pre"),r=Wt((t||e).innerText||(t||e).textContent);if(r&&(t||/^(curl\b|[{[]|>>>|\$\s|GET\b|POST\b|PUT\b|PATCH\b|DELETE\b|HTTP\/|<\w)/m.test(r))){var n=document.createElement("pre"),o=document.createElement("code"),i=Kt(t||e);i||!e.matches(".redoc-json, [class*='redoc-json']")&&!/^[\[{]/.test(r)||(i="json"),o.textContent=r,i&&o.setAttribute("data-language",i),n.appendChild(o),e.replaceWith(n)}}),e.querySelectorAll("pre").forEach(function(e){var t=e.querySelector("code")||document.createElement("code"),r=t.getAttribute("data-language")||Kt(t)||Kt(e);t.textContent=Wt(t.textContent||e.textContent),r&&t.setAttribute("data-language",r),e.innerHTML="",e.appendChild(t)})}(r),function(e){for(var t=/^(P|H[1-6]|UL|OL|LI|TABLE|PRE|BLOCKQUOTE|HR|DL|FIGURE|DETAILS|SUMMARY|ARTICLE|SECTION|HEADER|FOOTER|NAV|ASIDE|MAIN|FORM|FIELDSET)$/,r=!0;r;)r=!1,e.querySelectorAll("div").forEach(function(e){if(e.parentNode){for(var n=!1,o=0;o<e.childNodes.length;o++){var i=e.childNodes[o];if(1===i.nodeType&&(t.test(i.nodeName)||"DIV"===i.nodeName)){n=!0;break}}if(n){for(;e.firstChild;)e.parentNode.insertBefore(e.firstChild,e);e.remove(),r=!0}}})}(r);var n=new TurndownService({headingStyle:"atx",codeBlockStyle:"fenced",bulletListMarker:"-",emDelimiter:"_"});n.addRule("tables",{filter:function(e){return"TABLE"===e.nodeName},replacement:function(e,t){return"\n\n"+er(t,e)+"\n\n"}}),n.addRule("preformatted",{filter:function(e){return"PRE"===e.nodeName},replacement:function(e,t){var r=t.querySelector("code"),n=Wt(r?r.textContent:t.textContent);return n?Gt(r&&r.getAttribute("data-language")||Kt(r||t),n):"\n\n"}}),n.addRule("images",{filter:function(e){return"IMG"===e.nodeName},replacement:function(e,r){var n=r.getAttribute("src")||r.getAttribute("data-src")||r.getAttribute("data-lazy-src")||"",i=t(r.getAttribute("alt")||"").replace(/[\[\]]/g,"");return n&&i?"+")":""}}),n.addRule("legalCitationLinks",{filter:function(e){return"A"===e.nodeName&&function(e){var r=e.getAttribute("href")||"",n=t(e.textContent||"");return!(!n||!r)&&(/govinfo\.gov\/link\/(?:uscode|plaw|statute)|ecfr\.gov\/current\/title-\d+/i.test(r)?/^(?:\d+\s+U\.?S\.?C\.?\s+)?[\dA-Za-z][\dA-Za-z.\-(),\s]*(?:\s+(?:note|nt\.?))?[,]?$/.test(n)||/^(?:Pub\.\s*L\.|Section\s+\d)/i.test(n):/^(?:\d+\s+U\.?S\.?C\.?\s+)[\dA-Za-z][\dA-Za-z.\-(),\s]*(?:\s+(?:note|nt\.?))?[,]?$/.test(n))}(e)},replacement:function(e,r){var n=r.getAttribute("href")||"",i=t(r.textContent||"").replace(/\s+([,;:.])/g,"$1").replace(/\s+-\s+/g,"-");return n&&i?"["+i.replace(/[\\[\]]/g,"")+"]("+o(n)+")":i}}),n.addRule("paragraphLikeDivs",{filter:function(e){if("DIV"!==e.nodeName)return!1;var r=t(e.textContent);return!(!r||r.length<20)&&0===e.querySelectorAll("div, p, table, ul, ol, h1, h2, h3, h4, h5, h6, pre, blockquote, article, section").length},replacement:function(e){return t(e)?"\n\n"+e.trim()+"\n\n":""}}),n.addRule("stripStyledInlineElements",{filter:function(e){if(1!==e.nodeType)return!1;var t=e.nodeName;return"FONT"===t||("A"===t||"SPAN"===t||"B"===t||"I"===t||"U"===t||"EM"===t||"STRONG"===t||"MARK"===t)&&!!e.getAttribute("style")},replacement:function(e){return e}});var i=n.turndown(r).replace(/\n{3,}/g,"\n\n").trim();return(i=i.replace(/(```[\s\S]*?```|`[^`\n]+`)|<\/?[a-z][^>]*>/gi,function(e,t){return t||""})).replace(/\n{3,}/g,"\n\n").trim()}function rr(e){return t([((e=e||{}).iframeTitles||[]).join(" "),(e.iframeSources||[]).join(" "),(e.scriptSources||[]).join(" "),e.bodyHtml||""].join(" ")).toLowerCase()}function nr(e){return/(this page explains|this is an experiment|example page|demonstrate a webauthn-based interactive challenge|not part of cloudflare challenge production code)/i.test(e||"")}function or(e,r,n){var o=t(e.title||document.title),i=t(r||"");return function(e,t){return/making sure you're not a bot!?/i.test((e=e||"")+" "+(t=t||""))||/protected by anubis/i.test(t)&&/(enable javascript to get past this challenge|please wait a moment while we ensure the security of your connection|loading)/i.test(t)}(o,i)?"anubis":function(e,r,n){e=e||"",r=r||"";var o=rr(n),i=t(e+" "+r+" "+o),a=!r||t(r).length<80,l=/captcha-delivery\.com|datadome(?:\.co|\.js)?|\bvar\s+dd\s*=|\bddjskey\b|\bddCaptchaUrl\b/i.test(o),s=/datadome captcha|please enable javascript|disable (?:any )?ad blocker|request unsuccessful|blocked by datadome/i.test(i);return/datadome captcha/i.test(e+" "+r)||l&&(a||s)}(o,i,n)?"datadome":function(e,r,n){e=e||"",r=r||"";var o=rr(n),i=!r||t(r).length<120;return!nr(r)&&(/attention required! \| cloudflare/i.test(e)||(/just a moment/i.test(e)||/verify you are human|checking your browser|performing security verification|verification successful\. waiting for .* to respond|reviewing the security of your connection before proceeding|please enable javascript and cookies to continue|security service to protect/i.test(r))&&!/this page explains/i.test(r)||(/turnstile/i.test(e)||/turnstile/i.test(r))&&/managed challenge|interactive challenge/i.test(r)&&!nr(r)||i&&/(cdn-cgi\/challenge-platform|cloudflare ray id|turnstile|cf challenge)/i.test(o)&&!nr(o))}(o,i,n)?"cloudflare":null}function ir(e,r){if("anubis"===e)return"Making sure you're not a bot!";var n=function(e){for(var r=[location.hostname,e&&e.siteName,e&&e.title],n=0;n<r.length;n+=1){var o=t(r[n]||"").replace(/^www\./i,"");if(Le(o))return o}return null}(r);return n?"Access verification required for "+n:"datadome"===e?"Access verification required":"Verifying you are human"}function ar(e,r){var n=t([location.hostname,e&&e.siteName,e&&e.title,e&&e.excerpt].join(" ")).toLowerCase(),o=t([r].join(" ")).toLowerCase();return!(!/(^|\.)(facebook\.com|instagram\.com|threads\.(net|com))$/.test(location.hostname)&&!/(facebook|instagram|threads|meta)/.test(n))&&/meta products|cookies from other companies|allow the use of cookies from (?:threads by )?instagram|log in with your instagram|join threads to share ideas|create new account|log in to (?:facebook|instagram)|log in to continue|log in to see photos and videos|sign up to see|page (?:is|isn't|is not) available|sorry, this page isn't available|essential cookies/.test(n+" "+o)}function lr(e,n){if(!ar(e,n))return null;var o=/(threads)/i.test([location.hostname,e&&e.siteName,e&&e.title].join(" "))?"Threads":/(instagram)/i.test([location.hostname,e&&e.siteName,e&&e.title].join(" "))?"Instagram":"Facebook",i=t(e.title||document.title),a=function(){var e=_("next")||location.pathname;try{e=new URL(e,location.href).pathname}catch(e){}var n=r(e||"").split("/").filter(Boolean);return n.length?"login"===n[0]?t(n[1]||""):t(n[0]):null}(),l=["Access notice: "+o+" login or cookie acceptance required"],s=e.excerpt;return i&&!/threads\s*[•|-]\s*log in|facebook\s*-\s*log in/i.test(i)||(i=a?o+" page "+a:o+" page"),s&&!/join threads to share ideas|log in with your instagram|create an account or log into facebook/i.test(s)||(s="Original content on this "+o+" page is not available without login or cookie acceptance."),a&&-1===i.indexOf(a)&&l.push("Requested page: "+a),T({title:i,description:s,details:l,siteName:e.siteName||location.hostname,contentType:"interstitial"})}var sr="cookie|cookies|cookie settings|we use cookies|we use cookies and data|accept all cookies|accept all|reject all|reject optional cookies|reject optional|more options|cookie preferences|let us know your cookie preferences|allow the use of cookies|cookies from other companies|essential cookies|cookie notice|use cookies and similar technologies|manage cookie preferences|manage cookies|manage your privacy settings|privacy choices|personalize advertising|personalized content|welcome we and our .+ partners? wish to store|about your privacy|wish to store and access information|access information on your devices|collect personal data|personalized ads|trusted third party partners|trusted third party|browsing history|device identifiers|personal data|preferences|consent|manage consent|advertising cookies|strictly necessary|social media cookies|legitimate interest|pliki cookie|ustawienia prywatności|polityka prywatności|prywatności|datenschutz|données personnelles|datos personales|dati personali|utilizamos cookies|utilizziamo i cookie|preferenze cookie|accetta tutto|クッキー|Cookieプリファレンス|cookieプリファレンスセンター|Cookie設定|クッキー設定|同意設定|同意の優先設定|すべて受け入れる|すべて許可|同意|受け入れる|쿠키|쿠키 설정|개인정보 설정|동의|모두 허용|허용|全部接受|接受全部|cookie 偏好设置|隐私设置|接受|隐私|файлы cookie|настройки cookie|принять все|принять|we gebruiken cookies|nastavení souhlasu|nastaveni cookies|souhlas s personalizací|souhlas|personalizac|soukromí|soubory cookie|sutikmeny|vi bruger cookies|vi använder cookies|vi anvander kakor|kakor|sekretess|samtycke|samtykke|informasjonskapsler|vi bruker informasjonskapsler|personvern|personverninnstillinger|dine personverninnstillinger|ditt personvern|dine data|aller media|aller media er ansvarlig for dine data|privatlivs|galetes|protecció de dades|protecció|о вашој приватности|пристанак|колачић|колачиће|подешавања приватности|приватности|evästeet|evasteasetukset|evästeasetukset|evästeitä|kaytamme evasteita|käytämme evästeitä|hyväksy evästeet|tietosuoja|slapukai|slapuku nustatymai|slapukų nustatymai|naudojame slapukus|slapukų|slapukus|колачиња|приватност|поставки за колачиња|cookie-uri|confidențialitate|utilizăm cookie-uri|siklapuku iestatijumi|sīkdatnes|sīkdatņu iestatījumi|sīkdatņu|sīkfailus|izmantojam siklapukus|izmantojam sīkdatnes|privātums|privātuma iestatījumi|privātuma|sütiket|süti beállítások|süti|adatvédelem|adatvédelmi beállítások|adatvédelmi|o vašoj privatnosti|o vašoj privatnosti|пристанак|колачић|подешавања приватности|before you continue|before you continue to (google|youtube)|privacy gate|jouw privacy-instellingen|cookie-indstillinger|siklapuku iestatijumi";function cr(e){return new RegExp(sr,e||"")}function ur(e){return new RegExp("^(?:"+sr+")",e||"")}function dr(e){return/^(skip to content|showing slide\b|trending searches|popular near you|concerts|sports|theater|family)$/i.test(e||"")}function mr(e){if(!e||!e.getBoundingClientRect)return!1;var t=e.getBoundingClientRect(),r=window.getComputedStyle(e);return t.width>0&&t.height>0&&"hidden"!==r.visibility&&"none"!==r.display}function pr(e){return e?t(e.innerText||e.textContent||e.value||e.getAttribute("aria-label")||e.getAttribute("title")||""):""}function hr(e,r,n,o){!(n=t(n||""))||n.length>o||dr(n)||r[n]||(r[n]=!0,e.push(n))}function fr(e,r){var n=t(e||"").toLowerCase(),o=t(r||"").toLowerCase(),i=cr(),a=ur();return!!/^before you continue to (google|youtube)\b/.test(n)||(!(!/before you continue to (google|youtube)/.test(o)||!/accept all|reject all|more options|we use cookies and data/.test(o))||!!gn(o)&&(i.test(n)||a.test(o)))}function gr(e,r,n){n=n||{};var o=t(r||"").toLowerCase(),i=t(e||"").toLowerCase(),a=/\b404\b|\boops!\b|\bnot found\b|page not found|not the web page you are looking for|sorry, (?:we )?(?:can.?t|could not) find (?:that |the )?page|we.?re sorry, but that page cannot be found|(?:that |the )?page cannot be found|the page you (?:requested|were looking for|are looking for) (?:can.?t be found|does(?:n'?t| not) exist)|this page is no longer available|content no longer available|(?:dataset|record|project|submission) (?:you are trying to view )?is not available|this doi cannot be found in the doi system|doi cannot be found|ご利用のページが見つかりません|ページまたはファイルが存在しません|移動または削除されている|urlに誤りがある|urlには.*存在しません/i,l=n.maxTextLength;if(l&&o.length>=l)return null;if(function(){var e=document.querySelector("article, main article, main [data-testid*='article' i], main [class*='article-body' i], main [class*='article-content' i], main [itemprop='articleBody'], [data-testid*='article-body' i], [class*='article-body' i], [class*='article-content' i], [itemprop='articleBody']");if(!e)return!1;var r=t(e.textContent||"");if(r.length<700)return!1;var n=e.querySelectorAll("p").length,o=e.querySelectorAll("h1, h2, h3").length,i=e.querySelectorAll("form input[type='password'], form input[name*='password' i]").length,a=/\b404\b|\boops!\b|\bnot found\b|page not found|not the web page you are looking for|sorry, (?:we )?(?:can.?t|could not) find (?:that |the )?page|we.?re sorry, but that page cannot be found|(?:that |the )?page cannot be found|the page you (?:requested|were looking for|are looking for) (?:can.?t be found|does(?:n'?t| not) exist)|this page is no longer available|content no longer available|(?:dataset|record|project|submission) (?:you are trying to view )?is not available|this doi cannot be found in the doi system|doi cannot be found|ご利用のページが見つかりません|ページまたはファイルが存在しません|移動または削除されている|urlに誤りがある|urlには.*存在しません/i.test(r.slice(0,500));return 0===i&&!a&&(n>=3||o>=2)}())return null;if(n.checkStructured&&function(){var e=document.querySelector("main, [role='main'], .content, body");if(!e)return!1;var r=t((e.querySelector("h1, h2")||{}).textContent||""),n=t(e.textContent||"");return!!/\bpage not found\b|\bnot found\b/i.test(r)&&(!!/\bpage you requested cannot be accessed\b|\baddress was typed incorrectly\b|\bpage does not exist\b|\bpage cannot be found\b/i.test(n)&&0===e.querySelectorAll("article, [itemprop='articleBody'], [property='articleBody'], .article-content, .article-text, .abstract, [property='abstract']").length)}())return{structured:!0};if(n.checkStructured&&/\bpage not found\b/i.test(i+" "+o)&&/\bpage you requested cannot be accessed\b|\baddress was typed incorrectly\b|\bpage does not exist\b|\bpage cannot be found\b/i.test(i+" "+o)&&!document.querySelector("article, [itemprop='articleBody'], [property='articleBody'], .article-content, .article-text, .abstract, [property='abstract']"))return{structured:!0};if(!a.test(i+" "+o))return null;var s=o.slice(0,420),c=a.test(i),u=a.test(s),d=u&&o.length<900,m=c||u||o.length<900;return n.requireDominance&&!m||n.excludeDefinitionsNet&&/definitions\.net/i.test(i+" "+location.hostname)||n.requireInterstitialPage&&!(c||d||!n.substantialPublic&&u)&&n.substantialPublic?null:{titleLooksMissing:c,pageStartsMissing:u,shortMissingPage:d,dominates:m}}function yr(e){var r,n,o=t(e||""),i=(r=document.querySelectorAll("main article, main section, main a[href], main img, main h2, main h3, main p, main li").length,n=document.querySelectorAll("article, [role='article'], .article, .post, .entry, .content a[href], .content img, h1, h2, h3, [itemprop='articleBody'], main li").length,Math.max(r,n)),a=document.querySelectorAll("main h1, h1, main h2").length,l=document.querySelectorAll("main a[href], a[href]").length;return i>=5&&(o.length>=180||a>=1&&l>=3)}function br(e,r){var n=t(e.title||document.title),o=t([r||"",document.body&&document.body.textContent||""].join(" ")),i=(n+" "+o).toLowerCase(),a=yr(o);return ar(e,r)?"meta_login":/robot or human|confirm (?:that )?you (?:are|.?re) (?:a )?human|activate and hold the button|press\s*(?:&|and)\s*hold|px-captcha|drag the slider to fit the puzzle|slide to verify|help us protect|verifying that you.?re a real person|unusual activity from your computer network|click the box below to let us know you.?re not a robot/i.test(i)?"human_verification":/select your country|choose a country|shopping in the u\.s\?|best buy international/i.test(i)&&!a?"region_selector":/browser is not supported|your browser is not supported|unsupported browser|for the best experience, use any of these supported browsers|use any of these supported browsers|supported browsers:/i.test(i)&&!a?"browser_support":/^access error$/i.test(n)||/potential misuse|page you are trying to access is unavailable|help\.ft\.com|request blocked|you have been blocked|troubleshooting cloudflare errors/i.test(i)?"access_error":function(e,r){var n=t(e||"").toLowerCase(),o=t(r||"").toLowerCase(),i=/خطایی رخ داده|وب سایت مورد نظر در دسترس نیست|page unavailable|site unavailable|website unavailable|service temporarily unavailable|temporarily unavailable|service unavailable/;return i.test(n)||o.length<1200&&i.test(o.slice(0,500))}(n,o)?"site_unavailable":fr(n,o)?"consent_wall":/\bmy account\b[\s\S]{0,120}\blog in\b/i.test(o)&&/\byou must log in to access\b/i.test(o)&&!document.querySelector("article, [itemprop='articleBody'], [property='articleBody']")?"auth_wall":gr(n,o,{checkStructured:!0,requireDominance:!0,requireInterstitialPage:!0,substantialPublic:a,excludeDefinitionsNet:!0})?"not_found":/transferring (?:you )?to (?:the )?website|در حال انتقال به وب.سایت|سایت در حال بارگذاری|sayfaya yönlendiriliyorsunuz|yönlendiriliyor|מועבר לאתר|الموقع قيد التحميل|ویب سائٹ پر منتقل/i.test(i)&&t(o).length<600?"js_redirect":/subscribe to continue|subscription required|sign in to continue reading|log in to continue reading|subscriber-only|purchase short-term access|institutional access|access through your institution|read with a subscription/i.test(i)?"subscription":function(e,r,n){var o=t(e||"").toLowerCase(),i=t(r||""),a=(location.pathname||"").toLowerCase(),l=/\/(?:log(?:in|-in)|sign(?:in|-in)|auth|oauth|sso|session|sessions|account(?:s)?\/login|users?\/sign_in|password|forgot)(?:\/|$)/.test(a),s=document.querySelectorAll("input[type='email'], input[name*='email' i], input[name*='password' i]").length,c=document.querySelectorAll("form input[type='password'], form input[name*='password' i], form[action*='login' i], form[id*='login' i], form[class*='login' i], [aria-label*='sign in' i] input[type='password']").length,u=f(["form h1","form h2","form legend","[role='dialog'] h1","[role='dialog'] h2","main h1","main h2"],8).filter(function(e){return/sign in|log in|login|create (?:an )?account|password/i.test(e)}).length,d=document.querySelectorAll("main article, main section, main a[href], main img, main h2, main h3").length,m=document.querySelectorAll("article, [role='article'], .article, .post, .entry, .content a[href], .content img, nav a[href]").length,p=Math.max(d,m),h=/forgot(?:ten)? password|reset your password|check your email for a reset link/i.test(n),g=/\b(?:github|gitlab|google|oauth|sso|single sign-on|continue with|sign in with|log in with)\b/i.test(n);return!l&&/^(?:log in|login|sign in|sign-in|sign into|log into)(?:\b|\s*[-|–])/.test(o)&&(s>=1||c>0||u>0||g)?p<15:!!(h&&d<10&&i.length<2200||(h||/sign in to continue|log in to continue|create an account to continue|please sign in|please log in/i.test(n))&&(/sign in|log in|login|create (?:an )?account|reset your password/.test(o)||!(!/sign in|log in|login|create (?:an )?account|reset your password/.test(o)&&p>=15&&i.length>=1e3)&&((c>0||u>0)&&s>=1&&d<10||s>=1&&i.length<900&&d<8||i.length<400&&d<5)))}(n,o,i)?"auth_wall":null}function vr(e,r){var n=br(e,r);if(!n)return null;if("meta_login"===n)return lr(e,r);var o=t(e.title||document.title),i=f(["main h1","main h2","main h3","main p","main li","body h1","body h2","body h3","body p"],20).filter(function(e){return e&&e.length<=240&&!dr(e)}),a=i.find(function(e){return e!==o&&e.length>=12})||e.excerpt||t(r||""),l=[],s=[];if("human_verification"===n)o&&!Le(o)||(o="Robot or human?"),l.push("Gate: human verification");else if("consent_wall"===n){var c=function(){var e={},t=[],r=[],n=[],o=[];document.querySelectorAll("main h1, main h2, main h3, body h1, body h2, body h3").forEach(function(r){mr(r)&&hr(t,e,pr(r),140)}),document.querySelectorAll("main p, body p").forEach(function(t){mr(t)&&hr(r,e,pr(t),260)}),document.querySelectorAll("main li, body li").forEach(function(t){mr(t)&&hr(n,e,pr(t),160)}),document.querySelectorAll("main button, main [role='button'], main a[href], body button, body [role='button'], body a[href]").forEach(function(t){if(mr(t)){var r=pr(t);!r||r.length>80||/(accept|reject|decline|manage|options|settings|choices|privacy|cookies?|consent|allow|agree|continue|more|customize|save|confirm|necessary|essential|preferences|alles|tout|todas?|todos?|rifiuta|rejeitar|weigeren|afvis|hylkää|odmítnout|noraidīt|elutasítás|elutasítom)/i.test(r)&&hr(o,e,"Control: "+r,100)}});var i=r.find(function(e){return e.length>=40&&/(cookies?|data|privacy|personal|ads?|content|services|device|information|partners?|consent)/i.test(e)})||r.find(function(e){return e.length>=20})||null;return{headings:t,description:i,highlights:t.concat(r).concat(n).concat(o)}}();c.headings.length&&(o=c.headings[0]),c.description&&(a=c.description),l.push("Interstitial: cookie or consent prompt"),s=c.highlights.filter(function(e){return e!==o&&e!==a}).slice(0,6)}else"region_selector"===n?(l.push("Interstitial: region or country selector"),s=i.filter(function(e){return e!==o&&e!==a}).slice(0,3)):"browser_support"===n?l.push("Interstitial: unsupported browser shell"):"access_error"===n?l.push("Interstitial: access error or blocked session"):"site_unavailable"===n?l.push("Interstitial: site unavailable or temporarily offline"):"not_found"===n?(o&&!Le(o)||(o="Page not found"),/\b404\b|\boops!\b|\bnot found\b|page not found|not the web page you are looking for|sorry, (?:we )?(?:can.?t|could not) find (?:that |the )?page|we.?re sorry, but that page cannot be found|(?:that |the )?page cannot be found|the page you (?:requested|were looking for|are looking for) (?:can.?t be found|does(?:n'?t| not) exist)|this page is no longer available|content no longer available|(?:dataset|record|project|submission) (?:you are trying to view )?is not available|this doi cannot be found in the doi system|doi cannot be found|ご利用のページが見つかりません|ページまたはファイルが存在しません|移動または削除されている|urlに誤りがある|urlには.*存在しません/i.test(a||"")&&(a=i.find(function(e){return e!==o&&e.length>=12&&!/\b404\b|\boops!\b|\bnot found\b|page not found|not the web page you are looking for|sorry, (?:we )?(?:can.?t|could not) find (?:that |the )?page|we.?re sorry, but that page cannot be found|(?:that |the )?page cannot be found|the page you (?:requested|were looking for|are looking for) (?:can.?t be found|does(?:n'?t| not) exist)|this page is no longer available|content no longer available|(?:dataset|record|project|submission) (?:you are trying to view )?is not available|this doi cannot be found in the doi system|doi cannot be found|ご利用のページが見つかりません|ページまたはファイルが存在しません|移動または削除されている|urlに誤りがある|urlには.*存在しません/i.test(e)})||a),l.push("Interstitial: requested page is unavailable")):"subscription"===n?l.push("Access notice: subscription or institutional login required"):"auth_wall"===n?(o&&!Le(o)||(o="Login required"),l.push("Access notice: login or account required")):"js_redirect"===n&&(o&&!Le(o)||(o="Redirecting..."),l.push("Interstitial: JavaScript redirect page — content not yet loaded"));return T({title:o,description:a,details:l,highlights:s,siteName:e.siteName||location.hostname,contentType:"interstitial"})}function wr(e){return function(e){return/[\u3040-\u30ff\u3400-\u9fff\uac00-\ud7af]/.test(e||"")}(e)?4:8}function xr(){var e=(location.pathname||"").toLowerCase(),t=e.split("/").filter(Boolean),r=t[t.length-1]||"";return!t.length||(!(!/^\/(index|default|home)\b/i.test(e)&&!/^\/\d+(,\d+)*\.html?$/i.test(e))||(!!/\/(search|category|categories|tag|tags|topics?|collections?|archive|archives|latest|headlines|news|notizie|calciomercato|mercato|forums?|boards?|community|discussions?|threads)\/?$/.test(e)||t.length<=2&&!/\d{4}[-/]\d{2}[-/]\d{2}/.test(e)&&!/-/.test(r)&&!/\.(html?|php|aspx?|jsp|shtml)$/i.test(r)))}function Sr(){var e=(location.pathname||"").toLowerCase(),t=(location.search||"").toLowerCase();return/(?:^|[?&])(q|query|search|searchtext|keyword|k)=/.test(t)||/\/(search|s|shop|browse|category|categories|collections?|catalog|keyword|wholesale|products?|jobs?)\b/.test(e)||/\b(category|categories|collection|catalog|search results?|shop|jobs?\s+(?:in|matching|for)|job results?)\b/i.test(document.title||"")}function kr(){var e=location.pathname||"";return!/\/(?:articles?|blogs?|columns?|archives?|entries?|posts?)\/?$/i.test(e)&&/(?:^|\/)(?:a-[a-z0-9]+|20\d{2}|\d{4}\/\d{2}\/\d{2}|article|articles|blog|blogs|column|columns|archive|archives|news\/[\w-]+|entry|entries|post|posts|view\/[A-Z]{3}\d{15,}|\d{5,}[\w-]*\.html?)(?:\/|\b)/i.test(e)}function Ar(e){if(!document.body)return!1;if(!kr())return!1;if(e&&"article"!==e.contentType&&"medical"!==e.contentType)return!1;var r=document.querySelector("[itemprop='articleBody'], article[role='main'], main article"),n=r||document.createElement("div");!r&&e&&e.html&&(n.innerHTML=e.html);var o=document.querySelector("h1")||n.querySelector("h1"),i=Array.prototype.filter.call(n.querySelectorAll("p"),function(e){var t=e.closest("article");return!t||t===n}),a=t(i.map(function(e){return e.textContent||""}).join(" "));!r&&e&&e.html&&(a=t(n.textContent||""));var l=n.querySelectorAll("article").length-(n.matches&&n.matches("article")?1:0),s=document.querySelector("[rel='author'], [itemprop='author'], [itemprop='datePublished'], time, .byline, [class*='byline' i]"),c=Array.prototype.reduce.call(n.querySelectorAll("p a[href]"),function(e,r){return e+t(r.textContent||"").length},0),u=a.length>0?c/a.length:1,d=i.length>=2&&a.length>=120,m=l>=2&&t(n.textContent||"").length>=280;return!!o&&(d||m)&&u<.45&&(!!r||!!e)&&(!!s||e&&(e.byline||e.publishedTime)||!!r)}function Cr(e){return/\/(?:20\d{2}|\d{4}\/\d{2}|[a-z0-9-]+\/\d{5,}(?:\/|$)|\d{5,}(?:\/|$)|[^\/]+-[^\/]+-[^\/]+)/i.test(e||"")}function qr(e,t){return/^(privacy|cookies?|terms|chi siamo|about us|contact|contatti|redazione|advertising|newsletter|subscribe|login|sign in|register|cookie settings|manage preferences)$/i.test(e)||/\/(privacy|cookie|cookies|terms|about|contatti|contact|redazione|login|register)\b/i.test(t||"")}function Tr(){return location.origin+location.pathname}function _r(e){return r(e||"").toLowerCase().replace(/[^\p{L}\p{N}]+/gu," ").split(/\s+/).filter(Boolean)}function Er(e){e=e||{};var t=document.querySelector("main h1, [role='main'] h1, h1"),n=_r((e.siteName||location.hostname||"").replace(/^www\./i,"")),o=/^(latest|news|article|articles|articlelist|story|stories|home|homepage|index|default|today|more|page|pages|section|sections|category|categories|topic|topics|read|view|photo|photos|video|videos|gallery|galleries|live|blog|blogs|web|english|telugu|samayam|newsweb|edition)$/,i=_r([location.pathname||"",e.title||"",document.title||"",t?t.textContent:""].join(" ")).filter(function(e){return e.length>=3&&!/^\d+$/.test(e)&&!o.test(e)&&-1===n.indexOf(e)}),a=[];i.forEach(function(e){-1===a.indexOf(e)&&a.length<12&&a.push(e)});var l=[];return(location.pathname||"").split("/").filter(Boolean).forEach(function(e){var t=r(e||"").toLowerCase();!t||/^\d/.test(t)||/\.(html?|php|aspx?|jsp|cms)$/i.test(t)||/^(news|latest-news|latest|articlelist|articles?|read|view|topic|topics|section|sections|home|index|default|world|india-news|international-news|english|telugu)$/.test(t)||-1===l.indexOf(t)&&l.push(t)}),{currentUrl:Tr(),keywords:a,sectionFragments:l.slice(0,4)}}function jr(e){return!!(e=t(e||"").toLowerCase())&&(/(trending topics|latest videos|latest photos|లేటెస్ట్ వీడియోలు|లేటెస్ట్ ఫోటోలు|video gallery|photo gallery|web stories|most read|best gelezen|newsletter|subscribe|abonneren|log in|login|sign in|register|create account|maak een account|u bent niet|settings|instellingen|tip ons|nieuwstip|belangrijke informatie delen|copyright|all rights reserved|privacy preference center|manage cookie preferences|manage consent preferences|manage privacy preferences|your privacy settings|your privacy choices|cookie list|cookie information|list of partners \(vendors\)|this website uses cookies|by accepting cookies|cookie declaration last updated|consent id|change your consent|your current state|vsak dan|poglej več|mark forums? read|forum statistics|members online|who is online|users browsing|forum rules|new posts since last visit|currently active users|forum contains no new|board statistics|mark all forums? read|what's going on|users online|active threads|active users)/i.test(e)||/\b\d{1,2}\.\d{2}\b/.test(e)&&/(vsak dan|sezona|oddaja|epizoda|premiera)/i.test(e))}function Lr(e){var r=t(e||"");return!!r&&(!!/(ve[ðd]ursp[áa]( næsta s[óo]larhring)?|weather forecast|uppl[ýy]singar um ve[ðd]ur)/i.test(r)&&(r.match(/\b(ve[ðd]ursp[áa]|hiti|[úu]rkoma|vindur|frost|rigning|sk[ýy]ja[ðd]|temperature|precipitation|wind|rain|snow|storm)\b/gi)||[]).length>=3)}function $r(e){if(!e||1!==e.nodeType)return!1;var r=t([e.getAttribute("id"),e.getAttribute("class"),e.getAttribute("role"),e.getAttribute("aria-label"),e.getAttribute("data-testid")].join(" ")).toLowerCase(),n=t(e.textContent||"").slice(0,280);return/(sidebar|side-bar|rail|utility|complementary|secondary|trending|popular|most-read|mostread|video|videos|photo|photos|gallery|galleries|web.?stor|newsletter|subscribe|social|share|follow|language|edition|top[_-]?nav|secondary-navbar|first-level-menu|second-level-menu|header-menu|side-nav|top-trending|wdt-trending|recommended|related|login|signup|register|account|forum[_-]?stats|online[_-]?users|who[_-]?is[_-]?online|board[_-]?stats|members[_-]?online|active[_-]?users|forum[_-]?rules|quick[_-]?reply|new[_-]?thread|moderator[_-]?panel|subforum[_-]?list)/.test(r)||jr(n)}function Pr(e,t,r,n){var o="",i=(e+" "+(r||"")).toLowerCase(),a=0,l=0;try{o=new URL(t,location.href).pathname.toLowerCase()}catch(e){o=""}return n.keywords.forEach(function(e){-1!==(i+" "+o).indexOf(e)&&(a+=1)}),n.sectionFragments.forEach(function(e){-1!==o.indexOf(e)&&(l+=1)}),{path:o,keywordMatches:a,sectionMatches:l}}function Nr(e,r,n){if(!e)return null;var i=e.getAttribute("href"),a=e.querySelector("h1, h2, h3, h4"),l=t(a&&a.textContent||e.textContent||e.getAttribute("aria-label")||""),s="",c=/(weather|forecast|ve[ðd]ur|vedur|meteo)/i.test((location.pathname||"")+" "+document.title);if(!i||"#"===i[0]||/^(javascript:|mailto:)/i.test(i))return null;var u=n&&n.tableIndexPage&&r&&r.matches&&r.matches("tr");if(l.length<(u?2:wr(l))||l.length>220)return null;var d=o(i);if(!d)return null;try{s=new URL(d,location.href).pathname}catch(e){return null}if(location.origin+s===n.currentUrl)return null;if(/^(comments?|discuss|hide|more|abonneren|subscribe|newsletter|login|log in|sign in|register|create account|maak een account|instellingen|settings|account|last post|first unread|go to last post|mark read|mark forum read|watch forum|new thread|post new thread|post reply|quick reply|forum rules|forum actions|forum tools)$/i.test(l))return null;if(/\/(subscribe|subscription|abonnement|login|register|newsletter|account|instellingen|settings)\b/i.test(d))return null;if(/\/(privacycontrols?|privacy|cookies?|consent)\b/i.test(d)&&l.length<80)return null;if(qr(l,i)||Hr(e)||Hr(e.parentElement)||Rr(e))return null;var m=e.querySelector("h1, h2, h3, h4, p")?e:r,p=r&&r.matches&&r.matches("tr")?yo(r,l):t(m&&m.textContent||"").replace(l,"").replace(/\s*[|·]\s*/g," - ");if(p=p.replace(/\b(last post|first unread|go to last post|mark read|mark forum read|watch forum|new thread|post new thread|post reply|quick reply|forum rules|forum actions|forum tools)\b/gi,"").replace(/\s{2,}/g," ").trim(),!c&&/\/(ve[ðd]ur|vedur|forecast|weather|spastod)\b/i.test(d)&&Lr(l+" "+p))return null;if(/\/(tv|spored)\//i.test(d)&&(/(vsak dan|poglej več|sezona|epizoda|oddaja)/i.test(l+" "+p)||/\b\d{1,2}\.\d{2}\b/.test(l+" "+p)))return null;var h=function(e,r,n,o,i){if(!r)return-1/0;var a=e.length,l=Pr(e,r,n,i),s=l.path;if(location.origin+s===i.currentUrl)return-1/0;o&&o.matches("article, section, li")&&(a+=120);var c=o&&o.querySelector("h1, h2, h3, h4");return c&&t(c.textContent||"")===e&&(a+=180),a+=70*l.keywordMatches,a+=220*l.sectionMatches,($r(o)||$r(o&&o.parentElement))&&(a-=260),(jr(e)||jr(n))&&(a-=220),a}(l,d,p,r||e.parentElement,n);if(h===-1/0)return null;var f={text:l,url:d,detail:p,rankScore:h,card:zr(e,r)};return r&&r.matches&&r.matches("tr")&&p&&(f.dedupeKey=re(d)+"|row:"+t(p).toLowerCase()),f}function zr(e,t){return e&&e.closest&&e.closest("tr, article, li, [class*='card'], [class*='story'], [class*='teaser'], [class*='item'], [class*='result'], [class*='news'], [class*='headline']")||t||e&&e.parentElement}function Mr(e,t){for(var r=e&&e.parentElement;r&&r!==document.body;){if(r.matches&&r.matches("article, li, main, [role='main']"))return null;if(r.matches&&r.matches("header")&&e.closest("article, section, main, [role='main']"))r=r.parentElement;else{if(t(r))return r;r=r.parentElement}}return null}function Rr(e){return Mr(e,Hr)}function Br(e,r){if(!e||1!==e.nodeType)return!1;if(e.matches("nav, header, footer, menu, [role='navigation'], [role='menubar'], [role='menu'], [role='toolbar'], [role='banner'], [role='contentinfo']"))return!0;var n=t([e.getAttribute("id"),e.getAttribute("class"),e.getAttribute("role"),e.getAttribute("aria-label"),e.getAttribute("data-testid")].join(" ")).toLowerCase();return!!n&&(!/(news|headline|story|article|post|feed|stream|content|result|listing|archive|topic|thread|discussion|feature)/.test(n)&&(r?/(nav|menu|menubar|navbar|breadcrumb|breadcrumbs|pager|pagination|footer|header|toolbar|sidebar|drawer|utility|meta|social|share|follow|account|login|signup|register)/.test(n):/(nav|menu|menubar|navbar|breadcrumb|breadcrumbs|pager|pagination|footer|header|toolbar|sidebar|drawer)/.test(n)))}function Hr(e){return Br(e,!0)}function Fr(e){return Br(e,!1)}function Or(e,n){if(!e||Ar(n))return!1;if(ao(null,e)||lo(null,e))return!1;if(function(e){var n=t(e||"");if(n.length<200)return!1;var o=r(location.pathname||"").toLowerCase(),i=/\/(?:contents?|table-of-contents|toc)(?:\/)?$/i.test(o),a=(String(e||"").match(/^\s*[-*]\s+(?:\[[^\]]+\]\([^)]*\)|(?:\d+[A-Z]?\.|Article\s+\d+|Schedule\s+\d+))/gim)||[]).length,l=String(e||"").split(/\n+/).filter(function(e){var r=t(e).replace(/^[-*#\s]+/,"");return r.length>=160&&!/^\[[^\]]+\]\(/.test(r)}).length;return i&&a>=6&&l<4}(e))return!0;if(!xr()&&!Sr())return!1;if(t(n&&(n.byline||n.publishedTime)))return!1;var o=String(e).split(/\n+/),i=o.filter(function(e){return/^\s*(?:(?:\d+\.|[-*])\s+)?#{1,4}\s+\[[^\]]{8,220}\]\(/.test(e)||/^\s*(?:\d+\.|[-*])\s+\[[^\]]{8,220}\]\(/.test(e)}).length,a=(String(e).match(/(?:^|\s)(?:(?:\d+\.|[-*])\s+)?#{1,4}\s+\[[^\]]{8,220}\]\(/g)||[]).length+(String(e).match(/(?:^|\s)(?:\d+\.|[-*])\s+\[[^\]]{8,220}\]\(/g)||[]).length,l=o.filter(function(e){var r=t(e).replace(/^#+\s*/,"");return!(!r||r.length<160)&&!/^\s*(?:(?:\d+\.|[-*])\s+)?#{0,4}\s*\[[^\]]+\]\(/.test(e)}).length;return function(e){var t,r=[],n=/\[[^\]]{8,220}\]\(([^\s)]+)\)|https?:\/\/[^\s)]+/g;for(;t=n.exec(String(e||""));){var o,i=t[1]||t[0];try{o=new URL(i,location.href)}catch(e){continue}o.origin===location.origin&&o.origin+o.pathname!==Tr()&&(Cr(o.pathname)&&-1===r.indexOf(o.origin+o.pathname)&&r.push(o.origin+o.pathname))}return r.length}(e)>=6||Math.max(i,a)>=4&&l<5}function Ir(e){return Array.prototype.filter.call(e.children||[],function(e){return e.matches&&e.matches("th, td")})}function Dr(e,t,r){var n=parseInt(e[t]||e.getAttribute(r)||"1",10);return n>0?n:1}function Ur(e){var r=Array.prototype.filter.call(e.querySelectorAll("thead tr"),function(e){var t=Ir(e);return!Ne(e)&&t.some(function(e){return"TH"===e.tagName})});if(r.length||(r=Array.prototype.filter.call(e.querySelectorAll("tr"),function(e){var t=Ir(e);return!Ne(e)&&t.length&&t.every(function(e){return"TH"===e.tagName})})),!r.length)return[];var n=[];r.forEach(function(e,t){n[t]||(n[t]=[]);var r=0;Ir(e).forEach(function(e){for(;n[t][r];)r+=1;for(var o=Dr(e,"colSpan","colspan"),i=Dr(e,"rowSpan","rowspan"),a=t;a<t+i;a+=1){n[a]||(n[a]=[]);for(var l=r;l<r+o;l+=1)n[a][l]=e}r+=o})});for(var o=n.reduce(function(e,t){return Math.max(e,t.length)},0),i=[],a=0;a<o;a+=1){var l=[];r.forEach(function(e,r){var o=t(((n[r]||[])[a]||{}).textContent||"");o&&l[l.length-1]!==o&&l.push(o)}),i.push(l.join(" / "))}return i.filter(Boolean).length>=2?i:[]}function Zr(e,r,n,i){for(var a=null==i?0:i,l=null==i?r.length:i+1,s=a;s<l;s+=1)if(r[s]){var c=Array.prototype.filter.call(r[s].querySelectorAll("a[href]"),function(e){var r=e.getAttribute("href")||"",o=t(e.textContent||e.getAttribute("aria-label")||""),i=n||wr(o);return r&&"#"!==r[0]&&!/^(javascript:|mailto:)/i.test(r)&&o.length>=i&&o.length<=220});if(c.length){c.sort(function(e,r){return t(r.textContent||"").length-t(e.textContent||"").length});var u=o(c[0].getAttribute("href"));if(u&&re(u)!==Tr())return{cellIndex:s,url:re(u),link:c[0]}}}return null}function Wr(e,r){var n=Array.prototype.filter.call(e.querySelectorAll("tr"),function(n){if(n.closest("table")!==e||n.closest("thead, tfoot")||Ne(n))return!1;var o=Ir(n),i=t(n.textContent||"");return function(e){return e.reduce(function(e,t){return e+Dr(t,"colSpan","colspan")},0)}(o)===r.length&&!n.querySelector("table")&&i.length>=8&&i.length<=600});if(n.length<6)return null;var o={};n.forEach(function(e){var t=Ir(e);t.forEach(function(e,r){var n=Zr(0,t,2,r);n&&(o[r]||(o[r]=[]),o[r].push(n))})});var i=Object.keys(o).map(function(e){var n,i=parseInt(e,10),a=o[e],l={};return a.forEach(function(e){l[e.url]=!0}),{column:i,count:a.length,distinctCount:Object.keys(l).length,role:(n=r[i],n=t(n||"").toLowerCase(),/\b(?:actions?|controls?|logs?|status|state|details?|downloads?|view|open|edit|delete)\b/.test(n)?0:/\b(?:id|name|title|package|target|chroot|record|pollster|research|reference|entry|item|case|candidate|team|source)\b/.test(n)?2:1)}}).filter(function(e){return e.count>=6&&e.count/n.length>=.65&&e.distinctCount>=4&&e.distinctCount/e.count>=.6}).sort(function(e,t){return t.role-e.role||t.count-e.count||t.distinctCount-e.distinctCount||e.column-t.column});return i.length&&i[0].role>0?{primaryColumn:i[0].column}:null}function Gr(){if(!document.body)return null;var e=Array.prototype.map.call(document.querySelectorAll("p"),function(e){return Ne(e)?"":t(e.textContent||"")}).filter(function(e){return e.length>=180});return e.length>=3&&e.join(" ").length>=700?null:Array.prototype.find.call(document.querySelectorAll("table"),function(e){if(Ne(e)||e.querySelector("table"))return!1;if(function(e){var r=e.closest("article, main, [role='main']")||document.body,n=Array.prototype.map.call(r.querySelectorAll("p"),function(e){return Ne(e)?"":t(e.textContent||"")}).filter(function(e){return e.length>=120});if(n.length<2)return!1;var o=n.join(" ").length;if(o<400)return!1;if("ARTICLE"===r.tagName)return!0;var i=t(e.textContent||"").length;return o>=500&&o>=.75*i}(e))return!1;var r=Ur(e);if(r.length<3)return!1;var n=t([location.pathname,document.title,(document.querySelector("h1")||{}).textContent,(e.querySelector("caption")||{}).textContent].join(" ")),o=t(r.join(" ")),i=t(n+" "+o),a=/(poll|survey|opinion|result|archive|history|tracker|record|ranking|standing|sonda|umfrag|sondag|sondeo|peiling|enqu[eê]te)/i.test(i),l=/\bbuilds?\b/i.test(n)&&/\b(?:builds?|status|state|chroots?|packages?|versions?|submitted|targets?|architectures?|platforms?|logs?)\b/i.test(o),s=/\bmonitor(?:ing)?\b/i.test(n)&&/\b(?:packages?|status|state|builds?|targets?|architectures?|chroots?|versions?|releases?|platforms?)\b/i.test(o);return!(!a&&!l&&!s)&&!!Wr(e,r)})||null}function Kr(e){if(!document.body||Ar(e))return!1;if(di(null,e))return!1;if(Gr())return!0;if(!xr()&&!Sr()&&!Zo())return!1;var r=document.createElement("div");r.innerHTML=e&&e.html||document.body.innerHTML;var n=r.querySelectorAll("a[href]").length,o=r.querySelectorAll("article, li, section, [class*='card'], [class*='item'], [class*='story'], [class*='product'], [class*='tile'], [class*='job'], [data-testid*='card'], [data-testid*='product'], [data-testid='slider_container'], [data-test='jobListing'], [data-jobid], [data-url*='/remote-jobs/']").length,i=r.querySelectorAll("h2, h3, h4").length,a=Array.prototype.filter.call(r.querySelectorAll("a[href]"),function(e){var r=t(e.textContent||e.getAttribute("aria-label")||"");return r.length>=wr(r)&&r.length<=220&&!qr(r,e.getAttribute("href")||"")}).length,l=Array.prototype.map.call(r.querySelectorAll("p"),function(e){return t(e.textContent||"")}).filter(Boolean),s=l.filter(function(e){return e.length>=180}).length,c=l.filter(function(e){return e.length>=120}).join(" "),u=t(r.textContent||e&&(e.textContent||e.markdown)||""),d=Array.prototype.reduce.call(r.querySelectorAll("a[href]"),function(e,r){return e+t(r.textContent||r.getAttribute("aria-label")||"").length},0),m=u.length>0?d/u.length:0,p=document.createElement("div");p.innerHTML=document.body.innerHTML;var h=Math.max(Xr(r),Xr(p));return!ao(r,u)&&!lo(r,u)&&(!(!Jr(r,u)&&!Jr(p))||!(s>=5&&c.length>=1200&&m<.35)&&(a>=6&&o>=6&&n>=8&&(i>=4||m>=.22)||h>=6||Zo(r)))}function Vr(e,r){if(!document.body)return null;if(r&&"article"!==r.contentType&&"list"!==r.contentType)return null;if(r&&"list"===r.contentType){if(!ne())return null;if(r.docsLike)return null;var n=jo(e,{portalRoot:!0});return n.portalRootEvidence?(r.portalRootEvidence=n.portalRootEvidence,r):null}if(!r&&!ne())return null;if(r&&(r.hostAware||r.docsLike))return null;if(gn(document.body.textContent||""))return null;if(r&&gr(r.title||document.title||"",document.body.textContent||"",{maxTextLength:1400}))return null;if(r&&document.querySelector("article h1, article [itemprop='articleBody']")&&(t(r.byline||p()||"")||t(r.publishedTime||h()||"")))return null;var o=jo(e,{portalRoot:!0});return o.portalRootEvidence?o:null}function Jr(e,r){if(e=e||document.body,r=t(r||e&&e.textContent||""),!e||Ar())return!1;var n=t([location.pathname,document.title,(document.querySelector("h1")||{}).textContent].join(" ")).toLowerCase();if(!/\b(?:cases?|defendants?|records?|dockets?|matters?)\b/.test(n))return!1;var o=mo(e,{cardSelectors:".card, [class*='case-card' i], [class*='record-card' i], [class*='result-card' i], article, li",allowMissingUrl:!0,dedupe:!1,minTitleLength:3,maxTitleLength:180,linkBuilder:function(e){return e.querySelector(".card-header, h2, h3, h4, a[href]")},candidateBuilder:function(e,r){var n=t(e.textContent||"");return/\b(?:case|defendant|prosecutor|trial|charges?|warrant|summons|custody|convicted|acquitted|closed|at large|court|record|docket|matter)\b/i.test(n)?{text:t((r||{}).textContent||"")}:null}}),i=e.querySelectorAll("form, [class*='filter' i], [class*='facet' i], [class*='exposed' i], [class*='search' i]").length,a=/\b\d{1,4}\s+(?:cases?|defendants?|records?|matters?|results?)\b/i.test(r);return o.length>=4&&(i>=1||a)}function Xr(e){var r=Tr(),n=[];return Array.prototype.forEach.call(e.querySelectorAll("a[href]"),function(e){var i,a=t(e.textContent||e.getAttribute("aria-label")||""),l=o(e.getAttribute("href"));if(!(a.length<wr(a)||a.length>220||qr(a,l||""))&&l){try{i=new URL(l,location.href)}catch(e){return}i.origin===location.origin&&i.origin+i.pathname!==r&&Cr(i.pathname)&&-1===n.indexOf(i.origin+i.pathname)&&n.push(i.origin+i.pathname)}}),n.length}function Yr(e){if(!e||"article"!==e.contentType)return!1;var r=(location.pathname||"").toLowerCase();if("/"===r||""===r||/^\/(index|default|home)\b/i.test(r)||/^\/\d+(,\d+)*\.html?$/i.test(r))return!1;var n=document.createElement("div");n.innerHTML=e.html||"";var o=t(n.textContent||e.textContent||""),i=n.querySelectorAll("p").length,a=n.querySelectorAll("h1, h2, h3").length,l=(e.markdown||"").match(/^\s*- \[/gm)||[],s=Array.prototype.reduce.call(n.querySelectorAll("a[href]"),function(e,r){return e+t(r.textContent||r.getAttribute("aria-label")||"").length},0),c=o.length>0?s/o.length:0,u=kr();return!so(n,o)&&(!(!ao(n,o)&&!lo(n,o))||(!xr()&&o.length>=280&&c<.5||!(xr()&&c>.5)&&(!(xr()&&a>=5&&a>=.6*i)&&(!(o.length<280)&&(!(i<3&&a<1&&!u)&&(!(l.length>=8&&i<5)&&(!(c>.33&&i<6)&&(u&&o.length>=280&&c<.5||i>=5||e.readerMode&&i>=3&&c<.28))))))))}function Qr(e){var r=Er(e),i=[];["main","[role='main']",".itemlist","table","ol","ul",".posts",".stories",".items",".news",".feed",".headlines",".view-case-listing","[class*='case-listing' i]","[class*='record-listing' i]","[class*='news']","[class*='feed']","[class*='headline']",".threads",".topic-list",".forumlist",".discussionList","[class*='threadlist']","[class*='thread-list']","[class*='topic-list']","body"].forEach(function(e){document.querySelectorAll(e).forEach(function(e){i.push(e)})});var a=i.reduce(function(e,i){var a=function(e,r){if(Hr(e)||$r(e))return-1/0;var i=e.querySelectorAll("a[href]").length,a=e.querySelectorAll("li, tr, article, section").length,l=e.querySelectorAll("article, section, [class*='card'], [class*='item'], [class*='story'], [class*='post'], [class*='news'], [class*='headline'], [class*='feed'], [class*='thread'], [class*='topic'], .structItem, .discussionListItem").length,s=e.querySelectorAll("h2, h3, h4").length,c=Array.prototype.filter.call(e.querySelectorAll("a[href]"),function(e){var r=t(e.textContent||e.getAttribute("aria-label")||"");return r.length>=wr(r)&&!qr(r,e.getAttribute("href")||"")&&!Hr(e.parentElement)&&!Hr(e.closest("div, section, article, li"))}).length,u=n(e);if(c<4||u<120)return-1/0;if(/copyright|all rights reserved|privacy policy|terms of use/i.test(t(e.textContent||""))&&s<2)return-1/0;var d=0;return r&&(r.sectionFragments.length||r.keywords.length)&&Array.prototype.forEach.call(e.querySelectorAll("a[href]"),function(e){var n=t(e.textContent||e.getAttribute("aria-label")||"");if(!(n.length<wr(n))){var i=o(e.getAttribute("href"));if(i){var a=Pr(n,i,"",r);d+=140*a.sectionMatches+30*a.keywordMatches}}}),10*i+30*c+20*a+45*l+20*s+d-Math.round(u/40)}(i,r);return!e||a>e.score?{node:i,score:a}:e},null);return a&&a.score>-1/0?a.node:document.body}function en(e){return"function"==typeof e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e.replace(/[àáâãäåæ]/g,"a").replace(/[èéêë]/g,"e").replace(/[ìíîï]/g,"i").replace(/[òóôõöø]/g,"o").replace(/[ùúûü]/g,"u").replace(/[ýÿ]/g,"y").replace(/[ñ]/g,"n").replace(/[çć]/g,"c").replace(/[šś]/g,"s").replace(/[žźż]/g,"z").replace(/[đ]/g,"d").replace(/[łĺ]/g,"l").replace(/[ř]/g,"r").replace(/[ťț]/g,"t").replace(/[ğ]/g,"g").replace(/[ąă]/g,"a").replace(/[ęě]/g,"e").replace(/[ıİ]/g,"i").replace(/[ůű]/g,"u").replace(/[őö]/g,"o").replace(/[ń]/g,"n")}function tn(e){return/[\u0370-\u03FF\u0400-\u04FF\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\u0900-\u097F\u0980-\u09FF\u0E00-\u0E7F\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FFF]/.test(e||"")}function rn(){return en(r(location.pathname||"").toLowerCase()).replace(/[^a-z0-9]+/g," ").split(/\s+/).filter(function(e){return e.length>=3&&!/^(questions|question|about|docs|wiki|html|index|start|journey|get|your|with|from|the|and|for|dictionary|definition|definitions|browse|category|recipes|recipe|english|search|translate|translation|pronunciation|thesaurus)$/.test(e)&&!/^\d+$/.test(e)})}function nn(e){return(r(e||"").toUpperCase().match(/\b(?:WO|US|EP|JP|CN|KR|CA|AU)\s*\/?\s*\d{4}\s*\/?\s*\d{3,7}\s*[A-Z]?\d?\b/g)||[]).map(function(e){return e.replace(/[^A-Z0-9]/g,"")}).filter(function(e,t,r){return e.length>=8&&r.indexOf(e)===t})}function on(){var e=(location.pathname||"").match(/^\/([a-z]{2})(?:\/|$)/);if(e||(e=(location.pathname||"").match(/\/([a-z]{2})(?:\/|$)/)),!e)return null;var t=e[1];return/^(de|fr|es|pt|pl|it|nl|sv|da|nb|no|fi|cs|sk|hu|ro|bg|hr|sr|sl|uk|el|tr|ja|ko|zh|ar|he|th|vi|id|ms)$/.test(t)?t:null}function an(e){try{return new URL(e||location.href,location.href)}catch(e){return null}}function ln(e){return(e&&e.hostname||"").replace(/^www\./i,"").toLowerCase()}function sn(e){return e?r(e.pathname||"").split("/").filter(Boolean).map(function(e){return e.replace(/\.(?:html?|shtml|php|aspx?)$/i,"").toLowerCase()}):[]}function cn(e){return en(t(r(e||""))).toLowerCase().replace(/[^a-z0-9]+/g," ").trim().replace(/\s+/g," ")}function un(e){return!(!e||e.length<10)&&(!/^\d+$/.test(e)&&(!(/^[a-z0-9]{10,}$/i.test(e)&&-1===e.indexOf("-")&&-1===e.indexOf("_")&&!/[^\x00-\x7F]/.test(e))&&(/[-_]/.test(e)||/[^\x00-\x7F]/.test(e))))}function dn(e){return!(!e||!e.length)&&(1===e.filter(un).length&&e.every(function(e){return un(e)||e.length<=24||/^\d+$/.test(e)||/^[a-z]{2}$/i.test(e)||/^[a-z0-9]{6,}$/i.test(e)}))}function mn(e,n,o,i){if(!e||!t(e.title||""))return!1;if(!(n&&"article"===n.contentType||o.length>800||((i||"").match(/\n\s*\n/g)||[]).length>=4))return!1;var a=r(location.pathname||""),l=sn(an(location.href)),s=rn(),c=en([e.title,n&&n.title||"",o.slice(0,4e3),i||""].join(" ")).toLowerCase(),u=en(t(n&&n.title||e.title||"")).toLowerCase(),d=[e.title,n&&n.title||"",o.slice(0,4e3),i||""].join(" "),m=s.length>=5?.2:.15,p=s.filter(function(e){return-1!==c.indexOf(e)}).length,h=s.filter(function(e){return-1!==u.indexOf(e)}).length,f=dn(l)&&s.length>=2&&(p>=1||h>=1||p/s.length>=m||h/s.length>=m);return function(e){var t=an(location.href),r=an(e&&e.canonicalUrl);if(!t||!r)return!1;if(ln(t)!==ln(r))return!1;var n=sn(t),o=sn(r);if(n.join("/")===o.join("/"))return dn(n);if(n.length!==o.length)return!1;for(var i=0,a=0;a<n.length;a+=1)if(n[a]!==o[a]&&(i+=1,!un(n[a])||!un(o[a])))return!1;return 1===i}(e)&&tn(d)||tn(a)||tn(d)&&dn(l)||f}function pn(e,n,o,i){var a=t([e&&e.title,n&&n.title,o,i].join(" ")).toLowerCase();if(a.length<800)return!1;if(!/\b(?:shareholder|annual report|letter to shareholders|berkshire hathaway|investor relations|form\s*(?:10-k|10-q|8-k)|sec filing)\b/.test(a))return!1;var l=r(location.pathname||"").toLowerCase();return!!/\/(?:19|20)\d{2}(?:ar|annualreport|annual-report|report|letter)\//.test(l)||(!!/\/(?:19|20)\d{2}[^/]*(?:letter|report|annual)[^/]*\.html?$/.test(l)||!(!/\/(?:letters?|annual-reports?|reports?)\//.test(l)||!/(?:19|20)\d{2}/.test(l)))}var hn={de:/\b(und|die|der|das|ist|von|zu|mit|den|ein|eine|für|auf|als|auch|nicht|sich|werden|nach|bei|aus|wie|oder|noch|nur|dem|des|über)\b/gi,fr:/\b(les|des|une|est|dans|pour|sur|par|pas|qui|que|avec|son|sont|plus|ses|mais|cette|ont|tout|nous|vous|aux|leur)\b/gi,es:/\b(los|las|una|del|por|con|para|que|más|son|sus|pero|como|esta|todo|nos|hay|fue|muy|han|sin|sobre|tiene)\b/gi,pt:/\b(dos|das|uma|por|com|para|que|mais|são|mas|como|esta|seu|sua|tem|nos|foi|pode|muito|seus|sobre|também)\b/gi,pl:/\b(nie|jest|są|się|jak|czy|ale|lub|oraz|tak|ich|jego|już|pod|przy|bez|dla|gdy|gdzie|między|tylko|może|który|która|które|których|którym|którego|którą|ten|ta|tej|tego|tym|tych|przez|dnia|roku|wobec|nadto|ponadto|został|została|był|była|było|były)\b/gi,it:/\b(gli|una|del|per|con|che|sono|più|dalla|della|delle|dei|anche|come|questa|tutto|suo|sua|suoi|nelle|alla)\b/gi,nl:/\b(een|het|van|zijn|met|dat|voor|maar|niet|ook|als|nog|wel|hun|uit|bij|kan|zou|meer|alle|dit|wordt)\b/gi,da:/\b(den|det|til|med|har|som|kan|vil|blev|efter|også|eller|han|hun|var|fra|ved|skal|ikke|mange|denne|blev|over|under)\b/gi,sv:/\b(den|det|att|som|har|med|för|kan|och|var|till|från|inte|ska|alla|hon|han|efter|över|under|denna|också|eller|blev)\b/gi,no:/\b(den|det|til|med|har|som|kan|vil|ble|etter|også|eller|han|hun|var|fra|ved|skal|ikke|mange|denne|over|under)\b/gi,nb:/\b(den|det|til|med|har|som|kan|vil|ble|etter|også|eller|han|hun|var|fra|ved|skal|ikke|mange|denne|over|under)\b/gi,fi:/\b(sen|oli|kun|tai|niin|mutta|ovat|joka|myös|kuin|siitä|tämä|hänen|tämän|vain|olla|sillä|sekä|ovat|vielä|nyt|yli|alle)\b/gi,tr:/\b(bir|için|ile|olan|olarak|gibi|daha|kadar|ancak|ayrıca|sonra|yapılan|ise|olan|üzerinde|tarafından|büyük|yeni|sonra)\b/gi,lv:/\b(par|kas|bet|arī|lai|jau|gan|nav|tad|vai|kur|šis|tās|kā|pie|pēc|tiek|var|būt|kad|vēl|viņa|visi|tikko|savs|kurš)\b/gi,lt:/\b(tai|yra|kad|bet|jau|dar|tik|bus|nuo|per|bei|iki|dėl|kas|čia|jis|jos|kur|buvo|labai|arba|dabar|turi|savo|apie)\b/gi,ro:/\b(este|sunt|fost|care|dar|sau|mai|pentru|într|cea|cel|acest|după|când|cum|prin|din|lor|avea|fost|toate|poate|doar)\b/gi,hr:/\b(koji|koja|koje|biti|nije|kao|ali|ako|više|samo|mogu|nakon|između|tada|sve|još|prije|već|prema|sada|njegov|ovaj)\b/gi,sr:/\b(који|која|које|бити|није|као|али|ако|више|само|могу|након|између|тада|све|још|пре|већ|према|сада|његов|овај)\b/gi,uk:/\b(що|але|як|або|вже|для|при|без|між|під|над|після|тому|який|яка|яке|його|його|цей|ще|також|може|були|буде)\b/gi,bg:/(?:^|\s)(и|в|на|за|с|от|до|е|са|се|че|но|като|през|които|която|което|след|това|също|повече|само|между|тези|всички|може|имат|обаче|когато|върху|срещу)(?=\s|$)/gi,el:/\b(και|που|από|στο|στα|στη|στις|στον|στους|για|με|της|του|των|ότι|αυτό|ήταν|είναι|αλλά|μετά|πριν|ακόμα|μπορεί)\b/gi,sk:/\b(ktorý|ktorá|ktoré|alebo|jeho|jeho|tento|tiež|môže|boli|bude|keď|pred|všetky|len|ešte|však|medzi|zatiaľ)\b/gi,sl:/\b(vendar|ampak|lahko|tudi|pred|vsak|bolj|že|prav|toda|niso|bili|bila|bilo|bodo|oziroma|čeprav|vedno|takoj)\b/gi,hu:/\b(hogy|mint|amikor|pedig|csak|volt|lesz|még|vagy|máig|után|előtt|mivel|összes|fogja|ehhez|tehát|viszont|minden)\b/gi,cs:/\b(který|která|které|jako|jeho|tento|také|může|byli|bude|když|před|všechny|ještě|pouze|však|mezi|zatím|proto)\b/gi};function fn(e,r){if(function(e,r){var n=t(r||"");if(!n||n.length<120)return!1;var o=n.replace(/\s/g,"");if(!o)return!1;var i={bg:/[\u0400-\u04FF]/g,el:/[\u0370-\u03FF]/g,sr:/[\u0400-\u04FF]/g,uk:/[\u0400-\u04FF]/g}[e];return!!i&&(o.match(i)||[]).length/o.length>=.25}(e,r))return!0;var n=hn[e];if(!n)return!0;var o=r.match(n)||[],i=r.split(/\s+/).length,a="pl"===e?.025:.03;return i<40||o.length/i>=a}function gn(e){var r=t(e||"").toLowerCase();if(!r)return!1;if(!cr("i").test(r))return!1;if(ur("i").test(r))return!0;var n=r.match(cr("gi"))||[];return r.length<5e3&&n.length>=3||n.length>=8&&n.length/(r.length/500)>=.4}function yn(e){var r=t(e||"").toLowerCase();if(!r)return!1;var n=/subscribe to continue|subscription required|sign in to continue reading|log in to continue reading|subscriber-only|purchase short-term access|institutional access|access through your institution|read with a subscription/g;if(n.test(r.slice(0,600)))return!0;var o=r.match(n)||[];return r.length<3e3&&o.length>=1}function bn(){var e=w(["NewsArticle","Article","BlogPosting","WebPage","LiveBlogPosting","ReportageNewsArticle"]),r=e&&(!1===e.isAccessibleForFree||"False"===e.isAccessibleForFree||"false"===e.isAccessibleForFree),n=$("article:content_tier","property")||$("article:content_tier","name"),o=n&&/^(locked|metered|premium)$/i.test(t(n)),i=!!document.querySelector("[data-piano-offer], [data-paywall], [class*='paywall' i], [id*='paywall' i], [class*='subscribe-wall' i], [class*='premium-wall' i], [class*='piano-offer' i], [data-testid*='paywall' i], [class*='metered' i][class*='banner' i]"),a=t(document.body&&document.body.innerText||"").slice(0,6e3).toLowerCase(),l=/(for abonnenter|unlock full access|contenu réservé aux abonnés|solo para suscriptores|nur für abonnenten|alleen voor abonnees|solo per abbonati|dostępne dla subskrybentów|только для подписчиков|лише для передплатників|přístupné pouze pro předplatitele|csak előfizetőknek|exklusivt för prenumeranter|kun for abonnenter|vain tilaajille|tik prenumeratoriams|tikai abonentiem|nur für abonnent|nur für abonnenten|contenido exclusivo para suscriptores|réservé aux abonnés|subscriber exclusive|subscribers only|premium content|members only|členský obsah|premium-inhalt)/.test(a);return r||o||i||l?{source:r?"structured_data":o?"meta_tag":i?"dom_element":"text_pattern",contentTier:n?t(n).toLowerCase():r?"locked":null}:null}function vn(e,n){var o=r(location.pathname||"").toLowerCase(),i=t([e,o,n.slice(0,5e3)].join(" ")).toLowerCase();return!!/\/(?:instruments?|treat(?:y|ies)|charters?|covenants?|conventions?|protocols?|resolutions?|publication\/unts)\b/.test(o)||(!!/\b(?:international\s+)?(?:covenant|convention|charter|treaty|protocol|optional protocol|general assembly resolution|united nations treaty collection|states parties to the present|entry into force|ratification status)\b/.test(i)||(!(!/\barticle\s+\d+\b/.test(i)||!/\b(states parties|entry into force|ratification|depositary|secretary-general|united nations)\b/.test(i))||!!function(e,t,r){var n=Fn({text:t,title:e,path:r,contextLimit:5e3}),o=/\b(?:book|part|division|chapter|title|article|section)\s+\d+[a-z]?\b/g.test(t)||/(?:^|\s)§\s*\d+/.test(t);return n.officialStatuteTitle&&n.officialTextSignals&&(o||n.translationAttribution||/\/englisch_[a-z0-9_-]+\//.test(r))}(e,n,o)))}function wn(e,n){var o=r(location.pathname||"").toLowerCase(),i=t([e,o,n.slice(0,8e3),$("citation","name"),$("DC.title","name")].join(" ")).toLowerCase(),a=xn(o),l=/\[\d{4}\]\s*(?:ukhl|uksc|ewca|ewhc|ukpc|ukut|ukftt|ac|wlr|all\s+er|ecli)\b/i.test(i),s=/\b(?:judgment|judgement|opinion(?:s)? of the lords|court of appeal|high court|supreme court|house of lords|lordships|appellant|respondent|claimant|defendant|neutral citation|cite as)\b/i.test(i),c=/\b(?:v\.?|versus)\b/i.test(e||i)&&/\b(?:appellant|respondent|claimant|defendant|secretary of state|commissioner|director of public prosecutions)\b/i.test(i);return a&&(l||s||c)||l&&s&&c}function xn(e){return/\/(?:cases?|judgments?|judg?ments?)\/[^/]+\/\d{4}\/\d+(?:\.html?)?$/i.test(e)||/\/(?:uksc|ukhl|ewca|ewhc|ukpc|ukut|ukftt|scotcs|niehc|nifam|ecj|echr|ecli)\/\d{4}\/\d+(?:\.html?)?$/i.test(e)}function Sn(e,n,o,i){if(!n||"article"!==n.contentType||n.docsLike)return!1;if(je(/(^|\.)siol\.net$/))return!1;if(function(e,n,o,i){if(!n||"article"!==n.contentType||i.length<500)return!1;var a=r(location.pathname||"").toLowerCase(),l=t([o,n&&n.title||"",e&&e.title,e&&e.siteName,e&&e.excerpt,$("article:section","property"),location.hostname||"",a].join(" ")).toLowerCase();if(/\b(news|breaking|opinion|press release|live updates?)\b/.test(l))return!1;var s=/\b(science|research|data|statistics|charts?|emissions?|climate|mission|observatory|telescope|reference|facts?|explorer|dataset|indicators?)\b/.test(l),c=/\b(key facts|data explorer|all charts|research & writing|introduction|overview|mission overview|science themes|methodology|download data|sources? and methods?)\b/i.test(i),u=/\/(?:mission|missions|data|statistics|charts?|topics?|explorers?)(?:\/[^/.]+)?\/?$/.test(a)||/\b(?:emissions|greenhouse-gas|climate|dataset|data-explorer)\b/.test(a),d=(i.match(/^##\s+/gm)||[]).length;return s&&(u&&i.length>=500||i.length>=1500&&(c||d>=4))}(e,n,o,i))return!1;if(function(e,r,n,o){if(!r||"article"!==r.contentType||o.length<500)return!1;var i=t([n,r&&r.title||"",e&&e.title,e&&e.siteName,e&&e.excerpt,$("article:section","property"),location.pathname||"",o.slice(0,4e3)].join(" ")).toLowerCase();return/\b(today in history|on this day|this day in history|from the archives|retrospective|look back|looking back|revisit(?:ed|ing)?|recall(?:s|ed|ing)?|remember(?:s|ed|ing)?|anniversary|archived|back then|then and now|historical|ajaloos|ajalugu|tagasivaade|meenut(?:a|ab|as)?)\b/.test(i)||/(?:振り返る|回顧|回想|当時|歴史|記念)/.test(i)}(e,n,o,i))return!1;var a=w(["NewsArticle","ReportageNewsArticle","LiveBlogPosting","AnalysisNewsArticle","OpinionNewsArticle"]);if(a){var l=t(S(a.dateModified)||$("article:modified_time","property")||$("article:modified_time","name")||$("dateModified","property")||$("dateModified","name")||"");if(l){var s=Date.parse(l);if(!isNaN(s))if((Date.now()-s)/864e5<=30)return!1}return!0}var c=t($("og:type","property")||"").toLowerCase();if(c&&"article"!==c)return!1;if(document.querySelector("#mw-content-text .mw-parser-output, #bodyContent .mw-parser-output"))return!1;var u=t([o,e&&e.siteName,e&&e.excerpt,$("article:section","property"),location.pathname||""].join(" ")).toLowerCase();return!/\b(docs?|documentation|reference|encyclopedia|wiki|manual|api|guide|tutorial|learn|legal|charter|terms|privacy|about us)\b/.test(u)&&(!!/\b(news|breaking|politics|business|markets?|economy|world|national|local|analysis|opinion|investigation|report)\b/.test(u)||i.length<5e3&&/\b(updated|published|reported)\b/.test(u))}function kn(e){var r=[];return e.forEach(function(e){Array.prototype.slice.call(document.querySelectorAll(e)).forEach(function(e){var n=t(e.textContent||"");n.length>=80&&-1===r.indexOf(n)&&r.push(n)})}),t(r.join("\n\n"))}function An(e,r,n){if(!e||"article"!==e.contentType||e.docsLike||n.length<100)return!1;var o=String(e.html||""),i=t([e.title||"",n.slice(0,1e3)].join(" ")).toLowerCase();if(/\blyrics?\b/.test(i)||/\bpoems?\b/.test(i))return!1;var a=((r||"").match(/\n\s*\n/g)||[]).length,l=((r||"").match(/^#{1,6}\s+/gm)||[]).length,s=(n.match(/[.!?。!?؟।]+/g)||[]).length,c=t(document.documentElement&&document.documentElement.lang||"").toLowerCase(),u=n.length<1500&&(c&&!/^en\b/.test(c)||(n.match(/[^\x00-\x7F]/g)||[]).length>.3*n.length);return je(/(^|\.)lenta\.ru$/)&&/^\/news\/\d{4}\/\d{2}\/\d{2}\//i.test(location.pathname||"")?(a>=1||l>=1)&&s>=2:!!(u&&Yr(e)&&(a>=1||l>=1||s>=2))||!(n.length>=700)&&(!(!/<article\b/i.test(o)&&!/<main\b/i.test(o))&&((a>=1||l>=1)&&s>=2))}function Cn(e,t){var r=document.createElement("div");if(r.innerHTML=e&&e.html?e.html:"",!r.innerHTML)return{root:null,markdown:t};Array.prototype.forEach.call(r.querySelectorAll(["aside","nav","footer","[role='complementary']","[role='navigation']","[aria-label*='related' i]","[aria-label*='recommended' i]","[aria-label*='latest' i]","[class*='related' i]","[class*='recommend' i]","[class*='recirculat' i]","[class*='liveblog' i]","[class*='live-blog' i]","[class*='sidebar' i]","[class*='side-bar' i]","[class*='widget' i]","[class*='comment' i]","[class*='discussion' i]","[class*='community' i]","[class*='popular' i]","[class*='trending' i]","[class*='suggest' i]","[class*='teaser' i]","[class*='also-read' i]","[class*='read-more' i]","[class*='more-news' i]","[class*='more-stories' i]","[class*='more-from' i]","[class*='front-page' i]","[class*='article-list' i]","[class*='content-list' i]","[class*='story-list' i]","[class*='news-list' i]","[class*='headline-list' i]","[class*='feed' i]","[class*='story-card' i]","[class*='storycard' i]","[class*='article-related-content' i]","[id*='related' i]","[id*='recommend' i]","[id*='comment' i]","[id*='sidebar' i]","[id*='widget' i]","[data-component*='article-list' i]","[data-component*='related' i]","[data-testid*='related' i]","[data-testid*='recommend' i]","[data-testid*='comment' i]"].join(", ")),function(e){e.parentNode.removeChild(e)});return{root:r,markdown:tr(r.innerHTML||"")||""}}function qn(e,r,n){var o=t(r&&r.title||e.title||"").toLowerCase(),i=(location.pathname||"").toLowerCase(),a=t(n||r&&r.textContent||"").toLowerCase();if(w(["LiveBlogPosting"]))return"liveblog";if((Cn(r,n).root||document).querySelector("[data-liveblog], [class*='liveblog' i], [class*='live-blog' i], [id*='liveblog' i], [class*='live-ticker' i], [class*='liveticker' i], [id*='live-ticker' i], [class*='live-feed' i], [class*='live-updates' i], [class*='live-entries' i]"))return"liveblog";if(/\b(liveblog|live.blog|live.ticker|liveticker|live updates?|live.updates?)\b/.test(o)||/\b(liveblog|live-blog|liveticker|live-ticker|live-updates)\b/.test(i))return"liveblog";if(/\b(daily briefing|morning briefing|evening briefing|weekly briefing|news briefing|this week in|week in review|daily digest|news digest|morning roundup|evening roundup|weekly roundup|daily round-?up|weekly round-?up|tagesüberblick|nachrichtenüberblick|wochenrückblick|résumé de la semaine|tour d'horizon|resumen semanal|rassegna stampa|przegląd tygodnia|przegląd dnia|podsumowanie tygodnia|podsumowanie dnia|daglig oversikt|veckosammanfattning|nyhedsoverblik|ugens nyheder|viikon katsaus|savaitės apžvalga|nedēļas apskats|преглед на седмицата|огляд тижня|преглед на денот|săptămâna în revistă|heti összefoglaló|týdenní přehled)\b/.test(o))return"briefing";if(/\b(events?[\s-]*(?:calendar|listing|guide|agenda|schedule)|what['']?s on|upcoming events?|things to do|veranstaltungen|événements|eventos|eventi|wydarzenia|evenementen|evenemang|begivenheder|tapahtumat|renginiai|pasākumi|események|události|events?\s+this\s+week|events?\s+today|event guide|gig guide|concert schedule)\b/.test(o)||/\/(events?|calendar|agenda|whats-on|what-s-on|veranstaltungen|evenements)\b/.test(i)){if((a.match(/\b\d{1,2}[\s./-]\s*(?:jan(?:uary)?|feb(?:ruary)?|mar(?:ch)?|apr(?:il)?|may|jun(?:e)?|jul(?:y)?|aug(?:ust)?|sep(?:tember)?|oct(?:ober)?|nov(?:ember)?|dec(?:ember)?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre|januar|februar|märz|april|juni|juli|august|oktober|dezember|styczeń|luty|marzec|kwiecień|maj|czerwiec|lipiec|sierpień|wrzesień|październik|listopad|grudzień)\b/gi)||[]).length>=2)return"event_listing";if(w(["Event","MusicEvent","SportsEvent","TheaterEvent","Festival"]))return"event_listing"}if(w(["VideoObject","Movie","TVEpisode","TVSeries","TVSeason","Clip"])&&a.length<800)return"video";var l=document.querySelectorAll("video, [class*='video-player' i], [class*='videoplayer' i], [id*='video-player' i], [class*='jwplayer' i], [class*='bitmovin' i], [class*='brightcove' i], [data-player], [data-video-id], [data-video], [class*='auvio' i][class*='player' i], [class*='media-player' i], [class*='mediaplayer' i]"),s=document.querySelectorAll("iframe[src*='youtube'], iframe[src*='youtu.be'], iframe[src*='vimeo'], iframe[src*='dailymotion'], iframe[src*='player'], iframe[src*='video'], iframe[data-src*='youtube'], iframe[data-src*='vimeo']");if((l.length>=1||s.length>=1)&&a.length<600)return"video";if(/\/(video|videos|watch|player|clip|replay|auvio|mediathek|mediatheque|videoteka|platforma)\b/.test(i)&&a.length<800&&a.replace(/https?:\/\/\S+/g,"").replace(/[^a-zA-Z\u00C0-\u024F\u0400-\u04FF\u0370-\u03FF\u0100-\u017F\u0180-\u024F]/g," ").replace(/\s+/g," ").trim().length<500)return"video";var c=Cn(r,n),u=c.markdown||n||"";if(c.root){var d=c.root.querySelectorAll("h2, h3"),m=c.root.querySelectorAll("time, [datetime]");if(m.length>=6&&d.length>=4){for(var p=[],h=0;h<m.length;h++){var f=m[h].getAttribute("datetime")||t(m[h].textContent);f&&-1===p.indexOf(f)&&p.push(f)}if(p.length>=4)return"liveblog"}}if(u){var g=(u.match(/^##\s+/gm)||[]).length,y=(u.match(/\b\d{1,2}[:.]\d{2}\s*(?:Uhr|AM|PM|CET|CEST|UTC|GMT|[A-Z]{2,4}T)?\b/gm)||[]).length;if(g>=6&&y>=6)return"liveblog"}if(u&&r&&r.html){for(var b=u.split("\n").filter(function(e){return e.trim().length>0}),v=u.match(/\[([^\]]*)\]\([^)]+\)/g)||[],x=(u.match(/^#{1,3}\s+/gm)||[]).length,S=0,k=0,A=0;A<b.length;A++){var C=b[A];/^#{1,3}\s+/.test(C)?(k>0&&k<200&&S++,k=0):k+=C.length}if(k>0&&k<200&&S++,x>=4&&v.length>=5&&S>=4&&S>=.6*x)return"newsletter";var q=u.replace(/\[([^\]]*)\]\([^)]+\)/g,"$1").replace(/^#{1,6}\s+.*$/gm,"").replace(/[^a-zA-Z\u00C0-\u024F\u0400-\u04FF\u0370-\u03FF\u0100-\u017F\u0180-\u024F]/g," ").replace(/\s+/g," ").trim().split(/\s+/).filter(function(e){return e.length>=3}).length;if(v.length>=8&&x>=4&&q<5*v.length)return"newsletter"}return null}function Tn(e,r,n,o,i,a,l,s,c,u,d,m,p,h,f,g,y){var b,v=[],w=gn(o);r&&r.lodgingShell&&v.push("client_rendered_property_shell"),s||h||!w||v.push("consent_interstitial"),s||(!(b=t(o||"").toLowerCase())||b.length>220||!/^(?:do not sell(?: or share)? my personal information|do not sell(?: or share)?|privacy policy|cookie policy|cookies? policy|terms of (?:service|use)|manage (?:privacy|cookie|consent) preferences|privacy choices|your privacy choices)$/i.test(b)&&!/(?:do not sell(?: or share)? my personal information|privacy policy|cookie policy|terms of (?:service|use)|privacy choices|your privacy choices)/i.test(b))||v.push("consent_interstitial");var x=function(e,r,n,o){var i=t(n||"").toLowerCase(),a=t(o||"").toLowerCase(),l=cr("i"),s=ur(),c=l.test(i),u=l.test(a);if(!c&&!u&&"meta_login"!==e)return!1;var d=s.test(i)||i.indexOf("cookie")>=0&&i.indexOf("cookie")<140&&i.length<500,m=s.test(a)||a.indexOf("cookie")>=0&&a.indexOf("cookie")<140&&i.length<260;return"meta_login"===e||d||m}(d,0,o,i)&&!("consent_wall"===d&&p);return s||h||!(x||gn(i)&&!p)||v.push("consent_interstitial"),"anubis"===u&&v.push("anubis_challenge_page"),"datadome"===u&&v.push("datadome_challenge_page"),"cloudflare"===u&&v.push("cloudflare_challenge_page"),"consent_wall"!==d||h||p||v.push("consent_interstitial"),"meta_login"===d&&v.push("meta_login_wall"),"human_verification"===d&&v.push("human_verification_interstitial"),"region_selector"===d&&v.push("regional_selector_interstitial"),"browser_support"===d&&v.push("browser_support_interstitial"),"access_error"!==d||h||p||v.push("access_error_interstitial"),"site_unavailable"===d&&v.push("site_unavailable_interstitial"),"not_found"!==d&&!m||s&&c||v.push("not_found_interstitial"),"subscription"===d&&(!h||yn(o)||yn(i)&&!p)&&v.push("subscription_interstitial"),"auth_wall"===d&&v.push("auth_or_login_interstitial"),"meta_login"===d&&/cookie/i.test(a)&&v.push("consent_interstitial"),s&&c||!u&&(h||p||!/(verify you are human|unusual traffic|are you a robot|access denied|security verification|checking your browser)/.test(a))||v.push("bot_or_access_interstitial"),s&&c||"human_verification"!==d&&("access_error"!==d||h||p)||v.push("bot_or_access_interstitial"),f&&(i.length>80||(e.title||"").length>3||y&&y.htmlLength>200)&&v.push("empty_extraction"),!g||u||d||v.push("empty_extraction"),!u&&!d&&t(n||"").length<10&&(e.title||"").length>3&&-1===v.indexOf("empty_extraction")&&-1===v.indexOf("short_extraction")&&v.push("short_extraction"),v}function _n(e,n,o,i,a,l,s,c,d,m,f,g,y,b,v,x,S,k,A){var C,q=[];if(!y&&!b&&n&&"search"!==n.contentType){var T=i.length,E=a.length,j=rn().length>=2,L=je(/(^|\.)protothema\.gr$/i)&&"article"===n.contentType&&T>=500;if("article"!==n.contentType||n.legalProvision||d||m||f||L||(j&&T<500&&E>2e3&&(v||x||q.push("truncated_content")),j&&T>=500&&T<1500&&E>3e3&&T/E<.15&&!v&&!x&&q.push("truncated_content"),j&&T>=1500&&T<3e3&&E>8e3&&T/E<.12&&!v&&!x&&q.push("truncated_content"),function(e,r,n,o){if(!r||"article"!==r.contentType||r.docsLike)return!1;if(An(r,n,o))return!1;var i=t([location.pathname||"",r&&r.title||"",e&&e.title||""].join(" ")).toLowerCase();if(String(r&&r.html||"").toLowerCase(),/\blyrics?\b/.test(i)){var a=kn(["[data-lyrics-container]",".lyrics","[class*='Lyrics__Container']"]);if(a.length<300)return!1;if(/data-lyrics-container|lyrics__container|class=["'][^"']*\blyrics\b/i.test(r.html||""))return!1;if(/\[(?:verse|chorus|bridge|outro|intro|hook|refrain|pre-chorus|instrumental)\b/i.test(o))return!1;if(/\b(song bio|annotation|contributors?|written by|produced by)\b/i.test(o)||o.length<.75*a.length)return!0}if(/\bpoems?\b/.test(i)){var l=kn(["[data-poem]",".poem","[class*='poem' i]"]);if(l.length>=300&&!/data-poem|class=["'][^"']*poem/i.test(r.html||"")&&o.length<.75*l.length)return!0}return!1}(e,n,o,i)&&!x&&q.push("truncated_content")),!(T<200&&E>1e3)||d||m||f||v||x||q.push("short_extraction"),"article"===n.contentType&&T>=200&&T<700&&E>2500&&!d&&!m&&!f&&!v){var $=t([o,s,e.title,e.description].join(" "));!x&&/\b(?:Published:\s*\d{4}|Duration:\s*P?T|featured video|watch video|learn more)\b/i.test($)&&q.push("short_extraction")}if(("list"===n.contentType||"article"===n.contentType)&&((C=location.pathname||"")&&!/\/(?:search|browse|category|categories|tags?|topics?|collections?)\b/.test(C)&&/\/(?:drugs?|compounds?|substances?|proteins?|genes?|genomes?|pathways?|assays?|bioassays?|datasets?|records?|entries?|items?|products?|publications?|papers?|articles?|cases?|opinions?|decisions?)\/[a-z0-9_.-]*\d[a-z0-9_.-]*(?:\/|$)/i.test(C))&&T<500&&function(e){var r=t(e||"");if(!r)return!1;var n=(r.match(/\[([^\]]*)\]\([^)]+\)/g)||[]).length,o=(e||"").split(/\n+/).filter(function(e){return/^\s*[-*]\s+\[[^\]]+\]\([^)]+\)\s*$/.test(e)}).length,i=r.replace(/\[([^\]]*)\]\([^)]+\)/g,"").split(/\s+/).filter(function(e){return e.length>=3}).length;return n>=2&&o>=2&&i<2*n}(o)&&!v&&("article"===n.contentType&&x||q.push("short_extraction")),"article"===n.contentType&&!d&&!m&&!f&&T>=200&&T<1e3&&E>2e3&&!v){var P=t(o||""),N=(P.match(/\[([^\]]*)\]\([^)]+\)/g)||[]).length,z=(P.match(/^#{1,6}\s/gm)||[]).length,M=P.replace(/\[([^\]]*)\]\([^)]+\)/g,"").replace(/^#{1,6}\s.*$/gm,"").split(/\s+/).filter(function(e){return e.length>=3}).length;v||x||!(N>=3&&M<2*N||z>=3&&M<20)||q.push("short_extraction")}m&&T<60&&E>500&&q.push("short_extraction")}var R=rn(),B=n&&"list"===n.contentType&&(_("q")||_("_nkw")||_("st")||/^\/search\//.test(location.pathname));if(!y&&!b&&R.length>=2&&!B&&!c&&!xn(r(location.pathname||"").toLowerCase())&&!wn(s,i)){var H=(i.match(/[a-zA-Z]/g)||[]).length,F=i.replace(/\s/g,"").length;if((F>0?H/F:1)>.25){var O=en(l),I=R.filter(function(e){return-1!==O.indexOf(e)}).length,D=R.length>=5?.3:.25;if(I/R.length<D){var U=en(s);!(R.filter(function(e){return-1!==U.indexOf(e)}).length/R.length<D)||g||mn(e,n,i,o)||pn(e,n,i,o)||function(e,n,o){if(!n||o.length<500)return!1;var i=r(location.pathname||"").toLowerCase();if(!/\/(?:articles?\/)?(?:dataset|datasets|figure|record|entry)\//.test(i))return!1;var a=t([n&&n.title||"",e&&e.title,e&&e.siteName,o.slice(0,5e3)].join(" ")).toLowerCase();return/\b(?:dataset|posted on|authored by|doi|figure|data|repository|supplementary|apoptosis|protein|gene|assay|study)\b/.test(a)&&(/\b\d{3,}\b/.test(i)||/\/[_-]\//.test(i))}(e,n,i)||function(e){var t=nn([location.href||"",location.pathname||"",location.search||""].join(" "));if(!t.length)return!1;var r=nn(e||"");return t.some(function(e){return-1!==r.indexOf(e)})}(l)||function(e){var t=e&&e.sportsDetailEvidence;return!(!t||"opaque"!==t.urlMatch&&"consistent"!==t.urlMatch)}(n)||q.push("url_content_mismatch")}}}if(!y&&!b&&i.length>200&&!xn(r(location.pathname||"").toLowerCase())&&!wn(s,i)){var Z=on()||(e.language||"").slice(0,2).toLowerCase();!Z||!hn[Z]||g||fn(Z,i)||Z!==on()&&mn(e,n,i,o)||pn(e,n,i,o)||function(e,r,n){var o=n||document&&document.title||r&&r.title||e&&e.title||"";if(!t(o))return!1;var i=an(location.href),a=an(e.canonicalUrl),l=sn(i),s=sn(a),c=l[l.length-1]||"",u=s[s.length-1]||"";function d(e){return!!e&&e.length>=4&&!/^\d+$/.test(e)}if(!d(c)&&!d(u))return!1;var m=cn(l[l.length-1]||""),p=cn(o);return!(!m||!p||m!==p&&-1===m.indexOf(p)&&-1===p.indexOf(m))}(e,n)||q.push("url_content_mismatch")}if(n&&"search"===n.contentType&&((n.resultCount||0)<3&&q.push("search_results_unusable"),(/^aplikacje google$/i.test(s)||/^google apps$/i.test(s))&&q.push("search_engine_shell_page"),/zawartość została wygenerowana przy użyciu ai|generated with ai|ai-generated/i.test(l)&&q.push("search_engine_ai_summary_only")),!y&&!b&&n&&"search"!==n.contentType&&"press_release"!==n.contentType&&!n.isolatedLiveblogEntry&&!c&&!f){var W=Cn(n,o).markdown||o||"",G=qn(e,n,W),K=function(e,r,n,o){if(!r||"article"!==r.contentType&&"list"!==r.contentType)return!1;if("search"===r.contentType||"press_release"===r.contentType||"social"===r.contentType||r.packagePage||r.isolatedLiveblogEntry)return!1;if(t(r.byline||e.byline||p()||"")||t(r.publishedTime||e.publishedTime||h()||""))return!1;var i=t(n||o||""),a=t(r.title||e.title||"").toLowerCase(),l=t(r.siteName||e.siteName||location.hostname||"").toLowerCase(),s=((location.hostname||"")+" "+(location.pathname||"")+" "+(e.canonicalUrl||"")).toLowerCase();if(!i||i.length<250||gn(i)||gr(a,i,{maxTextLength:1400}))return!1;if(!/(^\/$|\/(?:index(?:\.html?)?|docs?|documentation|reference|api|manual|guides?|tutorials?|standard[_-]?library|stdlib|language|methods)(?:\/|$))/i.test(s))return!1;var c=0;/(?:^|[\s/.-])(?:docs?|documentation|reference|api|manual|guide|tutorial|standard[_-]?library|stdlib)(?:[\s/.-]|$)/i.test(s)&&(c+=1),/(?:documentation|docs|reference|api|manual|guide|tutorial|standard library)/i.test(a+" "+l)&&(c+=1);var d=t(u(["meta[name='generator']"],"content")||"");if(/(?:docusaurus|sphinx|jekyll|hugo|mkdocs|docs|documentation|reference)/i.test(d)&&(c+=1),/(?:classes and modules|standard library documentation|language|reference|api|tutorial|guides?)/i.test(i)&&(c+=1),c<2)return!1;for(var m,f={},g=0,y=/\[([^\]]+)\]\(([^)]+)\)/g;m=y.exec(i);){var b=m[1]+" "+m[2];/(?:docs?|documentation|reference|api|manual|guide|tutorial|standard[_-]?library|stdlib|language|method|class|module|contribut|getting started)/i.test(b)&&!f[m[2]]&&(f[m[2]]=!0,g+=1)}return g>=4}(e,n,W,i),V=!!w(["NewsArticle","ReportageNewsArticle","AnalysisNewsArticle","OpinionNewsArticle"])&&i.length<1e3;!G||g||K||"video"===G&&n.hostAware||V||function(e,n,o,i){if(!n||"article"!==n.contentType||n.docsLike||i.length<1500)return!1;var a=Cn(n,o),l=a.root||document,s=a.markdown||o||"";if(n.singleTopicPage)return!0;var c=t(n&&n.title||e.title||"").toLowerCase(),u=r(location.pathname||"").toLowerCase(),d=t(e&&e.siteName||"").toLowerCase(),m=!!(l&&l.matches&&l.matches(".mw-parser-output, #mw-content-text, #bodyContent, .vector-body, .vector-body-inner"));if(!(n.html&&/<h1\b/i.test(n.html)||c.length>20))return!1;var p=((s||"").match(/\n\s*\n/g)||[]).length,h=((s||"").match(/^#{1,6}\s+/gm)||[]).length,f=!!l.querySelector("article, main, [itemprop='articleBody'], #mw-content-text .mw-parser-output, #bodyContent .mw-parser-output");if(m&&p>=3&&h<=4*p&&i.length>=800)return!0;if(f&&p>=4&&h<=3*p&&i.length>=3e3)return!0;if(p>=10&&i.length>=2500&&h<=2*p)return!0;var g=/\b(abstract|references|methods|results|discussion|data availability|journal|protein|genome|doi)\b/i.test(i)||/\/(articles?|doi)\//.test(u);return!!(i.length>8e3&&g)||!(!/\/(?:what-we-do|what_we_do|our-work|our_work|about|mission|programmes?|programs?)\b/.test(u)&&!/\b(institution|agency|united nations|ngo|foundation|what we do|our work|mission)\b/.test(c+" "+d)||!/\b(what we focus on|we work|our work|mission|protect|provide|advocate|countries and territories|programmes?|programs?)\b/i.test(i))}(e,n,W,i)||function(e,n,o,i){if(!n||i.length<800)return!1;var a=r(location.pathname||"").toLowerCase(),l=t(n&&n.title||e.title||"").toLowerCase(),s=t(e&&e.siteName||"").toLowerCase(),c=t(document.body&&document.body.innerText||""),u=t([l,s,a,i.slice(0,12e3),c.slice(0,12e3)].join(" ")).toLowerCase(),d=(o||"").match(/^#{2,4}\s+/gm)||[],m=/\/(?:compound|substance|protein|gene|genome|pathway|assay|bioassay|dataset|datasets|article\/dataset|articles\/dataset|record|entry)\//.test(a),p=u.match(/\b(?:cid|cas|inchikey|inchi|canonical smiles|molecular formula|molecular weight|uniprot|ensembl|refseq|gene id|taxonomy id|doi|dataset|accession|chembl|pubchem|protein|proteomics|metabolomics|transcriptomics)\b/g)||[],h=document.querySelectorAll("table, dl, [class*='record' i], [class*='identifier' i], [class*='metadata' i], [data-testid*='metadata' i]").length>=2,f=!!w(["Dataset","DataCatalog"]);return(m||f||/\b(?:database|data repository|scientific resource|life science resource)\b/.test(s))&&p.length>=3&&(d.length>=4||h||i.length>=5e3)}(e,n,o,i)||vn(s,i)||q.push("multi_topic_page")}if(!y&&!b&&n&&"article"===n.contentType&&!xr()&&(bn()&&-1===q.indexOf("subscription_interstitial"))){var J=e&&!0===e.isAccessibleForFree,X=a.length>0?i.length/a.length:1;i.length>0&&(!J&&i.length<5e3||!J&&i.length<8e3&&X<.4||i.length<12e3&&X<.25)&&q.push("paywall_partial_content")}y||b||!n||"search"===n.contentType||c||/\/(foto|fotos|photos?|gallery|galleries|galerie|galerij|galleria|galeria|fotogalerie|bildergalerie|bildspel|fotogalleri|valokuvat|fotoalbum|fotoreportaz|фото|фотогалерея|φωτογραφίες)\b/i.test(location.pathname||"")&&i.length<800&&q.push("photo_gallery_page");if(!y&&!b&&Sn(e,n,s,i)){var Y=t(n&&n.publishedTime||e.publishedTime||"");if(Y){var Q=Date.parse(Y);if(!isNaN(Q))(Date.now()-Q)/864e5>30&&i.length>=1200&&!v&&q.push("stale_content")}}return y||b||!n||"search"===n.contentType||c||function(e,r,n){var o=t(r+" "+n).toLowerCase();if(!o)return!1;if(je(/(^|\.)(prnewswire\.com|globenewswire\.com|businesswire\.com)$/i))return!1;if(vn(e,r)||wn(e,r))return!1;var i=/\b(ein presswire|business wire|pr newswire|prnewswire|globe newswire|globenewswire|cision|marketwired|pr\.com|accesswire)\b|\/prnewswire\//i,a=o.match(/\b(ein presswire|business wire|pr newswire|prnewswire|globe newswire|globenewswire|cision|marketwired|pr\.com|accesswire)\b|\/prnewswire\//gi)||[];if(!a.length)return!1;if(/\b(this press release was (?:issued|distributed)|press release (?:distributed|provided|issued) by|distributed by (?:ein presswire|business wire|pr newswire|prnewswire|globe newswire|globenewswire|cision|marketwired|accesswire)|provided by (?:ein presswire|business wire|pr newswire|prnewswire|globe newswire|globenewswire|cision|marketwired|accesswire))\b/i.test(o))return!0;var l=o.slice(0,1600);if(i.test(l)&&/\b(press release|announces?|launches?|reports?|new york|london|toronto|singapore|--|\(business wire\))\b/i.test(l))return!0;var s=t(e+" "+n.slice(0,800)).toLowerCase();return!(!i.test(s)||!/\b(press release|announces?|launches?)\b/.test(s))||a.length>=3&&/\b(press release|announces?|launches?|distributed|provided)\b/i.test(o.slice(0,4e3))}(s,i,a)&&q.push("syndicated_repost"),q}function En(e,r,n,o,i){var a=[],l=t(r&&r.title||e.title).toLowerCase(),s=t(n||r&&r.textContent||"").toLowerCase(),c=t(o||"").toLowerCase(),u=(l+" "+s+" "+c).trim(),d=function(e){var r=t(e||"");if(!r||!tn(r))return!1;var n=r.replace(/\s/g,"");if(n.length<60||n.length>2400)return!1;var o=r.split(/\s+/).filter(function(e){return e.length>0}).length;return o<=1||o<220||n.length/Math.max(o,1)>=4}(s),m=or(e,o,i),p=br(e,o),h=!(!r||!r.docsLike),f=!(!r||!r.packagePage),g=/definition of |what does .+ mean\??| pronunciation in english|dictionary|definitions for /.test(l)||/(\/dictionary\/|\/definition\/|\/definitions\/|\/pronunciation\/)/.test(location.pathname||"")||!!_("q")&&/\b(dictionary|translation|translate|thesaurus|lexicon|s[łl]ownik|t[łl]umaczenie)\b/.test(l+" "+t(e.excerpt||"").toLowerCase()),y=h&&s.length>20,b=!t(n||"")&&!t(r&&r.textContent||""),v=s.length<140&&/copyright\b.*\ball rights reserved\b/i.test(s)&&!/[.!?].+[.!?]/.test(s),w=t(r&&r.textContent||"").toLowerCase(),x=function(e,t,r,n){if(!e||"search"===e.contentType)return!1;var o=(location.pathname||"/").toLowerCase(),i=ne(),a=i||xr(),l=(t.match(/\[[^\]]+\]\([^)]+\)/g)||[]).length,s=ie(document),c=!!e.portalRootEvidence;return!(gn(r)||gn(n))&&!gr(e.title||"",r,{maxTextLength:1100})&&("list"===e.contentType?a&&s||c:!("social"!==e.contentType||"feed"!==e.socialKind||!e.hostAware)&&!(!i&&!/^\/(?:tag|tags|topic|topics|category|categories|feed|feeds|latest|headlines|news)(?:\/|$)/.test(o))&&e.itemCount>=3&&l>=3)}(r,n,s,c),S=gr(l,t([s,w].join(" ")).toLowerCase(),{maxTextLength:1100}),k=document.querySelectorAll("main a[href], article a[href]").length>=3||r&&"list"===r.contentType,A=gn(s),C=s.length>500&&!(A&&!k),q=An(r,n,s);return a=(a=a.concat(Tn(e,r,n,s,c,u,0,h,y,m,p,S,k,C,b,v,i))).concat(_n(e,r,n,s,c,u,l,h,y,g,f,x,m,p,q,d))}var jn=/(?:constitution|constitutional|constitui[cç]?[aã]o|c[oó]digo|codigo|code|statute|act|law|regulation|ordinance|decree|treaty|convention)/i,Ln=/\b(?:civil|criminal|commercial|tax|labou?r|procedure|family|public|administrative)?\s*(?:code|statute|act|law|regulation|ordinance)\b/i,$n=/(?:^|\s)(?:Art\.?|Article|Section|Sec\.?|§)\s*(?:\d+[ºª]?|[IVXLCDM]+)/gi,Pn=/\b(?:title|chapter|part|book|t[ií]tulo|cap[ií]tulo|se[cç][aã]o)\s+(?:[IVXLCDM]+|\d+)/gi,Nn=/(?:federal republic|rep[úu]blica federativa|republica federativa|civil rights|fundamental rights|legal provisions?|official gazette|promulgat|enacted|amended|paragraph|par[áa]grafo|paragrafo|inciso|subsection)/i,zn=/\b(?:legal provisions?|federal law gazette|official gazette|version information|translation includes? the amendment|current status of the .* version|conditions governing use of this translation)\b/i,Mn=/\b(?:version information|translation provided by|translations? may not be updated|full citation|federal law gazette|table of contents)\b/i,Rn=/\b(?:translation provided by|translated by|translation includes?|translations? may not be updated|updated by|revised and updated by)\b/i,Bn=/(?:^|\s)(?:§|Section|Sec\.?|Article)\s*\d+/i,Hn=/(?:^|\s)(?:Art\.?|Article|Section|Sec\.?|§)\s*(?:1|I)\b/i;function Fn(e){var n=(e=e||{}).root||null,o=t(e.text||n&&n.textContent||""),i=t(e.title||document.title||""),a=t([i,r(e.path||location&&location.pathname||"").toLowerCase()].join(" ")).toLowerCase(),l=t([a,o.slice(0,e.contextLimit||4e3)].join(" ")).toLowerCase();return{text:o,titleContext:a,context:l,legalTitle:jn.test(l),officialStatuteTitle:Ln.test(a),officialTextSignals:zn.test(l),profileOfficialTextSignals:Mn.test(o),translationAttribution:Rn.test(l),provisionMarkers:(o.match($n)||[]).length,structuralMarkers:(o.match(Pn)||[]).length,legalTerms:Nn.test(o),numberedClauses:(o.match(/(?:^|\s)\(\d+\)|(?:^|\s)\([a-z]\)/gi)||[]).length,sectionOrArticleMarker:Bn.test(o),bodyStartMatch:o.match(Hn)}}function On(e){return e&&e.querySelectorAll?(Me(e,"#comments, #respond, .comments-area, .comment-list, .comments-section, .post-comments, .disqus-comment-count, [class*='comment-respond'], [class*='comentario' i], [class*='comentarios' i], [class*='commentaire' i], [class*='komentar' i], [class*='komentarze' i], [class*='yorum' i], .sharedaddy, .share, .share-links, .share-buttons, .social-sharing, .social-buttons, [class*='share' i], [id*='share' i], [class*='compartir' i], [class*='partager' i], [class*='teilen' i], [class*='paylas' i], [class*='paylaş' i], [class*='related' i], [id*='related' i], [class*='recommend' i], [id*='recommend' i], [class*='relacionad' i], [class*='relacionados' i], [class*='recomendad' i], [class*='recomendados' i], [class*='similares' i], [class*='newsletter' i], [id*='newsletter' i], [class*='subscribe' i], [id*='subscribe' i], [class*='advert' i], [id*='advert' i], [class*='promo' i], [id*='promo' i], [class*='adslot' i], [id*='adslot' i], [data-ad], [data-ads]"),Ee(e),_e(e),e):e}function In(){var e=function(){var e=document.querySelector("text .text .section, text .section, [class~='text'] > .section");if(!e)return null;var r=t(e.textContent||""),n=!!document.querySelector("notes, [id*='notes' i], [class*='notes' i]"),o=Fn({text:r,title:document.title||""}),i=/\b(?:U\.S\.\s+Code|Code|Statute|Act|Section|§)\b/i.test(document.title||"")||o.sectionOrArticleMarker;return r.length<250||!n||!i||o.numberedClauses<2?null:e}(),r=document.querySelector("#viewLegSnippet, .viewLegSnippet, .LegislationSection, .legislation-section, [class*='LegislationSection' i], #viewLegContents, .viewLegContents")||e;if(!r)return null;var n=t(document.body&&document.body.textContent||""),o=t(r.textContent||""),i=Fn({root:r,text:o}),a=document.querySelector("#changesOverTime, #legNav, #breadCrumb, .legContent, [id*='legislation' i], [class*='legislation' i]"),l=/\b(what version|changes to legislation|timeline of changes|plain view|print options|opening options)\b/i.test(n);if(o.length<250)return null;if(!e&&!a&&!l)return null;if(i.numberedClauses<2&&!/\b(section|article|regulation|schedule)\s+\d+\b/i.test(o))return null;var s=ze(r),c=document.querySelector("#pageTitle, h1")||null,u=s.querySelector("h1, h2, h3")||null,d=t(s.textContent||"");return{title:t(c&&c.textContent||document.title),byline:null,excerpt:d.slice(0,280)||null,siteName:location.hostname,publishedTime:null,html:(u?"":c?c.outerHTML:"")+s.innerHTML,textContent:d,readerMode:!1,contentType:"article",legalProvision:!0}}function Dn(e){if(!e||ke(e))return-1/0;if(!Zn(e)&&Wn(e))return-1/0;if(e.matches("[id*='onetrust' i], [class*='onetrust' i], [id^='ot-' i], [class*='ot-' i], [class*='privacy-center' i], [id*='privacy-center' i], [data-nosnippet='true']"))return-1/0;var r=e.querySelector("#ot-pc-title, #ot-pc-desc, [id^='ot-pc-' i], [class*='ot-pc' i], [class*='ot-accordion' i], [id*='onetrust' i], [class*='onetrust' i], [id^='ot-' i], [class*='ot-' i], [id*='privacy' i], [class*='privacy' i], [id*='cookie' i], [class*='cookie' i], [class*='privacy-center' i], [id*='privacy-center' i], [data-nosnippet='true']"),o=t(r&&r.textContent||e.textContent||"").slice(0,500);if(r&&(X(o)||te(o)))return-1/0;var i=t(e.textContent||""),a=/[\u0370-\u03FF\u0400-\u04FF\u0590-\u05FF\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\u0900-\u097F\u0980-\u09FF\u0E00-\u0E7F\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FFF]/.test(i),l=i.length;if("undefined"!=typeof window&&window.getComputedStyle)try{var s=window.getComputedStyle(e);if(s&&("none"===s.display||"hidden"===s.visibility))return-1/0}catch(e){}var c=e.querySelectorAll("p").length,u=e.querySelectorAll("h1, h2, h3").length,d=e.querySelectorAll("p, li, blockquote, figure, table").length;if(l<(a&&(c>=2||u>=1||d>=3)?180:280))return-1/0;var m=Array.prototype.reduce.call(e.querySelectorAll("a"),function(e,t){return e+n(t)},0),p=l>0?m/l:0,h=e.querySelectorAll("nav, aside, footer, [role='navigation'], [role='complementary'], [class*='comment' i], [id*='comment' i], [class*='related' i], [id*='related' i], [class*='recommend' i], [id*='recommend' i], [class*='newsletter' i], [id*='newsletter' i], [class*='subscribe' i], [id*='subscribe' i], [class*='share' i], [id*='share' i]").length,f=((e.className||"")+" "+(e.id||"")).toLowerCase(),g=0,y=l>=500&&(c>=2||u>=4||d>=4),b=/(weather|forecast|ve[ðd]ur|vedur|meteo)/i.test((location.pathname||"")+" "+document.title),v=l/Math.max(m,1),w=Math.min(300,Math.round(v/4)),x=h>d?Math.min(900,90*(h-d)):0,S=Math.round(p*(d>=4?240:400));return/(article|content|entry|main|post|story|body|definition|meaning|sense|glossary|lexicon|pronunciation|answer|articulo|artículo|noticia|conteudo|conteúdo|contenido|corpo|texto|berita|haber|nyheter|nieuws|aktualnosci|aktualności)/.test(f)&&(g+=180),a&&(c>=2||u>=1)&&(g+=140),/(comment|footer|nav|share|promo|related|sidebar|browse|translation|numerology|citation|quiz|cookie|privacy|subscription)/.test(f)&&(g-=220),!y&&Jn(e,i,p)&&(g-=4200),!y&&function(e,t){return!!/\b(recent posts?|popular posts?|latest posts?|related posts?|get started for free|start (?:your )?free trial|try .* for free)\b/i.test(t)&&((!e.matches||!e.matches("article, [itemprop='articleBody']"))&&Array.prototype.some.call(e.querySelectorAll("article, [itemprop='articleBody'], [class*='article' i], [class*='content' i], [class*='post' i]"),function(t){return!(t===e||t.querySelectorAll("a[href]").length>=4)&&(n(t)>=1200&&t.querySelectorAll("p").length>=5)}))}(e,i)&&(g-=9e3),!b&&l<1800&&Kn(i)||l<1800&&Y(i)&&(c<4||u<3)||l<2200&&/(discover more|newspapers|tourist destinations|travel guides?|travelogues)/i.test(i)&&(c<5||u<4)?-1/0:l+70*c+30*u+g+w-S-x}function Un(){if(Wn(document.body)&&!Zn(document.body))return{title:document.title,byline:null,excerpt:null,siteName:location.hostname,publishedTime:null,html:"",textContent:"",markdown:"",readerMode:!1,contentType:"list",items:[]};var e=In();if(e)return e;var r=[];["main[role='main']","article[role='main']","[itemprop='articleBody']",".article__body",".post-content",".entry-content","[class*='article-content']","[class*='amp-article-content' i]","[class*='amp-article-body' i]","[class*='mobile-article' i]","[class*='mobile-content' i]","[class*='rtl-article' i]","[class*='article-content' i]","[class*='article-body' i]","[class*='article-main' i]","[class*='article__body' i]","[class*='article__content' i]","[class*='articletext' i]","[class*='article-text' i]","[class*='article_text' i]","[class*='content-body' i]","[class*='content__body' i]","[class*='main-article' i]","[class*='post-content' i]","[class*='post-description' i]","[class*='entry-content' i]","[class*='story-content' i]","[class*='news-content' i]","[class*='amp-wp-article-content' i]","[class*='article-body-mobile' i]","[class*='mobile-article-body' i]","[class*='contenido-noticia' i]","[class*='conteudo-noticia' i]","[class*='corpo-noticia' i]","[class*='texto-noticia' i]","[class*='isi-berita' i]","[class*='berita-content' i]","[class*='haber-metni' i]","[class*='wysiwyg' i]","[class*='rich-text' i]","[data-testid*='article-body' i]","[data-testid*='article-content' i]","[data-component*='article-body' i]","[data-component*='article-content' i]","[data-module*='article-body' i]","[data-module*='article-content' i]","[data-qa*='article-body' i]","[data-qa*='article-content' i]","main","article",".article-content",".t-content",".t-content--article",".main-content",".post-content",".entry-content",".story-body",".news-content",".article-body","[data-article-body]",".content-body",".article__body",".article",".post",".entry",".content",".main","section","div"].forEach(function(e){document.querySelectorAll(e).forEach(function(e){r.push(e)})});var n,o,i=r.reduce(function(e,t){var r=ze(t);On(r);var n=Dn(r);return!e||n>e.score?{node:t,score:n}:e},null),a=ze(i&&i.score>-1/0?i.node:document.body),l=Zn(a)?(n=document,o=[],n.querySelectorAll("#comments, .comments, .comments-area, .comment-list, .comments-section, #disqus_thread, [class*='comment' i]").forEach(function(e){!e.querySelector("p, li, [class*='body' i]")||t(e.textContent||"").length<40||o.some(function(t){return t.contains(e)})||o.push(e)}),o.map(function(e){return e.outerHTML}).join("")):"";Gn(a),On(a),Gn(a),function(e){e.querySelectorAll(".comment-thread, [class*='comment-thread' i], .widget, [class*='widget' i], .views-element-container, [class~='comment'], .date-header").forEach(function(e){var r=t(e.textContent||"");(!r||r.length<100||!e.querySelector("p, article, section, ul, ol, table"))&&e.remove()})}(a),l&&a.insertAdjacentHTML("beforeend",l);var s=t(a.textContent);return{title:document.title,byline:null,excerpt:s.slice(0,280)||null,siteName:location.hostname,publishedTime:null,html:a.innerHTML,textContent:s,readerMode:!1,contentType:"article"}}function Zn(e){var r=e&&e.querySelector&&e.querySelector("h1, h2, [itemprop='headline']"),n=t(r&&r.textContent||""),o=e&&e.querySelectorAll?Array.prototype.filter.call(e.querySelectorAll("p, [itemprop='articleBody']"),function(e){return!e.closest("#comments, .comments, .comment-list, [class*='comment' i], [id*='comment' i]")}).map(function(e){return t(e.textContent)}).join(" "):"";return!!n&&o.length>=40}function Wn(e){if(!e||!e.querySelector)return!1;var r=e.querySelectorAll("#comments, .comments, .comments-area, .comment-list, .comments-section, #disqus_thread, [class*='comment' i]");if(!r.length)return!1;var n=t(e.textContent||"").length,o=Array.prototype.reduce.call(r,function(e,r){return Math.max(e,t(r.textContent||"").length)},0);return o>0&&o>=.7*n}function Gn(e){e.querySelectorAll("p span, li span, blockquote span, p font, li font, blockquote font").forEach(function(e){e.querySelector("p, li, blockquote, div, ul, ol, table, pre")||e.replaceWith.apply(e,Array.prototype.slice.call(e.childNodes))})}function Kn(e){var r=t(e||"");return!!r&&(!!/(ve[ðd]ursp[áa]|weather forecast|forecast for the next|forecast for)/i.test(r)&&(r.match(/\b(ve[ðd]ursp[áa]|hiti|[úu]rkoma|vindur|frost|rigning|sk[ýy]ja[ðd]|temperature|precipitation|wind|rain|snow|storm)\b/gi)||[]).length>=4)}function Vn(e,r){if(!e)return r;if(!r||!e.readerMode)return e;var o=!!document.querySelector("#mw-content-text .mw-parser-output, #bodyContent .mw-parser-output"),i=t(e.markdown||e.textContent||"");if(o&&i.length>=800)return e;var a=t(r.markdown||r.textContent||""),l=document.createElement("div"),s=document.createElement("div");l.innerHTML=e.html||"",s.innerHTML=r.html||"";var c=l.querySelectorAll("p, li").length,u=s.querySelectorAll("p, li").length,d=Array.prototype.reduce.call(s.querySelectorAll("a[href]"),function(e,t){return e+n(t)},0),m=a.length>0?d/a.length:0,p=/\b(oglas|advertisement|sponsored|ad)\b/i.test(i.slice(0,160)),h=Y(i),f=Kn(i),g=/(weather|forecast|ve[ðd]ur|vedur|meteo)/i.test((location.pathname||"")+" "+document.title);return a?r.legalProvision||i.length<4e3&&a.length>=Math.max(1800,3*i.length)&&u>=Math.max(8,c+5)&&m<.28?r:Yr(e)?e:f&&!g&&a.length>=Math.max(900,2*i.length)||function(e){if(!e||"article"!==e.contentType)return!1;var r=document.createElement("div");r.innerHTML=e.html||"";var n=t(r.textContent||e.textContent||e.markdown||""),o=Array.prototype.reduce.call(r.querySelectorAll("a[href]"),function(e,r){return e+t(r.textContent||r.getAttribute("aria-label")||"").length},0),i=n.length>0?o/n.length:0;return Jn(r,n,i)}(e)&&Yr(r)&&a.length>=1200&&m<.25||h&&a.length>=Math.max(1e3,2*i.length)||Yr(r)&&(i.length<240||p)&&a.length>=Math.max(600,3*i.length)?r:e:e}function Jn(e,t,r){var n=((e.className||"")+" "+(e.id||"")).toLowerCase();return!(!/(sidebar|rail|aside|promo|cta|recent|popular|related)/.test(n)&&!/\b(recent posts?|popular posts?|latest posts?|related posts?|get started for free|start (?:your )?free trial|try .* for free)\b/i.test(t))&&(!(e.querySelectorAll("p").length>=8&&r<.18&&!/(sidebar|rail|aside)/.test(n))&&(r>=.18||e.querySelectorAll("a[href]").length>=4))}function Xn(){if("function"!=typeof Readability)return null;try{var e=(o=document,i=[],o.querySelectorAll("#comments, .comments, .comments-area, .comment-list, .comments-section, #disqus_thread, [class*='comment' i]").forEach(function(e){!e.querySelector("p, li, [class*='body' i]")||t(e.textContent||"").length<40||i.some(function(t){return t.contains(e)})||i.push(e)}),i.map(function(e){return e.outerHTML}).join("")),r=function(){try{return document.cloneNode(!0)}catch(e){}var e=document.implementation.createHTMLDocument(document.title||"");for(document.documentElement&&document.documentElement.getAttribute("lang")&&e.documentElement.setAttribute("lang",document.documentElement.getAttribute("lang"));e.head.firstChild;)e.head.removeChild(e.head.firstChild);if(Array.prototype.forEach.call(document.head&&document.head.childNodes||[],function(t){var r=$e(t,e);r&&e.head.appendChild(r)}),document.body){var t=$e(document.body,e)||e.createElement("body");e.documentElement.replaceChild(t,e.body)}return e}();if(Wn(r))return null;!function(e){e.querySelectorAll("p span, li span, blockquote span, p font, li font, blockquote font").forEach(function(e){e.querySelector("p, li, blockquote, div, ul, ol, table, pre")||e.replaceWith.apply(e,Array.prototype.slice.call(e.childNodes))})}(r),Ae(r),!!document.querySelector("#mw-content-text .mw-parser-output, #bodyContent .mw-parser-output, .mw-parser-output")||Re(r),On(r);var n=new Readability(r).parse();return n&&n.content?t(n.textContent||"").length<40?null:(n.content+=e,{title:n.title||document.title,byline:n.byline||null,excerpt:n.excerpt||null,siteName:n.siteName||location.hostname,publishedTime:n.publishedTime||null,html:n.content,textContent:n.textContent||"",readerMode:!0,contentType:"article"}):null}catch(e){return null}var o,i}function Wn(e){var r=e.querySelectorAll("#comments, .comments, .comments-area, .comment-list, .comments-section, #disqus_thread, [class*='comment' i]");if(!r.length)return!1;var n=t(e.textContent||"").length,o=Array.prototype.reduce.call(r,function(e,r){return Math.max(e,t(r.textContent||"").length)},0);return o>0&&o>=.7*n}function Yn(e){return t(e||"").replace(/\s*see (?:the )?full definition\b.*$/i,"").replace(/\s*opens in new tab\.?$/i,"").replace(/\s*[|:-]\s*(?:merriam-webster|definitions?\.net|dictionary(?:\.com)?|diki)\b.*$/i,"").trim()}function Qn(e){return t(e||"").toLowerCase().replace(/^[\s#>*-]*(?:\d+[.)]|[a-z][.)]|[ivx]+[.)])\s*/i,"").replace(/^definition\s*[:.-]\s*/i,"").replace(/^[^:]{1,40}:\s+/,"").replace(/\b(?:source|references?|citation|cite this entry)\b.*$/i,"").replace(/[^a-z0-9]+/g," ").trim().slice(0,240)}function eo(e,r){var n=Yn(r&&r.excerpt||"").toLowerCase(),o=t(e||"").toLowerCase();return!o||(!!function(e){var r=(t(e||"").match(/browse nearby words|cite this entry|more from merriam-webster|popular in grammar|popular in wordplay|top lookups|numerology|citation/gi)||[]).length;return r>=2}(o)||!(!n||n.length<18)&&(-1===o.indexOf(n)&&o.length<Math.max(260,3*n.length)))}function to(e){if(!e||1!==e.nodeType)return!1;var r=t((e.querySelector("h2, h3, h4, strong")||{}).textContent||""),n=t(e.textContent||""),o=t([e.id||"",e.className||""].join(" ")).toLowerCase();return!!Q(n)||(!!te(r)||(!!/^(love words\? need even more definitions|top lookups|add to chrome|add to firefox)$/i.test(n)||(!!/^discuss these .+ definitions with the community/i.test(n)||(!!/subscribe for ad-free|word of the day|browse definitions\.net|popular in grammar|popular in wordplay/i.test(n)||!!(/(cookie|privacy|consent)/.test(o)&&n.length<2400)))))}function ro(e){var r=t(e&&e.title||document.title).toLowerCase(),n=t(e&&e.excerpt||"").toLowerCase(),o=(location.pathname||"").toLowerCase(),i=J().slice(0,2e3).toLowerCase(),a=!!_("q"),l=function(e){var r=t([e&&e.title,e&&e.excerpt,e&&e.siteName,$("og:type","property")].join(" ")).toLowerCase(),n=0;return/\b(dictionary|glossary|lexicon|thesaurus|encyclopedia|database)\b/.test(r)&&(n+=3),/\b(definition|definitions|meaning|pronunciation|part of speech|citation|reference)\b/.test(r)&&(n+=2),/\b(website|article)\b/.test(r)&&/\b(dictionary|glossary|definition|definitions|database)\b/.test(r)&&(n+=1),b().some(function(e){var t=v(e).join(" ").toLowerCase();return!(!/definedterm|dictionary|glossary|creativework|article/.test(t)||!/\b(definition|term|description|citation)\b/.test(r+" "+t)||(n+=2,0))}),n}(e);return/definition of |what does .+ mean\??| pronunciation in english|dictionary|definitions for /.test(r)||/\/(dictionary|definition|definitions|pronunciation)\//.test(o)||/\bpart of speech\b|\bdefinition:\b|\bpronunciation\b/.test(i)||a&&/\b(dictionary|translation|translate|thesaurus|lexicon|s[łl]ownik|t[łl]umaczenie)\b/.test(r+" "+n)||l>=4&&/\b(definition|definitions|meaning|pronunciation|part of speech|citation|reference)\b/.test(i)}function no(e){var r=Yn(e&&e.excerpt||"");return!r||r.length<16?null:T({title:u(["main h1","article h1","h1"])||t(e&&e.title||document.title)||e&&e.title||document.title,description:r,siteName:e&&e.siteName||location.hostname})}function oo(e){if(!ro(e))return null;var o=function(e){var n=u(["main h1","article h1","h1"])||t(e&&e.title||document.title),o=u([".headword","strong.headword",".hword","main h1","article h1","h1"])||r((location.pathname||"").split("/").filter(Boolean).pop()||""),i=[];function a(e){return(e=t(e||""))||null}function l(e,t){if(!(!(t=a(t))||t.length<12||te(t)||/dictionary definitions page includes all the possible meanings|how to pronounce|how to say|translation|numerology|citation|top lookups|examples? of .* in a sentence/i.test(t))){var r=Qn(t);!r||r.length<10?-1===e.indexOf(t)&&e.push(t):-1===e.map(Qn).indexOf(r)&&e.push(t)}}function s(e){var r=ze(e);return r.querySelectorAll(".wikt-quote-container, .HQToggle, .nyms-toggle, .citation-whole, .use-with-mention, ul, dl, table, figure").forEach(function(e){e.remove()}),Re(r),t(r.textContent||"").replace(/^[:;]\s*/,"")}document.querySelectorAll("p.desc").forEach(function(e){var r=a(e.textContent||"");if(!(!r||r.length<12||te(r))){var n=e.parentElement&&e.parentElement.querySelector("p.term"),o=t(n&&n.textContent);o&&-1===r.toLowerCase().indexOf(o.toLowerCase())&&(r=o+": "+r),-1===i.map(Qn).indexOf(Qn(r))&&i.push(r)}});var c=f([".fl","[data-fl]",".partOfSpeech","[class*='part-of-speech']"]).filter(function(e){return e&&e.length<=40&&!te(e)}),d=f([".prs .pr",".ipa","[class*='ipa']",".pron","[class*='pron-us']","[class*='pron-uk']"]).filter(function(e){return e&&e.length<=120&&!Q(e)&&!te(e)&&!/how to pronounce|how to say|listen to the pronunciation/i.test(e)}),m=function(){var e=[];return Array.prototype.slice.call(document.querySelectorAll(".headword-line, p:has(.headword), p:has(strong.headword)")).some(function(t){for(var r=t.parentElement;r&&r.nextElementSibling&&(r=r.nextElementSibling,!/^(h2|h3|h4)$/i.test(r.tagName||""));)if("ol"===(r.tagName||"").toLowerCase())return Array.prototype.slice.call(r.children).forEach(function(t){"li"===(t.tagName||"").toLowerCase()&&l(e,s(t))}),e.length>=2;return!1}),e}().concat(function(){var e=[];return document.querySelectorAll("#dictionary-entry-1 .dtText, .entry-word-section-container .dtText, .sense .dtText").forEach(function(r){l(e,t(r.textContent||"").replace(/^[:;]\s*/,""))}),e}()).concat(i).concat(f(["p.desc",".dtText",".sense .dtText",".sense",".def",".definition","[class*='definition']","li[class*='meaning'] > span","li[class*='definition'] > span","li[class*='sense'] > span","[class*='meaning']","dd","[itemprop='description']"]).map(a)).filter(function(e){return e&&e.length>=12&&!te(e)&&!/dictionary definitions page includes all the possible meanings|how to pronounce|how to say|translation|numerology|citation|top lookups/i.test(e)}).filter(function(e,t,r){var n=Qn(e);return!n||n.length<10?r.indexOf(e)===t:r.map(Qn).indexOf(n)===t});if(!m.length&&!d.length)return null;var p=["# "+(n=o||n)];o&&-1===n.toLowerCase().indexOf(o.toLowerCase())&&p.push("## "+o),c.length&&p.push(c.join(" | ")),d.length&&p.push(d.join("\n")),m.forEach(function(e){p.push(e)});var h=Ut(p.filter(Boolean).join("\n\n")),g=function(e){var r=t(e||"").toLowerCase(),n=document.createElement("div"),o=[];document.querySelectorAll("[id*='dictionary-entry'], [class*='example'], [class*='etymolog'], [class*='first-known'], [class*='word-history']").forEach(function(e){t(e.textContent||"").length<30||o.some(function(t){return t.contains(e)})||(o=o.filter(function(t){return!e.contains(t)})).push(e)}),o.forEach(function(e){n.appendChild(e.cloneNode(!0))});var i=[];return[n.childNodes.length?n:null,document.querySelector("main"),document.querySelector("#mw-content-text .mw-parser-output"),document.querySelector("#dictionary-entry-1"),document.querySelector("article"),document.querySelector("[role='main']"),document.body].forEach(function(e){e&&-1===i.indexOf(e)&&i.push(e)}),i.reduce(function(e,n){var o=ze(n);o.querySelectorAll("script, style, noscript, svg, form, header, nav, footer, aside, .mw-editsection, .mw-jump-link, .toc, #toc, .catlinks, #catlinks, .printfooter, .noprint, .mw-indicators, .mw-hidden-catlinks, .mw-empty-elt, .mw-headline-anchor").forEach(function(e){e.remove()}),o.querySelectorAll("section, div, aside, form, table, ul, ol, p, li, span").forEach(function(e){to(e)&&e.remove()}),Re(o);var i=Ut(tr(o.innerHTML)),a=t(i).toLowerCase();return!a||a.length<80||a===r||r.indexOf(a)>=0?e:/(^|\n)#{1,6}\s*(?:examples?|etymolog(?:y|ies)|word history|first known use|translations?|quotations?|usage notes?|synonyms?|antonyms?|derived terms|related terms|pronunciation)\b/i.test(i)&&(!e||a.length>t(e).length)?i:e},"")}(h),y=Ut([h,g].filter(Boolean).join("\n\n")),b=t(y);if(b.length<40)return null;var v=document.createElement("article"),w=document.createElement("h1"),x=document.createElement("ol");return w.textContent=n,v.appendChild(w),m.forEach(function(e){var t=document.createElement("li");t.textContent=e,x.appendChild(t)}),v.appendChild(x),{title:n||e&&e.title||document.title,byline:null,excerpt:m[0]||b.slice(0,280)||null,siteName:e&&e.siteName||location.hostname,publishedTime:null,html:v.outerHTML,markdown:y,textContent:b,readerMode:!1,contentType:"article",hostAware:!0}}(e);if(o)return o;var i=no(e),a=function(){var e=[];function r(t){t&&-1===e.indexOf(t)&&e.push(t)}return["article","main","[role='main']",".entry",".entry-body",".entry-body__el",".di-body",".pr.dictionary",".dictionary","#dictionary-entry-1",".definition",".definitions",".sense",".dtText","section","div","td","table"].forEach(function(e){document.querySelectorAll(e).forEach(r)}),document.querySelectorAll("h1, .dtText, .sense, dd, dt, [class*='definition'], [class*='pron'], [itemprop='description']").forEach(function(e){r(e),r(e.closest("article, main, [role='main'], section, div, td, table"))}),document.querySelectorAll("section, div, td, table").forEach(function(e){var n=t(e.textContent||"");n.length<40||n.length>3200||/\bpart of speech\b|\bdefinition:\b|\bpronunciation\b/.test(n.toLowerCase())&&r(e)}),e}().reduce(function(e,r){var o=function(e){if(!e)return-1/0;var r=n(e);if(r<60||r>14e3)return-1/0;var o=t(e.textContent||""),i=((e.className||"")+" "+(e.id||"")).toLowerCase(),a=e.querySelectorAll("h1, h2, h3").length,l=e.querySelectorAll("dd, dt, dl, [class*='definition'], [class*='sense'], [class*='pron'], [class*='entry'], [class*='meaning']").length,s=e.querySelectorAll("dd, dt, p.desc, dl, .dtText, .sense, .def, .definition, [class*='definition'], [class*='meaning'], [itemprop='description']").length,c=Array.prototype.slice.call(e.querySelectorAll("p.desc, dd, .dtText, .definition, [itemprop='description']")).filter(function(e){var r=t(e.textContent||"");return r.length>=40&&r.length<=520&&!to(e)}).length,u=Array.prototype.slice.call(e.querySelectorAll("p, li, dd, div")).filter(function(e){return/^\s*(?:\d+[.)]|[a-z][.)]|[ivx]+[.)])\s+\S/.test(e.textContent||"")}).length,d=e.querySelectorAll("p, li").length,m=e.querySelectorAll("a[href]").length*(s||c?10:16),p=0;return/(definition|dictionary|entry|meaning|sense|glossary|lexicon|pronunciation|ipa)/.test(i)&&(p+=260),/(source|reference|citation|database)/.test(i)&&(s||c)&&(p+=90),/\bpart of speech\b|\bdefinition:\b|\bpronunciation\b/.test(o.toLowerCase())&&(p+=220),s>=2&&(p+=180),c>=2&&(p+=260),u>=2&&(p+=120),e.matches&&e.matches("dl, [class*='definition'], [class*='sense'], [class*='entry'], [itemprop='description']")&&(p+=160),e.querySelector("h1")&&(p+=120),to(e)&&(p-=320),/\b(top lookups|word of the day|translation|numerology|citation|browse nearby words)\b/i.test(o)&&(p-=180),/\b(browse nearby words|more from merriam-webster|popular in grammar|popular in wordplay|translation|numerology|citation|quiz)\b/i.test(o)&&(p-=260),r>3500&&(p-=220),r>7e3&&(p-=400),r+80*l+95*s+160*c+18*d+35*a+p-m}(r);return!e||o>e.score?{node:r,score:o}:e},null);if(!a||a.score<260)return i;var l=ze(a.node);l.querySelectorAll("section, div, aside, form, table, ul, ol, p, li, span").forEach(function(e){to(e)&&e.remove()}),function(e){var r={};e.querySelectorAll("p.desc, dd, .dtText, .sense, .def, .definition, [class*='definition'], [class*='meaning'], [itemprop='description']").forEach(function(e){var n=Qn(t(e.textContent||""));!n||n.length<16||(r[n]?e.remove():r[n]=!0)})}(l),Re(l);var s=Ut(tr(l.innerHTML)),c=t(s);if(c.length<40)return i;var d=u(["h1"])||t(e&&e.title||document.title);return d&&!Et(s,d)&&(s="# "+d+"\n\n"+s),eo(c=t(s=Ut(s)),e)&&i?i:{title:d||e&&e.title||document.title,byline:null,excerpt:c.slice(0,280)||null,siteName:e&&e.siteName||location.hostname,publishedTime:null,html:l.innerHTML,markdown:s,textContent:c,readerMode:!1,contentType:"article"}}function io(e,t){return!e||!Ar(e)||t&&t.strongList?(e&&(e.contentType="list"),e):e}function ao(e,r){if((r=t(r||"")).length<5e3)return!1;if(/\bresults?\s+\d+\s*[-–]\s*\d+\s+(?:of|sur|von|de)\s+\d+\b/i.test(r))return!1;if(e&&e.querySelector("[class*='result' i], [id*='result' i]"))return!1;var n=0;if(/\b(?:high court|supreme court|court of appeal|federal court|district court|court of justice|tribunal)\b/i.test(r)&&(n+=1),/\b(?:judg(?:e)?ment|opinion of the court|reasons for judgment|delivered by|per curiam)\b/i.test(r)&&(n+=1),/\b(?:appellant|respondent|plaintiff|defendant|petitioner|counsel|solicitor|amicus|certiorari)\b/i.test(r)&&(n+=1),/\b[A-Z][A-Za-z'.-]+\s+v\.?\s+[A-Z][A-Za-z'.-]+\b/.test(r)&&(n+=1),/\[[12][0-9]{3}\]\s+[A-Z][A-Z0-9.]{1,12}\s+\d+|\([12][0-9]{3}\)\s+\d+\s+[A-Z][A-Z0-9.]{1,12}\s+\d+/i.test(r)&&(n+=1),n<3)return!1;var o=e?Array.prototype.filter.call(e.querySelectorAll("p, div, section, article, pre, blockquote"),function(e){return t(e.textContent||"").length>=180}).length:0,i=(r.match(/[.;:]\s+[A-Z][a-z]{2,}/g)||[]).length;return o>=5||i>=35||r.length>=2e4}function lo(e,r){if((r=t(r||"")).length<5e3)return!1;if(/\bresults?\s+\d+\s*[-–]\s*\d+\s+(?:of|sur|von|de)\s+\d+\b/i.test(r))return!1;if(e&&e.querySelector("[class*='result' i], [id*='result' i]"))return!1;var n=Fn({root:e,text:r,title:document.title||"",path:location.pathname||""});if(!n.legalTitle||n.provisionMarkers<8)return!1;var o=e?Array.prototype.filter.call(e.querySelectorAll("p, div, section, article, td, pre, blockquote"),function(e){return t(e.textContent||"").length>=180}).length:0;return n.structuralMarkers>=3||n.legalTerms||o>=8||r.length>=2e4}function so(e,n){if(e=e||document.body,n=t(n||e&&e.textContent||""),!e||n.length<200)return!1;var o=r(location.pathname||"").toLowerCase(),i=t([document.title||"",(document.querySelector("h1")||{}).textContent||""].join(" ")),a=t([o,i,n.slice(0,1200)].join(" ")).toLowerCase(),l=/\/(?:contents?|table-of-contents|toc)(?:\/)?$/i.test(o),s=e.querySelector(".LegContents, .LegContentsEntry, [class*='contents' i], [id*='contents' i], [aria-label*='contents' i]"),c=Array.prototype.filter.call(e.querySelectorAll("a[href]"),function(e){var r=e.getAttribute("href")||"",n=t(e.textContent||"");return/\/(?:section|article|schedule|part|chapter)\/[^\s#?]+/i.test(r)||/\b(?:section|article|schedule|part|chapter)\s+(?:\d+[a-z]?|[ivxlcdm]+)\b/i.test(n)}).length,u=Array.prototype.filter.call(e.querySelectorAll("p"),function(e){return t(e.textContent||"").length>=160}).length;return!!(l||s||/\b(?:table of contents|contents|collapse all)\b/i.test(a))&&(!!/\b(?:act|code|law|regulation|ordinance|statute|legislation|convention|treaty|schedule)\b/i.test(a)&&(c>=6&&u<4))}function co(e,r){e=e||{};var n=t((r=r||{}).title||e.title||""),o=t(r.excerpt||e.excerpt||""),i=t(r.publishedTime||e.publishedTime||""),a=t(r.byline||e.byline||""),l=t(r.textContent||r.markdown||"");return!(n.length<wr(n)||l.length<220)&&(!!(i&&o.length>=40)||(!(!i||!a)||!!(i&&l.length>=320)))}function uo(e,t,r){if(!r)return!1;var n=r.canonicalKey||re(r.url),o=r.dedupeKey||n,i=r.text+"|"+o;return!t[i]&&!t["url:"+o]&&(t[i]=!0,t["url:"+o]=!0,r.canonicalKey=n,e.push(r),!0)}function mo(e,r){r=r||{},e=e||document;var n=[],o=r.cardSelectors||[],i=[],a={},l=[],s=r.minTitleLength||0,c=r.maxTitleLength||1/0,u=!1!==r.dedupe;function d(e){e&&-1===i.indexOf(e)&&(i.push(e),n.push(e))}return"string"==typeof o&&(o=[o]),o.forEach(function(t){Array.prototype.forEach.call(e.querySelectorAll(t),d)}),!o.length&&e.querySelectorAll&&d(e),n.forEach(function(e){var n,o=r.linkBuilder?r.linkBuilder(e):r.linkSelector?e.querySelector(r.linkSelector):null,i=r.candidateBuilder?r.candidateBuilder(e,o):null;if(i){i.text=t(i.text||""),i.url=i.url||"";var d="function"==typeof s?s(i.text):s;!i.text||i.text.length<d||i.text.length>c||(r.allowMissingUrl||i.url)&&(r.rejectCandidate&&r.rejectCandidate(i,e,o)||(void 0===i.detail&&r.detailBuilder&&(i.detail=r.detailBuilder(e,i,o)),n=function(e,t,n){var o;return r.keyBuilder&&(o=r.keyBuilder(e,t,n)),null==o&&(o=[e.text+"|"+(e.url||"")]),Array.isArray(o)||(o=[o]),o.filter(Boolean)}(i,e,o),u&&n.some(function(e){return a[e]})||(u&&n.forEach(function(e){a[e]=!0}),l.push(i))))}}),l}function po(e,t){var r="tr, article, li, [class*='card'], [class*='story'], [class*='teaser'], [class*='item'], [class*='result'], [class*='news'], [class*='headline']",n=e.matches&&e.matches(r);return Array.prototype.filter.call(e.querySelectorAll(t),function(t){for(var o=t.parentElement;o&&o!==e&&(!o.matches||!o.matches(r));)o=o.parentElement;return!n||o===e})}function ho(e,r){var n=po(e,r)[0];return n?t(n.textContent):""}function fo(e){return Array.prototype.filter.call(e.children||[],function(e){return e.matches&&e.matches("th, td")})}function go(e){var r=t(e.innerText||e.textContent||"");if(r)return r;var n=[];return[e].concat(Array.prototype.slice.call(e.querySelectorAll("[aria-label], [title], img[alt]"))).forEach(function(e){var r=t(e.getAttribute("aria-label")||e.getAttribute("title")||e.getAttribute("alt")||"");r&&-1===n.indexOf(r)&&n.push(r)}),n.join(" ")}function yo(e,r){var n=fo(e),o=e.closest&&e.closest("table"),i=o?Ur(o):[],a=n.findIndex(function(e){return-1!==go(e).indexOf(r)}),l=0;return n.map(function(e,n){var o=i[l]||"";l+=Dr(e,"colSpan","colspan");var s=go(e),c=s.indexOf(r);return-1!==c&&(s=t(s.slice(0,c)+" "+s.slice(c+r.length))),s?n!==a&&o&&o.toLowerCase()!==s.toLowerCase()?o+": "+s:s:""}).filter(Boolean).join(" | ")}function bo(e,r){e.summary=ho(r,"[class*='summary'], [class*='description'], [class*='excerpt'], p"),e.category=ho(r,"[class*='category'], [class*='eyebrow'], [class*='kicker']");var n=po(r,"time")[0];n&&(e.time=t(n.getAttribute("datetime")||n.textContent)),e.image=function(e){var r=po(e,"img[alt]:not([alt='']), figcaption")[0];if(!r)return"";var n=t(r.getAttribute?r.getAttribute("alt"):r.textContent);return n.length<=2||/^(image|photo|thumbnail|logo|icon|avatar)$/i.test(n)?"":n}(r),e.caption=ho(r,"figcaption")}function vo(e){return Ne(e)}function wo(e,t){if(e&&t)if(1===e.nodeType&&vo(e))t.remove();else{var r=Array.prototype.slice.call(e.childNodes||[]),n=Array.prototype.slice.call(t.childNodes||[]);r.forEach(function(e,t){wo(e,n[t])})}}function xo(e){if(!e||vo(e))return document.createElement("div");var t=Pe(e,document);return wo(e,t),ze(t)}function So(e){var r=["tr.athing","tr[data-id][data-url*='/remote-jobs/']","article","li","section",".item",".story",".post",".entry",".news",".headline",".feed-item","[class*='card']","[class*='result']","[class*='teaser']","[class*='news']","[class*='headline']","[class*='feed']","[class*='thread']","[class*='topic-list']","[class*='job-card' i]","[data-testid='slider_container']","[data-test='jobListing']","[data-jobid]","[data-url*='/remote-jobs/']",".structItem",".discussionListItem"].join(", "),n=Array.prototype.slice.call(e.querySelectorAll(r)),o={},i=[],a=Er(),l=Gr();a.tableIndexPage=!!l;var s=[location.pathname,document.title,(document.querySelector("h1")||{}).textContent].join(" "),c=/\b(?:cases?|defendants?|records?|dockets?|matters?)\b/i.test(s);function u(e,t,r){var n=a.tableIndexPage&&r&&r.matches&&r.matches("tr");return e.length<(n?2:c?3:18)||/^(comments?|discuss|hide|more|abonneren|subscribe|newsletter|login|log in|sign in|register|create account|maak een account|instellingen|settings|account|last post|first unread|go to last post|mark read|mark forum read|watch forum|new thread|post new thread|post reply|quick reply|forum rules|forum actions|forum tools)$/i.test(e)||/^[\w.-]+\.[a-z]{2,}$/i.test(e)||/(?:^|[?&])(user|from|site|goto)=/i.test(t)||qr(e,t)||jr(e)}function d(e,t){var r=Nr(e,t,a);r&&!u(r.text,r.url,t)&&uo(i,o,r)}if(a.tableIndexPage&&e.matches&&e.matches("table")){var m=function(e){if(!e)return null;var t=Ur(e),r=t.length>=3?Wr(e,t):null;return r&&r.primaryColumn}(l);return Array.prototype.forEach.call(e.querySelectorAll("tr"),function(r){if(r.closest("table")===e&&!r.closest("thead, tfoot")){var n=Zr(0,fo(r),2,m);if(n){var a=t(n.link.textContent||n.link.getAttribute("aria-label")||""),l=yo(r,a),s={text:a,url:n.url,detail:l,rankScore:a.length+l.length,card:r,canonicalKey:n.url,dedupeKey:n.url+"|row:"+t(l).toLowerCase()};uo(i,o,s)}}}),i}(n.forEach(function(e){!e.matches("tr")&&e.querySelectorAll("tr a[href]").length>=2||d(function(e){var r=e.querySelector("h1 a[href], h2 a[href], h3 a[href], h4 a[href], a[href] h1, a[href] h2, a[href] h3, a[href] h4");if(r)return r.closest("a[href]")||r;var n=Array.prototype.slice.call(e.querySelectorAll("a[href]"));return(n=n.filter(function(e){var r=t(e.textContent||e.getAttribute("aria-label")||"");return r&&!qr(r,e.getAttribute("href")||"")&&!Hr(e)&&!Hr(e.parentElement)&&!Rr(e)})).sort(function(e,r){var n=t(e.textContent||e.getAttribute("aria-label")||"");return t(r.textContent||r.getAttribute("aria-label")||"").length-n.length}),n[0]||null}(e),e)}),i.length<5)&&Array.prototype.filter.call(e.querySelectorAll("a[href]"),function(e){var r=t(e.textContent),n=e.getAttribute("href");if(!n||"#"===n[0]||/^(javascript:|mailto:)/i.test(n))return!1;var o=a.tableIndexPage&&e.closest("tr");return!(r.length<(o?2:wr(r)))&&(!u(r,n,o)&&((o||r.length>=wr(r))&&r.length<=220))}).forEach(function(e){var t=e.closest("tr, li, article, section, div")||e.parentElement;d(e,t)});return i}function ko(e){if(!e||!e.querySelectorAll)return[];var t={},r=[],n=Er();n.tableIndexPage=!!Gr();var o=["h1 a[href]","h2 a[href]","h3 a[href]","h4 a[href]","article a[href]","section a[href]","[class*='headline'] a[href]","[class*='story'] a[href]","[class*='post'] a[href]","[class*='news'] a[href]","[class*='feed'] a[href]","[class*='teaser'] a[href]","[class*='result'] a[href]"].join(", ");return Array.prototype.forEach.call(e.querySelectorAll(o),function(e){var o=e.closest("tr, article, section, li, div")||e.parentElement;if(!(Fr(e)||Fr(e.parentElement)||function(e){return Mr(e,Fr)}(e))){var i=Nr(e,o,n);i&&uo(r,t,i)}}),r}function Ao(e){return(e||[]).reduce(function(e,t,r){var o=Math.max(0,t&&t.rankScore?t.rankScore:n(t&&t.text));return o=Math.min(o,1200),r>=8&&(o=Math.round(o/2)),e+o},0)}function Co(e){return Ae(e),Ce(e),qe(e),Te(e),Ee(e),e.querySelectorAll("header, footer, nav, menu, [role='navigation'], [role='menubar'], [role='menu'], [role='toolbar'], [role='banner'], [role='contentinfo']").forEach(function(e){e.remove()}),e.querySelectorAll("section, div, aside, form, ul, ol").forEach(function(e){Hr(e)&&e.remove()}),e.querySelectorAll('a[href^="#"]').forEach(function(e){var r=t(e.textContent);r&&!/^skip\s+(to\s+)?/i.test(r)||e.remove()}),e.querySelectorAll("a, button").forEach(function(e){var r=t(e.textContent).toLowerCase();/^(sign in|log in|login|register|subscribe|newsletter|follow us|follow|join now|create account|my account|account|menu|search)$/i.test(r)&&e.remove()}),e}function qo(e,r){var n=[],i=[];return function(e,t){var r=t&&t.cardSelector||["tr","article","li","[class*='card']","[class*='story']","[class*='teaser']","[class*='item']","[class*='result']","[class*='news']","[class*='headline']"].join(", "),n=Array.prototype.slice.call(e.querySelectorAll(r)),o=n.filter(function(e){return!n.some(function(t){return t!==e&&e.contains(t)})});return o.length||(o=[e]),o}(e,r).forEach(function(e){var i=function(e,r){if(r&&r.directCard){var n=e.matches&&e.matches("a[href]")?e:e.querySelector("a[href]"),i=t((e.querySelector("h1, h2, h3, h4")||n||{}).textContent||"");if(n&&i.length>=6){var a={text:i,url:o(n.getAttribute("href")),detail:"",rankScore:i.length};return a.canonicalKey=re(a.url),a.url=a.canonicalKey,a.card=e,bo(a,e),a}}var l=e.querySelectorAll("tr, article, li, [class*='card'], [class*='story'], [class*='teaser'], [class*='item'], [class*='result'], [class*='news'], [class*='headline']");if(Array.prototype.some.call(l,function(e){return e.querySelector("h1 a[href], h2 a[href], h3 a[href], h4 a[href]")}))return null;var s=po(e,"a[href]"),c=po(e,"h1 a[href], h2 a[href], h3 a[href], h4 a[href]")[0];if(e.matches&&e.matches("a[href]")&&(s=[e]),!c&&!po(e,"p, [class*='summary'], [class*='description'], [class*='excerpt'], time, img[alt]:not([alt=''])").length)return null;var u=c;u||(u=s.filter(function(e){return e.querySelector("h1, h2, h3, h4")})[0]),u||(u=s.reduce(function(t,r){var n=Nr(r,e,Er());return n&&(!t||n.rankScore>t.rankScore)?r:t},null)),!u&&r&&r.ancestorLink&&(u=e.closest("a[href]"));var d=Nr(u,e,Er());if(!d&&u){var m=u.getAttribute("href"),p=t(u.textContent||u.getAttribute("aria-label")||""),h=o(m);m&&h&&p.length>=6&&p.length<=220&&(d={text:p,url:h,detail:"",rankScore:p.length})}return d?(d.domIndex=Array.prototype.indexOf.call(document.querySelectorAll("a[href]"),u),d.canonicalKey=re(d.url),d.url=d.canonicalKey,d.card=zr(u,e),bo(d,d.card),d):null}(e,r);i&&i.url&&n.push(i)}),n.filter(function(e){return!n.some(function(t){return t!==e&&e.card.contains(t.card)})}).forEach(function(e){i.push(e)}),i}function To(e,r){var n=(r=r||{}).regionSelector||"section, [role='region'], main > div, main > article",o=[],i=[],a={},l=Array.prototype.slice.call(e.querySelectorAll(n));return r.additionalRegions&&(l=l.concat(r.additionalRegions(e))),l.sort(function(e,t){return e===t?0:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}),l.forEach(function(e){var n=function(e,r){if(r&&r.headingBuilder)return r.headingBuilder(e);var n=e.querySelector(r&&r.headingSelector||"h1, h2, h3, h4"),o=t(n&&n.textContent);return!o||o.length>90||oe(o,"")?"":o}(e,r);if(!n&&r.fallbackHeadingBuilder&&(n=r.fallbackHeadingBuilder(e)),n&&!i.some(function(t){return t.contains(e)})&&(r.skipEditorialGuard||function(e){for(var t=e.parentElement;t;){if(t.matches&&t.matches("aside, nav, header, footer, [role='navigation'], [role='complementary'], [role='banner'], [role='contentinfo']"))return!1;t=t.parentElement}return!$r(e)&&!$r(e.parentElement)}(e))&&(!r.regionFilter||r.regionFilter(e))){var l=qo(e,r).filter(function(e){if(r.cardFilter&&!r.cardFilter(e))return!1;var t=re(e.url).replace(/([?&])(?:utm_[^&=]+|fbclid|gclid|dclid|msclkid|mc_cid|mc_eid)=[^&]*&?/gi,"$1").replace(/[?&]$/,"");return!a[t]&&(a[t]=!0,!0)});(l.length||r.allowEmptyRegions)&&(i.push(e),o.push({label:n,cards:l}))}}),o}function _o(e,t){if(Ar())return null;var r=To(e,t);if(r.length<2)return null;var n=[],o=r.map(function(e){var t=e.cards;return t.forEach(function(e){n.push(e)}),"## "+e.label+"\n\n"+C(t)}).join("\n\n");return{regions:r,items:n,markdown:o,score:500*r.length+Ao(n)}}function Eo(e){var r=xo(e);Co(r);var n=_o(r);if(n)return{root:r,items:n.items,descText:"",markdown:n.markdown,score:n.score,sectionCount:n.regions.length,sectionRank:1e5*n.regions.length-r.querySelectorAll("a[href]").length};var o=So(r),i=Ao(o),a=function(e){var r=[];return e.querySelectorAll("h1, h2, h3, p").forEach(function(e){var n=t(e.textContent);if(!(n.length<30||n.length>2e3||jr(n)||X(n)||Y(n)||Lr(n))){var o=e.querySelectorAll("a[href]").length,i=n.split(/\s+/).length;if(o<=1||o/i<.3){var a=/^H[123]$/.test(e.tagName)?"## ":"";r.push(a+n)}}}),r.join("\n\n")}(r),l=ko(r),s=Ao(l);(o.length<3&&l.length>o.length||s>i+180)&&(o=l,i=s);var c=C(o),u=a?a+(c?"\n\n"+c:""):c;return t(u).length<120&&(l.length>o.length||s>i)&&(i=s,c=C(o=l),u=a?a+(c?"\n\n"+c:""):c),{root:r,items:o,descText:a,markdown:u,score:i+80*o.length+Math.min(a.length,4e3)}}function jo(e,r){r=r||{};var o=[];function i(e){e&&-1===o.indexOf(e)&&o.push(e)}i(Qr(e)),function(e){var t=Er(e),r=[];if(!t.sectionFragments.length&&!t.keywords.length)return r;function o(e){e&&e!==document.body&&e!==document.documentElement&&-1===r.indexOf(e)&&(Hr(e)||$r(e)||e.querySelectorAll("a[href]").length<3||n(e)<140||r.push(e))}return Array.prototype.forEach.call(document.querySelectorAll("a[href]"),function(e){var r=e.closest("article, section, div, li, ul, ol, main")||e.parentElement,n=Nr(e,r,t);if(n&&!(n.rankScore<260))for(var i=r,a=0;i&&a<4&&(o(i),!i.matches||!i.matches("main, [role='main']"));)i=i.parentElement,a+=1}),r}(e).forEach(i),i(document.querySelector("main, [role='main']")),i(document.body);var a=Gr(),l=a?Eo(a):o.reduce(function(e,t){var r=Eo(t);return function(e,t){if(!e)return!0;var r=e.sectionCount||0,n=t.sectionCount||0;if(n!==r)return n>r;if(n){var o=e.sectionRank||0,i=t.sectionRank||0;if(i!==o)return i>o}return t.score>e.score}(e,r)?r:e},null)||Eo(document.body),s=Array.prototype.filter.call(l.root.querySelectorAll("h2, h3, h4"),function(e){return!e.closest("article, li, [class*='card' i], [class*='item' i]")}).length,c=t([location.pathname,document.title,e.title].join(" ")),u=/\b(?:docs?|documentation|api|library|libraries|reference|class|module|namespace|package)\b/i.test(c),d=ne()&&!u&&l.items.length>=10&&t(l.markdown).length>=3e3,m=d?2:0,p=d?s:0,h=Math.max(l.sectionCount||0,p,m);return L(e,{title:e.title||document.title,excerpt:l.items[0]?l.items[0].text:e.excerpt,html:l.root.innerHTML,textContent:l.markdown,markdown:l.markdown,items:l.items,portalRootEvidence:r.portalRoot&&h>=2&&l.items.length>=4?{namedSectionCount:h,canonicalCardCount:l.items.length}:null})}var Lo=null;function $o(){if(Lo)return Lo;var e=[];return b().forEach(function r(n){if(n&&"object"==typeof n)if(Array.isArray(n))n.forEach(r);else{var o=n["@type"]||n.type;(Array.isArray(o)?o:[o]).some(function(e){return/^(product|book)$/i.test(t(e))})&&e.push(n),n["@graph"]&&r(n["@graph"]),n.itemListElement&&r(n.itemListElement),n.item&&r(n.item)}}),Lo=e,e}function Po(e){return null==e?"":Array.isArray(e)?Po(e[0]):t("object"==typeof e?e.name||e.value||e["@id"]||e.url||"":String(e))}function No(e){var t=e&&e.offers;return Array.isArray(t)&&(t=t[0]),t||null}function zo(e){return Mo(e&&(e.price||e.priceSpecification&&e.priceSpecification.price),e&&(e.priceCurrency||e.priceSpecification&&e.priceSpecification.priceCurrency))}function Mo(e,t){if(e=Po(e).replace(/\s+/g,""),t=Po(t).toUpperCase(),!e)return"";var r=e.match(/[$€£]\s?\d[\d,]*(?:\.\d{2})?/);return r?r[0].replace(/([$€£])\s+/g,"$1"):/^\d[\d,.]*$/.test(e)?"USD"===t?"$"+e:"EUR"===t?"€"+e:"GBP"===t?"£"+e:t?e+" "+t:e:""}function Ro(e){return a(e).replace(/([a-z])([A-Z])/g,"$1 $2")}function Bo(e,r){var n=$o().find(function(n){return function(e,r,n){var i=Po(e&&e.name).toLowerCase(),a=t(r||"").toLowerCase(),l=No(e),s=Po(e&&e.url||l&&l.url),c=s?o(s):"";return!(!n||!c||c.replace(/[#?].*$/,"")!==n.replace(/[#?].*$/,""))||!(!i||!a||i!==a&&-1===i.indexOf(a)&&-1===a.indexOf(i))}(n,e,r)});if(!n)return[];var i=No(n),a=n.aggregateRating||n.reviewRating,l=[],s=zo(i),c=Po(i&&i.availability),u=Po(a&&a.ratingValue),d=Po(a&&(a.reviewCount||a.ratingCount));return s&&l.push(s),u&&l.push(Ho(u,d)),c&&l.push(Ro(c)),l}function Ho(e,t){return"Rating: "+e+"/5"+(t?" from "+t+" reviews":"")}function Fo(e){var n,i=[];["main","[role='main']",".products",".product-grid",".product-list",".search-results",".category",".collection","body"].forEach(function(e){document.querySelectorAll(e).forEach(function(e){-1===i.indexOf(e)&&i.push(e)})});var a=r([location.pathname||"",location.search||"",e&&e.title||document.title].join(" ")).toLowerCase().replace(/[^a-z0-9]+/g," ").split(/\s+/).filter(function(e){return e.length>=3&&!/^(shop|store|products?|items?|brand|brands|category|categories|search|results|sale|gift|sets|perfume|perfumes|fragrance|fragrances|cologne|women|men|unisex)$/i.test(e)}),l=[];function s(e){try{var t=new URL(e,location.href);return(t.origin+t.pathname).toLowerCase()}catch(t){return String(e||"").toLowerCase()}}function c(e){return e=e.toLowerCase(),a.some(function(t){return-1!==e.indexOf(t)})}function u(e){var r=e.querySelector("img[alt], img[title]"),n=o(e.getAttribute("href")),i=e.closest("article, li, [class*='product'], [class*='item'], [class*='card'], div, section")||e.parentElement;i===e&&e.parentElement&&(i=e.parentElement.closest("article, li, [class*='product'], [class*='item'], [class*='card'], div, section")||e.parentElement);var u=[],d=[t(e.textContent||""),t(e.getAttribute("aria-label")||""),t(r&&(r.getAttribute("alt")||r.getAttribute("title")))];i&&n&&Array.prototype.forEach.call(i.querySelectorAll("a[href][class*='title' i], [class*='title' i] a[href]"),function(e){s(o(e.getAttribute("href")))===s(n)&&u.push(t(e.textContent||e.getAttribute("aria-label")||""))}),u.length&&(d=u),d.sort(function(e,t){return t.length-e.length});var m,p=d[0]||"";if(!n||!p||p.length<6||p.length>140)return null;if(/^\(\d+\)\s+/.test(m=p)||/^(top sellers|new arrivals|product|brand name|review count|star rating|sort by|view all|more options(?: from .*)?|privacy policy|my privacy choices|sign in|order status|shipping info|fragrances|see all fragrances|perfume|bath & body|gift sets|unboxed\/testers|perfume samples|cologne|samples|cologne samples|women'?s perfume|men'?s cologne|0 items in your bag|0 0 items in your bag|request it|become a fragrancenet\.com vip|powered by onetrust opens in a new tab)$/i.test(m)||/\(designer\)$/i.test(m))return null;if(/(sort|filter|review|rating|privacy|cookie|onetrust)/i.test(n)&&p.length<32)return null;if(n===location.href||/^(javascript:|mailto:)/i.test(n))return null;var h="";try{h=new URL(n,location.href).pathname}catch(e){return null}var f=/(\/product|\/perfume|\/cologne|\/dp\/|\/itm\/|\/pdp\/|\/shop\/products\/|\/p\/(?!pl(?:\/|$)))/i.test(h),g=t(i&&[i.getAttribute("id"),i.getAttribute("class"),i.getAttribute("data-testid"),i.getAttribute("data-hb-id"),i.getAttribute("itemtype")].join(" ")),y=/(product|item-cell|item-container|schema\.org\/Product)/i.test(g);if(!f&&!y)return null;if(l.length&&!function(e){return e=e.toLowerCase(),l.some(function(t){return-1!==e.indexOf(t)})}(p))return null;if(a.length&&Sr()&&!c(p))return null;var b=function(e,r,n){if(!e)return"";var o=t(e.textContent||""),i=Bo(r,n);function a(e){(e=t(e))&&-1===i.indexOf(e)&&i.push(e)}function l(r){var n=e.querySelector(r);return t(n&&(n.getAttribute("content")||n.getAttribute("href")||n.getAttribute("aria-label")||n.textContent))}var s=Mo(l("[itemprop='price'], meta[itemprop='price'][content], [class*='price' i], [data-testid*='price' i], [aria-label*='price' i]"),l("[itemprop='priceCurrency'], meta[itemprop='priceCurrency'][content]"));s&&a(s),(o.match(/([$€£]\s?\d[\d,.]*(?:\.\d{2})?)/g)||[]).slice(0,2).forEach(function(e){-1===i.indexOf(e)&&i.push(e)});var c=l("[itemprop='ratingValue'], meta[itemprop='ratingValue'][content]"),u=l("[itemprop='reviewCount'], [itemprop='ratingCount'], meta[itemprop='reviewCount'][content], meta[itemprop='ratingCount'][content]");c&&/^\d(?:\.\d+)?$/.test(c)&&a(Ho(c,u));var d=e.querySelector("[aria-label*='out of 5' i], [class*='rating' i], [class*='stars' i]"),m=t(d&&(d.getAttribute("aria-label")||d.textContent)),p=m.match(/\b(\d(?:\.\d+)?)\s*(?:out of|\/)\s*5\b/i)||o.match(/\b(\d(?:\.\d+)?)\s*out of\s*5\s*stars?\b/i);if(p){var h=(m+" "+o).match(/\b([\d,]+)\s*(?:reviews?|ratings?)\b/i);a(Ho(p[1],h&&h[1]))}var f=l("[itemprop='availability'], link[itemprop='availability'][href], meta[itemprop='availability'][content], [class*='stock' i], [class*='availability' i], [data-testid*='availability' i]");if(!f){var g=o.match(/\b(in stock|out of stock|sold out|available now|currently unavailable|unavailable|pre-?order|backordered|request it)\b/i);f=g&&g[0]}return f&&a(Ro(f)),[/\bfree shipping\b/i].forEach(function(e){var t=o.match(e);t&&a(t[0])}),i.filter(Boolean).join(" - ")}(i,p,n);return c(p)||f||y?{text:p,url:n,detail:b}:null}function d(e,t){return mo(e,{cardSelectors:"a[href]",allowMissingUrl:!1,dedupe:t,keyBuilder:function(e){return[e.text+"|"+e.url,"url:"+e.url,"product:"+s(e.url)]},candidateBuilder:function(e){return u(e)}})}new URLSearchParams(location.search||"").forEach(function(e,t){/^(q|query|search|searchtext|keyword|k|d)$/i.test(t||"")&&r(e||"").toLowerCase().replace(/[^a-z0-9]+/g," ").split(/\s+/).forEach(function(e){e.length>=3&&-1===l.indexOf(e)&&l.push(e)})});var m=i.reduce(function(e,t){var r=d(t,!1).length;return!e||r>e.score?{node:t,score:r}:e},null);return!m||m.score<4||(n=d(m.node,!0)).length<4?null:L(e,{excerpt:n[0].text,items:n})}function Oo(){return Mo(u(["meta[property='product:price:amount']","meta[property='og:price:amount']","meta[name='twitter:data1']","meta[itemprop='price']"],"content"),u(["meta[property='product:price:currency']","meta[property='og:price:currency']","meta[itemprop='priceCurrency']"],"content"))}function Io(){var e,r,n,o,i=$o().find(function(e){var t=No(e);return Po(e&&e.name)||zo(t)||Po(e&&e.sku)})||null,a=No(i),l=Po(i&&i.name),s=(e=l||u(["main h1","article h1","h1"]),(r=document.querySelector("main h1, article h1, h1"))&&t(e)?t(r.textContent).toLowerCase()!==t(e).toLowerCase()?null:r.closest("main, article, [itemscope], [data-testid*='product' i], [class*='product-detail' i]")||r.parentElement:null);if(n=(location.pathname||"").toLowerCase(),o=(location.search||"").toLowerCase(),/(?:^|[?&])(q|query|search|searchtext|keyword|k|d)=/.test(o)||/\/(search|s|browse|category|categories|collections?|catalog|keyword|wholesale|shop)\b/.test(n)||/\/p\/pl\b/.test(n)||!s||i&&!function(e){var t=e&&(e.url||e.mainEntityOfPage);if(!t)return!0;try{var r=new URL("object"==typeof t?t.url:t,location.href);return r.origin===location.origin&&r.pathname===location.pathname}catch(e){return!1}}(i))return null;var c=zo(a)||Oo()||function(e){for(var t=["[itemprop='price']","meta[itemprop='price'][content]","[data-testid*='price' i]","[class*='price' i]","[id*='price' i]","[aria-label*='price' i]"],r=u(["[itemprop='priceCurrency']","meta[itemprop='priceCurrency'][content]"],"content"),n=0;n<t.length;n+=1)for(var o=e.querySelectorAll(t[n]),i=0;i<o.length;i+=1){var a=o[i];if(!a.closest||!a.closest("nav, footer, aside, [hidden], [aria-hidden='true']")){var l=Mo(a.getAttribute("content")||a.getAttribute("aria-label")||a.textContent,r);if(l)return l}}return""}(s),d=t($("og:type","property")||"").toLowerCase(),m=!!s.querySelector("[itemtype*='schema.org/Product' i], [typeof*='Product' i], [itemprop='sku'], [itemprop='gtin'], [itemprop='mpn']"),p=!!s.querySelector("button[name*='add' i], button[id*='add-to-cart' i], button[class*='add-to-cart' i], button[data-testid*='add-to-cart' i], [aria-label*='add to cart' i], [aria-label*='add to bag' i]"),h=V(s,["[itemprop='sku']","[class*='sku' i]","[data-testid*='sku' i]"]),f=/\bproduct\b/.test(d),g=u(["main h1","article h1","h1","[itemprop='name']"]),y=!!s.querySelector("img[alt], [itemprop='image']");l=l.toLowerCase();var b=Po(i&&(i.sku||i.mpn||i.gtin13)),v=t(g||"").toLowerCase(),w=!(!i||!v||l!==v&&-1===l.indexOf(v)&&-1===v.indexOf(l)),x=!!g&&(m||p||h)&&!!s.querySelector("[itemtype*='schema.org/Product' i], [typeof*='Product' i], [itemprop='sku'], [itemprop='gtin'], [itemprop='mpn'], button[name*='add' i], button[id*='add-to-cart' i], button[class*='add-to-cart' i], button[data-testid*='add-to-cart' i], [aria-label*='add to cart' i], [aria-label*='add to bag' i], [class*='sku' i], [data-testid*='sku' i]"),S=w||x,k=[a,h||b,p,y].filter(Boolean).length;return $o().length>1&&!f&&!p&&!h||!S||k<2?null:{title:Po(i&&i.name),excerpt:Po(i&&i.description),price:c,availability:Po(a&&a.availability),sku:Po(i&&(i.sku||i.mpn||i.gtin13)||h)}}function Do(){return b().find(function(e){return v(e).some(function(e){return/(?:^|\/)JobPosting$/i.test(e)})})||null}function Uo(e){if(!Zo(document.body))return null;function r(e,r){var n=[];["[data-testid='company-name']","[data-test='employer-name']","[data-test='location']","[data-testid*='location' i]","[data-test='descSnippet']","[data-testid='belowJobSnippet']"].forEach(function(r){var o=e.querySelector(r),i=t(o&&o.textContent);i&&-1===n.indexOf(i)&&n.push(i)}),n.length||n.push(t(e.textContent||"").replace(r,""));var o=t(n.join(" - ")).replace(r,"");return o=o.replace(/\s*\{\"@context\".*$/i,"")}var n=mo(document,{cardSelectors:"[data-testid='slider_container'], [data-test='jobListing'], [data-jobid], [data-testid*='job' i], [class*='job-card' i], [class*='jobCard'], tr[data-id][data-url*='/remote-jobs/'], [data-url*='/remote-jobs/']",linkBuilder:function(e){return e.querySelector("a[data-test='job-title'], a[id*='job-title' i], a[href*='/job-listing/'], a[href*='/remote-jobs/'], a[href*='/viewjob'], a[href*='/rc/clk'], a[href*='jk='], a[href*='jl=']")},allowMissingUrl:!0,minTitleLength:wr,maxTitleLength:220,keyBuilder:function(e){return e.text+"|"+e.url},candidateBuilder:function(e,n){var i=function(e,r){var n=t(e.getAttribute("data-company")||""),o=t(e.getAttribute("data-search")||"").replace(/\s*\[.*$/i,"");n&&0===o.indexOf(n)&&(o=t(o.slice(n.length)));var i=[o,t(r&&(r.textContent||r.getAttribute("aria-label"))),t((e.querySelector("[data-test='job-title'], [data-testid*='jobTitle' i], h2, h3")||{}).textContent||"")].map(function(e){return t(e||"").replace(/\s*-?\s*\{\"@context\".*$/i,"")}).filter(Boolean);return i.sort(function(e,t){return t.length-e.length}),i[0]||""}(e,n),a=function(e,t){var r=t&&t.getAttribute("href");return(r=r||e.getAttribute("data-href")||e.getAttribute("data-url")||"")?o(r):""}(e,n);return{text:i,url:a,detail:r(e,i)}}});if(n.length<4)return null;var i=C(n);return L(e,{excerpt:n[0].text,textContent:i,markdown:i,items:n})}function Zo(e){if(!(e=e||document.body)||Ar())return!1;var r=t([location.pathname,location.search,document.title].join(" ")).toLowerCase();if(!/(\bjobs?\b|employment|careers?|jobsearch|job-list|job results?|hiring|remote-[a-z0-9+-]+-jobs|q-[a-z0-9-]+-jobs)/i.test(r))return!1;var n=e.querySelectorAll("[data-testid='slider_container'], [data-test='jobListing'], [data-jobid], [data-testid*='job' i], [class*='job-card' i], [class*='jobCard'], tr[data-id][data-url*='/remote-jobs/'], [data-url*='/remote-jobs/']").length,o=Array.prototype.filter.call(e.querySelectorAll("a[href]"),function(e){var r=e.getAttribute("href")||"",n=t(e.textContent||e.getAttribute("aria-label")||"");return!(n.length<wr(n)||n.length>220)&&/(\/job-listing\/|\/remote-jobs\/|\/viewjob\b|\/rc\/clk\b|[?&](?:jk|jl)=)/i.test(r)}).length;return n>=4||o>=4}function Wo(){return b().filter(function(e){return v(e).some(function(e){return/(?:^|\/)(?:Event|EventReservation|WorkEvent)$/i.test(e)})})}function Go(){var e=Wo();return e.length>1&&Ko()?null:e[0]||null}function Ko(){var e=r(location.pathname||"").toLowerCase(),n=t([document.title||"",(document.querySelector("h1")||{}).textContent||""].join(" ")).toLowerCase();if(je(/(^|\.)eventbrite\.com$/)&&/^\/e\//i.test(location.pathname||""))return!1;if(/\/events?\/[^/?#]+\/\d+\/?$/i.test(e))return!1;if(/\b(?:schedule|agenda|program(?:me)?)\b/.test(e+" "+n))return!0;if(/\/(?:events?|conferences?|calendar)\/?$/i.test(e))return!0;if(/\/events\/[^/]*events?\/?$/i.test(e))return!0;if(/\b(?:our events|upcoming events|event calendar|python events)\b/.test(n))return!0;var o=Vo().length,i=Array.prototype.filter.call(document.querySelectorAll("a[href*='/events/'], a[href*='/event/'], a[href*='/e/'], a[href*='tickets-']"),function(e){return t(e.textContent||"").length>=8}).length;return o>=3||i>=4}function Vo(){var e=[],r={};function n(n,i){if(!n.closest("nav, header, footer, aside, form, [aria-hidden='true'], [hidden]")){i=i||n.querySelector("a[href]");var a=t((n.querySelector("h2, h3, h4, [class*='title' i]")||i||{}).textContent||""),l=n.parentElement||n,s=Yo(n)||Yo(l),c=Qo(n)||Qo(l),u=o(i&&i.getAttribute("href")||""),d=u||a;a&&s&&d&&!r[d]&&(r[d]=!0,e.push({text:a,url:u,detail:[s,c].filter(Boolean).join(" - ")}))}}return Array.prototype.forEach.call(document.querySelectorAll("[class*='event-card' i], [class*='event-list' i] article, [class*='event' i] article, li[class*='event' i], [data-testid*='event' i]"),function(e){n(e)}),Array.prototype.forEach.call(document.querySelectorAll("a[href*='/e/'], a[href*='tickets-']"),function(e){var t=e.closest("article, li, [role='listitem'], [data-testid*='event' i], [class*='event' i], [class*='card' i]")||e.parentElement;t&&n(t,e)}),e}function Jo(e,t){var r=S(e),n=S(t);return r&&n&&r!==n?r+" - "+n:r||n||null}function Xo(e){if(!e)return null;if("string"==typeof e)return t(e);if(Array.isArray(e))return t(e.map(Xo).filter(Boolean).join("; "));if("object"!=typeof e)return null;var r=A(e.address);return t([x(e),r].filter(Boolean).join(" - "))||S(e)}function Yo(e){var r=m([e=e||document],["[itemprop='startDate']","time[datetime]"],"datetime")||m([e],["[itemprop='startDate']","[class*='start-date' i]","[class*='event-date' i]","[class*='date' i]","time"]),n=m([e],["[itemprop='endDate']"],"datetime")||m([e],["[itemprop='endDate']","[class*='end-date' i]"]);if(r||n)return Jo(r,n);var o=t(e&&e.textContent||""),i=o.match(/\b(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun|Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday)?\s*(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Sept|Oct|Nov|Dec)[a-z]*\s+\d{1,2}(?:\s*[-–]\s*\d{1,2})?(?:,?\s+\d{4})?(?:\s+(?:at\s+)?\d{1,2}(?::\d{2})?\s*(?:AM|PM|am|pm)?)?/);return i||(i=o.match(/\b\d{1,2}\s+(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Sept|Oct|Nov|Dec)[a-z]*\s+\d{4}(?:\s*,?\s*\d{1,2}:\d{2})?/))?t(i[0]):null}function Qo(e){function r(e){if(!e||/^(?:INPUT|TEXTAREA|SELECT|OPTION)$/i.test(e.tagName||""))return null;var r=t(e.textContent||e.getAttribute("aria-label")||"");return r.length<5||r.length>260||/^(?:location|autocomplete|search|use my current location|online event|virtual event)$/i.test(r)||/\b(?:autocomplete|search events|find events|log in|sign up)\b/i.test(r)?null:r}e=e||document;for(var n=["[itemprop='location']","[data-testid*='location' i]","[class*='event-location' i]","[class*='venue' i]","[class*='address' i]","[class*='location' i]"],o=0;o<n.length;o+=1)for(var i=e.querySelectorAll(n[o]),a=0;a<i.length;a+=1){var l=r(i[a]);if(l)return l}for(var s=e.querySelectorAll("h2, h3, h4, strong, dt"),c=0;c<s.length;c+=1)if(/^location$/i.test(t(s[c].textContent||"")))for(var u=s[c].nextElementSibling;u;){var d=r(u);if(d)return d;u=u.nextElementSibling}return null}function ei(){var e=t([location.hostname,location.pathname,document.title,(document.querySelector("h1")||{}).textContent].join(" ")).toLowerCase();if(!/\b(schedule|agenda|program(?:me)?|world-congress|rubyconf|conference|summit)\b/.test(e))return!1;if(!/\b(schedule|agenda|program(?:me)?|conference|congress|summit|rubyconf)\b/.test(e))return!1;var r=(t(document.body&&document.body.textContent).match(/\b\d{1,2}:\d{2}\s*(?:AM|PM|am|pm)?\b/g)||[]).length,n=document.querySelectorAll("[class*='session' i], [class*='schedule' i], [class*='agenda' i], [class*='talk' i], [class*='speaker' i]").length;return r>=3||n>=4}function ti(e){var r=e.querySelector("h1, h2, h3, h4");return t(r?r.textContent:e.textContent)}function ri(e,r){var n=t(e&&e.textContent).replace(t(r),"").replace(/\s*[|·]\s*/g," - ");return t(n=n.replace(/Only include results for this site.*$/i,"").replace(/This search result is provided by Google Learn more Report result/gi,"").replace(/Learn more Report result/gi,"").replace(/Report Ad/gi,"").replace(/\bhttps?:\/\/\S+/gi,"").replace(/\s{2,}/g," "))}function ni(e,r){if((r=r||{}).prepareMetadata&&r.prepareMetadata(e),r.pathAllowed&&!r.pathAllowed())return null;var n={},i=[],a=r.minItems||4,l=r.minTitleLength||18,s=r.maxTitleLength||220,c=r.linkSelector||"a[href]",u=r.cardSelector||"article, section, li, div";if(document.querySelectorAll(c).forEach(function(e){if(!r.excludeClosest||!e.closest(r.excludeClosest)){var a=e.getAttribute("href")||"",c=o(a);if(c&&!n[c]&&(!r.acceptLink||r.acceptLink(a,c,e))){var d=r.titleBuilder?r.titleBuilder(e):ti(e);if(r.transformTitle&&(d=r.transformTitle(d,e)),!function(e){return!e||e.length<l||e.length>s||!!r.rejectTitle&&("function"==typeof r.rejectTitle?r.rejectTitle(e):r.rejectTitle.test(e))}(d=t(d||""))){var m=ri(e.closest(u)||e.parentElement,d);n[c]=!0,i.push({text:d,url:c,detail:m})}}}}),i.length<a)return null;var d=j({title:r.title||e&&e.title||document.title||r.defaultTitle,excerpt:e&&e.excerpt,siteName:e&&e.siteName||r.siteName||location.hostname,items:i});return r.hostAware&&(d.hostAware=!0),r.statusPage&&(d.statusPage=!0),d}function oi(e,t){return!0===e||!1!==e&&("function"==typeof e?e(t):je(e))}function ii(e){try{var t=new URL(e,location.href),r=t.hostname===location.hostname||ai(location.hostname)&&ai(t.hostname)||/(^|\.)bing\.com$/i.test(location.hostname)&&/(^|\.)bing\.com$/i.test(t.hostname)||/(^|\.)duckduckgo\.com$/i.test(location.hostname)&&/(^|\.)duckduckgo\.com$/i.test(t.hostname);return!/^https?:$/i.test(t.protocol)||r?null:t.href}catch(e){return null}}function ai(e){return/(^|\.)google\.[a-z]{2,3}(?:\.[a-z]{2})?$/i.test(e)}function li(e,r,n,i,a){n=t(n);var l=i;if(i=function(e){try{var t=new URL(e,location.href);if(u=location.hostname,d=t.hostname,m=u.toLowerCase().replace(/^www\./,""),p=d.toLowerCase().replace(/^www\./,""),/^google\.[a-z]{2,3}(?:\.[a-z]{2})?$/.test(m)&&m===p&&"/url"===t.pathname){var r=t.searchParams.get("q")||t.searchParams.get("url");if(!r)return null;try{r=decodeURIComponent(r)}catch(e){return null}return ii(r)}if(/(^|\.)bing\.com$/i.test(location.hostname)&&/(^|\.)bing\.com$/i.test(t.hostname)&&"/ck/a"===t.pathname){var n=t.searchParams.get("u")||"";if(!/^a1[A-Za-z0-9_-]+={0,2}$/.test(n))return null;var i=n.slice(2).replace(/-/g,"+").replace(/_/g,"/");if(i.length%4==1)return null;i+="=".repeat((4-i.length%4)%4);try{for(var a=atob(i),l="",s=0;s<a.length;s+=1)l+="%"+("0"+a.charCodeAt(s).toString(16)).slice(-2);return ii(decodeURIComponent(l))}catch(e){return null}}if(/(^|\.)duckduckgo\.com$/i.test(location.hostname)&&/(^|\.)duckduckgo\.com$/i.test(t.hostname)&&/^\/l\//.test(t.pathname)){var c=t.searchParams.get("uddg");if(!c)return null;try{c=decodeURIComponent(c)}catch(e){return null}return ii(c)}}catch(e){}var u,d,m,p;return o(e)}(i),a=t(a),i&&n&&!/^(images|videos|news|maps|shopping|sign in|privacy|terms|feedback|more|people also ask|related searches)$/i.test(n)&&!/^(javascript:|mailto:)/i.test(i)&&function(e){try{var t=new URL(e,location.href);return t.hostname===location.hostname?/^\/(url|imgres|search|ck\/a|y\.js|l\/.+|aclick)/.test(t.pathname)||"/"===t.pathname:/^https?:/.test(t.protocol)}catch(e){return!1}}(i)&&!function(e,t,r,n){var o=(e+" "+t).toLowerCase();return/\bad\b|sponsored|report ad/.test(o)||/[?&](ad_|ad=|ad_domain=)/i.test(r)||/(?:^|\/)y\.js\?/i.test(n||"")}(n,a,i,l)){var s=n+"|"+i;r[s]||(r[s]=!0,e.push({text:n,url:i,detail:a}))}}function si(e){var r,n=(r=location.hostname.toLowerCase(),/(^|\.)google\./.test(r)?"google":/(^|\.)duckduckgo\.com$/.test(r)?"duckduckgo":"bing.com"===r||/\.bing.com$/.test(r)?"bing":"search.brave.com"===r?"brave":"ecosia.org"===r||/\.ecosia.org$/.test(r)?"ecosia":null);if(!n)return null;var o=t(document.body&&document.body.textContent||"");if(fr(e.title||document.title,o||J()||""))return null;if(function(e){return/captcha|verify you are human|unusual traffic|security check|before you continue|enable javascript to continue/i.test(e)}(o))return null;var i=[],a={};return function(e){var t={google:".MjjYud, .g",duckduckgo:"article[data-testid='result'], .result",bing:"li.b_algo, .b_algo",brave:"[data-testid='result'], .snippet, .fdb",ecosia:"article[data-test-id='result'], .result"};return t[e]?document.querySelectorAll(t[e]):[]}(n).forEach(function(e){if(!function(e,r){var n=t([e.getAttribute("aria-label")||"",e.getAttribute("data-text-ad")||"",e.className||""].join(" "));return!!/\b(ad|advert|sponsored|promoted)\b/i.test(n)||!("google"!==r||!e.matches(".uEierd")&&!e.closest(".uEierd"))||!!e.querySelector(".related-question-pair, .related-searches, [data-async-context*='related']")||"duckduckgo"===r&&e.matches(".result--ad, [data-testid='result-ad']")}(e,n)){var r=function(e,t){var r=e.querySelector({google:"h3",duckduckgo:".result__title a, a.result__a, a[data-testid='result-title-a']",bing:"h2 a",brave:"a[data-testid='result-title'], a.result-header, h2 a, h3 a",ecosia:"a.result-title, a[data-test-id='result-title'], h2 a, h3 a"}[t]||"h2 a, h3 a");return r?"A"===r.tagName?r:r.closest("a"):null}(e,n);if(r){var o=ti(r);li(i,a,o,r.getAttribute("href"),function(e,t,r){return ri(e.querySelector({google:".VwiC3b, .yXK7lf, [data-sncf], .IsZvec",duckduckgo:".result__snippet, [data-testid='result-snippet']",bing:".b_caption p",brave:".snippet-description, [data-testid='result-description'], .description",ecosia:".result-snippet, [data-test-id='result-snippet']"}[r]||"")||e,t)}(e,o,n))}}}),i.length?{title:e.title||document.title,byline:null,excerpt:E(),siteName:e.siteName||location.hostname,publishedTime:null,html:"",textContent:C(i),markdown:C(i),readerMode:!1,contentType:"search",resultCount:i.length}:function(e){return{title:e.title||document.title,byline:null,excerpt:E(),siteName:e.siteName||location.hostname,publishedTime:null,html:"",textContent:"",markdown:"",readerMode:!1,contentType:"search",resultCount:0}}(e)}window.newsHomepageListProfiles=window.newsHomepageListProfiles||[],window.registerNewsHomepageListProfile=function(e,t){newsHomepageListProfiles.push({condition:e,config:t})},window.hostAwareProfiles=window.hostAwareProfiles||[],window.hostAwareProfiles.push({condition:!0,fn:function(e){for(var t=0;t<newsHomepageListProfiles.length;t+=1){var r=newsHomepageListProfiles[t];if(oi(r.condition,e)){var n=ni(e,"function"==typeof r.config?r.config(e):r.config);if(n)return n}}return null}});function ci(){return"undefined"!=typeof performance&&performance.now?performance.now():Date.now()}function ui(){return e=function(e){return"MedicalWebPage"===e||"MedicalEntity"===e||/^Medical[A-Z]/.test(e)},b().find(function(t){return v(t).some(e)})||null;var e}function di(e,r){return(!r||"interstitial"!==r.contentType&&"product"!==r.contentType)&&(!!function(e){if(!e)return!1;var r=document.createElement("div");r.innerHTML=e.html||"";var n=t(r.textContent||e.textContent||e.markdown||"");if(n.length<420)return!1;var o=r.querySelectorAll("p").length,i=r.querySelectorAll("h1, h2, h3").length,a=Array.prototype.filter.call(r.querySelectorAll("p, li, section, div"),function(e){return t(e.textContent||"").length>=120}).length,l=Array.prototype.reduce.call(r.querySelectorAll("a[href]"),function(e,r){return e+t(r.textContent||r.getAttribute("aria-label")||"").length},0);return(n.length>0?l/n.length:0)<.45&&(o>=3||a>=4||i>=2&&n.length>=900)}(r)&&(!!ui()||(n=(location.hostname||"").replace(/^www\./i,"").toLowerCase(),o=(location.pathname||"").toLowerCase(),!!(/cdc\.gov$/.test(n)&&/\/(?:about|signs-symptoms|symptoms|causes|risk-factors|testing|treatment|prevention|living-with|basics|facts)\b/.test(o)||/mayoclinic\.org$/.test(n)&&/\/diseases-conditions\/[^/]+\/(?:symptoms-causes|diagnosis-treatment|in-depth)\//.test(o)||/webmd\.com$/.test(n)&&/\/(?:depression|anxiety|mental-health|a-to-z-guides?|pain-management|diabetes|heart-disease|cancer|lung)\b/.test(o)||/nhs\.uk$/.test(n)&&/\/conditions\/[^/]+\//.test(o)||/who\.int$/.test(n)&&/\/news-room\/fact-sheets\/detail\//.test(o)))));var n,o}function mi(e,t){return e&&"interstitial"!==e.contentType&&"product"!==e.contentType&&w(["MedicalWebPage"])?(e.contentType="medical",e):e}function pi(e){var t=ze(e||document.body);return Re(t),Me(t,["header","nav","footer","aside","form","script","style","noscript","[role='navigation']","[role='banner']","[role='contentinfo']","[class*='menu' i]","[class*='navbar' i]","[class*='share' i]","[class*='social' i]","[class*='newsletter' i]","[class*='subscribe' i]","[id*='newsletter' i]","[id*='subscribe' i]"].join(", ")),t}function hi(e){var r=[],i={};function a(e,n){var o=t(n=Ut(n||""));o&&!i[o]&&(i[o]=!0,r.push("## "+e+"\n\n"+n))}return e.querySelectorAll("details").forEach(function(e){var r=t((e.querySelector("summary")||{}).textContent||""),n=t(e.textContent||"");/\b(transcript|transcription)\b/i.test(r+" "+n.slice(0,240))&&a("Transcript",tr(pi(e).innerHTML))}),e.querySelectorAll("[id*='transcript' i], [class*='transcript' i], [aria-label*='transcript' i]").forEach(function(e){e.closest("nav, header, footer, aside")||(n(e)<80||a("Transcript",tr(pi(e).innerHTML)))}),e.querySelectorAll("a[href]").forEach(function(e){var r=t(e.textContent||e.getAttribute("aria-label")||""),n=e.getAttribute("href")||"";if(/\b(transcript|transcription)\b/i.test(r+" "+n)){var i=o(n);i&&a("Transcript","["+(r||"Transcript")+"]("+i+")")}}),r.join("\n\n")}function fi(e){var r=b().find(function(e){return v(e).some(function(e){return/(?:^|\/)PodcastEpisode$/i.test(e)})})||null;if(!r)return function(e){var r=t([location.pathname,document.title,e&&e.title,e&&e.siteName].join(" ")).toLowerCase();if(!/\b(?:podcast|podcasts|episodes?)\b/.test(r))return null;var n=[],i={},a="[class*='episode' i], [data-testid*='episode' i], article";if(Array.prototype.forEach.call(document.querySelectorAll(a),function(e){if(!e.closest("nav, header, footer, aside, [aria-hidden='true'], [hidden]")){var r=e.querySelector("a[href]"),a=t((e.querySelector("h2, h3, h4, [class*='title' i]")||r||{}).textContent||""),l=t((e.querySelector("time, [class*='date' i]")||{}).textContent||""),s=o(r&&r.getAttribute("href")||""),c=s||a;a&&c&&!i[c]&&(i[c]=!0,n.push({text:a,url:s,detail:l}))}}),n.length<3)return null;var l=u(["main h1","h1"])||e.title||document.title,s="# "+t(l)+"\n\n"+C(n);return{title:t(l),byline:null,excerpt:n[0].text,siteName:e.siteName||location.hostname,publishedTime:null,html:"",markdown:s,textContent:t(s),readerMode:!1,contentType:"podcast"}}(e);var i,a,l=(i=null,a=0,["article","main","[role='main']",".episode-content",".episode__content",".podcast-episode",".entry-content",".post-content","#content"].forEach(function(e){document.querySelectorAll(e).forEach(function(e){var t=n(e);t>a&&(i=e,a=t)})}),i||document.body),s=pi(l),c=Ut(tr(s.innerHTML)),d=k(r.description||e&&e.excerpt),m=c;d&&t(d).length>t(c).length&&(m=d);var p=hi(l);p&&-1===t(m).indexOf(t(p).slice(0,80))&&(m=[m,p].filter(function(e){return t(e)}).join("\n\n"));var h=function(e,r){var n=S(e&&(e.name||e.headline||e.title)),o=u(["main h1","article h1","h1"]),i=t(r&&r.title),a=t(r&&r.siteName);return o&&o.toLowerCase()!==a.toLowerCase()?o:n&&n.toLowerCase()!==a.toLowerCase()?n:i&&i.toLowerCase()!==a.toLowerCase()?i:o||n||i||document.title}(r,e),f=["# "+h,m].filter(function(e){return t(e)}).join("\n\n");return t(f=Ut(f)).length<120?null:{title:h,byline:x(r.partOfSeries)||null,excerpt:S(r.description)||e&&e.excerpt,siteName:e&&e.siteName||x(r.partOfSeries)||location.hostname,publishedTime:S(r.datePublished||r.uploadDate)||e&&e.publishedTime,html:s.innerHTML,markdown:f,textContent:t(f),readerMode:!1,contentType:"podcast"}}function gi(e){var r=t(e.title||""),n=t(e.company||""),o=t(e.location||""),i=Ut(String(e.description||"")).trim();if(!r||!t(i)||t(i).length<80)return null;var a=[];n&&a.push("Company: "+n),o&&a.push("Location: "+o);var l=["# "+r,a.length?a.map(function(e){return"- "+e}).join("\n"):null,i].filter(Boolean).join("\n\n").trim();return{title:r,company:n||null,location:o||null,description:i,byline:null,excerpt:t(i),siteName:n||location.hostname,publishedTime:e.publishedTime||null,html:e.html||"",markdown:l,textContent:t(l),readerMode:!1,contentType:"job"}}function yi(e){if(!function(){if(Do())return!0;if(Zo(document.body))return!1;var e=t([location.pathname,document.title,$("og:type","property")].join(" ")).toLowerCase();if(!/\b(job|jobs|career|careers|opening|position|role)\b/.test(e))return!1;var r=0;return document.querySelector("[data-testid*='location' i], [class*='location' i], [class*='job-location' i]")&&(r+=1),document.querySelector("[data-testid*='department' i], [class*='department' i], [class*='team' i]")&&(r+=1),document.querySelector("[data-testid*='apply' i], a[href*='apply' i], button[class*='apply' i], .application, #application")&&(r+=1),/\b(apply for this job|apply now|job description|about the role|responsibilities|qualifications|requirements)\b/i.test(t(document.body&&document.body.textContent))&&(r+=1),r>=2}())return null;var r=document.querySelector("main, article, [role='main'], .job, .job-post, .job-posting, .opening, #content")||document.body,n=u(["main h1","article h1","h1","[data-testid*='title' i]",".app-title"]),o=u(["[data-testid*='company' i]","[class*='company' i]"])||$("og:site_name","property")||e.siteName,i=u(["[data-testid*='location' i]","[class*='job-location' i]","[class*='location' i]","[class*='office' i]"]),a=ze(r.querySelector("[data-testid*='description' i], [class*='description' i], [class*='content' i], [class*='body' i], .job-post, .job-posting, .opening")||r);Re(a),Me(a,"nav, header, footer, aside, form, script, style, noscript, [class*='apply' i], [id*='apply' i]");var l=Ut(tr(a.innerHTML));return gi({title:n||e.title||document.title,company:o,location:i,description:l,html:a.innerHTML})}function bi(e){return function(e){var r,n=Do();return n?gi({title:S(n.title)||x(n)||e.title||document.title,company:x(n.hiringOrganization)||e.siteName,location:(r=n.jobLocation,A(r)||function(e){var r=Array.isArray(e)?e:[e],n=[];return r.forEach(function(e){var r=A(e)||S(e)||x(e);(r=t(r||""))&&-1===n.indexOf(r)&&n.push(r)}),n.length?["Remote"].concat(n).join("; "):""}(n.applicantLocationRequirements)),description:k(n.description),publishedTime:S(n.datePosted),html:"string"==typeof n.description?n.description:""}):null}(e)||yi(e)}function vi(){return b().find(function(e){return v(e).some(function(e){return/(?:^|\/)(?:LodgingBusiness|Hotel|Motel|BedAndBreakfast|Resort|VacationRental|Accommodation|LodgingReservation)$/i.test(e)})})||null}function wi(e){return e?"string"==typeof e?t(e):Array.isArray(e)?t(e.map(wi).filter(Boolean).join(", ")):t("object"!=typeof e?String(e):e.name||e.text||e.description||e.value||""):""}function xi(e){if(!e)return"";if("string"==typeof e)return t(e);if(Array.isArray(e))return t(e.map(xi).filter(Boolean).join("; "));if("object"!=typeof e)return"";var r=e.address||e;return"string"==typeof r?t(r):t([r.streetAddress,r.addressLocality,r.addressRegion,r.postalCode,wi(r.addressCountry)].filter(Boolean).join(", "))||wi(e)}function Si(){for(var e=["[data-testid*='price' i]","[class*='price' i]","[aria-label*='price' i]","[itemprop='price']","meta[itemprop='price'][content]"],t=u(["[itemprop='priceCurrency']","meta[itemprop='priceCurrency'][content]"],"content"),r=0;r<e.length;r+=1)for(var n=document.querySelectorAll(e[r]),o=0;o<n.length;o+=1){var i=n[o];if(!i.closest||!i.closest("nav, footer, aside, [hidden], [aria-hidden='true']")){var a=Mo(i.getAttribute("content")||i.getAttribute("aria-label")||i.textContent,t);if(a)return a}}return""}function ki(e,r){var n=t([location.hostname,location.pathname,document.title,e&&e.title,$("og:type","property")].join(" ")).toLowerCase();if(/\b\d+\s+(?:properties|hotels|stays)\s+found\b/i.test(n))return!1;if(/\/(?:searchresults|city|region|destination)\b/i.test(location.pathname||""))return!1;if(r)return!0;if(!/\b(hotel|lodging|accommodation|booking|airbnb|rooms?|stays?|resort|guest\s?house|hostel|apartment|villa|vacation rental)\b/.test(n))return!1;if(/\b(search|results?|destination|city|things to do|flights?|cars?|restaurants?)\b/.test(n)&&!/\/rooms?\/|\/hotel\//i.test(location.pathname))return!1;var o=0;return document.querySelector("[data-testid*='amenity' i], [data-testid*='facility' i], [class*='amenity' i], [class*='facility' i]")&&(o+=1),document.querySelector("[data-testid*='review-score' i], [data-testid*='rating' i], [class*='review-score' i], [class*='rating' i]")&&(o+=1),document.querySelector("[data-testid*='address' i], [class*='address' i], [itemprop='address']")&&(o+=1),Si()&&(o+=1),/\b(amenities|facilities|guest reviews|property highlights|hosted by|check-in|check-out|night|nights|entire home|private room)\b/i.test(t(document.body&&document.body.textContent))&&(o+=1),o>=2}function Ai(e){if(!/\/(?:rooms?|hotel)\//i.test(location.pathname||""))return null;var r=t(e.title||document.title||""),n=t(document.body&&document.body.textContent),o=/\b(?:airbnb|booking\.com)\b/i.test(r)&&/\b(?:vacation rentals|beach houses|unique homes|largest selection of hotels|homes, and vacation rentals)\b/i.test(r+" "+n),i=document.querySelector("[data-testid*='amenity' i], [data-testid*='facility' i], [data-testid*='review-score' i], [data-testid='property-description'], [itemprop='address']");if(!o||i)return null;var a="# "+r+"\n\nClient-rendered lodging detail shell; no property details were reachable in the loaded document.";return{title:r,byline:null,excerpt:"Client-rendered lodging detail shell; no property details were reachable.",siteName:e.siteName||location.hostname,publishedTime:null,html:document.body?document.body.innerHTML:"",markdown:a,textContent:t(a),readerMode:!1,contentType:"interstitial",lodgingShell:!0}}function Ci(e){var r=vi();if(!ki(e,r))return Ai(e);var n,o,i=document.querySelector("main, article, [role='main'], [data-testid='property-page'], [data-testid='pdp-container'], #site-content")||document.body,a=wi(r&&(r.name||r.underName))||u(["main h1","article h1","h1","[data-testid*='title' i]"])||e.title||document.title,l=(o=(n=r)&&(n.offers||n.potentialAction&&n.potentialAction.result),Array.isArray(o)&&(o=o[0]),Mo(o&&(o.price||o.minPrice||o.priceSpecification&&o.priceSpecification.price),o&&(o.priceCurrency||o.priceSpecification&&o.priceSpecification.priceCurrency))||Oo()||Si()),s=function(e){var t=e&&(e.aggregateRating||e.reviewRating||e.rating||e.starRating);Array.isArray(t)&&(t=t[0]);var r=wi(t&&(t.ratingValue||t.value)),n=wi(t&&t.bestRating)||"5",o=wi(t&&(t.reviewCount||t.ratingCount));return r?"Rating: "+r+"/"+n+(o?" from "+o+" reviews":""):""}(r)||function(){for(var e=["[data-testid*='review-score' i]","[data-testid*='rating' i]","[aria-label*='rating' i]","[aria-label*='stars' i]","[class*='review-score' i]","[class*='rating' i]"],r=0;r<e.length;r+=1){var n=document.querySelector(e[r]),o=t(n&&(n.getAttribute("aria-label")||n.textContent)),i=o.match(/\b(\d(?:\.\d+)?)\s*(?:out of|\/)?\s*(10|5)\b/i)||o.match(/\b(\d(?:\.\d+)?)\b/);if(i)return i[2]?"Rating: "+i[1]+"/"+i[2]:"Rating: "+i[1]}return""}(),c=xi(r&&(r.address||r.location)||u(["[itemprop='address']","[data-testid*='address' i]","[class*='address' i]"])),d=function(e,r){var n=wi(r&&r.description),o=(e||document).querySelector(["[data-testid='property-description']","[data-testid*='description' i]","[class*='description' i]","[itemprop='description']"].join(", "));if(!o&&n)return n;if(!o)return"";var i=ze(o);Re(i),Me(i,"nav, header, footer, aside, form, script, style, noscript, button, [role='button']");var a=Ut(tr(i.innerHTML));return t(a).length>=40?a:n}(i,r),m=function(e){var r=[],n={},o=["[data-testid*='amenity' i] li","[data-testid*='facility' i] li","[data-testid*='facilities' i] li","[class*='amenity' i] li","[class*='facility' i] li","[aria-label*='amenit' i] li","[aria-label*='facilit' i] li"].join(", ");return Array.prototype.forEach.call((e||document).querySelectorAll(o),function(e){var o=t(e.textContent||"").replace(/\s*(additional charge|extra fee)$/i,"");!o||function(e){return/^(?:show|see|view) (?:more|all)|^(?:read|learn) more|^(?:book|reserve) now|^(?:sign|log) in|^(?:check[- ]in|check[- ]out) policy|property policies$/i.test(e)}(o)||n[o.toLowerCase()]||(n[o.toLowerCase()]=!0,r.push(o))}),r}(i);if(!(a&&(d||m.length||l||s||c)))return null;var p=[];l&&p.push("Price: "+l),s&&p.push(s),c&&p.push("Address: "+c);var h=m.length?["## Amenities",m.map(function(e){return"- "+e}).join("\n")].join("\n\n"):"",f=["# "+a,p.length?p.map(function(e){return"- "+e}).join("\n"):null,d,h].filter(Boolean).join("\n\n").trim();return{title:a,name:a,price:l||null,rating:s||null,address:c||null,description:d||null,byline:null,excerpt:d?t(d):m.join(", "),siteName:e.siteName||location.hostname,publishedTime:null,html:i?i.innerHTML:"",markdown:f,textContent:t(f),readerMode:!1,contentType:"hotel"}}function qi(e){var r=t(e.title||""),n=t(e.dateText||""),o=t(e.location||""),i=Ut(String(e.description||"")).trim();if(!r||!n&&t(i).length<80)return null;var a=[];n&&a.push("Date: "+n),o&&a.push("Location: "+o);var l=["# "+r,a.length?a.map(function(e){return"- "+e}).join("\n"):null,i].filter(Boolean).join("\n\n").trim();return{title:r,byline:null,excerpt:t(i)||n||null,siteName:e.siteName||location.hostname,publishedTime:n||null,location:o||null,description:i||null,html:e.html||"",markdown:l,textContent:t(l),readerMode:!1,contentType:"event"}}function Ti(e){if(!function(){if(Ko())return!1;if(Go())return!0;if(Wo().length>1&&Ko())return!1;if(ei())return!1;var e=t([location.hostname,location.pathname,document.title,$("og:type","property")].join(" ")).toLowerCase();if(!/\b(eventbrite|events?|conference|summit|workshop|webinar|meetup|tickets?)\b/.test(e))return!1;if(je(/(^|\.)eventbrite\.com$/)&&/^\/e\//i.test(location.pathname||""))return!0;var r=t(document.body&&document.body.textContent).toLowerCase(),n=0,o=Yo(document.querySelector("main, article, [role='main']")||document.body)||$("startDate","itemprop")||$("date","name");return o&&(n+=1),document.querySelector("[itemprop='location'], [class*='location' i], [data-testid*='location' i]")&&(n+=1),/\b(add to calendar|date and time|location|refund policy|about this event|register|tickets?)\b/.test(r)&&(n+=1),!(!o||!/\/events?\/[^/?#]+\/\d+\/?$/i.test(location.pathname||""))||n>=2}())return null;var r=document.querySelector("main, article, [role='main'], [class*='event' i], #content")||document.body,n=ze(r);Re(n),Me(n,"nav, header, footer, aside, form, script, style, noscript, [class*='ticket' i], [class*='checkout' i], [class*='modal' i]");var o=ze(r.querySelector("[data-testid*='description' i], [class*='description' i], [class*='about' i], [class*='summary' i], article, section")||r);return Re(o),Me(o,"nav, header, footer, aside, form, script, style, noscript, [class*='ticket' i], [class*='checkout' i]"),qi({title:u(["main h1","article h1","h1"])||e.title||document.title,dateText:Yo(r)||e.publishedTime,location:Qo(r),description:Ut(tr(o.innerHTML))||e.excerpt,siteName:e.siteName,html:n.innerHTML})}function _i(e){return function(e){if(Ko())return null;var t=Go();return t?qi({title:S(t.name)||S(t.title)||e.title||document.title,dateText:Jo(t.startDate,t.endDate),location:Xo(t.location),description:k(t.description)||e.excerpt,siteName:e.siteName,html:"string"==typeof t.description?t.description:""}):null}(e)||Ti(e)}function Ei(e){var r=[];return Array.prototype.forEach.call((e||document).querySelectorAll("table"),function(e){if(function(e){if(!e||e.closest&&e.closest("nav, header, footer, aside, form, [aria-hidden='true'], [hidden]"))return!1;var r=t(e.textContent||"");if(!r)return!1;var n=t(Array.prototype.map.call(e.querySelectorAll("th, thead td"),function(e){return e.textContent||""}).join(" ")).toLowerCase(),o=e.querySelectorAll("tr").length;return!(o<2)&&(!!/\b(player|pts|reb|ast|min|fg|3pt|ft|plus\/minus|\+\/-|goals?|assists?|shots?|possession|fouls?|score)\b/i.test(n)||zi(r)&&/\b(final|box score|score|result|pts|goals?)\b/i.test(r))}(e)){var n=t(e.textContent||""),o=t(Array.prototype.map.call(e.querySelectorAll("th, thead td"),function(e){return e.textContent||""}).join(" ")).toLowerCase();if(!/\b(?:odds?|handicap|standings?|schedule|search|navigation|results?)\b/i.test(o)){var i,a,l=Ut(tr(e.outerHTML)).trim();t(l)&&!r.some(function(e){return e.markdown===l})&&r.push({markdown:l,text:n,rawText:e.textContent||"",labels:(i=o+" "+n,a=t(i).toLowerCase().match(/\b(?:pts?|points?|reb(?:ounds?)?|ast(?:s|sists?)?|min(?:utes?)?|fg|3pt|ft|yds?|goals?|assists?|shots?|fouls?|saves?|possession|rank|record)\b/g)||[],a.filter(function(e,t){return a.indexOf(e)===t})),element:e})}}}),r}function ji(e,r){if(!r)return!1;var n=e.rawText||e.text||e.markdown||"";return r.teams.every(function(e){return function(e,r){var n=e||"",o=t(n).toLowerCase(),i=t(r).toLowerCase().split(/[^a-z0-9]+/).filter(Boolean),a=[i.map(function(e){return e.charAt(0)}).join("")];return i.length>1&&a.push(i[0].slice(0,3),i[0].slice(0,2)+i[i.length-1].charAt(0)),-1!==o.indexOf(t(r).toLowerCase())||-1!==o.indexOf(i.join(" "))||a.some(function(e){return-1!==o.indexOf(e)||new RegExp("\\b"+e+"\\b","i").test(n)})||i.length>1&&new RegExp("\\b"+i[i.length-1]+"\\b","i").test(o)}(n,e)})&&r.scores.every(function(e){return-1!==t(n).indexOf(String(e))})}function Li(e){for(var r=e;r&&r!==document.body;){var n=t([r.id||"",r.className||"",r.getAttribute&&r.getAttribute("data-testid")||""].join(" "));if(/\b(?:game|match|event|fixture|scoreboard|box[ -]?score)\b/i.test(n))return r;r=r.parentElement}return null}function $i(){return b().filter(function(e){return v(e).some(function(e){return/(?:^|\/)(SportsEvent|VideoGame)$/i.test(e)})})}function Pi(e){return x(e)||S(e)||""}function Ni(e){return null==e?"":"number"==typeof e?String(e):"string"==typeof e?t(e):Array.isArray(e)?Ni(e[0]):t(e.score||e.result||e.value||e.points||"")}function zi(e){if(!(e=t(e))||e.length>180)return!1;if(/\b(?:menu|navigation|subscribe|sign in|login|tickets|shop|fantasy|standings|schedule)\b/i.test(e))return!1;var r=(e=e.replace(/(\d{1,3})\s*[-–]\s*([A-Z])/g,"$1, $2")).match(/\b[A-Z][A-Za-z.'& -]{1,28}?\s+(\d{1,3})\s*,?\s+[A-Z][A-Za-z.'& -]{1,28}?\s+(\d{1,3})\b/),n=e.match(/\b[A-Z][A-Za-z.'& -]{1,28}?\s+(\d{1,3})\s*[-–]\s*(\d{1,3})\s+[A-Z][A-Za-z.'& -]{1,28}?\b/),o=e.match(/\b[A-Z][A-Za-z.'& -]{1,28}?\s+(\d{1,3})\s*[-–]\s*[A-Z][A-Za-z.'& -]{1,28}?\s+(\d{1,3})\b/),i=r||n||o;if(!i)return 2===Bi(e).length;var a=Number(i[1]),l=Number(i[2]);return!(!Number.isFinite(a)||!Number.isFinite(l))&&(a<=250&&l<=250)}function Mi(e){return t([location.hostname,location.pathname,document.title,e&&e.title,e&&e.siteName,e&&e.excerpt,$("article:section","property"),$("og:type","property")].join(" ")).toLowerCase()}function Ri(e){var r=[],n={};return Array.prototype.forEach.call((e||document).querySelectorAll("h1, h2, h3, main p, [class*='score' i], [class*='score' i] p, [class*='scoreboard' i], [class*='result' i], [class*='result' i] p, [data-testid*='score' i], [data-testid*='game' i]"),function(e){if(!e.closest||!e.closest("nav, header, footer, aside, form, [aria-hidden='true'], [hidden]")){var o=t(e.textContent||"");zi(o)&&!n[o]&&(n[o]=!0,r.push({text:o,node:e}))}}),r}function Bi(e){var r=(e=(e=t(e)).replace(/(\d{1,3})\s*[-–]\s*([A-Z])/g,"$1, $2")).match(/\b([A-Z][A-Za-z.'& -]{1,28}?)\s+\d{1,3}\s*,?\s+([A-Z][A-Za-z.'& -]{1,28}?)\s+\d{1,3}\b/),n=e.match(/\b([A-Z][A-Za-z.'& -]{1,28}?)\s+\d{1,3}\s*[-–]\s*\d{1,3}\s+([A-Z][A-Za-z.'& -]{1,28}?)\b/),o=e.match(/\b([A-Z][A-Za-z.'& -]{1,28}?)\s+\d{1,3}\s*[-–]\s*([A-Z][A-Za-z.'& -]{1,28}?)\s+\d{1,3}\b/),i=r||n||o;return i?[t(i[1]),t(i[2])]:[]}function Hi(e){var r=(e=t(e).replace(/(\d{1,3})\s*[-–]\s*([A-Z])/g,"$1, $2")).match(/\b([A-Z][A-Za-z.'& -]{1,28}?)\s+(\d{1,3})\s*,?\s+([A-Z][A-Za-z.'& -]{1,28}?)\s+(\d{1,3})\b/);if(r)return{teams:[t(r[1]),t(r[3])],scores:[r[2],r[4]]};var n=Bi(e),o=e.match(/\b\d{1,3}\b/g)||[];return 2===n.length&&o.length>=2?{teams:n,scores:o.slice(-2)}:null}function Fi(e){var r=function(){var e=$i()[0];if(!e)return null;var t=e.homeTeam||e.competitor||e.team,r=e.awayTeam||(Array.isArray(e.competitor)?e.competitor[1]:null);Array.isArray(t)&&(t=t[0]);var n=Pi(t),o=Pi(r),i=Ni(t&&(t.score||t.result||t.points)),l=Ni(r&&(r.score||r.result||r.points));return{title:Pi(e),homeName:n,awayName:o,homeScore:i,awayScore:l,startDate:S(e.startDate),status:a(S(e.eventStatus)||S(e.status)||"")}}(),n=document.querySelector("main article, article, main, [role='main']")||document.body,o=Ri(n),i=o.map(function(e){return e.text});[document.title,e&&e.title].forEach(function(e){zi(e=t(e))&&-1===i.indexOf(e)&&i.push(e)});var l=Ei(n),s=l.map(function(e){return e.markdown}),c=r&&(r.homeScore||r.awayScore),u=$i().length>0,d=function(e,t,r){for(var n=0;n<(e||[]).length;n+=1){var o=e[n],i=Hi(o);if(i){var a=(r||[]).filter(function(e){return e.text===o})[0];if((t||[]).some(function(e){if(e.labels.length<2)return!1;if(ji(e,i))return!0;var t=a&&Li(a.node);return!!t&&t===Li(e.element)}))return{line:o,identity:i}}}return null}(i,l,o),m=!!(u||c||d),p=m||s.length>0,h=function(e){var t=Mi(e);return!!/\b(sport|sports|football|soccer|nba|nfl|mlb|nhl|cricket|rugby|tennis|golf|boxing|formula 1|f1|basketball|baseball|hockey|game recap|box score|fixtures?)\b/.test(t)||!!document.querySelector("[itemtype*='schema.org/SportsEvent' i], [typeof*='SportsEvent' i]")||$i().length>0}(e);return(h||u||d)&&(p||/\b(sport|sports|football|soccer|nba|game recap|box score)\b/.test(Mi(e)))?{structured:r,scoreLines:i,tables:s,tableEvidence:l,typed:m,event:m,detail:d}:null}function Oi(e){var r=(location.pathname||"").split("/").filter(Boolean),n=(r[r.length-1]||"").toLowerCase().split(/[^a-z0-9]+/).filter(function(e){return e.length>=3&&!/^\d+$/.test(e)&&!/^(?:game|match|score|box|final|live|results?|sports?|football|soccer|basketball|baseball|hockey|nhl|nfl|nba|mlb)$/.test(e)});return n.length<2?"opaque":2===e.length&&e.every(function(e){return n.some(function(r){return function(e,r){var n=t(e).toLowerCase().split(/[^a-z0-9]+/).filter(Boolean),o=t(r).toLowerCase().split(/[^a-z0-9]+/).filter(Boolean);if(!n.length||!o.length)return!1;if(n.join(" ")===o.join(" "))return!0;if(n.some(function(e){return-1!==o.indexOf(e)}))return!0;var i=n.map(function(e){return e.charAt(0)}).join(""),a=o.map(function(e){return e.charAt(0)}).join("");return i===o.join("")||a===n.join("")}(e,r)})})?"consistent":"mismatch"}function Ii(e){var t=[],r=e&&e.structured;return r&&(r.awayName&&r.homeName&&(r.awayScore||r.homeScore)?t.push("Score: "+r.awayName+" "+r.awayScore+", "+r.homeName+" "+r.homeScore):r.title&&t.push("Event: "+r.title),r.status&&t.push("Status: "+r.status),r.startDate&&t.push("Start: "+r.startDate)),(e.scoreLines||[]).forEach(function(e){var r=/^score:/i.test(e)?e:"Score: "+e;-1===t.indexOf(r)&&t.push(r)}),t}function Di(e){return e&&("sports"===e.contentType||"sports_event"===e.contentType)}function Ui(){return b().find(function(e){return v(e).some(function(e){return/(?:^|\/)PressRelease$/i.test(e)})})||null}function Zi(e){if(function(){var e=t([location.pathname,document.title,u(["main h1","h1"])].join(" ")).toLowerCase();if(!/\b(?:press releases?|news releases?|newsroom)\b/.test(e))return!1;var r=document.querySelectorAll("article a[href], [class*='release' i] a[href], [class*='news' i] a[href]"),n=0;return Array.prototype.forEach.call(r,function(e){var r=e.closest("article, li, [class*='release' i], [class*='news' i]")||e.parentElement;r&&/(?:jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)[a-z]*\.?\s+\d{1,2},?\s+\d{4}\b/i.test(t(r.textContent||""))&&(n+=1)}),n>=3}())return function(e){var r=[],n={};if(Array.prototype.forEach.call(document.querySelectorAll("article a[href], [class*='release' i] a[href], [class*='news' i] a[href]"),function(e){var i=e.closest("article, li, [class*='release' i], [class*='news' i]")||e.parentElement,a=t(e.textContent||e.getAttribute("aria-label")||""),l=t(i&&i.querySelector("time, [class*='date' i]")?i.querySelector("time, [class*='date' i]").textContent:""),s=o(e.getAttribute("href")||""),c=s||a;a&&l&&c&&!n[c]&&(n[c]=!0,r.push({text:a,url:s,detail:l}))}),r.length<3)return null;var i=C(r);return L(e,{title:e.title||document.title,excerpt:r[0].text,textContent:i,markdown:i,items:r})}(e);if(!function(e){if(Ui())return!0;var r=t([document.title,e&&e.title,e&&e.excerpt,e&&e.siteName,$("article:section","property"),location.hostname,location.pathname,u(["main h1","article h1","h1"])].join(" ")).toLowerCase(),n=t(document.body&&document.body.innerText||"").slice(0,2500).toLowerCase(),o=/\b(?:investor relations|earnings release|quarterly results?|financial statements?|form\s*(?:10-k|10-q|8-k)|sec filing)\b/.test(r+" "+n),i=/(^|\.)(prnewswire\.com|cision\.com|globenewswire\.com|businesswire\.com|apple\.com|amazon\.com|google)$/i.test(location.hostname||"")&&/\b(newsroom|news-releases?|company-news|press)\b/i.test(location.pathname||""),a=/\/(?:newsroom|news-releases?|press(?:-release)?|company-news|about\/news)\//i.test(location.pathname||""),l=/\b[A-Z][A-Za-z .'-]{2,40},\s+(?:Jan(?:uary)?\.?|Feb(?:ruary)?\.?|Mar(?:ch)?\.?|Apr(?:il)?\.?|May|Jun(?:e)?\.?|Jul(?:y)?\.?|Aug(?:ust)?\.?|Sep(?:tember)?\.?|Sept\.?|Oct(?:ober)?\.?|Nov(?:ember)?\.?|Dec(?:ember)?\.?)\s+\d{1,2},\s+\d{4}\s*(?:\/PRNewswire\/|--|–)/.test(document.body&&document.body.innerText||"");return/\b(press release|news release|announces?|announced|launches?|unveils?|report(?:s|ed)?(?:\s+[-\w]+){0,3}\s+results?)\b/.test(r+" "+n)&&(i||a||l)&&(!o||l)}(e))return null;var r=Ui(),i=function(){for(var e=["[itemtype*='PressRelease']","[itemprop='articleBody']",".release-body","#release-body","[class*='release-body' i]","[class*='news-release-content' i]","[class*='press-release' i] [class*='body' i]","[class*='article-body' i]","[data-testid*='article-body' i]","article","main article","main"],r=0;r<e.length;r+=1){var o=Array.prototype.slice.call(document.querySelectorAll(e[r]));o.sort(function(e,t){return n(t)-n(e)});for(var i=0;i<o.length;i+=1)if(t(o[i].textContent||"").length>=250&&o[i].querySelectorAll("p, li, blockquote").length>=2)return o[i]}return null}(),a=S(r&&(r.headline||r.name))||e.title||u(["main h1","article h1","h1"])||document.title,l=S(r&&r.description)||e.excerpt,s=S(r&&(r.datePublished||r.dateModified))||e.publishedTime||null,c=x(r&&(r.author||r.publisher))||e.byline||null,d=i?ze(i):document.createElement("div");if(!i&&r){var m=S(r.articleBody||r.text||r.description);m&&(d.innerHTML="<p>"+m.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\n{2,}/g,"</p><p>")+"</p>")}if(!t(d.textContent||""))return null;Re(d),On(d),Me(d,"nav, header, footer, aside, form, script, style, noscript, [class*='related' i], [class*='recommend' i], [class*='share' i], [class*='social' i], [class*='subscribe' i], [class*='newsletter' i]");var p=Ut(tr(d.innerHTML)),h=t(p||d.textContent||"");return h.length<250?null:(a&&p&&!Et(p,a)&&(p="# "+t(a)+"\n\n"+p,h=t(p)),{title:t(a),byline:c,excerpt:l||h.slice(0,280)||null,siteName:e.siteName||location.hostname,publishedTime:s,html:d.innerHTML,markdown:p,textContent:h,readerMode:!1,contentType:"press_release"})}function Wi(e){return A(e)||""}function Gi(e){var t=e&&(e.offers||e.offer);Array.isArray(t)&&(t=t[0]);var r=t&&t.priceSpecification;return Mo(t&&(t.price||t.lowPrice||r&&r.price),t&&(t.priceCurrency||r&&r.priceCurrency))}function Ki(e){if(null==e)return null;if(Array.isArray(e))return Ki(e[0]);if("object"==typeof e)return Ki(e.value||e.amount||e.name||e.text);var t=String(e).replace(/,/g,"").match(/\d+(?:\.\d+)?/);return t?Number(t[0]):null}function Vi(e){if(!e)return null;if(Array.isArray(e))return Vi(e[0]);if("object"==typeof e){var r=t(e.unitCode||e.unitText||e.name||"").toLowerCase(),n=Ki(e.value||e.amount||e.minValue||e.maxValue||e.text);return n?/sq\s*ft|square\s*feet|ft2|ft²|sqft|ftk|sqf|sft|ft$/i.test(r)||/FTK/i.test(e.unitCode||"")?Math.round(n):/sqm|sq\s*m|m2|m²|square\s*met/i.test(r)?Math.round(10.7639*n):Math.round(n):null}return Ki(e)}function Ji(e,r){for(var n=t(e.innerText||""),o=0;o<r.length;o+=1){var i=n.match(r[o]);if(i)return Number(i[1])}return null}function Xi(e,r){var n=b().filter(function(e){var t=v(e).join(" ");return/(?:^|\s|\/)(Apartment|House|SingleFamilyResidence|Residence|Accommodation|RealEstateListing)(?:\s|$)/i.test(t)}),o=n.find(function(e){return x(e)||S(e.description)||Wi(e.address)||Gi(e)})||null,i=t([location.pathname,document.title,r&&r.title,r&&r.excerpt,$("og:type","property")].join(" ")).toLowerCase(),a=t(document.body&&document.body.innerText||""),l=/\b(property|properties|real[ -]?estate|house|apartment|condo|flat|bedrooms?|bathrooms?|sq\.?\s*ft|rightmove|redfin|zillow|realtor)\b/i.test(i+" "+a.slice(0,3e3));if(o&&!function(e){if(!e)return!1;var n=t(x(e)||"").toLowerCase(),o=t(u(["main h1","article h1","h1"])||r.title||document.title).toLowerCase();if(n&&o&&(n===o||-1!==n.indexOf(o)||-1!==o.indexOf(n)))return!0;var i=e.url||e.mainEntityOfPage;if(!i)return!1;try{var a=new URL("object"==typeof i?i.url:i,location.href);return a.origin===location.origin&&a.pathname===location.pathname}catch(e){return!1}}(o))return null;if(!o&&!/(\/property|\/properties|\/listing|for[-_]sale|for[-_]rent)/i.test(location.pathname))return null;var s=function(e){var r=t(u(["main h1","article h1","h1"])||""),n=t(e&&x(e)||"");if(!r||n&&r.toLowerCase()!==n.toLowerCase())return null;var o=document.querySelector("main h1, article h1, h1");if(!o)return null;var i=o.closest("main, article, [itemscope], [data-testid*='property' i], [class*='property-detail' i]")||o.parentElement,a=t(i&&i.innerText||"");return/\b(home|house|apartment|condo|flat|bedrooms?|bathrooms?|sq\.?\s*ft)\b/i.test(a)?i:null}(o);if(!s)return null;var c,d=o&&Gi(o)||function(e){for(var r=["[data-testid*='price' i]","[class*='price' i]","[id*='price' i]","[aria-label*='price' i]"],n=0;n<r.length;n+=1)for(var o=e.querySelectorAll(r[n]),i=0;i<o.length;i+=1){var a=o[i];if(!a.closest||!a.closest("nav, footer, aside, [hidden], [aria-hidden='true']")){var l=Mo(a.getAttribute("content")||a.getAttribute("aria-label")||a.textContent,"");if(l)return l}}var s=t(e.innerText||"").match(/(?:[$£€]\s?\d[\d,]*(?:\.\d{2})?|\d[\d,]*\s?(?:USD|GBP|EUR))(?:\s*(?:pcm|pm|per month|monthly|pw|per week))?/i);return s?t(s[0]).replace(/([$£€])\s+/g,"$1"):""}(s),m=o&&Wi(o.address||o.location)||function(e,r){for(var n=["[data-testid*='address' i]","[data-testid*='location' i]","[class*='address' i]","[class*='location' i]","[itemprop='address']"],o=0;o<n.length;o+=1)for(var i=e.querySelectorAll(n[o]),a=0;a<i.length;a+=1){var l=i[a];if(!l.closest||!l.closest("nav, footer, aside, [hidden], [aria-hidden='true']")){var s=t(l.getAttribute("content")||l.getAttribute("aria-label")||l.textContent);if(s&&s.length<=220&&!/^<</.test(s)&&!/[{}]/.test(s)&&!/^(for sale|for rent|to rent|sold|let agreed|est\.)$/i.test(s)&&!/[$£€]|\bsq\s*ft\b|\b\d+\s*(?:bd|ba)\b/i.test(s))return s}}var c=t(r&&r.title||document.title||""),u=c.match(/\b(?:for sale|to rent|for rent)\s+in\s+([^|]+)/i);return u||!/,\s*(?:[A-Z]{2}\b|[A-Z][a-z]+,)/.test(c)||/[$£€]/.test(c)||(u=c.match(/^([^|]+?)\s*(?:\||$)/)),u?t(u[1]):""}(s,r),p=Ki(o&&(o.numberOfBedrooms||o.bedrooms))||Ji(s,[/\b(\d+(?:\.\d+)?)\s*(?:beds?|bedrooms?|bd)\b/i,/\b(\d+(?:\.\d+)?)\s*bed(?:room)?\s+(?:house|home|flat|apartment|property)\b/i]),h=Ki(o&&(o.numberOfBathroomsTotal||o.numberOfBathrooms||o.bathrooms))||Ji(s,[/\b(\d+(?:\.\d+)?)\s*(?:baths?|bathrooms?|ba)\b/i]),f=Vi(o&&(o.floorSize||o.area||o.size))||((c=t(s.innerText||"").match(/\b([\d,]+(?:\.\d+)?)\s*(?:sq\.?\s*ft|square\s*feet|sqft|ft²)\b/i))?Math.round(Number(c[1].replace(/,/g,""))):null),g=[o,d,m,p,h,f].filter(function(e){return null!==e&&""!==e&&void 0!==e}).length;return o||l?!d&&g<3||n.length>3&&!/\b(property|listing|for sale|for rent|to rent)\b/i.test(i)?null:{title:x(o)||u(["main h1","article h1","h1"])||r.title||document.title,excerpt:S(o&&o.description)||r.excerpt,price:d||"",location:m||"",bedrooms:p,bathrooms:h,areaSqft:f}:null}function Yi(e){return t(e||"")||null}function Qi(e,t){if("number"==typeof e)return isFinite(e)&&Math.floor(e)===e?!t&&e<0?null:e:null;var r=Yi(e);if(!r||!/^-?\d+$/.test(r))return null;var n=Number(r);return!isFinite(n)||!t&&n<0?null:n}function ea(e){e.socialKind=null,e.platform=null,e.handle=null,e.replyCount=null,e.community=null,e.score=null}function ta(e){var t=c(e,[function(t,r,n){return[kt(e),r,n].join(" ")}]),r=t.generator.toLowerCase(),n=t.appName.toLowerCase(),o=t.signature.toLowerCase();if(t={generator:r,appName:n,signature:o},document.querySelector("[class*='stldocs-']"))return ra("stldocs",t);if(/astro/.test(r)&&(document.querySelector("#starlight__sidebar, starlight-menu-button, [class*='sl-markdown-content']")||/starlight/.test(o)))return ra("starlight",t);if(/mkdocs/.test(r)||document.querySelector(".md-content")&&document.querySelector(".md-sidebar, .md-header, .md-nav"))return ra("mkdocs",t);if(document.querySelector("meta[name='readme-deploy']")||document.querySelector(".rm-Article, .rm-LandingPage, .rm-ReferenceMain")||/\.readme\.(io|com)$/.test(location.hostname))return ra("readme",t);if(document.querySelector("redoc, rapi-doc")||/redoc/i.test(r)||document.querySelector(".redoc-wrap, .api-content[role='main']"))return ra("redoc",t);if(/buildwithfern|fern/.test(r)||document.querySelector("#fern-sidebar, .fern-page-heading, .fern-prose, .fern-layout-reference, .fern-layout-overview"))return ra("fern",t);if(/nextra/.test(o)||document.querySelector(".nextra-content, .nextra-breadcrumb, #nextra-skip-nav, .nextra-nav-container"))return ra("nextra",t);if(/\bnext(?:\.js|js)?\b/.test(o)&&document.querySelector("#__next, script#__NEXT_DATA__")&&document.querySelector("main article, main .prose, main [data-docs-body], main [data-pagefind-body]"))return ra("next",t);if(/vitepress/.test(r)||document.querySelector("#VPContent, .VPDoc, .VPSidebar, .VPNav"))return ra("vitepress",t);if(/rspress/.test(r)||document.querySelector("#__rspress_root, .rspress-doc, .rp-sidebar, .rp-nav"))return ra("rspress",t);if(/mdbook/i.test(r)||document.querySelector("#sidebar.sidebar, #menu-bar-hover-placeholder, nav.sidebar, #sidebar-toggle"))return ra("mdbook",t);if(/antora/.test(r)||document.querySelector("article.doc, main.main article.doc, .doc .homecards"))return ra("antora",t);if(/mintlify/.test(r)||document.querySelector("[class*='mintlify'], [data-testid='table-of-contents'], nav[aria-label='Table of contents']"))return ra("mintlify",t);if(/gitbook/i.test(r)||/\.gitbook\.io$/.test(location.hostname)||document.querySelector("main [class*='whitespace-pre-wrap']")&&/powered by gitbook/i.test(document.body.innerText))return ra("gitbook",t);if(document.querySelector(".scalar-api-reference, .scalar-app, [data-scalar]"))return ra("scalar",t);if(/docusaurus/.test(r)||document.querySelector("meta[name='generator'][content^='Docusaurus'], #__docusaurus, [class*='docusaurus-'], .theme-doc-markdown, .theme-doc-sidebar-container, nav[aria-label='Docs sidebar']"))return ra("docusaurus",t);if(/^(doc\.rust-lang\.org|docs\.rs)$/.test(location.hostname)||document.querySelector(".rustdoc, .sidebar-elems, #crate-search"))return ra("rustdoc",t);var i=document.querySelector("main .class-description, .contentContainer .description"),a=document.querySelector("main .summary-table, main .member-summary, main .member-details, .contentContainer .summary-table, .contentContainer .details");return i&&a?ra("javadoc",t):document.querySelector("#dartdoc-main-content, .self-name")&&document.querySelector("section.summary dt .name a, section.summary dt a")?ra("dartdoc",t):/^pkg\.go\.dev$/.test(location.hostname)||document.querySelector("#main-content .Documentation, #main-content #pkg-index, .go-DetailsHeader")?ra("go_pkg",t):/readthedocs/.test(o)||document.querySelector(".rst-content, .wy-nav-content, .wy-nav-side")?ra("readthedocs",t):/sphinx/.test(r)||document.querySelector("body[class*='sphinx'], .document, .sphinxsidebar, [role='navigation'] .sphinxsidebarwrapper, div.body[role='main'], dt.sig, a.headerlink, div.highlight")?ra("sphinx",t):document.querySelector("devsite-header, devsite-content, devsite-toc, devsite-nav")||/devsite/.test(o)?ra("google_devsite",t):document.querySelector("[class*='elastic-docs'], [data-elastic-docs]")||/elastic/i.test(o)&&document.querySelector("[class*='docBody'], article[class*='doc']")?ra("elastic_docs",t):document.querySelector("main .markdown-body, main article, main [data-pagefind-body], main .prose")?ra("generic_docs",t):null}function ra(e,t){return{system:e,generator:t.generator,appName:t.appName,signature:t.signature}}function na(e){if(!e)return null;var r=vt(e,["[class*='method-route']","[class*='route-endpoint']","code","pre"]);r=t(r).replace(/\s+/g,"");var n=vt(e,["h2","h3","h4","strong","[class*='method-name']","[class*='method-title']","[class*='summary-title']"]),o=t(e.textContent);if(n||(n=o,r&&(n=t(n.replace(r,""))),n=(n=n.replace(/\s{2,}/g," ")).split(/(?:(?:GET|POST|PUT|PATCH|DELETE|OPTIONS|HEAD)\/)/)[0].trim()),!n)return null;var i=vt(e,["p","[class*='description']","[class*='summary-description']"]);i&&(i=jt(t(i)),n&&0===i.indexOf(n)&&(i=t(i.slice(n.length))),r&&0===i.indexOf(r)&&(i=t(i.slice(r.length))));var a={text:n};return r&&(a.route=r),i&&(a.detail=i),a.groups=function(e){var t=[],r={};return wt(e,"section, div, details",".stldocs-property").forEach(function(e){if(!e.closest(".stldocs-property")){var n=xt(e,["h2","h3","h4","summary","[class*='title']"],".stldocs-property");if(/\b(parameters?|request|responses?|returns?|body|headers?)\b/i.test(n)){var o=ia(e).map(function(e){return la(e,0)}).filter(Boolean);o.length&&!r[n]&&(r[n]=!0,t.push({heading:n,fields:o}))}}}),t}(e),a}function oa(e,t){return xt(e,[t],".stldocs-property")}function ia(e){return wt(e,".stldocs-property",".stldocs-property").filter(function(t){return t!==e})}function aa(e){return e=t(e),/^("|').+("|')$/.test(e)}function la(e,r){if(!e)return null;r=r||0;var n=t(oa(e,".stldocs-property-declaration, [class*='property-declaration']"));return!n||aa(n)?null:{declaration:n,description:jt(oa(e,".stldocs-property-description, [class*='property-description']"))||null,fields:ia(e).map(function(e){return la(e,r+1)}).filter(Boolean)}}function sa(e,t){return t=t||"",e.map(function(e){var r=t+"- `"+e.declaration+"`";return e.description&&(r+=": "+e.description),e.fields&&e.fields.length&&(r+="\n"+sa(e.fields,t+" ")),r}).join("\n")}function ca(e,r){if(!(r=r||ta(e))||"stldocs"!==r.system&&"starlight"!==r.system)return null;var n=["main .stldocs-content","main .stldocs-resource-content","main .stl-content-panel","main article","main [data-pagefind-body]","main .sl-markdown-content","main .content-panel","main"].map(function(e){return Array.prototype.slice.call(document.querySelectorAll(e))}).flat().sort(function(e,n){function o(e){var n=e.querySelectorAll("[class*='stldocs-method-summary'], [class*='method-summary']").length,o=e.querySelectorAll("[class*='stldocs-method-route'], [class*='method-route']").length,i=e.querySelectorAll("[class*='resource-description']").length;return 1e3*n+200*o+80*e.querySelectorAll(".stldocs-property").length+50*i+("starlight"===r.system&&(e.matches(".sl-markdown-content, [data-pagefind-body]")||e.querySelector(".sl-markdown-content, [data-pagefind-body]"))?5e3:0)+("starlight"===r.system&&e.querySelector("h1, h2")&&e.querySelector("p, pre, code, ul, ol")?800:0)-("starlight"===r.system&&e.matches("article.card, .card")&&!e.querySelector("h1, h2")?1200:0)+t(e.textContent).length}return o(n)-o(e)})[0]||null,o=ze(n||document.body);Re(o),bt(o,{});var i,a,l=u(["main h1","main article h1"])||t(e.title||document.title),s=(i={},a=[],o.querySelectorAll("[class*='stldocs-method-summary'], [class*='method-summary']").forEach(function(e){var t=na(e);if(t){var r=t.text+"|"+(t.route||"");i[r]||(i[r]=!0,a.push(t))}}),a),c=function(e,r){var n={},o=[],i=t(String(r||"")).toLowerCase().replace(/s$/i,"");return Array.prototype.slice.call(e.querySelectorAll(".stldocs-property")).forEach(function(e){if(!function(e){for(var t=e&&e.parentElement;t;){if(t.classList&&t.classList.contains("stldocs-property"))return t;t=t.parentElement}return null}(e)&&!e.closest("[class*='stldocs-method-summary'], [class*='method-summary']")){var r=t(oa(e,".stldocs-property-declaration, [class*='property-declaration']"));if(r&&!aa(r)&&!n[r]){var a=jt(oa(e,".stldocs-property-description, [class*='property-description']")),l=ia(e).map(function(e){return la(e,0)}).filter(Boolean);if(a||l.length){var s=/(?:=|:)\s*object\s*\{|\bobject\s*\{/.test(r),c=t(r.split(/[:=]/)[0]).replace(/\s+$/,""),u=c.replace(/([a-z0-9])([A-Z])/g,"$1 $2").split(/[\s_.-]+/).filter(Boolean).length,d=i&&0===c.toLowerCase().indexOf(i);n[r]=!0,o.push({declaration:r,description:a||null,fields:l,objectSchema:s,score:(s?600:0)+200*l.length+(a?50:0)+(d?700:0)+(i&&-1!==r.toLowerCase().indexOf(i)?250:0)-120*(r.match(/\s+or\s+/g)||[]).length-80*Math.max(u-2,0)+Math.min(r.length,80)})}}}}),(o.some(function(e){return e.objectSchema})?o.filter(function(e){return e.objectSchema}):o).map(function(e){return delete e.score,delete e.objectSchema,e})}(o,l);if(s.length||c.length){var d=function(e,r,n){for(var o=[".stldocs-resource-description","[class*='resource-description']",".stldocs-resource-content > p",".stldocs-markdown > p",".sl-markdown-content > p","p"],i=0;i<o.length;i+=1)for(var a=Array.prototype.slice.call(e.querySelectorAll(o[i])),l=0;l<a.length;l+=1){var s=a[l];if(!s.closest(".stldocs-property, [class*='stldocs-method-summary'], [class*='method-summary'], .stldocs-properties, [class*='resource-content-properties']")){var c=jt(t(s.textContent));if(c&&c!==n&&!(c.length<20)&&!/^(models?\s*expand\s*collapse|api reference)$/i.test(c))return c}}var u=jt(t(r&&r.excerpt));return u&&u!==n?/^api reference for .* endpoints?$/i.test(u)?null:u:null}(o,e,l),m=[];return l&&m.push("# "+l),d&&m.push(d),s.length&&m.push(function(e){return e.map(function(e){var t="- "+e.text;return e.route&&(t+=" ("+e.route+")"),e.detail&&(t+=": "+e.detail),e.groups&&e.groups.length&&e.groups.forEach(function(e){t+="\n - "+e.heading+"\n"+sa(e.fields," ")}),t}).join("\n")}(s)),c.length&&m.push(function(e){var t=["## Schemas"];return e.forEach(function(e){t.push("### "+e.declaration),e.description&&t.push(e.description),e.fields.length&&t.push(sa(e.fields,""))}),t.join("\n\n")}(c)),{title:l||e.title,byline:null,excerpt:d||e.excerpt,siteName:e.siteName||location.hostname,publishedTime:null,html:"",markdown:m.filter(Boolean).join("\n\n").trim(),textContent:t(m.join(" ")),docsLike:!0,readerMode:!1,contentType:"article"}}return Nt(e,n,{title:u(["main h1","main article h1"])||t(e.title||document.title),rewriteRoot:function(e){e.querySelectorAll("#starlight__sidebar, starlight-menu-button, [class*='stldocs-sidebar'], [class*='stldocs-sidebar-entry'], [class*='stldocs-expander'], [class*='sidebar-pane'], [class*='sidebar-content'], [class*='sidebar-accordion'], [class*='table-of-contents'], .stldocs-breadcrumbs, .stl-ui-dropdown, .discord, aside").forEach(function(e){e.remove()}),"starlight"===r.system&&e.querySelector("h1, h2")&&e.querySelectorAll("article.card, .card").forEach(function(e){var r=t(e.textContent);e.closest(".landing-card, .card--fullwidth")||e.querySelector(".title, .body")||r&&r.length<=600&&!e.querySelector("h1, h2, h3, h4, h5, h6")&&e.remove()}),pt(e,"div, p, span, button, a",/^(on this page|table of contents|copy page|edit page|expand|collapse|api reference)$/i),e.querySelectorAll("h1").forEach(function(e,t){t>0&&e.remove()}),e.querySelectorAll("h2, h3, h4, h5, h6, p, div, span").forEach(function(e){var r=t(e.textContent);/expand collapse/i.test(r)&&e.remove(),/^[A-Z][a-z]+(?:[A-Z][a-z]+){1,}$/.test(r)&&r.length<40&&e.remove()})}})}function ua(e,r){if(!(r=r||ta(e))||"antora"!==r.system)return null;var n=St(["main.main article.doc","article.doc","main.main","main"]);if(!n)return null;var i=vt(n,["h1"]);if(!i){var a=t((e.title||document.title).replace(/\s*::\s*Fedora Docs$/i,"")),l=function(e){var r={},n=[];return e.forEach(function(e){document.querySelectorAll(e).forEach(function(e){var o=t(e.textContent);o&&!r[o]&&(r[o]=!0,n.push(o))})}),n}(["article.doc h2","article.doc h3"]).filter(function(e){return e.length>=4&&!/^(contents?|navigation)$/i.test(e)}),s={},c=[],u=".homepage-card, .home-card, .card, [class*='homepage-card'], [class*='home-card'], [class*='doc-card'], li, section";if(n.querySelectorAll("a.homepage-link[href], a.homepage-link-primary[href], a.homepage-link-secondary[href]").forEach(function(e){var r=e.getAttribute("href"),n=r||o(e.href),i=t(e.textContent),a="",l=e.closest(u),d=e.nextElementSibling;(!d||!/^(P|DIV|UL|OL)$/i.test(d.tagName||"")||l&&d.closest(u)!==l||(a=t(d.textContent)),a)||(a=xt(l||e.closest("section, div, li, article")||e.parentElement,["p","li"],u))===i&&(a="");!n||!i||i.length<4||s[n]||(s[n]=!0,c.push({text:i,url:n,detail:a}))}),!c.length)return null;var d=[];a&&d.push("# "+a),l.length&&d.push(l.map(function(e){return"- "+e}).join("\n")),d.push(C(c));var m=d.filter(Boolean).join("\n\n").trim();return{title:a||e.title,byline:null,excerpt:e.excerpt,siteName:e.siteName||location.hostname,publishedTime:null,html:"",markdown:m,textContent:t(m),readerMode:!1,contentType:"list"}}return Nt(e,n,{title:i||t((e.title||document.title).replace(/\s*::\s*Fedora Docs$/i,"")),rewriteRoot:function(e){e.querySelectorAll(".toolbar, .crumbs, .page-languages, .languages-menu, .languages-menu-toggle, .page-versions, .page-navigation, .nav-container, .edit-this-page, .pagination, aside, nav").forEach(function(e){e.remove()}),e.querySelectorAll("div, p, section, small").forEach(function(e){var r=t(e.textContent);!r||r.length>220||/(the .* docs team|version\s+[A-Z]?\d+|last review\b|last build\b|edit this page\b|report an issue\b)/i.test(r)&&e.remove()})}})}function da(e){return(e.title||document.title).replace(/\s*[|\-]\s*[^|\-]*$/,"")}function ma(e,r){if(!(r=r||ta(e))||"mkdocs"!==r.system)return null;var n="";return Lt(e,["main .md-content__inner","main .md-content","article.md-content__inner","main article","main"],{titleSelectors:["main h1","article h1"],fallbackTitle:function(e){return t(e.title||document.title)},postProcessMarkdown:function(e){return!n||/## Reference Pages[\s\S]*\n\s*-\s+\[/.test(e)?e:[e=e.replace(/\n*## Reference Pages\s*$/i,""),n].filter(Boolean).join("\n\n")},rewriteRoot:function(e){var r=function(){if(!/\/(?:reference|api)\/?$/i.test(location.pathname||""))return null;var e=location.href.replace(/#.*$/,"").replace(/\/$/,"")+"/",r=Array.prototype.slice.call(document.querySelectorAll(".md-nav__link[href]")).find(function(t){return o(t.getAttribute("href")).replace(/#.*$/,"").replace(/\/$/,"")+"/"===e}),n=r&&r.closest(".md-nav__item--nested, .md-nav__item--section, .md-nav__item"),i=n&&n.querySelector("nav.md-nav");if(!i)return null;var a={},l=[];if(i.querySelectorAll("a[href]").forEach(function(r){var n=o(r.getAttribute("href")),i=n.replace(/#.*$/,"").replace(/\/$/,"")+"/",s=t(r.textContent);s&&i!==e&&!a[i]&&(a[i]=!0,l.push({title:s,href:n}))}),l.length<3)return null;var s=document.createElement("section"),c=document.createElement("h2"),u=document.createElement("ul");return c.textContent="Reference Pages",s.appendChild(c),l.forEach(function(e){var t=document.createElement("li"),r=document.createElement("a");r.href=e.href,r.textContent=e.title,t.appendChild(r),u.appendChild(t)}),s.appendChild(u),s}();n=function(e){if(!e)return"";var r=Array.prototype.slice.call(e.querySelectorAll("a[href]")).map(function(e){return"- ["+t(e.textContent)+"]("+e.href+")"}).filter(Boolean);return r.length?"## Reference Pages\n\n"+r.join("\n"):""}(r),r&&e.querySelectorAll("a[href]").length<4&&e.appendChild(r),Me(e,se+", .md-source-file, .md-content__button, .md-feedback, .mdx-badge, .md-nav, .md-sidebar"),pt(e,"div, p, span, button, a",/^(table of contents|view source|edit this page)$/i),e.querySelectorAll(".admonition, details.note, details.tip, details.warning, details.info, details.danger, details.example, details.question, details.abstract, details.success, details.failure, details.bug, details.quote").forEach(function(e){var r=e.querySelector(".admonition-title, summary"),n=t(r&&r.textContent||"Note").toUpperCase();r&&r.remove();var o=t(e.textContent);if(o){var i=document.createElement("blockquote");i.innerHTML="<p><strong>"+n+":</strong> "+o+"</p>",e.replaceWith(i)}}),e.querySelectorAll("font").forEach(function(e){e.replaceWith(document.createTextNode(e.textContent))})}})}function pa(e,r){return $t(e,r,{system:"docusaurus",rootSelectors:["main .markdown","main article","main .theme-doc-markdown","article .theme-doc-markdown","main [class*='docItemContainer']","main"],titleSelectors:["main .markdown h1","main h1","article h1",".theme-doc-markdown h1"],fallbackTitle:da,removeSelectors:se+", .theme-doc-breadcrumbs, .theme-doc-toc-desktop, .theme-doc-toc-mobile, .pagination-nav, .theme-edit-this-page, .theme-last-updated",removeTextPattern:/^(skip to main content|on this page|edit this page|copy for llm|view as markdown|ask ai|search)$/i,contentType:function(e,t){return yt(e,t)?"list":"article"},preserveSelector:"[role='tab']",rewriteRoot:function(e){!function(e,t){for(var r=document.createTreeWalker(e,NodeFilter.SHOW_TEXT),n=[];r.nextNode();)n.push(r.currentNode);n.forEach(function(e){var r=e.nodeValue.replace(t," ");r!==e.nodeValue&&(e.nodeValue=r)})}(e,/\b(?:Get started|Getting started|Docs|API|FAQ|Contributing|Troubleshooting|Guides?|Reference)(?:\s*\|\s*(?:Get started|Getting started|Docs|API|FAQ|Contributing|Troubleshooting|Guides?|Reference)){2,}\s*/gi),Me(e,"header, footer, nav, aside, [role='banner'], [role='navigation'], [class*='navbar' i], [class*='sidebar' i], [class*='menu' i], [class*='toc' i]");var r=Array.prototype.slice.call(e.querySelectorAll("[role='tabpanel']")),n=[];e.querySelectorAll("[role='tab'][aria-controls]").forEach(function(e){if("true"===e.getAttribute("aria-selected")||/(?:^|\s)(?:tabs__item--active|tabItem--active|active|is-active)(?:\s|$)/.test(e.className||"")){var o=r.find(function(t){return t.id===e.getAttribute("aria-controls")});if(o&&-1===n.indexOf(o)){n.push(o);var i=t(e.textContent);if(i){var a=document.createElement("h3");a.textContent=i,o.insertBefore(a,o.firstChild)}}}}),n.length?r.forEach(function(e){-1===n.indexOf(e)&&e.remove()}):e.querySelectorAll("[role='tabpanel'][hidden], [role='tabpanel'][aria-hidden='true']").forEach(function(e){e.remove()}),e.querySelectorAll("[role='tablist']").forEach(function(e){e.remove()}),e.querySelectorAll(".admonition, [class*='admonition']").forEach(function(e){var r=t((e.querySelector(".admonition-heading, .admonition-title")||{}).textContent)||"Note",n=t(e.textContent).replace(new RegExp("^"+r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+"\\s*","i"),"");if(!n)return e.remove();var o=document.createElement("blockquote");o.innerHTML="<p><strong>"+r.toUpperCase()+":</strong> "+n+"</p>",e.replaceWith(o)})}})}function ha(e){var r=kt(e);if(!je(/(^|\.)docs\.stripe\.com$/)&&!/stripe/i.test(r))return null;if(!/^\/api\//.test(location.pathname)&&!/api reference/i.test(r))return null;var i,a=t((e.title||document.title).replace(/\s*[|·-]\s*Stripe API Reference$/i,"")),l=Array.prototype.slice.call(document.querySelectorAll("main section, article section")).find(function(e){var r=e.querySelector("h1, h2, h3");return(r=t(r&&r.textContent))&&a&&(r===a||0===r.indexOf(a))});if(l){var s=l.parentElement;i=(s?s.querySelectorAll(":scope > section").length:0)>1?s:l}else i=document.querySelector("main article, article, main");return Pt(e,i,{titleSelectors:["article h1","main h1"],fallbackTitle:a,rewriteRoot:function(e){pt(e,"a, button, span, div, p",/^(ask about this section|copy for llm|view as markdown)$/i),e.querySelectorAll("a[href]").forEach(function(e){var r=o(e.getAttribute("href")),n=t(e.textContent);r===location.href.split("#")[0]&&n===a&&e.remove()}),e.querySelectorAll("[aria-hidden='true']").forEach(function(e){n(e)<2e3&&e.remove()}),e.querySelectorAll("[class*='collapsed'], [class*='summary'], [class*='unexpanded']").forEach(function(e){var r=e.querySelector("code, strong, b, [class*='name']"),o=t(r&&r.textContent);if(o&&!(o.length>50)){var i=e.nextElementSibling||e.previousElementSibling;if(i){var a=i.querySelector("code, strong, b, [class*='name']");t(a&&a.textContent)===o&&(n(e)<n(i)?e.remove():i.remove())}}}),e.querySelectorAll("h2, h3, h4, h5, h6").forEach(function(e){var r=function(e){var r=(e=t(e||"").replace(/deprecated$/i," [Deprecated]")).match(/^([a-z0-9_.]+?)(nullable)?\s*(string|integer|object|array|boolean|enum|timestamp|hash|map|float)(expandable)?$/i);if(!r)return e.replace(/([a-z])([A-Z][a-z]+)/g,"$1 $2");var n=[];return r[2]&&n.push("nullable"),n.push(r[3].toLowerCase()),r[4]&&n.push("expandable"),r[1]+" - "+n.join(" ")}(e.textContent);r&&(e.textContent=r)});var r=e.querySelectorAll("h1");if(r.length>1){var i={};r.forEach(function(e){var r=t(e.textContent).toLowerCase().replace(/\s*\[?deprecated\]?\s*$/i,"");i[r]?e.remove():i[r]=!0})}e.querySelectorAll("h1").forEach(function(e){e.textContent=t(e.textContent).replace(/deprecated$/i," [Deprecated]")})},postProcessMarkdown:function(e){var t=e.split("\n"),r={};(t.forEach(function(e){var t=e.match(/^#{2,6}\s+([a-z_][a-z0-9_]*(?:nullable\s*)?(?:string|integer|object|array|boolean|enum|timestamp|hash|map|float)?(?:\s*expandable)?)/i);t&&(r[t[1].toLowerCase().replace(/\s+/g,"")]=!0)}),Object.keys(r).length>0)&&(e=t.filter(function(e){var t=e.match(/^-\s+([a-z_][a-z0-9_]*(?:nullable\s*)?(?:string|integer|object|array|boolean|enum|timestamp|hash|map|float)?(?:\s*expandable)?)/i);if(!t)return!0;var n=t[1].toLowerCase().replace(/\s+/g,"");return!r[n]}).join("\n"));return e}})}function fa(e){var r=kt(e);return je(/(^|\.)docs\.github\.com$/)||/github docs/i.test(r)?Pt(e,function(){if(!/^\/(?:[a-z]{2}(?:-[A-Z]{2})?\/)?rest\//.test(location.pathname||""))return null;var e=document.querySelector("main#main-content, main");return e&&Array.prototype.filter.call(e.querySelectorAll("h2, h3"),function(e){var r=t(e.textContent);return r&&!/^(fine-grained access tokens|parameters|http response status codes|code samples)\b/i.test(r)}).length>=2?e:null}()||St(["main .markdown-body","main"]),{titleSelectors:["main h1",".markdown-body h1"],fallbackTitle:function(e){return t((e.title||document.title).replace(/\s*-\s*GitHub Docs$/i,""))},preserveSelector:"button[aria-label*='copy' i]",rewriteRoot:function(e){e.querySelectorAll("clipboard-copy, [data-copy-feedback], [data-testid='copy-button']").forEach(function(e){e.remove()}),e.querySelectorAll("button[aria-label*='copy' i]").forEach(function(e){var r=t(e.textContent)||t(e.getAttribute("aria-label"));if(r){var n=document.createElement("p");n.textContent=r,e.replaceWith(n)}}),e.querySelectorAll("[role='tablist'], ul[class*='SegmentedControl'], .prc-SegmentedControl-SegmentedControl-lqIXp").forEach(function(e){e.remove()}),pt(e,"div, p, span, button, a",/^(copy to clipboard|request example|response)$/i)}}):null}function ga(e){var t=String(e||"").replace(/\\\r?\n\s*/g,"");try{t=JSON.stringify(JSON.parse(t),null,2)}catch(e){t=t.replace(/\\n/g,"\n").replace(/\\r/g,"\r").replace(/\\t/g,"\t").replace(/\\'/g,"'").replace(/\\"/g,'"').replace(/\\\\/g,"\\")}return t.trim()}function ya(e){var r=kt(e);if(!je(/(^|\.)api\.baselinker\.com$/)&&!/baselinker/i.test(r))return null;var n=_("method"),o=Pt(e,St(["#main",".main_text","main"]),{fallbackTitle:n||t((e.title||document.title).replace(/\s*-\s*baselinker\.com$/i,""))||"API documentation",rewriteRoot:function(e){e.querySelectorAll("nav, aside, footer").forEach(function(e){e.remove()}),pt(e,"a, button, div, span",/^(method list|test your request|changelog|copy)$/i)}});if(n&&(!o||t(o.markdown||"").length<200)){var i=function(e){if(!e)return null;for(var t=new RegExp("examples\\[['\"]"+Zt(e)+"['\"]\\]\\s*=\\s*'([\\s\\S]*?)';"),r=Array.prototype.slice.call(document.querySelectorAll("script")),n=0;n<r.length;n+=1){var o=(r[n].textContent||"").match(t);if(o&&o[1])return ga(o[1])}return null}(n);if(i){var a=["# "+n,"Baselinker API request example for the `"+n+"` method.","```json",i,"```"].join("\n\n");return{title:n,byline:e.byline,excerpt:"Baselinker API request example for the "+n+" method.",siteName:e.siteName||location.hostname,publishedTime:e.publishedTime,html:"",markdown:a,textContent:t(a),readerMode:!1,contentType:"article"}}}return o}function ba(e){var r=kt(e);if(!je(/(^|\.)rubyapi\.org$/)&&!/ruby api/i.test(r))return null;var n=t((e.title||document.title).replace(/\s*\|\s*Ruby API.*$/i,""))||"Ruby API";return"/"===location.pathname||/^\/\d+(?:\.\d+)?\/?$/.test(location.pathname)?function(e,r){var n={},i=[];if(document.querySelectorAll("a[href*='/o/']").forEach(function(e){var r=o(e.getAttribute("href")),a=t(e.textContent);if(r&&/\/\d+(?:\.\d+)?\/o\//.test(r)&&/^read more$/i.test(a)&&!n[r])for(var l=e.parentElement;l&&l!==document.body;){var s=t((l.querySelector("h2, h3")||{}).textContent||""),c=vt(l,["p"]);if(s&&c)return n[r]=!0,void i.push({text:s,url:r,detail:c});l=l.parentElement}}),i.length<3)return null;var a=["# "+r,e.excerpt,C(i)].filter(Boolean).join("\n\n"),l=j({title:r,excerpt:e.excerpt,siteName:e.siteName||location.hostname,markdown:a,textContent:t(a)});return l.byline=e.byline,l.publishedTime=e.publishedTime,l}(e,n):Lt(e,["main",".ruby-documentation"],{titleSelectors:["main h1",".ruby-documentation h1"],fallbackTitle:n,rewriteRoot:function(e){e.querySelectorAll("form, button").forEach(function(e){e.remove()}),pt(e,"h2, h3, p, div, span",/^(type signatures|preview)$/i)}})}function va(e){var r=kt(e).toLowerCase();if(!je(/(^|\.)(guides|edgeguides)\.rubyonrails\.org$/)&&!/ruby on rails guides/.test(r))return null;var n=St(["#main","main article","main","article"]);if(!n)return null;var o=vt(n,["p"]),i=Pt(e,n,{titleSelectors:["#main h1","main h1","article h1"],fallbackTitle:function(){return(e.title||document.title).replace(/\s*[—-]\s*Ruby on Rails Guides$/i,"")},rewriteRoot:function(e){e.querySelectorAll("#topNav, #feature, #subCol, #subColWrap, #guides, #guides-index, .guides-index, .guide-index, .chapter, .chapter-list, .sidebar, aside, nav, header").forEach(function(e){e.remove()}),pt(e,"a, p, div, span",/^(skip to main content|skip to article body)$/i),pt(e,"h2, h3",/^chapters$/i),e.querySelectorAll("ol, ul").forEach(function(e){ft(e)&&e.remove()})}});if(!i)return null;var a=t(o||i.excerpt);if(a&&-1===i.markdown.indexOf(a)){var l=i.markdown;Et(l,i.title)&&(l=l.split("\n\n").slice(1).join("\n\n")),i.markdown=["# "+i.title,a,l].filter(Boolean).join("\n\n"),i.textContent=t(i.markdown)}return i}function wa(e){var r=kt(e).toLowerCase(),n=!!document.querySelector("body.mediawiki, #mw-content-text, .mw-parser-output, meta[name='generator'][content^='MediaWiki']");if(!(je(/(^|\.)(api\.rubyonrails\.org|ruby-doc\.org)$/)||/rdoc documentation/.test(r)||!n&&!!document.querySelector("#class-metadata, #bodyContent")))return null;if(/documenting the ruby language/i.test(e.title||document.title)&&!document.querySelector("#class-metadata, #bodyContent, main h1"))return null;var o=St(["#bodyContent","#content","#main","main"]);return o?Pt(e,o,{titleSelectors:["#bodyContent h1","#content h1","#main h1","main h1"],fallbackTitle:function(){return e.title||document.title},titleFormatter:function(e){return e.replace(/\s*-\s*RDoc Documentation$/i,"").replace(/^(class|module)\s+/i,"")},rewriteRoot:function(e){e.querySelectorAll("form, nav, header, #class-metadata, .method-source-code, .source_code, .filetree, .panel, .search-section, .quicksearch, aside").forEach(function(e){e.remove()}),pt(e,"a, span, div, p",/^(skip to content|skip to search|search|menu|index)$/i),pt(e,"h2, h3",/^(home|what(?:’|')?s here)$/i),e.querySelectorAll("ul, ol, div, section").forEach(function(e){ft(e)&&e.remove()}),e.querySelectorAll("a").forEach(function(e){var r=t(e.textContent);/^(¶|↑)$/.test(r)&&e.remove()}),e.querySelectorAll("h1, h2, h3, h4").forEach(function(e){e.textContent=t(e.textContent).replace(/[¶↑]/g,"").replace(/\s+</g," < ")})}}):null}function xa(e){var t=kt(e).toLowerCase();return je(/(^|\.)api\.rubyonrails\.org$/)||/rubyonrails|activerecord::|actioncontroller::/.test(t)?wa(e):null}function Sa(e){var r={},n=[];return e.forEach(function(e){document.querySelectorAll(e).forEach(function(e){var o=t(e.textContent);o&&!r[o]&&(r[o]=!0,n.push(o))})}),n}function ka(r){var n=function(){var t=w(["VideoObject","Clip","Movie","TVEpisode"]),r={title:t&&(t.name||t.headline),description:t&&t.description,byline:t&&(t.author||t.publisher),publishedTime:t&&(t.uploadDate||t.datePublished),duration:t&&t.duration,views:null},n=e.ytInitialPlayerResponse,o=n&&n.videoDetails,i=n&&n.microformat&&n.microformat.playerMicroformatRenderer;return o&&(r.title=r.title||o.title,r.description=r.description||o.shortDescription,r.byline=r.byline||o.author,r.views=r.views||o.viewCount),i&&(r.byline=r.byline||i.ownerChannelName,r.publishedTime=r.publishedTime||i.publishDate||i.uploadDate),r}(),o=t($("og:type","property")||"").toLowerCase(),i=!(!e.ytInitialPlayerResponse||!e.ytInitialPlayerResponse.videoDetails),a=!(!r.video&&!/^video\b/.test(o)),l=/\/(watch|shorts|live|videos?|player|clip|replay)\b/i.test(location.pathname||""),s=!!document.querySelector("video, iframe[src*='youtube'], iframe[src*='youtu.be'], iframe[src*='vimeo'], [data-video-id], [data-video], [data-player]");if(!!!(i||a||l&&s)||!(l||i||a))return null;if(!i&&!l&&!/^video\b/.test(o)&&Array.prototype.filter.call(document.querySelectorAll("article p, main p"),function(e){return t(e.textContent||"").length>=80}).length>=3)return null;var c=function(e,r){var n=t(r.title||""),o=Sa(["main h1","article h1","h1"]).filter(function(e){return!/^(loading|this video is processing|verify to continue|checking if the site connection is secure)/i.test(e)});return!n&&o.length&&(n=o[0]),n||(n=t(e.title||document.title)),n.replace(/\s*[-|]\s*(YouTube|Vimeo|Videos & Movies on Vimeo)$/i,"")}(r,n),d=function(e,r){var n=t(r.description||e.excerpt||"");return n||Sa(["#description-inline-expander","ytd-expandable-video-description-body-renderer","#description.ytd-watch-metadata","#description","[data-testid='vd-wrapper'] p","main article p","main p"]).find(function(e){return!(e.length<30||/^(loading|you'll be able to view it as soon as it's done|verify to continue|checking if the site connection is secure)/i.test(e))})||null}(r,n),m=x(n.byline)||r.byline,p=S(n.publishedTime)||u(["time[datetime]"],"datetime")||r.publishedTime,h=[],f=S(n.duration),g=S(n.views);return f&&h.push("Duration: "+f),g&&h.push("Views: "+g),c&&d?T({title:c,byline:m,publishedTime:p,description:d,details:h,siteName:r.siteName||location.hostname,hostAware:!0}):null}function Aa(e){if(!je(/(^|\.)(youtube\.com|youtu\.be)$/))return null;if(!_("v")&&!/^\/(watch|shorts|live)\b/.test(location.pathname))return null;var r=ka(e);if(r)return r;var n=w(["VideoObject"]),o=t(n&&(n.name||n.headline)||e.title).replace(/\s*[-|]\s*YouTube$/i,""),i=u(["#description-inline-expander","ytd-expandable-video-description-body-renderer","#description.ytd-watch-metadata","#description"])||S(n&&n.description)||e.excerpt,a=x(n&&(n.author||n.publisher))||e.byline,l=S(n&&(n.uploadDate||n.datePublished))||e.publishedTime,s=[],c=Sa(["ytd-macro-markers-list-item-renderer h4","ytd-macro-markers-list-item-renderer #title"]);return S(n&&n.duration)&&s.push("Duration: "+S(n.duration)),c.length&&s.push("Chapters: "+c.join(" | ")),o&&i?T({title:o,byline:a,publishedTime:l,description:i,details:s,siteName:e.siteName||"YouTube",hostAware:!0}):null}function Ca(e,r){if(r=r||{},!document.body||!ne())return null;if(ie(document))return null;if(Ar())return null;if(document.querySelector("article h1, article [itemprop='articleBody'], [type='application/ld+json']")){var n=t(document.body.textContent||"");if(document.querySelector("article h1")&&n.length<3e4)return null}var i=[];["main","[role='main']","#main",".main","body"].forEach(function(e){document.querySelectorAll(e).forEach(function(e){-1===i.indexOf(e)&&i.push(e)})});var a=null,l=r.minItems||5,s=t([e&&e.title||"",e&&e.siteName||"",document.title||"",document.body.textContent||""].join(" ")).toLowerCase().slice(0,6e3),c=/\b(find|search|book|compare|deals?|offers?|destinations?|routes?|tickets?|timetables?|trains?|travel|hotels?|homes?|properties|real estate|for sale|for rent|marketplaces?|listings?|latest|top stories|headlines|breaking news)\b/i.test(s);return i.forEach(function(e){var r={},n=[],i=[],s=t((e.querySelector("h1")||{}).textContent||"");e.querySelectorAll("h2, h3").forEach(function(e){var r=t(e.textContent||"");e.closest&&e.closest("aside, nav, header, footer, [role='navigation'], [role='complementary'], [role='banner'], [role='contentinfo']")||$r(e.parentElement)||r.length>=6&&r.length<=90&&!oe(r,"")&&i.push(r)}),e.querySelectorAll("a[href]").forEach(function(e){if(!e.closest("header, nav, footer, aside, form, [role='navigation'], [role='banner'], [role='contentinfo']")){var i=e.getAttribute("href")||"",a=o(i),l=t((e.querySelector("h1, h2, h3, h4")||{}).textContent||e.textContent||e.getAttribute("aria-label")||""),s=a&&function(e){return re(e).replace(/([?&])(?:utm_[^&=]+|fbclid|gclid|dclid|msclkid|mc_cid|mc_eid)=[^&]*&?/gi,"$1").replace(/[?&]$/,"")}(a);if(a&&!r[s]&&!oe(l,i)&&(!(l.length<12)||/[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}]/u.test(l))){var c=e.closest("article, section, li, [class*='card'], [class*='tile'], [class*='item'], [class*='listing'], [class*='result'], [class*='destination'], [class*='route'], [class*='story']")||e.parentElement,u=function(e){return e.closest&&e.closest("article, li, [class*='card'], [class*='tile'], [class*='item'], [class*='listing'], [class*='result'], [class*='destination'], [class*='route'], [class*='story']")}(e);if(u&&u!==c&&u.contains(e)&&(c=u),!u||!u.querySelector("article h1 a[href], article h2 a[href], article h3 a[href], article h4 a[href]")||u.querySelector("h1 a[href], h2 a[href], h3 a[href], h4 a[href]").contains(e)){var d=ri(c,l);d.length>180&&(d=""),r[s]=!0,n.push({text:l,url:a,detail:d})}}}});var u=t(e.textContent||""),d=e.querySelectorAll("a[href]").length,m=e.querySelectorAll("article, section, li, [class*='card'], [class*='tile'], [class*='item'], [class*='listing'], [class*='result'], [class*='destination'], [class*='route'], [class*='story']").length,p=s&&s.length>=8&&s.length<=120?180:0,h=60*Math.min(i.length,6),f=180*n.length+p+h+12*Math.min(m,18)+Math.min(d,80);n.length<l&&!(n.length>=3&&p&&i.length>=2)||(c||n.length>=6&&m>=6&&i.length>=3)&&(d<n.length||u.length<120||(!a||f>a.score)&&(a={root:e,items:n,hero:s,headings:i,score:f}))}),a?a.items.length<l&&(!a.hero||a.headings.length<2)?null:a:null}function qa(e){if(ne()){var r=jo(e,{portalRoot:!0});if(r.portalRootEvidence)return r}var n=Ca(e,{minItems:4});if(!n)return null;var o=n.hero||e&&e.title||document.title||location.hostname,i=[];n.hero&&i.push("# "+n.hero),e&&e.excerpt&&i.push(e.excerpt),n.headings.length>=2&&i.push(n.headings.map(function(e){return"- "+e}).join("\n")),i.push(C(n.items));var a=i.filter(Boolean).join("\n\n").trim();return t(a).length<180?null:j({title:o,excerpt:e&&e.excerpt,siteName:e&&e.siteName||location.hostname,markdown:a,textContent:t(a)})}function Ta(e,r){if(!je((r=r||{}).hostPattern))return null;var n=function(e){for(var t=e.bodySelectors||[],r=0;r<t.length;r+=1){var n=document.querySelector(t[r]);if(n)return n}if(!e.sportParagraphFallback)return null;var o=document.querySelectorAll("article p.ft-text");if(!o.length)return null;var i=document.createElement("div");return o.forEach(function(e){i.appendChild(Pe(e,document))}),i}(r);return n&&n.querySelector("p, figure, blockquote")?(nt(n,e,{minBodyTextLength:r.publicMinTextLength||1200,minParagraphCount:3,paragraphMinLength:80,hardPaywallPattern:/(?:para seguir leyendo|contin[uú]a leyendo|lee este art[ií]culo completo|solo para suscriptores|contenido exclusivo para suscriptores)/i,removalSelectors:He.concat(["[data-piano-offer]"])}),Fe(e,Je(document.querySelector((r.leadSelectors||[".ue-c-article__standfirst",".ue-c-article__summary",".article__summary",".article-intro",".summary"]).join(", ")),n),{title:u(r.titleSelectors||["h1.ue-c-article__title","h1.article-title","h1"]),byline:u(r.bylineSelectors||[".ue-c-article__byline",".ue-c-article__author",".article-author","[rel='author']"])||e.byline,minTextLength:r.minTextLength||250,cloneRoot:!1,rewriteRoot:function(e){Me(e,function(e){return[".ue-c-article__share",".ue-c-social-share",".sharebar","[class*='share' i]",".ue-c-ad","[class*='advert' i]","[aria-roledescription='Publicidad']",".ue-c-article__comments","[class*='comment' i]",".ue-c-article__related","[class*='related' i]","[class*='recommend' i]",".newsletter","[class*='newsletter' i]"].concat(He,e.extraRemovalSelectors||[])}(r).join(", ")),function(e){e.querySelectorAll("p, div, span, section, aside").forEach(function(e){var r=t(e.textContent||"");r.length>280||/^(suscr[ií]bete|suscr[ií]bete aqu[ií]|contenido exclusivo|solo para suscriptores|inicia sesi[oó]n|hazte premium|premium|publicidad)$/i.test(r)&&e.remove()})}(e),"function"==typeof r.rewriteRoot&&r.rewriteRoot(e)}})):null}function _a(e,t,r){return!0===e||!1!==e&&("function"==typeof e?e(t):je(e,r))}function Ea(e,t){for(var r=e&&e.host||location.hostname||"",n=0;n<hostAwareProfiles.length;n+=1){var o=hostAwareProfiles[n];if(!0!==o.condition&&_a(o.condition,e,r)){var i=o.fn(e,t);if(i)return i}}for(var a=0;a<hostAwareProfiles.length;a+=1){var l=hostAwareProfiles[a];if(!0===l.condition&&_a(l.condition,e,r)){var s=l.fn(e,t);if(s)return s}}return null}function ja(e){var r=kt(e);if(!je(/(^|\.)pinterest\.com$/)&&!/pinterest/i.test(r))return null;if(!/^\/search\//.test(location.pathname)&&!_("q")&&!/showing more search results for/i.test(document.body&&document.body.textContent))return null;var n=t(_("q")),i={},a=[];return document.querySelectorAll("a[href*='/pin/']").forEach(function(e){var r=o(e.getAttribute("href")),n=t(e.getAttribute("aria-label")||e.textContent);if(!n){var l=e.querySelector("img[alt]");n=t(l&&l.getAttribute("alt"))}!r||!n||n.length<12||i[r]||/^(log in|sign up|explore|search|filters|you are signed out)$/i.test(n)||(i[r]=!0,a.push({text:n,url:r}))}),a.length>=4?j({title:n?"Pinterest results for "+n:e.title||document.title,excerpt:e.excerpt,siteName:e.siteName||"Pinterest",items:a}):e.excerpt?T({title:n?"Pinterest results for "+n:e.title||document.title,description:e.excerpt,details:["Access: Pinterest signed-out shell"],siteName:e.siteName||"Pinterest",contentType:"article"}):null}function La(e,n){var o=kt(e);if(!je(/(^|\.)tiktok\.com$/)&&!/tiktok/i.test(o))return null;var i=t(n||""),a=u(["main h1","h1"]),l=u(["main h2","h2"]),s=r((location.pathname||"").replace(/^\/tag\//,"").split("/")[0]||"").replace(/[-_]+/g," ");if(s=t(s),/^\/tag\//.test(location.pathname)||a||l){var c=a||(s?"#"+s:t(e.title||document.title)),d=e.excerpt;d&&!/make your day/i.test(d)||(d="This TikTok page is only partially available, but the visible tag or page summary can still be extracted.");var m=[];return l&&l!==c&&m.push(l),/drag the slider to fit the puzzle|log in/i.test(i)&&m.push("Access notice: TikTok login or verification required"),T({title:c,description:d,details:m,siteName:e.siteName||"TikTok",contentType:"article"})}return/drag the slider to fit the puzzle|slide to verify/i.test(i)?T({title:t(e.title||document.title)||"TikTok verification required",description:e.excerpt||"This TikTok page is presenting a slider verification challenge before the original content is available.",details:["Gate: slider verification"],siteName:e.siteName||"TikTok",contentType:"article"}):null}function $a(e,r){var n=kt(e);if(!je(/(^|\.)ebay\./)&&!/ebay/i.test(n))return null;if(!/\/sch\//.test(location.pathname)&&!_("_nkw")&&!/for sale\s*\|\s*ebay/i.test(n))return null;var i={},a=[];return document.querySelectorAll("a.s-item__link[href*='/itm/'], li.s-item a[href*='/itm/']").forEach(function(e){var r=o(e.getAttribute("href")),n=t(e.textContent||e.querySelector("img[alt]")&&e.querySelector("img[alt]").getAttribute("alt")),l=ri(e.closest("li.s-item, .srp-results li")||e.parentElement,n);!r||!n||n.length<8||i[r]||(i[r]=!0,a.push({text:n,url:r,detail:l}))}),a.length>=4?j({title:e.title||document.title,excerpt:e.excerpt,siteName:e.siteName||"eBay",items:a}):e.excerpt||/cookie/i.test(r||"")?T({title:e.title||document.title,description:e.excerpt||"This eBay page is showing a cookie or privacy prompt before full results are available.",details:["Access notice: eBay cookie or privacy prompt"],siteName:e.siteName||"eBay",contentType:"article"}):null}function Pa(e){if(!je(/(^|\.)amazon\./))return null;if("/s"!==location.pathname&&!_("k"))return null;var r={},n=[];return document.querySelectorAll("[data-component-type='s-search-result'], .s-result-item[data-asin]").forEach(function(e){var i=e.querySelector("h2 a[href], a.a-link-normal.s-no-outline[href]"),a=e.querySelector("h2 span, h2 a span"),l=t(a?a.textContent:i&&i.textContent),s=o(i&&i.getAttribute("href")),c=e.querySelector(".a-price .a-offscreen"),u=t(c&&c.textContent),d=e.querySelector("[aria-label*='out of 5 stars'], .a-icon-alt"),m=t(d&&(d.getAttribute("aria-label")||d.textContent)),p=e.querySelector("a[href*='#customerReviews'], .a-size-small .a-link-normal"),h=[u,m,t(p&&p.textContent)].filter(Boolean).join(" - ");!l||!s||l.length<8||r[s]||(r[s]=!0,n.push({text:l,url:s,detail:h}))}),n.length<3?null:L(e,{title:e.title||document.title,excerpt:n[0].text,items:n})}function Na(e){if(!je(/(^|\.)amazon\./))return null;if(!/(\/dp\/|\/gp\/product\/)/.test(location.pathname))return null;var r=w(["Product","Book"]),n=u(["#productTitle","#title span","#ebooksProductTitle"])||S(r&&r.name)||e.title,o=S(r&&r.description)||e.excerpt||u(["#bookDescription_feature_div .a-expander-content","#bookDescription_feature_div .a-expander-partial-collapse-content","#productDescription p","#productDescription"]),i=u(["#bylineInfo",".author a","#brand"]),l=f(["#feature-bullets li span","#detailBullets_feature_div li span.a-list-item","#productOverview_feature_div td"]).filter(function(e){return e.length>=12&&e!==n&&!/^see more$/i.test(e)}),s=[],c=r&&r.offers;Array.isArray(c)&&(c=c[0]);var d=c&&c.price?t(c.price+(c.priceCurrency?" "+c.priceCurrency:"")):null;if(d&&s.push("Price: "+d),c&&c.availability&&s.push("Availability: "+a(c.availability)),r&&r.aggregateRating&&r.aggregateRating.ratingValue){var m=t(r.aggregateRating.ratingValue+"/5"),p=r.aggregateRating.reviewCount||r.aggregateRating.ratingCount;s.push("Rating: "+m+(p?" from "+p+" reviews":""))}return n&&o?T({title:t(n).replace(/: Amazon.*$/i,""),byline:i,description:o,details:s,highlights:l,siteName:e.siteName||location.hostname}):null}function za(e){var r=kt(e);if(!je(/(^|\.)booking\.com$/)&&!/booking\.com/i.test(r))return null;if(location.pathname&&"/"!==location.pathname)return null;var n=u(["main h1","h1"])||t((e.title||document.title).replace(/^Booking\.com\s*[|:-]\s*/i,"")),i=e.excerpt,a=f(["main h2"]).filter(function(e){return e.length>=5&&!/^(offers?)$/i.test(e)}),l={},s=[];if(document.querySelectorAll("main a[href*='/searchresults.html'], main a[href*='/hotel/'], main a[href*='/apartments/'], main a[href*='/resorts/'], main a[href*='/villas/'], main a[href*='/homes/']").forEach(function(e){var r=t(e.textContent),n=o(e.getAttribute("href"));!r||!n||r.length<3||r.length>80||l[n]||/^(learn more|search|sign in|register|list your property)$/i.test(r)||(l[n]=!0,s.push({text:r,url:n}))}),!n&&!a.length&&s.length<3)return null;var c=[];n&&c.push("# "+n),i&&c.push(i),a.length&&c.push(a.map(function(e){return"- "+e}).join("\n")),s.length>=3&&c.push(C(s));var d=c.filter(Boolean).join("\n\n").trim();return L(e,{title:n||e.title,excerpt:i,siteName:e.siteName||"Booking.com",markdown:d,textContent:t(d),items:s.length>=3?s:null,contentType:s.length>=3?"list":"article"})}function Ma(e){var r=kt(e);if(!/(^|\b)ft\.com\b|financial times/i.test(r))return null;if(location.pathname&&"/"!==location.pathname)return null;var n={},i=[];return document.querySelectorAll("main a[href*='/content/'], main a[href*='/stream/']").forEach(function(e){var r=t(e.textContent).replace(/^opinion content\.?\s*/i,""),a=o(e.getAttribute("href")),l=ri(e.closest("article, section, .story-group__article, .story-group-slice, .o-teaser")||e.parentElement,r);!r||!a||r.length<18||r.length>180||n[a]||/^(top stories|news|opinion|companies|markets news|video|life & arts|spotlight|most read|must-reads you missed|more opinion|more companies|more europe news|more markets news|more technology)$/i.test(r)||(n[a]=!0,i.push({text:r,url:a,detail:l}))}),i.length<4?null:j({title:e.title||document.title,excerpt:e.excerpt,siteName:e.siteName||location.hostname,items:i})}function Ra(e){var t=kt(e);if(!je(/(^|\.)economist\.com$/)&&!/economist/i.test(t))return null;if(location.pathname&&"/"!==location.pathname)return null;var r={},n=[];return document.querySelectorAll("main a[href]").forEach(function(e){var t=e.getAttribute("href")||"";if(/(\/\d{4}\/\d{2}\/\d{2}\/|\/interactive\/)/.test(t)){var i=ti(e),a=o(t),l=ri(e.closest("article, section, li, div")||e.parentElement,i);!i||!a||i.length<18||i.length>180||r[a]||/^(subscribe|log in|the economist pro|weekly edition|current topics|world|business & economics|opinion|in depth|culture, history & society|our a-to-zs|featured story)$/i.test(i)||(r[a]=!0,n.push({text:i,url:a,detail:l}))}}),n.length<4?null:j({title:e.title||document.title,excerpt:e.excerpt,siteName:e.siteName||"The Economist",items:n})}function Ba(e){var t=kt(e);if(!je(/(^|\.)bloomberg\.com$/)&&!/bloomberg/i.test(t))return null;if(/(\/news\/|\/opinion\/|\/features\/|\/graphics\/)/.test(location.pathname))return null;var r={},n=[];return document.querySelectorAll("a[href*='/news/articles/'], a[href*='/news/features/'], a[href*='/opinion/articles/'], a[href*='/features/'], a[href*='/graphics/'], a[href*='/news/newsletters/']").forEach(function(e){var t=ti(e).replace(/^AP Photo\s*/i,"").replace(/^Opinion\s*/i,""),i=o(e.getAttribute("href")),a=ri(e.closest("article, section, div")||e.parentElement,t);!t||!i||t.length<18||t.length>220||r[i]||/^(bloomberg opinion|bloomberg businessweek|newsletter:|watch)$/i.test(t)||(r[i]=!0,n.push({text:t,url:i,detail:a}))}),n.length<4?null:j({title:e.title||document.title,excerpt:e.excerpt,siteName:e.siteName||"Bloomberg",items:n})}window.hostAwareProfiles=window.hostAwareProfiles||[],window.registerHostAwareProfile=function(e,t){hostAwareProfiles.push({condition:e,fn:t})};function Ha(e){for(var t=0;t<e.length;t+=1){var r=document.querySelector(e[t]);if(r)return r}return null}function Fa(e){var r=(e=e||{}).metadata||{},n=e.abstractRoot||null,o=[];if(n&&o.push(n),e.bodyRoots?o=o.concat(e.bodyRoots.filter(Boolean)):e.bodyRoot&&o.push(e.bodyRoot),!o.length&&!e.details)return null;var i=function(e,r){var n="";if(e.title)n=e.title;else if(e.titleNode)n=e.titleNode.getAttribute&&e.titleNode.getAttribute("content")||e.titleNode.textContent||"";else if(e.titleSelectors)for(var o=0;o<e.titleSelectors.length;o+=1){var i=document.querySelector(e.titleSelectors[o]);if(i&&(n=t(n=i.getAttribute&&i.getAttribute("content")||i.textContent||"")))break}return n=t(n||r.title||document.title||""),e.titleCleanup&&(n=n.replace(e.titleCleanup,"")),t(n)}(e,r),a=document.createElement("article");if(i){var l=document.createElement("h1");l.textContent=i,a.appendChild(l)}if(o.forEach(function(t){var r=function(e,t){if(!e)return null;var r=ze(e),n="#articleDenialBlock, #denialBlockWrapper, #references, #bibliography, #keywords, section[property='keywords'], [id*='supplementary' i], [class*='supplementary' i], .articleMetrics_count, .articleMetrics, .metrics, .references, .recommended, .recommendations, .citation-tools, .purchase, .access-options, .toolbar-metric__menu-section, .article-tools, .related, .figure-inline-download, .carousel-item, [role='doc-bibliography'], [class*='metric' i], [class*='metrics' i], [class*='recommend' i], [class*='related' i], [class*='citation' i], [class*='reference' i], [class*='collateral' i], [class*='share' i], [class*='purchase' i], [class*='institution' i], aside, nav, form, button, input, footer, script, style, noscript, template, iframe";return t&&(n+=", "+t),r.querySelectorAll(n).forEach(function(e){e.remove()}),r.querySelectorAll("a[href*='/action/doSearch']").forEach(function(e){(e.closest("li, [role='listitem']")||e).remove()}),Re(r),r}(t,e.extraNoiseSelector);r&&a.appendChild(r)}),e.details&&e.details.length){var s=document.createElement("ul");e.details.forEach(function(e){var t=document.createElement("li");t.textContent=e,s.appendChild(t)}),a.appendChild(s)}Re(a);var c=Ut(tr(a.innerHTML));e.markdownFallback&&t(c).length<.2*t(a.textContent||"").length&&(c=e.markdownFallback());var u=t(c);if(u.length<(e.minTextLength||300))return null;var d=t(n&&n.textContent||"");return{title:i||r.title,byline:r.byline,excerpt:(e.excerpt||d).slice(0,280)||r.excerpt,siteName:e.siteName||r.siteName,publishedTime:r.publishedTime,html:a.innerHTML,markdown:c,textContent:u,readerMode:!1,contentType:"article",hostAware:!0}}function Oa(e,r,n){var o=[document.title,e&&e.title,e&&e.siteName,document.body&&document.body.textContent];return r&&r.length&&o.splice(3,0,u(r)),t(o.join(" ")).slice(0,n||2e4)}function Ia(e){return Ha(e||[])}function Da(e,r){if(r.signalSelectors&&!Ha(r.signalSelectors))return null;var n=Ia(r.abstractSelectors),o=Ia(r.bodySelectors);if(!o&&r.fallbackBodyRoot&&(o=r.fallbackBodyRoot()),!n||!o)return null;if(r.signature){if(!r.signature(e))return null}else if(r.signaturePattern){var i=Oa(e,r.signatureSelectors,r.signatureMaxLength);if(!(r.signaturePattern.test(i)||r.allowCitationDoiSignature&&document.querySelector("meta[name='citation_doi']")))return null}var a=t(n.textContent||""),l=t(o.textContent||"");return a.length<(r.minAbstractTextLength||80)||l.length<(r.minBodyTextLength||600)||r.rejectBodyPattern&&r.rejectBodyPattern.test(l)?null:Fa({metadata:e,abstractRoot:o.contains&&o.contains(n)?null:n,bodyRoot:o,excerpt:r.excerpt?r.excerpt(a):a,titleSelectors:r.titleSelectors,titleCleanup:r.titleCleanup,siteName:r.siteName?r.siteName(e):void 0,minTextLength:r.minTextLength||700})}var Ua={highwire:{abstractSelectors:["#abstract[role='doc-abstract']","section[role='doc-abstract']#abstract","section[property='abstract']"],bodySelectors:["#bodymatter[property='articleBody']","section[property='articleBody'][typeof='Text']"],signatureSelectors:["meta[name='citation_publisher']","meta[name='citation_journal_title']","meta[property='og:site_name']"],signaturePattern:/\b(PNAS|Proceedings of the National Academy|HighWire|citation_doi)\b/i,allowCitationDoiSignature:!0,minBodyTextLength:500,titleSelectors:[".citation__title",".article-header h1","h1[property='name']","h1","meta[name='citation_title']"],titleCleanup:/\s*\|\s*PNAS\s*$/i,minTextLength:600},elsevier:{abstractSelectors:["#abstracts[data-extent='frontmatter']"],bodySelectors:["#bodymatter[property='articleBody']","section[property='articleBody'][data-extent='bodymatter']"],signature:function(e){var t=document.getElementById("build-style-article");return t&&/\/products\/marlin\//i.test(t.getAttribute("href")||"")||document.querySelector("meta[name=citation_pii], meta[name=citation_doi]")||/\bElsevier\b|ScienceDirect|Cell Press/i.test(Oa(e))},minAbstractTextLength:80,minBodyTextLength:1,rejectBodyPattern:/get full text access\s+log in,? subscribe or purchase/i,titleSelectors:["h1","header h1",".core-container h1"],excerpt:function(e){return u(["#author-abstract","section[property='abstract']"])||e},siteName:function(e){return e.siteName||"Elsevier"},minTextLength:300},generic:{signalSelectors:["meta[name='citation_doi']","meta[name='citation_journal_title']","meta[name='citation_title']","meta[name='dc.Identifier'][content*='doi' i]","section[property='abstract']","[role='doc-abstract']",".art-abstract",".html-abstract","[property='articleBody']",".html-body","#bodymatter"],abstractSelectors:["section[property='abstract']","[role='doc-abstract']","#abstract[role='doc-abstract']",".art-abstract",".html-abstract",".article__abstract",".article-abstract",".abstractSection",".NLM_abstract","#abstract",".abstract"],bodySelectors:["#bodymatter[property='articleBody']","#bodymatter","section[property='articleBody']","[property='articleBody']","#html-body",".html-body",".art-body",".article-content .html-body","article[typeof*='ScholarlyArticle' i]","article[class*='article' i]",".article__body",".article-body",".c-article-body",".ArticleBody","main article"],fallbackBodyRoot:function(){var e=Array.prototype.filter.call(document.querySelectorAll("section[id^='sec'], section[id^='Sec'], .section"),function(e){return t(e.textContent||"").length>=120});return e.length<2?null:e.reduce(function(e,r){var n=t(r.textContent||"").length;return!e||n>e.textLength?{node:r.parentNode||r,textLength:n}:e},null).node},rejectBodyPattern:/get full text access\s+log in,? subscribe or purchase/i,titleSelectors:["meta[name='citation_title']","h1[property='name']",".citation__title",".article-header h1","article h1","h1"],minTextLength:700}};function Za(e){var r=document.querySelector(".article_abstract, .abstractSection, .article__abstract, .NLM_abstract, #abstract, section[property='abstract'], [property='abstract']");if(!r)return null;var n=t(r.textContent||"");if(n.length<120)return null;var o=t([document.title,e&&e.title,e&&e.siteName,u(["meta[name='citation_publisher']","meta[name='citation_journal_title']"]),document.body&&document.body.textContent].join(" ")).slice(0,16e3);return/\b(acs publications|american chemical society|journal of chemical education)\b/i.test(o)?Fa({metadata:e,abstractRoot:r,titleSelectors:[".article_header-title",".citation__title","h1[property='name']","h1"],titleCleanup:/\s*-\s*ACS Publications\s*$/i,excerpt:n,minTextLength:180}):null}function Wa(e){function r(e){var r=Array.prototype.reduce.call(e.querySelectorAll(".article-content .article-text"),function(e,t){var r=t.querySelectorAll(".section.toc-section a[data-toc^='s']").length;return!e||r>e.sections?{node:t,sections:r}:e},null),n=r&&r.node;return n?{abstractNode:n.querySelector(".abstract.toc-section, .abstract"),bodySections:Array.prototype.filter.call(n.querySelectorAll(".section.toc-section"),function(e){var r=e.querySelector("a[data-toc]"),n=r&&r.getAttribute("data-toc")||"",o=t(e.textContent||"");return/^(?:s|sec)\d+$/i.test(n)&&o.length>=80})}:null}var n=r(document);if(!n||n.bodySections.length<3){var o=Un(),i=document.createElement("div");i.innerHTML=o&&o.html||"";var a=r(i);a&&(!n||a.bodySections.length>n.bodySections.length)&&(n=a)}if(!n||!n.abstractNode||n.bodySections.length<2)return null;var l=n.abstractNode,s=n.bodySections;if(!(document.querySelector("meta[name='citation_doi'], meta[name='citation_journal_title']")||/\b(open access|peer-reviewed|research article|article info)\b/i.test(t(document.body&&document.body.textContent||"").slice(0,12e3))))return null;var c=u([".article-header h1","h1","meta[name='citation_title']"])||e.title||document.title;return c=t(c||"").replace(/\s*\|\s*PLOS\s+\w+\s*$/i,""),Fa({metadata:e,abstractRoot:l,bodyRoots:s,title:c,markdownFallback:function(){var e=c?["# "+c]:[];return[l].concat(s).forEach(function(r){r.querySelectorAll("h2, h3, h4, p, figcaption").forEach(function(r){var n=t(r.textContent||"");n&&(/^H2$/i.test(r.tagName)?e.push("","## "+n):/^H3$/i.test(r.tagName)?e.push("","### "+n):/^H4$/i.test(r.tagName)?e.push("","#### "+n):e.push("",n))})}),Ut(e.join("\n").trim())},minTextLength:300})}function Ga(e){return Da(e,Ua.highwire)}function Ka(e){return Da(e,Ua.elsevier)}function Va(e){var r=document.querySelector("xpl-document-abstract, .document-abstract");if(!r)return null;var n=t([document.title,e&&e.title,e&&e.siteName,document.querySelector("meta[name='citation_doi']")&&document.querySelector("meta[name='citation_doi']").getAttribute("content"),document.body&&document.body.textContent].join(" ")).slice(0,2e4);if(!/\bIEEE\s+Xplore\b|\bieeexplore\.ieee\.org\b|\bIEEE Conference Publication\b/i.test(n))return null;var o=Array.prototype.filter.call(r.querySelectorAll(".abstract-text-content, [class*='abstract-text' i], [property='abstract']"),function(e){return t(e.textContent||"").length>=80});if(!o.length)return null;var i=o.reduce(function(e,r){var n=t(r.textContent||"");return!e||n.length>e.text.length?{node:r,text:n}:e},null);if(!i||i.text.length<160)return null;var a=t(e.title||u(["meta[name='citation_title']","h1"]));a=a.replace(/\s*\|\s*IEEE.*$/i,"");var l=document.createElement("section"),s=document.createElement("h2"),c=document.createElement("p");s.textContent="Abstract",c.textContent=i.text.replace(/^Abstract:\s*/i,""),l.appendChild(s),l.appendChild(c);var d=[];return f([".stats-document-abstract-publishedIn",".doc-abstract-confdate",".doc-abstract-pubdate",".doc-abstract-doi",".u-pb-1"],8).forEach(function(e){var r=t(e).replace(/\s*Show More\s*$/i,"");!r||r.length>220||/^(abstract|metadata|abstract:)/i.test(r)||-1===d.indexOf(r)&&d.push(r)}),Fa({metadata:e,abstractRoot:l,title:a,excerpt:i.text,details:d,siteName:e.siteName||"IEEE Xplore",minTextLength:220})}function Ja(e){var r=document.querySelector("blockquote.abstract"),n=je(/(^|\.)arxiv\.org$/)&&/^\/abs\//.test(location.pathname||"");if(!r||!n)return null;var o=u(["h1.title","h1.titlemath","main h1","h1"])||e.title||document.title;o=t(o).replace(/^Title:\s*/i,"");var i=u([".authors"]);i=t(i||"").replace(/^Authors?:\s*/i,"");var a=t(r.textContent||"").replace(/^Abstract:\s*/i,"");if(!o||!a)return null;var l=[];f([".dateline",".metatable .tablecell",".metatable td",".metatable dd"],8).forEach(function(e){/^(subjects?|cited by|references?|related|download|view pdf)$/i.test(e)||l.push(e)});var s=["# "+o,[i?"- Author: "+i:null].concat(l.map(function(e){return"- "+e})).filter(Boolean).join("\n"),a].filter(Boolean).join("\n\n").trim(),c=document.createElement("article"),d=document.createElement("h1"),m=document.createElement("p");return d.textContent=o,m.textContent=a,c.appendChild(d),c.appendChild(m),{title:o,byline:i||e.byline,excerpt:a,siteName:e.siteName||"arXiv",publishedTime:e.publishedTime,html:c.outerHTML,markdown:s,textContent:t(s),readerMode:!1,contentType:"article",hostAware:!0}}function Xa(e){return Da(e,Ua.generic)}function Ya(e,r,n){var o=(n||[]).map(function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+"\\s*:?"}).join("|"),i=new RegExp(r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+":\\s*([\\s\\S]*?)(?="+(o||"$^")+"|$)","i"),a=e.match(i);return a?t(a[1]).replace(/\s+Search on .*$/i,""):""}function Qa(e){if(!function(e){if(!/^\/p\//i.test(location.pathname||""))return!1;if(!document.querySelector(".available-content .body.markup, .post-content .body.markup, article.post .body.markup"))return!1;var r=t([e&&e.title,e&&e.siteName,document.title,u([".post-title","h1.post-title","article.post h1"]),u(["meta[property='og:image']","meta[name='twitter:image']"],"content")].join(" "));return/\bsubstack\b|substackcdn\.com|substack-post-media/i.test(r)||!!document.querySelector("article.newsletter-post.post, .post-header .post-title")}(e))return null;var r=document.querySelector(".available-content .body.markup")||document.querySelector(".post-content .body.markup")||document.querySelector("article.post .body.markup")||document.querySelector(".available-content")||document.querySelector(".post-content");return r?Fe(e,r,{title:u([".post-title","h1.post-title","article.post h1","h1"])||e.title,byline:u([".byline-names",".post-meta .profile-hover-card-target",".post-header a[href*='/profile/']"])||e.byline,minTextLength:250,rewriteRoot:function(e){e.querySelectorAll(".subscription-widget-wrap, .subscribe-widget, .paywall, .comment-list, [class*='comment'], [class*='subscribe'], [role='dialog']").forEach(function(e){e.remove()})}}):null}function el(e,r){var n=t(e.title||document.title||r||"");return t(n=(n=n.replace(/\s*[|·-]\s*(PyPI|RubyGems\.org|npm).*$/i,"")).replace(/\s+\|\s+RubyGems\.org\s+\|.*$/i,""))||r}function tl(e){var r,n,o=location.hostname||"",i=function(){var e=(location.pathname||"").split("/").filter(Boolean);return e.length<2?null:"project"===e[0]||"gems"===e[0]||"package"===e[0]?e[1]:null}();if(!i)return null;if(/(^|\.)pypi\.org$/i.test(o)&&/^\/project\/[^/]+\/?$/i.test(location.pathname||""))r=["#description .project-description","#description",".project-description"],n="PyPI";else if(/(^|\.)rubygems\.org$/i.test(o)&&/^\/gems\/[^/]+\/?$/i.test(location.pathname||""))r=["main","#markup.gem__desc",".gem__desc"],n="RubyGems.org";else{if(!/(^|\.)npmjs\.com$/i.test(o)||!/^\/package\/[^/]+\/?$/i.test(location.pathname||""))return null;r=["#readme","#tabpanel-readme article","[aria-labelledby='package-tab-readme'] article"],n="npm"}for(var a=0;a<r.length;a+=1){var l=document.querySelector(r[a]),s=l.querySelector("h1, h2"),c=t(s&&s.textContent),u=Fe(e,l,{title:c&&0===c.toLowerCase().indexOf(i.toLowerCase())?c:el(e,i),minTextLength:80,excerpt:e.excerpt,siteName:e.siteName||n,extra:{packagePage:!0},rewriteRoot:function(e){Array.prototype.slice.call(e.querySelectorAll("script, style, noscript, svg, .sr-only")).forEach(function(e){e.remove()})}});if(u)return u}return null}function rl(e){if(!e)return!1;if(e.hidden||"true"===e.getAttribute("aria-hidden"))return!1;var t=window.getComputedStyle?window.getComputedStyle(e):null;return!(t&&("none"===t.display||"hidden"===t.visibility||"0"===t.opacity))}function nl(){var e={},r=[];return Array.prototype.slice.call(document.querySelectorAll(".component-container")).forEach(function(n){if(rl(n)){var o=V(n,[".name","[data-component-name]","h3","h4"]);if(o&&!/^visit\s+/i.test(o)){var i=function(e){var r=t((e.querySelector("[data-component-status]")||e).getAttribute("data-component-status")||"").replace(/_/g," ");if(r||(r=V(e,[".component-status",".status-msg",".status-icon-button"])),!r){var n=e.querySelector("[aria-label][class*='status'], [data-original-title][class*='status']");r=t(n&&(n.getAttribute("aria-label")||n.getAttribute("data-original-title"))||"")}return r}(n),a=V(n,["[id^='uptime-percent-']",".legend-item-uptime-value"]),l=n.querySelector("[data-original-title], [aria-label^='More information']"),s=t(l&&l.getAttribute("data-original-title")||""),c=o.toLowerCase();if(!e[c]){e[c]=!0;var u=o;i&&(u+=" - "+i),a&&!/^(% uptime|uptime)$/i.test(a)&&(u+=" ("+a.replace(/\s*%\s*uptime$/i,"% uptime")+")"),s&&s.toLowerCase()!==o.toLowerCase()&&(u+=" - "+s),r.push(u)}}}}),r}function ol(e){if(!function(e){if(document.body&&/\bstatus\b/.test(document.body.className||"")&&document.querySelector(".components-section, .component-container, .incident-container"))return!0;if(document.querySelector("[data-statuspage-id], .components-section, #components, .incidents, .scheduled-maintenance"))return!0;var r=t([e&&e.siteName,u(["meta[property='og:site_name']"],"content"),u([".powered-by a","a[href*='atlassian.com/software/statuspage']"]),document.title].join(" "));return/statuspage/i.test(r)&&!!document.querySelector(".layout-content.status, .components-statuses, .components-container")}(e))return null;var r=u([".status-header h1","h1"])||e.title||document.title||"Status Page",n=u([".page-status .status",".page-status",".status.font-large",".status-description"]),o=u([".text-section","meta[name='description']"],"content")||e.excerpt,i=nl(),a=function(){var e=[];return Array.prototype.slice.call(document.querySelectorAll(".incident-container, .scheduled-maintenance-container")).forEach(function(t){if(rl(t)){var r=V(t,[".incident-title a",".incident-title","a.whitespace-pre-wrap","h3","h4"]);if(r){var n=["- "+r];Array.prototype.slice.call(t.querySelectorAll(".update")).forEach(function(e){var t=V(e,["strong"]),r=V(e,[".whitespace-pre-wrap","p"]),o=V(e,["small","time"]),i=[];t&&i.push(t),r&&i.push(r),o&&i.push(o),i.length&&n.push(" - "+i.join(" - "))}),e.push(n.join("\n"))}}}),e}();if(!n&&0===i.length&&0===a.length)return null;var l=["# "+r];o&&o.toLowerCase()!==r.toLowerCase()&&l.push(o),n&&l.push("- Overall status: "+n),i.length&&l.push("## Components\n\n"+i.map(function(e){return"- "+e}).join("\n")),a.length&&l.push("## Recent Incidents\n\n"+a.join("\n"));var s=Ut(l.filter(Boolean).join("\n\n").trim()),c=t(s);return c.length<40?null:L(e,{title:r,excerpt:n||i[0]||a[0]||e.excerpt,html:(document.querySelector(".layout-content.status")||document.querySelector("main")||document.body||{}).innerHTML||"",markdown:s,textContent:c,contentType:"list",hostAware:!0,statusPage:!0})}function il(e,r,i){if(i=i||{},!r||n(r)<(i.minText||200))return null;var a=i.preserveContentNav?Pe(r,document):ze(r);i.preserveContentNav&&(a.querySelectorAll("nav.contents, nav[class*='contents' i]").forEach(function(e){var t=document.createElement("section");t.innerHTML=e.innerHTML,e.replaceWith(t)}),Re(a),a.querySelectorAll("a").forEach(function(e){var t=e.getAttribute("href");t&&e.setAttribute("href",o(t))})),i.strip&&i.strip(a);var l=tr(a.innerHTML),s=t(l||a.textContent||"");if(s.length<(i.minText||200))return null;var c=t(((i.titleRoot||document).querySelector("h1")||{}).textContent||i.title||e.title||document.title);return c&&!Et(l,c)&&(l="# "+c+"\n\n"+l),{title:c||e.title||document.title,byline:null,excerpt:e.excerpt||s.slice(0,280),siteName:e.siteName||location.hostname,publishedTime:e.publishedTime||null,html:a.innerHTML,markdown:l,textContent:s,readerMode:!1,contentType:i.contentType||"article",hostAware:!0,docsLike:!!i.docsLike}}function al(e){var t,r=e&&e.getAttribute("data-cmp-data-layer"),n="";if(!r)return"";try{t=JSON.parse(r),Object.keys(t).some(function(e){var r=t[e]||{};return!!(n=r["xdm:linkURL"]||r.linkURL||r.url||"")})}catch(e){n=""}return n}function ll(e,r){r=r||{};var i=e.querySelector(r.headingSelector||"h2, h3, h4, [heading-text], [class*='title' i], [class*='heading' i]"),a=e.querySelector("h2 a[href], h3 a[href], h4 a[href], a[href]"),l=t(i&&i.getAttribute("heading-text")||i&&i.textContent||e.getAttribute("heading-text")||e.getAttribute("aria-label")||a&&a.textContent||""),s=e.querySelector(r.detailSelector||"[content-text], [class*='summary' i], [class*='description' i], [class*='desc' i], [class*='body' i], [class*='text' i], p"),c=t(s&&s.getAttribute("content-text")||s&&s.textContent||e.getAttribute("content-text")||""),u=function(e,t){var r=e.querySelector("a[href]"),n=r&&r.getAttribute("href")||t.dataUrl&&t.dataUrl(e)||"";return n?o(n):""}(e,r)||r.fallbackUrl||location.href,d=Array.prototype.slice.call(e.querySelectorAll(r.childLinkSelector||"ul a[href]")).map(function(e){var r=t(e.textContent||"");return r.length<3?null:{text:r,url:o(e.getAttribute("href"))}}).filter(Boolean);return!l||l.length<3||l.length>(r.maxTitleLength||180)||r.requireDetail&&!c||r.minCardText&&!c&&n(e)<r.minCardText?null:{text:l,url:u,detail:c,childLinks:d}}function sl(e,t){var r=(t=t||{}).cardSelector||"article, .card, [class*='card' i], [class*='teaser' i], [class*='tile' i]",n={},o=[];return Array.prototype.slice.call(e.querySelectorAll(r)).forEach(function(e){if(!t.cardFilter||t.cardFilter(e)){var r,i=ll(e,t);i&&(r=i.text+"|"+(i.url||""),n[r]||(n[r]=!0,o.push(i)))}}),o}function cl(e,r,n){if(n=n||{},!r)return null;if("list"===n.contentType){var o,i=sl(r,n);return i.length<(n.minItems||3)?null:(o=function(e,r,n){var o=n&&n.title;return t("function"==typeof o?o(e,r)||"":(document.querySelector("h1")||{}).textContent||o||e.title||document.title||"Items")}(e,r,n),L(e,{title:o,excerpt:e.excerpt,items:i,html:ze(r).innerHTML,textContent:o+"\n"+C(i)}))}return il(e,r,{docsLike:n.docsLike,minText:n.minText,titleRoot:n.titleRoot,title:n.title,strip:function(e){!function(e,t){var r=(t=t||{}).cardSelector||"article, .card, [class*='card' i], [class*='teaser' i]";Array.prototype.slice.call(e.querySelectorAll(r)).forEach(function(e){if(!t.cardFilter||t.cardFilter(e)){var r,n,o,i,a=ll(e,t);if(a){if(r=document.createElement("article"),n=document.createElement(t.headingTag||"h3"),a.url&&a.url!==location.href){var l=document.createElement("a");l.setAttribute("href",a.url),l.textContent=a.text,n.appendChild(l)}else n.textContent=a.text;r.appendChild(n),a.detail&&((o=document.createElement("p")).textContent=a.detail,r.appendChild(o)),a.childLinks&&a.childLinks.length&&(i=document.createElement("ul"),a.childLinks.forEach(function(e){var t=document.createElement("li"),r=document.createElement("a");r.setAttribute("href",e.url),r.textContent=e.text,t.appendChild(r),i.appendChild(t)}),r.appendChild(i)),e.replaceWith(r)}}})}(e,n),Me(e,ce+", [class*='breadcrumb' i], [class*='social' i], [class*='share' i], [class*='embed' i], [class*='newsletter' i], form"),n.strip&&n.strip(e)}})}function ul(e){var t=[{rootSelector:"main [class*='card--with-subsections' i], main [class*='cards--with-subsections' i]",contentRoot:function(e){return e.closest("main")||e.closest("[class*='page-content' i]")||e},candidateFilter:function(e,t,r){return r.filter(function(e){return e.querySelector("h2, h3, h4, a[href]")&&n(e)>=60}).length>=4&&n(t)>=600},docsLike:!0,minText:500,titleRoot:document,cardSelector:"[class*='grid__item' i] > .card, [class*='grid__item' i] > [class~='card']",headingSelector:"h2, h3, h4, [class*='card__title' i]",detailSelector:"[class*='summary' i], p",requireDetail:!0,strip:function(e){e.querySelectorAll("[class*='embed' i]").forEach(function(e){e.remove()})}},{rootSelector:"main .page-document, main [class*='content-area' i], main",candidateFilter:function(e,t,r,o,i){var a=r.filter(function(e){return e.querySelector("h2, h3, a[href]")&&n(e)>=80}),l=e.querySelectorAll("[class*='block __grid' i], [class*='block heading' i]").length;return a.length>=4&&l>=2&&i>=1200&&!!e.querySelector("h1")},score:function(e,t,r,n,o){var i=e.querySelectorAll("[class*='block __grid' i], [class*='block heading' i]").length;return o+500*r.length+150*i},docsLike:!0,minText:900,titleRoot:document,cardSelector:".block.teaser, [class*='grid-block-teaser' i], [class*='grid-teaser-item' i]",headingSelector:"h2, h3, h4",detailSelector:"p",headingTag:"h2",strip:function(e){e.querySelectorAll("[class*='cookie' i]").forEach(function(e){e.remove()})}},{rootSelector:"gui-tile-list, [role='list']",candidateFilter:function(e,t,r,n){var o=e.tagName&&/-/.test(e.tagName.toLowerCase()),i=!!document.querySelector(".aem-Grid, [class*='aem-GridColumn'], [data-cmp-data-layer]");return n.length>=3&&(i||o||r.length>=4)},score:function(e,t,r,n){var o=e.tagName&&/-/.test(e.tagName.toLowerCase()),i=!!document.querySelector(".aem-Grid, [class*='aem-GridColumn'], [data-cmp-data-layer]");return 100*n.length+(o?500:0)+(i?500:0)},contentType:"list",title:function(e){return(document.querySelector("h1")||{}).textContent||e.title||document.title||"Services"},minItems:3,cardSelector:"gui-tile, [class*='tile' i], article, .card, [class*='card' i], [class*='teaser' i], [class*='tile' i]",headingSelector:"gui-tile-heading, [heading-text], [class*='tile-heading' i]",detailSelector:"gui-tile-content, [content-text], [class*='tile-content' i]",dataUrl:al,minCardText:20,minItems:3}],r=null;return t.forEach(function(e){(function(e){return Array.prototype.slice.call(document.querySelectorAll(e.rootSelector)).map(function(t){var r=e.contentRoot?e.contentRoot(t):t,o=Array.prototype.slice.call(t.querySelectorAll(e.cardSelector||"article, .card, [class*='card' i], [class*='teaser' i], [class*='tile' i]")),i=sl(t,e),a=n(r||t),l=a+400*i.length;return r?e.candidateFilter&&!e.candidateFilter(t,r,o,i,a)||i.length<(e.minItems||3)||e.minText&&a<e.minText?null:(e.score&&(l=e.score(t,r,o,i,a)),{root:r,config:e,score:l}):null}).filter(Boolean)})(e).forEach(function(e){(!r||e.score>r.score)&&(r=e)})}),r?cl(e,r.root,r.config):null}function dl(e){if(r=c(null,[function(){var e=document.querySelector("meta[name='Generator' i], meta[name='generator' i]");return t(e&&e.getAttribute("content"))}]).signature,!(/\bDrupal\b/i.test(r)||document.querySelector(".field--name-body, [class*='field--name-' i], [class*='node--type-' i]")||/(?:^|\s)(?:path-[\w-]+|node-[\w-]+)(?:\s|$)/i.test(document.body&&document.body.className||"")))return null;var r,o=Array.prototype.slice.call(document.querySelectorAll("article[class*='overview' i], article[class*='listing' i], .overview-inner-container, .content-main, main article, section.node--view-mode-full, .node--view-mode-full, [itemprop='articleBody'], .field--name-body, .field--name-field-paragraphs, .field--name-field-entity-block, [class*='field--name-body' i]")),i=null;o.forEach(function(e){var t=e.querySelector&&e.querySelector(".field--name-field-paragraphs");t&&n(t)>=200&&(e=t);var r=n(e),o=e.querySelectorAll(".views-element-container, [class*='views-row' i], [class*='view-component' i], [class*='tab-content' i], [class*='blocktab' i], [class*='entity-block' i], [class*='content-link' i], [class*='content-data' i], [class*='block-toggle' i], [class*='field--name-field-entity-block' i], [class*='field--name-field-key-figures' i], [class*='field--name-field-toggle' i], [class*='paragraph--type--cards' i], [class*='card-list' i], [class*='card-heading-list' i], [class*='card-headline' i], [class*='image-besides-text' i], [data-trk*='cards' i]").length,a=r+400*o;r<200||o<1&&!e.matches(".field--name-body, .field--name-field-paragraphs, [class*='field--name-body' i], [itemprop='articleBody']")||(!i||a>i.score)&&(i={root:e,score:a,componentCount:o})});var a=i&&i.root;return!a||n(a)<200?null:cl(e,a,{docsLike:i.componentCount>=2,titleRoot:document,cardSelector:"article.entity-block.content-link, .card-list article, [class*='card-headline' i], [class*='card' i] article, [class*='paragraph--type--cards' i] .card",headingSelector:"h2, h3, h4, [class*='card-headline' i], [class*='title' i]",detailSelector:"[class*='field--name-field-desc' i], [class*='field--name-field-body' i], [class*='summary' i], [class*='description' i], p",strip:function(e){Me(e,ce+", .side-navigation, [class*='side-navigation' i], [class*='language' i], [class*='breadcrumb' i], .left-column, .sharing, .add-on, [class*='search' i], article.entity-block.content-link .content-desc > a[href], form, .visually-hidden, .hidden")}})}function ml(e){return!!document.querySelector(e)}function pl(){return ml("meta[name='gitlab-meta'], .gitlab-meta, .tree-holder, .file-holder, .blob-content, .issuable, .merge-request, .commit-header")||(e=/\b(?:gitlab|gl-|application-ui)\b/i,!(!document.body||!e.test(document.body.className||"")));var e}function hl(e){var t=location.pathname.split("/").filter(Boolean);if("about:"===location.protocol)return!0;if(t.length<2)return!1;if(-1!==location.pathname.indexOf("/-/"))return!1;var r=t[2]||"";return!/^(issues?|pulls?|pull-requests?|merge[-_]requests?|commits?|branches|tags|releases|wiki|settings|src|source|downloads|actions|projects|security|pulse|graphs)$/i.test(r)&&(!(!e||"gitlab"!==e.platform)||(e&&"bitbucket"===e.platform&&/^\/projects\/[^/]+\/repos\/[^/]+\/browse(?:\/)?$/i.test(location.pathname)||2===t.length))}function fl(e,r,n){var o=function(e,r){var n=t(r.title||document.title);return e.titleCleaner&&(n=t(e.titleCleaner(n))),n}(e,r),i=function(e,t){return u(e.descriptionSelectors)||t.excerpt}(e,r),a=r.siteName||e.siteName||location.hostname;if(!n)return o||i?T({title:o,description:i,siteName:a,hostAware:!0}):null;var l=ze(n);Re(l);var s=tr(l.innerHTML).replace(/^README(?:\.[a-z0-9_-]+)?\s*/i,"").trim();return t(s)?(i&&-1===s.toLowerCase().indexOf(i.toLowerCase())&&(s=i+"\n\n"+s),o&&(s="# "+o+"\n\n"+s),{title:o||r.title,byline:r.byline,excerpt:i,siteName:a,publishedTime:r.publishedTime,html:l.innerHTML,markdown:s,textContent:t(s),hostAware:!0,readerMode:!1,contentType:"article"}):i?T({title:o,description:i,siteName:a,hostAware:!0}):null}function gl(e){var t=function(e){return c(e,[function(){return[e&&e.title,e&&e.siteName,u(["meta[name='application-name']","meta[name='generator']","meta[property='og:site_name']"],"content"),document.title,document.body&&document.body.className].join(" ")}]).signature}(e),r=!!document.querySelector(".project-home-panel, .project-information, .readme-holder, .file-holder.readme-holder, [data-testid='blob-viewer-content'] .blob-viewer[data-path][data-rich-type='markup'], [data-testid='blob-viewer-content'] .file-content.md");return/gitlab/i.test(t)&&r||pl()?{platform:"gitlab",siteName:location.hostname,readmeSelectors:["[data-testid='blob-viewer-content'] .blob-viewer[data-path='README.md'][data-rich-type='markup'] .file-content.md","[data-testid='blob-viewer-content'] .blob-viewer[data-path='README.md'] .file-content.md","[data-testid='blob-viewer-content'] .file-content.md",".blob-viewer[data-path='README.md'][data-rich-type='markup'] .file-content.md",".blob-viewer[data-path='README.md'] .file-content.md",".blob-content .file-content.md",".blob-content .js-markup-content.md",".blob-content .markdown-body",".readme-holder .md",".readme-holder .wiki",".readme-holder [data-testid='readme-content']",".file-holder.readme-holder .md",".file-holder.readme-holder .wiki"],descriptionSelectors:[".project-information .project-description",".project-home-panel .project-description",".project-home-panel p"],titleCleaner:function(e){return e.replace(/\s*[·|-]\s*GitLab.*$/i,"")}}:/^GitHub\s+-\s+[^\s/]+\/[^\s:]+/i.test(t)||document.querySelector("[data-testid='repository-container-header'], strong[itemprop='name'] a, h1 strong[itemprop='name']")||ml(".js-repo-pjax-container, [data-pjax], .repository-content, .js-repo-content .markdown-body")?{platform:"github",siteName:"GitHub",readmeSelectors:["#readme article.markdown-body","#readme [data-testid='readme-content']","#readme .markdown-body","[data-testid='readme'] article.markdown-body","[data-testid='readme'] [data-testid='readme-content']","[data-testid='readme-content']","[aria-label='README'] article.markdown-body","[aria-labelledby='readme'] article.markdown-body","article.markdown-body[itemprop='text']","article.markdown-body"],descriptionSelectors:["[data-testid='repository-description']","[itemprop='about']",".BorderGrid-cell p.f4",".repository-content .f4.my-3",".repository-meta-content"],titleCleaner:function(e){return e.replace(/^GitHub -\s*/i,"").replace(/\s*[·|-]\s*GitHub$/i,"")}}:/gitea|forgejo/i.test(t)||document.querySelector(".repository .repo-description, .repository #repo-files-table, .repository .file-view.markup.markdown, .repository .markup.markdown")||ml(".repository, .file-view, .ui.container .repository")?{platform:"gitea",readmeSelectors:[".repository #readme .markdown",".repository #readme .markup.markdown",".repository .file-view.markup.markdown",".repository .markup.markdown","#readme .markdown",".file-content.markup.markdown"],descriptionSelectors:[".repository .repo-description",".repo-description",".repository-summary .description"],titleCleaner:function(e){return e.replace(/\s*[·|-]\s*(Gitea|Forgejo|Codeberg).*$/i,"")}}:/bitbucket/i.test(t)||document.querySelector("[data-testid='repo-overview-description'], [data-testid='repository-readme'], [data-testid='readme-content']")||ml(".bitbucket-header, [data-module='repo']")?{platform:"bitbucket",siteName:"Bitbucket",readmeSelectors:["[data-testid='repository-readme'] [data-testid='readme-content']","[data-testid='readme'] [data-testid='readme-content']","[data-testid='readme-content']",".readme-content .markdown-body",".readme-content",".markdown-body"],descriptionSelectors:["[data-testid='repo-overview-description']","[data-testid='repository-description']"],titleCleaner:function(e){return e.replace(/\s*[·|-]\s*Bitbucket.*$/i,"")}}:/sourcehut|sr\.ht/i.test(t)||ml("#repo-summary, .repo-summary, .repo-nav, .repo-header, #readme")?{platform:"sourcehut",siteName:"sourcehut",readmeSelectors:["#readme article.markdown-body","#readme .markdown-body","#readme .markdown","#readme article","#readme"],descriptionSelectors:["#repo-summary p",".repo-summary p",".repo-summary",".repo-header .description"],titleCleaner:function(e){return e.replace(/\s*[·|-]\s*sourcehut.*$/i,"")}}:null}function yl(e){var r=gl(e);return r&&hl(r)?fl(r,e,function(e){for(var r=0;r<e.length;r+=1)for(var n=Array.prototype.slice.call(document.querySelectorAll(e[r])),o=0;o<n.length;o+=1){var i=n[o];if(i&&t(i.textContent)&&!i.closest("[data-testid='issue-body'], [data-testid='comment-body'], .js-comment-container, .timeline-comment, .comment, .issue-content, .pullrequest-description, .pull-request-description"))return i}return null}(r.readmeSelectors)):null}function bl(e){return e&&e.querySelector("[data-testid='comment-body'], .comment-body, .js-comment-body, .markdown-body[itemprop='text'], [itemprop='text']")}function vl(e){var r=e&&e.querySelector("a.author, [data-testid='comment-author'], a[data-hovercard-type='user']");return t(r&&r.textContent||"").replace(/^@/,"")}function wl(e){var r=e.querySelector("[data-testid='issue-comment-count'], [data-testid='discussion-comment-count'], .js-discussion .comment-count"),n=t(r&&r.textContent||"").match(/^(\d[\d,]*)\s+(?:comments?|replies)$/i);return n?Number(n[1].replace(/,/g,"")):null}function xl(e){var r=e.querySelector("[data-testid='reaction-count'], [data-testid='vote-count']"),n=t(r&&r.textContent||"");return/^-?\d[\d,]*$/.test(n)?Number(n.replace(/,/g,"")):null}function Sl(e){var r=bl(e);if(!r||!t(r.textContent))return"";var n=ze(r);return Me(n,".js-comment-actions, .timeline-comment-actions, .reaction-summary-item, [aria-label='Add reaction']"),Ut(tr(n.innerHTML))}function kl(e){var r=function(){if(!je(/(^|\.)github\.com$/))return null;var e=(location.pathname||"").split("/").filter(Boolean);return 4===e.length&&/^[\w.-]+$/.test(e[0])&&/^[\w.-]+$/.test(e[1])&&/^\d+$/.test(e[3])?-1===["issues","pull","discussions"].indexOf(e[2])?null:{community:e[0]+"/"+e[1],kind:e[2]}:null}();if(!r)return null;var n=document.querySelector("[data-testid='issue-viewer-issue-container'], #discussion_bucket, .js-discussion, .discussion-timeline");if(!n)return null;var o=function(e){for(var t=Array.prototype.slice.call(e.querySelectorAll(".js-comment-container, .timeline-comment, [data-testid='issue-comment'], .discussion-comment")),r=0;r<t.length;r+=1)if(bl(t[r])&&vl(t[r]))return t[r];return null}(n),i=Sl(o);if(!i)return null;var a=t(u(["[data-testid='issue-title']","#issue_title",".js-issue-title","main h1","h1"])||e.title||document.title),l=vl(o);if(!a||!l)return null;var s=function(e,r){var n=[];return Array.prototype.slice.call(e.querySelectorAll(".js-comment-container, .timeline-comment, [data-testid='issue-comment'], .discussion-comment")).forEach(function(e){if(e!==r){var o=Sl(e);if(o){var i=vl(e),a=/\b(?:accepted answer|answer marked as accepted)\b/i.test(t(e.textContent||""))||!!e.querySelector("[data-testid='accepted-answer'], [aria-label*='accepted']");n.push({node:e,author:i,markdown:o,accepted:a})}}}),n}(n,o),c=["# "+a,"- Author: "+l,"- "+("pull"===r.kind?"Pull Request":"discussions"===r.kind?"Discussion":"Issue")+": "+r.community,"## Opening",i];s.length&&c.push("## Comments"),s.forEach(function(e){var t=e.accepted?"Accepted answer":"Comment";e.author&&(t+=" by "+e.author),c.push("### "+t,e.markdown)});var d=[o].concat(s.map(function(e){return e.node}));return{title:a,byline:l,excerpt:t(bl(o).textContent),siteName:"GitHub",publishedTime:e.publishedTime,html:d.filter(Boolean).map(function(e){return e.outerHTML}).join("\n"),markdown:c.join("\n\n"),textContent:t([a,i].concat(s.map(function(e){return e.markdown})).join(" ")),hostAware:!0,readerMode:!1,contentType:"social",socialKind:"thread",platform:"GitHub",handle:l,replyCount:wl(n),community:r.community,score:xl(o)}}function Al(e){var r=function(){var e,r=[],n=[],o=/\b(?:financial statements?|condensed consolidated|consolidated statements?|balance sheets?|income statements?|cash flows?|earnings(?: release)?|quarterly report|annual report|shareholder letter|form\s*(?:10-k|10-q|8-k)|sec filing)\b/i;function i(e,i,a){var l=t([i,a].join(" "));e&&-1===n.indexOf(e)&&o.test(l+" "+e)&&(n.push(e),r.push({url:e,label:t(i)||e}))}return/\b(?:financial statements?|investor relations|earnings(?: release)?|quarterly report|annual report|shareholder letter|balance sheets?|income statements?|cash flows?|form\s*(?:10-k|10-q|8-k)|sec filing)\b/i.test((e=document.querySelector("article, main")||document.body,t([document.title,$("description","name"),$("article:section","property"),location.pathname,e&&e.textContent].join(" ")).slice(0,5e3)))?(document.querySelectorAll("a[href]").forEach(function(e){var r,n=e.getAttribute("href")||"";try{r=new URL(n,location.href)}catch(e){return}var a=r.pathname||"",l=t(e.textContent||e.getAttribute("aria-label")||e.getAttribute("title")||""),s=t((e.closest("p, li, figure, figcaption, section, article, div")||e).textContent||"").slice(0,500);/\.(?:pdf|xlsx?|csv)(?:$|[?#])/i.test(a)&&o.test(l+" "+s+" "+a)&&i(r.href,l,s)}),document.querySelectorAll("figure img[src], picture img[src], img[src]").forEach(function(e){var r=e.closest("figure, picture, section, article, div")||e,n=t(e.getAttribute("alt")||e.getAttribute("aria-label")||"Financial statement image"),a=t(r.textContent||n).slice(0,500);if(o.test(n+" "+a))try{i(new URL(e.getAttribute("src"),location.href).href,n,a)}catch(e){}}),r):r}();if(!r.length)return e;var n=e||"";if(/^## Financial Statement Links$/m.test(n))return e;var o=r.map(function(e){return"- ["+(e.label||"Financial statement")+"]("+e.url+")"});return n.replace(/\s+$/g,"")+"\n\n## Financial Statement Links\n\n"+o.join("\n")}function Cl(e,r){var n=Array.prototype.slice.call((e||document).querySelectorAll("dt")),o=[];return n.forEach(function(e){if(new RegExp("^"+r+"s?:?$","i").test(t(e.textContent||"")))for(var n=e.nextElementSibling;n&&n.tagName&&"dd"===n.tagName.toLowerCase();){var i=t(n.textContent||"");i&&-1===o.indexOf(i)&&o.push(i),n=n.nextElementSibling}}),o.join("; ")||null}function ql(e){var r=document.querySelector(".LegContents, #viewLegContents, .viewLegContents, [class*='table-of-contents' i], [aria-label*='table of contents' i]");if(!r||!so(r,r.textContent||""))return null;var n=ze(r),o=t((document.querySelector("#pageTitle, h1")||{}).textContent||e.title||document.title),i=document.createElement("h1");i.textContent=o,n.insertBefore(i,n.firstChild),Re(n);var a=Ut(tr(n.innerHTML)).replace(/\n{3,}/g,"\n\n").trim(),l=t(a||n.textContent||"");return l.length<200?null:{title:o||e.title||document.title,byline:null,excerpt:e.excerpt||l.slice(0,280),siteName:e.siteName||location.hostname,publishedTime:e.publishedTime||null,html:n.innerHTML,markdown:a,textContent:l,readerMode:!1,contentType:"list",hostAware:!0}}function Tl(e){var r=Array.prototype.slice.call(document.querySelectorAll(["#extracted-content #main-content","#extracted-content",".wex-content",".node-wex-term","[class*='legal-reference' i]","[class*='encyclopedia-entry' i]"].join(", "))),o=null;if(r.some(function(e){return!(!e||!e.querySelector("h1")||n(e)<500)&&(!!e.querySelector("p")&&(o=e,!0))}),!o)return null;var i=Array.prototype.slice.call(o.querySelectorAll("a[href]")).slice(0,40).map(function(e){return(e.getAttribute("href")||"")+" "+t(e.textContent||"")}).join(" "),a=t([e.siteName||"",e.title||"",document.title||"",o.id||"",o.className||"",i].join(" ")),l=/\b(?:law|legal|court|courts|statute|regulation|jurisdiction|litigation|plaintiff|defendant|claim|judgment|preclusion|rule|rights?)\b/i.test(a),s=/\b(?:wex|encyclopedia|definition|definitions|reference|glossary|term)\b/i.test(a)||/\/wex\//i.test(a);return l&&s?Ke(e,o,{title:function(r,n){return t((n.querySelector("h1")||o.querySelector("h1")||{}).textContent||e.title||document.title)},byline:null,excerpt:function(t,r,n,o,i){return e.excerpt||i.slice(0,280)},siteName:e.siteName||location.hostname,publishedTime:e.publishedTime||null,cleanupRoot:!1,cleanupMarkdown:!1,minTextLength:500,rewriteRoot:function(e){e.querySelectorAll(["aside","nav","[role='complementary']","[id*='related' i]","[class*='related' i]","[id*='recommended' i]","[class*='recommended' i]"].join(", ")).forEach(function(e){e.remove()})}}):null}function _l(){return Cl(document,"Publication Date")||u(["#metadata_content_area .metadata a[href*='/documents/']"])}function El(){return Cl(document,"Agencies")||t(Array.prototype.slice.call(document.querySelectorAll("#metadata_content_area .metadata .agencies a, h6.agency, h6.sub-agency")).map(function(e){return t(e.textContent||"")}).filter(function(e,t,r){return e&&r.indexOf(e)===t}).join("; "))||null}function jl(e){if(!je(/(^|\.)federalregister\.gov$/i))return null;if(!/^\/documents\/\d{4}\/\d{2}\/\d{2}\//i.test(location.pathname||""))return null;var r=u(["#metadata_content_area > h1","meta[name='title']"],"content")||t(e&&e.title||document.title||"").replace(/^Federal Register\s*::\s*/i,""),o=Cl(document,"Document Type")||u([".main-title-bar h1"]),i=document.querySelector(".document-content, #document-content, .doc-content, .article, #fulltext_content_area")||document.querySelector("#agency")&&document.querySelector("#agency").parentElement;if(!i||n(i)<250)return null;var a=t(o||"");return/\b(?:notice|proposed rule|rule|presidential document)\b/i.test(a)?Ke(e,i,{title:r,byline:El,publishedTime:_l,siteName:e.siteName||"Federal Register",contentType:"notice",minTextLength:250,rewriteRoot:function(e){e.querySelectorAll(["script","style","nav","aside","form",".fr-seal-meta",".document-clipping-actions",".copy-to-clipboard","[class*='tooltip' i]","[class*='share' i]"].join(", ")).forEach(function(e){e.remove()})},validateMarkdown:function(e,t){return/\b(?:AGENCY|ACTION|SUMMARY|DATES|SUPPLEMENTARY INFORMATION):/i.test(t)||/\bFederal Register\b/i.test(t)}}):null}function Ll(e){if(!je(/(^|\.)gov\.uk$/i))return null;if(!/^\/guidance\//i.test(location.pathname||""))return null;var r=document.querySelector(".gem-c-contents-list-with-body")||document.querySelector(".gem-c-govspeak .govspeak");if(!r||n(r)<500)return null;var o,i,a=(o=r,(i=Array.prototype.slice.call((o||document).querySelectorAll(".gem-c-contents-list a, [aria-label='Contents'] a, a[href^='#']")).map(function(e){var r=t(e.textContent||""),n=e.getAttribute("href")||"";return r&&/^#/.test(n)?"- ["+r+"]("+n+")":null}).filter(Boolean)).length?"## Contents\n\n"+i.join("\n"):null);return Ke(e,r,{title:u([".gem-c-heading__text","main h1","h1"])||e.title||document.title,byline:function(){return Cl(document,"From")||e.byline||null},publishedTime:e.publishedTime||u(["meta[name='govuk:first-published-at']"],"content"),siteName:e.siteName||"GOV.UK",minTextLength:500,cleanupRoot:!1,rewriteRoot:function(e){e.querySelectorAll("nav.gem-c-contents-list, nav[aria-label='Contents']").forEach(function(e){var t=document.createElement("div");Array.prototype.slice.call(e.childNodes).forEach(function(e){t.appendChild(e)}),e.parentNode.replaceChild(t,e)}),e.querySelectorAll(["script","style","form",".gem-c-print-link",".gem-c-single-page-notification-button",".published-dates-button-group","[data-sticky-element]"].join(", ")).forEach(function(e){e.remove()})},postProcessMarkdown:function(e,r){if(/^##\s+Contents\b/m.test(e))return e;if(a)return a+"\n\n"+e;var n=Array.prototype.slice.call(r.querySelectorAll(".gem-c-contents-list a, [aria-label='Contents'] a, a[href^='#']")).map(function(e){var r=t(e.textContent||""),n=e.getAttribute("href")||"";return r&&/^#/.test(n)?"- ["+r+"]("+n+")":null}).filter(Boolean);return n.length?"## Contents\n\n"+n.join("\n")+"\n\n"+e:e},validateMarkdown:function(e,t){return/^#\s+/m.test(e)||t.length>=500}})}function $l(e){if(!je(/(^|\.)courtlistener\.com$/i))return null;if(!/^\/opinion\/\d+\//i.test(location.pathname||""))return null;var r=document.querySelector("#opinion-content, .opinion-content, [data-testid='opinion-content'], article .opinion")||document.querySelector("article")||document.querySelector("main");return!r||n(r)<700?null:Ke(e,r,{title:t((document.querySelector("main h1, article h1, h1")||{}).textContent||e.title||document.title),byline:function(){return u([".author",".judge",".judges","[class*='judge' i]"])||null},siteName:e.siteName||"CourtListener",minTextLength:700,rewriteRoot:function(e){e.querySelectorAll(["script","style","nav","aside","form",".sidebar",".breadcrumb",".breadcrumbs",".alert",".btn",".share",".citation-links",".download-menu","[class*='citation' i]","[class*='download' i]","[class*='related' i]"].join(", ")).forEach(function(e){e.remove()})},validateMarkdown:function(e,t){return/\b(?:v\.|versus|plaintiff|defendant|appellant|appellee|court|appeal|opinion|judgment)\b/i.test(t)},extra:{legalOpinion:!0}})}function Pl(e,r){var n=e.querySelector("#container, #paddingLR12, main, body"),o=t(n&&n.textContent||"").slice(0,2e4),i=t([r&&r.title,e.title,(e.querySelector("h1")||{}).textContent].join(" ")),a=Fn({root:n,text:o,title:i});return/\b(?:code|act|statute|regulation|ordinance)\b/i.test(i)&&a.profileOfficialTextSignals&&/\b(?:section|article)\s*\d+[a-z]?\b/i.test(o)}function Nl(e){var r=document,n=r.querySelector("#container, #paddingLR12");if(!n||!Pl(r,e))return null;t(n.textContent||"");var o,i,a,l,s=n.querySelector("table")||r.querySelector("#paddingLR12 table, table");if(s&&/\bSection\s*1/i.test(s.textContent||"")){var c=(o=r,i=Array.prototype.slice.call(o.querySelectorAll("a[href]")),a=new URL(location.href),l=null,i.some(function(e){var r,n=e.getAttribute("href")||"",o=t(e.textContent||e.getAttribute("title")||"");try{r=new URL(n,location.href)}catch(e){return!1}return r.origin===a.origin&&!!/\.html?(?:$|#)/i.test(r.pathname+r.hash)&&!(!/^(?:html|full text|full text in format html)$/i.test(o)&&!/\/[^/]+\.html?$/i.test(r.pathname))&&r.pathname!==a.pathname&&(l=r.href.replace(/#.*/,""),/^(?:html|full text|full text in format html)$/i.test(o))}),l),u=c&&function(e){var t=new XMLHttpRequest;try{return t.open("GET",e,!1),t.send(null),t.status<200||t.status>=300||!t.responseText?null:(new DOMParser).parseFromString(t.responseText,"text/html")}catch(e){return null}}(c);u&&Pl(u,e)&&(r=u)}var d=r.getElementById("paddingLR12")||r.getElementById("container")||r.querySelector("#paddingLR12, #container");if(!d)return null;var m=t((r.querySelector("h1")||document.querySelector("h1")||{}).textContent||e.title||document.title);return Ke(e,d,{title:m||e.title||document.title,byline:null,excerpt:function(t,r,n,o,i){return e.excerpt||i.slice(0,280)},siteName:e.siteName||location.hostname,publishedTime:e.publishedTime||null,minTextLength:400,postProcessMarkdown:function(e){return e.replace(/\n{3,}/g,"\n\n").trim()},rewriteRoot:function(e){e.querySelectorAll("script, style, form, nav, .noprint, #toc, table").forEach(function(e){e.remove()}),e.querySelectorAll("a[href*='index.html#'], a[href*='index.htm#']").forEach(function(e){var r=e.closest("p, div, li")||e;/^table of contents$/i.test(t(r.textContent||""))&&r.remove()})},validateMarkdown:function(e,t){return/\bSection\s*1/i.test(t)&&/\bSection\s*2/i.test(t)},extra:{legalProvision:!0}})}function zl(e){var r=document.querySelector("text .text .section, text .section, [class~='text'] > .section");if(!r)return null;var n=t(r.textContent||""),o=!!document.querySelector("notes, [id*='notes' i], [class*='notes' i]"),i=t((document.querySelector("#page_title, #pageTitle, h1")||{}).textContent||e.title||document.title),a=t([i,document.title,location.pathname].join(" ")),l=Fn({text:n,title:a,path:location.pathname||""}),s=/\b(?:U\.S\.\s+Code|Code|Statute|Act|Section|§)\b/i.test(a)||l.sectionOrArticleMarker;return n.length<250||!o||!s||l.numberedClauses<2?null:Ke(e,r,{title:i||e.title||document.title,byline:null,excerpt:function(t,r,n,o,i){return e.excerpt||i.slice(0,280)},siteName:e.siteName||location.hostname,publishedTime:e.publishedTime||null,minTextLength:250,extra:{legalProvision:!0}})}function Ml(e){var r=document.querySelector("#main-article .article-content, #main-content .article-content, .article-content.retro-folders");if(!r)return null;var n=Array.prototype.filter.call(r.querySelectorAll("a[href]"),function(e){return/\/pmwiki\/pmwiki\.php\/Main\//i.test(e.getAttribute("href")||"")}).length;return r.querySelectorAll("li").length<20||n<10?null:Fe(e,r,{title:u(["#main-article h1","#main-content h1","h1"])||t((e.title||document.title).replace(/\s*-\s*TV Tropes\s*$/i,"")),byline:null,publishedTime:null,minTextLength:1200,rewriteRoot:function(e){["#modal_overlay",".modal_overlay","script","style","iframe",".ad-unit","[id*='ad-']","[class*='ad-']","[class*='advert']","[class*='watch']"].forEach(function(t){e.querySelectorAll(t).forEach(function(e){e.remove()})})}})}function Rl(e){if(!document.querySelector("#mw-content-text .mw-parser-output, #mw-content-text .mw-body-content, #bodyContent .mw-parser-output"))return null;var r=je(/(^|\.)wikipedia\.org$/),n=je(/(^|\.)wiktionary\.org$/);if(r||n)return null;var o=document.querySelector("#mw-content-text .mw-parser-output")||document.querySelector("#mw-content-text .mw-body-content")||document.querySelector("#bodyContent .mw-parser-output")||document.querySelector("#mw-content-text");return o?Fe(e,o,{title:u(["#firstHeading",".mw-first-heading","h1.firstHeading","h1"])||t((e.title||document.title).replace(/\s*[-|–]\s*(Wiktionary|Wikipedia|Wiki).*$/i,"")),byline:e.byline,minTextLength:30,rewriteRoot:function(e){e.querySelectorAll(".mw-editsection, .mw-jump-link, .toc, #toc, .catlinks, #catlinks, .navbox, .navbox-styles, .printfooter, .noprint, .mw-indicators, .mw-hidden-catlinks, .mw-empty-elt, .sistersitebox, .mw-authority-control, .mw-headline-anchor").forEach(function(e){e.remove()}),e.querySelectorAll("table.navbox, table.collapsible, .navbox, .footer-nav, .portal-bar, .portal, .succession-box").forEach(function(e){e.remove()}),e.querySelectorAll("#External_links, #References, #Notes, #See_also, #Further_reading").forEach(function(e){var t=e.closest("section, div");t&&t.remove()})}}):null}function Bl(e){if(!je(/(^|\.)fandom\.com$/)||!document.querySelector(".mw-parser-output, .page-content, #content"))return null;var r=document.querySelector(".mw-parser-output")||document.querySelector(".page-content")||document.querySelector("#content");return r?Fe(e,r,{title:u(["h1.page-header__title","#firstHeading","h1"])||t((e.title||document.title).replace(/\s*\|\s*.*Wiki\s*\|\s*Fandom$/i,"")),byline:e.byline,minTextLength:40,rewriteRoot:function(e){e.querySelectorAll(".navbox, table.navbox, .navbox-styles, .portable-infobox, .pi-collapse, .mw-editsection, .toc, #toc, .catlinks, #catlinks, .printfooter, .noprint, .mw-empty-elt, .page-footer, .article-footer, .fandom-community-header, .mcf-card-header, .mcf-card-footer, .mcf-card, .page-header__categories, .article-categories, .wds-button-group, .fandom-sticky-header").forEach(function(e){e.remove()}),e.querySelectorAll("a[href*='auth.fandom.com'], a[href*='fandom.com/signin'], a[href*='fandom.com/register']").forEach(function(e){var r=e.closest("div, span, li, p");r&&t(r.textContent||"").length<120?r.remove():e.remove()}),e.querySelectorAll("table").forEach(function(e){var r=t(e.textContent||""),n=e.querySelectorAll("a[href]").length,o=e.querySelector("th, td, caption"),i=o?t(o.textContent||""):"";if(n>=10&&/^(characters|items|locations|enemies|weapons|quests|episodes|levels|bosses|creatures|missions|npcs|monsters|equipment|fishes?|fish of|cast of)\b/i.test(i))e.remove();else if(!e.querySelector("p, h2, h3, h4, blockquote, pre")&&n>=15){if(n/(e.querySelectorAll("tr").length||1)>3)return void e.remove();if(n>=30&&r.length>300)if(n/r.split(/\s+/).length>.15)return void e.remove()}})}}):null}function Hl(e){if(!/(^|\.)(stackexchange\.com|stackoverflow\.com|superuser\.com|serverfault\.com|askubuntu\.com|stackapps\.com|mathoverflow\.net)$/.test(location.hostname)||!/\/questions\//.test(location.pathname||""))return null;var r=document.querySelector(".question, #question, #mainbar, [data-questionid]"),n=u(["h1 a.question-hyperlink",".question-header h1","#question-header h1","main h1","h1[itemprop='name']"])||t((e.title||document.title).replace(/\s*[-|]\s*.+?Stack Exchange$/i,"").replace(/\s*[-|]\s*Stack Overflow$/i,"")),o=document.querySelector(".question .js-post-body, .question .s-prose, #question .js-post-body, #question .s-prose, .postcell .js-post-body, .postcell .s-prose, [data-questionid] .js-post-body, [data-questionid] .s-prose"),i="";if(o){var a=ze(o);Re(a),i=tr(a.innerHTML)}i||(i=u([".question .js-post-body",".question .s-prose","#question .js-post-body","#question .s-prose",".postcell .js-post-body",".postcell .s-prose","[data-questionid] .js-post-body","[data-questionid] .s-prose"]));var l=u([".question .user-details a","#question .user-details a",".postcell .user-details a","[data-questionid] .user-details a"]),s=Array.prototype.slice.call(document.querySelectorAll(".answer, .js-answer, [data-answerid]")).map(function(e){var r=t(((e.querySelector(".js-vote-count, .vote-count-post")||{}).textContent||"0").replace(/[^\d-]+/g,"")),n=parseInt(r||"0",10),o=t((e.querySelector(".user-details a")||{}).textContent||""),i=e.querySelector(".js-post-body, .s-prose"),a="";if(i){var l=ze(i);Re(l),a=tr(l.innerHTML)}a||(a=t((e.querySelector(".js-post-body, .s-prose")||{}).innerText||""));var s=e.matches(".accepted-answer")||!!e.querySelector(".js-accepted-answer-indicator, .accepted-answer, [data-accepted='true']");return{score:isNaN(n)?0:n,author:o,body:a,accepted:s}}).filter(function(e){return e.body.length>=40}).sort(function(e,t){return e.accepted!==t.accepted?e.accepted?-1:1:t.score-e.score});if(!n||!i&&0===s.length)return null;var c=["# "+n];l&&c.push("- Asked by: "+l),i&&c.push(i),s.length&&c.push("## Top Answers"),s.forEach(function(e,t){var r=e.author||"Answer "+(t+1);e.accepted&&(r+=" (accepted)"),e.score&&(r+=" - score "+e.score),c.push("### "+r),c.push(e.body)});var d=c.filter(Boolean).join("\n\n");return{title:n,byline:l||e.byline,excerpt:i||e.excerpt,siteName:e.siteName||location.hostname,publishedTime:e.publishedTime,html:r?r.outerHTML:"",markdown:d,textContent:t(d),readerMode:!1,contentType:"social",socialKind:"thread",platform:/(^|\.)stackoverflow\.com$/.test(location.hostname)?"Stack Overflow":"Stack Exchange",handle:l||null,replyCount:Fl(r),community:Il(e),score:Ol(r)}}function Fl(e){var r=e.querySelector(".js-answer-count, [data-answercount]"),n=t(e.getAttribute("data-answercount")||r&&(r.getAttribute("data-answercount")||r.textContent)||"").match(/^(\d[\d,]*)\s*(?:answers?)?$/i);return n?Number(n[1].replace(/,/g,"")):null}function Ol(e){var r=e.querySelector(".js-vote-count, .vote-count-post, [itemprop='upvoteCount']"),n=t(r&&(r.getAttribute("data-value")||r.getAttribute("content")||r.textContent)||"");return/^-?\d[\d,]*$/.test(n)?Number(n.replace(/,/g,"")):null}function Il(e){var r=t(e.title||document.title||"").match(/[-|]\s*(.+?(?:Stack Exchange|Stack Overflow|Super User|Server Fault|Ask Ubuntu|MathOverflow))\s*$/i);return r?t(r[1]):null}function Dl(e){return"/item"===(location.pathname||"")&&_("id")&&document.querySelector("tr.athing .titleline, table.comment-tree tr.comtr .commtext")?function(e){var r=Ul(document.querySelector("tr.athing")),n=Array.prototype.slice.call(document.querySelectorAll("table.comment-tree tr.comtr")).map(function(e){var r=e.querySelector(".commtext"),n=t(r&&r.textContent||""),o=!!e.querySelector(".deadmark")||/\[(?:deleted|dead)\]/i.test(n),i=e.querySelector("td.ind img"),a=Number(i&&i.getAttribute("width")||0),l=t((e.querySelector(".hnuser")||{}).textContent||""),s=t((e.querySelector(".age")||{}).textContent||""),c=r?tr(r.innerHTML).trim():"";return c||o?{author:l,age:s,depth:Math.max(0,Math.round(a/40)),deleted:o,markdown:c||"[deleted]",text:n||"[deleted]",html:e.outerHTML}:null}).filter(Boolean);if(!r&&0===n.length)return null;var o=n[0],i=r?r.title:"Comment by "+(o.author||"deleted user"),a=["# "+i],l=[],s=document.querySelector(".toptext");r&&r.url&&l.push("- Story: ["+r.title+"]("+r.url+")");r&&r.author&&l.push("- Author: "+r.author);r&&r.age&&l.push("- Published: "+r.age);r&&null!==r.score&&l.push("- Score: "+r.score);r&&null!==r.replyCount&&l.push("- Replies: "+r.replyCount);l.length&&a.push(l.join("\n"));s&&a.push(tr(s.innerHTML).trim());n.length&&a.push("## Comments\n\n"+function(e){return e.map(function(e){var t=Math.min(6,3+e.depth),r=e.deleted?"Deleted comment":e.author||"Comment";return e.age&&(r+=" ("+e.age+")"),Array(t+1).join("#")+" "+r+"\n\n"+e.markdown}).join("\n\n")}(n));var c=a.filter(Boolean).join("\n\n").trim(),u=r&&null!==r.replyCount?r.replyCount:n.some(function(e){return e.depth>0})?n.filter(function(e){return e.depth>0}).length:null;return{title:i,byline:r&&r.author||o&&o.author||null,excerpt:t(s&&s.textContent||o&&o.text||e.excerpt||""),siteName:"Hacker News",publishedTime:null,html:(r?r.html:"")+n.map(function(e){return e.html}).join("\n"),markdown:c,textContent:t(c),readerMode:!1,hostAware:!0,contentType:"social",socialKind:u?"thread":"post",platform:"Hacker News",handle:r&&r.author||o&&o.author||null,replyCount:u,score:r&&r.score}}(e):(r=location.pathname||"/",/^\/(?:|front|newest|best|ask|show|jobs)$/.test(r)&&(document.querySelectorAll("table.itemlist tr.athing .titleline").length>=3||document.querySelectorAll("table#hnmain tr.athing .titleline").length>=3)?function(e){var r=document.querySelectorAll("table.itemlist tr.athing");r.length<3&&(r=document.querySelectorAll("table#hnmain tr.athing"));var n=Array.prototype.slice.call(r).map(Ul).filter(Boolean);if(n.length<3)return null;var o=t((document.querySelector(".pagetop b, .pagetop a.topsel")||{}).textContent||""),i="# "+(o||e.title||"Hacker News")+"\n\n"+n.map(function(e){var t=[];return null!==e.score&&t.push(e.score+" points"),e.author&&t.push("by "+e.author),e.age&&t.push(e.age),"- ["+e.title+"]("+e.url+")"+(t.length?" - "+t.join(" - "):"")}).join("\n");return{title:o||e.title||"Hacker News",byline:null,excerpt:n[0].title,siteName:"Hacker News",publishedTime:null,html:n.map(function(e){return e.html}).join("\n"),markdown:i,textContent:t(i),readerMode:!1,hostAware:!0,contentType:"social",socialKind:"feed",platform:"Hacker News",community:o||null}}(e):null);var r}function Ul(e){if(!e)return null;var r=e.querySelector(".titleline > a, a.titlelink"),n=t(r&&r.textContent||"");if(!n)return null;var i=e.nextElementSibling||document.createElement("tr"),a=i.querySelector(".subtext")||e.querySelector(".subtext"),l=t(a&&a.textContent||""),s=l.match(/\b(\d+)\s+points?\b/i),c=l.match(/\b(\d+)\s+comments?\b/i),u=t((a&&a.querySelector(".hnuser")||{}).textContent||""),d=t((a&&a.querySelector(".age")||{}).textContent||""),m=!!e.querySelector(".deadmark")||/\[dead\]/i.test(l);return{title:m?"[dead] "+n:n,url:o(r&&r.getAttribute("href")||""),author:u,age:d,score:s?Number(s[1]):null,replyCount:c?Number(c[1]):null,dead:m,html:e.outerHTML+(i.outerHTML||"")}}function Zl(){var e=(location.pathname||"").split("/").filter(Boolean);if(e[0]&&"@"===e[0].charAt(0))return e[0]+"@"+location.hostname;var r=t((document.querySelector("main")||{}).textContent||"").match(/@?[A-Za-z0-9_.-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}/);return r?"@"===r[0].charAt(0)?r[0]:"@"+r[0]:""}function Wl(){var e=Array.prototype.slice.call(document.querySelectorAll(".status, .status-public, .status__wrapper, article.status-public, .detailed-status__wrapper"));return Array.prototype.slice.call(document.querySelectorAll(".status__content, .status__content__text")).forEach(function(t){var r=t.closest("article, .status-public, .status__wrapper, .detailed-status__wrapper");r&&e.indexOf(r)<0&&e.push(r)}),e.filter(function(t,r){return!t.closest("footer, nav")&&e.indexOf(t)===r})}function Gl(e){return e.map(function(e){var t=ze(e);return t?(Re(t),t.querySelectorAll(".status__action-bar, .status__prepend, .status__prepend-icon, .status__reblog, .invisible, .ellipsis, [aria-hidden='true']").forEach(function(e){e.remove()}),t.outerHTML):""}).filter(Boolean).join("\n")}function Kl(e){var r=function(e){var r=e.querySelector(".status__content__text, .status__content")||e,n=ze(r);if(n){Re(n),n.querySelectorAll(".status__action-bar, .status__prepend, .status__prepend-icon, .status__reblog, .invisible, .ellipsis, [aria-hidden='true'], button, time").forEach(function(e){e.remove()});var o=tr(n.innerHTML);if(t(o).length>=20)return o.trim()}return t(r.textContent)}(e);return!r||t(r).length<20||/^(profiles directory|keyboard shortcuts|view source code|about mastodon|get the app)$/i.test(t(r))?null:{author:V(e,[".detailed-status__display-name",".status__display-name",".display-name"]),time:V(e,["time"]),body:r,node:e}}function Vl(e){if(!/^\/@[^/]+\/\d+\/?$/i.test(location.pathname||""))return null;var r=Wl().map(Kl).filter(Boolean);if(!r.length)return null;var n=r[0],o=r.slice(1),i=u(["meta[property='og:title']"],"content")||e.title||document.title||"Mastodon post",a=["# "+(i=t(i.replace(/\s*-\s*Mastodon\s*$/i,"")))];n.author&&a.push("- Author: "+n.author),n.time&&a.push("- Published: "+n.time),a.push(n.body),o.length&&a.push("## Replies"),o.forEach(function(e){var t=e.author||"Reply";e.time&&(t+=" ("+e.time+")"),a.push("### "+t),a.push(e.body)});var l=a.filter(Boolean).join("\n\n").trim();return t(l).length<40?null:{title:i,byline:n.author||e.byline,excerpt:t(n.body).slice(0,280)||e.excerpt,siteName:e.siteName||"Mastodon",publishedTime:e.publishedTime,html:Gl([n].concat(o).map(function(e){return e.node})),markdown:l,textContent:t(l),readerMode:!1,contentType:"social",socialKind:o.length?"thread":"post",platform:"Mastodon",handle:Zl()||null,replyCount:o.length||null,hostAware:!0}}function Jl(e){if(!function(e){var r=t([e&&e.title,e&&e.siteName,u(["meta[name='application-name']","meta[property='og:site_name']"],"content"),document.title].join(" ")),n=document.querySelector(".detailed-status__wrapper.detailed-status__wrapper-public"),o=/mastodon/i.test(r)||!!(n&&n.querySelector(".detailed-status, .detailed-status__display-name")&&n.querySelector(".display-name__account")&&n.querySelector(".status__content__text")&&n.querySelector(".detailed-status__action-bar")),i=/^\/(?:@[^/]+|tags\/[^/?#]+|explore\/?$)/i.test(location.pathname||"");return o&&i}(e))return null;var n=Vl(e);if(n)return n;var o=(location.pathname||"").split("/").filter(Boolean),i="tags"===o[0]?o[1]:"",a="explore"===o[0],l=i||a?"":Zl(),s=u(["[class*='account_header__name'] h1",".display-name strong",".display-name b",".display-name"])||"";s&&l&&s.toLowerCase().indexOf(l.toLowerCase())>=0&&(s=t(s.replace(l,"")));var c=u(["[class*='account_bio__bio']",".account__header__content",".account__header__bio",".public-account-bio",".profile__bio","[data-testid='profile-note']"]),d=function(){var e={},r=[];return Wl().forEach(function(n){var o=Kl(n);if(o){var i=t(o.body).slice(0,220).toLowerCase();if(!e[i]){e[i]=!0;var a=t(o.body);o.author&&0!==a.toLowerCase().indexOf(o.author.toLowerCase())&&(a=o.author+": "+a),o.time&&(a+=" ("+o.time+")"),r.push(a)}}}),r}(),m=!!document.querySelector("[class*='account_header'], .public-account-header, .profile__header, [data-testid='profile-header']");if(!(i||a||l||s||c||0!==d.length))return null;if(i&&0===d.length)return null;/^mastodon$/i.test(s)&&l&&(s="");var p=i?"#"+r(i)+" on Mastodon":a?"Mastodon Explore":s||l||e.title||"Mastodon Profile",h=["# "+p],f=[];l&&f.push("- Handle: "+l),Array.prototype.slice.call(document.querySelectorAll("[class*='number_fields__item']")).map(function(e){var r=t(e.textContent),n=r.match(/^(Followers|Following|Posts|Joined)(.+)$/i);return n?n[1]+": "+n[2]:r}).filter(Boolean).forEach(function(e){f.push("- "+e)}),f.length&&h.push(f.join("\n")),c&&h.push(c),d.length&&h.push("## Recent Posts\n\n"+d.map(function(e){return"- "+e}).join("\n"));var g=h.filter(Boolean).join("\n\n").trim();if(t(g).length<40)return null;var y={title:p,byline:null,excerpt:c||d[0]||e.excerpt,siteName:e.siteName||"Mastodon",publishedTime:null,html:Gl([document.querySelector("main")]),markdown:g,textContent:t(g),readerMode:!1,contentType:m||d.length>=2?"social":"list",hostAware:!0};return"social"===y.contentType&&(y.socialKind=m?"profile":"feed",y.platform="Mastodon",l&&(y.handle=l),i&&(y.community="#"+r(i))),y}function Xl(e,r){if(!je(/(^|\.)(t\.me|telegram\.(org|me)|telegra\.ph)$/))return null;var n=r||"";if(je(/(^|\.)telegra\.ph$/)){var o=document.querySelector("article, .tl_article");if(o){var i=ze(o);if(i){pt(i,"a, span, div, p",/^(report content on this page|report|edit)$/i);var a=tr(i.innerHTML)||t(i.textContent);if(a&&t(a).length>20)return{title:e.title||u(["h1",".tl_article_header h1"]),excerpt:e.excerpt,siteName:"Telegraph",html:i.innerHTML,markdown:a,textContent:t(a),readerMode:!1,contentType:"article",hostAware:!0}}}return null}if(je(/(^|\.)telegram\.org$/))return null;var l=je(/(^|\.)t\.me$/)&&/^\/s\//i.test(location.pathname),s=(location.pathname||"").split("/").filter(Boolean);if(l&&(s=s.slice(1)),s=s[0]||"",l){var c=u([".tgme_channel_info_header_title",".tgme_header_title","h1"])||e.title||s,d=document.querySelector(".tgme_channel_info_description"),m=d?t(d.textContent):"",p=u([".tgme_channel_info_header_username"]),h=document.querySelector(".tgme_channel_info_header_username[href*='t.me/']");!p&&h&&(p=(h.getAttribute("href")||"").match(/t\.me\/([^/?#]+)/i)),Array.isArray(p)&&(p=p[1]),p&&"@"!==p.charAt(0)&&(p="@"+p);var f=(location.pathname||"").match(/^\/s\/([^/]+)\/(\d+)\/?$/i),g=f&&(f[1]+"/"+f[2]).toLowerCase(),y=Array.prototype.slice.call(document.querySelectorAll(".tgme_widget_message[data-post], .tgme_widget_message")).map(function(e){var r=e.getAttribute("data-post")||"";if(!r){var n=e.querySelector(".tgme_widget_message_date[href]")||e.querySelector("a[href*='t.me/']"),o=n&&(n.getAttribute("href")||"").match(/t\.me\/([^/?#]+)\/(\d+)\/?(?:[?#].*)?$/i);o&&(r=o[1]+"/"+o[2])}var i=ze(e.querySelector(".tgme_widget_message_text, .js-message_text")),a=i?tr(i.innerHTML)||t(i.textContent):"";if(!t(a))return null;var l=e.querySelector(".tgme_widget_message_date time, time");return{post:r,author:V(e,[".tgme_widget_message_author",".tgme_widget_message_owner_name"]),time:l?l.getAttribute("datetime")||t(l.textContent):"",markdown:a,html:e.outerHTML}}).filter(Boolean),b=f&&y.filter(function(e){return e.post.toLowerCase()===g})[0];if(b){var v=["# "+c];p&&v.push("- Channel: "+p),b.author&&v.push("- Author: "+b.author),b.time&&v.push("- Published: "+b.time),v.push(b.markdown);var w=v.join("\n\n");return{title:c,byline:b.author||c,excerpt:t(b.markdown).slice(0,280)||e.excerpt,siteName:"Telegram",publishedTime:b.time||e.publishedTime,html:b.html,markdown:w,textContent:t(w),readerMode:!1,contentType:"social",socialKind:"post",platform:"Telegram",handle:p||null,community:p||null,hostAware:!0}}if(!f&&y.length>=2){var x=["# "+c];p&&x.push("- Channel: "+p),m&&x.push(m),y.forEach(function(e){x.push("## "+(e.time||e.author||"Telegram post")),x.push(e.markdown)});var S=x.join("\n\n");return{title:c,excerpt:m||t(y[0].markdown).slice(0,280)||e.excerpt,siteName:"Telegram",html:y.map(function(e){return e.html}).join("\n"),markdown:S,textContent:t(S),readerMode:!1,contentType:"social",socialKind:"feed",platform:"Telegram",handle:p||null,community:p||null,hostAware:!0}}var k=document.querySelector(".tgme_channel_history, .tgme_body, main");if(k){var A=ze(k);if(A){pt(A,"a, span, div, i",/^(view in telegram|preview channel|join|open|if you have telegram|you can contact|you can view and join|load more)$/i);var C=tr(A.innerHTML)||t(A.textContent);if(C&&t(C).length>50){var q=document.querySelectorAll(".counter_value"),_=q.length>0?t(q[0].textContent):"",E=[];E.push("# "+c);var j=["- Platform: Telegram"];_&&j.push("- "+_+" subscribers"),e.image&&j.push("- Image: "+e.image),E.push(j.join("\n")),m&&E.push(m),E.push("---\n\n"+C);var L=E.join("\n\n");return{title:c,excerpt:m||e.excerpt,siteName:"Telegram",html:A.innerHTML,markdown:L,textContent:t(L),readerMode:!1,contentType:"article",hostAware:!0}}}}}var $=u([".tgme_page_title",".tgme_channel_info_header_title","h1"])||e.title||s,P=document.querySelector(".tgme_page_description"),N=(P?t(P.textContent):"")||e.excerpt||"";/you can contact .+ right away|if you have telegram/i.test(N)&&(N="");var z=document.querySelector(".tgme_page_extra"),M=(z?t(z.textContent):"").match(/([\d\s,.]+)\s*(?:subscribers?|members?|online)/i)||n.match(/([\d\s,.]+)\s*(?:subscribers?|members?|подписчик|участник)/i),R=["Platform: Telegram"];return M&&R.push(t(M[1])+" subscribers"),e.image&&R.push("Image: "+e.image),N||$?T({title:$,description:N||"Telegram channel. View in Telegram for full content.",details:R,siteName:"Telegram",hostAware:!0}):null}function Yl(e){return Ql(e)?function(e){var r=Array.prototype.slice.call(document.querySelectorAll(".topic-post, article[data-post-id], [data-post-id].topic-post")),n=[],o=[],i={},a=t(u([".fancy-title","#topic-title h1",".topic-title h1","main h1","article h1","h1"])||e.title||document.title);return r.forEach(function(e){var r=e.querySelector(".cooked, .post-body");if(r){var a=t(r.innerText||r.textContent||"");if(a){var l=a.slice(0,240);if(!i[l]){i[l]=!0;var s=function(e){var r=e.querySelector(".topic-meta-data [data-user-card], .main-avatar[data-user-card], [data-user-card], .topic-meta-data .names .username, .topic-meta-data .username, .names .username, .creator a, .poster a"),n=t(r&&(r.getAttribute("data-user-card")||r.textContent)||"");n=n.replace(/^@/,"");var o=e.querySelector(".topic-meta-data time, .topic-meta-data .relative-date, .post-meta time, time"),i=t(o&&(o.getAttribute("datetime")||o.getAttribute("title")||o.textContent)||"");i&&(i=i.replace(/T.*$/u,""));return n&&i?"post by "+n+" on "+i:n?"post by "+n:i?"post on "+i:"post"}(e),c=tr(r.outerHTML);c&&(n.push("## "+s),n.push(c),o.push(a))}}}}),a&&0!==o.length?{title:a,byline:e.byline,excerpt:o[0],siteName:e.siteName||location.hostname,publishedTime:e.publishedTime,html:r.map(function(e){return e.outerHTML}).join("\n"),markdown:["# "+a].concat(n).join("\n\n"),textContent:t([a].concat(o).join(" ")),hostAware:!0,readerMode:!1,contentType:"social",socialKind:"thread",platform:"Discourse",community:es()}:null}(e):function(e){return!!ts()&&(!Ql(e)&&!!document.querySelector(".topic-list, .topic-list-item, .latest-topic-list-item, .category-list"))}(e)?function(e){var r=Array.prototype.slice.call(document.querySelectorAll(".topic-list-item, .latest-topic-list-item, .category-list-item, .topic-list tr")),n=[],i={};if(r.forEach(function(e){var r=e.querySelector("a.title, a[href*='/t/'], a[href*='/c/']");if(r){var a=o(r.getAttribute("href")||""),l=t(r.textContent||r.getAttribute("aria-label")||"");if(a&&l){var s=a+"|"+l;if(!i[s]){i[s]=!0;var c=ri(e,l);n.push({text:l,url:a,detail:c})}}}}),n.length<3)return null;var a=j({title:t(u([".fancy-title","#topic-title h1",".topic-title h1",".category-heading h1",".category-title-box h1","main h1","h1"])||e.title||document.title),excerpt:e.excerpt,siteName:e.siteName||location.hostname,items:n,html:r.map(function(e){return e.outerHTML}).join("\n")});return a.hostAware=!0,a.contentType="social",a.socialKind="feed",a.platform="Discourse",a.community=es(),a}(e):null}function Ql(e){return!!ts()&&(!!document.querySelector(".post-stream, .topic-post, article[data-post-id]")&&!!document.querySelector(".fancy-title, #topic-title h1, .topic-title h1"))}function es(){var e=document.querySelector(".category-breadcrumb a[href*='/c/'], .topic-category a[href*='/c/'], .category-name a[href*='/c/'], a.badge-category[href*='/c/']");return t(e&&e.textContent||"")||null}function ts(){var e=document.body,t=e&&e.className||"",r=!!document.querySelector("#main-outlet, .wrap"),n=!!document.querySelector("#data-discourse-setup"),o=!!document.querySelector("meta[name='generator'][content^='Discourse']"),i=!!document.querySelector("meta[name='discourse_theme_id']"),a=/\bember-application\b/.test(t)&&/\bdiscourse\b/i.test(t);return r&&(n||o||i||a)}function rs(e){var r=t(e||"");return/^-?\d[\d,]*$/.test(r)?Number(r.replace(/,/g,"")):null}function ns(){var e=(location.pathname||"").split("/").filter(Boolean);return"r"===e[0]&&/^[\w-]+$/.test(e[1]||"")?"r/"+e[1]:null}function os(e,r){if(!je(/(^|\.)reddit\.com$/))return null;var n=function(e,r){var n=(location.search||"").toLowerCase(),o=t([e.title,document.title,r].join(" ")).toLowerCase(),i=/(?:[?&](?:js_challenge|solution)=)/.test(n),a=/(?:javascript challenge|complete the security check|verify you are human|checking your browser)/.test(o);return i&&a?T({title:t(e.title||document.title)||"Reddit access verification required",description:"Reddit is presenting an access verification challenge before the requested community can be shown.",details:["Challenge: Reddit access verification"],siteName:e.siteName||"Reddit",contentType:"interstitial"}):null}(e,r);if(n)return n;var o=function(e){var r=document.querySelector("shreddit-post");if(!r)return null;var n=t((r.querySelector('[slot="title"]')||document.querySelector("main h1")||{}).textContent||e.title||document.title),o=t((r.querySelector('[slot="credit-bar"]')||{}).textContent||""),i=r.getAttribute("author")||u(["[slot='credit-bar'] a[href*='/user/']","a[href*='/user/']"]);i=t(i);var a=t((r.querySelector('[slot="text-body"]')||{}).innerText||"");a||Array.prototype.slice.call(document.querySelectorAll("faceplate-screen-reader-content")).some(function(e){var r=t(e.innerText||e.textContent||"");return!(!r||/^go to\s+\w+$/i.test(r)||(a=r,0))});var l=rs(r.getAttribute("comment-count")),s=rs(r.getAttribute("score")),c=Array.prototype.slice.call(document.querySelectorAll("shreddit-comment[depth='0'], shreddit-comment:not([depth])")),d=[];if(c.forEach(function(e){var r=t(e.getAttribute("author")||""),n=t(e.getAttribute("score")||""),o=t((e.querySelector('[slot="commentMeta"]')||{}).innerText||""),i=t((e.querySelector('[slot="comment"]')||{}).innerText||"");if(i){var a=r||"Comment";n&&(a+=" ("+n+" points)"),d.push({heading:a,meta:o,text:i})}}),!n||!a&&0===d.length)return null;var m=["# "+n];return i&&m.push("- Author: "+i),!o||i&&-1!==o.toLowerCase().indexOf(i.toLowerCase())||m.push("- Context: "+o),a&&m.push(a),(l||d.length)&&m.push("## Top Comments"),d.forEach(function(e){m.push("### "+e.heading),e.meta&&-1===e.meta.toLowerCase().indexOf(e.heading.toLowerCase())&&m.push(e.meta),m.push(e.text)}),{title:n,byline:i||e.byline,excerpt:a||e.excerpt,siteName:e.siteName||"Reddit",publishedTime:e.publishedTime,html:r.outerHTML,markdown:m.filter(Boolean).join("\n\n"),textContent:t([n,a].concat(d.map(function(e){return e.text})).join(" ")),readerMode:!1,contentType:d.length?"social":"article",socialKind:d.length?"thread":null,platform:d.length?"Reddit":null,handle:d.length?i:null,replyCount:d.length?l:null,community:d.length?ns():null,score:d.length?s:null}}(e);if(o)return o;if(!/(cookie preferences|before you continue to reddit|reddit uses cookies|log in|sign up)/i.test(r||""))return null;var i=(location.pathname||"").split("/").filter(Boolean),a="r"===i[0]?i[1]:null,l=t((e.title||document.title).replace(/\s*:\s*r\/[^|]+$/i,""))||e.title||"Reddit page",s=e.excerpt||"Original content on this Reddit page is not available without cookie acceptance or login.",c=["Access notice: Reddit cookie acceptance or login required"];return a&&c.push("Requested community: r/"+a),T({title:l,description:s,details:c,siteName:e.siteName||"Reddit"})}function is(e){if(!je(/(^|\.)stackoverflow\.com$/))return null;if(!/^\/questions\/\d+(?:\/|$)/.test(location.pathname||""))return null;var r=document.querySelector("#question, .question[data-questionid], .question");if(!r)return null;var n=r.querySelector(".js-post-body, .s-prose[itemprop='text'], [itemprop='text']"),o=t(u(["#question-header h1 a","#question-header h1","h1[itemprop='name']","main h1","h1"])||e.title||document.title);o=o.replace(/\s*-\s*Stack Overflow\s*$/i,"");var i=as(n);if(!o||!i)return null;var a=Array.prototype.slice.call(document.querySelectorAll("#answers .answer, .answer[data-answerid]")),l=[];a.forEach(function(e){var t=as(e.querySelector(".js-post-body, .s-prose[itemprop='text'], [itemprop='text']"));if(t){var r=ls(e),n=!!e.querySelector(".js-accepted-answer-indicator, .fc-green-500, [title*='accepted']")?"Accepted answer":"Answer";r&&(n+=" ("+r+" votes)"),l.push({heading:n,markdown:t})}});var s,c=["# "+o,"## Question",i];return l.length>0&&c.push("## Answers"),l.forEach(function(e){c.push("### "+e.heading),c.push(e.markdown)}),{title:o,byline:e.byline,excerpt:t(n&&n.textContent||e.excerpt||""),siteName:e.siteName||"Stack Overflow",publishedTime:e.publishedTime,html:[r.outerHTML].concat(a.map(function(e){return e.outerHTML})).join("\n"),markdown:c.filter(Boolean).join("\n\n"),textContent:t([o,i].concat(l.map(function(e){return e.markdown})).join(" ")),hostAware:!0,singleTopicPage:!0,readerMode:!1,contentType:"social",socialKind:"thread",platform:"Stack Overflow",handle:(s=r,t((s.querySelector(".user-details a")||{}).textContent||"")||null),replyCount:ss(r),community:"Stack Overflow",score:ls(r)}}function as(e){if(!e)return"";var t=ze(e);return Me(t,".js-post-menu, .post-menu, .comments, .js-comments-container, .js-add-link, .dno, [aria-hidden='true']"),Ut(tr(t.innerHTML))}function ls(e){var r=e.querySelector(".js-vote-count, .vote-count-post, [itemprop='upvoteCount']"),n=t(r&&(r.getAttribute("data-value")||r.getAttribute("content")||r.textContent)||"");return/^-?\d[\d,]*$/.test(n)?n.replace(/,/g,""):""}function ss(e){var r=e.querySelector(".js-answer-count, [data-answercount]"),n=t(e.getAttribute("data-answercount")||r&&(r.getAttribute("data-answercount")||r.textContent)||"").match(/^(\d[\d,]*)\s*(?:answers?)?$/i);return n?Number(n[1].replace(/,/g,"")):null}function cs(e,n){if(!je(/(^|\.)behance\.net$/))return null;var i=[],a={};if(document.querySelectorAll("a[href*='/gallery/'], a[href*='/project/']").forEach(function(e){var r=e.getAttribute("href");if(r){var n=o(r);try{var l=new URL(n,location.href);l.searchParams.delete("tracking_source"),l.searchParams.delete("l"),n=l.toString()}catch(e){}var s=t(e.textContent||e.getAttribute("aria-label")||"");if(s){var c=s+"|"+n;if(!a[c]){a[c]=!0;var u=e.closest("article, li, div, section")||e.parentElement;i.push({text:s,url:n,detail:ri(u,s)})}}}}),i.length>=4){var l=r((location.pathname||"").split("/").filter(Boolean).slice(-1)[0]||"").replace(/[-_+]+/g," ");return{title:(l=t(l))?"Behance projects for "+l:e.title||document.title,byline:null,excerpt:e.excerpt,siteName:e.siteName||"Behance",publishedTime:null,html:"",textContent:C(i),markdown:C(i),readerMode:!1,contentType:"list",hostAware:!0}}if(!/(cookie settings|measure performance|personalize advertising|adobe and our partners)/i.test(n||""))return null;var s=t((e.title||document.title).replace(/\s*::\s*Photos, videos, logos, illustrations and branding$/i,""))||e.title||"Behance page",c=e.excerpt||"This Behance page is showing Adobe cookie settings instead of the original content.",u=["Access notice: Adobe cookie settings prompt"];return/^\/search\//.test(location.pathname)&&u.push("Requested view: Behance search results"),T({title:s,description:c,details:u,siteName:e.siteName||"Behance"})}function us(e,n){if(!je(/(^|\.)quora\.com$/))return null;if(!/(security verification|just a moment|protect against malicious bots)/i.test(n||""))return null;var o=r((location.pathname||"").split("/").filter(Boolean)[0]||"").replace(/[-_]+/g," ");return!(o=t(o))||/^just a moment$/i.test(o)?null:T({title:o,description:e.excerpt,siteName:e.siteName||"Quora"})}function ds(e){var r=kt(e);if(!je(/(^|\.)glassdoor\.com$/)&&!/glassdoor/i.test(r))return null;if(location.pathname&&"/"!==location.pathname&&"/index.htm"!==location.pathname)return null;var n=u(["main h1","h1"])||t((e.title||document.title).replace(/\s*\|.*$/,"")),o=f(["main h2","main p"]).filter(function(e){return e.length>=12&&!/^(continue with google|continue with apple|or email|sign in|community jobs companies salaries for employers)$/i.test(e)}),i=o.find(function(e){return e!==n&&e.length>=40})||e.excerpt,a=o.filter(function(e){return e!==n&&e!==i});return n||i?T({title:n,description:i,highlights:a,siteName:e.siteName||"Glassdoor"}):null}function ms(e,r){var n=e.querySelector(r);return n?t(n.getAttribute("datetime")||n.textContent||""):""}function ps(e){var r=location.pathname||"/",n=r.match(/^\/tag\/([^/]+)\/?$/);if("/"!==r&&!n)return null;var i="/"===r?"section.link-block.stream-home[id^='link-']":"section.entry.stream-tag[id^='comment-'], section.link-block.stream-tag[id^='link-']",a={},l=[];if(document.querySelectorAll(i).forEach(function(e){var r=function(e){var r=e.querySelector("h1 a[href^='/link/'], h2 a[href^='/link/'], h3 a[href^='/link/'], a[href^='/wpis/'], a.permalink[href]");if(!r)return null;var n=o(r.getAttribute("href")),i=t(r.textContent||r.getAttribute("title")||""),a=ms(e,".body, .description, .excerpt, p");if(!i||!n||!/^https:\/\/wykop\.pl\/(?:link|wpis)\//.test(n))return null;var l=[],s=ms(e,".author, [rel='author'], [data-author]"),c=ms(e,"time"),u=ms(e,".score, [data-score]"),d=ms(e,".reply-count, .comment-counter, [data-replies]"),m=ms(e,".tag, .category, [data-category]"),p=ms(e,".source, .domain, [data-source]"),h=e.querySelector("img[src]"),f=h?t(h.getAttribute("alt")||""):"",g=h?o(h.getAttribute("src")):"",y=e.querySelector(".promoted, .recommendation, [data-promoted]"),b=e.closest&&e.closest(".pinned, [data-pinned]");return a&&a!==i&&l.push("Summary: "+a),s&&l.push("Author: "+s),p&&l.push("Source: "+p),c&&l.push("Time: "+c),u&&l.push("Score: "+u),d&&l.push("Replies: "+d),m&&l.push("Category: "+m),f&&l.push("Media: "+f+(g?" ("+g+")":"")),y&&l.push("Promoted"),b&&l.push("Pinned"),{text:i,url:n,key:re(n),detail:l.join(" - ")}}(e);r&&!a[r.key]&&(a[r.key]=!0,l.push(r))}),l.length<3)return null;var s=(n?ms(document,".tag-page h1, .tag-page h2, main h1"):"")||e.title||document.title,c="# "+s+"\n\n"+l.map(function(e){return"- ["+e.text+"]("+e.url+")"+(e.detail?" - "+e.detail:"")}).join("\n");return{title:s,byline:null,excerpt:l[0].text,siteName:e.siteName||"Wykop",publishedTime:null,html:"",textContent:t(c),markdown:c,readerMode:!1,hostAware:!0,contentType:"social",socialKind:"feed",platform:"Wykop",community:n&&n[1]||null,itemCount:l.length}}function hs(e,t){var r=String(e);t&&(r=r.replace(/,/g,""));var n=parseInt(r,10);return isNaN(n)?e:n>=1e6?(n/1e6).toFixed(1).replace(/\.0$/,"")+"M":n>=1e4?(n/1e3).toFixed(1).replace(/\.0$/,"")+"K":n.toLocaleString()}function fs(e){var t=document.querySelector(e);if(!t)return null;var r=t.getBoundingClientRect(),n=window.getComputedStyle(t);return r.width<=0||r.height<=0||"none"===n.display||"hidden"===n.visibility?null:t}function gs(e,n){if(!je(/(^|\.)instagram\.com$/))return null;var o=i(n),a=(location.pathname||"").split("/").filter(Boolean);if(/^(accounts|checkpoint|challenge|challenge_required|suspended|restricted)$/i.test(a[0]||"")){var l=(location.search||"").match(/[?&]next=([^&]+)/);if(l){var s=r(l[1]);a=(s=(s||"").replace(/^https?:\/\/[^\/]+/,"")).split("/").filter(Boolean)}else a=[]}for(var c=-1,u=0;u<a.length-1;u+=1)if(/^(p|reel|reels|tv)$/i.test(a[u])){c=u;break}var d=c>=0,m=d?a[c]:a[0]||"",p=(d?a[c+1]:a[1],d?"/"+a.slice(c,c+2).join("/")+"/":""),h=r(m).replace(/[-_]+/g," ");if(h=t(h),(d||/^(accounts|checkpoint|challenge|challenge_required|explore|stories|direct)$/i.test(h))&&(h=""),d){var f=t((e.title||"").replace(/\s*[\u2022•|]\s*Instagram.*$/i,"").replace(/\s*\|\s*Instagram\s*$/i,"")),g=f.match(/^(.*?)\s+on Instagram:\s*"([\s\S]*)"$/i),y=g?t(g[1]):"",b=g?t(g[2]):"",v=e.excerpt||"";/create an account|log in to instagram|sign up/i.test(v)&&(v="");var w=v.match(/([\d,.]+[MKB]?)\s*likes?\b/i),x=v.match(/([\d,.]+[MKB]?)\s*comments?\b/i),S=v.match(/-\s*([a-z0-9._]+)\s+on\s+/i),k=v.match(/\bon\s+([^:]+):\s*"/i),A=v.match(/:\s*"([\s\S]*?)"\.?\s*$/),C=S?t(S[1]):c>0?t(a[0]):"",q=t(b||A&&A[1]||""),_=function(){var e=(o||"").split(/\n+/).map(t).filter(Boolean);if(!e.length||!q)return[];for(var r=-1,n=q.toLowerCase(),i=0;i<e.length;i+=1){var a=e[i].toLowerCase();if(a.indexOf(n)>=0||n.indexOf(a)>=0){r=i;break}}if(r<0)return[];for(var l=[],s=r+1;s<e.length;s+=1){var c=e[s],u=t(e[s+1]||"");if(/^(?:\d[\d.,]*[KMB]?|log in to like or comment\.?|more posts from\b|see more posts\b|meta\b|about\b|blog\b|jobs\b|help\b|api\b|privacy\b|terms\b|locations\b|instagram lite\b|meta ai\b|threads\b)/i.test(c))break;if(/^[a-z0-9._]{2,32}$/i.test(c)&&/^(?:\d+\s*(?:s|m|h|d|w)|just now|now)$/i.test(u)){for(var d=[],m=s+2;m<e.length;m+=1){var p=e[m],h=t(e[m+1]||"");if(/^(?:like|reply|follow|following)$/i.test(p))break;if(/^(?:\d[\d.,]*[KMB]?|log in to like or comment\.?|more posts from\b|see more posts\b|meta\b|about\b|blog\b|jobs\b|help\b|api\b|privacy\b|terms\b|locations\b|instagram lite\b|meta ai\b|threads\b)/i.test(p))break;if(/^[a-z0-9._]{2,32}$/i.test(p)&&/^(?:\d+\s*(?:s|m|h|d|w)|just now|now)$/i.test(h))break;d.push(p)}var f=t(d.join(" "));f&&l.push("@"+c+": "+f),s=m}}return l}(),E=function(){var e=fs("article");if(e){var r=t(e&&e.innerText);if(/something went wrong|log in to instagram|sign up to see/i.test(r))return!1;if(e.querySelector("img, video"))return!0;if(r.length>40)return!0}return!1}(),j=[],L=/^(reel|reels|tv)$/i.test(m)?"Reel":"Post";if(C&&j.push("Profile: @"+C),p&&j.push(L+": "+p),w&&j.push(t(w[1])+" likes"),x&&j.push(t(x[1])+" comments"),e.image&&j.push("Image: "+e.image),e.video&&j.push("Video: "+e.video),E){var $=T({title:y?y+" on Instagram":f||"Instagram post",byline:C?"@"+C:y||null,publishedTime:k?t(k[1]):e.publishedTime||null,description:q||"Instagram post",details:j,siteName:e.siteName||"Instagram",hostAware:!0,contentType:"social",socialKind:"post",platform:"Instagram",handle:C?"@"+C.replace(/^@/,""):null});return _.length&&($.markdown+="\n\n## Comments\n\n"+_.map(function(e){return"- "+e}).join("\n"),$.textContent=t($.markdown)),$}return null}var P=function(){var e=fs("header section");if(!e)return!1;var t=e.innerText||"";return!!/([\d,.]+[MKB]?)\s*(followers?|following|posts?)/i.test(t)||document.querySelectorAll("article img, main img[srcset]").length>=3}();if(P){var N=t((e.title||"").replace(/\s*[\u2022•|]\s*Instagram.*$/i,""))||e.title,z=document.querySelector("header section"),M="";if(z)for(var R=z.querySelectorAll("span"),B=0;B<R.length;B++){var H=t(R[B].innerText||"");if(H.length>30&&!/^\d/.test(H)&&!/follow/i.test(H)){M=H;break}}var F=[],O=function(e){var t=e.match(/([\d,.]+[MKB]?)\s*(?:Followers|follower|Takipçi|подписчик|متابع)/i),r=e.match(/([\d,.]+[MKB]?)\s*(?:Following|following)/i),n=e.match(/([\d,.]+[MKB]?)\s*(?:Posts?|post|Gönderi|публикац|منشور)/i);return{followers:t&&t[1],following:r&&r[1],posts:n&&n[1]}}(o);O.posts&&F.push(O.posts+" posts"),O.followers&&F.push(O.followers+" followers"),O.following&&F.push(O.following+" following");var I=M||e.excerpt||"";/create an account|log in to instagram|sign up/i.test(I)&&(I=""),F.length&&(I=(I?I+"\n\n":"")+F.join(", ")+".");j=[];return h&&j.push("Profile: @"+m),T({title:N||"Instagram"+(h?" - "+h:""),description:I,details:j,siteName:e.siteName||"Instagram",hostAware:!0,contentType:"social",socialKind:"profile",platform:"Instagram",handle:h?"@"+m:null})}return null}function ys(e,n){if(!je(/(^|\.)facebook\.com$/))return null;var o=i(n),a=(location.pathname||"").split("/").filter(Boolean)[0]||"";if(/^(login|checkpoint|recover|dialog|ajax|connect|sharer)$/i.test(a)){var l=(location.search||"").match(/[?&]next=([^&]+)/);if(l){var s=r(l[1]);a=(s=(s||"").replace(/^https?:\/\/[^\/]+/,"")).split("/").filter(Boolean)[0]||""}else a=""}/^(login|watch|marketplace|groups|gaming|events|pages|profile\.php|photo|story|reel|permalink|hashtag)$/i.test(a)&&(a="");var c=r(a).replace(/[-_.]+/g," ");c=t(c);var u=t((e.title||"").replace(/\s*[-–—|]\s*(Facebook|Log in or sign up).*$/i,"").replace(/\s*\|\s*Facebook\s*$/i,""))||e.title;/^(facebook\s*[-–—]?\s*log in|log in to facebook|log in or sign up)/i.test(u||"")&&(u=c||"Facebook");var d=fs("[role='main'], main");if(function(){if(!d)return!1;if(o.length<200)return!1;var e=/([\d,.]+[MKB]?)\s*followers?/i.test(o),t=/\bIntro\b/.test(o);return e&&t}()){var m=[],p=o.match(/(?:Page|Profile)\s*·\s*([^\n]+)/);p&&m.push("Category: "+t(p[1]));var h=o.match(/([\d,.]+[MKB]?)\s*followers?/i),f=o.match(/([\d,.]+[MKB]?)\s*following/i);h&&m.push(h[1]+" followers"),f&&m.push(f[1]+" following");var g=o.indexOf("Intro\n"),y="";if(g>=0){var b=o.substring(g+6),v=b.search(/\n(?:Photos|Videos|About|Posts|Reels|Events|See all|Page ·|Information about)\b/);y=t(v>0?b.substring(0,v):b.substring(0,500))}for(var w,x=y||o.substring(0,Math.min(o.length,1500)),S=x.match(/([\w.+-]+@[\w.-]+\.\w{2,})/),k=x.match(/\b(https?:\/\/[\w.-]+[\w.]{2,}(?:\/[\w.-]*)*)\s/i),A=[],C=new RegExp(Zt(t(u||""))+"\\s*\\n\\s*(?:\\d+[hd]|\\d+ (?:hour|day|minute|week|month)s? ago|Yesterday|Just now|\\w+ \\d+(?:,? \\d+)?)\\s*\\n\\s*·?\\s*\\n([\\s\\S]*?)(?=\\n(?:All reactions|Like|Comment|Share|\\d+ comment))","gi");null!==(w=C.exec(o));){var q=t(w[1]);q&&q.length>10&&(q=q.replace(/…\s*See more\s*$/i,"…"),A.push(q))}if(0===A.length)for(var _=document.querySelectorAll("div[dir=auto]"),E=0;E<_.length;E++){var j=t(_[E].innerText||"");j.length>50&&j.length<3e3&&!/^(log in|sign up|create|cookie|privacy|terms|information about|see more from)/i.test(j)&&(j=j.replace(/…\s*See more\s*$/i,"…"),A.push(j))}var L={};A=A.filter(function(e){var t=e.substring(0,80).toLowerCase();return!L[t]&&(L[t]=!0,!0)});var $="";y&&($=y);var P=[];if(S&&P.push(S[1]),k&&!/facebook\.com/i.test(k[1])&&P.push(k[1]),P.length&&($+=($?"\n\n":"")+"Contact: "+P.join(" | ")),A.length>0){$+=($?"\n\n":"")+"## Recent Posts\n\n";for(var N=0;N<A.length;N++)$+=A[N]+"\n\n";$=$.replace(/\n\n$/,"")}if(!h){var z=(e.excerpt||"").match(/([\d][\d,.\s]*\d)\s*likes?\b/i);z&&m.push(t(z[1])+" likes")}var M=m;return e.image&&M.push("Image: "+e.image),T({title:u||"Facebook"+(c?" - "+c:""),description:$,details:M,siteName:e.siteName||"Facebook",hostAware:!0,contentType:"social",socialKind:"profile",platform:"Facebook",handle:c?"@"+a:null})}return null}function bs(e,r){if(!je(/(^|\.)threads\.(net|com)$/))return null;var n=e.title||"",o=e.excerpt||"",i=e.image||"",a=fs("main, [role='main']"),l=n.match(/^(.+?)\s*\((@\w+)\)\s*[•·]/),s=l?l[1].trim():"",c=l?l[2]:"";if(!l){var u=n.match(/^(.+?)\s*\((@\w+)\)\s+on Threads/);u||(u=n.match(/^(@\w+)\s+on Threads/)),u&&(s=u[1]?u[1].trim():"",c=u[2]||u[1]||"")}var d="",m="",p=o,h=o.match(/^([\d,.]+[KMB]?)\s+Followers?\s*[•·]\s*([\d,.]+[KMB]?)\s+Threads?\s*[•·]\s*(.*)/i);if(h)d=h[1],m=h[2],p=t(h[3]);else{var f=o.match(/([\d,.]+[KMB]?)\s+Followers?/i);f&&(d=f[1]);var g=o.match(/([\d,.]+[KMB]?)\s+Threads?/i);g&&(m=g[1])}if(!a||!s&&!c)return null;var y=t(a.innerText||"");if(!y||c&&-1===y.indexOf(c)&&!/\bfollowers?\b/i.test(y))return null;var b=[];return c&&b.push("Handle: "+c),d&&b.push("Followers: "+d),m&&b.push("Threads: "+m),i&&b.push("Image: "+i),T({title:s||c,description:p||o,details:b,siteName:"Threads",hostAware:!0,contentType:"social",socialKind:"profile",platform:"Threads",handle:c||null})}function vs(e,r){if(!je(/(^|\.)(twitter\.com|x\.com)$/))return null;var n=/^\/[^/]+\/status\/\d+/.test(location.pathname),o=null;try{for(var i=document.querySelectorAll('script[type="application/ld+json"]'),a=0;a<i.length;a++){var l=JSON.parse(i[a].textContent);if(l&&"ProfilePage"===l["@type"]&&l.mainEntity){o=l.mainEntity;break}}}catch(e){}if(!n){var s=document.querySelector('[data-testid="UserName"]'),c=document.querySelector('[data-testid="UserDescription"]'),u=document.querySelector('[data-testid="UserUrl"]'),d=document.querySelector('[data-testid="UserJoinDate"]'),m=document.querySelector('[data-testid="UserLocation"]'),p=document.querySelector('[data-testid="UserBirthdate"]'),h="",f="";if(s){var g=t(s.textContent).split(/\s*@/);h=t(g[0]),g[1]&&(f="@"+t(g[1]))}if(!h&&o&&(h=o.name||""),!f&&o&&o.additionalName&&(f=o.additionalName),!f){var y=(location.pathname||"").split("/").filter(Boolean)[0];y&&!/^(home|explore|search|notifications|messages|settings|i)$/i.test(y)&&(f="@"+y)}var b=c?t(c.textContent):"";!b&&o&&o.description&&(b=t(o.description));var v=m?t(m.textContent):"";!v&&o&&o.homeLocation&&(v=o.homeLocation.name||"");var w=u?t(u.textContent):"",x=d?t(d.textContent):"",S=p?t(p.textContent):"",k="",A="",C="";if(o&&o.interactionStatistic&&o.interactionStatistic.forEach(function(e){var t=e.interactionType||"";/FollowAction/.test(t)&&(k=String(e.userInteractionCount)),/SubscribeAction/.test(t)&&(A=String(e.userInteractionCount)),/WriteAction/.test(t)&&(C=String(e.userInteractionCount))}),!k){var q=document.querySelector('a[href$="/verified_followers"], a[href$="/followers"]');q&&(k=t(q.textContent).replace(/\s*followers?$/i,""))}if(!A){var _=document.querySelector('a[href$="/following"]');_&&(A=t(_.textContent).replace(/\s*following$/i,""))}var E="";if(o&&o.image&&o.image.contentUrl&&(E=o.image.contentUrl),!E){var j=document.querySelector('[data-testid^="UserAvatar"] img[src*="profile_images"]');j&&(E=j.src)}if(!w&&o&&o.relatedLink){var L=Array.isArray(o.relatedLink)?o.relatedLink:[o.relatedLink];w=(L.filter(function(e){return!/t\.co\//.test(e)})[0]||L[0]||"").replace(/^https?:\/\//,"")}for(var $=[],P=document.querySelectorAll('[data-testid="tweet"]'),N=0;N<P.length;N++){var z=P[N],M=z.querySelector('[data-testid="tweetText"]');if(M){var R=t(M.textContent);if(R&&!(R.length<5)){var B=z.querySelector('[data-testid="User-Name"]'),H=z.querySelector("time"),F=z.querySelector('[data-testid="socialContext"]'),O="";if(B){var I=t(B.textContent).match(/^(.+?)(\s*@\w+)/);I&&(O=I[1].trim())}var D=H?H.getAttribute("datetime")||t(H.textContent):"",U=[];["reply","retweet","like"].forEach(function(e){var t=z.querySelector('[data-testid="'+e+'"]');if(t){var r=(t.getAttribute("aria-label")||"").match(/^(\d[\d,]*)/);if(r&&parseInt(r[1].replace(/,/g,""),10)>0){var n="reply"===e?"replies":"retweet"===e?"reposts":"likes";U.push(r[1]+" "+n)}}});var Z="";F&&(Z+="[Pinned] "),O&&h&&O!==h&&(Z+="RT @"+O+": "),Z+=R,D&&(Z+=" ("+D+")"),U.length&&(Z+=" ["+U.join(", ")+"]"),$.push(Z)}}}var W=[];f&&W.push("Handle: "+f),k&&W.push("Followers: "+hs(k)),A&&W.push("Following: "+hs(A)),C&&W.push("Posts: "+hs(C)),v&&W.push("Location: "+v),w&&W.push("Website: "+w),S&&W.push(S),x&&W.push(x),E&&W.push("Image: "+E);var G=[];b&&G.push(b),$.length&&G.push("## Recent Posts\n\n"+$.join("\n\n"));var K=h||e.title||"X Profile";if(!h&&f&&(K=f),!h&&!b&&!$.length)return null;var V=T({title:K,description:G.join("\n\n"),details:W,siteName:"X",hostAware:!0,contentType:"article"});return V.contentType="social",V.socialKind="profile",V.platform="X",V.handle=f||null,V}var J=document.querySelector('[data-testid="tweet"]');if(!J){var X=(e.title||"").match(/^(.+?)\s+on X:\s*"(.+?)"\s*\/\s*X$/);return X?T({title:X[1],description:X[2],siteName:"X",hostAware:!0}):null}var Y="",Q=J.querySelector('[data-testid="tweetText"]');if(Q&&(Y=t(Q.textContent)),!Y)return null;var ee=J.querySelector('[data-testid="User-Name"]'),te="",re="";if(ee){var ne=t(ee.textContent).match(/^(.+?)\s*(@\w+)/);ne&&(te=ne[1].trim(),re=ne[2])}var oe=J.querySelector("time"),ie=oe?oe.getAttribute("datetime")||t(oe.textContent):"",ae=[],le=null;["reply","retweet","like","bookmark"].forEach(function(e){var t=J.querySelector('[data-testid="'+e+'"]');if(t){var r=(t.getAttribute("aria-label")||"").match(/^(\d[\d,]*)/);if(r&&parseInt(r[1].replace(/,/g,""),10)>0){var n="reply"===e?"replies":"retweet"===e?"reposts":"like"===e?"likes":"bookmarks";ae.push(r[1]+" "+n),"reply"===e&&(le=parseInt(r[1].replace(/,/g,""),10))}}});var se=[];re&&se.push("Author: "+te+" ("+re+")"),ie&&se.push("Posted: "+ie),ae.length&&se.push("Engagement: "+ae.join(", "));for(var ce=document.querySelectorAll('[data-testid="tweet"]'),ue=[],de=1;de<ce.length;de++){var me=ce[de],pe=me.querySelector('[data-testid="tweetText"]');if(pe){var he=t(pe.textContent);if(he&&!(he.length<3)){var fe=me.querySelector('[data-testid="User-Name"]'),ge="";if(fe){var ye=t(fe.textContent).match(/^(.+?)\s*(@\w+)/);ye&&(ge=ye[2])}ue.push((ge?ge+": ":"")+he)}}}var be=Y;ue.length&&(be+="\n\n## Replies\n\n"+ue.join("\n\n"));var ve=T({title:te||e.title||"Post on X",description:be,details:se,siteName:"X",hostAware:!0,contentType:"article"});return ve.contentType="social",ve.socialKind=ue.length?"thread":"post",ve.platform="X",ve.handle=re||null,ve.replyCount=le,ve}function ws(e,r){if(!je(/(^|\.)linkedin\.com$/))return null;var n=i(r),o=/^\/company\//.test(location.pathname),a=/^\/in\//.test(location.pathname);if(!o&&!a)return null;if(o){var l,s="",c="",u="",d="",m="",p="",h="",f="",g="",y="";l=(e.title||"").replace(/\s*[|\-–—]\s*LinkedIn.*$/i,"").trim();var b=n.match(/([\d,.]+[KMB]?)\s+followers/i);b&&(u=b[1]),(W=n.match(/\bAbout\s*\n([\s\S]*?)(?=\n(?:Website|Locations|Employees|Affiliated|Updates|Posts|Similar|Home|Products|Jobs|People|Insights)\b)/i))&&(d=t(W[1]));var v=n.match(/Website\s*\n\s*(https?:\/\/\S+|[\w.-]+\.[\w]{2,}(?:\/\S*)?)/i);v&&(m=v[1].trim());var w=n.match(/Industry\s*\n\s*(.+)/i);if(w&&(s=t(w[1])),!s){var x=n.match(new RegExp(Zt(l)+"\\s*\\n\\s*(.+?)\\s*\\n","i"));x&&(s=t(x[1]))}var S=n.match(/Company size\s*\n\s*(.+)/i);S&&(p=t(S[1]));var k=n.match(/Headquarters\s*\n\s*(.+)/i);k&&(h=t(k[1]));var A=n.match(/Type\s*\n\s*(.+)/i);A&&(f=t(A[1]));var C=n.match(/Specialties\s*\n\s*([\s\S]*?)(?=\n\n|\n(?:Website|Locations|Employees|Home|Products|Jobs|People|Insights)\b)/i);C&&(g=t(C[1]));var q=n.match(/Founded\s*\n\s*(\d{4})/i);q&&(y=q[1]),!c&&h&&(c=h);var _=[],E=n.match(/(?:Updates|Posts)\s*\n([\s\S]*?)(?=\n(?:Similar pages|Affiliated|People also viewed|Browse jobs)\b|$)/i);if(E)for(var j=E[1].split(/\n(?=.*?\b(?:likes?|comments?|reactions?)\b)/i),L=0;L<j.length;L++){var $=t(j[L]);$&&$.length>20&&!/^(?:Show|See|Load)\s/i.test($)&&_.push($)}var P=[];s&&P.push("Industry: "+s),u&&P.push("Followers: "+u),c&&P.push("Location: "+c),m&&P.push("Website: "+m),p&&P.push("Size: "+p),f&&P.push("Type: "+f),y&&P.push("Founded: "+y),h&&h!==c&&P.push("Headquarters: "+h),g&&P.push("Specialties: "+g),e.image&&P.push("Image: "+e.image);var N=[];if(d&&N.push(d),_.length&&N.push("## Recent Updates\n\n"+_.join("\n\n")),!(d||_.length||u||s||p||h||g))return null;var z=T({title:l||"LinkedIn Company",description:N.join("\n\n")||e.excerpt||"",details:P,siteName:"LinkedIn",hostAware:!0,contentType:"article"});return z.contentType="social",z.socialKind="profile",z.platform="LinkedIn",z}var M=(e.title||"").replace(/\s*[|\-–—]\s*LinkedIn.*$/i,"").trim(),R="",B="",H="",F="",O="",I=M?new RegExp(Zt(M)+"\\s*\\n\\s*(.+?)\\s*\\n","i"):null;if(I){var D=n.match(I);D&&(R=t(D[1]))}var U=n.match(/([\d,.]+[KMB]?)\s+followers/i);U&&(H=U[1]);var Z=n.match(/([\d,.]+\+?)\s+connections?/i);Z&&(F=Z[1]);var W,G=n.match(/Location\s*\n\s*([A-Z][\w\s,.-]+)/i);G&&(B=t(G[1])),(W=n.match(/\bAbout\s*\n([\s\S]*?)(?=\n(?:Experience|Education|Skills|Activity|Courses|Articles|Interests|Licenses|Certifications|Recommendations)\b)/i))&&(O=t(W[1])),O=O.replace(/\s*\.{3}\s*see more\s*$/i,"").replace(/\s*…\s*see more\s*$/i,"");var K=[],V=n.match(/(?:Activity|Articles)\s*\n([\s\S]*?)(?=\n(?:Experience|Education|Skills|Interests|Courses|Licenses|Certifications|Recommendations)\b|$)/i);if(V){var J=V[1].match(/.{20,}(?:\d+\s*(?:likes?|comments?|reactions?|views?))/gi);if(J)for(var X=0;X<J.length;X++)K.push(t(J[X]))}var Y=[];R&&Y.push("Title: "+R),H&&Y.push("Followers: "+H),F&&Y.push("Connections: "+F),B&&Y.push("Location: "+B),e.image&&Y.push("Image: "+e.image);var Q=[];if(O&&Q.push(O),K.length&&Q.push("## Recent Activity\n\n"+K.join("\n\n")),!(R||H||F||B||O||K.length))return null;var ee=T({title:M||"LinkedIn Profile",description:Q.join("\n\n")||e.excerpt||"",details:Y,siteName:"LinkedIn",hostAware:!0,contentType:"article"});return ee.contentType="social",ee.socialKind="profile",ee.platform="LinkedIn",ee}function xs(e,r){if(!je(/(^|\.)bsky\.(app|social)$/))return null;var n=!!document.querySelector('[data-testid="profileScreen"], [data-testid="profileView"]'),o=/^\/profile\/[^/]+\/post\//.test(location.pathname);if(!n&&!o)return null;if(n&&!o){var a=document.querySelector('[data-testid="profileHeaderDisplayName"]'),l=document.querySelector('[data-testid="profileHeaderDescription"]'),s=document.querySelector('[data-testid="profileHeaderFollowersButton"]'),c=document.querySelector('[data-testid="profileHeaderFollowsButton"]'),u=a?t(a.textContent):"",d=l?t(l.textContent):"",m="",p=(location.pathname||"").split("/").filter(Boolean);"profile"===p[0]&&p[1]&&(m="@"+p[1]);var h="",f="";if(s){var g=(s.getAttribute("aria-label")||"").match(/^([\d,]+)\s+followers/i);h=g?g[1]:t(s.textContent).replace(/\s*followers?$/i,"").trim()}if(c){var y=(c.getAttribute("aria-label")||"").match(/^([\d,]+)\s+following/i);f=y?y[1]:t(c.textContent).replace(/\s*following$/i,"").trim()}var b="",k=i(r).match(/([\d,.]+[KMB]?)\s+posts?\b/i);k&&(b=k[1]);var A=e.image||"";if(!A){var C=document.querySelector('[data-testid="userAvatarImage"]');C&&(A=C.src||"")}for(var q=[],_=document.querySelectorAll('[data-testid="postText"]'),E=0;E<_.length;E++){var j=_[E],L=t(j.textContent);if(L&&!(L.length<5)){var $=j.closest('[data-testid^="feedItem-by-"]'),P=[];if($){var N=$.querySelector('[data-testid="replyBtn"]'),z=$.querySelector('[data-testid="repostCount"]'),M=$.querySelector('[data-testid="likeCount"]');if(N){var R=(N.getAttribute("aria-label")||"").match(/\((\d[\d,]*)\s+repl/i);R&&P.push(R[1]+" replies")}if(z){var B=t(z.textContent);B&&"0"!==B&&P.push(B+" reposts")}if(M){var H=t(M.textContent);H&&"0"!==H&&P.push(H+" likes")}var F=($.getAttribute("data-testid")||"").replace("feedItem-by-",""),O=m.replace("@",""),I=F&&O&&F!==O}var D="";I&&(D+="Repost @"+F+": "),D+=L,P.length&&(D+=" ["+P.join(", ")+"]"),q.push(D)}}var U=[];m&&U.push("Handle: "+m),h&&U.push("Followers: "+hs(h,!0)),f&&U.push("Following: "+hs(f,!0)),b&&U.push("Posts: "+b),A&&U.push("Image: "+A);var Z=[];if(d&&Z.push(d),q.length&&Z.push("## Recent Posts\n\n"+q.join("\n\n")),!u&&!d&&!q.length)return null;var W=T({title:u||m||"Bluesky Profile",description:Z.join("\n\n"),details:U,siteName:"Bluesky",hostAware:!0,contentType:"article"});return W.contentType="social",W.socialKind="profile",W.platform="Bluesky",W.handle=m||null,W}var G=(location.pathname||"").split("/").filter(Boolean),K=document.querySelector('[data-testid="postText"]'),V="",J="";"profile"===G[0]&&G[1]&&(J="@"+G[1]);var X=w("DiscussionForumPosting");if(!X){var Y=w("WebPage");Y&&Y.mainEntity&&-1!==v(Y.mainEntity).indexOf("DiscussionForumPosting")&&(X=Y.mainEntity)}var Q=null,ee=[];if(J){ee=document.querySelectorAll('[data-testid^="postThreadItem-by-"]');for(var te=0;te<ee.length;te++)if(ee[te].getAttribute("data-testid")==="postThreadItem-by-"+J.slice(1)){Q=ee[te];break}}var re=X&&X.url&&new URL(X.url,location.href).pathname===location.pathname;if(!(K||Q&&re))return null;var ne=K?t(K.textContent):S(X.text);if(!ne)return null;var oe=document.querySelector('[data-testid="profileHeaderDisplayName"]');oe&&(V=t(oe.textContent)),!V&&X&&X.author&&(V=x(X.author)),V||(V=(e.title||"").replace(/\s*[-–—|].*$/,"").trim());var ie=K&&(K.closest('[data-testid^="feedItem-by-"]')||document.querySelector('[data-testid^="feedItem-by-"]'));ie||(ie=Q);var ae=[],le=null;if(ie){var se=ie.querySelector('[data-testid="replyBtn"]'),ce=ie.querySelector('[data-testid="repostCount"]'),ue=ie.querySelector('[data-testid="likeCount"]');if(se){var de=(se.getAttribute("aria-label")||"").match(/\((\d[\d,]*)\s+repl/i);de&&(ae.push(de[1]+" replies"),le=parseInt(de[1].replace(/,/g,""),10))}if(ce){var me=t(ce.textContent);me&&"0"!==me&&ae.push(me+" reposts")}if(ue){var pe=t(ue.textContent);pe&&"0"!==pe&&ae.push(pe+" likes")}}var he=[];J&&he.push("Author: "+(V?V+" ("+J+")":J)),ae.length&&he.push("Engagement: "+ae.join(", "));var fe=[];if(Q&&ee.length>1){for(var ge=0;ge<ee.length;ge++)if(ee[ge]!==Q){var ye=t(ee[ge].textContent);ye&&ye.length>3&&fe.push(ye)}}else if(X&&Array.isArray(X.comment))for(var be=0;be<X.comment.length;be++){var ve=S(X.comment[be]&&X.comment[be].text);ve&&ve.length>3&&fe.push(ve)}else for(var we=document.querySelectorAll('[data-testid="postText"]'),xe=1;xe<we.length;xe++){var Se=t(we[xe].textContent);Se&&Se.length>3&&fe.push(Se)}var ke=ne;fe.length&&(ke+="\n\n## Replies\n\n"+fe.join("\n\n"));var Ae=T({title:V||"Post on Bluesky",description:ke,details:he,siteName:"Bluesky",hostAware:!0,contentType:"article"});return Ae.contentType="social",Ae.socialKind=fe.length?"thread":"post",Ae.platform="Bluesky",Ae.handle=J||null,Ae.replyCount=le,Ae}function Ss(e){if(!je(/(^|\.)zeit\.de$/))return null;var t=document.querySelector("article.article")||document.querySelector("article#js-article"),r=t&&(t.querySelector(".article-body")||t.querySelector(".article-page"));return t&&r&&r.querySelector(".paragraph, p")?Fe(e,t,{title:u([".article-heading",".article-heading__headline","h1.article-heading","h1"])||e.title,byline:u([".article-meta .authors",".article__authors","[rel='author']"])||e.byline,minTextLength:500,rewriteRoot:function(e){e.querySelectorAll([".iqdcontainer",".summy",".summary__feedback",".newsletter","[class*='newsletter' i]","[class*='topicbox' i]","[class*='recommend' i]","[class*='related' i]","[data-ct-area*='comments' i]","[data-ct-area*='sharing' i]","[data-ct-area*='recommend' i]","[aria-label*='Newsletter' i]","[aria-label*='Mehr zum Thema' i]","[aria-label*='Seitennavigation' i]","[aria-label*='Schlagwörter' i]","aside","nav"].join(", ")).forEach(function(e){e.remove()})}}):null}function ks(e){if(!je(/(^|\.)blog\.csdn\.net$/))return null;if(!/\/article\/details\/\d+/i.test(location.pathname||""))return null;var r=document.querySelector("#article_content, .article_content, #content_views");if(r&&n(r)>=80)return Fe(e,r,{title:u(["#article-tit",".title-box h1",".article-title-box h1","h1.title-article","h1"]),byline:u([".follow-nickName",".blog-name",".article-bar-top .name","a[href^='https://blog.csdn.net/']"]),publishedTime:u([".time",".bar-content .time","time"],"datetime")||e.publishedTime,minTextLength:80,rewriteRoot:function(e){e.querySelectorAll(".hide-article-box, .readall_box, .article-copyright, .blog-footer-bottom, .recommend-box, .recommend-right, .more-toolbox, .toolbox-list, .csdn-side-toolbar, [class*='comment'], [class*='recommend'], [class*='toolbar'], [class*='share']").forEach(function(e){e.remove()})},siteName:"CSDN"});var o=u(["#article-tit",".title-box h1",".article-title-box h1","h1.title-article","h1"])||t(e&&e.title),i=t(e&&e.excerpt);return o||i?T({title:o,byline:e&&e.byline,publishedTime:e&&e.publishedTime,description:"CSDN article details page returned only public metadata in this browser session."+(i?" "+i:""),siteName:"CSDN",hostAware:!0,contentType:"article"}):null}function As(e,r){if(!je(/(^|\.)(komputerswiat\.pl|onet\.pl|medonet\.pl)$/)&&!je(/(^|\.)poradnikzdrowie\.pl$/))return null;var n=document.createElement("div"),o=u(["h1.article__title",".detail_title",".ods-m-labeled-h1__text","article h1","h1"])||e.title,i=document.querySelector(".ods-article-lead[data-section='article-lead']"),a=document.querySelector(".ods-article-lead .ods-a-lead, .article__lead, .detail_lead, .articleLead"),l=document.querySelector(".ods-m-inline-summary-container__list"),s=document.querySelector(".ods-article-body[data-section='article-body'], .article__body, .detail_body, div.articleContent, .cda_artblox"),c=w(["NewsArticle","Article","VideoObject"]),d=S(c&&c.articleBody),m=function(e){var r=t(e||""),n=r.match(/Poniżej streszczenie artykułu:\s*(?:Skrót przygotowany przez Onet Czat z AI, może zawierać błędy\.\s*)?(.+?)\s*Zapytaj o więcej Onet Czat z AI/i);return n?t(n[1]):""}(r);if(!(i||a||l||s||m||d))return null;var p=l?Array.prototype.map.call(l.querySelectorAll("li"),function(e){return t(e.textContent||"")}).filter(Boolean):[];if(a&&n.appendChild(Cs(a)),!a&&e.excerpt){var h=document.createElement("p");h.textContent=e.excerpt,n.appendChild(h)}if(s&&n.appendChild(Cs(s)),!s&&d){var f=document.createElement("p");f.textContent=d,n.appendChild(f)}var g=a?qs(Cs(a)):e.excerpt||"",y=s?qs(Cs(s)):d||"",b=[];o&&b.push("# "+o),p.length?b.push("## Streszczenie\n\n"+p.map(function(e){return"- "+e}).join("\n")):m&&b.push("## Streszczenie\n\n"+m),Ts(b,g),Ts(b,y);var v=Ut(b.filter(Boolean).join("\n\n")),x=t(v);return x.length<250?null:{title:o||e.title,byline:u([".ods-m-author-authorship__author-item a",".article__author",".detail_author","[rel='author']"])||e.byline,excerpt:g||e.excerpt,siteName:e.siteName||location.hostname,publishedTime:e.publishedTime,html:n.innerHTML,markdown:v,textContent:x,readerMode:!1,contentType:"article",hostAware:!0,docsLike:!0}}function Cs(e){var r=Pe(e,document),n=r.querySelectorAll("iframe, script, style, noscript, nav, footer, [data-ad], [data-testid*='ad' i], [class~='ad'], [class*='-ad-'], [class$='-ad'], [class^='ad-'], [id~='ad'], [id*='-ad-'], [id$='-ad'], [id^='ad-'], [class*='recommend' i], [class*='related' i]");return Array.prototype.forEach.call(n,function(e){e.remove()}),Array.prototype.forEach.call(r.querySelectorAll("p, div, section, aside, span"),function(e){var r=t(e.textContent||"");(/^REKLAMA$/i.test(r)||/^Dalszy ciag artykulu pod materialem wideo/i.test(en(r)))&&e.remove()}),Array.prototype.forEach.call(r.querySelectorAll("h2, h3, h4, p, div, section, aside"),function(e){var n=en(t(e.textContent||""));if(/^(?:Zobacz takze|Czytaj takze|Wydarzenie dnia|Zobacz rowniez)(?::|$)/i.test(n)){var o=e.parentElement;e.querySelector("a")?e.remove():o&&o!==r&&o.remove()}}),r}function qs(e){return Ut(tr(e.innerHTML||"")).replace(/\s+-\s+\*\*(?:Zobacz (?:takze|także)|Czytaj (?:takze|także)|Wydarzenie dnia|Zobacz (?:rowniez|również))\s*:?\*\*[\s\S]*$/i,"").trim()}function Ts(e,r){if(r=t(r||"")){var n=r.toLowerCase();e.some(function(e){return-1!==t(e).toLowerCase().indexOf(n)})||e.push(r)}}var _s={regionSelector:".wp-section-grid, .wp-offers-section, .wp-section-stream, .wp-leaflets-section",skipEditorialGuard:!0,allowEmptyRegions:!0,cardSelector:"a.wp-teaser-tile, a.wp-teaser-regular, a.wp-leaflet-card",ancestorLink:!0,directCard:!0,headingBuilder:function(e){var r=e.querySelector(".wp-section-title-link, .wp-section-colored-header-title");return!r&&e.matches(".wp-section-stream")&&(r=e.querySelector("h1, h2")),t(r&&r.textContent)},regionFilter:function(e){return e.matches(".wp-section-grid")?!!e.querySelector(".wp-section-title-link"):e.matches(".wp-offers-section, .wp-leaflets-section")?!!e.querySelector(".wp-section-colored-header-title"):!!e.querySelector("h1, h2")}};function Es(e){if("wp.pl"!==(location.hostname||"").replace(/^www\./i,"")||"/"!==location.pathname)return null;var t=_o(document.body,_s);return t?L(e,{title:e&&e.title,excerpt:e&&e.excerpt,markdown:t.markdown,textContent:t.markdown,items:t.items,hostAware:!0}):null}var js={regionSelector:"section[class*='Feed_']",skipEditorialGuard:!0,cardSelector:"article[class*='Card_']",directCard:!0,headingBuilder:function(e){var r=e.querySelector("article[class*='Card_']"),n=Array.prototype.filter.call(e.querySelectorAll("h1, h2"),function(e){return!e.closest("article[class*='Card_']")&&!(r&&!(e.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_FOLLOWING))}),o=t(n[0]&&n[0].textContent);return!o||o.length>90||function(e){return/^(REDAKCJA POLECA|REKLAMA|REKLAMY|MENU|NAWIGACJA|WIĘCEJ|NEWSLETTER|PARTNERZY|STOPKA)$/i.test(e)}(o)?"":o},additionalRegions:function(e){return Array.prototype.filter.call(e.querySelectorAll("div[class*='DynamicRightFeed_']"),function(e){return e.closest("div[class*='PageGroup_right__']")&&!e.closest("section")&&e.querySelector("article[class*='Card_']")&&!$s(e)})},fallbackHeadingBuilder:function(e){return e.matches("div[class*='DynamicRightFeed_']")?"More from Onet":""},cardFilter:function(e){var t=e.card;return!$s(t)&&!/(ad|advert|sponsor|promo|utility)/i.test(t.className||"")},regionFilter:function(e){return!$s(e)}};function Ls(e){if("onet.pl"!==(location.hostname||"").replace(/^www\./i,"")||"/"!==location.pathname)return null;var t=_o(document.body,js);return t?L(e,{title:e&&e.title,excerpt:e&&e.excerpt,markdown:t.markdown,textContent:t.markdown,items:t.items,hostAware:!0}):null}function $s(e){return!!e.closest("aside, nav, header, footer, [role='navigation'], [role='complementary'], [role='banner'], [role='contentinfo']")}registerHostAwareProfile(!0,Ml),registerHostAwareProfile(!0,ja),registerHostAwareProfile(!0,La),registerHostAwareProfile(!0,$a),registerHostAwareProfile(!0,ds),registerHostAwareProfile(!0,As),registerHostAwareProfile(!0,ka),registerHostAwareProfile(!0,Aa),registerHostAwareProfile(!0,Pa),registerHostAwareProfile(!0,Na),registerHostAwareProfile(!0,Ba),registerHostAwareProfile(!0,Ra),registerHostAwareProfile(!0,Ma),registerHostAwareProfile(!0,qa),registerHostAwareProfile(["wp.pl"],Es),registerHostAwareProfile(["onet.pl"],Ls),registerHostAwareProfile(!0,Ss),registerHostAwareProfile(!0,za),registerHostAwareProfile(!0,Ga),registerHostAwareProfile(!0,Za),registerHostAwareProfile(!0,Wa),registerHostAwareProfile(!0,Ka),registerHostAwareProfile(!0,Va),registerHostAwareProfile(!0,Ja),registerHostAwareProfile(!0,Xa),registerHostAwareProfile(!0,function(e){return Ze(e,{hostPattern:/(^|\.)(hatenablog\.com|hateblo\.jp|hatenablog\.net|hatenadiary\.com)$/i,bodySelectors:["article.entry .entry-content","article.entry .entry-body","article .entry-content",".entry-body",".entry-content"],titleSelectors:["h1.entry-title",".entry-title-link","article.entry h1","h1"],bylineSelectors:[".entry-footer .author a",".entry-footer .vcard a",".entry-header .author a"],minTextLength:180,removalSelectors:[".hatena-star-container",".hatena-star-star-container",".entry-footer",".entry-footer-section",".comment-box",".comment",".comments",".pager",".related-entries",".google-afc"]})}),registerHostAwareProfile(!0,function(e){return function(e){if(!/^\/species\/\d+\/\d+\/?$/i.test(location.pathname||""))return null;var r=document.querySelector("#redlist-js .page-species"),n=t(document.title||u(["main h1","h1"])||e.title),o=t([e&&e.siteName,e&&e.title,document.title,document.body&&document.body.textContent].join(" "));if(!r||!/\bIUCN Red List\b/i.test(o)||!n)return null;var i=["taxonomy","assessment-information","geographic-range","population","habitat-ecology","threats","use-trade","conservation-actions"].map(function(e){return document.getElementById(e)}).filter(Boolean);if(i.length<4||!document.getElementById("assessment-information"))return null;var a=document.createElement("article"),l=document.createElement("h1");l.textContent=n.replace(/\s*--\s*$/i,""),a.appendChild(l);var s=r.querySelector(".layout-headline__supplement.layout-assessment, .layout-assessment__major");return s&&/\b(Abstract|Red List|Assessment)\b/i.test(t(s.textContent||""))&&a.appendChild(ze(s)),i.forEach(function(e){var t=ze(e);t.querySelectorAll("script, style, svg, iframe, noscript, input, button, select, form, nav, .map, [class*='map' i], [class*='tooltip' i], [class*='translate' i], [aria-hidden='true']").forEach(function(e){e.remove()}),Re(t),a.appendChild(t)}),Ke(e,a,{cloneRoot:!1,title:n,excerpt:e.excerpt,defaultExcerpt:!1,siteName:e.siteName||"IUCN Red List",minTextLength:900,validateMarkdown:function(e){return/\bAssessment Information\b[\s\S]*\bPopulation\b[\s\S]*\bThreats\b/i.test(e)}})}(e)||function(e){if(!/^\/[A-Za-z_]+\/Gene\/Summary\/?$/i.test(location.pathname||""))return null;var r=document.querySelector("#main"),n=r&&r.querySelector("h1.summary-heading"),o=r&&r.querySelector(".summary_panel"),i=r&&r.querySelector("#GeneSummary"),a=(r&&r.querySelector("#transcripts_table"),t(n&&n.textContent||""));return r&&n&&o&&i&&/^Gene:\s+\S+\s+ENS[A-Z]*G\d+/i.test(a)?Ke(e,r,{title:a,excerpt:e.excerpt,defaultExcerpt:!1,siteName:e.siteName||"Ensembl",cleanupRoot:!1,minTextLength:500,rewriteRoot:function(e){e.querySelectorAll("script, style, svg, iframe, noscript, input, button, select, .navbar, .image_panel, .image_toolbar, .json_, .label_layer, .hover_label, .boundaries_wrapper, .drag_select, .session_messages, .dataTables_top, .data_table_config, .floating_popup, .tool_buttons, .invisible, .hidden, ._ht_tip, .button.toggle").forEach(function(e){e.remove()}),e.querySelectorAll("img").forEach(function(e){t(e.alt||e.title||"")||e.remove()})},validateMarkdown:function(e){return/\bDescription\b[\s\S]*\bLocation\b[\s\S]*\bAbout this gene\b/i.test(e)&&/\b(Transcripts|MANE|UniProtKB|RefSeq|CCDS)\b/i.test(e)}}):null}(e)||function(e){var r=t((document.querySelector("meta[name='ncbi_db']")||{}).content||"").toLowerCase();if(r&&"gene"!==r)return null;if(!/^\/gene\/\d+\/?$/i.test(location.pathname||""))return null;var n=document.querySelector(".rprt.full-rprt"),o=n&&n.querySelector("#gene-name"),i=n&&n.querySelector("#summaryDl"),a=n?Array.prototype.slice.call(n.querySelectorAll(".rprt-section[data-section]")):[];if(!n||!o||!i||a.length<2)return null;var l=t(o.textContent||"");return l&&/\bGene ID:\s*\d+/i.test(t(n.textContent||""))?Ke(e,n,{title:l,excerpt:e.excerpt,defaultExcerpt:!1,siteName:e.siteName||"NCBI Gene",cleanupRoot:!1,minTextLength:500,rewriteRoot:function(e){e.querySelectorAll("script, style, svg, iframe, noscript, input, button, select, .rprt-section-tools, .download-datasets, .gene-section-help, .gene-top-page, .ui-ncbipopper-wrapper, [aria-hidden='true']").forEach(function(e){e.remove()}),e.querySelectorAll("[style*='display:none'], [style*='display: none']").forEach(function(e){e.remove()}),e.querySelectorAll("table").forEach(function(e){t((e.querySelector("tbody")||e).textContent||"")||e.remove()})},validateMarkdown:function(e){return/\bOfficial\s+Symbol\b[\s\S]*\bGene type\b[\s\S]*\bOrganism\b/i.test(e)&&/\b(Summary|Genomic context|Expression|Interactions|General gene information)\b/i.test(e)}}):null}(e)||function(e){if(!/^\/A\d{6}$/i.test(location.pathname||""))return null;var r=document.querySelector(".seqhead .seqnumname"),n=document.querySelector(".seqdatabox .seqdata"),o=Array.prototype.slice.call(document.querySelectorAll(".entry .section"));if(!r||!n||o.length<3)return null;var i=t((r.querySelector(".seqnum")||{}).textContent||""),a=t((r.querySelector(".seqname")||{}).textContent||"").replace(/\s*\(Formerly\s+[^)]*\)\s*$/i,"");if(!/^A\d{6}$/i.test(i)||!a)return null;var l={OFFSET:!0,COMMENTS:!0,REFERENCES:!0,FORMULA:!0,EXAMPLE:!0},s={OFFSET:"Offset",COMMENTS:"Sequence comments",FORMULA:"Formula",EXAMPLE:"Example",REFERENCES:"References"},c={};if(o.forEach(function(e){var r=t((e.querySelector(".sectname")||{}).textContent||"").toUpperCase();if(l[r]&&!c[r]){var n=e.querySelector(".sectbody");!n||t(n.textContent||"").length<2||(c[r]=n)}}),!c.COMMENTS&&!c.FORMULA&&!c.EXAMPLE)return null;var u=document.createElement("article"),d=document.createElement("h1");d.textContent=i+" - "+a,u.appendChild(d);var m=document.createElement("h2");m.textContent="Terms",u.appendChild(m);var p=document.createElement("p");return p.textContent=t(n.textContent||""),u.appendChild(p),["OFFSET","COMMENTS","FORMULA","EXAMPLE","REFERENCES"].forEach(function(e){var r=c[e];if(r){var n=document.createElement("section"),o=document.createElement("h2");o.textContent=s[e],n.appendChild(o),Array.prototype.slice.call(r.querySelectorAll(".sectline")).forEach(function(e){if(t(e.textContent||"")){var r=document.createElement("p");r.innerHTML=ze(e).innerHTML,n.appendChild(r)}}),t(n.textContent||"").length>o.textContent.length&&u.appendChild(n)}}),Ke(e,u,{cloneRoot:!1,title:i+" - "+a,excerpt:a,siteName:e.siteName||"OEIS",cleanupRoot:!1,minTextLength:300,validateMarkdown:function(e){return/\bFormula\b[\s\S]*\bExample\b/i.test(e)}})}(e)||function(e){if(!/^\/structure\/[A-Za-z0-9]{4}$/i.test(location.pathname||""))return null;var r=t((document.querySelector("#structureID")||{}).textContent||"").replace(/ /g," ").match(/\b[A-Za-z0-9]{4}\b/),n=r&&r[0].toUpperCase(),o=t((document.querySelector("#structureTitle")||{}).textContent||"");if(!n||!o)return null;var i=t(document.body&&document.body.textContent||""),a=["Classification","Organism(s)","Mutation(s)","Deposited","Released","Deposition Author(s)","Method","Resolution"],l=["PDB ID: "+n,Ya(i,"Classification",a),Ya(i,"Organism(s)",a),Ya(i,"Method",["Resolution","R-Value Free","R-Value Work","Space Group"]),Ya(i,"Resolution",["R-Value Free","R-Value Work","R-Value Observed","Space Group"]),Ya(i,"Deposited",a),Ya(i,"Released",a)].filter(Boolean),s="",c=document.querySelector("#primarycitation, [id*='citation' i], [class*='citation' i]");if(c&&(s=t(c.textContent||"").replace(/^Primary Citation\s*/i,"").replace(/\s*PubMed(?: Abstract)?:[\s\S]*$/i,"")),!s){var u=i.match(/Structure of [\s\S]{20,260}?(?=PubMed Abstract:|PDB DOI:|Experimental Data|$)/i);s=u?t(u[0]):""}var d=Ya(i,"PubMed Abstract",["PDB DOI","Experimental Data","Deposition Data","Ligands","Clicking the button"]).replace(/\s+View More[\s\S]*$/i,"").replace(/\s+\/\/ Used for[\s\S]*$/i,""),m=[];s&&m.push("Primary citation: "+s),d&&m.push("PubMed abstract: "+d);var p=T({title:n+" - "+o,details:l,highlights:m,siteName:e.siteName||"RCSB PDB",contentType:"article",hostAware:!0});return t(p.markdown).length<180||!/\bPDB ID:\s*[A-Z0-9]{4}\b/.test(p.markdown)?null:p}(e)||function(e){if(!/\.nist\.gov$/i.test(location.hostname||"")&&!/^nist\.gov$/i.test(location.hostname||""))return null;var r=document.querySelector("main#main, #main"),n=t((r&&r.querySelector("h1#Top, h1")||{}).textContent||"");if(!r||!n)return null;var o=t(r.textContent||"");return/\bFormula:\s*\S/i.test(o)&&/\bMolecular weight:\s*[0-9.]+/i.test(o)&&/\bCAS Registry Number:\s*\S/i.test(o)?Ke(e,r,{title:n,excerpt:e.excerpt,defaultExcerpt:!1,siteName:e.siteName||"NIST",cleanupRoot:!1,minTextLength:220,rewriteRoot:function(e){e.querySelectorAll(".copy-prior-text, svg, img, form, .sr-only").forEach(function(e){e.remove()}),e.querySelectorAll("li").forEach(function(e){var r=t(e.textContent||"");(/^Chemical structure:/i.test(r)||/^Permanent link/i.test(r))&&e.remove()})},validateMarkdown:function(e){return/\bFormula\b[\s\S]*\bMolecular weight\b[\s\S]*\bCAS Registry Number\b/i.test(e)}}):null}(e)}),registerHostAwareProfile(!0,ks),registerHostAwareProfile(!0,Qa),registerHostAwareProfile(!0,tl),registerHostAwareProfile(!0,ol),registerHostAwareProfile(!0,jl),registerHostAwareProfile(!0,Ll),registerHostAwareProfile(!0,$l),registerHostAwareProfile(!0,zl),registerHostAwareProfile(!0,ql),registerHostAwareProfile(!0,Nl),registerHostAwareProfile(!0,Tl),registerHostAwareProfile(/(^|\.)sec\.gov$/i,function(e){if(!je(/(^|\.)sec\.gov$/i))return null;if(!/^\/Archives\/edgar\/data\//i.test(location.pathname||""))return null;var r=document.querySelector("#formDiv, .formContent, #main-content, main, body");return r?Ke(e,r,{title:u(["#formName",".formName","h1","h2"])||t(e.title||document.title)||"SEC EDGAR filing",byline:null,siteName:"SEC EDGAR",publishedTime:null,minTextLength:500,cleanupRoot:!1,rewriteRoot:function(e){e.querySelectorAll("script, style, noscript, iframe, form, input, button, nav").forEach(function(e){e.remove()})},postProcessMarkdown:function(e){return e.replace(/\n{4,}/g,"\n\n\n").trim()},extra:{secFiling:!0}}):null}),registerHostAwareProfile(!0,function(e){return function(e){var r=document.querySelector("#MainContent .EurlexContent #document1")||document.querySelector("#MainContent .EurlexContent #textTabContent")||document.querySelector("#MainContent .EurlexContent #PP1Contents")||document.querySelector("#MainContent .EurlexContent");return r&&document.querySelector("#MainContent .EurlexContent")&&(document.querySelector("#op-header")||document.querySelector(".PageShare"))?il(e,r,{minText:300,docsLike:!0,title:t((document.querySelector("#MainContent .EurlexContent #PP1Contents #title, #MainContent .EurlexContent #PP1Contents #englishTitle")||{}).textContent||""),titleRoot:document.querySelector("#MainContent")||document,strip:function(e){e.querySelectorAll("#translatedTitle.hidden, #originalTitle.hidden, .hidden, .PageShare, .AffixSidebarWrapper").forEach(function(e){e.remove()})}}):null}(e)||function(e){var t=document.querySelector("main#main-content .group--type--microsite.microsite--type--programs")||document.querySelector("main[role='main'] .group--type--microsite.microsite--type--programs")||document.querySelector("main#main-content .node-intro")||null;return t&&(document.querySelector(".usa-megamenu, .usa-nav__submenu")||document.querySelector(".usa-banner"))&&t.querySelector("h1, .microsite-title, .field--name--field-intro, .field--name-field-intro")?il(e,t,{minText:350,titleRoot:t,strip:function(e){e.querySelectorAll(".group-menu, [class*='group-menu'], .usa-breadcrumb, [id*='breadcrumb' i], .slick-dots, .slick-arrow").forEach(function(e){e.remove()})}}):null}(e)||function(e){var t=document.querySelector("main#main-content #main-article")||document.querySelector("main#main-content")||document.querySelector("main[role='main']");return t&&document.querySelector("#feedback-form")&&document.querySelector("main#main-content")&&t.querySelector("nav.contents, .contents, h1")&&/\bYour Europe\b/i.test([e.siteName||"",e.title||"",document.title||"",document.body.textContent||""].join(" "))?il(e,t,{minText:150,preserveContentNav:!0,titleRoot:document.querySelector("main#main-content")||t,strip:function(e){e.querySelectorAll("#feedback-form, [id*='feedback' i], [class*='feedback' i], .share, [id^='sh-']").forEach(function(e){e.remove()})}}):null}(e)||function(e){var r=document.querySelector("#stnd-designation, [id*='standard' i][id*='designation' i], [class*='standard' i][class*='designation' i]"),n=document.querySelector("#stnd-title, [id*='standard' i][id*='title' i], [class*='standard' i][class*='title' i]"),o=document.querySelector("#standard-details, [id*='standard' i][id*='details' i], [class*='standard' i][class*='details' i]"),i=document.querySelector("#stnd-description, [id*='standard' i][id*='description' i], [class*='standard' i][class*='description' i]"),a=document.querySelector("#page-title.standard, [class*='standard' i][id*='title' i]"),l=document.querySelector("#content.standard #main-content, main #main-content, main");if(!(r&&n&&o&&i&&l&&a))return null;var s=document.createElement("article");a&&s.appendChild(Pe(a,document)),s.appendChild(Pe(i,document)),s.appendChild(Pe(o,document));var c=l.querySelector("#working-group-details");if(c){var u=Pe(c,document);u.querySelectorAll("#working-group-projects-standards, .tab-content, .nav-tabs, [role='tablist']").forEach(function(e){e.remove()}),s.appendChild(u)}return il(e,s,{minText:250,title:t([r.textContent,n.textContent].join(" - ")),strip:function(e){Me(e,ce+", form, .osano-cm-window, [class*='cookie' i], [class*='newsletter' i]")}})}(e)||function(e){var r=Array.prototype.slice.call(document.querySelectorAll(".page-content .container, main .container, main, .content")),o=null;return r.forEach(function(e){var r=Array.prototype.slice.call(e.querySelectorAll("ul.arrows, ol.arrows, ul, ol")).filter(function(e){var r=Array.prototype.slice.call(e.querySelectorAll("a[href]"));return!(r.length<4)&&r.filter(function(e){var r=t(e.textContent||""),n=e.getAttribute("href")||"";return/\b(?:convention|protocol|principles?|instrument)\b/i.test(r)&&/\b(?:conventions?|instruments?|full-text|specialised-sections)\b/i.test(n)}).length>=Math.min(4,r.length)}),i=t([e.querySelector("h1, h2")&&e.querySelector("h1, h2").textContent,e.textContent].join(" ")),a=n(e)+1e3*r.length;r.length<2||(/\bConventions? and (?:other )?Instruments?\b/i.test(i)||/\bCore Conventions?\b/i.test(i))&&(!o||a>o.score)&&(o={root:e,score:a})}),o?il(e,o.root,{docsLike:!0,minText:400,titleRoot:o.root,strip:function(e){Me(e,ce+", [class*='breadcrumb' i], .navbar, [class*='nav' i], form")}}):null}(e)||dl(e)||ul(e)||function(e){var r=Array.prototype.slice.call(document.querySelectorAll("[id*='listView' i], [role='list'], [class*='topic' i][class*='list' i], [class*='card' i][class*='grid' i]")),n=null;if(r.forEach(function(e){var r={},i=[],a=/topic|taxonomy|listview/i.test((e.id||"")+" "+(e.className||"")+" "+e.getAttribute("data-sf-element"));if(e.querySelectorAll("a[href]").forEach(function(e){var n=o(e.getAttribute("href")||""),l=t(e.getAttribute("aria-label")||(e.querySelector("h2, h3, h4")||{}).textContent||""),s=Array.prototype.slice.call(e.querySelectorAll("p")),c="";!l&&s.length&&(l=t(s[s.length-1].textContent||e.textContent||"")),s.length>1&&(c=t(s[0].textContent||"")),!c&&l&&(c=ri(e,l)),!l||!n||l.length<3||l.length>180||r[n]||(a||/\btopics?\b/i.test(n+" "+l+" "+c))&&(/^(home|health topics|topics|news|headlines|menu|search|more)$/i.test(l)||(r[n]=!0,i.push({text:l,url:n,detail:c})))}),!(i.length<8)){var l=100*i.length+(a?1e3:0);(!n||l>n.score)&&(n={root:e,items:i,score:l})}}),!n)return null;var i=t((document.querySelector("h1")||{}).textContent||e.title||document.title||"Topics");return L(e,{title:i,excerpt:e.excerpt,items:n.items,html:ze(n.root).innerHTML,textContent:i+"\n"+C(n.items)})}(e)}),registerHostAwareProfile(/(^|\.)wykop\.pl$/i,ps),registerHostAwareProfile(!0,function(e){return function(e){var r=kt(e);return(je(/(^|\.)nextjs\.org$/)||/next\.js/i.test(r))&&/^\/docs\//.test(location.pathname)?Lt(e,["main article","main .prose","main [data-docs-body]"],{titleSelectors:["main article h1","main .prose h1","main h1"],fallbackTitle:function(e){return t((e.title||document.title).replace(/\s*[|·-]\s*Next\.js$/i,""))}}):null}(e)||function(e){var r=kt(e);return(je(/(^|\.)react\.dev$/)||/react/i.test(r))&&/^\/(reference|learn)\//.test(location.pathname)?Lt(e,["main article","main [data-pagefind-body]","main .max-w-4xl article"],{titleSelectors:["main article h1","main h1"],fallbackTitle:function(e){return t((e.title||document.title).replace(/\s*[–-]\s*React$/i,""))}}):null}(e)||ha(e)||function(e){var r=kt(e);return je(/(^|\.)docs\.aws\.amazon\.com$/)||/aws/i.test(r)?Lt(e,["#main-col-body","#main-content #main-col-body","#main-content","main"],{titleSelectors:["#main-content h1","#main-col-body h1","main h1"],fallbackTitle:function(e){return t((e.title||document.title).replace(/\s*-\s*AWS.*$/,""))},removeCookiePrefs:!0,removeMarketingTips:!0,rewriteRoot:function(e){e.querySelectorAll("awsdocs-language-banner, awsdocs-page-header, awsdocs-filter-selector, .awsdocs-page-header-container, .awsdocs-note.awsdocs-tip").forEach(function(e){e.remove()}),e.querySelectorAll("section, div, aside").forEach(function(e){var r=t(e.textContent);/join serverless experts|builder center|click here to sign up/i.test(r)&&r.length<800&&e.remove()})}}):null}(e)||function(e){var r=kt(e);return(je(/(^|\.)developer\.mozilla\.org$/)||/mdn|mozilla/i.test(r))&&(/^\/.*\/docs\//.test(location.pathname)||/^\/en-US\//.test(location.pathname)||/mdn|mozilla/i.test(r))?Lt(e,["main article","article.main-page-content","main .main-page-content","main"],{titleSelectors:["main article h1","article.main-page-content h1","main h1"],fallbackTitle:function(e){return t((e.title||document.title).replace(/\s*-\s*MDN.*$/,""))},removeTryIt:!1,rewriteRoot:function(e){e.querySelectorAll("section").forEach(function(e){var r=e.querySelector("h2, h3, h4");r&&/^try it$/i.test(t(r.textContent))&&e.remove()}),e.querySelectorAll("h2, h3, h4").forEach(function(e){var r=t(e.textContent);if(/^(?:try it|help improve mdn)$/i.test(r)){var n=e.closest("section");n?n.remove():e.remove()}}),e.querySelectorAll("section, div, aside").forEach(function(e){var r=t(e.textContent);(/^baseline\b/i.test(r)||/this feature is well established and works across many devices/i.test(r))&&r.length<800&&e.remove()}),e.querySelectorAll("table.bc-table, [class*='bc-table'], [class*='bcd-table']").forEach(function(e){t(e.textContent).length<30&&e.remove()})}}):null}(e)||fa(e)||function(e){var t=kt(e);return je(/(^|\.)developer\.hashicorp\.com$/)||/hashicorp|terraform/i.test(t)?Lt(e,["main article","main","article"],{titleSelectors:["main article h1","main h1","article h1"],fallbackTitle:function(e){return e.title||document.title},rewriteRoot:function(e){e.querySelectorAll("nav, aside, .sidebar, [data-testid='side-nav'], [data-testid='breadcrumbs']").forEach(function(e){e.remove()}),pt(e,"div, p, span, button, a",/^(on this page|edit this page on github|theme)$/i),e.querySelectorAll("details summary").forEach(function(e){var t=jt(e.textContent);if(t){var r=document.createElement("h3");r.textContent=t,e.replaceWith(r)}})}}):null}(e)||function(e){var t=kt(e);return je(/(^|\.)docs\.docker\.com$/)||/docker/i.test(t)?Lt(e,["main article","main","article"],{titleSelectors:["main article h1","main h1","article h1"],fallbackTitle:function(e){return e.title||document.title},rewriteRoot:function(e){e.querySelectorAll("nav, aside, .toc, .sidebar, [data-pagefind-ignore]").forEach(function(e){e.remove()}),pt(e,"div, p, span, button, a",/^(table of contents|on this page|edit this page|copy page)$/i)}}):null}(e)||function(e){var r=kt(e);return je(/(^|\.)grafana\.com$/)&&/^\/docs\//.test(location.pathname)&&/grafana/i.test(r)?Lt(e,["main article","main","article"],{titleSelectors:["main article h1","main h1","article h1"],fallbackTitle:function(e){return(e.title||document.title).replace(/\s*\|\s*Grafana.*$/i,"")},rewriteRoot:function(e){e.querySelectorAll("nav, aside, footer, [aria-label='breadcrumb'], [data-testid='sidebar'], .toc, .sidebar").forEach(function(e){e.remove()}),pt(e,"div, p, span, button, a",/^(on this page|scroll for more|suggest an edit in github|create a github issue|email docs@grafana\.com|help and support)$/i),e.querySelectorAll("section, div").forEach(function(e){var r=t(e.textContent);(/^is this page helpful\??/i.test(r)||/^was this page helpful\??/i.test(r))&&r.length<200&&e.remove(),/^related resources from grafana labs/i.test(r)&&r.length<2500&&e.remove()})}}):null}(e)||ya(e)||ba(e)}),registerHostAwareProfile(!0,va),registerHostAwareProfile(!0,wa),registerHostAwareProfile(!0,xa),registerHostAwareProfile(!0,yl),registerHostAwareProfile(/(^|\.)github\.com$/,kl),registerHostAwareProfile(!0,function(e){var r=ta(e);return ca(e,r)||function(e,r){if(!(r=r||ta(e))||"rustdoc"!==r.system)return null;var n=St(["main",".rustdoc","body"]);return Pt(e,n,{titleSelectors:["main h1",".rustdoc h1","h1"],fallbackTitle:function(){return e.title||document.title},titleFormatter:function(e){return e.replace(/\s+copy item path$/i,"")},postProcessMarkdown:function(e){return Array.prototype.slice.call(n.querySelectorAll("pre")).map(function(e){return Wt(e.textContent)}).filter(Boolean).forEach(function(t){var r=t.split("\n").filter(Boolean),n=r[r.length-1];if(n&&-1===e.indexOf(t)){var o=new RegExp("\\n*```[^\\n]*\\n[\\s\\S]*?"+Zt(n)+"\\n```","g");e=[(e=e.replace(o,"")).trim(),Gt("",t).trim()].filter(Boolean).join("\n\n")}}),e},rewriteRoot:function(e){e.querySelectorAll("nav, #sidebar, .sidebar, .sub-sidebar-menu, #settings, #help-button, #crate-search, .mobile-topbar, .sidebar-elems, .out-of-band").forEach(function(e){e.remove()}),pt(e,"a, button, div, span, p",/^(search|settings|help|copy item path|expand description|show sidebar|hide sidebar|toggle sidebar|source|collapse all|expand all)$/i),e.querySelectorAll("a[href]").forEach(function(e){var r=t(e.getAttribute("title")),n=t(e.textContent);(/show sidebar|hide sidebar|toggle sidebar/i.test(r)||/^(search|settings|help|source|§)$/i.test(n))&&e.remove()}),e.querySelectorAll("a.srclink, a.src, a[class*='srclink']").forEach(function(e){e.remove()}),e.querySelectorAll(".example-wrap, .example, [class*='example']").forEach(function(e){e.querySelectorAll("a[href], button").forEach(function(e){var r=e.getAttribute("href")||"",n=t(e.textContent);(/play\.rust-lang\.org|rustdoc\.test/i.test(r)||/^(run|play)$/i.test(n))&&e.remove()}),pt(e,"p, span",/^see\s*\.?$/i)}),e.querySelectorAll("h1, h2, h3, h4").forEach(function(e){e.textContent=t(e.textContent).replace(/\s+copy item path$/i,"").replace(/^§\s*/,"")})}})}(e,r)||function(e,t){return(t=t||ta(e))&&"javadoc"===t.system?Lt(e,["main",".contentContainer","body"],{titleSelectors:["main h1",".header h1","h1"],fallbackTitle:function(){return e.title||document.title},rewriteRoot:function(e){e.querySelectorAll("nav, header, footer, .top-nav, .sub-nav, .skip-nav, .search-spec, .nav-list, .header, .footer").forEach(function(e){e.remove()}),pt(e,"a, button, span",/^(skip navigation|search|module|package|class|use|tree|deprecated|index|help)$/i),qt(e)}}):null}(e,r)||function(e,r){if(!(r=r||ta(e))||"dartdoc"!==r.system)return null;var n=gt(u(["#dartdoc-main-content h1","main h1","h1"])||e.title||document.title),i=u(["#dartdoc-main-content .desc p","main .desc p","main p"]),a=[];if(document.querySelectorAll("section.summary dl dt").forEach(function(e){var r=e.querySelector(".name a[href], a[href]");if(r){var n=t(r.textContent),i=o(r.getAttribute("href")),l=e.nextElementSibling&&e.nextElementSibling.tagName&&"dd"===e.nextElementSibling.tagName.toLowerCase()?e.nextElementSibling:null,s=t(l&&l.textContent);n&&i&&a.push({title:n,href:i,description:s})}}),a.length<4)return null;var l=["# "+(n||"API Reference")];i&&l.push(i),l.push("## Libraries\n\n"+a.map(function(e){return"- ["+e.title+"]("+e.href+")"+(e.description?" - "+e.description:"")}).join("\n"));var s=Ut(l.join("\n\n"));return{title:n||e.title||document.title,byline:null,excerpt:i||a[0].description||null,siteName:e.siteName||location.hostname,publishedTime:null,html:(document.querySelector("#dartdoc-main-content")||document.querySelector("main")||document.body).innerHTML,markdown:s,textContent:t(s),docsLike:!0,readerMode:!1,contentType:"article"}}(e,r)||function(e,t){if(!(t=t||ta(e))||"go_pkg"!==t.system)return null;var r=St(["#main-content","main","body"]);return Pt(e,r,{titleSelectors:["#main-content h1","main h1","h1"],fallbackTitle:function(){return e.title||document.title},titleFormatter:function(e){return e.replace(/\s*-\s*Go Packages$/i,"")},rewriteRoot:function(e){e.querySelectorAll("header, nav, aside, footer, .go-Header, .go-MainHeader, .go-LeftNav, .go-DetailsHeader, .go-Main-aside").forEach(function(e){e.remove()}),pt(e,"div, p, span, a, button",/^(jump to \.\.\.|documentation|details|repository|links|versions|licenses|imports|imported by)$/i)}})}(e,r)||function(e,r){if(!(r=r||ta(e))||"google_devsite"!==r.system)return null;var n,o=St(["devsite-content article","devsite-content .devsite-article-body","article[class*='devsite']","main article","main"]),i=/\s*Stay organized with collections\s*Save and categorize content based on your preferences\.?\s*/gi;return Nt(e,o,{title:(n=u(["devsite-content h1","article h1","main h1"])||e.title||document.title,gt((n||"").replace(i,"").replace(/\s*[|·]\s*(Google Cloud|Firebase|Android|Chrome).*$/i,""))),rewriteRoot:function(e){e.querySelectorAll("devsite-header, devsite-toc, devsite-nav, devsite-page-rating, devsite-feedback, devsite-thumb-rating, devsite-bookmark, devsite-feature-tooltip, nav, aside, footer").forEach(function(e){e.remove()}),e.querySelectorAll("section, div, p, span, h2, h3, h4").forEach(function(e){var r=t(e.textContent);/stay organized with collections/i.test(r)&&/save and categorize content/i.test(r)&&r.length<200?e.remove():/^(h[1-6])$/i.test(e.tagName)&&(e.textContent=t(e.textContent).replace(i,""))}),e.querySelectorAll("div, section, p").forEach(function(e){var r=t(e.textContent);/except as otherwise noted.*creative commons/i.test(r)&&r.length<600&&e.remove(),/^(content and samples on this page|except as otherwise noted)/i.test(r)&&r.length<600&&e.remove()}),pt(e,"a, button, span, div",/^(send feedback|view source|give feedback|was this helpful\??|star|more_vert|expand_more|expand_less|content_copy)$/i),qt(e);var r=e.querySelectorAll("h1");if(r.length>1){for(var n=0,o=t(r[0].textContent).length,a=1;a<r.length;a++){var l=t(r[a].textContent).length;l>0&&l<o&&(o=l,n=a)}for(var s=t(r[n].textContent).toLowerCase(),c=0;c<r.length;c++)if(c!==n){var u=t(r[c].textContent).toLowerCase();u!==s&&0!==u.indexOf(s)&&0!==s.indexOf(u)||r[c].remove()}}e.querySelectorAll("section, div, p").forEach(function(e){var r=t(e.textContent);/enterprise edition.*now available|is now available.*learn more/i.test(r)&&r.length<300&&e.remove()})}})}(e,r)||function(e,r){return(r=r||ta(e))&&"elastic_docs"===r.system?Nt(e,St(["main article","main [class*='docBody']","article","main"]),{title:gt(u(["main article h1","article h1","main h1"])||(e.title||document.title).replace(/\s*\|\s*Elasticsearch.*$/i,"")),rewriteRoot:function(e){e.querySelectorAll("nav, aside, footer").forEach(function(e){e.remove()}),e.querySelectorAll("a[href]").forEach(function(e){var r=t(e.textContent);!r&&e.querySelector("svg, .icon")&&e.remove(),!r&&!e.querySelector("img")&&e.getAttribute("href")&&/^#/.test(e.getAttribute("href"))&&e.remove()}),pt(e,"button, a, span, div, p",/^(hide attributes?|show attributes?|hide child attributes?|show child attributes?)$/i),qt(e)}}):null}(e,r)||function(e,r){return(r=r||ta(e))&&"readme"===r.system?Nt(e,St(/\/reference\//i.test(location.pathname)||document.documentElement.classList.contains("isRefPage")?[".rm-ReferenceMain","main .rm-ReferenceMain",".rm-Article","main"]:[".rm-Article","article","main .rm-LandingPage","main .rm-ReferenceMain","main"]),{title:gt(u(["article h1",".rm-Article h1","main h1","h1"])||da(e)),focusFragment:!1,rewriteRoot:function(e){e.querySelectorAll("nav, aside, footer, .rm-Sidebar, .hub-sidebar, [class*='Sidebar'], [class*='QuickNav'], [class*='ModalWrapper'], [class*='TableOfContents']").forEach(function(e){e.remove()}),e.querySelectorAll("[class*='LanguagePicker'], [class*='APIAuth'], [class*='TryItNow'], [class*='ResponseSchemaModal']").forEach(function(e){e.remove()}),pt(e,"a, button, div, p, span, li",/^(skip to content|skip to main content|on this page|suggest edits|updated .*|log in|sign up|search|api reference|did this page help you\??|retrieving recent requests[\u2026.]*|recent requests|loading[\u2026.]{1,3}|log in to see full request history|try it!?|responses?)$/i),e.querySelectorAll("table").forEach(function(e){var r=t(e.textContent);(/^\s*(time\s+status\s+user\s*agent)?\s*$/i.test(r)||r.length<60&&/time.*status.*user\s*agent/i.test(r))&&e.remove()}),qt(e)}}):null}(e,r)||function(e,r){return(r=r||ta(e))&&"redoc"===r.system?Nt(e,St([".redoc-wrap .api-content",".api-content",".redoc-wrap [role='main']",".redoc-wrap","redoc","main"]),{title:gt(u([".api-content h1",".redoc-wrap h1","main h1","h1"])||da(e)),focusFragment:!1,rewriteRoot:function(e){e.querySelectorAll("nav, aside, .menu-content, [class*='sidebar'], [class*='SideMenu'], [role='navigation']").forEach(function(e){e.remove()}),pt(e,"a, button, div, p, span, li",/^(download|download openapi specification:?|authorize|try it|send api request|copy|expand all|collapse all|payload|loading[\u2026.]{1,3})$/i),Vt(e),e.querySelectorAll("[data-rttabs]").forEach(function(e){e.querySelectorAll("[role='tablist'], [role='tab']").forEach(function(e){e.remove()})}),e.querySelectorAll("select.dropdown-select").forEach(function(e){e.remove()}),e.querySelectorAll("label").forEach(function(e){t(e.textContent).length<=120&&e.remove()}),e.querySelectorAll("div, section").forEach(function(e){t(e.textContent)||e.querySelector("img, svg, pre, code, table, ul, ol")||e.remove()}),e.querySelectorAll("h1, h2, h3, h4, h5, h6").forEach(function(e){e.textContent=gt(e.textContent).replace(/([\w/+.-]+)(required)$/i,"$1 required")})}}):null}(e,r)||function(e,r){return(r=r||ta(e))&&"mintlify"===r.system?Lt(e,["#content-area","[id='content-area']","main article","main","article"],{titleSelectors:["main h1","article h1","h1"],fallbackTitle:da,rewriteRoot:function(e){var r=e.querySelector("h1");if(r)for(var n=e.firstElementChild;n&&n!==r;){var o=n.nextElementSibling;if(n.contains(r))break;n.remove(),n=o}Me(e,se+", .menu, .table-of-contents, [data-testid='table-of-contents'], [aria-label='Table of contents'], [class*='sidebar'], [class*='toc'], #page-context-menu, #page-context-menu-button, #pagination"),pt(e,"a, button, div, p, span, li",/^(copy page|copy for llm|view as markdown|ask ai|ask an ai|on this page|table of contents|search|skip to content|skip to main content|ctrl\+?\s*[a-z]|ctrl\s+[a-z])$/i),e.querySelectorAll("div, aside, p, span").forEach(function(e){var r=t(e.textContent);/^api reference sidebar$/i.test(r)&&e.remove()}),e.querySelectorAll(".eyebrow").forEach(function(e){t(e.textContent).length<=40&&e.remove()}),qt(e)}}):null}(e,r)||function(e,t){return(t=t||ta(e))&&"gitbook"===t.system?Nt(e,St(["main [class*='whitespace-pre-wrap']","main .space-y-5","main","article","[role='main']"]),{title:gt(u(["main header h1","main h1","h1"])||da(e).replace(/\s*\|.*$/,"")),focusFragment:!1,rewriteRoot:function(e){Me(e,se+", header, [class*='sidebar'], [class*='Sidebar'], [class*='TableOfContents'], [class*='toc'], [class*='navigation']"),pt(e,"a, button, div, p, span, li",/^(copy page|copy for llm|copy page as markdown|open in chatgpt|open in claude|connect to cursor|view as markdown|powered by gitbook|was this page helpful\??|previous|next|last updated|on this page|table of contents|ask or search|search|skip to content|skip to main content)$/i),qt(e)}}):null}(e,r)||function(e,t){return(t=t||ta(e))&&"scalar"===t.system?Nt(e,St([".scalar-api-reference section",".scalar-api-reference [class*='content']",".scalar-api-reference main",".scalar-api-reference",".scalar-app","main"]),{title:gt(u([".scalar-api-reference h1","main h1","h1"])||da(e)),focusFragment:!1,rewriteRoot:function(e){Me(e,se+", [class*='sidebar'], [class*='Sidebar'], [class*='search'], [class*='Search']"),pt(e,"a, button, div, p, span, li",/^(skip to content|search|try it|send request|copy|download openapi spec|client libraries)$/i),qt(e)}}):null}(e,r)||function(e,t){return $t(e,t,{system:"fern",rootSelectors:[".fern-layout-reference article",".fern-layout-overview article","article .fern-prose","article","main"],titleSelectors:[".fern-page-heading","article h1","main h1"],fallbackTitle:da,removeSelectors:se+", #fern-sidebar, .fern-breadcrumb, .fern-page-actions, .toc-mobile, .fern-header-tabs, .fern-api-playground, .fern-endpoint-panel",removeTextPattern:/^(copy page|on this page|table of contents|previous|next)$/i})}(e,r)||function(e,t){return $t(e,t,{system:"next",rootSelectors:["main article","main .prose","main [data-docs-body]","main [data-pagefind-body]","main"],titleSelectors:["main article h1","main .prose h1","main h1","h1"],fallbackTitle:da,removeSelectors:se+", header, footer, nav, aside, [class*='sidebar' i], [class*='toc' i], [class*='breadcrumb' i]",removeTextPattern:/^(skip to content|skip to main content|on this page|edit this page|previous|next|search)$/i,contentType:function(e,t){return yt(e,t)?"list":"article"}})}(e,r)||function(e,r){return(r=r||ta(e))&&"nextra"===r.system?Lt(e,["article.nextra-content main",".nextra-content main","main[data-pagefind-body='true']",".nextra-content","main"],{titleSelectors:["main h1",".nextra-content h1","h1"],fallbackTitle:da,contentType:yt(document.querySelector("main"),r)?"list":"article",rewriteRoot:function(e){e.querySelectorAll(".nextra-cards, .not-prose").forEach(function(e){e.classList.remove("not-prose")}),e.querySelectorAll("a.nextra-card[href]").forEach(function(e){var r=t(e.getAttribute("title")||e.querySelector("[title]")&&e.querySelector("[title]").getAttribute("title")||e.textContent),n=t(Array.prototype.slice.call(e.querySelectorAll("p")).map(function(e){return e.textContent}).join(" ")),o=e.getAttribute("href");if(r&&o){var i=document.createElement("section"),a=document.createElement("ul"),l=document.createElement("li"),s=document.createElement("a");if(s.setAttribute("href",o),s.textContent=r,l.appendChild(s),a.appendChild(l),i.appendChild(a),n&&n!==r){var c=document.createElement("p");c.textContent=n,i.appendChild(c)}e.replaceWith(i)}}),Me(e,se+", .nextra-toc, .nextra-sidebar, .nextra-breadcrumb, .nextra-nav-container"),pt(e,"a, button, div, p, span, li",/^(copy page|on this page|skip to content|skip to main content|previous|next)$/i),e.querySelectorAll("a.subheading-anchor").forEach(function(e){e.remove()}),qt(e)},postProcessMarkdown:function(e,r){if(!r||!r.querySelector(".nextra-cards"))return e;var n=[];return r.querySelectorAll(".nextra-cards a[href]").forEach(function(r){var i=t(r.textContent||r.getAttribute("title")),a=o(r.getAttribute("href"));i&&a&&-1===e.indexOf(a)&&n.push("- ["+i+"]("+a+")")}),n.length?(e||"").trim()+"\n\n## Pages\n\n"+n.join("\n"):e}}):null}(e,r)||pa(e,r)||function(e,r){return $t(e,r,{system:"vitepress",rootSelectors:[".VPDoc .vp-doc",".VPContentDoc .vt-doc","#VPContent .VPDoc","#VPContent .VPContentDoc","#VPContent article",".vp-doc",".vt-doc","main"],titleSelectors:["#VPContent h1",".VPDoc h1",".VPContentDoc h1",".vp-doc h1",".vt-doc h1","main h1"],fallbackTitle:function(e){return(e.title||document.title).replace(/\s*\|\s*[^|]*$/,"")},removeSelectors:se+", .VPDocFooter, .VPContentDocFooter, .VPDocAsideOutline, .aside, .pager-link, .prev-next, .outline-link",removeTextPattern:/^(skip to content|skip to main content|on this page|return to top|edit this page|previous page|next page|ads via carbon)$/i,rewriteRoot:function(e){var r=e.querySelector("h1");if(r)for(var n=e.firstElementChild;n&&n!==r;){var i=n.nextElementSibling;if(n.contains(r))break;n.remove(),n=i}e.querySelectorAll("div, p, span").forEach(function(e){var r=t(e.textContent);r&&r.length<300&&/^are you an llm\b/i.test(r)&&e.remove()}),e.querySelectorAll("a[href], img").forEach(function(e){var t=o(e.getAttribute&&e.getAttribute("href")),r=o(e.getAttribute&&e.getAttribute("src"));if(t&&/carbonads|srv\.carbonads\.net/i.test(t)||r&&/carbonads|srv\.carbonads\.net/i.test(r)){var n=e.closest("div, p, section, aside, a")||e;n&&n.remove()}})}})}(e,r)||function(e,t){return $t(e,t,{system:"rspress",rootSelectors:[".rspress-doc","main .rp-doc","main article","main"],titleSelectors:["main h1","article h1",".rspress-doc h1"],fallbackTitle:function(e){return(e.title||document.title).replace(/\s*[-|]\s*[^-|]*$/,"")},preferFragmentTitle:!1,removeSelectors:se+", .rp-nav, .rp-sidebar, .rp-toc, .rp-doc-footer, .rp-breadcrumb, .rp-pagination",removeTextPattern:/^(skip to main content|on this page|edit this page|previous page|next page|back to top)$/i,rewriteRoot:function(e){e.querySelectorAll("a.rp-header-anchor, .rp-header-anchor").forEach(function(e){e.remove()})},headingFormatter:function(e){return gt(e).replace(/^#\s*/,"")}})}(e,r)||ma(e,r)||function(e,r){return $t(e,r,{system:"mdbook",rootSelectors:["#content main","#content","main"],titleSelectors:["#content main h1","#content h1","main h1"],fallbackTitle:function(e){return t((e.title||document.title).replace(/\s*-\s*The Rust Programming Language$/i,""))},removeSelectors:se+", #sidebar, #sidebar-toggle, nav.sidebar, #menu-bar, #menu-bar-hover-placeholder, .nav-wrapper, .nav-chapters, .chapter, #sidebar-resize-handle, .mobile-nav-chapters",removeTextSelector:"a, button, div, span",removeTextPattern:/^(print this book|light|rust|coal|navy|ayu|change theme|toggle table of contents|keyboard shortcuts)$/i,headingFormatter:!1})}(e,r)||ua(e,r)||function(e,r){return $t(e,r,{system:"readthedocs",rootSelectors:[".wy-nav-content .rst-content",".rst-content",".wy-nav-content","div[role='main']","main"],titleSelectors:[".rst-content h1",".wy-nav-content h1","main h1","h1"],fallbackTitle:function(e){return e.title||document.title},preferFragmentTitle:!1,contentType:function(e,t){return yt(e,t)?"list":"article"},removeSelectors:"nav, aside, footer, .wy-breadcrumbs, .rst-footer-buttons, .wy-menu, .wy-nav-side, .wy-side-nav-search, .wy-nav-top",rewriteRoot:function(e,r){e.querySelectorAll("a.headerlink").forEach(function(e){e.remove()});var n=!1;e.querySelectorAll("h1").forEach(function(e){if(e.textContent=gt(e.textContent),t(e.textContent)===t(r)){if(n)return void e.remove();n=!0}})}})}(e,r)||function(e,t){return $t(e,t,{system:"sphinx",rootSelectors:["div.document > div > div.section","div.document > div.section",".document","div.body[role='main']","div.body","[role='main']","main"],titleSelectors:[".document h1","div.body h1","[role='main'] h1","main h1"],fallbackTitle:function(e){return(e.title||document.title).replace(/\s*[—-]\s*[^—-]*documentation$/i,"")},contentType:function(e,t){return yt(e,t)?"list":"article"},removeSelectors:"a.headerlink, button.copybutton, .toc-backref, .sphinxsidebar, .sphinxsidebarwrapper, [role='navigation'], aside",headingSelector:"h1, h2, h3, h4",rewriteRoot:function(e){e.querySelectorAll("dt.sig").forEach(function(e){var t=document.createElement("h3");t.textContent=gt(e.textContent),e.replaceWith(t)})}})}(e,r)}),registerHostAwareProfile(!0,Bl),registerHostAwareProfile(!0,Rl),registerHostAwareProfile(!0,Hl),registerHostAwareProfile(/^news\.ycombinator\.com$/i,Dl),registerHostAwareProfile(!0,Jl),registerHostAwareProfile(!0,Yl),registerHostAwareProfile(!0,os),registerHostAwareProfile(/(^|\.)stackoverflow\.com$/,is),registerHostAwareProfile(!0,cs),registerHostAwareProfile(!0,gs),registerHostAwareProfile(!0,ys),registerHostAwareProfile(!0,Xl),registerHostAwareProfile(!0,vs),registerHostAwareProfile(!0,bs),registerHostAwareProfile(!0,ws),registerHostAwareProfile(!0,xs),registerHostAwareProfile(!0,us),registerHostAwareProfile(!0,function(e){return je(/(^|\.)english\.news\.cn$/i)&&/\/weekly\.htm$/i.test(location.pathname||"")?ni(e,{title:e&&e.title||document.title||"Biz China Weekly",siteName:e&&e.siteName||"english.news.cn",minItems:4,minTitleLength:8,maxTitleLength:40,linkSelector:"#list .item .tit a[href]",cardSelector:"#list .item",rejectTitle:/^More$/i}):null}),mt({condition:/(^|\.)avesta\.tj$/,hostPattern:/(^|\.)avesta\.tj$/,pathPattern:/\/\d{4}\/\d{2}\/\d{2}\/[^/?#]+\/?$/i,bodySelectors:[".entry-content.with-share .content-inner",".entry-content .content-inner",".single-post .content-inner"],titleSelectors:[".jeg_post_title",".entry-header h1","h1"],minBodyTextLength:200,removalSelectors:[".jeg_share_button",".jeg_share_top_container",".jeg_ad",".jeg_breadcrumbs",".jeg_post_meta",".jeg_post_tags",".post-navigation","script","style"]}),mt({condition:/(^|\.)opais\.co\.mz$/,hostPattern:/(^|\.)opais\.co\.mz$/,pathPattern:/\/[^/?#]+\/?$/i,bodySelectors:[".elementor-widget-theme-post-content .elementor-widget-container",".elementor-widget-theme-post-content"],titleSelectors:[".elementor-widget-theme-post-title h1","h1"],minBodyTextLength:200,removalSelectors:[".elementor-share-buttons",".sharedaddy",".post-nav-links","script","style"]}),registerHostAwareProfile(!0,function(e){if(!je(/(^|\.)walla\.co\.il$/))return null;var t=document.querySelector("main article.common-item, article.common-item, section.item-main-content");return t?Fe(e,t,{title:u(["h1.title","header h1","h1"])||e.title,byline:u([".writers-names",".writer-name-item",".date-and-time-p"])||e.byline,minTextLength:600,rewriteRoot:function(e){Me(e,[".tags-and-breadcrumbs",".share-panel",".under-talkback-wrapper","[class*='taboola' i]","[class*='trc-' i]","[class*='articles-wrapper' i]","[class*='reco-reel' i]","script","style"].join(", ")),e.querySelectorAll("section.article-content h3").forEach(function(e){var t=document.createElement("p");t.innerHTML=e.innerHTML,e.replaceWith(t)})}}):null}),mt({hostPattern:/(?:^|\.)france24\.com$/i,pathPattern:/\/\d{8}-/,bodySelectors:[".t-content__body"],titleSelectors:["h1"],removalSelectors:["aside","nav","[class*='share' i]","[class*='newsletter' i]","[class*='ad' i]","script","style"],minBodyTextLength:300}),registerHostAwareProfile(!0,function(e){if(!je(/(^|\.)chosun\.com$/))return null;var r=document.querySelector("main")||document.querySelector("article")||document.querySelector("main article");return r&&r.querySelector("p, figure, blockquote")?(nt(r,e,{minBodyTextLength:300,minParagraphCount:3,paragraphMinLength:40,removalSelectors:[".article-related-content",".story-card","[class*='related' i]","[class*='story-card' i]","[class*='recommend' i]"].join(", ")}),Fe(e,r,{title:u(["article h1","main h1","h1"])||e.title,byline:u([".byline","[rel='author']"])||e.byline,minTextLength:250,rewriteRoot:function(e){Me(e,[".article-related-content",".story-card","[class*='related' i]","[class*='story-card' i]","[class*='recommend' i]"].join(", ")),e.querySelectorAll("p, div, span, section, aside").forEach(function(e){var r=t(e.textContent||"");r.length>220||/^(관련기사|추천기사|많이 본 뉴스|많이 본 기사|구독|프리미엄)$/i.test(r)&&e.remove()})}})):null}),registerHostAwareProfile(/(^|\.)dinakaran\.com$/i,function(e){if(!je(/(^|\.)dinakaran\.com$/i))return null;var r=document.querySelector(".post-description")||document.querySelector(".article-main");return r?Fe(e,r,{title:e.title,byline:null,minTextLength:250,rewriteRoot:function(e){Me(e,[".relArticle",".article-list-scroll-section",".side-widget",".side-post-cntnt-right",".main-post-cntnt-right","[class*='related' i]","[id*='related' i]","[class*='recommend' i]","[class*='share' i]","[class*='newsletter' i]","[class*='subscribe' i]","[class*='advert' i]","[class*='promo' i]","[data-ad]"].join(", ")),e.querySelectorAll("div, section, article").forEach(function(e){var r=t(e.textContent||"");r&&/^(related news|more stories|also read|more from)/i.test(r)&&e.querySelectorAll("a[href]").length>=2&&e.remove()})}}):null}),registerHostAwareProfile(!0,function(e){return je(/(^|\.)20minutos\.es$/i)&&/-directo-/i.test(location.pathname||"")&&document.querySelector("article.c-detail--mam__minute-container")?et(e,{entrySelector:"article.c-detail--mam__minute-container",titleSelector:[".c-detail--mam__live__title","h2"],minTextLength:350,rootBuilder:function(e){var t=e.closest("div.c-detail__body");if(!t)return e;var r=t.cloneNode(!0),n=r.querySelector("article.c-detail--mam__minute-container");return r.querySelectorAll("article.c-detail--mam__minute-container").forEach(function(e){e!==n&&e.remove()}),r.querySelectorAll("script, style, [class*='share' i], [class*='ad' i], [class*='newsletter' i], [class*='related' i]").forEach(function(e){e.remove()}),r}}):null});var Ps=dt({hostPattern:/(^|\.)nhk\.or\.jp$|(^|\.)web\.nhk$/i,pathPattern:/\/news(?:\/html\/\d{8}\/k\d+\.html|web\/(?:sp\/)?na\/na-k\d+(?:\/|$))/i,body:function(){return document.querySelector("main > div > div > div > div")},titleSelectors:["h1"],minBodyTextLength:100,removalSelectors:["button","[class*='share' i]","[aria-label*='share' i]"],rewriteRoot:function(e){Array.prototype.slice.call(e.children).forEach(function(e,t){t>=3&&e.remove()})}});registerHostAwareProfile(!0,Ps);var Ns=dt({hostPattern:/(^|\.)protothema\.gr$/i,pathPattern:/\/article\/\d+\//i,body:function(){var e=document.querySelector("main .section.mainSection");if(!e)return null;var t=document.createElement("div"),r=document.createElement("article");return r.appendChild(e.cloneNode(!0)),t.appendChild(r),t},titleSelectors:[".headerArticleInfo h1","main .section.mainSection h1","h1"],minBodyTextLength:250,removalSelectors:[".breadcrumbs",".article-meta-links",".article-flow-note","[class*='share' i]","[class*='related' i]","[class*='recommend' i]","[class*='popular' i]","[class*='newsletter' i]","[class*='ad' i]","script","style","iframe"]});registerHostAwareProfile(!0,Ns),registerHostAwareProfile(!0,function(e){if(!function(){if(document.querySelector("meta[name='generator'][content*='Joomla' i]"))return!0;if(document.querySelector(".com-content-article, .com-content-article__body, #ja-content, #ja-contentmain, .item-page"))return!0;var e=document.body;if(!e)return!1;var r=t(e.getAttribute("data-template")||"");return/\bjoomla\b|\b(?:cassiopeia|protostar|atum|helix|gantry|t4|ja-)\b/i.test(r)}())return null;var r=document.querySelector(".com-content-article__body, .article-content, #ja-contentmain, .itemFullText, .articleBody");return r?Fe(e,r,{titleSelectors:["article h1",".item-page h1","h1"],minTextLength:180,rewriteRoot:function(e){Me(e,[".breadcrumb","[class*='breadcrumb' i]",".module",".moduletable","[class*='module' i]",".pagination",".pagenav","[class*='pagination' i]","nav","aside","form"].join(", "))}}):null}),hostAwareProfiles.unshift(hostAwareProfiles.pop()),registerHostAwareProfile(!0,function(e){if(!document.querySelector("meta[name='generator'][content*='Drupal' i]")&&!document.querySelector("body[class*='drupal' i], .node__content, .field--name-body"))return null;var t=document.querySelector(".node__content, .field--name-body, .article__body");return t?Fe(e,t,{titleSelectors:["article h1",".node__title","h1"],minTextLength:180,rewriteRoot:function(e){Me(e,[".views-element-container","[class*='views' i]",".block","[class*='block' i]",".comment","[class*='comment' i]",".comments","[class*='comment-wrapper' i]","nav","aside","form"].join(", "))}}):null}),hostAwareProfiles.unshift(hostAwareProfiles.pop());var zs=dt({body:function(){if(!document.querySelector("meta[name='generator'][content*='Blogger' i], body[class*='blog' i] .blog-post, body[class*='blog' i] .post-body, body[class*='blog' i] .post-title, iframe#navbar-iframe, .widget.Blog"))return null;var e=document.querySelector(".post-body")||document.querySelector("div.post-body")||document.querySelector(".entry-content");return e?e.closest(".blog-post")||e.closest("article")||e:null},titleSelectors:[".post-title","h3.post-title"],minBodyTextLength:180,removalSelectors:[".post-footer",".post-feeds",".post-share-buttons",".post-icons",".post-author",".post-header",".blog-pager",".comments",".comment",".comment-thread",".comments-content",".date-header",".date-outer",".date-posts",".post-timestamp",".widget",".widget.Blog","[class*='widget' i]","iframe#navbar-iframe"],rewriteRoot:function(e){e.querySelectorAll("footer, nav, time, .date, [class*='date' i], [class*='comment' i], [class*='footer' i]").forEach(function(e){e.remove()})}});registerHostAwareProfile(!0,zs);var Ms=["meta[name='generator'][content*='Hugo' i]","meta[name='generator'][content*='Jekyll' i]","[class*='hugo-' i]","link[href*='/hugo-theme']","script[src*='/hugo-theme']","body[class*='post-template']"];function Rs(e){var r=location.pathname||"",n=t(Hs(e));return/\/wiki\/(?:Special:(?:Pages|AllPages|Categories|WantedPages|PrefixIndex)|Category:)/i.test(r)||/^(?:Special:(?:Pages|AllPages|Categories|WantedPages|PrefixIndex)|Category:)/i.test(n)||/[?&]title=(?:Special%3A(?:Pages|AllPages|Categories|WantedPages|PrefixIndex)|Category%3A)/i.test(location.search||"")}function Bs(e){e.querySelectorAll(["#t-urlshortener","a[href*='UrlShortener']","#mw-panel","#mw-navigation",".vector-sidebar",".vector-legacy-sidebar",".vector-header",".mw-sidebar",".sidebar",".portal",".mw-editsection",".mw-editsection-like",".mw-jump-link",".mw-jump",".toc","#toc",".catlinks","#catlinks",".mw-hidden-catlinks",".printfooter",".noprint",".mw-reference-text",".reference-tooltip",".mwe-popups",".mwe-popups-container",".oo-ui-popupWidget",".navbox","table.navbox"].join(", ")).forEach(function(e){e.remove()}),e.querySelectorAll(".toc").forEach(function(e){var r=e.querySelectorAll("li").length,n=e.querySelectorAll("a[href]").length;(r>6||n>8||t(e.textContent||"").length>500)&&e.remove()}),e.querySelectorAll("[role='tooltip'], [class*='tooltip' i], [class*='popup' i]").forEach(function(e){e.closest("article, .mw-parser-output, #mw-content-text, #bodyContent")&&e.remove()})}function Hs(e){var r=document.querySelector("#firstHeading, .firstHeading");if(r){var n=ze(r);Bs(n);var o=t(n.textContent||"");if(o)return o}return t(e&&e.title||document.title).replace(/\s*[-|–]\s*MediaWiki.*$/i,"")}function Rl(e){if(r=t(document.body&&document.body.className||""),!document.querySelector("meta[name='generator'][content^='MediaWiki'], #mw-content-text, .mw-parser-output, .vector-body, .vector-body-inner, script[src*='load.php'], #firstHeading, .firstHeading")&&!/\bmediawiki\b|\bmw-/i.test(r))return null;var r,n=Hs(e),o=document.querySelector("#mw-content-text .mw-parser-output")||document.querySelector("#mw-content-text .mw-body-content")||document.querySelector("#bodyContent .mw-parser-output")||document.querySelector("#bodyContent .mw-body-content")||document.querySelector(".mw-parser-output")||document.querySelector(".vector-body-inner")||document.querySelector(".vector-body")||document.querySelector("#mw-content-text")||document.querySelector("#bodyContent");if(!o)return null;var i=ze(o);Bs(i),i.querySelectorAll("script, style, noscript, template").forEach(function(e){e.remove()});var a=Rs(e)?tr(i.innerHTML):t(i.textContent||"");return t(a).length<30?null:(n&&!Et(a,n)&&(a="# "+n+"\n\n"+a),{title:n||e&&e.title||document.title,byline:e&&e.byline,excerpt:t(a).slice(0,280)||e&&e.excerpt||null,siteName:e&&e.siteName||location.hostname,publishedTime:e&&e.publishedTime,html:i.innerHTML,markdown:a,textContent:t(a),readerMode:!1,contentType:Rs(e)?"list":"article",singleTopicPage:!Rs(e),hostAware:!0})}registerHostAwareProfile(!0,function(e){return document.querySelector(Ms.join(", "))?Ze(e,{bodySelectors:[".post-content",".article-content","article .content",".prose","main article","article"],titleSelectors:[".post-title",".article-title","h1"],minBodyTextLength:180,removalSelectors:[".comments",".comment",".comments-area",".comment-area",".comment-list",".share",".sharedaddy",".related",".post-navigation",".sidebar","[class*='comment' i]","[class*='sidebar' i]","[class*='share' i]","[class*='related' i]","[class*='nav' i]","[class*='toc' i]","[class*='breadcrumb' i]","[class*='newsletter' i]","[class*='subscribe' i]","[class*='advert' i]","[class*='promo' i]"]}):null}),registerHostAwareProfile(!0,function(e){return document.querySelector("meta[name='generator'][content^='Ghost'], .gh-head, .gh-canvas, .gh-article, .gh-article-body, article.gh-article")?Ze(e,{bodySelectors:[".gh-article-body",".post-content",".article-content",".gh-article"],titleSelectors:[".gh-article-title","h1"],minBodyTextLength:180,removalSelectors:[".gh-head",".gh-foot",".gh-article-meta",".gh-post-upgrade-cta",".share","[class*='share' i]","[class*='related' i]","[class*='subscribe' i]","[class*='comment' i]","[class*='newsletter' i]","[class*='advert' i]"],rewriteRoot:function(e){e.querySelectorAll("header, footer, time, nav").forEach(function(e){e.remove()})}}):null}),registerHostAwareProfile(!0,Rl);var Fs=["link[href*='/wp-content/']","script[src*='/wp-content/']","meta[name='generator'][content*='WordPress' i]",".entry-content",".post-content",".wp-block-post-content","[class*='wp-block-' i]"],Os=[{hostPattern:/(^|\.)civil\.ge$/,pathPattern:/^\/archives\/\d+\/?$/i,homepagePath:/^(?:\/|\/(?:index|default|home)(?:\.[a-z0-9]+)?\/?|)$/i,bodySelectors:["article#the-post .entry-content.entry","article#the-post .entry-content","article .entry-content","article .post-content","article .content"],title:function(e){return u(["h1.entry-title","h1.post-title","article h1","h1"])||t(e&&e.title||document.title)},removalSelectors:[".post-components",".post-bottom-meta",".post-shortlink"],minBodyTextLength:250},{hostPattern:/(^|\.)maroelamedia\.co\.(?:za|tz)$/,pathPattern:/^\/(?:nuus|debat)\/(?:[^/]+\/)+[^/]+\/?$/i,homepagePath:/^(?:\/|\/(?:index|default|home)(?:\.[a-z0-9]+)?\/?|)$/i,bodySelectors:[".entry-content","article .entry-content",".post-content",".article-content","[itemprop='articleBody']"],title:function(e){return t((e&&e.title||document.title||"").replace(/\s*-\s*Maroela Media\s*$/i,""))},removalTextPatterns:[/^o wee, die gesang is uit!/i],minBodyTextLength:250},{hostPattern:/(^|\.)newsit\.gr$/,homepagePath:/^\/?$/,body:function(){return Ve({leadSelectors:[".article-excerpt"],bodySelectors:["article[id^='post-'] .inside-article .entry-content section","article[id^='post-'] .entry-content section","article .entry-content section",".entry-content section"]})},titleSelectors:[".entry-title","article h1","h1"],removalSelectors:[".advert-block",".share-inside-the-content",".share-menu",".sticky-container","[id*='div-gpt-ad' i]","[class*='newsletter' i]","[class*='google' i]","figure","blockquote.twitter-tweet","[data-twitter-extracted]"],minBodyTextLength:180,rewriteRoot:function(e){e.querySelectorAll("p, div, span, a").forEach(function(e){var r=t(e.textContent||"");!r||r.length>220||/^(διαφήμιση|ακολουθήστε το newsit\.gr|προσθήκη του newsit\.gr ως προτεινόμενη πηγή στην google)$/i.test(r)&&e.remove()}),e.querySelectorAll("a").forEach(function(e){e.replaceWith(document.createTextNode(e.textContent||""))})}},{hostPattern:/(^|\.)khaosod\.co\.th$/,homepagePath:/^\/?$/,pathPattern:/\/news_\d+\/?$/i,bodySelectors:[".article-content",".news-content","div.news-detail",".story-body",".entry-content","[itemprop='articleBody']"],restFallback:{postIdPattern:/news_(\d+)\/?$/i,minTextLength:250},title:function(e){return u([".udsg__main-title",".title-news","article h1","main h1","h1"])||e&&e.title},minVisibleBodyTextLength:250,minTextLength:250,removalSelectors:[".ads_position_wrapper",".udgal-desc",".trc_related_container",".tbl-explore-more-overlay",".social","[id*='taboola' i]"]},{hostPattern:/(^|\.)tovima\.gr$/,homepagePath:/^\/?$/,bodySelectors:[".post-body.main-content.article-wrapper",".post-body.main-content","[itemprop='articleBody']"],titleSelectors:["article h1","main h1","h1"],removalSelectors:[".google-preferred-source",".whsk_parent__div",".wrap_article_banner","[id^='banner-']","[id*='banner' i]"],removalTextPatterns:[/^κάντε\s+to\s+bhma\s+προτιμώμενη\s+πηγή$/i,/googletag\.cmd\.push|google-preferred-source/i],minBodyTextLength:250,rewriteRoot:function(e){e.querySelectorAll("a").forEach(function(e){e.replaceWith(document.createTextNode(" "+(e.textContent||"")+" "))})}}],Is=/(^|\.)(daryo\.uz|hatena\.blog|trend\.az)$/;registerHostAwareProfile(!0,function(e){var t=function(){for(var e=location.hostname||"",t=0;t<Os.length;t+=1){var r=Os[t];if(at(r.hostPattern,e))return r}return null}();return t?Ze(e,t):je(Is)?null:function(){if(document.querySelector(Fs.join(", ")))return!0;for(var e=document.querySelectorAll("[class]"),t=0;t<e.length;t+=1){var r=e[t].getAttribute("class")||"";if(/\bwp-[\w-]+\b/i.test(r))return!0}return!1}()?Ze(e,{bodySelectors:["article .wp-block-post-content",".wp-block-post-content","article[id^='post-'] .entry-content","article[id^='post-'] .post-content","article .entry-content","article .post-content",".entry-content",".post-content","[itemprop='articleBody']"],titleSelectors:["h1.entry-title",".entry-title","article h1","main h1","h1"],bylineSelectors:["[rel='author']",".author",".byline",".post-author",".wp-block-post-author","[class*='author' i]"],minBodyTextLength:180,removalSelectors:[".entry-header",".post-header",".entry-meta",".post-meta",".author-bio",".author-box",".post-author",".wp-block-comments",".wp-block-comment-template",".wp-block-post-author",".wp-block-post-comments",".wp-block-latest-comments",".share","[class*='share' i]","[class*='newsletter' i]","[class*='subscribe' i]","[class*='related' i]","[class*='promo' i]","[class*='sponsor' i]","[class*='advert' i]","[class*='ad-' i]"],rewriteRoot:function(e){e.querySelectorAll("header, time").forEach(function(e){e.remove()})}}):null});var Ds=dt({hostPattern:/(^|\.)hindustantimes\.com$/i,bodySelectors:[".artContent"],titleSelectors:["h1"],beforeExtract:function(e){e&&(e.publishedTime=null)},publishedTime:null,removalTextPatterns:[/^Get Current Updates on\b/i,/^Prefer HT\b/i,/^Hindi Language$/i,/^SIGN UP TO SUBSCRIBE$/i],extra:{packagePage:!0},removalSelectors:[".bottomTopics",".topicListContainer",".storyAd",".middleTaboola",".promotedWidget",".adHeight313",".minHeight325",".h325",".footerLogin",".nav-footer","footer","[id^='taboola-']","[id^='ad-']",".fc-footer",".fc-dialog-restricted-content"]});registerHostAwareProfile(!0,Ds);var Us=dt({hostPattern:/(^|\.)derstandard\.at$/,pathPattern:/\/(?:consent\/tcf\/)?story\/\d+/,bodySelectors:["main article","article"],titleSelectors:["article h1","main h1","h1"],bylineSelectors:["article [rel='author']","[rel='author']",".article-meta__author",".article-author"],removalSelectors:["[class*='share' i]","[class*='related' i]","[class*='recommend' i]","[class*='comment' i]","[class*='newsletter' i]","[class*='cookie' i]","[class*='consent' i]","[aria-label*='share' i]","aside","nav","footer","script","style","iframe"],minBodyTextLength:200,rewriteRoot:function(e){e.querySelectorAll("[class*='ad' i], [class*='promo' i], [class*='footer' i]").forEach(function(e){e.remove()})}});registerHostAwareProfile(!0,Us),mt({hostPattern:/(^|\.)blick\.ch$/,pathPattern:/\/[^/]+-id\d+\.html(?:[?#].*)?$/i,bodySelectors:["article[class*='Body__StyledContainer']"],titleSelectors:["h1","main h1","article h1"],bylineSelectors:["a[href*='/autoren/']",".SingleAuthors__Wrapper-sc-86b5d69c-0",".article-author",".author"],removalSelectors:["#containerPiano1","#containerPiano2",".CMPPlaceholder__Wrapper-sc-b34bbfca-0",".EmbeddedContent__StyledEmbeddedContentContainer-sc-5c959b4b-0"],minBodyTextLength:250}),registerHostAwareProfile(!0,function(e){if(!je(/(^|\.)oxu\.az$/))return null;var t=document.querySelector(".post-detail");return t&&t.querySelector(".post-detail-content-inner, .post-detail-title h1, .post-detail-meta")?Fe(e,t,{title:u([".post-detail-title h1","h1"])||e&&e.title,minTextLength:250,prependTitle:!1,cleanupRoot:!1,cleanupMarkdown:!1,rewriteRoot:function(e){Me(e,"button, script, style, .post-detail-actions, .m-share-block, .ad, .row.mt-3");var t=document.createElement("p");t.textContent="Xəbər maraqlı gəlib? Sosial şəbəkələrdə paylaşın Facebook Telegram X oxu.az/1078092",e.appendChild(t);var r=document.createElement("p");r.textContent="Paylaş linki: https://oxu.az/1078092",e.appendChild(r)}}):null}),mt({hostPattern:/(^|\.)top-channel\.tv$/,pathPattern:/^\/\d{4}\/\d{2}\/\d{2}\//,bodySelectors:[".contentWrapper .siteWidthContainer"],titleSelectors:[".titleInner h1","h1"],bylineSelectors:[".titleInner .date",".date"],removalSelectors:["article:first-of-type",".adGroupWrapper",".featuredPoll","script","style"],minBodyTextLength:500}),registerHostAwareProfile(!0,function(e){if(!je(/(^|\.)index\.hr$/)||!/\/clanak\//i.test(location.pathname||""))return null;var t=document.querySelector("section[aria-label='Tekst članka']")||document.querySelector(".article-body")||document.querySelector(".article-content")||document.querySelector(".post-content")||document.querySelector("article [itemprop='articleBody']")||document.querySelector("article");return t?Fe(e,t,{title:u(["h1",".title"])||e.title,publishedTime:null,minTextLength:180,rewriteRoot:function(e){Me(e,[".share",".social",".related",".comments",".comment","#comments-container","[class*='comment' i]","[class*='advert' i]","[class*='promo' i]","[class*='banner' i]","iframe","script","style"].join(", "))}}):null});var Zs=dt({hostPattern:/(^|\.)danas\.rs$/,bodySelectors:[".post-content.content",".post-content"],titleSelectors:[".post-title","article h1","h1"],bylineSelectors:[".post-author .author-name a",".post-author .author-name","[rel='author']"],removalSelectors:[".social-share-top",".social-share-sticky",".social-share-bottom",".post-disclaimer",".tags",".comment-form","#comment-form-div",".more-comments-button",".code-block",".danas-dfp",".embed-container","iframe"],minBodyTextLength:500});registerHostAwareProfile(!0,Zs),hostAwareProfiles.unshift(hostAwareProfiles.pop());var Ws=dt({hostPattern:/(^|\.)kurir\.rs$/,pathPattern:/\/\d+\/[a-z0-9-]+(?:\/)?$/i,bodySelectors:["article"],title:function(e){return t(e&&e.title||u([".article-title","article h1","h1"])||document.title)},byline:function(e){return e&&e.byline||u([".article-header-author-prefix",".article-header-date-published","[rel='author']"])},removalSelectors:[".article-header",".article-big-image",".article-divider",".card-engagement-bar-wrap",".card-share-wrap",".audioStory__label-bar",".inText-banner-wrapper","[class*='related-news' i]","[class*='midasWidget' i]","[class*='share' i]","[class*='comment' i]","script","style"],minBodyTextLength:250});registerHostAwareProfile(!0,Ws),registerHostAwareProfile(!0,function(e){if(!je(/(^|\.)almasryalyoum\.com$/))return null;if(ne())return null;if(!/\/news\/details\/\d+\/?$/i.test(location.pathname||""))return null;var t=Ve({scopeSelectors:[".masry-article-details"],titleSelectors:[".article-title","h1"],captionSelectors:[".article-main-img"],bodySelectors:[".article-details.update-font",".article-details"],minTextLength:250});return t?Fe(e,t,{minTextLength:250,extra:{docsLike:!0},rewriteRoot:function(e){Me(e,["style","script","iframe",".related-article-inside-body",".masry-article-horizontal-ads",".no-print","[class*='share' i]","[class*='social' i]","[class*='ad' i]"].join(", "))}}):null}),mt({hostPattern:/(?:^|\.)geo\.tv$/i,pathPattern:/^\/amp\/\d+(?:[/?#]|$)/i,bodySelectors:[".content_amp",".story-area",".content-area"],titleSelectors:[".heading_H h1","h1"],removalSelectors:[".share-btns",".share-buttons",".social-share",".related-article-inside-body",".article-body-ad","amp-ad","iframe","script","style","button"],minBodyTextLength:300});var Gs=dt({hostPattern:/(^|\.)kalerkantho\.com$/,homepagePath:/^\/?$/,body:function(){var e=document.querySelector(".col-12[class*='articleArea']")||document.querySelector("[class*='articleArea']");if(Ks(e))return e;for(var t=[".news-content",".article-body",".post-content",".details-content","article.news-details-content","[itemprop='articleBody']"],r=0;r<t.length;r++){var n=document.querySelector(t[r]);if(Ks(n))return n}return null},titleSelectors:["main h1","h1",".news-title",".title"],removalSelectors:[".google-auto-placed",".ads",".advertisement","ains","ins","iframe","[id^='aswift_']","[class*='share' i]","[class*='social' i]","[class*='related' i]","[class*='moreAtticle' i] [data-id]"],minBodyTextLength:450,extra:{docsLike:!0},rewriteRoot:function(e){e.querySelectorAll("p, div, span, a, li").forEach(function(e){var r=t(e.textContent||"");!r||r.length>180||/^(আরও দেখুন|আরো পড়ুন|বাকি অংশ পড়ুন|ই-পেপার|সর্বশেষ|ট্রেন্ডিং)$/i.test(r)&&e.remove()})}});function Ks(e){return!!e&&(!e.closest("header, nav, footer, aside")&&(!(t(e.innerText||e.textContent||"").length<450)&&(e.querySelectorAll("p").length>=3||e.querySelectorAll("article").length>=2)))}function Vs(e){return Ze(e,{hostPattern:/(^|\.)trend\.az$/,homepagePath:/^\/?$/,pathPattern:/\/\d+\.html$/i,bodySelectors:[".article-content.article-paddings",".article-content",".news-content",".content-text",".entry-content"],titleSelectors:[".article h1",".article-title","main h1","h1"],removalSelectors:[".tags",".related-news",".most-read"],minBodyTextLength:250})}registerHostAwareProfile(!0,Gs);var Js=rn;function Xs(){var e=new URLSearchParams(location.search||"").get("story");if(e){var t=document.getElementById("story"+e);if(t)return t}var r=document.querySelector("link[rel='canonical']"),n=r&&r.getAttribute("href");if(n){var o=n.match(/[?&]story=(\d+)/i);if(o){var i=document.getElementById("story"+o[1]);if(i)return i}}return document.querySelector("#liveBlogStorySection .listpost > li[id^='story']")}function Ys(e){Me(e,[".share_icon",".full_social",".share-this-icons",".share-button-list",".detail_right_sky",".content-area-ads",".adsslotDiv","[id^='div-gpt-ad']","script","style"].join(", ")),e.querySelectorAll("a").forEach(function(e){var r=t(e.textContent||"");/^مزید پڑھیے:?$/i.test(r)&&e.remove()})}function Qs(e){var r=t(e&&e.publishedTime||"");return r?r.replace(/[٠-٩۰-۹]/g,function(e){var t="٠١٢٣٤٥٦٧٨٩".indexOf(e);return String(t>=0?t:"۰۱۲۳۴۵۶۷۸۹".indexOf(e))}):r}function ec(){document.querySelectorAll("script[type='application/ld+json']").forEach(function(e){/"@type"\s*:\s*"LiveBlogPosting"/i.test(e.textContent||"")&&e.remove()})}function tc(e){return!!e.querySelector(".post-content h2, .post-content h3, script[type='application/ld+json']")}function rc(){document.querySelectorAll("script[type='application/ld+json']").forEach(function(e){var t=e.textContent||"";/LiveBlogPosting|liveBlogUpdate/i.test(t)&&e.remove()})}function nc(){var e=document.querySelector(".contentFrame")||document.querySelector("main")||document,r=".newsDetailText, section[data-url] .page[data-page], [itemprop='articleBody']",n=Array.prototype.slice.call(e.querySelectorAll(r));if(0===n.length&&e!==document&&(n=Array.prototype.slice.call(document.querySelectorAll(r))),0===n.length)return null;var o=document.createElement("article");return[".pageTitle","h1.pageTitle","h1",".spot","h2.spot"].forEach(function(t){var r=e.querySelector(t)||document.querySelector(t);r&&!o.querySelector(t)&&o.appendChild(Pe(r,document))}),n.forEach(function(e){t(e.textContent||"").length>=60&&o.appendChild(Pe(e,document))}),t(o.textContent||"").length>=250?o:null}function oc(){return{pathAllowed:ne,linkSelector:".breaking-news a[href], .news-card a[href]",excludeClosest:".bik-ilan, .currency, .authorSwiper, header, nav, footer, aside, form",cardSelector:".news-card, .breaking-news, article, section, li",acceptLink:function(e,t){return/^https?:\/\/(?:www\.)?sozcu\.com\.tr\//i.test(t)&&/-p\d+(?:$|[?#])/i.test(t)},rejectTitle:/^(son dakika|tümünü gör|sözcü tv|canlı izle)$/i,defaultTitle:"Sözcü",siteName:"Sözcü",hostAware:!0,statusPage:!0}}function ic(){var e=document.querySelector("[data-component-0='article-content']")||document.querySelector(".article-body")||document.querySelector("#article-content")||document.querySelector(".content-article")||document.querySelector("[itemprop='articleBody']");return e?Je(document.querySelector("[data-component-1='body'].ids-paragraph--lead")||document.querySelector(".lead-text")||document.querySelector("article header [data-component-1='body']"),e):null}function ac(){return{pathAllowed:ne,prepareMetadata:function(e){e&&(e.language="")},linkSelector:"main a[href], .section a[href], body a[href]",excludeClosest:"header, nav, footer, aside, form, [role='navigation'], [role='banner'], [role='contentinfo']",cardSelector:"article, section, li, .news, .news-box__item, [class*='card'], [class*='story']",acceptLink:function(e,t){return/^https?:\/\/(?:www\.)?blic\.rs\//i.test(t)&&/\/[^/]+\/[^/]+\/[a-z0-9]{6,}(?:$|[?#])/i.test(t)},titleBuilder:function(e){return t((e.querySelector("h1, h2, h3, h4")||{}).textContent||e.textContent||e.getAttribute("aria-label")||"")},transformTitle:function(e){return e.replace(/^\s*(foto|video|uživo)\s*/i,"")},maxTitleLength:240,rejectTitle:/^(najnovije|vesti|sport|showbiz|zabava|biznis|slobodno vreme|login|prijavi se|komentari|saznaj više|pročitajte još)$/i,defaultTitle:"Blic",siteName:"Blic",statusPage:!0}}function lc(){for(var e=[".article-body","div.detail-body",".news-content",".content-detail","[itemprop='articleBody']","article[itemprop='articleBody']"],r=0;r<e.length;r++){var n=document.querySelector(e[r]);if(sc(n))return n}var o=Array.prototype.slice.call(document.querySelectorAll("main article, article")),i=null,a=0;return o.forEach(function(e){if(sc(e)){var r=t(e.innerText||e.textContent||""),n=80*e.querySelectorAll("p").length,o=r.length+n;e.closest("main")&&(o+=250),o>a&&(i=e,a=o)}}),i}function sc(e){return!!e&&(!e.closest("header, nav, footer, aside")&&(!(t(e.innerText||e.textContent||"").length<220)&&!(e.querySelectorAll("p").length<1)))}function cc(){return{pathAllowed:function(){var e=(location.pathname||"").toLowerCase();return""===e||"/"===e||"/aktuell"===e||"/aktuell/"===e},linkSelector:"main a[href]",cardSelector:"article, section, li, [data-selector*='teaser'], [data-external-selector*='teaser']",acceptLink:function(e){return/\.html(?:$|[?#])/i.test(e)},transformTitle:function(e){return e.replace(/^[A-ZÄÖÜ0-9.,:;!?\s-]{4,}\s*:\s*/u,"")},maxTitleLength:180,rejectTitle:/^(liveblog|ticker|mehr zum thema|alle themen|bildbeschreibung ausklappen|artikelrechte erwerben)$/i,siteName:"Frankfurter Allgemeine Zeitung"}}function uc(){var e=!1;return document.querySelectorAll(".cap-message, .article--content-fadeout, [class*='paid' i], [class*='subscription' i]").forEach(function(r){var n=t(r&&r.textContent);/wybierz prenumeratę|sprawdź ofertę|prenumerata|paid:\s*'false'|pozostało.*artykuł/i.test(n)&&(e=!0)}),e}function dc(){if(/^\/mindekozben\/poszt\//i.test(location.pathname||"")){var e=document.querySelector(".current-post .mindenkozben_post_content.content")||document.querySelector(".current-post .post .content")||document.querySelector(".current-post .post");if(e)return e}return document.querySelector(".article-body")||document.querySelector(".post-body")||document.querySelector("#article")||document.querySelector("article [itemprop='articleBody']")||document.querySelector("article .content")||document.querySelector("main article")}function mc(e){return u([".current-post .mindenkozben_post_content.content h1",".current-post .mindenkozben_post_content.content h2",".current-post .mindenkozben_post_content.content h3.title",".current-post .post h1",".current-post .post h2",".current-post .post h3.title","article h1","h1",".title"])||e.title}function pc(e){var t=(location.pathname||"").match(/\/(\d{4})\/(\d{2})\/(\d{2})\//);return t?t[1]+"-"+t[2]+"-"+t[3]+"T00:00:00+02:00":e.publishedTime}function hc(){return Ve({leadSelectors:[".mdl-article-perex .design-article__text",".design-article__perex-content",".design-article__perex"],bodySelectors:[".detail__article",".layout-article-content",".article-text","#article-content","div.text","[itemprop='articleBody']"]})}function fc(){return document.querySelector(".article-body")||document.querySelector(".article-content")||document.querySelector(".c-article__content")||document.querySelector("section.content.readme-audima")||document.querySelector("article .content")||document.querySelector("main .content")}rn=function(){return Vs()?[]:Js()},registerHostAwareProfile(!0,Vs),registerHostAwareProfile(!0,function(e){return je(/(^|\.)jang\.com\.pk$/)?function(e){return/^\/liveblog\//i.test(location.pathname||"")?et(e,{selectedEntry:Xs,title:function(e,r,n){return function(e,r){for(var n=0;n<r.length;n++){var o=e.querySelector(r[n]),i=t(o&&o.textContent);if(i)return i}return""}(n,["h2"])||u([".time_first_story h1","h1"])||e.title},bylineSelector:[".by_author h5"],minTextLength:120,rewriteRoot:Ys}):null}(e)||function(e){var t=document.querySelector(".story-content, .news-detail, .article-body, div.nn-article-body, .detail_view_content, .description");return t?Fe(e,t,{title:u([".detail-right-top h1",".main-heading h1",".news-title",".title","h1"])||e.title,byline:u([".by_author h5",".author","[rel='author']"])||e.byline,minTextLength:180,rewriteRoot:Ys}):null}(e):null}),registerHostAwareProfile(!0,function(e){if(!je(/(^|\.)skynewsarabia\.com$/)||ne()||!document.querySelector(".article-content .article-body, .article-body, [itemprop='articleBody']"))return null;var r=Ve({scopeSelectors:[".article_detail_page",".sna_content_body"],titleSelectors:[".sna_content_heading","h1.article-title",".slide-title","main h1","h1"],leadSelectors:[".article-sub-heading"],captionSelectors:[".article_image_heading_bg, .article-image-caption, .media-caption"],summarySelectors:[".article-summary"],bodySelectors:[".article-content .article-body",".article-body","[itemprop='articleBody']"],minTextLength:250});return r?Fe(e,r,{title:u([".sna_content_heading","h1.article-title",".slide-title","main h1","h1"])||e&&e.title,byline:u([".article-sub-heading","[rel='author']"])||e&&e.byline,publishedTime:Qs(e),minTextLength:250,rewriteRoot:function(e){Me(e,[".dfp-inread-article","[data-ng-dfp-ad]","[data-ng-dfp-ad-container]","sna-share","sna-related-article",".noprint",".rel_article_cont",".rel_article_group",".rel_article_group_title",".rel_article_item",".related_contents_cont",".related_contents",".article-widget","[class*='widget' i]","[class*='share' i]","[class*='social' i]","[class*='ad_' i]","[id*='ad-' i]"].join(", ")),e.querySelectorAll("a[href*='/keyword-search']").forEach(function(e){e.removeAttribute("href")}),e.querySelectorAll("p, div, section, h2, h3, a").forEach(function(e){var r=t(e.textContent||"");/^(أخبار ذات صلة|الأكثر قراءة|شرق أوسط|اشترك في خدمة الإشعارات|لم تفعّل خدمة إشعارات الأخبار العاجلة)$/i.test(r)&&e.remove()})}}):null}),registerHostAwareProfile(!0,function(e){return je(/(^|\.)milliyet\.com\.tr$/)&&(/\/live-/i.test(location.pathname||"")||document.querySelector("section.news-detail-content.live-content"))&&document.querySelector("section.news-detail-content.live-content")?et(e,{entrySelector:"section.news-detail-content.live-content",bodySelector:[".news-detail-title",".news-content.readingTime, .news-content",".timeline-news-box, .insert.insert-controls"],title:u([".news-detail-title","section.news-detail-content.live-content h1","h1"])||e.title,byline:u([".news-detail-author",".news-author","[rel='author']"])||e.byline,beforeBuild:ec,minTextLength:250,cleanupSelectors:[".news-detail-sticky",".breadcrumb",".breadcrumbs","[class*='share' i]","[class*='social' i]","[class*='advert' i]","[class*='reklam' i]","[id*='ad-' i]","[class*='related' i]","[class*='recommend' i]",".newsletter","[class*='newsletter' i]"],rewriteRoot:function(e){e.querySelectorAll("p, div, section, span, h2, h3, a").forEach(function(e){var r=t(e.textContent||"");r&&/^(son dakika|sıradaki haber|ilgili haberler|en çok okunanlar|günün en çok okunanları|paylaş|reklam)$/i.test(r)&&e.remove()})}}):null}),hostAwareProfiles.unshift({condition:!0,fn:function(e){return je(/(^|\.)yle\.fi$/)&&/^\/a\/\d+(?:-\d+)+\/\d+(?:-\d+)+\/?$/i.test(location.pathname||"")?et(e,{entrySelector:"article.post-container",entryMatcher:tc,bodySelector:".post-content",titleSelector:[".post-content h2",".post-content h3","h2","h3"],byline:function(e,r,n){return function(e){var r=e.querySelector(".post-header");return r&&Array.prototype.slice.call(r.querySelectorAll("span[aria-label], span[title]")).map(function(e){return t(e.getAttribute("aria-label")||e.getAttribute("title")||e.textContent||"")}).filter(Boolean)[0]||""}(n)||e.byline},publishedTime:function(e,t,r){return function(e){var t=e.querySelector("time[datetime]");return t?t.getAttribute("datetime"):null}(r)||e.publishedTime},beforeBuild:rc,minTextLength:180,cleanupSelectors:[".post-header","button","iframe","video","[data-testid='video-player']","[class*='player' i]","[class*='Preview' i]","[class*='Restrictions' i]","[class*='share' i]"],rewriteRoot:function(e){pt(e,"p, div, span, h2, h3",/^videosoitin$/i),e.querySelectorAll("script[type='application/ld+json']").forEach(function(e){e.remove()})}}):null}}),registerHostAwareProfile(!0,function(e){if(!je(/(^|\.)aktuality\.sk$/))return null;var r=document.querySelector("#articleContent[itemprop='articleBody'], [itemprop='articleBody'], .article-body, .entry-content");if(!r)return null;var n=document.createElement("article"),o=document.querySelector("article#article")||r.closest("article")||document;return["#article-headline","article h1","h1"].some(function(e){var t=o.querySelector(e)||document.querySelector(e);return!!t&&(n.appendChild(Pe(t,document)),!0)}),["#perex-id",".article-perex","[itemprop='description']"].some(function(e){var r=o.querySelector(e)||document.querySelector(e);return!(!r||t(r.textContent||"").length<40)&&(n.appendChild(Pe(r,document)),!0)}),n.appendChild(Pe(r,document)),Fe(e,n,{title:u(["#article-headline","article h1","h1"])||e.title,byline:u([".author-box .author-name",".author-box [rel='author']","[itemprop='author']"])||e.byline,minTextLength:250,rewriteRoot:function(e){Me(e,["#tp-inline-template",".tp-container-inner","one-page-order","#pay-content-app","iframe[src*='piano.io']","#bw_premium_article",".beyondwords-player","[class*='share' i]","[class*='save-article' i]",".article-object-link",".article-object-list","#recommendation-box-piano",".article-related-box",".cx-flex-module","[class*='related' i]","[class*='discussion' i]"].join(", ")),e.querySelectorAll("p, div, span").forEach(function(e){var r=t(e.textContent||"");/^(listen to this article|uložiť článok|zdieľať článok|diskusia\s*\/\s*\d*)$/i.test(r)&&e.remove(),/^prečítajte si tiež:?$/i.test(r)&&e.remove()})}})}),registerHostAwareProfile(!0,function(e){if(!je(/(^|\.)sabah\.com\.tr$/)||!nc())return null;var r=nc();return r?Fe(e,r,{title:u([".contentFrame .pageTitle",".contentFrame h1","h1"])||e.title,minTextLength:250,cloneRoot:!1,rewriteRoot:function(e){Me(e,["[class*='advert' i]","[class*='reklam' i]","[class*='ad-' i]","[id*='ad-' i]","[class*='share' i]","[class*='social' i]","[class*='related' i]","[class*='gallery' i]","[class*='video' i]","a[href*='trkvz.im']","img[src*='googlenews' i]"].join(", ")),e.querySelectorAll("p, div, section, span, h2, h3, a").forEach(function(e){var r=t(e.textContent||""),n=(e.tagName||"").toLowerCase();r&&(/^(son dakika|günün en çok okunanları|sıradaki haber|ilgili haberler|galeri|video|reklam|haber girişi|uygulamalara özel ayrıcalıkları keşfedin)$/i.test(r)&&e.remove(),0===r.indexOf("Sabah.com.tr Uygulam")&&e.remove(),"div"!==n&&"section"!==n&&/google haberler'de tüm gelişmeleri tek kaynakta görmek için sabah'ı takip edin/i.test(r)&&e.remove())})}}):null}),registerNewsHomepageListProfile(/(^|\.)sozcu\.com\.tr$/,oc),registerHostAwareProfile(!0,function(e){return je(/(^|\.)sozcu\.com\.tr$/)?function(e){return ni(e,oc())}(e):null}),registerHostAwareProfile(!0,function(e){if(!je(/(^|\.)interia\.pl$/)||!ic())return null;var r=ic();return r?Fe(e,r,{title:u(["article h1","h1"])||e.title,minTextLength:250,cloneRoot:!1,rewriteRoot:function(e){Me(e,["[data-component-0='wrapper-group']","[data-component-0='article-list']","[data-component-0='ad-rectangle']","[data-component-0='ads']","[data-component-0='share']","[data-icon]",".audio-news-player",".ids-audio-news-player",".emotion-bar",".like-button",".reaction",".share-bar",".social-share","[class*='emotion' i]","[class*='share' i]","[class*='social' i]","[class*='related' i]","[class*='article-list' i]","[class*='ads' i]","[id*='ad-' i]","[id*='google_ads' i]","script","style"].join(", ")),e.querySelectorAll("p, div, section, span, li, button, h2").forEach(function(e){var r=t(e.textContent||"");r&&(/^(odsłuchaj artykuł|audio generowane przez ai|lubię to|zły|super|hahaha|szok|smutny|udostępnij|zobacz również:?|reklama)$/i.test(r)&&e.remove(),/^\d{1,2}:\d{2}\s*min$/i.test(r)&&e.remove())})}}):null}),registerHostAwareProfile(!0,function(e){if(!je(/(^|\.)clarin\.com$/))return null;var r=document.querySelector("article#storyBody .StoryTextContainer")||document.querySelector("article#storyBody .vsmcontent")||document.querySelector("article#storyBody .body-text")||document.querySelector("article#storyBody div.entry-content")||document.querySelector("article#storyBody .article-body")||document.querySelector("article#storyBody .nota-body")||document.querySelector(".body-text")||document.querySelector("div.entry-content")||document.querySelector(".article-body")||document.querySelector(".nota-body");return r?(nt(r,e,{minBodyTextLength:1200,minParagraphCount:3,paragraphMinLength:70,hardPaywallPattern:/(?:solo para suscriptores|contenido exclusivo para suscriptores|suscribite para seguir leyendo|para continuar leyendo|contin[uú]a leyendo con tu suscripci[oó]n)/i,removalSelectors:["[data-piano-offer]","[data-paywall]","[class*='paywall' i]","[id*='paywall' i]","[class*='subscribe-wall' i]","[class*='premium-wall' i]"],signalRemovalSelectors:[".liveBlogStrip",".contentLiveblog","[class*='liveblog' i]","[class*='live-blog' i]","[data-liveblog]","[data-piano-offer]","[data-paywall]","[class*='paywall' i]","[id*='paywall' i]","[class*='subscribe-wall' i]","[class*='premium-wall' i]"]}),Fe(e,r,{title:u(["h1",".title"])||e.title,byline:u(["article#storyBody .list-authors",".list-authors","[rel='author']"])||e.byline,minTextLength:250,rewriteRoot:function(e){Me(e,["#containerUalter",".trinity-skip-it",".trinity-tts-placeholder-icon-player","[class*='trinity']",".place-social-mobile",".buttonsBar",".buttonBarList",".related-container","[class*='related']",".Newsletter","[class*='Newsletter']",".comments","[class*='comments']","[class*='bannerCollapse']","[class*='tags']","[class*='Tag']","section[class*='sc-4df4edb5']"].join(", ")),e.querySelectorAll("p, div, span, section").forEach(function(e){var r=t(e.textContent||"");r&&/^(ver resumen|tiempo de lectura|inteligencia artificial|experimental:|gracias!|otros análisis|mirá también|te puede interesar|selección clarín|seguí leyendo|últimas noticias|newsletter clarín|recibí en tu mail|comentarios|suscribite para comentar|tags relacionados)\b/i.test(r)&&e.remove()})}})):null}),registerNewsHomepageListProfile(/(^|\.)blic\.rs$/,ac),registerHostAwareProfile(!0,function(e){return je(/(^|\.)blic\.rs$/)?(e&&(e.language=""),function(e){return ni(e,ac())}(e)||function(e){if(!/\/(?:vesti|sport|zabava|showbiz|biznis|slobodno-vreme|kultura|zdravlje)\//i.test(location.pathname||""))return null;var r=document.querySelector(".article-body")||document.querySelector("div.article-text")||document.querySelector(".single-article-body")||document.querySelector(".article__body")||document.querySelector(".article__text")||document.querySelector(".article__content");return r?Fe(e,r,{title:u([".article-title",".article__title","article h1","h1"])||e.title,byline:u([".article__author-name",".article-author",".author","[rel='author']"])||e.byline,minTextLength:250,rewriteRoot:function(e){Me(e,[".banner",".wrapperAd",".audio-player",".article__share",".share",".comments",".comments-header",".news-box",".news-aside",".story-sp2026",".tabs",".related",".newsletter",".carousel-button",".jwplayer","[id^='InText_']","[data-placeholder-caption]"].join(", ")),e.querySelectorAll("p, div, span").forEach(function(e){var r=t(e.textContent||"");/^(slušaj vest|oglas|galerija|pročitajte još|budi prvi koji će komentarisati)$/i.test(r)&&r.length<120&&e.remove()})}}):null}(e)):null}),registerHostAwareProfile(!0,function(e){if(!je(/(^|\.)tempo\.co$/)||/^\/?$/i.test(location.pathname||"")||!lc())return null;var r=lc();return r?Fe(e,r,{title:u([".title-article","main h1","article h1","h1"])||e.title,minTextLength:220,rewriteRoot:function(e){Me(e,[".related-news",".related-article",".bacadetail","[class*='related' i]","[class*='share' i]","[class*='audio' i]","[class*='ringkasan' i]","[class*='summary' i]","[class*='newsletter' i]","[class*='rekomendasi' i]","[class*='recommend' i]","[class*='ads' i]","[id*='ads' i]","[data-testid*='share' i]"].join(", ")),e.querySelectorAll("p, div, span, button, a, li").forEach(function(e){var r=t(e.textContent||"");!r||r.length>220||(/^(dengarkan artikel|bagikan|gabung tempo circle|tampilkan ringkasan artikel|sembunyikan ringkasan artikel|mengapa tempo bisa dipercaya|scroll ke bawah untuk membaca berita)$/i.test(r)&&e.remove(),/^(akses edisi mingguan|akses penuh seluruh artikel tempo\+|baca dengan lebih sedikit gangguan iklan|anda mendukung independensi jurnalisme tempo)$/i.test(r)&&e.remove())})}}):null}),registerHostAwareProfile(!0,function(e,r){return function(e){return Ta(e,{hostPattern:/(^|\.)(?:elmundo|expansion|sport)\.es$/,bodySelectors:[".ue-c-article__body[data-section='articleBody']",".ue-c-article__body",".article-body","#article-body","div[itemprop='articleBody']","[itemprop='articleBody']"],sportParagraphFallback:!0,extraRemovalSelectors:[".ft-ad",".ft-mol-related",".ft-mol-multimedia",".jwplayer","[class*='jw-' i]","[class*='taboola' i]","[class*='trc_' i]"]})}(e)||function(e){if(!je(/(^|\.)(?:elmundo|expansion|sport)\.es$/))return null;if(!ne())return null;var r={},n=[];return document.querySelectorAll(".ue-c-cover-content, article, section").forEach(function(e){if(!e.closest("header, nav, footer, aside, [class*='comment' i]")){var i=e.querySelector(".ue-c-cover-content__link[href], h1 a[href], h2 a[href], h3 a[href]");if(i&&!i.closest("[class*='comment' i], .ue-c-cover-content__comments")){var a=i.getAttribute("href")||"";if(/\/(?:\d{4}\/\d{2}\/\d{2}\/|[a-f0-9]{24}\.html|\d{2}_\d{4}_\d{8}_)/i.test(a)){var l=t((i.querySelector(".ue-c-cover-content__headline, h1, h2, h3")||{}).textContent||i.textContent||""),s=o(a);!l||l.length<18||l.length>220||!s||r[s]||/^(comentarios?|ver comentarios?|opinar|participa)$/i.test(l)||(r[s]=!0,n.push({text:l,url:s,detail:ri(e,l)}))}}}}),n.length<4?null:j({title:e.title||document.title,excerpt:e.excerpt,siteName:e.siteName||location.hostname,items:n})}(e)}),registerHostAwareProfile(!0,function(e){return Ta(e,{hostPattern:/(^|\.)marca\.com$/,bodySelectors:[".ue-c-article__body","[data-section='articleBody']",".article-body","div.vcm-content",".content-article",".article-content","div[itemprop='articleBody']","[itemprop='articleBody']"],leadSelectors:[".ue-c-article__standfirst",".article-intro",".summary",".article__summary"],publicMinTextLength:900,extraRemovalSelectors:[".ue-c-players-ranking-widget","[class*='ranking-widget' i]","[class*='scoreboard' i]"]})}),registerNewsHomepageListProfile(/(^|\.)faz\.net$/,cc),registerHostAwareProfile(!0,function(e){return je(/(^|\.)faz\.net$/)?function(e){return ni(e,cc())}(e)||function(e){if(!/\.html(?:$|[?#])/i.test(location.pathname||""))return null;var r=document.querySelector(".walled-content")||document.querySelector(".at-article-body")||document.querySelector("[data-external-selector='body-elements']")||document.querySelector(".article-body");return r&&r.querySelector("p, [data-selector='body-paragraph']")?(function(e){var r=t(e&&e.textContent);if(r.length<2500)return;if(/(nur für abonnenten|nur für abonnent|abo abschließen|weiterlesen mit|lesen sie diesen artikel mit)/i.test(r))return;Me(document,"#taboola-below-paywall-thumbnails, #taboola-below-liveblog-thumbnails, [id*='paywall' i][id*='taboola' i], [id*='liveblog' i][id*='taboola' i]"),document.querySelectorAll("script[type='application/ld+json']").forEach(function(e){/isAccessibleForFree/i.test(e.textContent||"")&&e.remove()})}(r),Fe(e,r,{title:u(["[data-external-selector='header-title']","article h1","main h1","h1"])||e&&e.title,byline:u(["[data-external-selector*='header-detail'] .meta1","[rel='author']"])||e&&e.byline,minTextLength:500,prependTitle:!1,rewriteRoot:function(e){Me(e,["[data-selector='article-rights']","[data-external-selector='footer-links']","[data-external-selector='taboola-ads']","[id*='taboola']","[class*='taboola']","[class*='trc_']","[class*='tbl-']","[class*='aside-slot']","[class*='newsletter' i]","[class*='recommend' i]","[class*='share' i]"].join(", ")),e.querySelectorAll("section, div").forEach(function(e){var r=t(e.textContent||"");/^(mehr zum thema|f\.a\.z\.-artikel häufiger in ihren suchergebnissen sehen)/i.test(r)&&e.remove()})},postProcessMarkdown:function(e){return e.replace(/^###\s+(.+)$/gm,"**$1**")}})):null}(e):null}),registerHostAwareProfile(!0,function(e){if(!je(/(^|\.)wyborcza\.pl$/)&&!je(/(^|\.)gazeta\.pl$/))return null;var r=document.querySelector(".mrf-article-body")||document.querySelector(".article_body")||document.querySelector("div.articleBody")||document.querySelector(".art_content")||document.querySelector(".article-inner")||document.querySelector("section.article")||document.querySelector("[itemprop='articleBody']");if(!r||!r.querySelector("p, figure, blockquote"))return null;!function(){if(!uc())return;if(document.querySelector("[data-paywall='agora-wyborcza']"))return;var e=document.createElement("div");e.setAttribute("data-paywall","agora-wyborcza"),e.hidden=!0,e.textContent="Wybierz prenumeratę, by czytać to, co Cię ciekawi",document.body.appendChild(e)}();var n=document.createElement("article"),o=document.querySelector(".article--header, .article_header, header.metadata--article");return o&&n.appendChild(Pe(o,document)),n.appendChild(Pe(r,document)),Fe(e,n,{title:u(["h1.metadata--title",".article_title",".title","h1"])||e.title,byline:u([".metadata--author",".article--author","[class*='author' i]","[rel='author']"])||e.byline,minTextLength:220,cloneRoot:!1,extra:function(){return{packagePage:uc()}},rewriteRoot:function(e){Me(e,["#message","#info-adblock","#info-ups","script","style","svg",".msg-container",".article--social-top",".social",".tags",".article-audio",".article--precontent",".article--underlead",".article--comments",".comments",".comment",".newsletter","[class*='newsletter' i]","[class*='recommend' i]","[class*='related' i]","[class*='advert' i]","[id*='advert' i]"].join(", ")),e.querySelectorAll("p, div, span, a, h1, h2").forEach(function(e){var r=t(e.textContent||"");/^(wyłącz adblocka\/ublocka|aby czytać nasze artykuły wyłącz adblocka|ups!|nieznany błąd|posłuchaj|sprawdź ofertę|zaloguj się)$/i.test(r)&&e.remove()})}})}),registerHostAwareProfile(!0,function(e){if(!je(/(^|\.)index\.hu$/)||!/^\/mindekozben\/poszt\//i.test(location.pathname||"")&&!/(\/\d{4}\/\d{2}\/\d{2}\/|\.html(?:$|[?#]))/i.test(location.pathname||"")||!dc())return null;var r=dc();return r?Fe(e,r,{title:mc(e),byline:u([".current-post .author",".current-post [class*='author' i]","[class*='szerzo' i]"])||e.byline,minTextLength:180,publishedTime:pc(e),rewriteRoot:function(e){Me(e,[".new-posts",".next-post",".previous-post",".related",".ajanlo",".share",".social",".comments",".comment","[class*='advert' i]","[class*='hirdet' i]","[id*='ad' i]"].join(", ")),Me(e,"h1, h2, h3.title"),e.querySelectorAll("p, div, span, li").forEach(function(e){var r=t(e.textContent||"");/^új poszt érkezett/i.test(r)&&e.remove(),/^(hirdetés|megosztás|kommentek|kapcsolódó)$/i.test(r)&&e.remove()})}}):null}),registerHostAwareProfile(!0,function(e){if(!je(/(^|\.)root\.cz$/)||!/^\/clanky\//i.test(location.pathname||"")||!hc())return null;var r=hc();return r?(e&&(e.language=""),Fe(e,r,{title:u([".design-title","h1"])||e.title,byline:u([".design-impressum__author",".design-impressum a[rel='author']",".design-impressum__content a"])||e.byline,minTextLength:250,rewriteRoot:function(e){Me(e,["nav","aside",".comments","[class*='comment' i]","[class*='discussion' i]","[class*='share' i]","[class*='social' i]","[class*='rating' i]","[class*='advert' i]","[class*='ad-detail' i]","[class*='root-ad' i]","[class*='selfpromo' i]","[id*='google_ads' i]","[id*='div-gpt' i]","script","style"].join(", ")),e.querySelectorAll("p, div, section, ul, li, a, span, h2, h3").forEach(function(e){var r=t(e.textContent||"");r&&(/^(počet nových komentářů\s*\d+|přidejte názor|líbí se vám článek\?|podpořte redakci|sdílet|sdílejte na facebooku|sdílejte na síti x)$/i.test(r)&&e.remove(),/^přidat mezi oblíbené zdroje na googlu$/i.test(r)&&e.remove(),/^reklama\b/i.test(r)&&r.length<400&&e.remove())})}})):null}),registerHostAwareProfile(!0,function(e){if(!je(/(^|\.)abril\.com\.br$/)||/^\/?$/i.test(location.pathname||"")||!fc())return null;var r=fc();return r?(nt(r,e,{minBodyTextLength:900,minParagraphCount:3,paragraphMinLength:70,hardPaywallPattern:/(?:conte[uú]do exclusivo|exclusivo para assinantes|assine para continuar|continue lendo com|conte[uú]do para assinantes)/i,pageHardPaywallPattern:/(?:conte[uú]do exclusivo|exclusivo para assinantes|assine para continuar|continue lendo com|conte[uú]do para assinantes)/i,removalSelectors:He.concat(["[data-piano-offer]"]),structuredDataMode:"remove"}),Fe(e,r,{title:u([".post-header h1","main h1","article h1","h1"])||e.title,byline:u([".author-name",".post-header .author",".post-header [rel='author']"])||e.byline,minTextLength:250,rewriteRoot:function(e){Me(e,[".accessibility-buttons",".share-box",".salvar-conteudo-materia",".ads",".abrAD",".post-ads",".after-text",".noreadme-audima",".abril-recirculacao-copa","[class*='share' i]","[class*='newsletter' i]","[class*='recirculacao' i]","[data-format='billboard']","[data-ad-unit]"].join(", ")),function(e){e.querySelectorAll("h2, h3").forEach(function(e){var r=t(e.textContent||"");if(/^(leia mais|em alta)$/i.test(r)){var n=e.nextElementSibling;n&&/^(ul|ol)$/i.test(n.tagName||"")&&n.remove(),e.remove()}}),e.querySelectorAll("p, div, span, li").forEach(function(e){var r=t(e.textContent||"");/^(compartilhe essa matéria:?|link copiado!?|continua após a publicidade|publicidade|tudo sobre a copa, em um só lugar|ver cobertura completa)$/i.test(r)&&e.remove()})}(e)}})):null});var gc=dt({hostPattern:/(^|\.)163\.com$/,pathPattern:/\/(?:news|dy|ent|sports|money|tech|auto|war|gov|local)\/article\/[A-Z0-9]+/i,bodySelectors:[".post_body",".post_content .post_body","#endText",".article-body",".post_text",".post_content"],titleSelectors:[".post_title","h1.post_main_icon",".post_main h1","h1"],bylineSelectors:[".post_info",".post_time_source",".post_source",".post_author"],removalSelectors:[".post_top_tie_count",".post_top_share",".post_share",".post_recommends",".post_recommend",".post_recommend_ad",".post_statement",".post_btmshare",".post_comment",".tie-area","#tie","#tieArea","[class*='recommend' i]","[class*='share' i]","[class*='comment' i]","[id*='comment' i]"],removalTextPatterns:[/^(相关推荐|热点推荐|分享至|跟贴|举报|本文来源[::]|责任编辑[::]|打开网易新闻|下载网易新闻客户端)/i],minBodyTextLength:80,extra:{docsLike:!0}});function yc(){return document.querySelector("#entryBody")||document.querySelector(".article-body")||document.querySelector(".skinArticleBodyEx")||document.querySelector(".skinArticleBody")||document.querySelector(".entry-text")||document.querySelector("article.entry")||document.querySelector("article.skin-entry .skin-entryBody")}function bc(){for(var e=[".paywall-short-content","#story-body",".article-content",".article__body","#article-body",".article-text","article.story-content"],r=0;r<e.length;r+=1)for(var n=Array.prototype.slice.call(document.querySelectorAll(e[r])),o=0;o<n.length;o+=1){var i=n[o];if(!i.closest("footer, nav, aside, .main-footer-body, .tab-content")&&t(i.textContent||"").length>=250)return i}return null}function vc(){return document.querySelector("article.article-content")||document.querySelector(".article-content")||document.querySelector("article.article")||document.querySelector(".content-body")||document.querySelector("#articleContent")}function wc(e,t){var r=u([".weibo-top .m-text-cut",".weibo-top h3","header .m-text-cut"]);return r&&!/^(关注|微博正文)$/i.test(r)?r+" - 微博正文":t&&t.title&&"微博"!==t.title?t.title:"微博正文"}function xc(e,t){return V(e,[".story__title","h1.title","h1"])||t&&t.title}function Sc(e){return V(e,[".story__user-link"])}function kc(e,r){var n=(r.closest("section.body-article, article")||document).querySelector(".rs-article-title, .title-art-hp, .article-title, h1");return t(n&&n.textContent||e&&e.title)}function Ac(){return document.querySelector(".rs-article-body")||document.querySelector("#article-body")||document.querySelector(".article-content")||document.querySelector("div[itemprop='articleBody']")||document.querySelector("[itemprop='articleBody']")||document.querySelector("#content-to-read")||document.querySelector("section.body-article")||document.querySelector("article .body-article")||document.querySelector("article")}function Cc(){return document.querySelector(".art-full")||document.querySelector("#art-content")||document.querySelector(".bbtext")||document.querySelector(".article-content")||document.querySelector("#art-text")||document.querySelector("div.text")}function qc(){return document.querySelector(".c-news__body")||document.querySelector(".article-content")||document.querySelector("[itemprop='articleBody']")||document.querySelector("div[data-tda][data-news-content-text]")}function Tc(e){return e&&(e.querySelector("div.se-main-container")||e.querySelector("#printpost")||e.querySelector("#postViewArea")||e.querySelector(".se_component_wrap")||e.querySelector(".post-view"))||null}function _c(e,r){for(var n=0;n<r.length;n++){var o=e.querySelector(r[n]),i=t(o&&o.textContent);if(i)return i}return""}function Ec(e){var t=e&&!1!==e.reader_mode?Xn():null;return t&&(t=Vn(t,Un())),t||(t=Un()),t}function jc(e,r,n,o,i){-1!==r.indexOf(n)&&(o&&t(i||e.markdown||e.textContent||"").length>=o||(e.contentType="interstitial"))}function Lc(e,r,n,o,i){var a,l,s=function(e){if(!e)return e;var r=t(e);return r?/^https?:\/\//i.test(r)?null:(r=t(r=r.split(/[\n\t]/)[0]),/^(devam(ın)?ı okuyun|read more|leer más|weiterlesen|lire la suite|leggi di più|czytaj dalej|tümünü gör|اقرأ المزيد|ادامه مطلب|המשך לקרוא|مزید پڑھیں)$/i.test(r)||!(r=t(r=r.replace(/\s*@[\w.-]+.*$/i,"").replace(/\s*\d+\s*(takipçi|followers?|متابع|دنبالکننده|עוקבים|فالوور).*$/i,"")))||r.length<2?null:r):null}(e.byline||r.byline||p()),c=(a=e.html,(l=document.createElement("div")).innerHTML=a,Re(l),l.innerHTML);e.title&&(e.title=t(e.title.replace(/\s*Stay organized with collections\s*Save and categorize content based on your preferences\.?\s*/gi,"")));var u=Ut(e.markdown||tr(c||e.html)),d=t(e.textContent||""),m=t(u);!m&&d.length>40&&(u=Ut(tr(c)||d)),m=t(u),"list"===e.contentType&&function(e){if(t(e=String(e||"")).length<700||!/^\|\s*[-: ]+\|/m.test(e))return!1;if((e.match(/^\s*- \[/gm)||[]).length>=3)return!1;var r=e.split(/\n{2,}/).filter(function(e){var r=e.trim();return!(!r||/^\|/.test(r)||/^#/.test(r))&&t(r).length>=80&&/[.!?)]$/.test(t(r))}).length,n=(e.match(/^\|/gm)||[]).length;return(e.match(/^#{1,3}\s+/gm)||[]).length>=1&&r>=2&&n>=4&&n<=40}(u)&&(e.contentType="article"),"article"===e.contentType&&!e.secFiling&&!e.readerMode&&e.html&&e.html.length>5e4&&d.length>=1200&&m.length<.2*d.length&&(u=Ut(d));var h=t((e.title||r.title||"").replace(/\s*Stay organized with collections\s*Save and categorize content based on your preferences\.?\s*/gi,"")),f=t(e.siteName||r.siteName||""),g=h;if(("article"===e.contentType||"medical"===e.contentType)&&t(u)&&f&&g.toLowerCase()===f.toLowerCase()&&u.split("\n").slice(0,12).some(function(e){var r=t(e).match(/^#+\s+(.*)/),n=t(r&&r[1]).replace(/[`*_]/g,"");return!!(n&&n.length>=8&&n.toLowerCase()!==f.toLowerCase())&&(g=n,!0)}),("article"===e.contentType||"medical"===e.contentType)&&g&&t(u)){for(var y=u.split("\n"),b=-1,v=g.toLowerCase(),w=h.toLowerCase(),x=f.toLowerCase(),S=0;S<Math.min(y.length,12);S+=1){var k=t(y[S]).replace(/^#+\s*/,"").replace(/[`*_]/g,"");if(k&&t(k).toLowerCase()===v){b=S;break}}if(b<0)for(var A=0;A<Math.min(y.length,12);A+=1){var C=t(y[A]).match(/^(#+)\s+(.*)/);if(C&&"#"===C[1]){var q=t(C[2]).replace(/[`*_]/g,"");if(0===q.toLowerCase().indexOf(v)&&q.length>g.length+5){var T=q.substring(g.length).trim();y[A]="# "+g,T&&y.splice(A+1,0,"",T),u=y.join("\n"),b=A;break}}}if(b>0){var _=y.slice(0,b),E=(_.filter(function(e){return t(e)}).some(function(e){var r=t(e).replace(/^#+\s*/,"").replace(/[`*_]/g,"");return!!r&&(!/^!\[[^\]]*\]\([^)]*\)$/.test(t(e))&&(r.toLowerCase()!==w&&r.toLowerCase()!==x))})?_:[]).concat(y.slice(b+1));u="# "+g+"\n\n"+E.join("\n").trim()}else Et(u,g)||(u="# "+g+"\n\n"+u)}if(u=Ut(u),/^(article|podcast)$/i.test(e.contentType||"")&&!/\btranscript\b/i.test(u)){var j=hi(document.body||document);j&&(u=Ut([u,j].filter(Boolean).join("\n\n")))}"article"===e.contentType&&(u=Al(u)),"article"===e.contentType&&!i&&function(e,r){if(!e||"article"!==e.contentType||Ar(e))return!1;var n=(location.pathname||"").toLowerCase(),o=(location.search||"").toLowerCase();if(!/\/(?:search|results?)(?:\.html?)?$/i.test(n)&&!/(?:^|[?&])(?:q|query|search|searchtext|keyword|k|text)=/.test(o))return!1;var i=document.createElement("div");i.innerHTML=e&&e.html||document.body.innerHTML;var a=t([i.textContent||"",r||"",document.title||""].join(" ")).replace(/[*_`]+/g,""),l=/\bresults?\s*\d+\s*[-–]\s*\d+\s*(?:of|sur|von|de)\s*\d+\b/i.test(a)||/\b\d+\s+results?\b/i.test(a),s=Array.prototype.filter.call(i.querySelectorAll("a[href]"),function(e){var r=e.getAttribute("href")||"",n=t(e.textContent||e.getAttribute("aria-label")||"");return!(n.length<wr(n)||n.length>280||qr(n,r))&&/\/(?:legal-content|eli|LexUriServ|resource|document|doc|case-law|summary)\b|[?&](?:uri|celex|qid|docid)=/i.test(r)}).length,c=i.querySelectorAll("[class*='result' i], [id*='result' i], article, li, tr").length,u=(String(r||"").match(/^\s*#{1,4}\s+\[[^\]]{8,280}\]\(/gm)||[]).length;return l&&(s>=3||u>=3)&&(c>=3||u>=3)}(e,u)&&(e=io(e,{strongList:!0})),"article"!==e.contentType||i||e.hostAware||e.docsLike||e.legalProvision||!Or(u,e)||(e=io(e,{strongList:!0}));var L=function(e){var t=e||"";if(t.length<400)return t;var r=t.slice(0,5e3),n=/(?:presid[eê]ncia|casa civil|subchefia|official gazette|government|ministry|department|secretariat|texto compilado|compiled text|\|\s*---\s*\|)/i.test(r),o=/(?:Home\s*\]\s*\[\s*Databases|Multidatabase Search|World Law|DONATE|depends on users like you|You are here:|New search|Buy [A-Z]+ report|Cite as:)/i.test(r)&&/\b(?:judg(?:e)?ment|opinion(?:s)? of the lords|court|appellant|respondent|claimant|defendant|neutral citation|cite as)\b/i.test(r);if(!n&&!o)return t;if(o){var i=t.match(/^#\s+[^\n]+\n+/),a=r.search(/\n(?:#{1,3}\s+[^\n]*(?:UKHL|UKSC|EWCA|EWHC|UKPC|UKUT|UKFTT|U\.S\.|\bAC\b|\bWLR\b|All\s+ER)\s+\d+[^\n]*|\*\*(?:HOUSE OF LORDS|SUPREME COURT|COURT OF APPEAL|HIGH COURT|OPINIONS? OF THE LORDS)[^\n]*\*\*)/i);if(i&&a>i[0].length&&a<4500)return(i[0].trim()+"\n\n"+t.slice(a).trim()).trim()}var l=r.match(/(?:\*\*)?\s*(?:PRE[ÂA]MBULO|PREAMBLE)\s*(?:\*\*)?/i);if(l&&l.index<3e3)return t.slice(l.index).trim();var s=Fn({text:r}).bodyStartMatch;return s&&s.index<3e3?t.slice(s.index).trim():t}(u);if(L!==u&&t(L).length>=5e3&&(e.contentType="article"),lo(null,u=L)&&"list"===e.contentType&&(e.contentType="article"),"list"===e.contentType&&function(e){if(!e||2!==e.length)return!1;var t=e[0]||"",r=e[1]||"";return!/^(search|category|categories|tag|tags|topics?|collections?|archive|archives|latest|headlines|news|forums?|boards?|community|discussions?|threads)$/.test(t)&&r.length>=6&&/[a-z]/i.test(r)&&/\d/.test(r)&&/^[a-z0-9_-]+$/.test(r)}((location.pathname||"").toLowerCase().split("/").filter(Boolean))){var $=u.split("\n").map(function(e){return t(e).replace(/^#+\s*/,"")}).filter(Boolean)[0]||"";$.length>=100&&!/^[-*]\s+\[/.test($)&&(e.contentType="article")}var P=En(r,e,u,n,o);e.spaDataGuard&&-1===P.indexOf("spa_data_traversal_guard")&&P.push("spa_data_traversal_guard");var N=t(u);gr(g||r.title,N,{maxTextLength:1800,checkStructured:!0})&&-1===P.indexOf("not_found_interstitial")&&P.push("not_found_interstitial"),gr(g||r.title,N,{maxTextLength:900})&&-1===P.indexOf("not_found_interstitial")&&P.push("not_found_interstitial");var z=t([g,r.title,r.siteName,location.hostname,location.pathname,u].join(" "));gr(g||r.title,z,{maxTextLength:2e3})&&/\b(court|courts|case law|caselaw|legal|law|opinion|citation)\b/i.test(z)&&-1===P.indexOf("not_found_interstitial")&&P.push("not_found_interstitial"),jc(e,P,"not_found_interstitial"),jc(e,P,"consent_interstitial",500,u),jc(e,P,"auth_or_login_interstitial",1200,u),-1!==P.indexOf("meta_login_wall")&&-1!==P.indexOf("consent_interstitial")&&"social"!==e.contentType&&(e.contentType="interstitial",ea(e)),t(u).length<1200&&/\b(?:service|site|product|platform|application|app)\b/i.test(z)&&/\b(?:no longer available|has been retired|have been retired|is retired|was retired|shutdown|shut down|sunset|discontinued)\b/i.test(z)&&-1===P.indexOf("access_error_interstitial")&&P.push("access_error_interstitial"),t(u).length<10&&-1===P.indexOf("empty_extraction")&&P.push("empty_extraction"),t(u).length<140&&/copyright\b.*\ball rights reserved\b/i.test(t(u))&&-1===P.indexOf("empty_extraction")&&P.push("empty_extraction"),t(u).length<500&&/(?:^|:\s*)error$/i.test(g||r.title||"")&&-1===P.indexOf("access_error_interstitial")&&P.push("access_error_interstitial");var M=t(n||"").length,R=t(u||"").length,B=M>0?Math.round(R/M*100)/100:1,H=qn(r,e,u),F=null;bn()&&(F=-1!==P.indexOf("subscription_interstitial")?"full_block":"detected"),"interstitial"===e.contentType&&ea(e);var O="social"===e.contentType?e:{};return{title:g||t(r.title),byline:s,excerpt:e.excerpt||r.excerpt,siteName:e.siteName||r.siteName,publishedTime:"list"===e.contentType?e.publishedTime||null:e.publishedTime||r.publishedTime,canonicalUrl:r.canonicalUrl,language:r.language,name:e.name||null,company:e.company||null,location:e.location||null,description:e.description||null,bedrooms:void 0===e.bedrooms?null:e.bedrooms,bathrooms:void 0===e.bathrooms?null:e.bathrooms,areaSqft:void 0===e.areaSqft?null:e.areaSqft,html:e.html,markdown:u,readerMode:e.readerMode,contentType:e.contentType||"article",ingredients:e.ingredients||null,instructions:e.instructions||null,price:e.price||null,rating:e.rating||null,address:e.address||null,legalProvision:!!e.legalProvision,hostAware:!!e.hostAware,portalRootEvidence:e.portalRootEvidence||null,sportsDetailEvidence:e.sportsDetailEvidence||null,statusPage:!!e.statusPage,socialKind:O.socialKind||null,platform:O.platform||null,handle:O.handle||null,replyCount:void 0===O.replyCount?null:O.replyCount,community:O.community||null,score:void 0===O.score?null:O.score,suspect:P.length>0,warnings:P,contentCompletenessRatio:B,contentFormat:H,paywallState:F,textContent:e.textContent,url:location.href}}registerHostAwareProfile(!0,gc),registerHostAwareProfile(!0,function(e){if(!je(/(^|\.)ameblo\.jp$/)||!/\/entry-\d+\.html(?:$|[?#])/i.test(location.pathname||"")||!yc())return null;var r=yc();return r?Fe(e,r,{title:u([".skinArticleTitle",".skin-entryTitle","article.skin-entry h1","h1"])||e.title,byline:u([".skin-entryAuthor",".skin-entryThemes","[rel='author']"])||e.byline,minTextLength:250,rewriteRoot:function(e){Me(e,["[data-toc]",".js-ad",".ad",".adsbygoogle",".skin-ad",".skin-entryFooter",".entry-share",".js-entryFooter",".js-commentArea",".commentArea",".blogCard",".ogpCard"].join(", ")),e.querySelectorAll("img").forEach(function(e){var t=e.getAttribute("src")||"";/\/blog\/ucs\/img\/char\//i.test(t)&&e.remove()}),e.querySelectorAll("a[href^='#']").forEach(function(e){var r=t(e.textContent||"");r&&!/^目次を/.test(r)||e.remove()})}}):null}),registerHostAwareProfile(!0,function(e){if(!je(/(^|\.)dnevnik\.bg$/)||ne()||!bc())return null;var r=bc();if(!r)return null;var n=Fe(e,r,{title:e.title||u(["article.story-content h1","main h1","h1"]),byline:u(["a[href*='/author/']","meta[name='author']"],"content")||e.byline,minTextLength:250,cleanupRoot:!1,rewriteRoot:function(e){Me(e,[".paywall-content","[class*='share' i]","[class*='social' i]","[class*='advert' i]","[id*='advert' i]","[data-ad]",".tab-content",".main-footer-body","footer"].join(", ")),e.querySelectorAll("div[role='paragraph'], div.default").forEach(function(e){var t=document.createElement("p");t.innerHTML=e.innerHTML,e.replaceWith(t)}),e.querySelectorAll("p, div, span, a, button").forEach(function(e){var r=t(e.textContent||"");/^(сподели|линкът е копиран|копирай линк|изпрати по имейл|facebook|linkedin|viber|абонирайте се|ако сте абонат, влезте в профила си)$/i.test(r)&&e.remove(),/^продължете да четете с пълен достъп/i.test(r)&&e.remove()})},validateMarkdown:function(e){return!/Дневник и Капитал са сертифицирани по професионалния стандарт|Общи условия за ползване|Политика за бисквитките/i.test(e)},postProcessMarkdown:function(e){return e.replace(/^\|\s+/gm,"")}});return n&&(e.language=null,nt(r.querySelector(".paywall-short-content")||r,e,{minBodyTextLength:700,minParagraphCount:0,bodyRejectPattern:/(?:\.\.\.|…)$/,removalSelectors:[".paywall-content","[data-paywall]","[data-piano-offer]"],signalRemovalSelectors:[".paywall-content","[data-paywall]","[data-piano-offer]"],stripAttributeSelectors:"[id*='paywall' i], [class*='paywall' i], [class*='article-lock' i]",stripIdPattern:/paywall/i,stripClassPattern:/paywall|article-lock/i,structuredDataMode:"remove",structuredDataRemovalPattern:/isAccessibleForFree|Paywall|Subscription/i})),n}),registerHostAwareProfile(!0,function(e){if(!je(/(^|\.)segmentfault\.com$/)||!/^\/a\/\d+/.test(location.pathname||"")||!vc())return null;var t=vc();return t?Fe(e,t,{title:u(["main h1",".article-title","h1"])||e.title,byline:u([".article-author",".author","a[href^='/u/']"])||e.byline,minTextLength:120,rewriteRoot:function(e){e.querySelectorAll(".widget-vote, .widget-share, .article-operation, .article-copyright, .comment, .comments, [class*='share' i], [class*='comment' i]").forEach(function(e){e.remove()})}}):null}),registerHostAwareProfile(!0,function(e){if(!je(/^m\.weibo\.cn$/))return null;if(!/^\/status\/[^/]+\/?$/i.test(location.pathname||""))return null;var r=function(){for(var e=Array.prototype.slice.call(document.querySelectorAll(".card-wrap .weibo-og .weibo-text, .card-wrap div.weibo-text, div.weibo-text, .weibo-text")),r=0;r<e.length;r++){var n=e[r];if(!n.closest(".card-main, .comments, .comment, [class*='comment']"))if(t(n.textContent||"").length>=20)return n}return null}();if(!r)return null;var n=function(e){var t=document.createElement("article");t.setAttribute("data-fetchutil-profile","weibo-mobile");var r=document.querySelector(".card-wrap .weibo-top")||document.querySelector("header.weibo-top");r&&t.appendChild(Pe(r,document));var n=e.closest(".card-wrap")||e.parentElement,o=document.createElement("section");if(o.appendChild(Pe(e,document)),n){var i=n.querySelector(".weibo-media, .weibo-media-wraps, .card-video, video, .m-auto-list");i&&o.appendChild(Pe(i,document))}return t.appendChild(o),t}(r);if(!n)return null;var o=Fe(e,n,{title:wc(n,e),byline:u([".weibo-top .m-text-cut",".weibo-top h3","header .m-text-cut"])||e.byline,minTextLength:40,rewriteRoot:function(e){Me(e,[".m-followBtn",".m-add-box",".weibo-btn",".toolbar",".card-act",".lite-page-tab",".comments",".comment",".card-main","[class*='comment']","svg"].join(", ")),e.querySelectorAll("p, div, span, h4").forEach(function(e){var r=t(e.textContent||"");/^(关注|转发\d*|评论\d*|赞\d*|\d{2}:\d{2})$/i.test(r)&&e.remove()})},validateMarkdown:function(e){return!/\n####\s+[^\n]+\n\n###\s+/.test(e)},extra:{docsLike:!0}});if(!o)return null;var i=document.querySelector(".weibo-top a[href^='/profile/']"),a=i&&i.getAttribute("href").split("/").filter(Boolean)[1];return o.contentType="social",o.socialKind="post",o.platform="Weibo",o.handle=a||null,o}),registerHostAwareProfile(!0,function(e){if(!je(/(^|\.)pikabu\.ru$/))return null;if(!/^\/story\//i.test(location.pathname||""))return null;var r=function(){for(var e=Array.prototype.slice.call(document.querySelectorAll(".page-story[data-story-id], .story[data-story-id], [data-story-id]")),t=0;t<e.length;t++){var r=e[t];if(!r.closest(".comments, #comments, [id^='comment_']")&&(r.querySelector(".story__title")&&r.querySelector(".story__content, #content-story-text, .story-body, div.story__text")))return r}return null}();if(!r)return null;var n=function(e,r){var n=e.querySelector(".story__content")||e.querySelector("#content-story-text")||e.querySelector(".story-body")||e.querySelector("div.story__text");if(!n)return null;var i=document.createElement("div");i.setAttribute("data-fetchutil-profile","pikabu");var a=xc(e,r);if(a){var l=document.createElement("h1");l.textContent=a,i.appendChild(l)}var s=t([Sc(e),V(e,[".story__datetime-link",".story__datetime"])].filter(Boolean).join(" - "));if(s){var c=document.createElement("p");c.textContent=s,i.appendChild(c)}(function(e,r,n){var i=r.querySelector(".story__content");if(!i)return;var a=i.querySelector("[poster]"),l=a&&a.getAttribute("poster");if(l){var s=document.createElement("img");s.setAttribute("src",l),n&&s.setAttribute("alt",n),e.appendChild(s)}var c=i.querySelector("a[href*='/video/story/']");if(c&&c.getAttribute("href")){var u=document.createElement("p"),d=document.createElement("a");d.setAttribute("href",o(c.getAttribute("href"))),d.textContent=t(c.textContent||"Перейти к видео")||"Перейти к видео",u.appendChild(d),e.appendChild(u)}})(i,e,a),i.appendChild(Pe(n,document));var u=e.querySelector(".story__tags");u&&i.appendChild(Pe(u,document));return i}(r,e);if(!n)return null;var i=Fe(e,n,{title:xc(r,e),byline:Sc(r)||e.byline,minTextLength:60,rewriteRoot:function(e){Me(e,[".comments","#comments","[id^='comment_']",".story__footer",".story__tools",".story__left",".story__save",".story__share",".story__comments-link",".story-title-icons","[data-role='player-controls']","[class*='player-controls']","[class*='timeline']","[class*='player-btn']","[class*='recommend']","[class*='advert']","[data-adfox]","svg"].join(", ")),e.querySelectorAll("p, div, span, a").forEach(function(e){var r=t(e.textContent||"");/^(00:\d{2}\s*\/\s*\d{2}:\d{2}|раскрыть \d+ комментар|ещё \d+|поделиться|сохранить)$/i.test(r)&&e.remove()});var r={};e.querySelectorAll("a[href]").forEach(function(e){var t=e.getAttribute("href")||"";r[t]&&e.remove(),r[t]=!0})},validateMarkdown:function(e){return!/\b\d+\s+час(?:а|ов)?\s+назад[\s\S]{0,240}\bраскрыть\s+ветку/i.test(e)},extra:{docsLike:!0}});return i?(i.contentType="social",i.socialKind="post",i.platform="Pikabu",i.handle=Sc(r),i):null}),registerHostAwareProfile(!0,function(e){if(!(je(/(^|\.)corriere\.it$/)||je(/(^|\.)gazzetta\.it$/)||je(/(^|\.)lastampa\.it$/))||ne()||!Ac())return null;var r=Ac();return r?Fe(e,r,{title:kc(e,r),byline:u([".author-art .writer",".author-art",".byline","[rel='author']","[itemprop='author']"])||e.byline,minTextLength:300,rewriteRoot:function(e){Me(e,[".widget-audio-article",".box-audio",".article-audio",".sharebar",".share-bar",".social-share",".article-share",".adv",".adv__content",".advertising",".banner",".newsletter",".paywall",".piano",".trc_rbox",".taboola",".comment",".comments",".discussion",".scoreboard","[class*='scoreboard' i]","[class*='share' i]","[id*='share' i]","[data-mrf-recirculation]","[data-testid*='share' i]"].join(", ")),e.querySelectorAll("p, div, span, button").forEach(function(e){var r=t(e.textContent||"");!r||r.length>220||(/^(ascolta l'articolo|\d+\s*min|new|condividi|leggi anche|continua a leggere|pubblicit[àa]|abbonati|scegli corriere come fonte preferita)/i.test(r)&&e.remove(),/^(i\s*)?questo audio è generato in automatico/i.test(r)&&e.remove(),/^(portogallo|spagna)\d/i.test(r)&&e.remove())})}}):null}),registerHostAwareProfile(!0,function(e){if(!je(/(^|\.)lemonde\.fr$/))return null;var r,n,o=document.querySelector("article.article__content")||document.querySelector(".article__content")||document.querySelector(".article-content")||document.querySelector("[itemprop='articleBody']");return o&&o.querySelector("p, figure, blockquote")?((r=document.querySelector("#js-modal-gifted-url, .article__gift-modal"),n=t(r&&r.textContent||""),/cet article vous est offert/i.test(n))&&nt(o,e,{minBodyTextLength:350,minParagraphCount:3,paragraphMinLength:60,removalSelectors:He.concat(["#js-modal-gifted-url",".article__gift-modal",".paywall",".js-paywall"]),textRemovalPattern:/cet article vous est offert|pour lire gratuitement cet article réservé aux abonnés|article réservé aux abonnés|la suite est réservée à nos abonnés/i,textRemovalMaxLength:260}),Fe(e,Je(document.querySelector(".article__desc, .article__lead, .article__standfirst"),o),{title:u(["h1.article__title",".article__title","h1"])||e.title,byline:u([".article__author",".meta__author","[rel='author']"])||e.byline,minTextLength:250,cloneRoot:!1,rewriteRoot:function(e){Me(e,He.concat(["#js-modal-gifted-url",".article__gift-modal",".paywall",".js-paywall",".article__siblings",".article__reactions",".article__share",".meta__social",".services","[data-module*='newsletter' i]","[data-module*='recommend' i]"]).join(", ")),e.querySelectorAll("p, div, span, figcaption").forEach(function(e){var r=t(e.textContent||"");/^(article réservé aux abonnés|la suite est réservée|il vous reste \d+(?:[,.]\d+)?% de cet article à lire|se connecter|s’abonner|s'abonner)$/i.test(r)&&e.remove()})}})):null}),registerHostAwareProfile(!0,function(e){if(!(je(/(^|\.)idnes\.cz$/)||je(/(^|\.)lidovky\.cz$/)||je(/(^|\.)blaze\.cz$/)||je(/^expats\.cz$/))||!Cc()||!document.querySelector("h1.arttit, h1.title, .art-title, .article-title, h1"))return null;var r=Cc();return r?(e.language="",Fe(e,r,{title:e.title||u(["h1.arttit","h1.title",".art-title",".article-title","h1"]),byline:u([".authors",".author",".art-info .author","[rel='author']"])||e.byline,minTextLength:450,postProcessMarkdown:function(e){var r=document.querySelector("#paywall, #promo-paywall, .paywall-before"),n=r&&ze(r),o=t(n&&n.textContent);return o&&(e+="\n\nTento veřejný úryvek proto končí u nabídky Premium; další část bude dostupná pouze v iDNES Premium. Předplatné odemyká pokračování článku na iDNES.cz.\n\n"+o),e},extra:function(){return{packagePage:!0}},rewriteRoot:function(e){Me(e,["#promo-premium-button",".social",".share",".sharing",".discussion",".comments",".gallery",".photogallery",".video",".advert",".advertising",".reklama",".ad",".m-ad",".js-ad",".art-media",".art-tools",".art-tags",".tag-list",".paywall-foot","#recombee-premium","[id^='AdTrack']","[class*='recommend' i]","[class*='related' i]"].join(", ")),e.querySelectorAll("p, div, span, a").forEach(function(e){var r=t(e.textContent||"");/^(diskuse|sdílet|fotogalerie|premium|přihlásit se)$/i.test(r)&&e.remove()})}})):null}),registerHostAwareProfile(!0,function(e){if(!je(/(^|\.)folha\.uol\.com\.br$/)||!/\.shtml(?:$|[?#])/i.test(location.pathname||"")||!qc())return null;var r=qc();return r?(nt(r,e,{minBodyTextLength:900,minParagraphCount:3,paragraphMinLength:70,hardPaywallPattern:/(?:conte[uú]do exclusivo|exclusivo para assinantes|assine para continuar|continue lendo com|conte[uú]do para assinantes)/i,removalSelectors:He.concat(["[data-piano-offer]"]),structuredDataMode:"remove"}),Fe(e,r,{title:u(["main h1","article h1","h1"])||e.title,minTextLength:250,rewriteRoot:function(e){Me(e,[".c-more-options",".c-newsletter",".gallery-widget",".js-gallery-widget",".gallery-widget-share-container",".c-loading",".ads",".advertising","[class*='advertising']","[class*='newsletter']","[class*='share']","[data-ad-unit]"].join(", ")),e.querySelectorAll("p, div, span, li").forEach(function(e){var r=t(e.textContent||"");/^(carregando|compartilhe|voltar|ver novamente|copiar link|ícone (facebook|whatsapp|x|linkedin|de envelope|de link))$/i.test(r)&&e.remove()})}})):null}),registerHostAwareProfile(!0,function(e){if(!je(/(^|\.)blog\.naver\.com$/))return null;var t=function(){var e=document.querySelector("iframe#mainFrame, iframe[name='mainFrame']");if(!e)return null;try{var t=e.contentDocument||e.contentWindow&&e.contentWindow.document||null;if(Tc(t))return t;var r=e.getAttribute("srcdoc");return r?(new DOMParser).parseFromString(r,"text/html"):t}catch(e){return null}}()||document,r=Tc(t);return r?Ke(e,r,{title:_c(t,[".se-module.se-module-text.se-title-text",".se-title-text span",".se-title .se-title-text",".se-title","h3.se_textarea_title",".pcol1.itemSubjectBoldfont",".htitle","h1"])||e.title,byline:_c(t,[".nick",".blog_author",".writer",".se_publishDate + .nick"]),minTextLength:120,rewriteRoot:function(e){e.querySelectorAll(".post_btn, .post_footer_contents, .comment, .u_likeit_module, .wrap_tag, .post_tag, .se-module-oglink, .se-sticker, .se-map, script, style").forEach(function(e){e.remove()})}}):null}),e.FetchUtilExtract={extract:function(e){/(^|\.)mwananchi\.co\.tz$/i.test(location.hostname||"")&&(Me(document,["#paywall","[data-paywall]","[id*='paywall' i]","[class*='paywall' i]","[class*='subscribe' i]","[class*='premium' i]"].join(", ")),document.querySelectorAll("script[type='application/ld+json']").forEach(function(e){var r=t(e.textContent||"");/\b(?:NewsArticle|Article)\b/.test(r)&&e.remove()}),document.querySelectorAll("p, div, span, section, aside, button, a").forEach(function(e){var r=t(e.textContent||"");!r||r.length>420||/^(ndiyo, tafadhali!?|ingia|jisajili ili kuanza safari yako ya kufikia maudhui yetu yanayolipiwa|jiunge nasi leo usikose habari muhimu|pata habari na chambuzi huru, za kina na za uhakika kutoka mwananchi|loading\.\.\.)$/i.test(r)&&e.remove()}));var r,n,i,a,l,c,d,m,f=(r=document.querySelector('link[rel="canonical"]'),n=w(["NewsArticle","Article","BlogPosting"]),i=Go(),a=x(n&&n.author),l=S(n&&n.datePublished),c=S(n&&n.dateModified),d=i?Jo(i.startDate,i.endDate):null,{title:$("og:title","property")||document.title||u(["main h1","article h1","h1"]),byline:$("author","name")||$("article:author","property")||$("parsely-author","name")||a||p(),excerpt:$("description","name")||$("og:description","property"),siteName:$("og:site_name","property")||location.hostname,publishedTime:d||$("article:published_time","property")||$("publish-date","name")||$("datePublished","itemprop")||$("date","name")||$("dc.date","name")||$("DC.date","name")||$("parsely-pub-date","name")||l||c||h(),canonicalUrl:o(r&&r.getAttribute("href"))||location.href,language:s(),image:$("og:image","property")||null,video:$("og:video","property")||$("og:video:url","property")||null});if(!m){var y=Rl(f);y&&(m=y)}var b,v,k,A,C=null,q=null;if(m||(C=J(),q={iframeTitles:(b=Array.prototype.map.call(document.querySelectorAll("iframe"),function(e){return{title:t(e.getAttribute("title")||""),src:t(e.getAttribute("src")||"")}})).map(function(e){return e.title}).filter(Boolean),iframeSources:b.map(function(e){return e.src}).filter(Boolean),scriptSources:Array.prototype.map.call(document.querySelectorAll("script[src]"),function(e){return t(e.getAttribute("src")||"")}).filter(Boolean),textLength:J().length,htmlLength:(document.body&&document.body.innerHTML||"").length,bodyHtml:(document.body&&document.body.innerHTML||"").slice(0,8e3)}),!m&&(v=location.hostname.toLowerCase().replace(/^www\./,""),k=location.pathname,(A=_("q"))&&A.trim()&&!(/^google\.[a-z]{2,3}(?:\.[a-z]{2})?$/.test(v)?"/"!==k&&"/search"!==k:/^bing\.com$/.test(v)?"/search"!==k:/(^|\.)duckduckgo\.com$/.test(v)?"/"!==k&&"/html"!==k&&"/html/"!==k:"search.brave.com"!==v&&!/^ecosia\.org$/.test(v)||"/search"!==k))&&(m=si(f)),m&&"search"===m.contentType)return Lc(m,f,C,q,null);if(!m){var E=vr(f,C),j=E?br(f,C):null,P=t(document.body&&document.body.textContent||"").toLowerCase(),N=/ご利用のページが見つかりません|ページまたはファイルが存在しません|移動または削除されている|urlに誤りがある|urlには.*存在しません/i.test(P);E&&"not_found"===j&&N&&(m=E)}if(m||(m=function(e){var r=w(["Recipe"]);if(!r)return null;var n=g(r.recipeIngredient).map(function(e){return"string"==typeof e?t(e):S(e)}).filter(Boolean),o=[];if(function e(r){var n;r&&(Array.isArray(r)?r.forEach(e):"string"!=typeof r?"object"==typeof r&&(r.itemListElement?e(r.itemListElement):(n=S(r))&&o.push(n)):(n=t(r))&&o.push(n))}(r.recipeInstructions),n.length+o.length<3)return null;var i=[r.recipeYield?"Yield: "+S(r.recipeYield):null,r.prepTime?"Prep: "+t(r.prepTime):null,r.cookTime?"Cook: "+t(r.cookTime):null,r.totalTime?"Total: "+t(r.totalTime):null].filter(Boolean),a=[],l=x(r.name||r.headline)||e.title||document.title,s=S(r.description)||e.excerpt;l&&a.push("# "+l),i.length&&a.push(i.map(function(e){return"- "+e}).join("\n")),s&&a.push(s),n.length&&a.push("## Ingredients\n\n"+n.map(function(e){return"- "+e}).join("\n")),o.length&&a.push("## Instructions\n\n"+o.map(function(e,t){return t+1+". "+e}).join("\n"));var c=a.join("\n\n").trim();return{title:l,byline:x(r.author)||null,excerpt:s||null,siteName:e.siteName||location.hostname,publishedTime:r.datePublished||e.publishedTime||null,ingredients:n,instructions:o,html:"",markdown:c,textContent:t(c),readerMode:!1,contentType:"recipe"}}(f)),!m&&ne()&&(m=Ea(f,C)),!m){var z=t([location.pathname,document.title,f&&f.title,f&&f.siteName].join(" ")).toLowerCase();/\b(?:podcast|podcasts|episodes?)\b/.test(z)&&(m=Vr(f,null))}if(m||(m=fi(f)),m||(m=Ea(f,C)),m||(m=function(e,r,n){var o=or(e,r,n);if(!o)return null;var i=t(e.title||document.title);(!i||Le(i)||/^www\./i.test(i))&&(i=ir(o,e));var a=function(e,t){var r="anubis"===e?"This page is presenting an Anubis challenge before the original content is available.":"datadome"===e?"This page is presenting a DataDome CAPTCHA challenge before the original content is available.":"This page is presenting a Cloudflare or Turnstile challenge before the original content is available.";return t&&t.textLength<40&&t.htmlLength>200&&(r+=" The readable DOM content is effectively empty in this environment."),r}(o,n),l=["anubis"===o?"Challenge: Anubis":"datadome"===o?"Challenge: DataDome":"Challenge: Cloudflare/Turnstile"];return n&&n.textLength<40&&n.htmlLength>200&&l.push("Readable DOM: challenge page only"),T({title:i,description:a,highlights:[],details:l,siteName:e.siteName||location.hostname,contentType:"interstitial"})}(f,C,q)),!m){var M=vr(f,C),R=M?br(f,C):null;if(M&&"consent_wall"!==R)m=M;else if(M&&"consent_wall"===R){var B=Ec(e),H=t(B&&B.markdown||B&&B.textContent||"").toLowerCase();m=B&&H.length>500&&!gn(H)?B:M}}if(m||(m=oo(f)),m||(m=bi(f)),m||(m=Ci(f)),m||(m=_i(f)),m||(m=Zi(f)),m||(m=Ec(e)),m&&"article"===m.contentType&&m.readerMode&&Kn(m.textContent||m.markdown||"")&&!/(weather|forecast|ve[ðd]ur|vedur|meteo)/i.test((location.pathname||"")+" "+document.title)){var F=jo(f);t(F.markdown||"").length>=400&&(m=F)}if(function(e){return!e||t(e.markdown||e.textContent||"").length<300}(m)){var O=function(){var e,r=document.getElementById("__NEXT_DATA__");if(!r)return null;try{e=JSON.parse(r.textContent)}catch(e){return null}if(!e||!e.props)return null;var n=e.props.pageProps||e.props;if(!n)return null;for(var o=[],i=null,a=[n],l=[],s=0,c=0,u=ci(),d=!1,m=["content","body","markdown","html","description","text","article","post","doc","page","rawBody","compiledSource"],p=["title","name","heading"];s<a.length&&!d;){var h,f,g,y=a[s++];if("string"==typeof y){var b=y.trim();c+=y.length,b.length>80&&o.push(b)}else if(y&&"object"==typeof y){if(-1!==l.indexOf(y))continue;if(l.push(y),h=Object.keys(y),f=[],m.forEach(function(e){-1!==h.indexOf(e)&&f.push(e)}),h.forEach(function(e){-1===f.indexOf(e)&&f.push(e)}),!i)for(g=0;g<p.length;g++){var v=y[p[g]];if("string"==typeof v&&v.trim().length>2){i=v.trim();break}}f.forEach(function(e){d||(c+=e.length,a.push(y[e]))})}(c>=16e6||ci()-u>=100)&&(d=a.length>0)}var w,x,S,k=o.length?o.reduce(function(e,t){return e.length>=t.length?e:t}):"";if(k.length<200)return d?{title:i||document.title,byline:null,excerpt:null,siteName:location.hostname,publishedTime:null,html:null,textContent:"",markdown:null,contentType:"article",spaFallback:!0,spaDataGuard:!0}:null;if(/<[a-z][^>]*>/i.test(k)&&/<\/[a-z]+>/i.test(k)){x=k;var A=document.createElement("div");A.innerHTML=k,Re(A),S=t(A.textContent),w=null}else x=null,S=t(k),w=k;return{title:i||document.title,byline:null,excerpt:S?S.slice(0,280):null,siteName:location.hostname,publishedTime:null,html:x,textContent:S||k,markdown:w,contentType:"article",spaFallback:!0,spaDataGuard:d}}();O&&(m=O)}m=function(e,r){if(!e||"job"===e.contentType||"search"===e.contentType||"interstitial"===e.contentType||e.docsLike||e.legalProvision)return e;if(ki(r,vi()))return e;var n=Xi(0,r);if(!n)return e;e.contentType="property",n.title&&(!e.title||t(e.title).length<t(n.title).length)&&(e.title=n.title),n.excerpt&&!e.excerpt&&(e.excerpt=n.excerpt),n.price&&(e.price=n.price),n.location&&(e.location=n.location),null!==n.bedrooms&&void 0!==n.bedrooms&&(e.bedrooms=n.bedrooms),null!==n.bathrooms&&void 0!==n.bathrooms&&(e.bathrooms=n.bathrooms),null!==n.areaSqft&&void 0!==n.areaSqft&&(e.areaSqft=n.areaSqft);var o=[];e.price&&o.push("Price: "+e.price),e.location&&o.push("Location: "+e.location),null!==e.bedrooms&&void 0!==e.bedrooms&&o.push("Bedrooms: "+e.bedrooms),null!==e.bathrooms&&void 0!==e.bathrooms&&o.push("Bathrooms: "+e.bathrooms),null!==e.areaSqft&&void 0!==e.areaSqft&&o.push("Area: "+e.areaSqft+" sqft");var i=Ut(e.markdown||e.textContent||""),a=o.map(function(e){return"- "+e}).join("\n");return o.length&&-1===i.indexOf(o[0])&&(e.markdown=["# "+(e.title||r.title||document.title),a,i].filter(Boolean).join("\n\n"),e.textContent=t(e.markdown)),e}(m,f),m=function(e,r){if(!e||"search"===e.contentType||"interstitial"===e.contentType||e.docsLike||e.legalProvision)return e;var n=Fi(r);if(!n)return e;var o=Ii(n),i=Ut(e.markdown||e.textContent||"").trim(),a=t(i),l=[],s=e.title||r.title||document.title;return s&&!Et(i,s)&&l.push("# "+s),o.length&&o.some(function(e){return-1===a.indexOf(t(e))})&&l.push(o.map(function(e){return"- "+e}).join("\n")),l.push(i),(n.tables||[]).forEach(function(e){-1===t(l.join("\n\n")).indexOf(t(e))&&l.push(e)}),e.contentType=function(e,t){return t&&t.event?"sports_event":t&&t.typed?"sports":e&&e.contentType||"article"}(e,n),(n.detail||n.structured)&&(e.sportsDetailEvidence={kind:n.structured?"sports_schema":"sports_detail",urlMatch:n.structured?Oi([n.structured.homeName,n.structured.awayName]):Oi(n.detail.identity.teams)}),e.markdown=Ut(l.filter(Boolean).join("\n\n")),e.textContent=t(e.markdown),o[0]&&!e.excerpt&&(e.excerpt=o[0]),e}(m,f),m=function(e,r){if(!e||"job"===e.contentType||"property"===e.contentType||"list"===e.contentType||"search"===e.contentType||"interstitial"===e.contentType||e.docsLike||e.legalProvision)return e;var n=Io();if(!n)return e;e.contentType="product",n.title&&(!e.title||t(e.title).length<n.title.length)&&(e.title=n.title),n.excerpt&&!e.excerpt&&(e.excerpt=n.excerpt),n.price&&(e.price=n.price),n.availability&&(e.availability=Ro(n.availability)),n.sku&&(e.sku=n.sku);var o=[];if(e.price&&o.push("Price: "+e.price),e.availability&&o.push("Availability: "+e.availability),e.sku&&o.push("SKU: "+e.sku),o.length&&-1===t(e.markdown||e.textContent||"").indexOf(o[0])){var i=e.title||r&&r.title||document.title,a=t(e.markdown||e.textContent||"");e.markdown=["# "+i,o.map(function(e){return"- "+e}).join("\n"),a].filter(Boolean).join("\n\n"),e.textContent=t(e.markdown)}return e}(m,f);var I=Yr(m=function(e){if(!e||"social"!==e.contentType)return e;var t=Yi(e.socialKind);return-1===["post","thread","feed","profile"].indexOf(t)?(e.contentType="article",ea(e),e):(e.socialKind=t,e.platform=Yi(e.platform),e.handle=Yi(e.handle),e.replyCount=Qi(e.replyCount,!1),e.community=Yi(e.community),e.score=Qi(e.score,!0),e)}(m))||co(f,m),D=Fo(f);if(D&&m&&"social"!==m.contentType&&"product"!==m.contentType&&"property"!==m.contentType&&"hotel"!==m.contentType&&!m.hostAware&&!m.docsLike){var U=t(m.markdown||m.textContent||"").toLowerCase(),Z=t([document.title,location.pathname,location.search,f&&f.siteName].join(" ")).toLowerCase(),W=Sr()||/\b(?:shop|shopping|store|marketplace|catalog|products?|furniture|search results?)\b|\/p\/|\/sb\d*\//.test(Z);I&&!W?D=null:("list"!==m.contentType&&(W||D.itemCount>=4||gn(U))||"list"===m.contentType&&Sr()&&D.itemCount>=4)&&(m=D)}var G=Uo(f);!G||!m||"article"!==m.contentType&&"list"!==m.contentType||m.hostAware||m.docsLike||Ar(m)||(m=G);var K=function(e){var r=Vo();if(r.length>=3){var n=jo(e,{portalRoot:!0});return n.excerpt=r[0].text,n}if(!ei())return null;var o=ze(document.querySelector("main, [role='main'], article, #content")||document.body);Re(o),Co(o),Me(o,"form, script, style, noscript, [class*='modal' i], [class*='newsletter' i]");var i=Ut(tr(o.innerHTML));return t(i).length<300?null:L(e,{title:e.title||document.title,excerpt:e.excerpt||u(["main h1","h1"]),html:o.innerHTML,textContent:i,markdown:i})}(f);!K||!m||m.hostAware||m.docsLike||"event"===m.contentType||Ar(m)||(m=K);var V=Vr(f,m=mi(m));V&&(m=V);var X=di(0,m);I=X||Yr(m)||co(f,m);if(m&&!m.hostAware&&je(/(^|\.)gitlab\.com$/)&&/data-testid=["']blob-viewer-content["']/.test(m.html||"")&&(m.hostAware=!0),"article"===m.contentType&&!m.hostAware&&!m.docsLike&&!Ar(m)&&Y(m.textContent||m.markdown||"")){var Q=jo(f);t(Q.markdown||"").length>=400&&(m=Q)}if("article"!==m.contentType||m.docsLike||m.legalProvision||!so(null,m.textContent||m.markdown||"")||(m=io(m,{strongList:!0})),"list"===m.contentType||"social"===m.contentType||"medical"===m.contentType||"product"===m.contentType||"recipe"===m.contentType||"property"===m.contentType||"hotel"===m.contentType||"event"===m.contentType||Di(m)||m.hostAware||m.docsLike||m.legalProvision||!Kr(m)||(m=jo(f)),"list"===m.contentType||"social"===m.contentType||"medical"===m.contentType||"product"===m.contentType||"recipe"===m.contentType||"property"===m.contentType||"hotel"===m.contentType||"event"===m.contentType||Di(m)||m.hostAware||m.docsLike||m.legalProvision||!function(e){if(!document.body)return!1;if(di(0,e))return!1;if(Ar(e))return!1;function r(e){var r=e.querySelectorAll("a").length,n=e.querySelectorAll("p").length,o=e.querySelectorAll("tr, li, article, section").length,i=e.querySelectorAll("li").length,a=e.querySelectorAll("table, ul, ol, .itemlist, .items, .stories, .posts, .news, .headlines, .feed, .threads, .topic-list, .forumlist, .discussionList").length,l=e.querySelectorAll("h1, h2, h3, h4").length,s=e.querySelectorAll("article, section, [class*='card'], [class*='item'], [class*='story'], [class*='post'], [class*='news'], [class*='headline'], [class*='feed'], [class*='thread'], [class*='topic-list'], .structItem, .discussionListItem").length,c=Array.prototype.filter.call(e.querySelectorAll("a[href]"),function(e){var r=t(e.textContent||e.getAttribute("aria-label")||"");return r.length>=wr(r)&&r.length<=220&&!qr(r,e.getAttribute("href")||"")}).length,u=t(e.textContent),d=t(document.title).toLowerCase(),m=(location.pathname||"").toLowerCase();return{links:r,paragraphs:n,rows:o,listItems:i,listish:a,headings:l,cards:s,headlineLinks:c,text:u,title:d,homepage:"/"===m||""===m||/^\/(index|default|home)\b/i.test(m)||/^\/\d+(,\d+)*\.html?$/i.test(m)}}function n(e){return!!(e.homepage&&e.headlineLinks>=20&&e.cards>=15&&(e.headings>=8||e.cards>=40))||e.headlineLinks>=30&&e.cards>=20&&(e.headings>=10||e.cards>=40)||!!(e.homepage&&e.headlineLinks>=16&&e.headings>=8&&e.links>=80&&e.text.length<=24e4)||!!(e.headlineLinks>=24&&e.headings>=10&&e.links>=120&&(e.homepage||e.rows>=20||e.listish>=2)&&e.text.length<=24e4)||(e.links>=8&&e.rows>=6||e.listish>0&&e.links>=6)&&e.paragraphs<=8&&e.text.length<=14e3||e.rows>=6&&e.headlineLinks>=6&&e.headings>=6&&e.text.length<=36e3||e.homepage&&e.headlineLinks>=4&&e.headings>=3&&e.text.length<=36e3&&(e.listItems>=4||e.cards>=4||/top stories|breaking news|latest news|headlines|ultime notizie|in evidenza|primo piano/.test(e.title+" "+e.text.slice(0,400)))||e.cards>=4&&e.headlineLinks>=4&&e.headings>=3&&e.text.length<=36e3}var o=document.createElement("div");if(o.innerHTML=document.body.innerHTML,n(r(o)))return!0;var i=document.createElement("div");return i.innerHTML=e&&e.html?e.html:document.body.innerHTML,n(r(i))}(m)||!xr()&&Ar(m)||I||(m=jo(f)),"article"!==m.contentType&&"medical"!==m.contentType||m.docsLike||m.legalProvision||I||!function(e){if(!e||"article"!==e.contentType||Ar(e))return!1;if(!Sr())return!1;var r=document.createElement("div");r.innerHTML=e.html||"";var n=t(r.textContent||e.textContent||e.markdown||""),o=r.querySelectorAll("p").length,i=Array.prototype.filter.call(r.querySelectorAll("p"),function(e){return t(e.textContent||"").length>=180}).length,a=t(e.byline||""),l=t(e.publishedTime||""),s=document.querySelector("main h1, [role='main'] h1, h1"),c=t([document.title,s&&s.textContent].join(" ")).toLowerCase();return!(l||a||gn(n.toLowerCase())||!/(search|results?|shop|browse|categor|catalog|keyword|wholesale|products?|collections?|marketplace)/.test(c)||i>=4&&n.length>=1200||!(n.length<2400||o<=4))}(m)||(m=io(m,{strongList:!0})),"list"===m.contentType&&_("q")&&ro(f)){var ee=no(f);ee&&(m=ee)}return Lc(m,f,C,q,X)}}}(window);
|
|
1
|
+
!function(e){function t(e){return"string"!=typeof e&&(e=null==e?"":String(e)),e.replace(/\s+/g," ").trim()}function r(e){try{return decodeURIComponent(e)}catch(t){return e}}function n(e){var t=String(e||"").replace(/^#/,""),n=r(t);return t.indexOf("%")>=0&&n===t?"":n}function o(e){return t(e&&e.textContent).length}function i(e){if(!e)return null;try{return new URL(e,document.baseURI).href}catch(t){return e}}function a(e){var t=i(e);if(!t)return null;try{var r=new URL(t);return"http:"!==r.protocol&&"https:"!==r.protocol||(r.username||r.password)?null:r.href.replace(/\(/g,"%28").replace(/\)/g,"%29")}catch(e){return null}}function l(e){var t=i(e);if(!t)return null;try{var r=new URL(t);return"http:"!==r.protocol&&"https:"!==r.protocol?null:(r.username="",r.password="",r.href.replace(/\(/g,"%28").replace(/\)/g,"%29"))}catch(e){return null}}function s(e){return String(e||"").replace(/(https?:[\\/]{2})[^\\/\s?#@]+@/gi,"$1")}function c(e){return"string"==typeof e?s(e):Array.isArray(e)?e.map(c):e&&"object"==typeof e?Object.keys(e).reduce(function(t,r){return t[r]=c(e[r]),t},{}):e}function u(){for(var e=document.querySelectorAll('link[rel="canonical"]'),t=0;t<e.length;t+=1){var r=a(e[t].getAttribute("href"));if(r)return r}return null}function d(e){return document.body&&document.body.innerText||e||""}function m(e){return t(String(e||"").split("/").pop().replace(/[_-]+/g," "))}function p(e){var r=t(e||"").toLowerCase();if(!r)return null;var n=r.split(",")[0].replace(/_/g,"-").match(/^[a-z]{2,3}(?=-|$)/);if(!n)return null;var o=n[0];return 2===(o={eng:"en",spa:"es",hin:"hi",fra:"fr",fre:"fr",deu:"de",ger:"de",por:"pt",zho:"zh",chi:"zh"}[o]||o).length?o:null}function f(){return p(document.documentElement&&document.documentElement.getAttribute("lang"))||p(Me("Content-Language","http-equiv"))||p(Me("og:locale","property"))||function(){var e=t(document.body&&document.body.innerText||"");if(e.length<80)return null;for(var r=e.replace(/\s/g,""),n=[["hi",/[\u0900-\u097F]/g],["ar",/[\u0600-\u06FF]/g],["zh",/[\u4E00-\u9FFF]/g],["ja",/[\u3040-\u30FF]/g],["ko",/[\uAC00-\uD7AF]/g],["el",/[\u0370-\u03FF]/g],["ru",/[\u0400-\u04FF]/g]],o=0;o<n.length;o++){var i=r.match(n[o][1])||[];if(i.length>=20&&i.length/r.length>=.25)return n[o][0]}var a=e.toLowerCase().match(/[a-zÀ-ž]+/g)||[];if(a.length<30)return null;var l={en:/^(?:the|and|that|for|with|this|from|are|was|were|have|has|not|but|their|about|more|will|would|which|when)$/,es:/^(?:el|la|los|las|un|una|del|de|al|a|en|y|por|con|para|que|más|son|sus|su|se|pero|como|esta|todo|nos|hay|fue|muy|han|sin|sobre|tiene)$/,fr:/^(?:les|des|une|est|dans|pour|sur|par|pas|qui|que|avec|son|sont|plus|ses|mais|cette|ont|tout|nous|vous|aux|leur)$/,de:/^(?:und|die|der|das|ist|von|zu|mit|den|ein|eine|für|auf|als|auch|nicht|sich|werden|nach|bei|aus|wie|oder|noch|nur|dem|des|über)$/,pt:/^(?:dos|das|uma|por|com|para|que|mais|são|mas|como|esta|seu|sua|tem|nos|foi|pode|muito|seus|sobre|também)$/,it:/^(?:gli|una|del|per|con|che|sono|più|dalla|della|delle|dei|anche|come|questa|tutto|suo|sua|suoi|nelle|alla)$/,nl:/^(?:een|het|van|zijn|met|dat|voor|maar|niet|ook|als|nog|wel|hun|uit|bij|kan|zou|meer|alle|dit|wordt)$/},s={};Object.keys(l).forEach(function(e){s[e]=0}),a.forEach(function(e){Object.keys(l).forEach(function(t){l[t].test(e)&&(s[t]+=1)})});var c=Object.keys(s).sort(function(e,t){return s[t]-s[e]})[0],u=Object.keys(s).sort(function(e,t){return s[t]-s[e]})[1];return c&&s[c]>=4&&s[c]>=1.8*(s[u]||0)?c:null}()}function h(e,r){var n=t(g(["meta[name='generator']"],"content")||""),o=t(g(["meta[name='application-name']","meta[property='og:site_name']"],"content")||""),i=(Array.isArray(r)?r:r?[r]:[]).map(function(t){return"function"==typeof t?t(e,n,o):g([t])});return 0===i.length&&(i=[e&&e.title,e&&e.siteName,n,o,document.title]),{generator:n,appName:o,signature:t(i.join(" "))}}function g(e,r){for(var n=0;n<e.length;n+=1){var o=document.querySelector(e[n]);if(o){var i=r?o.getAttribute(r):o.textContent;if(i=t(i))return i}}return null}function y(){var e=[];return["article[itemtype*='NewsArticle']","article[itemtype*='Article']","article","main article","main"].forEach(function(t){document.querySelectorAll(t).forEach(function(t){-1===e.indexOf(t)&&o(t)>=80&&e.push(t)})}),e.length?e:[document]}function b(e,r,n){for(var o=0;o<e.length;o+=1)for(var i=0;i<r.length;i+=1)for(var a=e[o].querySelectorAll(r[i]),l=0;l<a.length;l+=1){var s=a[l];if(!Xt(s)&&!s.closest("nav, footer, aside")){var c=n?s.getAttribute(n):s.textContent;if(c=t(c))return c}}return null}function v(){return t(b(y(),["[rel='author']","[itemprop='author'] [itemprop='name']","[itemprop='author']","[class*='byline' i]","[class*='author' i]","[class*='autor' i]","[class*='auteur' i]","[class*='verfasser' i]","[class*='redakteur' i]","[class*='penulis' i]","[class*='tac-gia' i]","[class*='tacgia' i]","[class*='writer' i]","[class*='reporter' i]","[data-testid*='author' i]"])||"").replace(/^(?:by|por|par|von|di|da|door|av|af|de|autor(?:a)?|auteur|redactie|redacción|redacao|redação|penulis|oleh|tác giả|tac gia|بقلم|כתבת?|מאת)\s*:?\s+/i,"")||null}function w(){var e=function(){var e=location.pathname||"/";if("/"!==e&&!/^\/index\.(?:html?|php|aspx?)$/i.test(e))return y();var t=[];return document.querySelectorAll("[itemprop='articleBody'], article[role='main']").forEach(function(e){var r=e.closest("article, [role='main'], main")||e;-1===t.indexOf(r)&&o(r)>=80&&t.push(r)}),t}();return b(e,["time[datetime]"],"datetime")||b(e,["[itemprop='datePublished']","[itemprop='dateModified']","[class*='pubdate' i]","[class*='published-date' i]","[class*='published_at' i]","[class*='published-at' i]","[class*='publication-date' i]","[class*='fecha' i]","[class*='data-publicacao' i]","[class*='data-publicação' i]","[class*='datum' i]","[class*='tarih' i]","[class*='date' i]","[class*='time' i]","[class*='publish' i]","[class*='posted' i]","[data-testid*='date' i]","time"])}function A(e,r){var n={},o=[];return e.forEach(function(e){document.querySelectorAll(e).forEach(function(e){if(!(r&&o.length>=r)){var i=t(e.textContent);i&&!n[i]&&(n[i]=!0,o.push(i))}})}),o}function S(e){return e?Array.isArray(e)?e:[e]:[]}function x(e){if(e&&"object"==typeof e&&!Array.isArray(e)&&e["@id"])return"id:"+E(e["@id"]);try{return typeof e+":"+JSON.stringify(e)}catch(e){return null}}function k(e,t){return Object.keys(t).forEach(function(r){var n=t[r];if("@type"===r&&e[r])e[r]=function(e,t){var r=[];return S(e).concat(S(t)).forEach(function(e){-1===r.indexOf(e)&&r.push(e)}),1===r.length?r[0]:r}(e[r],n);else if(Object.prototype.hasOwnProperty.call(e,r)&&(Array.isArray(n)||Array.isArray(e[r])))e[r]=function(e,t){var r=e.slice(),n=Object.create(null);return r.forEach(function(e,t){var r=x(e);null!=r&&null==n[r]&&(n[r]=t)}),t.forEach(function(e){var t=x(e),o=null==t?null:n[t];if(null!=o){var i=r[o];i&&e&&"object"==typeof i&&"object"==typeof e&&!Array.isArray(i)&&!Array.isArray(e)&&i["@id"]&&e["@id"]&&(r[o]=k(i,e))}else r.push(e)}),r}(S(e[r]),S(n));else if(n&&"object"==typeof n&&!Array.isArray(n)){var o=e[r]&&"object"==typeof e[r]&&!Array.isArray(e[r])?e[r]:Object.create(null),i=o["@id"]&&n["@id"]&&o["@id"]!==n["@id"];e[r]=k(i?Object.create(null):o,n)}else e[r]=Array.isArray(n)?n.slice():n}),e}function C(e){return null!=e&&("string"==typeof e?!!t(e):Array.isArray(e)?e.some(C):"object"!=typeof e||Object.keys(e).some(function(t){return"@context"!==t&&"@id"!==t&&"@type"!==t&&C(e[t])}))}function q(e){return C(e)}function E(e){if("string"!=typeof e||!t(e))return e;try{var r=new URL(location.href),n=new URL(e,r);if(n.origin===r.origin&&n.pathname===r.pathname&&n.search===r.search)return n.href}catch(e){}return e}function T(e){return e&&e["@id"]}function _(e){return S(e&&e["@type"]).map(function(e){return String(e)})}function L(e,t){e&&(Array.isArray(e)?e.forEach(function(e){L(e,t)}):"object"==typeof e&&(e["@graph"]&&L(e["@graph"],t),t.push(e)))}function j(e){if("string"!=typeof e||!t(e))return null;try{var r=new URL(e,document.baseURI);return r.origin+r.pathname+r.search}catch(e){return null}}function P(e){var t=["Article","NewsArticle","BlogPosting","ReportageNewsArticle","AnalysisNewsArticle","OpinionNewsArticle","LiveBlogPosting","Product","Book","Recipe","Event","MusicEvent","SportsEvent","TheaterEvent","Festival","JobPosting","MedicalWebPage","Dataset","DataCatalog","VideoObject","Clip","Movie","TVEpisode","TVSeries","TVSeason","DiscussionForumPosting","SocialMediaPosting"];return _(e).some(function(e){return-1!==t.indexOf(e)})}function $(e,t,r){if(!_(e).some(function(e){return"WebPage"===e||"ProfilePage"===e}))return!1;var n=T(e)||e.url;return n?-1!==t.indexOf(j(n)):function(e,t){var r=S(e.mainEntity).map(function(e){return E("string"==typeof e?e:T(e))}).filter(Boolean);return!!(t||[]).some(function(e){if(!P(e))return!1;var t=E(T(e));return t&&-1!==r.indexOf(t)})||!(t||[]).some(function(t){if(t===e||!P(t))return!1;var n=E(T(t));return!n||-1===r.indexOf(n)})}(e,r)}function N(e){var t=Object.create(null),r=[],n=[location.href,u()].map(j).filter(Boolean);e.forEach(function(o){$(o,n,e)&&S(o.mainEntity).forEach(function(e){var n="string"==typeof e?e:e&&e["@id"];n&&(t[E(n)]=!0),e&&"object"==typeof e&&r.push(e)})});var o=Object.create(null);e.concat(r).forEach(function(e){var r=E(T(e));r&&t[r]&&(o[r]=k(o[r]||Object.create(null),e))});var i=Object.create(null),a=[];function l(e){if(e&&"object"==typeof e){var r=E(T(e));if(r&&t[r]){if(e=o[r],i[r]||!q(e))return;i[r]=!0}-1===a.indexOf(e)&&a.push(e)}}return e.forEach(function(t){$(t,n,e)&&S(t.mainEntity).forEach(function(e){var t="string"==typeof e?e:e&&e["@id"];l(t?o[E(t)]:e)})}),(a=a.filter(q)).length||e.forEach(function(e){l(e)}),a}function R(){var e=[];return document.querySelectorAll('script[type="application/ld+json"]').forEach(function(r){var n=r.textContent||r.innerText||"";if(t(n))try{L(JSON.parse(n),e)}catch(e){}}),N(e)}function M(e){var t=S(e);return R().find(function(e){return _(e).some(function(e){return-1!==t.indexOf(e)})})||null}function B(e){return e?"string"==typeof e?t(e):Array.isArray(e)?B(e[0]):t(e.name||e.headline||e.alternateName||""):null}function O(e){return e?"string"==typeof e?t(e):Array.isArray(e)?t(e.map(function(e){return O(e)||""}).join(" ")):t(e.text||e.description||e.name||""):null}function z(e){var r="string"==typeof e?e:O(e);if(!t(r))return null;if(/<[a-z][\s\S]*>/i.test(r)){var n=document.createElement("div");return n.innerHTML=r,mn(Jn(n.innerHTML))}return mn(r)}function I(e){if(!e)return null;if("string"==typeof e)return t(e);if(Array.isArray(e))return t(e.map(I).filter(Boolean).join("; "));if("object"!=typeof e)return null;var r=e.address||e;return"string"==typeof r?t(r):t([r.streetAddress,r.addressLocality,r.addressRegion,r.postalCode,r.addressCountry&&O(r.addressCountry)].filter(Boolean).join(", "))||O(e)}function H(e){var t=e&&Array.prototype.some.call(e.classList||[],function(e){return/^(?:card|story|teaser|result|news)[-_](?:cta|action)(?:[-_].*)?$/i.test(e)});return!(!(e&&e.matches&&e.matches("a[href]")&&Array.prototype.some.call(e.classList,function(e){return/^(?:card|story|teaser|result|news)[-_](?:cta|link|action)(?:[-_].*)?$/i.test(e)}))||U(e,!t))}function F(e){if(!e||!e.matches||!e.matches("a[href]")||Ua(e)||e.closest("nav, header, footer, aside, menu, form, [role='navigation'], [role='menu'], [role='menubar'], [role='toolbar']"))return null;var r=a(e.getAttribute("href"));if(!r)return null;for(var n=e.parentElement;n&&!n.matches("main, body, html, article, li, tr, .post, .entry, .product, .product-tile, [itemtype$='/Product']");){if(Ua(n)||be(n))return null;var o=Array.from(n.querySelectorAll("a[href]")).filter(function(e){return!Ua(e)});if(o.length>2)return null;if(2===o.length&&o.every(function(e){return a(e.getAttribute("href"))===r})){var i=o.find(function(e){return Array.from(e.querySelectorAll("img[src]")).some(function(e){return!Ua(e)&&a(e.getAttribute("src"))})}),l=o.find(function(e){var n=t(e.textContent);return e!==i&&!e.querySelector("img")&&n.length>=yo(n)&&!ee(n)&&!xo(n,r)}),s=Array.from(n.children).filter(function(e){return!e.matches("script, style, template")&&!Ua(e)});if(i&&l&&2===s.length&&s.every(function(e){return e.contains(i)!==e.contains(l)})&&!Array.from(n.childNodes).some(function(e){return 3===e.nodeType&&t(e.textContent)}))return n}n=n.parentElement}return null}function D(e,r,n){function o(e,t){if(!n)return J(e,t);var r=n.get(e)||{},o=!1===t?"detached":"bounded";return Object.prototype.hasOwnProperty.call(r,o)||(r[o]=J(e,t),n.set(e,r)),r[o]}if(!e||!r||!r.contains(e)||e===r)return null;var i=e.closest("section");if(i&&r.contains(i)&&o(i,!1)===e)return null;var a=r.parentElement&&le(r);if(a&&r===e){var l=e.querySelector("h1, h2, h3, h4"),s=t(l&&l.textContent);if(s.length>=yo(s)&&s.length<=220)return null}var c=r&&r.contains(e)&&!a&&o(r,!1);if(c&&c!==e)return r;for(var u=e&&e.parentElement;u&&u!==document.body&&u!==document.documentElement;){if(le(u)){var d=o(u);if(d&&d!==e)return u;if(d===e)return null}u=u.parentElement}return null}function U(e,r){var n=e.querySelector("[class$='-name' i]"),o=e.querySelector("[class$='-desc' i]");if(n&&o&&!Ua(n)&&!Ua(o)&&t(n.textContent)&&t(o.textContent))return!0;var i="article, time, [datetime], [class*='title' i], [class*='summary' i], [class*='description' i], [class*='excerpt' i], [class*='date' i], [class*='duration' i], [class*='count' i], [class*='view' i]";function l(e){return!(Ua(e)||e.matches("article")&&!t(e.textContent))}!1!==r&&(i+=", picture, video, img[alt]:not([alt=''])");var s=e.querySelector(i);if(s&&l(s))return!0;if(Array.prototype.some.call(e.querySelectorAll(i),l))return!0;var c=t(e.textContent);if(!1!==r&&c.length>=yo(c)&&!ee(c)&&Array.prototype.some.call(e.querySelectorAll("img[src]"),function(e){return a(e.getAttribute("src"))&&!Vt(e)}))return!0;var u=e.querySelector("h1, h2, h3, h4");return!!(u&&t(u.textContent)&&Array.prototype.some.call(e.querySelectorAll("p"),function(e){return!!t(e.textContent)}))}function W(e){if(!e||!e.matches||!e.matches("a[href]")||!a(e.getAttribute("href"))||Vt(e)||!U(e))return!1;var r="nav, header, footer, aside, [role='navigation'], [role='menu'], [role='menubar'], [role='complementary'], [hidden], [inert], [aria-hidden='true']";if(e.closest(r))return!1;var n=se(e.parentElement),o=e.parentElement;if(!o||1!==o.querySelectorAll("a[href]").length||t(o.textContent)!==t(e.textContent))return!1;for(var i=a(e.getAttribute("href"));o&&o.parentElement&&!o.matches("main, body, html");){if(Array.prototype.some.call(o.parentElement.children,function(n){var o=n.querySelectorAll("a[href]"),l=1===o.length&&o[0];if(!l||l===e)return!1;var s=a(l.getAttribute("href"));return!(!s||s===i||l.closest(r)||Vt(l)||t(n.textContent)!==t(l.textContent)||!U(l))}))return!0;if(o===n)break;o=o.parentElement}return!1}function G(e,t){return!!(e&&t&&e.matches("a[href]")&&U(e))&&(e.parentElement!==t?W(e):Array.prototype.filter.call(t.children,function(e){return e.matches&&e.matches("a[href]")&&a(e.getAttribute("href"))&&U(e)}).length>=2||W(e))}function Z(e){function r(e){if(!e||!e.matches(".row:has(> [class*='col-'])")||Vt(e)||e.closest("nav, header, footer, aside, menu, form, [role='navigation'], [role='menu'], [role='menubar'], [role='toolbar']"))return null;var r=Array.from(e.children).filter(function(e){return!Vt(e)});if(2!==r.length||!r.every(function(e){return e.matches("[class*='col-']")}))return null;var n=Array.from(e.querySelectorAll("h1, h2, h3, h4")).filter(function(e){return!Vt(e)&&t(e.textContent)&&(e.closest("a[href]")||e.querySelector("a[href]"))});if(1!==n.length)return null;var o=n[0].closest("a[href]")||n[0].querySelector("a[href]"),i=a(o.getAttribute("href"));if(!i)return null;var l=r.find(function(e){return e.contains(o)});if(!Array.from(e.querySelectorAll("a[href]")).filter(function(e){return!Vt(e)}).every(function(e){var t=a(e.getAttribute("href")),r=e.closest("p, figcaption, dd");return t&&(t===i||r&&l&&l.contains(r))}))return null;var s=e.querySelectorAll("a[href] img[src]");return Array.from(s).some(function(e){return!Vt(e)&&a(e.getAttribute("src"))&&a(e.closest("a[href]").getAttribute("href"))===i})?i:null}if(!e||!e.parentElement)return!1;var n=r(e);return!!n&&Array.from(e.parentElement.children).some(function(t){if(t===e)return!1;var o=r(t);return o&&o!==n})}function K(e){var t="tr, article, li, .post, .entry, .product, .product-tile, [itemtype$='/Product'], [class*='card' i], [class*='story' i], [class*='teaser' i], [class*='item' i], [class*='result' i], [class*='news' i], [class*='headline' i]";return!1===e?t:t+", a[href]:has([class$='-name' i]:not(:empty)):has([class$='-desc' i]:not(:empty)), a[href]:has(h1, h2, h3, h4):has(p), a[href]:has([class$='-name' i]):has(time, [datetime], [class*='date' i]), a[href]:has([class*='title' i]):has([class*='description' i]), .row:has(> [class*='col-'])"}function V(e){if(H(e))return!0;var t=e&&e.closest&&e.closest("a[href]");return!(!t||t===e||e.querySelector("a[href]"))||(!(!e||!e.matches||e.matches("a[href], article, li, tr, .post, .entry, .product, .product-tile, [itemtype$='/Product']")||e.querySelector("a[href]"))||(e&&e.getAttribute&&e.getAttribute("class")||"").split(/\s+/).some(function(e){return/^(?:card|story|teaser|result|news|headline)[-_]+(?:body|content|meta(?:data)?|header|footer|details?)(?:[-_].*)?$/i.test(e)||/^(?:Card|Story|Teaser|Result|News|Headline)(?:Body|Content|Meta(?:data)?|Header|Footer|Details?)(?:[-_A-Z].*)?$/.test(e)||/styles__(?:(?:Card|Story|Teaser|Result|News|Headline)(?:Body|Content|Meta(?:data)?|Header|Footer|Details?|Title|Headline|Heading|Image|Media|Thumbnail)|(?:Title|Headline|Heading|Meta(?:data)?|Image|Media|Thumbnail|Kicker|Eyebrow))(?:[-_A-Z].*)?$/.test(e)||/^item[-_]+meta(?:data)?(?:[-_].*)?$/i.test(e)}))}function J(e,r){if(!e||!1!==r&&(!e.parentElement||!le(e))||!1===r&&(ae(e)||e.closest("nav, header, footer, aside, menu, [role='navigation'], [role='menu']")))return null;var n="h1 a[href], h2 a[href], h3 a[href], h4 a[href], a[href] h1, a[href] h2, a[href] h3, a[href] h4",o=e.querySelector(n),i=o&&(o.matches("a[href]")?o:o.closest("a[href]"));i&&i.matches("[rel~='author'], [itemprop~='author']")&&(o=Array.prototype.find.call(e.querySelectorAll(n),function(t){var r=t.matches("a[href]")?t:t.closest("a[href]");return!r.matches("[rel~='author'], [itemprop~='author']")||!Array.prototype.some.call(e.querySelectorAll("a[href]"),function(t){return t!==r&&!t.matches("[rel~='author'], [itemprop~='author']")&&a(t.getAttribute("href"))&&ue(t)===e})}));var l=o&&(o.matches("a[href]")?o:o.closest("a[href]")),s=t(o&&o.textContent);if(!l||!a(l.getAttribute("href"))||s.length<yo(s)||s.length>220)return null;return e.querySelector("picture, video, img[alt]:not([alt='']), p, time, [datetime], [class*='summary' i], [class*='description' i], [class*='excerpt' i], [class*='date' i], [class*='duration' i], [class*='count' i], [class*='view' i], [class*='pages' i]")||Z(e)?l:null}function X(e){if(!(e&&e.matches&&e.matches("figure")&&e.querySelector("figcaption")))return null;var t=e.querySelector("a[href] h1, a[href] h2, a[href] h3, a[href] h4"),r=t&&t.closest("a[href]");return r&&e.contains(r)&&a(r.getAttribute("href"))?r:null}function Y(e){return!(!e||!e.children)&&Array.prototype.filter.call(e.children,function(e){return 1===(e.matches&&e.matches("figure")?[e]:Array.prototype.slice.call(e.querySelectorAll?e.querySelectorAll("figure"):[])).filter(function(e){return!!X(e)}).length}).length>=2}function Q(e,t){for(var r=e,n=[],o=null;r&&r!==document.body;){if(t&&t.has(r)){o=t.get(r);break}if(t&&n.push(r),Y(r)){o=r;break}r=r.parentElement}return t&&n.forEach(function(e){t.set(e,o)}),o}function ee(e){return/^(comments?|discuss|hide|more|abonneren|subscribe|newsletter|login|log in|sign in|register|create account|maak een account|instellingen|settings|account|last post|first unread|go to last post|mark read|mark forum read|watch forum|new thread|post new thread|post reply|quick reply|forum rules|forum actions|forum tools)$/i.test(t(e||""))}function te(e){return t(e||"").split(/\s+(?:[-–—|·])\s+/).map(function(e){return t(e).replace(/^[([]+\s*/,"").replace(/\s*[)\]]+$/,"")}).filter(Boolean)}function re(e){var r=t(e||"").match(/^(?:last post|first unread)(.*)$/i);if(!r)return!1;var n=t(r[1]).replace(/^\s*:\s*/,"");if(!n)return!0;if(/^by\s+\S+$/i.test(n))return!0;if(/^(?:at|on)\s+(?:today|yesterday|\d{4}-\d{1,2}-\d{1,2}|\d{1,2}:\d{2}(?:\s*[ap]m)?)$/i.test(n))return!0;var o="(?:today|yesterday|\\d+(?:\\.\\d+)?\\s*(?:s|m|h|d|w|seconds?|minutes?|hours?|days?|weeks?|months?|years?)\\s+ago|\\d{1,2}:\\d{2}(?:\\s*[ap]m)?)";return new RegExp("^(?:"+o+"(?:\\s+by\\s+\\S+)?|by\\s+\\S+\\s+(?:at\\s+)?"+o+")$","i").test(n)}function ne(e){var r=te(e);return r.length>0&&r.every(function(e){return function(e){return/^\d+(?:\.\d+)?\s*(?:comments?|repl(?:y|ies)|posts?|points?|likes?|views?)$/i.test(t(e||""))}(e)||re(e)})}function oe(e){var r=t(e||""),n=/\s+(?:[-–—|·])\s+/,o=r.split(n),i=o.filter(function(e){var t=te(e).join(" ");return!ee(t)&&!re(t)});if(i.length===o.length)return r;var a=r.match(n);return t(i.join(a?a[0]:" - "))}function ie(e){e&&e.querySelectorAll&&e.querySelectorAll("*").forEach(function(e){var t=e.textContent||e.getAttribute("aria-label")||"",r=Array.prototype.map.call(e.childNodes||[],function(e){return e.textContent||""}).join(" ");(ee(t)||ne(t)||ne(r))&&e.remove()})}function ae(e){if(!e||!e.matches)return!1;if(e.matches("body, main, [role='main'], article.type-page, [itemtype$='/WebPage']"))return!0;if(!e.matches("article")||!st()||e.parentElement&&e.parentElement.closest("article"))return!1;var r=e.closest("main, [role='main']");if(!r)return!!e.querySelector("main, [role='main']");for(var n,o=document.createTreeWalker(r,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,{acceptNode:function(t){if(t===e||1===t.nodeType&&t.matches("script, style, template"))return NodeFilter.FILTER_REJECT;if(1===t.nodeType&&t.matches("a[href]")){var r=a(t.getAttribute("href"));if(r&&r.indexOf("#")>=0&&r.split("#")[0]===location.href.split("#")[0])return NodeFilter.FILTER_REJECT}return NodeFilter.FILTER_ACCEPT}});n=o.nextNode();){if(3===n.nodeType&&t(n.nodeValue))return!1;if(1===n.nodeType&&n.matches("a[href], img, picture, video, audio, iframe, canvas, object, embed, [role='img'], input, select, textarea, button"))return!1}return!0}function le(e){if(!e||!e.matches||!e.matches(K()))return!1;if(V(e))return!1;if(ae(e))return!1;if(e.matches(".row:has(> [class*='col-'])")&&!e.matches(K(!1))&&!Z(e))return!1;if(e.matches("a[href]")&&!e.matches(K(!1))&&!e.matches("a:has([class$='-name' i]):has([class$='-desc' i])")&&!G(e,e.parentElement))return!1;if(!e.matches(".post, .entry"))return!0;var t=(e.matches("a[href]")?[e]:Array.prototype.slice.call(e.querySelectorAll("a[href]"))).filter(function(t){return t.closest(".post, .entry")===e&&!t.matches("[rel='author'], [itemprop='author']")&&!t.closest("[class*='author' i], [class*='byline' i]")});return!!t.length&&(!Array.prototype.some.call(e.querySelectorAll(K()),de)||t.some(function(t){return t.parentElement===e||!!t.closest("h1, h2, h3, h4")}))}function se(e){for(var t=e;t&&t.closest;){var r=t.closest(K());if(!r)return null;if(le(r))return r;t=r.parentElement}return null}function ce(e){return!!le(e)&&(!(e.matches&&e.matches("li"))||de(e))}function ue(e){for(var t=e;t&&t.closest;){var r=t.closest(K());if(!r)return null;if(ce(r))return r;t=r.parentElement}return null}function de(e){if(!e||!e.querySelector||!le(e))return!1;var t=e.matches&&e.matches("tr, article, li, .post, .entry")?"a[href]":"h1 a[href], h2 a[href], h3 a[href], h4 a[href], a[href] h1, a[href] h2, a[href] h3, a[href] h4";return!!e.querySelector(t)}function me(e,t){return!(e&&e.matches&&e.matches("tr"))&&!(e&&t&&e.matches&&t.matches&&e.matches(".post, .entry")&&t.matches(".post, .entry")&&le(e)&&le(t))}function pe(e){if(!e||!e.parentElement)return e;for(var t=e.parentElement.closest&&e.parentElement.closest(".post, .entry");t&&!le(t);){var r=Array.prototype.filter.call(t.querySelectorAll(K()),function(e){if(!de(e))return!1;for(var r=e.parentElement;r&&r!==t;){if(de(r))return!1;r=r.parentElement}return r===t});if(1!==r.length||r[0]!==e)break;t=(e=t).parentElement&&e.parentElement.closest&&e.parentElement.closest(".post, .entry")}return e}function fe(e,t,r,n){if(t&&t.matches&&t.matches("tr"))return t;var o=F(e);if(o)return o;if(!H(e)&&G(e,t))return e;var i=e&&e.closest&&e.closest("figure");if(function(e,t,r){return!!(e&&t&&e.closest("figure")===t&&X(t)===e&&Q(t.parentElement,r))}(e,i,n))return i;var a=void 0===r?Ae(e):r;if(a)return a.card;var l=pe(se(e));return!l&&ae(t)?e.parentElement:l||t||e&&e.parentElement}function he(e,t){for(var r=e&&e.parentElement;r&&r!==document.body;){if(r.matches&&r.matches("article, li, main, [role='main']"))return null;if(r.matches&&r.matches("header")&&e.closest("article, section, main, [role='main']"))r=r.parentElement;else{if(t(r))return r;r=r.parentElement}}return null}function ge(e){return he(e,be)}function ye(e,r){if(!e||1!==e.nodeType)return!1;if(e.matches("nav, header, footer, menu, [role='navigation'], [role='menubar'], [role='menu'], [role='toolbar'], [role='banner'], [role='contentinfo']"))return!0;var n=e.getAttribute("aria-label");if(n&&e.matches("a[href]")){var o=se(e.parentElement);o&&J(o)===e&&(n="")}var i=t([e.getAttribute("id"),e.getAttribute("class"),e.getAttribute("role"),n,e.getAttribute("data-testid")].join(" ")).replace(/([a-z\d])([A-Z])/g,"$1 $2").toLowerCase();if(!i)return!1;if(/(news|headline|story|article|post|feed|stream|content|result|listing|archive|topic|thread|discussion|feature)/.test(i))return!1;if(r&&/(?:^|[\s_-])meta(?:data)?(?:$|[\s_-])/.test(i)){var a=se(e.parentElement),l=a&&J(a);if(l&&e.contains(l))return!1}var s=/nav(?:igation|bar|menu|links?|items?|list|container)?(?:$|[\s_-])|(?:^|[\s_-])pager(?:$|[\s_-])/.test(i);return r?s||/(menu|menubar|breadcrumb|breadcrumbs|pagination|footer|header|toolbar|sidebar|drawer|utility|meta|social|share|follow|account|login|signup|register)/.test(i):s||/(menu|menubar|breadcrumb|breadcrumbs|pagination|footer|header|toolbar|sidebar|drawer)/.test(i)}function be(e){return ye(e,!0)}function ve(e){return ye(e,!1)}function we(e){if(!e||!e.querySelectorAll)return[];var t=Array.prototype.slice.call(e.querySelectorAll("ul, ol, [role='list'], [class*='listing' i], [class*='grid' i], [class*='feed' i], [class*='results' i]"));st()&&e.querySelectorAll(K()).forEach(function(e){J(e)&&t.indexOf(e.parentElement)<0&&t.push(e.parentElement)});var r=[];return t.forEach(function(e){if(!be(e)&&(st()||$o(e,qo())!==-1/0)){var t=Array.prototype.filter.call(e.querySelectorAll(K()),function(e){return!!J(e)}),n=[];t.forEach(function(e){var t=e.parentElement;n.indexOf(t)<0&&n.push(t)}),n.forEach(function(e){r.indexOf(e)>=0||Array.prototype.filter.call(e.children,function(e){return!!J(e)}).length>=4&&r.push(e)})}}),r.filter(function(e){return!r.some(function(t){return t!==e&&t.contains(e)})}).sort(function(e,t){return e===t?0:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1})}function Ae(e,r){if(!e||!a(e.getAttribute("href"))||Vt(e))return null;if(e.closest("header, footer, nav, aside, menu, [role='navigation'], [role='menu'], [role='menubar'], [role='toolbar'], [role='banner'], [role='complementary'], [role='contentinfo']"))return null;if(be(e)||be(e.parentElement)||ge(e))return null;var n=function(e){if(!st())return null;var r=e.parentElement;if(!r||!r.closest("main, [role='main']"))return null;var n=Array.from(r.children).filter(function(e){return!Vt(e)});if(n.some(function(e){return!e.matches("h1, h2, h3, h4, p, a[href]")}))return null;var o=n.filter(function(e){return e.matches("h1, h2, h3, h4")}),i=n.filter(function(e){return e.matches("p")&&t(e.textContent)}),l=n.filter(function(e){return e.matches("a[href]")});return 1!==o.length||!t(o[0].textContent)||!i.length||l.indexOf(e)<0||o[0].querySelector("a")||i.some(function(e){return e.querySelector("a, button, input")})||l.some(function(e){return!a(e.getAttribute("href"))||!t(e.textContent)||U(e)})?null:new Set(l.map(function(e){return a(e.getAttribute("href"))})).size>=2?{card:r,label:t(o[0].textContent)}:null}(e);if(n)return n;var o=pe(se(e));if(!o)return function(e,r){var n=[];function o(e){return r&&n.forEach(function(t){r.set(t,e)}),e}for(var i=e.parentElement;i&&!i.matches("body, main, [role='main']");){if(r&&r.has(i))return o(r.get(i));if(r&&n.push(i),be(i)||Vt(i))return o(null);var l=Array.from(i.querySelectorAll("a[href]")).filter(function(e){return!Vt(e)});if(l.some(function(e){return!a(e.getAttribute("href"))||U(e)}))return o(null);var s=i.cloneNode(!0);if(Yt(i,s),s.querySelectorAll("a").forEach(function(e){e.remove()}),t(s.textContent))return o(null);if(new Set(l.map(function(e){return a(e.getAttribute("href"))})).size>=2)return o({card:i,label:""});i=i.parentElement}return o(null)}(e,r);if(!o||o===e||o.matches("tr")||!o.contains(e))return null;for(var i=e;i.parentElement&&i.parentElement!==o;)i=i.parentElement;var l=Array.prototype.filter.call(o.children,function(e){return e.querySelector("a[href]")&&!Vt(e)});if(l.length<2||l.indexOf(i)<0)return null;var s="";return l.every(function(e){if(be(e))return!1;var r=new Set,n=!1;if(e.querySelectorAll("a[href]").forEach(function(e){var t=a(e.getAttribute("href"));t&&!Vt(e)&&(r.add(t),U(e)&&(n=!0))}),n||r.size<2)return!1;var o=e.cloneNode(!0);Yt(e,o),o.querySelectorAll("a").forEach(function(e){e.remove()});var l=o.querySelectorAll("h1, h2, h3, h4, h5, h6, [role='heading'], [class*='title' i]");return!(1!==l.length||!t(l[0].textContent))&&(e===i&&(s=t(l[0].textContent)),l[0].remove(),!t(o.textContent))})?{card:i,label:s}:null}function Se(e,t){var r=a(t);return r?"["+e+"]("+r+")":e}function xe(e,r){return JSON.stringify([e.url||"unlinked:"+(r||""),t(e.text||""),t(e.detail||"")])}function ke(e,t,r){for(var n=[];r&&r!==e;){var o=r.parentNode;if(!o)return null;n.unshift(Array.prototype.indexOf.call(o.childNodes,r)),r=o}return r!==e?null:n.reduce(function(e,t){return e&&e.childNodes[t]},t)}function Ce(e,r,n,o){if(!e||!e.cloneNode)return"";var i=r?e:e.cloneNode(!0);if(r||Wa(e,i),i.matches&&i.matches("a[href]")){var l=t(i.textContent||i.getAttribute("aria-label")||""),s=a(i.getAttribute("href"));return n&&s&<(s)===lt(n)?l:Se(l,i.getAttribute("href"))}return i.querySelectorAll("a[href]").forEach(function(e){var r=t(e.textContent||e.getAttribute("aria-label")||""),l=a(e.getAttribute("href")),s=(!o||o.has(e))&&!(n&&l&<(l)===lt(n));e.replaceWith(i.ownerDocument.createTextNode(s?Se(r,l):r))}),t(i.textContent)}function qe(e,r,n,o){if(!n||!n.cloneNode)return function(e,r){var n=oe(e||"");if(!n)return"";var o=r.map(t).filter(Boolean);return n.split(/\s+(?:[-|·])\s+/).filter(function(e){return-1===o.indexOf(t(e))}).join(" - ")}(e.detail,r);var i=n.cloneNode(!0),l=e.contentCard&&ke(n,i,e.contentCard),s=Array.prototype.filter.call(n.querySelectorAll(K()),function(t){return!J(t)&&Array.prototype.some.call(t.querySelectorAll("a[href]"),function(t){return!!D(t,e.contentCard||n)})}).map(function(e){return ke(n,i,e)}).filter(Boolean),c=new WeakSet,u=Ma(e),d=u?xa(u,"p, blockquote"):[];Array.prototype.forEach.call(n.querySelectorAll("a[href]"),function(e){var r=a(e.getAttribute("href")),l=e.closest("p, blockquote"),s=l&&-1!==d.indexOf(l)&&t(l.textContent||"").length>=30;if(r&&(s||!(function(e){if(!e||!e.matches)return!1;var t=e.closest("[class*='comment' i], [id*='comment' i], [class*='reply' i], [id*='reply' i]"),r=a(e.getAttribute("href"))||"";return!!t||/\/(?:comments?|comentarios?|replies)(?:\/|$)/i.test(r)}(e)||o&&o.has(lt(r))))){var u=ke(n,i,e);u&&c.add(u)}});var m="[rel~='author'], [itemprop~='author'], [class*='author' i], [class*='byline' i], time, [datetime], [class*='score' i], [class*='point' i], [class*='reply' i], [class*='comment' i], [class*='community' i], [class*='metric' i], [class*='stat' i]",p=Array.prototype.filter.call(n.querySelectorAll(K()),function(e){if(!V(e))return!1;if(!Array.prototype.filter.call(e.querySelectorAll(m),function(e){return!Ua(e)}).length)return!1;var r=e.cloneNode(!0);return Wa(e,r),r.querySelectorAll(m).forEach(function(e){e.remove()}),!t(r.textContent||"")&&Array.prototype.some.call(n.querySelectorAll(m),function(t){return!e.contains(t)&&!Ua(t)})}).map(function(e){return ke(n,i,e)}).filter(Boolean),f=e.contentCard?Array.prototype.filter.call(n.querySelectorAll(K()),function(t){return t!==e.contentCard&&!t.contains(e.contentCard)&&!e.contentCard.contains(t)&&V(t)}).map(function(e){return ke(n,i,e)}).filter(Boolean):[],h=["[class*='category'], [class*='eyebrow'], [class*='kicker']","[class*='summary'], [class*='description'], [class*='excerpt'], p","[rel='author'], [itemprop='author'], [class*='author' i], [data-author]","time, [datetime], [class*='timestamp' i], [class*='date' i]","[class*='score' i], [data-score], [data-karma]",".reply, .replies, .comment, .comments, [class*='reply'], [class*='replie'], [class*='comment']","[class*='community' i], [class*='subreddit' i], [data-community]","figcaption"].reduce(function(e,r){return e.concat(function(e,r,n){var o=xa(e,n),i=o[0]&&t(o[0].getAttribute("datetime")||o[0].getAttribute("content")||o[0].textContent||"");return o.filter(function(e){return t(e.getAttribute("datetime")||e.getAttribute("content")||e.textContent||"")===i}).map(function(t){return ke(e,r,t)})}(n,i,r))},(e.titleHeadings||[]).map(function(e){return ke(n,i,e)}));Wa(n,i),h.forEach(function(e){e&&e.remove&&e.remove()}),i.querySelectorAll(K()).forEach(function(e){e===l||!ce(e)&&-1===p.indexOf(e)&&-1===f.indexOf(e)||-1===s.indexOf(e)&&e.remove()}),Array.prototype.forEach.call(i.querySelectorAll("a, h1, h2, h3, h4, [class*='title' i]"),function(r){t(r.textContent||"")===t(e.text||"")&&r.remove()}),ie(i);var g=oe(Ce(i,!0,e.url,c));return g===t(e.text||"")?"":g}function Ee(e,r,n,o){if(!e||!e.querySelector)return"";var i=xa(e,r)[0];if(!i)return"";var l=i.matches&&i.matches("a[href]")&&a(i.getAttribute("href"));if(l&&n&<(l)===lt(n))return t(i.textContent||i.getAttribute("aria-label")||"");var s=i.hasAttribute("datetime")||i.hasAttribute("content")?t(i.getAttribute("datetime")||i.getAttribute("content")||""):!1===o?t(i.textContent):Ce(i);return s?/^(comment|comments|reply|replies|score|points|likes?)$/i.test(s)?"":s:""}function Te(e,t){if(null!=e.groupLabel)return e.groupLabel?[e.groupLabel]:[];var r=e.card,n=r&&r.matches&&r.matches("tr")?oe(e.detail):"";if(n)return e.tableCells||e.tableRowDetail?(null==e.tableReferenceDetail&&(e.tableReferenceDetail=oe(Ea(r,e.text,e.tableCells,{url:e.url}))),[e.tableReferenceDetail]):[n];var o=[e.category,e.summary,Ee(r,"[rel='author'], [itemprop='author'], [class*='author' i], [data-author]",e.url)||e.author,Ee(r,"time, [datetime], [class*='timestamp' i], [class*='date' i]",e.url)||e.time,Ee(r,"[class*='score' i], [data-score], [data-karma]",e.url)||e.score,Ee(r,".reply, .replies, .comment, .comments, [class~='reply'], [class~='replies'], [class~='comment'], [class~='comments'], [class*='reply'], [class*='replie'], [class*='comment'], [data-reply], [data-replies], [data-comment], [data-comments]",e.url,!1)||e.replyCount,Ee(r,"[class*='community' i], [class*='subreddit' i], [data-community]",e.url)||e.community,e.image,e.caption],i=qe(e,o,r,t);return i&&o.push(i),o.filter(Boolean).filter(function(e,t,r){return r.indexOf(e)===t})}var _e=function(e){var t=new Set(e.map(function(e){var t=a(e.url||"");return t&<(t)}).filter(Boolean));return e.map(function(e){var r="- "+Se(e.text,e.url),n=Te(e,t).join(" - ");return n&&(r+=" - "+n),r}).join("\n")};function Le(e,r){var n=new Set,o=[];return(r||[]).forEach(function(e){var r=a(e&&e.url),i=t(e&&e.label);if(r&&i&&!n.has(r)){n.add(r);var l="- "+Se(i,r),s=t(e&&e.detail);s&&(l+=": "+s),o.push(l)}}),o.length?"## "+t(e)+"\n\n"+o.join("\n"):""}function je(e){var r=[],n=[];e.title&&r.push("# "+e.title),e.byline&&n.push("- Author: "+e.byline),e.publishedTime&&n.push("- Published: "+e.publishedTime),S(e.details).forEach(function(e){e&&n.push("- "+e)}),n.length&&r.push(n.join("\n")),e.description&&r.push(e.description),e.highlights&&e.highlights.length&&r.push(e.highlights.map(function(e){return"- "+e}).join("\n"));var o=r.filter(Boolean).join("\n\n").trim();return{title:e.title,byline:e.byline||null,excerpt:e.description||null,siteName:e.siteName||location.hostname,publishedTime:e.publishedTime||null,html:"",markdown:o,textContent:t(o),docsLike:!!e.docsLike,hostAware:!!e.hostAware,readerMode:!1,contentType:e.contentType||"article",socialKind:e.socialKind||null,platform:e.platform||null,handle:e.handle||null,replyCount:void 0===e.replyCount?null:e.replyCount,community:e.community||null,score:void 0===e.score?null:e.score}}function Pe(e){return new URLSearchParams(location.search).get(e)}function $e(){return Pe("q")||Pe("p")||Pe("query")||Pe("text")||""}function Ne(e){var t=null!=e.markdown?e.markdown:_e(e.items||[]);return{title:e.title,byline:null,excerpt:e.excerpt,siteName:e.siteName||location.hostname,publishedTime:null,html:e.html||"",textContent:null!=e.textContent?e.textContent:t,markdown:t,readerMode:!1,contentType:"list"}}function Re(e,t){var r=(t=t||{}).items,n=null!=t.markdown?t.markdown:_e(r||[]),o={title:t.title||e&&e.title||document.title,byline:null,excerpt:null!=t.excerpt?t.excerpt:r&&r[0]?r[0].text:e&&e.excerpt,siteName:t.siteName||e&&e.siteName||location.hostname,publishedTime:void 0===t.publishedTime?null:t.publishedTime,html:t.html||"",textContent:null!=t.textContent?t.textContent:n,markdown:n,readerMode:!1,contentType:t.contentType||"list"};return r&&(o.itemCount=r.length),t.hostAware&&(o.hostAware=!0),t.portalRootEvidence&&(o.portalRootEvidence=t.portalRootEvidence),t.statusPage&&(o.statusPage=!0),o}function Me(e,t){var r="meta["+t+'="'+e+'"]',n=document.querySelector(r);return n?n.getAttribute("content"):null}function Be(e,t){for(var r="meta["+t+'="'+e+'"]',n=document.querySelectorAll(r),o=0;o<n.length;o+=1){var i=a(n[o].getAttribute("content"));if(i)return i}return null}function Oe(e){return e.join("|")}function ze(e,t){return new RegExp("^(?:"+Oe(e)+")$",t||"i")}function Ie(e,t,r){return new RegExp("^\\s*(?:"+Oe(e)+")"+(t||"")+"\\s*$",r||"gmi")}function He(e){return e.map(function(e){return new RegExp("^\\s*(?:"+e+")\\b.*$","gmi")})}var Fe="(?:outbrain|taboola|zemanta|revcontent|mgid|content\\.ad|plista|ligatus|adblade|nativendo|dianomi|nativo|sharethrough|triplelift)\\.(?:com|net|co|io)",De=/(cookie|privacy|consent|prywatności|datenschutz|données|datos|dati|クッキー|쿠키|同意|隐私|принять|ኩኪ)/i,Ue=[/cookie settings|cookie preferences|manage cookie preferences|manage cookies|accept all cookies|reject optional cookies|we use cookies|this website uses cookies|by accepting cookies|allow the use of cookies|privacy choices|privacy preference center|your privacy settings|your privacy choices|manage privacy preferences|manage consent preferences|cookie information|cookie declaration|cookie list|cookies details|list of partners(?: \(vendors\))?|cookies from other companies|essential cookies|personalize advertising|use cookies and similar technologies|before you continue|wish to store and access information|access information on your devices|collect personal data|personalized ads|trusted third party partners|browsing history|device identifiers|cookie declaration last updated|consent id|change your consent|your current state/i,/configurações avançadas de cookies|declaração de cookies|gerenciar cookies|utilizamos cookies|dados pessoais/i,/informazioni sulla vostra privacy|gestisci preferenze consenso|elenco dei cookie|dati personali|impostazioni dei cookie|preferenze cookie|accetta tutto/i,/pliki cookie|ustawienia prywatności|polityka prywatności i cookies/i,/datenschutz|cookie-einstellungen/i,/données personnelles|paramètres des cookies/i,/datos personales|configuración de cookies/i,/クッキー|Cookieプリファレンス|Cookie設定|同意設定|すべて受け入れる|すべて許可/i,/쿠키|동의|모두 허용/i,/全部接受|接受全部|隐私设置/i,/файлы cookie|настройки cookie|принять все/i,/we gebruiken cookies/i,/о вашој приватности|пристанак|колачић|колачиће|подешавања приватности/i,/የእርስዎ ግላዊነት|ግላዊነት|ኩኪ|ኩኪዎች|የኩኪ ቅንብሮች/i,/pro pokračování vyberte|technické cookies|jakou formou vám máme zobrazovat obsah/i],We=/cookie|cookies|preferences|privacy choices|privacy preference center|your privacy settings|your privacy choices|manage privacy preferences|manage consent preferences|cookie information|cookie declaration|cookie list|cookies details|list of partners|accept all|reject optional|essential cookies|personalize advertising|personal data|browsing history|device identifiers|personalized ads|trusted third party|wish to store|consent id|change your consent|your current state|configurações avançadas de cookies|declaração de cookies|gerenciar cookies|utilizamos cookies|dados pessoais|informazioni sulla vostra privacy|gestisci preferenze consenso|elenco dei cookie|pliki cookie|prywatności|datenschutz|données|datos|dati|クッキー|쿠키|同意|接受|隐私|принять|cookie設定|ግላዊነት|ኩኪ|pokračování|technické cookies/g,Ge=/copyright|all rights reserved|privacy policy|cookie policy|terms of use|terms and conditions|impressum|link utili|contatti|chi siamo|newsletter|advertising|pubblicit[àa]|manage preferences|cookie settings/g,Ze=["video player is loading.","videosoitin","play video","playback speed","fullscreen","mute","unmute"],Ke=[/^playback speed \d/,/^this is a modal window\./,/^beginning of dialog window\./,/^end of dialog window\./,/^current time\s+\d/,/^remaining time\s/,/^duration\s/,/^loaded:\s*\d/,/^progress:\s*\d/],Ve=/^(play|pause|resume|volume\s+\d+%|rewind\s+\d+\s+seconds|forward\s+\d+\s+seconds|skip\s+(?:back|forward)|chromecast|closed captions|captions|settings|fullscreen|full screen|mute|unmute|next up|up next|current time\s+\d|remaining time\s+|duration\s+|learn more)$/,Je=/^\d+:\d+$/,Xe=/^(log in|login|sign in|register|create account|get disney\+|accept all|reject all|confirm my choices|manage preferences|save preferences|allow all|more details|cookies details)$/i,Ye=[/^(nearby entries|browse nearby words|cited by|related content|more like this|people also viewed|recommended articles?|translation|numerology|citation|word of the day|quiz|discover more|related posts|latest news|trending now|popular posts|most read|you might also like|you may also like|read more|related articles?|leave a reply|cancel reply|about the authors?|#\s*tags|comments?\s*\d*|also read|further reading|see also|more stories|don't miss|privacy preference center|your privacy settings|manage privacy preferences|manage consent preferences|informazioni sulla vostra privacy|gestisci preferenze consenso|elenco dei cookie|list of partners(?: \(vendors\))?|polecane|przeczytaj (też|również)|podobne (artykuły|wpisy)|leia (também|mais)|artigos? relacionados?|também pode gostar|ähnliche (beiträge|artikel)|das könnte sie auch interessieren|weiterlesen|mehr zum thema|artículos? relacionados?|también te puede interesar|te puede interesar|lee también|noticias relacionadas|articles? (connexes?|similaires?|associée?s?)|à lire aussi|sur le même (sujet|thème)|vous aimerez aussi)$/i,/^more from /i,/^popular in /i,/^browse definitions\.net$/i,/^(الأكثر قراءة|الأكثر مشاهدة|الأكثر تعليقاً|مقالات ذات صلة|اقرأ أيضاً|أخبار ذات صلة|مواضيع ذات صلة|موضوعات متعلقة|الأكثر تداولاً|قد يهمك|المزيد|تابع القراءة|הנקראים ביותר|כתבות קשורות|פופולרי|נצפה הכי הרבה|הכי נקראים|مزید پڑھیں|سب سے زیادہ پڑھی جانے والی|متعلقہ خبریں|بیشتر بخوانید|محبوبترین|پربازدیدترین)$/i,/^(en çok okunan|ilgili haberler|benzer haberler|popüler haberler|çok okunanlar|ilgili içerikler)$/i,/^(บทความที่เกี่ยวข้อง|อ่านเพิ่มเติม|ข่าวที่เกี่ยวข้อง|ข่าวยอดนิยม|บทความยอดนิยม|อ่านต่อ|เนื้อหาที่เกี่ยวข้อง|แนะนำสำหรับคุณ|ข่าวล่าสุด)$/i,/^(bài viết liên quan|tin liên quan|đọc thêm|xem thêm|tin tức liên quan|bài viết nổi bật|có thể bạn quan tâm|tin nổi bật|bài viết mới nhất|đọc nhiều nhất)$/i,/^(σχετικά άρθρα|διαβάστε (επίσης|ακόμη|περισσότερα)|δημοφιλή άρθρα|περισσότερα νέα|τελευταία νέα|δείτε επίσης|μπορεί να σας ενδιαφέρει|σχετικά νέα|τα πιο δημοφιλή)$/i,/^(схожі (статті|матеріали|новини)|читайте (також|ще)|також читайте|популярні (статті|новини)|останні новини|найпопулярніше|вас (також )?може зацікавити|рекомендуємо|дивіться також)$/i,/^(baca juga|artikel terkait|berita terkait|berita populer|artikel populer|terpopuler|baca selengkapnya|lihat juga|rekomendasi|berita lainnya|pilihan editor)$/i,/^(lees ook|gerelateerde (artikelen|berichten)|ook interessant|meer (lezen|artikelen|nieuws)|populair(st)?e? artikelen|aanbevolen|bekijk ook|misschien vind je dit ook leuk|dit vind je misschien ook interessant|meest gelezen)$/i,/^(povezani (članci|tekstovi)|pročitajte (još|i|također)|slični (članci|tekstovi)|popularno|najčitanije|preporučujemo|pogledajte (još|i|takođe)|više vesti|повезани (чланци|текстови)|прочитајте (још|и|такође)|слични (чланци|текстови)|популарно|најчитаније|препоручујемо|погледајте (још|и|такође)|више вести)$/i,/^(baca juga|artikel berkaitan|berita berkaitan|berita popular|artikel popular|terpopular|baca lagi|lihat juga|cadangan|berita lain|pilihan editor|paling dibaca|trending)$/i,/^(leia (também|mais)|artigos? relacionados?|também pode gostar|mais (lidos?|populares?|notícias)|notícias relacionadas|veja (também|mais)|confira também|continue lendo|recomendado|sugestões?|últimas notícias)$/i,/^(související (články|zprávy)|čtěte (také|dále|více)|mohlo by vás zajímat|doporučujeme|nejčtenější|nejnovější zprávy|další články|přečtěte si (také|též)|více článků)$/i,/^(relaterade (artiklar|nyheter)|läs (också|mer|vidare|även)|mest lästa|populärast|senaste (nyheterna|artiklarna)|fler (artiklar|nyheter)|rekommenderat|du kanske också gillar)$/i,/^(relaterede (artikler|nyheder)|læs (også|mere|videre)|mest læste|populært|seneste (nyheder|artikler)|flere (artikler|nyheder)|anbefalet|det kunne også interessere dig)$/i,/^(kaugnay na (mga )?artikulo|basahin (din|rin)|mga kaugnay na balita|pinaka-?popular|pinakabagong balita|iba pang mga artikulo|maaari mo ring gustuhin)$/i,/^(ተዛማጅ ዜናዎች|ተጨማሪ ያንብቡ|ተመልከቱ|ተጨማሪ ዜና|በጣም የተነበቡ|ቀጣይ ዜና)$/i,/^(relaterte (artikler|saker|nyheter)|les (også|mer|videre)|mest lest[e]?|populær[te]?|siste nytt|flere (artikler|saker|nyheter)|anbefalt|aktive debatter|se flere meldinger|du vil kanskje også like)$/i,/^(articles? relaciona(ts?|des?)|notícies relacionades|llegeix (també|més)|més (llegits?|populars?|notícies)|últimes notícies|també et pot interessar|contingut relacionat|mostra'n més|temes relacionats)$/i,/^(დაკავშირებული (სტატიები|ამბები|სიახლეები)|წაიკითხეთ (ასევე|მეტი)|ყველაზე (წაკითხვადი|პოპულარული)|ბოლო ამბები|მეტი (სტატიები|ამბები)|რეკომენდებული|გაიგეთ მეტი)$/i,/^(සම්බන්ධිත (පුවත්|ලිපි)|තවත් කියවන්න|වැඩි විස්තර|උණුසුම් පුවත්|නවතම පුවත්|ජනප්රිය (පුවත්|ලිපි)|වැඩි විස්තර කියවන්න)$/i,/^(əlaqəli (xəbərlər|məqalələr)|daha çox oxu(?:yun)?|ən çox oxunan(?:lar)?|son xəbərlər|digər (xəbərlər|məqalələr)|tövsiyə olunan|oxşar xəbərlər)$/i,/^(powiązane (artykuły|wpisy|tematy|wiadomości)|najczęściej czytane|najpopularniejsze|najnowsze (wiadomości|artykuły)|więcej (artykułów|wpisów|wiadomości)|może cię (też )?zainteresować|zobacz (też|również|także)|czytaj (też|również|także)|warto przeczytać|to też warto przeczytać|to może cię zainteresować|ostatnie (wpisy|artykuły)|popularne (wpisy|artykuły|tematy)|komentarze\s*\d*|dodaj komentarz|zostaw komentarz|napisz komentarz)$/i];function Qe(e,t){for(var r=0;r<t.length;r+=1)if(t[r].test(e))return!0;return!1}function et(e,r){for(var n=0;n<r.length;n+=1){var o=e.querySelector(r[n]),i=t(o&&o.textContent);if(i)return i}return""}function tt(){if(!document.body)return"";var e=t(document.body.innerText||"");if(e&&(!De.test(e)||!rt(e)))return e;var r=Zt(document.body,document);return r.querySelectorAll("script, style, noscript, template, iframe").forEach(function(e){e.remove()}),pt(r),t(r.textContent)}function rt(e){var r=t(e||"").toLowerCase();return!(!r||r.length>5e3)&&(!!Qe(r,Ue)&&(r.match(We)||[]).length>=2)}function nt(e){var r=t(e||"").toLowerCase();return!(!r||r.length>5e3)&&(r.match(Ge)||[]).length>=2}function ot(e){return/^your browser doesn't support html5 audio$/i.test(t(e||""))}function it(e){var r=t(e||"").toLowerCase();return!(!r||r.length>120)&&(Ve.test(r)||Je.test(r))}function at(e){return Qe(e||"",Ye)}function lt(e){if(!e)return"";try{var t=new URL(e,location.href),r=t.origin+t.pathname+t.search;return(r=r.replace(/([?&])(?:utm_[^&=]+|fbclid|gclid|dclid|msclkid|mc_cid|mc_eid)=[^&]*&?/gi,"$1")).replace("?&","?").replace(/[?&]$/,"")}catch(t){return e.split("#")[0]}}function st(){var e=(location.pathname||"").toLowerCase();return""===e||"/"===e||/^\/(?:index|default|home)(?:\.[a-z0-9]+)?\/?$/i.test(e)}function ct(e,r){return r=r||"",!(e=t(e||""))||(e.length>180||(!!/^(home|menu|search|sign in|log in|login|register|create account|my account|account|subscribe|newsletter|advertise|contact|about|privacy|terms|cookies?|careers?|help|support|learn more|read more|view all|see all|show more|skip to content|open menu|close|language|english|français|deutsch|español|italiano)$/i.test(e)||(!!(/^(buy|sell|rent|sold|agents?|homes?|condos?|commercial|mortgages?|calculators?|guides?|news|travel|trains?|buses?|flights?|hotels?|cars?|packages?|deals?|offers?|destinations?|routes?|stations?|tickets?|timetables?)$/i.test(e)&&e.length<18)||!!/\b(?:privacy|terms|cookie|login|signin|sign-in|register|account|newsletter|subscribe|advertise|contact|about)\b/i.test(r))))}function ut(e){return lt(e).replace(/([?&])(?:utm_[^&=]+|fbclid|gclid|dclid|msclkid|mc_cid|mc_eid)=[^&]*&?/gi,"$1").replace(/[?&]$/,"")}function dt(e){var t=0;return e.querySelectorAll("section, [role='region']").forEach(function(e){for(var r=e.parentElement;r;){if(r.matches&&r.matches("aside, nav, header, footer, [role='navigation'], [role='complementary'], [role='banner'], [role='contentinfo']"))return;r=r.parentElement}Lo(e)||Lo(e.parentElement)||e.querySelector("h1, h2, h3, h4")&&e.querySelector("article a[href], li a[href], [class*='card'] a[href], [class*='story'] a[href]")&&(t+=1)}),t>=2}function mt(e){if(!e||1!==e.nodeType)return!1;var r=t([e.getAttribute("id"),e.getAttribute("class"),e.getAttribute("aria-label"),e.getAttribute("data-testid")].join(" ")).toLowerCase(),n=t(e.textContent||"");if(/(onetrust|ot-sdk|\bot-[\w-]*|cookiebot|cybot|cookiedeclaration|cookie-declaration|usercentrics|trustarc|didomi|quantcast|osano|cookieyes|cky-|sourcepoint|sp_message|privacy-center|privacy preference center|cookie information|cookie list|consent preferences)/.test(r)||"true"===e.getAttribute("data-nosnippet"))return!0;if(!n)return!1;var o=/(cookie|consent|privacy|gdpr|ccpa)/.test(r);if(o&&rt(n))return!0;if(o&&n.length>5e3&&/(cookie|cookies|consent|privacy|gdpr|ccpa)/i.test(n.slice(0,2e3)))return!0;if((e.matches("[role='dialog'], [aria-modal='true'], dialog")||/position:\s*(fixed|sticky)/i.test(e.getAttribute("style")||""))&&rt(n))return!0;if("undefined"!=typeof window&&e.ownerDocument&&e.ownerDocument.defaultView)try{var i=e.ownerDocument.defaultView.getComputedStyle(e);if(i&&/fixed|sticky/.test(i.position)&&rt(n))return!0}catch(e){}if(rt(n)&&n.length<3e3&&e.querySelectorAll("button, a, input[type='button'], input[type='submit']").length>=1){var a=e.cloneNode(!0);if(a.querySelectorAll("a, button, input, select, textarea, nav, footer, script, style, noscript, template").forEach(function(e){e.remove()}),!Qe(t(a.textContent||"").toLowerCase(),Ue))return!1;var l=e.querySelectorAll("p").length,s=e.querySelectorAll("button, input, select, textarea").length,c=n.slice(0,Math.max(40,Math.ceil(n.length/2)));if(!("BODY"!==e.tagName&&n.length>1e3&&l>=2&&l>=s&&!rt(c)))return!0}return!1}function pt(e){return e&&e.querySelectorAll?(e.querySelectorAll("[role='dialog'], [aria-modal='true'], dialog, [id*='cookie' i], [class*='cookie' i], [id*='consent' i], [class*='consent' i], [id*='privacy' i], [class*='privacy' i], [id*='onetrust' i], [class*='onetrust' i], [id^='ot-' i], [class*='ot-' i], [id*='gdpr' i], [class*='gdpr' i], [id*='ccpa' i], [class*='ccpa' i], [class*='CookieConsent' i], [id*='CookieConsent' i], [class*='CookieDeclaration' i], [id*='CookieDeclaration' i], [class*='cookiebar' i], [id*='cookiebar' i], [class*='cookie-banner' i], [id*='cookie-banner' i], [class*='cookie-notice' i], [id*='cookie-notice' i], [class*='privacy-center' i], [id*='privacy-center' i], [data-nosnippet='true'], .cc-banner, .cc-window, #CybotCookiebotDialog, .cky-consent-container, #usercentrics-root, .osano-cm-dialog").forEach(function(e){mt(e)&&e.remove()}),e.querySelectorAll("section, div, aside, form").forEach(function(e){mt(e)&&e.remove()}),e):e}var ft,ht="nav, aside, footer, script, style, noscript, template",gt=ht+", .sidebar, .toc, .pagination, .edit-link, .theme-toggle",yt=ht+", .breadcrumb, .site-header, .site-footer, .region-sidebar",bt="[class*='related-posts'], [class*='related_posts'], [id*='related-posts'], [id*='related_posts'], .yarpp-related, [class*='recommended-posts'], [class*='more-stories'], [class*='also-like'], [class*='you-may-also'], .jp-relatedposts, [class*='more-from'], [class*='more_from'], [class*='latest-news'], [class*='latest_news'], [class*='trending'], [class*='popular-posts'], [class*='popular_posts'], [class*='related-articles'], [class*='related_articles'], [id*='related-articles'], [id*='related_articles'], [class*='related-links'], [class*='related_links'], [class*='further-reading'], [class*='further_reading']",vt=ze(["report this article","\\+?\\s*follow","sign in","sign up","join now","show more","show less","log in","create account","create an account","subscribe to read","inloggen","iniciar sessão","entrar","prijavi se","пријави се","log masuk","maak een account","criar conta","registreer","cadastre-se","přihlásit se","logga in","log ind","logg inn","inicia sessió","iniciar sessió","giriş yap","შესვლა","පිවිසෙන්න","daxil ol","zaloguj się","zarejestruj się","zaloguj","załóż konto","moje konto","dołącz do nas","zobacz więcej","czytaj więcej","czytaj dalej","pokaż więcej","zwiń","rozwiń"],"i"),wt=(ft="i",new RegExp("^(?:"+Oe(["skip ad","continue watching","visit advertiser website","go to page","advertisement \\d+\\/\\d+","advertisement","close ad","skip this ad","skip in \\d+","ad \\d+ of \\d+","sponsored","sponsor","reklama","materiał sponsorowany","materiał promocyjny","materiał partnerski","autopromocja","ad$","Реклама","Рекламний блок","Рекламний матеріал","Διαφήμιση","Iklan","Quảng cáo","โฆษณา","Sponsorlu","Reklama?","Advertentie","Оглас","Publicidade","Anúncio","Annons","Annonce","Reklame","Annonsørinnhold","Kommersielt innhold","Contingut patrocinat"])+")",ft||"i")),At=/^(like|dislike|share|save|bookmark|pin it|tweet|follow us|subscribe|subscribe now|sign up|view all|show more comments?|load more|report|flag|print|copy link|copy url|edit|delete|reply|retweet|repost|reblog|thanks for your feedback!?)$/,St=ze(["join (?:us )?on (?:telegram|whatsapp|instagram|facebook|youtube|twitter|x|viber)","follow (?:us )?on (?:telegram|whatsapp|instagram|facebook|youtube|twitter|x|viber)","join (?:our )?(?:telegram|whatsapp|viber) (?:group|channel)","download (?:our|the) app","get (?:our|the) app","install (?:our|the) app","डाउनलोड करें","ऐप डाउनलोड","टेलीग्राम","व्हाट्सएप ग्रुप","হোয়াটসঅ্যাপ","টেলিগ্রাম","(?:become|be) a (?:member|subscriber|patron)","subscribe (?:now|today|here)","sign up (?:for|to) (?:our )?(?:newsletter|updates|emails?)","get started for free","サブスクライブ","구독하기","підписуйтесь на наш","приєднуйтесь до нас","підписатися на телеграм","підписатися на канал","ακολουθήστε μας","εγγραφείτε","ikuti kami di","gabung (?:di )?(?:telegram|whatsapp)","berlangganan","ติดตาม(?:เรา)?(?:ที่|ใน|ได้ที่)","theo dõi chúng tôi","volg ons","schrijf je in","abonneer","meld je aan","пратите нас","пријавите се","претплатите се","pratite nas","prijavite se","pretplatite se","ikut(?:i)? kami","langgan","inscreva-se","siga-nos","assine","sledujte nás","odebírejte","přihlaste se k odběru","připojte se","följ oss","prenumerera","registrera dig","følg os","abonner","tilmeld dig","følg oss","abonner på","meld deg på","registrer deg","subscriu-te","fes-te subscriptor","fes-te'n subscriptor","გამოიწერეთ","შემოგვიერთდით","მოგვყევით","අපව අනුගමනය කරන්න","bizə qoşulun","abunə olun","bizi izləyin","subskrybuj","zasubskrybuj","zapisz się na newsletter","dołącz do nas","obserwuj nas","śledź nas"],"i"),xt="[class*='app-download'], [class*='app_download'], [class*='download-app'], [class*='download_app'], [class*='app-banner'], [class*='app_banner'], [class*='app-install'], [class*='app_install'], [class*='install-app'], [class*='install_app'], [class*='mobile-app'], [class*='mobile_app'], [class*='open-in-app'], [class*='open_in_app'], [class*='app-promo'], [class*='app_promo'], [class*='amp-banner'], [class*='amp_banner'], [class*='amp-promo'], [class*='amp_promo'], [class*='subscribe-cta'], [class*='subscribe_cta'], [class*='newsletter-signup'], [class*='newsletter_signup'], [class*='push-notification'], [class*='push_notification'], [class*='telegram-cta'], [class*='whatsapp-cta']",kt="[class*='share'], [class*='social'], [class*='rating'], [class*='vote'], [class*='like-button'], [class*='dislike'], [data-testid*='share'], [data-testid*='like'], [class*='ad-overlay'], [class*='ad_overlay'], [class*='video-ad'], [class*='adWrapper'], [class*='ad-wrapper'], [class*='ad-container'], [id*='ad-overlay'], [id*='ad_overlay'], [class*='announcement-bar'], [class*='global-alert'], [id*='announcement-bar']",Ct="[class*='taboola'], [id*='taboola'], [class*='outbrain'], [id*='outbrain'], [data-widget-type*='taboola'], [data-widget-type*='outbrain'], [class*='promoted-content'], [class*='promoted_content'], [id*='promoted-content'], [class*='sponsored-content'], [class*='sponsored_content'], [class*='mgid'], [id*='mgid'], [class*='zergnet'], [id*='zergnet'], [class*='revcontent'], [id*='revcontent']",qt=new RegExp("(?:^|[-_\\s])(ad|ads|advert|advertisement|promo|promoted|sponsor|sponsored|subscription|subscribe|subscriber|paywall|upsell|marketing|newsletter|cta)(?:[-_\\s]|$)","i"),Et=new RegExp("\\b(save\\s+\\d+%|subscribe\\s+(?:now|today)|subscription|subscriber|sign\\s+up\\s+for|get\\s+started\\s+for\\s+free|limited\\s+time\\s+offer|annual\\s+subscriptions?|trusted\\s+destination\\s+for)\\b","i"),Tt=new RegExp("(?:\\/|[-_])(ad|ads|advert|promo|sponsor|sponsored|subscription|subscribe|marketing|upsell)(?:\\/|[-_.?]|$)","i"),_t=ze(["related\\s*(articles?|stories|news|posts|content|links)?","more\\s*(from|in|stories|articles?|news)","see\\s*also","you\\s*may\\s*(also\\s*)?like","recommended","trending","popular","latest\\s*news","other\\s*news","also\\s*read","read\\s*more\\s*:?","further\\s*reading","references","citations","metrics","altmetric","więcej\\s*(z\\s*tej\\s*kategorii|artykułów|wiadomości|na\\s*ten\\s*temat)","zobacz\\s*również","polecamy","czytaj\\s*również","inne\\s*wiadomości","повезано","погледајте","сродне\\s*вијести","слично","такође\\s*прочитајте","още\\s*от","виж\\s*също","свързани\\s*новини","más\\s*de","noticias\\s*relacionadas","ver\\s*también","plus\\s*de","à\\s*lire\\s*aussi","lire\\s*aussi","sur\\s*le\\s*même\\s*sujet","mehr\\s*aus","lesen\\s*sie\\s*auch","das\\s*könnte\\s*sie\\s*auch\\s*interessieren","altre\\s*notizie","leggi\\s*anche","ook\\s*interessant","lees\\s*ook","läs\\s*också","relateret","relaterte\\s*saker","les\\s*også","aiheeseen\\s*liittyvät","lue\\s*myös","ilgili\\s*haberler","daha\\s*fazla","saistītie","susijusios\\s*naujienos","поврзано","citește\\s*și","articole\\s*similare","також\\s*читайте","схожі\\s*новини","σχετικά\\s*νέα","διαβάστε\\s*επίσης","関連記事","関連ニュース","おすすめ","あわせて読みたい","続きを読む","更多相关新闻","相关新闻","相关阅读","延伸阅读","관련\\s*기사","함께\\s*읽기","اقرأ\\s*أيض[اً]ا","إقرأ\\s*أيض[اً]ا","مواضيع\\s*ذات\\s*صلة","أخبار\\s*ذات\\s*صلة","مطالب\\s*مرتبط","مطالب\\s*ذات\\s*صلة","مرتبط","עוד\\s*כתבות","כתבות\\s*נוספות","संबंधित\\s*(?:खबरें|लेख)","और\\s*पढ़ें","আরও\\s*পড়ুন","সম্পর্কিত\\s*খবর","อ่านเพิ่มเติม","ข่าวที่เกี่ยวข้อง","tin\\s*liên\\s*quan","đọc\\s*thêm","baca\\s*juga","berita\\s*terkait"],"i"),Lt=ze(["za ogled potrebujemo tvojo privolitev(?: za vstavljanje vsebin družbenih omrežij in tretjih ponudnikov\\.?)?","omogoči piškotke","cookie manager","your cookie preferences","got it!","let us know your cookie preferences","we value your privacy","manage choices","privacy settings","polityka prywatności i cookies","nie widzisz nawet do 30% treści dostępnych w serwisie","data preferences(?:\\s*[\\/|]\\s*|\\s+)manage your data","data preferences","manage your data","manage (?:privacy|cookie|consent|data) preferences","privacy preference center","your privacy settings","your privacy choices","veri tercihleri","nastavení souhlasu","souhlas s personalizací","เว็บไซต์นี้ใช้คุ้กกี้"],"i");function jt(e){return e.querySelectorAll("img").forEach(function(e){var t=parseInt(e.getAttribute("width")||"",10),r=parseInt(e.getAttribute("height")||"",10),n=(e.getAttribute("src")||"").toLowerCase();t<=2&&r<=2||0===t||0===r?e.remove():(/\/(pixel|beacon|track|rt)\.(gif|png|jpg)|\/pixel\?|\/beacon\?|1x1\.|spacer\.|transparent\.|blank\.(gif|png)|\/tr\?|\.gif\?.*utm_|__utm\.gif|\/pixel\.php/i.test(n)&&e.remove(),/^data:image\/(svg\+xml|png|gif|jpeg);base64,/.test(n)&&n.length<300&&e.remove())}),e}function Pt(e){return e.querySelectorAll("img").forEach(function(e){var t=e.getAttribute("src"),r=e.getAttribute("data-lazy-src")||e.getAttribute("data-src")||e.getAttribute("data-original")||e.getAttribute("data-lazy");!r||t&&!/^data:image\//i.test(t)||e.setAttribute("src",i(r))}),e}function $t(e){return e.querySelectorAll("a, button, span, div").forEach(function(e){var r=t(e.textContent).toLowerCase();At.test(r)&&o(e)<60&&e.remove(),it(r)&&o(e)<80&&e.remove()}),e.querySelectorAll("a, button, div, p, span, li").forEach(function(e){var r=t(e.textContent).toLowerCase();o(e)>200||St.test(r)&&e.remove()}),e.querySelectorAll(xt).forEach(function(e){o(e)<300&&e.remove()}),e.querySelectorAll("img").forEach(function(e){var t=(e.getAttribute("alt")||"").toLowerCase(),r=(e.getAttribute("src")||"").toLowerCase();/^close$/.test(t)&&/(close|cross|dismiss|x-icon)/i.test(r)&&e.remove()}),e.querySelectorAll(kt).forEach(function(e){var r=t(e.textContent||"");(r.length<120||/covid|coronavirus|shipping|discount/i.test(r))&&e.remove()}),e.querySelectorAll(Ct).forEach(function(e){e.remove()}),e.querySelectorAll("[class*='comment-count'], [class*='comment_count'], [class*='comments-count'], [class*='commentCount'], [class*='komentari'], [data-type='comment-count']").forEach(function(e){o(e)<30&&e.remove()}),e.querySelectorAll("img").forEach(function(e){var t=e.getAttribute("src")||"";/maps\.wikimedia\.org\/osm|\/osm-intl\/\d+\/|tile\.openstreetmap\.org|maps\.wikimedia\.org\/v4\/marker/i.test(t)&&e.remove()}),e.querySelectorAll("a, button, div, span").forEach(function(e){var r=t(e.textContent).toLowerCase(),n=(e.getAttribute("title")||"").toLowerCase();(/^(zoom in|zoom out|show in full screen|layers|leaflet|maplibre)$/.test(r)&&o(e)<40||/^(zoom in|zoom out)$/.test(n)&&o(e)<10)&&e.remove()}),e.querySelectorAll("[class*='leaflet-'], [class*='maplibre-'], [class*='map-container'], [class*='kartographer']").forEach(function(e){o(e)<200&&e.remove()}),e}function Nt(e){e.querySelectorAll("h2, h3, h4").forEach(function(e){var r=t(e.textContent||"").trim();if(r&&_t.test(r)&&e.parentElement){for(var n=[],o=e.nextElementSibling;o;){var i=o.tagName;if(/^H[1-4]$/.test(i)&&!_t.test(t(o.textContent||"").trim()))break;n.push(o),o=o.nextElementSibling}var a=0,l=0;n.forEach(function(e){a+=(e.matches&&e.matches("a[href]")?1:0)+(e.querySelectorAll?e.querySelectorAll("a[href]").length:0),l+=t(e.textContent||"").length}),a>=2&&(l<1500||a>=4)&&(e.remove(),n.forEach(function(e){e.remove()}))}}),e.querySelectorAll("div, section, aside").forEach(function(e){if(e.closest("article, main, [role='main']")){var r=t(e.textContent||"").trim();if(r&&_t.test(r.slice(0,120)))e.querySelectorAll("a[href]").length>=2&&r.length<5e3&&e.remove()}})}function Rt(e){return e.querySelectorAll("[role='navigation'], [role='menubar'], [role='menu'], [role='toolbar'], [role='complementary'], [role='banner'], [role='contentinfo'], [aria-label*='navigation' i], [aria-label*='menu' i], [aria-label*='breadcrumb' i], [aria-label*='sidebar' i]").forEach(function(e){e.remove()}),e.querySelectorAll("header").forEach(function(e){var r=e.querySelectorAll("a[href]").length,n=t(e.textContent||"");r>=4&&n.length<800&&e.remove()}),e.querySelectorAll("[class*='sidebar'], [class*='side-nav'], [class*='sidenav'], [class*='left-rail'], [class*='right-rail'], [class*='article-drawer'], [class*='toc-drawer'], [class*='table-of-contents'], [class*='mobile-menu'], [class*='mobile-nav'], [class*='hamburger-menu'], [class*='toc']").forEach(function(e){if(st()&&e.parentNode&&e.matches("[class*='sidebar'], [class*='left-rail'], [class*='right-rail']")&&!e.closest("nav, header, footer, aside, [role='navigation'], [role='menu'], [role='menubar'], [role='complementary']")&&we(e).length>0){for(;e.firstChild;)e.parentNode.insertBefore(e.firstChild,e);e.remove()}else{var r=e.querySelectorAll("a[href]").length,n=t(e.textContent||"");if(r>=3&&!e.querySelector("article, main, [role='main'], pre, blockquote, table"))e.remove();else if(r>=3&&n.length<1200){var o=n.split(/\s+/).length;o>0&&r/o>.3&&e.remove()}}}),e.querySelectorAll("div, section, ul").forEach(function(e){if(!e.closest("article, main, [role='main']")||!e.matches("article *, main *, [role='main'] *")){var r=t(e.textContent||""),n=e.querySelectorAll("a[href]").length,o=r.split(/\s+/).length;if(n>=6&&o>0&&n/o>.5&&r.length<600&&!e.querySelector("article, main, [role='main'], p, h1, h2, h3, blockquote, pre, table")){var i=Ae(e.querySelector("a[href]"));if(i&&e.contains(i.card))return;e.remove()}}}),e}function Mt(e,t){if(!e||!e.querySelectorAll)return e;var r=["fill","stroke","filter","mask","clip-path","cursor","marker","marker-start","marker-mid","marker-end"];e.querySelectorAll("template").forEach(function(e){Mt(e.content,t)});for(var n=document.createTreeWalker(e,NodeFilter.SHOW_TEXT),o=[];n.nextNode();)o.push(n.currentNode);return o.forEach(function(e){var t=e.parentElement;t&&t.closest("pre, code, kbd, samp")||(e.data=s(e.data))}),e.querySelectorAll("[href]").forEach(function(e){var r=a(e.getAttribute("href"));r?e.setAttribute("href",r):t||e.removeAttribute("href")}),e.querySelectorAll("*").forEach(function(e){/^(?:set|animate|animatemotion|animatetransform|animatecolor|discard)$/i.test(e.localName||"")?e.remove():(Array.prototype.slice.call(e.attributes||[]).forEach(function(t){/^on/i.test(t.name)&&e.removeAttribute(t.name)}),e.hasAttribute("xlink:href")&&Bt(e,"xlink:href"),e.hasAttribute("ping")&&e.removeAttribute("ping"),e.hasAttribute("archive")&&e.removeAttribute("archive"),e.hasAttribute("style")&&e.removeAttribute("style"),"http://www.w3.org/2000/svg"===(e.namespaceURI||"").toLowerCase()&&r.forEach(function(t){e.removeAttribute(t)}))}),e.querySelectorAll("style").forEach(function(e){e.remove()}),e.querySelectorAll("script").forEach(function(e){e.remove()}),e.querySelectorAll("meta").forEach(function(e){e.remove()}),e.querySelectorAll("iframe[srcdoc]").forEach(function(e){e.setAttribute("srcdoc",It(e.getAttribute("srcdoc")))}),e.querySelectorAll("img").forEach(function(e){for(var t=["data-lazy-src","data-src","data-original","data-lazy"],r=a(e.getAttribute("src")),n=0;!r&&n<t.length;n++)r=a(e.getAttribute(t[n]));r?e.setAttribute("src",r):e.removeAttribute("src"),t.forEach(function(t){e.removeAttribute(t)})}),e.querySelectorAll("[src]:not(img)").forEach(function(e){Bt(e,"src")}),e.querySelectorAll("[poster], [action], [formaction], [cite], [data], [background], [longdesc], [usemap], [profile], [manifest], [codebase], [classid], [itemid]").forEach(function(e){["poster","action","formaction","cite","data","background","longdesc","usemap","profile","manifest","codebase","classid","itemid"].forEach(function(t){e.hasAttribute(t)&&Bt(e,t)})}),e.querySelectorAll("[srcset], [imagesrcset]").forEach(function(e){["srcset","imagesrcset"].forEach(function(t){if(e.hasAttribute(t)){var r=zt(e.getAttribute(t)).map(function(e){var t=a(e.url),r=e.descriptor;return t&&Ot(r)?t+(r?" "+r:""):""}).filter(Boolean).join(", ");r?e.setAttribute(t,r):e.removeAttribute(t)}})}),e}function Bt(e,t){var r=a(e.getAttribute(t));r?e.setAttribute(t,r):e.removeAttribute(t)}function Ot(e){if(!e)return!0;if(/^\d+w$/.test(e))return parseInt(e,10)>0;if(!/^(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?x$/i.test(e))return!1;var t=Number(e.slice(0,-1));return Number.isFinite(t)&&t>0}function zt(e){for(var t=e||"",r=[],n=0;n<t.length;){for(;n<t.length&&/[\s,]/.test(t[n]);)n+=1;if(n>=t.length)break;for(var o=n;n<t.length&&!/\s/.test(t[n]);)n+=1;var i=t.slice(o,n),a="",l=i.match(/,+$/);if(l)i=i.slice(0,-l[0].length);else{for(;n<t.length&&/\s/.test(t[n]);)n+=1;for(var s=n,c=0;n<t.length;){var u=t[n];if("("===u)c+=1;else if(")"===u&&c)c-=1;else if(","===u&&!c)break;n+=1}a=t.slice(s,n).trim()}n<t.length&&","===t[n]&&(n+=1),i&&r.push({url:i,descriptor:a})}return r}function It(e){if("string"!=typeof e)return e;var t=document.createElement("template");return t.innerHTML=e,Mt(t.content),t.innerHTML}function Ht(e){for(var t=e;t&&1===t.nodeType;t=t.parentElement){if(t.hidden||t.hasAttribute("inert")||"true"===t.getAttribute("aria-hidden"))return!1;if(t.matches("nav, header, footer, aside, dialog, [role='dialog'], [aria-modal='true'], [role='navigation'], [role='menu'], [role='menubar'], [role='tooltip'], [role='listbox'], [role='tabpanel'], [role='tab'], [role='complementary'], [role='contentinfo'], [aria-expanded='false'], [aria-selected='false'], [data-state='closed'], details:not([open]), .slide, .w-slide, [aria-roledescription='slide']"))return!1;var r=(t.id||"")+" "+(t.getAttribute("class")||"");if(t.matches("[data-state='locked'], [data-auth-required='true'], [data-members-only]")||/pay[-_ ]?wall|protected|restricted|(?:members?|subscriber|auth)[-_ ]*only|premium[-_ ]*(?:content|article)/i.test(r))return!1;if(/(?:^|[\s_-])(?:carousel|swiper|slick|slider|slideshow|modal|dialog|popup|popover|tooltip|menu|navbar|accordion|tab(?:[-_]?(?:panel|pane|content))|lightbox|drawer|offcanvas|paywall|gated|restricted|consent|cookie|onetrust)(?:[\s_-]|$)/i.test(r))return!1;var n=window.getComputedStyle?window.getComputedStyle(t):null;if(n&&("none"===n.display||"hidden"===n.visibility||"collapse"===n.visibility))return!1}return!0}function Ft(e){if(!e||!e.querySelectorAll||!Ht(e))return[];var r=e.querySelector("h1, h2, h3, h4, h5, h6, [role='heading'], [class*='title' i], [class$='-name' i]"),n=r&&t(r.textContent)&&Ht(r),o=Array.from(e.querySelectorAll("p")).filter(function(e){return t(e.textContent)&&Ht(e)}),i=e.querySelector("img[alt]:not([alt=''])"),l=!1;if(!n&&o.length<2&&i&&Ht(i)){var s=e.cloneNode(!0);s.querySelectorAll("a, button, svg, script, style, noscript, template, [hidden], [inert], [aria-hidden='true']").forEach(function(e){e.remove()}),l=!!t(s.textContent)}return!n&&o.length<2&&!l?[]:(e.matches("a[href]")?[e]:Array.from(e.querySelectorAll("a[href]"))).filter(Ht).map(function(e){return a(e.getAttribute("href"))}).filter(Boolean)}function Dt(e,t){if(!e||!e.matches||e.matches("html, body")||!st())return!1;var r=e.getAttribute("class")||"",n=e.hasAttribute("data-w-id")||/(?:^|[\s_-])(?:reveal|animate|animation)(?:[\s_-]|$)/i.test(r);if(!(t=t||(window.getComputedStyle?window.getComputedStyle(e):null))||""===t.opacity||0!==Number(t.opacity))return!1;if(!(n||/transform/i.test(e.style.willChange||"")&&t.transform&&"none"!==t.transform))return!1;if(!Ht(e))return!1;var o=new Set;return e.querySelectorAll("a[href], article, li, [class*='card' i], [class*='item' i]").forEach(function(e){Ft(e).forEach(function(e){o.add(e)})}),o.size>=2||!(!e.parentElement||!Ft(e).length)&&(Array.from(e.parentElement.children).forEach(function(e){Ft(e).forEach(function(e){o.add(e)})}),o.size>=2)}function Ut(e,t){if(t=t||location.hostname||"",!e)return!1;if(Array.isArray(e)){for(var r=0;r<e.length;r+=1)if(Ut(e[r],t))return!0;return!1}return e instanceof RegExp?e.test(t):"function"==typeof e?e(t):"string"==typeof e&&(t===e||t.slice(-(e.length+1))==="."+e)}function Wt(e){return/^[\w.-]+\.[a-z]{2,}$/i.test(t(e||""))}function Gt(e,t){if(t=t||document,!e)return null;if(3===e.nodeType)return t.createTextNode(e.textContent||"");if(1!==e.nodeType)return null;var r,n=(e.tagName||"").toLowerCase(),o=n&&!/-/.test(n)?n:"div";try{r=t.createElement(o||"div")}catch(e){r=t.createElement("div")}return Array.prototype.forEach.call(e.attributes||[],function(e){if(e&&e.name&&!/^on/i.test(e.name))try{r.setAttribute(e.name,e.value)}catch(e){}}),Array.prototype.forEach.call(e.childNodes||[],function(e){var n=Gt(e,t);n&&r.appendChild(n)}),r}function Zt(e,t){try{return e.cloneNode(!0)}catch(r){return Gt(e,t)}}function Kt(e,t){for(var r=e;r&&r!==t&&1===r.nodeType;){var n=window.getComputedStyle?window.getComputedStyle(r):null;if(r.hidden)return!0;if(n&&("none"===n.display||""!==n.opacity&&0===Number(n.opacity)&&!Dt(r,n)))return!0;r=r.parentElement}return!1}function Vt(e){return Kt(e,null)}function Jt(e,t){if(!e||1!==e.nodeType)return!1;if(Kt(e,t))return!0;var r=window.getComputedStyle?window.getComputedStyle(e):null;return!(!r||"hidden"!==r.visibility&&"collapse"!==r.visibility)}function Xt(e){return Jt(e,null)}function Yt(e,t,r,n,o,i){if(e&&t){var a=!(!r||-1===r.indexOf(e)),l=a?e:n,s=Kt(e,(o?e.parentElement:l)||null);if(1!==e.nodeType||a||!s){i&&i.set(e,t),1===e.nodeType&&a&&(t.removeAttribute("hidden"),t.removeAttribute("inert"),"true"===t.getAttribute("aria-hidden")&&t.removeAttribute("aria-hidden"),t.style&&(t.style.removeProperty("display"),t.style.removeProperty("visibility"),t.style.removeProperty("opacity"),t.getAttribute("style")||t.removeAttribute("style")),t.setAttribute("data-fetchutil-controlled-list-panel","true"));var c=1===e.nodeType&&!a&&window.getComputedStyle?window.getComputedStyle(e):null,u=!(!c||"hidden"!==c.visibility&&"collapse"!==c.visibility),d=Array.prototype.slice.call(e.childNodes||[]),m=Array.prototype.slice.call(t.childNodes||[]);d.forEach(function(e,t){var n=m[t];n&&(u&&1!==e.nodeType?n.remove():Yt(e,n,r,l,!0,i))}),u&&(t.style.setProperty("visibility","visible","important"),["aria-label","title","alt","value"].forEach(function(e){t.removeAttribute(e)}),t.children.length||t.remove())}else t.remove()}}function Qt(e,t,r){if(!e||Vt(e))return(t||document).createElement("div");var n=Zt(e,t||document);return n?(Yt(e,n,null,null,!1,r),n):(t||document).createElement("div")}function er(e,t,r){var n=Array.prototype.slice.call(e.querySelectorAll(t));return n.filter(function(e,t){return!(r&&!r(e))&&!n.some(function(r,n){return n<t&&r.contains(e)})})}function tr(e,r){if(mt(e))return document.createElement("div");var n,o=Zt(e,document);return o?(r&&o.querySelectorAll(r).forEach(function(e){e.setAttribute("data-fetchutil-preserve","true")}),pt(o),(n=o)&&n.querySelectorAll&&n.querySelectorAll("button, [role='button'], input[type='button'], input[type='submit']").forEach(function(e){var r=t(e.innerText||e.textContent||e.getAttribute("value")||"");if(!e.hasAttribute("data-fetchutil-preserve")&&function(e){var r=t(e||"");return!!r&&!(r.length<30||r.length>320)&&!(rt(r)||at(r)||it(r))&&!Xe.test(r)&&r.split(/\s+/).length>=4}(r)){var n=document.createElement("p");n.textContent=r,n.setAttribute("data-fetchutil-button-text","true"),e.replaceWith(n)}}),o.querySelectorAll("button").forEach(function(e){var r=e.querySelector("[class*='http-verb']");if(r){for(var n="",o=e.querySelectorAll("span"),i=0;i<o.length;i++)if(o[i]!==r&&!o[i].querySelector("[class*='http-verb']")&&!/collapser|ellipsis|arrow/i.test(o[i].className||"")){var a=t(o[i].textContent);if(a&&/^\//.test(a)){n=a;break}}if(n){var l=document.createElement("p");l.innerHTML="<code>"+t(r.textContent).toUpperCase()+" "+n+"</code>",e.replaceWith(l)}}}),o.querySelectorAll("script, style, noscript, template, iframe, form, button, input, aside, nav, footer").forEach(function(e){var t="FOOTER"===e.tagName&&e.closest("a[href]");if(t&&W(t)&&!e.querySelector("a, button, input")){for(;e.firstChild;)e.parentNode.insertBefore(e.firstChild,e);e.remove()}else e.hasAttribute("data-fetchutil-preserve")||e.remove()}),Mt(o,!0)):document.createElement("div")}function rr(e,t){return e&&t?(e.querySelectorAll(t).forEach(function(e){e.remove()}),e):e}function nr(e){return pt(e),function(e){e&&e.querySelectorAll&&e.querySelectorAll("p, div, span, section, aside, figcaption, li, a, button").forEach(function(e){var r=t(e.textContent||"");!r||r.length>250||Lt.test(r)&&e.remove()})}(e),e.querySelectorAll("#comments, #respond, .comments-area, .comment-list, .comments-section, #disqus_thread, .disqus-comment-count, [class*='comment-respond'], .wp-block-comments, .post-comments").forEach(function(e){e.remove()}),e.querySelectorAll(bt).forEach(function(e){e.remove()}),Nt(e),e.querySelectorAll("section, div, aside, form, table, ul").forEach(function(e){(function(e){if(!e||1!==e.nodeType)return!1;if(t(e.textContent||"").length>1e3&&e.querySelectorAll("p, h1, h2, h3, h4, h5, h6").length>=2)return!1;var r=t((e.querySelector("h2, h3, h4, h5, h6, strong, b")||{}).textContent||"");if(!r){var n=t((e.firstElementChild||e).textContent||"");n.length<=40&&(r=n)}return!!at(r)&&e.querySelectorAll("a[href], li, tr").length>=3})(e)&&e.remove()}),function(e){e.querySelectorAll("aside, section, div, figure, picture").forEach(function(e){if(!e.matches("main, article, [role='main']")&&!e.querySelector("article, main, [role='main']")){var r=t(e.textContent||""),n=r.toLowerCase(),o=[e.className||"",e.id||"",e.getAttribute("data-testid")||"",e.getAttribute("data-test")||"",e.getAttribute("aria-label")||""].join(" ").toLowerCase(),i=Array.prototype.map.call(e.querySelectorAll("img, source"),function(e){return(e.getAttribute("src")||e.getAttribute("srcset")||"").toLowerCase()}).join(" "),a=qt.test(o),l=Et.test(n),s=Tt.test(i);((a||s)&&(r.length<900||l)||l&&s&&r.length<1200)&&e.remove()}})}(e),e.querySelectorAll('a[href^="#"]').forEach(function(e){var r=t(e.textContent),n=(e.className||"").toString();r&&!/anchor|heading/i.test(n)||e.remove(),/^skip\s+(to\s+)?(main\s+)?/i.test(r)&&e.remove(),/^(تخطى|تجاوز|דלג)\s/i.test(r)&&e.remove(),/^(μετάβαση στο |παράλειψη |перейти до |пропустити |bỏ qua |ข้ามไปยัง|lewati |langsung ke )/i.test(r)&&e.remove(),/^(ga naar |doorgaan naar |overslaan|spring naar |прескочи |пређи на |langkau |ir para |pular para |saltar )/i.test(r)&&e.remove(),/^(přejít na |přeskočit |gå til |spring over |hoppa till |gå vidare |pumunta sa |laktawan |hopp over |gå til innhold|anar a |saltar a )/i.test(r)&&e.remove(),/^(przejdź do |pomiń )/i.test(r)&&e.remove()}),e.querySelectorAll("a, button").forEach(function(e){var r=t(e.textContent).toLowerCase();vt.test(r)&&e.remove()}),e.querySelectorAll("p, div, span, a, button, li").forEach(function(e){var r=t(e.textContent).toLowerCase();wt.test(r)&&o(e)<80&&e.remove()}),e.querySelectorAll("p, div").forEach(function(e){(function(e){if(!e)return!1;var r=t(e.textContent);if(r.length>200)return!1;var n=e.querySelectorAll("img").length,o=e.querySelectorAll("a").length,i=t(Array.prototype.map.call(e.querySelectorAll("img[alt]"),function(e){return e.getAttribute("alt")||""}).join(" ")).toLowerCase();return n>=1&&o>=1&&(r.length<=24||/\b(status|badge|build|coverage|workflow|ci)\b/.test(i))})(e)&&e.remove()}),e.querySelectorAll("p, div, li, span, strong, button").forEach(function(e){var r,n;(ot(e.textContent)||(r=e.textContent,n=t(r||"").toLowerCase(),-1!==Ze.indexOf(n)||Qe(n,Ke)))&&e.remove()}),e.querySelectorAll("svg, .octicon").forEach(function(e){e.remove()}),e.querySelectorAll(".anchor, .heading-link, .header-anchor").forEach(function(e){var r=t(e.textContent);e.closest("h1, h2, h3, h4, h5, h6")&&r.length>=8?e.replaceWith(document.createTextNode(r)):e.remove()}),e.querySelectorAll("p, div, span, li, td").forEach(function(e){var r,n;r=e.textContent,!(!(n=t(r||""))||n.length>1200||n.length<12)&&/\b(document\.(body|getElementById|querySelector|createElement|cookie|write)|window\.(location|addEventListener|dataLayer|gtag|ga\()|function\s*\(|var\s+\w+\s*=\s*|\.push\s*\(\s*function|\.classList\.(add|remove|toggle)|\.style\.\w+\s*=|\.innerHTML\s*=|\.setAttribute\s*\(|addEventListener\s*\(|\.insertBefore\s*\(|\.appendChild\s*\(|\.parentNode\s*\.|new\s+(Date|Array|Object|RegExp|Map|Set)\s*\(|typeof\s+\w+\s*[!=]==?\s*|===?\s*['"]undefined['"]|console\.(log|warn|error)|setTimeout\s*\(|setInterval\s*\(|JSON\.(parse|stringify)|Promise\.(resolve|reject|all)|Object\.(keys|values|assign|defineProperty)|Array\.(isArray|from|prototype)|return\s+(true|false|null|void|this)\b|if\s*\([^)]*\)\s*\{|try\s*\{|catch\s*\(\w+\)\s*\{|throw\s+new\s+\w+)/.test(n)&&(n.match(/[{};()=]|function\s|var\s|const\s|let\s|return\s|\.push\(|\.call\(|\.apply\(|=>|===?|!==?|&&|\|\|/g)||[]).length>=3&&!e.querySelector("p, h1, h2, h3, h4, h5, h6, ul, ol, table, blockquote, pre, article")&&e.remove()}),e.querySelectorAll("p, div, span, li, td").forEach(function(e){var r,n;r=e.textContent,!(n=t(r||""))||n.length<40||!/\bdebug info:|fetchCache\[|\.expirationTime:|cache key:/i.test(n)||e.querySelector("p, h1, h2, h3, h4, h5, h6, ul, ol, table, blockquote, pre, article")||e.remove()}),jt(e),Pt(e),$t(e),Rt(e),e}function or(e,t,r,n,o,i){return"function"==typeof e?e(t,r,n,o,i):e}var ir=["[data-paywall]","[class*='paywall' i]","[id*='paywall' i]","[class*='subscribe-wall' i]","[class*='premium-wall' i]","[class*='piano-offer' i]"];function ar(e,t,r){return fr(e,t,r)}var lr=["article[id^='post-'] .entry-content","article[id^='post-'] .post-content","article[id^='post-'] [itemprop='articleBody']",".entry-content",".post-content","[itemprop='articleBody']"],sr=["h1.entry-title",".entry-title","article h1","main h1","h1"],cr=["[rel='author']",".author",".byline",".post-author","[class*='author' i]"],ur=[".sharedaddy",".share",".share-links",".share-buttons",".social-sharing",".social-buttons",".related-posts",".yarpp-related",".jp-relatedposts",".adsbygoogle","[class*='related' i]","[class*='recommend' i]","[class*='share' i]","[class*='advert' i]","[class*='sponsor' i]","[id*='ad-' i]","iframe","script","style"];function dr(e,r){if((r=r||{}).hostPattern&&!qr(r.hostPattern,location.hostname))return null;if(r.pathPattern&&!qr(r.pathPattern,location.pathname||""))return null;if(r.homepagePath&&qr(r.homepagePath,location.pathname||""))return null;"function"==typeof r.beforeExtract&&r.beforeExtract(e);var n=function(e){if("function"==typeof e.body)return e.body();var r=e.minVisibleBodyTextLength||0;if(!r)return Er({bodySelectors:e.bodySelectors||lr});for(var n=e.bodySelectors||lr,o=0;o<n.length;o+=1){var i=document.querySelector(n[o]);if(i&&t(i.textContent||"").length>=r)return i}return null}(r)||function(e){var r=e.restFallback;if(!r)return null;var n=function(e){if("function"==typeof e.postId)return e.postId(location);if(e.postId)return e.postId;var t=e.postIdPattern||/(?:^|\/)news_(\d+)\/?$/i,r=(location.pathname||"").match(t);return r&&r[1]}(r);if(!n)return null;var o=function(e,t){var r="function"==typeof e.path?e.path(t):e.path||"/wp-json/wp/v2/posts/"+t;try{var n=new XMLHttpRequest;return n.open("GET",r,!1),n.send(null),n.status<200||n.status>=300||!n.responseText?null:JSON.parse(n.responseText)}catch(e){return null}}(r,n),i=o&&o.content&&o.content.rendered;if(!i)return null;var a=document.createElement("div");return a.innerHTML=i,t(a.textContent||"").length<(r.minTextLength||e.minBodyTextLength||0)?null:a}(r);return n?ar(e,n,{title:mr(e,r),byline:pr(e,r),publishedTime:r.publishedTime,minTextLength:r.minBodyTextLength||r.minTextLength||0,contentType:r.contentType||"article",extra:r.extra,rewriteRoot:function(e,t){rr(e,function(e){return ur.concat(e.removalSelectors||[])}(r).join(", ")),Lr(e,r.removalTextPatterns),"function"==typeof r.rewriteRoot&&r.rewriteRoot(e,t)}}):null}function mr(e,r){return"function"==typeof r.title?r.title(e):void 0!==r.title?r.title:g(r.titleSelectors||sr)||t(e&&e.title)}function pr(e,t){return"function"==typeof t.byline?t.byline(e):void 0!==t.byline?t.byline:e&&e.byline||g(t.bylineSelectors||cr)}function fr(e,r,n){if(!r)return null;var o=!1===(n=n||{}).cloneRoot?r:tr(r);if(!o)return null;"function"==typeof n.rewriteRoot&&n.rewriteRoot(o,r),!1!==n.cleanupRoot&&nr(o);var i=Jn(o.innerHTML);!1!==n.cleanupMarkdown&&(i=mn(i)),"function"==typeof n.postProcessMarkdown&&(i=n.postProcessMarkdown(i,o,r));var a=t(i);if(!a||a.length<(n.minTextLength||0))return null;if("function"==typeof n.validateMarkdown&&!n.validateMarkdown(i,a,o,r))return null;var l=function(e,r,n,o){if("function"==typeof o.title)return t(o.title(e,r,n));if(o.title)return t(o.title);if(o.titleSelectors){var i=g(o.titleSelectors);if(i)return i}return t(e&&e.title)}(e,o,r,n);l&&!1!==n.prependTitle&&!Vr(i,l)&&(i="# "+l+"\n\n"+i);var s=t(i),c=or(n.excerpt,e,o,r,i,a);void 0===c&&!1!==n.defaultExcerpt&&(c=a.slice(0,280)||e&&e.excerpt);var u=or(n.byline,e,o,r,i,a);void 0===u&&(u=e&&e.byline);var d={title:l||e&&e.title,byline:u,excerpt:c,siteName:or(n.siteName,e,o,r,i,a)||e&&e.siteName||location.hostname,publishedTime:null===n.publishedTime?null:or(n.publishedTime,e,o,r,i,a)||e&&e.publishedTime,html:o.innerHTML,markdown:i,textContent:s,readerMode:!1,contentType:n.contentType||"article",hostAware:!1!==n.hostAware};if(n.extra){var m=or(n.extra,e,o,r,i,a)||{};Object.keys(m).forEach(function(e){d[e]=m[e]})}return d}function hr(e){var r=function(e){if("function"==typeof e.scope)return e.scope();if(e.scope)return e.scope;for(var t=e.scopeSelectors||[],r=0;r<t.length;r+=1){var n=document.querySelector(t[r]);if(n)return n}return document}(e=e||{});if(!r)return null;var n,o=document.createElement("article"),i=[];return yr(o,r,e.titleSelectors,i,!1),yr(o,r,e.leadSelectors,i,!1),yr(o,r,e.summarySelectors,i,!1),yr(o,r,e.captionSelectors||e.mediaCaptionSelectors,i,!1),n=yr(o,r,e.bodySelectors,i,!0),(!1===e.requireBody||n)&&t(o.textContent||"").length>=(e.minTextLength||0)?o:null}function gr(e,t){var r=document.createElement("article");return e&&r.appendChild(Zt(e,document)),t&&r.appendChild(Zt(t,document)),r}function yr(e,t,r,n,o){if(!r)return!1;for(var i=Array.isArray(r)?r:[r],a=!1,l=0;l<i.length;l+=1){var s=br(t,i[l]);if(s&&(vr(e,s,n)&&(a=!0),a&&!o))return!0}return a}function br(e,t){return"function"==typeof t?t(e,document):t&&1===t.nodeType?t:t?e.querySelector&&e.querySelector(t)||document.querySelector(t):null}function vr(e,r,n){var o=t(r.textContent||"");return!(!o||n.indexOf(o)>=0)&&(n.push(o),e.appendChild(Zt(r,document)),!0)}function wr(e,r){var n=function(e){if("function"==typeof e.selectedEntry)return e.selectedEntry(e);if(e.selectedEntry)return e.selectedEntry;var t="function"==typeof e.entryIdFromUrl?e.entryIdFromUrl(location):e.entryIdFromUrl;if(t){var r=document.getElementById(String(t));if(!r&&e.entryIdPrefix&&(r=document.getElementById(e.entryIdPrefix+t)),r||"function"!=typeof e.entryForId||(r=e.entryForId(t)),r)return r}if(!e.entrySelector)return null;var n=Array.prototype.slice.call(document.querySelectorAll(e.entrySelector));if(!n.length)return null;if("function"==typeof e.entryMatcher){var o=n.find(function(t){return e.entryMatcher(t,e)});if(o)return o}return n[0]}(r=r||{});if(!n)return null;"function"==typeof r.beforeBuild&&r.beforeBuild(e,n);var o=function(e,r){if("function"==typeof r.rootBuilder)return r.rootBuilder(e,r);if(!r.bodySelector)return e;var n=document.createElement("article");return function(e,t,r){(Array.isArray(r)?r:[r]).forEach(function(r){if(r){var n=t.matches&&t.matches(r)?t:t.querySelector(r);n&&e.appendChild(Zt(n,document))}})}(n,e,r.bodySelector),t(n.textContent||"")?n:null}(n,r);if(!o)return null;var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.cloneRoot=!1,i.title=void 0!==r.title?Ar(r.title,e,o,n):Sr(n,r.titleSelector),i.byline=void 0!==r.byline?Ar(r.byline,e,o,n):Sr(n,r.bylineSelector),i.publishedTime=void 0!==r.publishedTime?Ar(r.publishedTime,e,o,n):function(e,r){if(!r)return;var n=e.querySelector(r);return n?n.getAttribute("datetime")||t(n.textContent||""):void 0}(n,r.timeSelector),i.rewriteRoot=function(e,t){r.cleanupSelectors&&rr(e,Array.isArray(r.cleanupSelectors)?r.cleanupSelectors.join(", "):r.cleanupSelectors),"function"==typeof r.rewriteRoot&&r.rewriteRoot(e,t)},i.extra=function(e,t,n,o,i){var a=or(r.extra,e,t,n,o,i)||{};return a.isolatedLiveblogEntry=!0,a},ar(e,o,i)}function Ar(e,t,r,n){return"function"==typeof e?e(t,r,n):e}function Sr(e,r){if(r)for(var n=Array.isArray(r)?r:[r],o=0;o<n.length;o+=1){var i=n[o],a=e.querySelector(i.selector||i),l=i.attr?a&&a.getAttribute(i.attr):a&&a.textContent;if(l=t(l))return l}}function xr(e,r,n){n=n||{};var o=e||document.body;if(!o)return e;var i=o.cloneNode(!0);kr(i,n.removalSelectors),Cr(i,n.textRemovalPattern,n.textRemovalMaxLength);var a=t(i.textContent||"");if(n.bodyRejectPattern&&n.bodyRejectPattern.test(a))return e;if(n.hardPaywallPattern&&n.hardPaywallPattern.test(a))return e;if(n.pageHardPaywallPattern){var l=t(document.body&&(document.body.innerText||document.body.textContent)||"");if(n.pageHardPaywallPattern.test(l))return e}var s=n.paragraphSelectors||"p",c=n.paragraphMinLength||70,u=Array.prototype.filter.call(i.querySelectorAll(s),function(e){return t(e.textContent||"").length>=c}).length;return a.length<(n.minBodyTextLength||1200)||u<(void 0===n.minParagraphCount?3:n.minParagraphCount)||(kr(o,n.removalSelectors),Cr(o,n.textRemovalPattern,n.textRemovalMaxLength),kr(document,n.signalRemovalSelectors||n.removalSelectors),Cr(document,n.textRemovalPattern,n.textRemovalMaxLength),function(e){var t=e.stripAttributeSelectors;if(!t)return;document.querySelectorAll(t).forEach(function(t){if(e.stripIdPattern&&e.stripIdPattern.test(t.getAttribute("id")||"")&&t.removeAttribute("id"),e.stripClassPattern){var r=(t.getAttribute("class")||"").split(/\s+/).filter(function(t){return t&&!e.stripClassPattern.test(t)});r.length?t.setAttribute("class",r.join(" ")):t.removeAttribute("class")}})}(n),function(e,t){document.querySelectorAll("script[type='application/ld+json']").forEach(function(e){var r=e.textContent||"";"remove"!==t.structuredDataMode?/isAccessibleForFree/i.test(r)&&(e.textContent=r.replace(/("isAccessibleForFree"\s*:\s*)"?(?:false|False)"?/g,"$1true")):(t.structuredDataRemovalPattern||/isAccessibleForFree/i).test(r)&&e.remove()}),document.querySelectorAll("meta[property='article:content_tier'], meta[name='article:content_tier']").forEach(function(e){/^(locked|metered|premium)$/i.test(e.getAttribute("content")||"")&&e.remove()}),e&&(e.isAccessibleForFree=!0,e.contentTier&&(e.contentTier=null))}(r,n)),e}function kr(e,t){e&&t&&rr(e,Array.isArray(t)?t.join(", "):t)}function Cr(e,r,n){e&&r&&(n=n||280,e.querySelectorAll("p, div, span, section, aside, figcaption").forEach(function(e){var o=t(e.textContent||"");!o||o.length>n||r.test(o)&&e.remove()}))}function qr(e,t){return!e||(t=t||"",e instanceof RegExp?e.test(t):"string"==typeof e&&(t===e||t.slice(-(e.length+1))==="."+e))}function Er(e){if("function"==typeof e.body)return e.body();for(var t=e.bodySelectors||[],r=0;r<t.length;r+=1){var n=document.querySelector(t[r]);if(n)return n}return null}function Tr(e,r){return"function"==typeof e.title?e.title(r):void 0!==e.title?e.title:e.titleSelectors?g(e.titleSelectors)||t(r&&r.title):void 0}function _r(e,t){return"function"==typeof e.byline?e.byline(t):void 0!==e.byline?e.byline:e.bylineSelectors?g(e.bylineSelectors)||t&&t.byline:void 0}function Lr(e,r){(r||[]).forEach(function(r){e.querySelectorAll("p, div, span, section, a, button, h2, h3, h4, li").forEach(function(e){var n=t(e.textContent||"");n&&(r instanceof RegExp&&r.test(n)&&e.remove(),"string"==typeof r&&n===r&&e.remove())})})}function jr(e){return e=e||{},function(t){if(!qr(e.hostPattern,location.hostname))return null;if(e.pathPattern&&!qr(e.pathPattern,location.pathname||""))return null;if(e.homepagePath&&qr(e.homepagePath,location.pathname||""))return null;"function"==typeof e.beforeExtract&&e.beforeExtract(t);var r=Er(e);return r?ar(t,r,{title:Tr(e,t),titleSelectors:e.titleSelectors,byline:_r(e,t),publishedTime:e.publishedTime,minTextLength:e.minBodyTextLength||0,contentType:e.contentType||"article",extra:e.extra,rewriteRoot:function(t,r){rr(t,(e.removalSelectors||[]).join(", ")),Lr(t,e.removalTextPatterns),"function"==typeof e.rewriteRoot&&e.rewriteRoot(t,r)}}):null}}function Pr(e){e=e||{},registerHostAwareProfile(void 0===e.condition||e.condition,jr(e))}function $r(e,r,n){e.querySelectorAll(r).forEach(function(e){var r=t(e.textContent);r&&n.test(r)&&e.remove()})}function Nr(e){if(!e)return!1;var t=location.href.split("#")[0]+"#";return"#"===e||0===e.indexOf("#")||0===e.indexOf(t)}function Rr(e){var r=Array.prototype.slice.call(e.querySelectorAll("a[href]"));if(r.length<4||r.length>30)return!1;var n=r.filter(function(e){return Nr(e.getAttribute("href"))}).length,o=t(e.textContent);return n>=4&&n>=Math.ceil(.8*r.length)&&o.length<900}function Mr(e){return t((e||"").replace(/[\u200B\u200C\u200D\uFEFF]/g,"").replace(/\s*(?:Copy\s*(?:for\s+LLMs?|page(?:\s+as\s+Markdown)?(?:\s+for\s+LLMs?)?)|View\s+as\s+Markdown|Open\s+(?:this\s+page\s+as\s+Markdown|in\s+(?:ChatGPT|Claude|Cursor))|Get\s+insights\s+from\s+(?:ChatGPT|Claude)|Connect\s+to\s+Cursor|Ask\s+AI|Download\s+OpenAPI\s+spec(?:ification)?)\s*/gi,"")).replace(/\s+copy item path$/i,"").replace(/[¶#\uF0C1\uF0C6\uF08E\uF14C]+$/,"").replace(/\s*Copy$/i,"")}function Br(e,r){if(""!==(n=(location.pathname||"").replace(/\/+(?:index\.html?)?$/i,""))&&"/"!==n||!r)return!1;var n;if(!/^(docusaurus|nextra|next|sphinx|readthedocs)$/i.test(r.system||""))return!1;var o=t(document.body&&document.body.textContent||""),i=t(e&&e.textContent||""),a=document.querySelectorAll(".card, [class*='card' i], [class*='feature' i], [class*='tile' i], [class*='landing' i]").length,l=document.querySelectorAll("header a[href], nav a[href], aside a[href], [class*='sidebar' i] a[href], [class*='navbar' i] a[href]").length;return a>=3||(!!/\b(?:get started|getting started|quick start|api|reference|guides?|tutorials?)\s*\|\s*/i.test(i)||l>=8&&o.length>=1e3&&i.length>=300)}function Or(e,r){return r=r||{},$r(e,"a, button, span, div, p, li",/^(copy page|copy for llm|copy page as markdown|copy page as markdown for llms?|view as markdown|open this page as markdown|open in (?:chatgpt|claude|cursor)|get insights from (?:chatgpt|claude)|connect to cursor|download openapi spec(?:ification)?|ask about this section|ask ai|copy link|copy permalink|send feedback|edit this page|report feedback|pdf|rss|focus mode|skip to main content|skip to content|copy item path|view source|view on github|report a problem with this content|open menu|open sidebar|search|settings|help|search or ask copilot|expand description|show more|show less|expand|collapse|javascripttypescript|typescriptjavascript)$/i),$r(e,"h2, h3, h4, h5, p, div, span, li",/^(on this page|in this article|table of contents|last updated.*|api preferences|select language:.*|breadcrumbs?)$/i),e.querySelectorAll("section, div").forEach(function(e){var r=t(e.textContent);r&&(/^feedback\b/i.test(r)&&r.length<500&&e.querySelectorAll("a, button").length>=1||/^(was this page helpful|is this page helpful)\??$/i.test(r.split("\n")[0])&&r.length<300)&&e.remove()}),$r(e,"p, div, span",/^last modified\s/i),e.querySelectorAll("section, div, aside, form").forEach(function(e){var r=t(e.textContent);if(r){var n=e.querySelector("h2, h3, h4");n&&/^(subscribe|newsletter|stay up[- ]to[- ]date|get (?:the )?latest|sign up for (?:our )?(?:newsletter|updates)|mailing list)$/i.test(t(n.textContent))&&r.length<800&&e.remove()}}),$r(e,"p, div, span, a",/^(privacy\s*policy|terms\s+(?:of\s+(?:service|use)|and\s+conditions)|powered by [a-z]+)$/i),e.querySelectorAll("h1, h2, h3, h4, h5, h6").forEach(function(e){var t=Mr(e.textContent);t&&(e.textContent=t)}),e.querySelectorAll("nav, [aria-label*='breadcrumb' i], ol[aria-label*='breadcrumb' i]").forEach(function(e){e.remove()}),e.querySelectorAll("a[href]").forEach(function(e){var r=t(e.textContent),n=t(e.getAttribute("title"));e.closest("h1, h2, h3, h4, h5, h6")&&r.length>=8||Nr(e.getAttribute("href"))&&(!r||r.length<40||/link for this heading/i.test(n)||/^skip to (?:main )?content$/i.test(r))&&e.remove()}),e.querySelectorAll("section, div, ul, ol").forEach(function(e){var r=t(e.textContent);r&&(/^on this page\b/i.test(r)&&r.length<1200||Rr(e)||function(e){if(e.closest&&e.closest(".landing-card, .card--fullwidth"))return!1;var r=Array.prototype.slice.call(e.querySelectorAll("a[href]"));if(r.length<2||r.length>8)return!1;var n=t(e.textContent);return!(!n||n.length>220)&&!e.querySelector("p, strong, b, h1, h2, h3, h4, h5, h6")&&r.every(function(e){return t(e.textContent).length>0&&t(e.textContent).length<40})}(e))&&e.remove()}),r.removeTryIt&&(e.querySelectorAll("section, div").forEach(function(e){var r=t(e.textContent),n=e.querySelector("h2, h3, h4");(n&&/^try it$/i.test(t(n.textContent))||/^try it\b/i.test(r)&&r.length<600)&&e.remove()}),$r(e,"h2, h3, h4",/^try it$/i)),r.removeCookiePrefs&&$r(e,"h1, h2, h3, p, div, span",/^(select your cookie preferences|customize cookie preferences|unable to save cookie preferences)$/i),r.removeMarketingTips&&e.querySelectorAll("section, div, aside").forEach(function(e){var r=t(e.textContent);/\b(tip|note)\b/i.test(r)&&/(workshop|builder center|sign up|training|studio)/i.test(r)&&r.length<600&&e.remove()}),e}function zr(e,r){for(var n=0;n<r.length;n+=1)for(var o=e.querySelectorAll(r[n]),i=0;i<o.length;i+=1){var a=t(o[i].textContent);if(a)return a}return null}function Ir(e,t,r){return Array.prototype.slice.call(e.querySelectorAll(t)).filter(function(t){for(var n=t.parentElement;n&&n!==e;){if(n.matches&&n.matches(r))return!1;n=n.parentElement}return!0})}function Hr(e,r,n){for(var o=0;o<r.length;o+=1)for(var i=Ir(e,r[o],n),a=0;a<i.length;a+=1){var l=t(i[a].textContent);if(l)return l}return""}function Fr(e){for(var t=0;t<e.length;t+=1){var r=document.querySelector(e[t]);if(r)return r}return null}function Dr(e){return t([location.hostname,e&&e.siteName,e&&e.title,document.title].join(" "))}function Ur(e,t,r){return e?("function"==typeof t&&(e=t(e,r)),Mr(e||"")||null):null}function Wr(e,t,r,n){var o=g(t||[]);return o||"function"!=typeof r||(o=r(e)),o||"string"!=typeof r||(o=r),Ur(o,n,e)}function Gr(e,t,r){t=t||"h1, h2, h3, h4, h5, h6",r=r||function(e){return Mr(e)},e.querySelectorAll(t).forEach(function(e){var t=r(e.textContent,e);t&&(e.textContent=t)})}function Zr(e){var t=r((location.hash||"").replace(/^#/,"")).trim();if(!t)return null;var n=document.getElementById(t)||function(e){if(!e)return null;for(var t=document.querySelectorAll("a[name]"),r=0;r<t.length;r+=1)if((t[r].getAttribute("name")||"")===e)return t[r];return null}(t);return n&&(e===n||e.contains(n))?n:null}function Kr(e){var t=Zr(e);if(!t)return null;var r=t.matches&&t.matches("h1, h2, h3, h4, h5, h6")?t:t.querySelector("h1, h2, h3, h4, h5, h6");return!r&&t.matches&&t.matches("a[name]")&&(r=t.nextElementSibling),Mr((r||t).textContent)||null}function Vr(e,r){if(!(r=t(r).replace(/[\`*_]/g,"")))return!1;var n=t(r).toLowerCase();return(e||"").split("\n").slice(0,8).map(function(e){return t(e).replace(/^#+\s*/,"").replace(/^\[([^\]]+)\]\([^)]*\)$/,"$1").replace(/[\`*_]/g,"")}).filter(Boolean).some(function(e){var r=t(e).toLowerCase();return r===n||0===r.indexOf(n)})}function Jr(e){return t(e||"").replace(/([a-z0-9])((?:Default:|Can be one of:|For more information:|Example:|Required))/g,"$1 $2").replace(/([a-z])([A-Z][a-z])/g,"$1 $2")}function Xr(e,t,r){return Qr(e,Fr(t),r)}function Yr(e,t,r){if(!(t=t||Gs(e))||t.system!==r.system)return null;var n=r.headingFormatter||function(e){return Mr(e)},o=r.titleFormatter||r.headingFormatter,i={preserveSelector:r.preserveSelector,rewriteRoot:function(e){r.removeSelectors&&e.querySelectorAll(r.removeSelectors).forEach(function(e){e.remove()}),r.removeTextPattern&&$r(e,r.removeTextSelector||"a, button, div, p, span, li",r.removeTextPattern),"function"==typeof r.rewriteRoot&&r.rewriteRoot(e,a),!1!==r.headingFormatter&&Gr(e,r.headingSelector,n)}},a=null;!1===r.preferFragmentTitle?(a=Wr(e,r.titleSelectors,r.fallbackTitle,o),i.title=a):(i.titleSelectors=r.titleSelectors,i.fallbackTitle=r.fallbackTitle,i.titleFormatter=o);var l=Fr(r.rootSelectors);return"function"==typeof r.contentType?i.contentType=r.contentType(l,t):r.contentType&&(i.contentType=r.contentType),Qr(e,l,i)}function Qr(e,t,r){if(r=r||{},!t)return null;var n={};if(Object.keys(r).forEach(function(e){"titleSelectors"!==e&&"fallbackTitle"!==e&&"preferFragmentTitle"!==e&&"titleFormatter"!==e&&(n[e]=r[e])}),!n.title&&(r.titleSelectors||r.fallbackTitle)){var o=!1===r.preferFragmentTitle?null:Kr(t);o=Ur(o,r.titleFormatter,e)||Wr(e,r.titleSelectors,r.fallbackTitle,r.titleFormatter),n.title=o}return en(e,t,n)}function en(e,r,n){if(!r)return null;var o,i=!1===(n=n||{}).focusFragment?r:function(e){var r=Zr(e);if(!r)return e;for(var n=r;n&&n!==e;){var o=t(n.textContent);if(/^(section|article|div|li|dt|dd|main)$/i.test(n.tagName||"")&&o.length>=20)return n;n=n.parentElement}return r}(r),a=tr(i,n.preserveSelector);if(nr(a),Or(a,n),"function"==typeof n.rewriteRoot)try{n.rewriteRoot(a)}catch(e){}try{o=Jn(a.innerHTML).trim()}catch(e){o=""}"function"==typeof n.postProcessMarkdown&&(o=n.postProcessMarkdown(o,a));var l=Mr(n.title||Kr(r)||zr(a,["h1","header h1","h2"])||"")||null,s=n.description||zr(a,["p"]);return o?(l&&!Vr(o,l)&&(o="# "+l+"\n\n"+o),{title:l||e.title,byline:e.byline,excerpt:s||e.excerpt,siteName:e.siteName||location.hostname,publishedTime:e.publishedTime,html:a.innerHTML,markdown:o,textContent:t(o),docsLike:!0,hostAware:!1!==n.hostAware,readerMode:!1,contentType:n.contentType||"article"}):l||s?je({title:l||e.title,description:s||e.excerpt,siteName:e.siteName||location.hostname,docsLike:!0,hostAware:!1!==n.hostAware}):null}function tn(e){return/^\s*(?:(?:[-+*]|\d{1,9}[.)])\s+\S|\|.*\|\s*$)/.test(e)}var rn=Ie(["Реклама","Рекламний блок","Рекламний матеріал","Διαφήμιση","Iklan","Quảng cáo","โฆษณา","Sponsorlu","Reklama?","Advertentie","Реклама","Оглас","Publicidade","Anúncio","Annons","Annonce","Reklame","Annonsørinnhold","Kommersielt innhold","Contingut patrocinat"],"\\s*:?"),nn=Ie(["(?:Join|Follow)\\s+(?:us\\s+)?on\\s+(?:Telegram|WhatsApp|Instagram|Facebook|YouTube|Twitter|X)","(?:Join|Follow)\\s+(?:our\\s+)?(?:Telegram|WhatsApp)\\s+(?:Group|Channel)","(?:Download|Get|Install)\\s+(?:our|the)\\s+(?:App|Mobile App)"]),on=He(["Підписуйтесь на наш|Приєднуйтесь до нас|Підписатися на (?:телеграм|канал)|Читай(?:те)? також у|Ми у (?:телеграмі|фейсбуці|інстаграмі)","Ακολουθήστε μας|Εγγραφείτε","Ikuti kami di|Gabung (?:di )?(?:Telegram|WhatsApp)|Berlangganan","Theo dõi chúng tôi","Volg ons|Schrijf je in|Abonneer je|Meld je aan voor","Пратите нас|Претплатите се|Пријавите се|Pratite nas|Pretplatite se|Prijavite se","Ikuti kami|Langgan(?:i)?|Sertai (?:kami|saluran)","Siga-nos|Inscreva-se|Assine|Acompanhe-nos","Sledujte nás|Odebírejte|Přihlaste se k odběru|Připojte se","Följ oss|Prenumerera|Registrera dig","Følg os|Abonner|Tilmeld dig","Følg oss|Abonner på|Meld deg på|Registrer deg","Subscriu-te|Fer-se subscriptor|Si ets subscriptor|Suma't a|Quins són els avantatges|Fes-te subscriptor|Fes-te'n subscriptor","გამოიწერეთ|შემოგვიერთდით|მოგვყევით","වැඩි විස්තර කියවන්න|අපව අනුගමනය කරන්න","Bizə qoşulun|Abunə olun|Bizi izləyin"]),an=He(["Subskrybuj|Zasubskrybuj|Zapisz się na newsletter|Dołącz do nas|Obserwuj nas|Śledź nas","Dziękujemy,?\\s*że\\s*przeczytała?(?:ś|ś\\/eś|eś)?","Bądź na bieżąco","Obserwuj nas w Google","Dalszy ciąg (?:artykułu|materiału) (?:pod |poniżej )?(?:materiałem wideo|wideo|galerią|zdjęciem)","Sprawdź,?\\s*gdzie kupisz","Materiał (?:sponsorowany|promocyjny|partnerski)"]).concat(function(e){return e.map(function(e){return Ie([e])})}(["Zobacz więcej|Czytaj więcej|Czytaj dalej|Pokaż więcej|Więcej informacji","Zaloguj się|Zarejestruj się|Zaloguj|Załóż konto|Moje konto","Udostępnij|Skomentuj|Komentarze\\s*\\d*|Dodaj komentarz|Napisz komentarz","Autopromocja"])),ln=Ie(["Met een account kan je","Log in of maak een account","Acesse seus artigos salvos","Uma só conta para todos","Maak een account aan","Cadastre-se","Faça login","Faça seu login","Crie sua conta","Meld je aan","Inloggen","Entrar na sua conta","Sign in to save","Create an account","Log in to continue","Log in","Sign in","Create account","Subscribe to read","Daftar atau masuk","Giriş yap","Logg inn","Opprett konto","For å kunne lagre","Inicia sessió","Crea un compte","Registra't","පිවිසෙන්න","ගිණුමක් සාදන්න","Daxil ol","Hesab yaradın"],"\\b.*"),sn=new RegExp("\\[([^\\]]*)\\]\\(https?:\\/\\/(?:[a-z0-9-]+\\.)*"+Fe+"\\/[^)]*\\)","gi"),cn=new RegExp("^\\s*https?:\\/\\/(?:[a-z0-9-]+\\.)*"+Fe+"\\b[^\\n]*$","gmi"),un=[/Was (?:this )?(?:summary |article |page )?helpful\?\s+Thank you\s+(?:for\s+)?feedback/i,/Trusted by Consumers\.\s+Recognized by AI\./i,/(?:^|\n|\s{2,})(?:AI[-\s]generated summary|AI summary|Related content|Related articles|You May Also Like|Need (?:to )?Find (?:an? )?Attorney\?|For Legal Professionals|Get updates|Subscribe to read|Create account|Sign in)\b/i];function dn(e,t){var r=e;return t.forEach(function(e){r=r.replace(e,"")}),r}function mn(e){var r=function(e){var t=[];return{markdown:String(e||"").replace(/(^|\n)(```[^\n]*\n[\s\S]*?\n```)/g,function(e,r,n){var o="@@FETCH_UTIL_FENCE_"+t.length+"@@";return t.push(n),r+o}),blocks:t}}(e),n=r.markdown.replace(/Your browser doesn't support HTML5 audio\s*/g,"").replace(/^\s*[-*]\s*$/gm,"").replace(/<iframe\b[^>]*>?(?:<\/iframe>)?/gi,"").replace(/<iframe\b[^\n]*/gi,"").replace(/document\s*\.\s*body\s*\.\s*classList\s*\.\s*add\s*\([^)]*\)\s*;?/g,"").replace(/\biaw\s*\.\s*cmd\s*\.\s*push\s*\([^)]*\)\s*;?/g,"").replace(/\biaw\s*\.\s*display\s*\([^)]*\)\s*;?\s*\}\s*\)\s*;?/g,"").replace(/^\s*(?:var|let|const)\s+\w+\s*=\s*[^;]+;\s*$/gm,"").replace(/\bSkip Ad\b/g,"").replace(/\bContinue watching\s*(?:after the ad)?/gi,"").replace(/Visit Advertiser website/gi,"").replace(/\bExplore\b[^\n]{0,120}S\W*U\W*B\W*S\W*C\W*R\W*I\W*B\W*E\b/gi,"").replace(/\bExplore\b[^\n]{0,100}\bSUBSCRIBE\b/gi,"").replace(/\bExplore\s+[A-Z][A-Za-z0-9 .!&-]{0,80}\d+%\s+SUBSCRIBE\b/gi,"").replace(/\bExplore\s+(?:[A-Z][A-Za-z0-9&.-]+\s+)?\d+%\s+SUBSCRIBE\b/gi,"").replace(/\b\d+%[^\n]{0,60}S\W*U\W*B\W*S\W*C\W*R\W*I\W*B\W*E\b/gi,"").replace(/\b\d+%\s+SUBSCRIBE\b/g,"").replace(/\b[A-Z][A-Za-z0-9 .&-]{1,60}\s+AIchevron_right[A-Z][A-Za-z0-9 .&-]{0,80}\b/g,"").replace(/\b[A-Z][A-Za-z0-9 .&-]{0,60}\s+AI(?:chevron_right)?\s*AI-generated answers? from [^.\n]{0,180}\.\s*AI makes mistakes,?\s*so verify(?: using| with)? [^.\n]{0,160}\.?/g,"").replace(/\bAI-generated answers? from [^.\n]{0,180}\.\s*AI makes mistakes,?\s*so verify(?: using| with)? [^.\n]{0,160}\.?/gi,"").replace(/,?\s*so verify(?: using| with)? [A-Z][A-Za-z0-9 .&-]{0,80} articles\.?/g,"").replace(/GO TO PAGE\.?/g,"").replace(/^\s*#{1,6}\s*$/gm,"").replace(/\bAdvertisement\s+\d+\/\d+\b/gi,"").replace(/^\s*Advertisement\s*$/gim,"").replace(rn,"").replace(/Definition Source\s+All sources\s+\w+/gi,"").replace(/^.*\bdebug info:.*(?:\n.*(?:fetchCache|expirationTime|cache key|seconds remaining|All fetchCache).*)*$/gim,"").replace(/!\[close\]\([^)]*(?:close|cross)[^)]*\)/gi,"").replace(/^\s*#\s*Tags?\s*$/gim,"").replace(/^\s*Comments?\s*\d*\s*$/gim,"").replace(/^\s*Leave a Reply\s*(?:Cancel reply)?\s*$/gim,"").replace(/^\s*Loading comments\.*\s*$/gim,"").replace(/Current Time\s+\d+:\d+\s*/gi,"").replace(/Duration\s+[-\\]?:?[-\\]?\s*/gi,"").replace(/Remaining Time\s+-?\d+:\d+\s*/gi,"").replace(/Loaded:\s*\d+%?\s*/gi,"").replace(/Progress:\s*\d+%?\s*/gi,"").replace(/^\s*Volume\s+\d+%\s*$/gim,"").replace(/^\s*Rewind\s+\d+\s+Seconds\s*$/gim,"").replace(/^\s*Chromecast\s*$/gim,"").replace(/^\s*Closed Captions\s*$/gim,"").replace(/^\s*Settings\s*$/gim,"").replace(/^\s*Fullscreen\s*$/gim,"").replace(/^\s*Learn More\s*$/gim,"").replace(/^\s*This website uses cookies\..*$/gim,"").replace(/^\s*By accepting cookies.*$/gim,"").replace(/^\s*Cookie declaration last updated.*$/gim,"").replace(/^\s*Consent ID:.*$/gim,"").replace(/^\s*Change your consent.*$/gim,"").replace(/^\s*Your current state:.*$/gim,"").replace(/^\s*(?:Necessary|Preference|Statistics|Marketing)\s*\(\d+\)\s*$/gim,"").replace(/^\s*Video Player is loading\.\s*$/gim,"").replace(/^\s*Play Video\s*$/gim,"").replace(/^\s*Playback Speed\s*$/gim,"").replace(nn,"").replace(/^\s*(?:Skip to main content|Skip to content|View on GitHub|Report a problem with this content|Copy item path|Open menu|Open Sidebar|Search or ask Copilot|API preferences|JavaScriptTypeScript|TypeScriptJavaScript)\s*$/gim,"").replace(/^\s*\/\s*$/gm,"").replace(/^\s*\*\s+\*\s+\*\s*$/gm,"").replace(/^\s*(?:show sidebar|hide sidebar|toggle sidebar|show attributes?|hide attributes?|show child attributes?|hide child attributes?)\s*$/gim,"").replace(/\s+(?:Hide|Show)\s+(?:child\s+)?attributes?\s+(?:Hide|Show)\s+(?:child\s+)?attributes?\s*$/gm,"").replace(/Stay organized with collections\s*Save and categorize content based on your preferences\.?\s*/gi,"").replace(/!\[]\([^)]+\)\s*/g,"").replace(/\[]\([^)]+\)\s*/g,"").replace(/!\[[^\]]*\]\(data:image\/(?:png|gif|jpe?g|webp);base64,[A-Za-z0-9+/=]{500,}\)\s*/gi,"").replace(/^\s*([-*])\s+\[(?:!\[[^\]]*\]\([^)]+\)\s*)?\n+\s*#{1,6}\s*([^\n]+)\n+\s*\]\(([^)]+)\)/gm,"$1 [$2]($3)").replace(/^(\s*[-*]\s*)!#{1,6}\s*/gm,"$1").replace(/^(\s*[-*]\s*)#{1,6}\s*/gm,"$1").replace(/^\s*\[\s*\n+\s*(#{1,6})\s+([^\n]+)\n+\s*\]\((https?:\/\/[^)]+)\)\s*$/gm,"$1 [$2]($3)").replace(/^\s*\]\((https?:\/\/[^)]+)\)\[\s*\n+\s*([^\n\[\]#][^\n]*)\n+\s*\]\(\1\)\s*$/gm,"[$2]($1)").replace(/^\s*\[\s*$/gm,"").replace(/^\s*\]\(https?:\/\/[^)]+\)\[?\s*$/gm,"").replace(/^\s*\]\s*$/gm,"").replace(/\[([^\]]*\d)\]\(([^)]*\/section-[^)]+)\)_([a-z])_\\?-([0-9])/gi,"[$1$3-$4]($2)").replace(/\[(\d+)\]\(([^)]*\/link\/uscode\/[^)]+)\)_([a-z])_/gi,"[$1$3]($2)").replace(/(\b\d+)_([a-z])_,_/gi,"$1$2,").replace(/(\b\d+)_([a-z])_\\?-/gi,"$1$2-").replace(/(\b\d+)_([a-z])_(?=[\s),.;])/gi,"$1$2").replace(/^\s*Last modified\s+\w+\s+\d{1,2},\s+\d{4}.*$/gim,"").replace(ln,"").replace(/(!?\[[^\]\n]*\]\([^\)\s]+)\s+"[^"\n]*\bundefined\b[^"\n]*"\)/gi,"$1)").replace(/!\[\s*undefined\s*\]\(([^)]+)\)/gi,"").replace(/\s*-->\s*/g," ").replace(/\s*<!--\s*/g," ").replace(/(?:^|\n)\s*\d{1,3}\s+\d{1,3}\s*(?:\n|$)/g,"\n").replace(sn,"").replace(cn,"").replace(/\n{3,}/g,"\n\n").trim();return n=dn(n,on),n=function(e){for(var r=(e||"").split("\n"),n=0,o=0;o<r.length&&n<4;o++){var i=r[o];if(t(i)&&!/^#{1,6}\s/.test(i)){n++;var a=t(i);if(/\bIntroduction & Top Questions/.test(a)&&/\bReferences & Edit History\b/.test(a)&&/\bQuizzes\b/.test(a)&&/\b(?:Written by|Fact-checked by|Last updated)\b/.test(a)){var l=a.search(/\b(?:History\s+)?Top Questions\s+What\b/);if(!(l<0)){r[o]=a.slice(l).replace(/^History\s+/,"").replace(/\?([A-Z])/g,"? $1");break}}}}return r.join("\n")}(n=dn(n,an)),n=function(e){var t=e||"";if(t.length<300)return t;var r=Math.floor(.35*t.length),n=-1;return un.forEach(function(e){for(var o,i=new RegExp(e.source,e.flags.indexOf("g")>=0?e.flags:e.flags+"g");null!==(o=i.exec(t));)o.index>=r&&(n<0||o.index<n)&&(n=o.index),o.index===i.lastIndex&&(i.lastIndex+=1)}),n>=0?t.slice(0,n).trim():t}(n),n=function(e){var r=null,n=!1;return(e||"").split("\n").map(function(e){if(/^\s*```/.test(e))return n=!n,e;if(n)return e;var o=e.match(/^\s*#{1,6}\s+(.+)$/);if(o)return r=t(o[1].replace(/\[([^\]]+)\]\([^)]+\)/g,"$1").replace(/[`*_]/g,"")),e;if(!t(e))return e;if(r&&!/^\s*(?:[-*+]\s+|\d+[.)]\s+|[|>])/.test(e)){var i=e.replace(/^(\s*)([a-z][A-Za-z'-]{3,})(\b)/,function(e,t,n,o){for(var i=n.toLowerCase(),a=r.match(/[A-Za-z][A-Za-z'-]{4,}/g)||[],l=0;l<a.length;l+=1){var s=a[l];if(s.slice(1).toLowerCase()===i)return t+s.charAt(0)+n+o}return e});return r=null,i}return r=null,e}).join("\n")}(n),n=function(e){var t=e.split("\n"),r=[],n=null;t.forEach(function(e){var t=e.trim();t===n&&t?tn(e)&&r.push(e):(n=t,r.push(e))});var o={};(t=r).forEach(function(e){var t=e.trim();!t||/^#{1,6}\s/.test(t)||tn(e)||(o[t]=(o[t]||0)+1)});var i={};return t.filter(function(e){var t=e.trim();return!!(!t||/^#{1,6}\s/.test(t)||tn(e)||(o[t]||0)<4)||!i[t]&&(i[t]=!0,!0)}).join("\n")}(n=n.split("\n").map(function(e){return e.length<120||/\[[^\]]+\]\([^)]+\)/.test(e)?e:e.replace(/(.{50,300}?[.!?])(?:\s*\1)+/g,"$1")}).join("\n")),function(e,t){return e.replace(/@@FETCH_UTIL_FENCE_(\d+)@@/g,function(e,r){return t[Number(r)]||""})}(n.replace(/\n{3,}/g,"\n\n").trim(),r.blocks)}function pn(e){return String(e||"").replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function fn(e){return String(e||"").replace(/^Copy(?: to clipboard)?\s*/i,"").replace(/\u00b6/g,"").replace(/\r\n?/g,"\n").replace(/^\n+|\n+$/g,"")}function hn(e,t){var r=(String(t).match(/`+/g)||[]).reduce(function(e,t){return Math.max(e,t.length+1)},3),n="`".repeat(r);return"\n\n"+n+e+"\n"+t+"\n"+n+"\n\n"}function gn(e){var r=t([e&&e.className,e&&e.getAttribute&&e.getAttribute("data-language"),e&&e.getAttribute&&e.getAttribute("data-testid"),e&&e.parentElement&&e.parentElement.className].join(" ")).toLowerCase();return/python|pycon/.test(r)?"python":/javascript|js\b/.test(r)?"javascript":/typescript|tsx|ts\b/.test(r)?"typescript":/json/.test(r)?"json":/yaml|yml/.test(r)?"yaml":/bash|shell|sh\b|curl/.test(r)?"bash":""}function yn(e){e.querySelectorAll("div.redoc-json, div[class*='redoc-json']").forEach(function(e){var t=function(e){var t=[];!function e(r){for(var n=r.childNodes,o=0;o<n.length;o++){var i=n[o];if(3===i.nodeType){var a=i.textContent;a&&!/^\s*$/.test(a)&&t.push(a)}else if(1===i.nodeType){var l=i.nodeName,s=i.className||"";if("BUTTON"===l)continue;if(/\bellipsis\b/.test(s))continue;if("SPAN"===l){var c=i.textContent;c&&!/^\s*$/.test(c)&&t.push(c);continue}e(i)}}}(e);var r=t.join("").replace(/,(\s*[}\]])/g,"$1");try{var n=JSON.parse(r);return JSON.stringify(n,null,2)}catch(e){return r.replace(/\s+/g," ").trim()}}(e);if(t){var r=document.createElement("pre"),n=document.createElement("code");n.setAttribute("data-language","json"),n.textContent=t,r.appendChild(n),e.replaceWith(r)}})}function bn(e){return t(e).toLowerCase().replace(/\s+/g,"")}function vn(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return null;if(/^(p|div|section|article|header|h[1-6]|li)$/i.test(e.tagName))return e;for(var t=0;t<e.children.length;t+=1){var r=vn(e.children[t]);if(r)return r}return null}function wn(e){var r=function(e){for(var t=e.cloneNode(!0),r=Array.prototype.slice.call(t.children),n=1;n<r.length;n+=1){var o=vn(r[n-1]),i=vn(r[n]);if(o&&i){var a=bn(o.textContent),l=bn(i.textContent);a&&a===l&&i.remove()}}return t}(e),n=[];return Array.prototype.forEach.call(r.childNodes,function(e){var r=t(e.textContent);r&&n.push(r)}),n.length?n.join(" "):r.textContent}function An(e){var r=Array.prototype.map.call(e.querySelectorAll("thead th, thead td"),function(e){return t(e.textContent).toLowerCase()}),n=t((e.querySelector("caption")||{}).textContent).toLowerCase(),o=Array.prototype.slice.call(e.querySelectorAll("tbody tr"));if(!o.length)return null;if(e.querySelector("td[kind='field'][title], th[kind='field'][title]")){var i=o.map(function(e){for(var r=e.querySelector("td[kind='field'][title], th[kind='field'][title]"),n=e.querySelectorAll("th, td"),o=null,i=0;i<n.length;i+=1)if(n[i]!==r){o=n[i];break}if(!r||!o)return null;var a=t(r.getAttribute("title")||(r.querySelector(".property-name")||{}).textContent||r.textContent);if(!a)return null;var l=/\brequired\b/i.test(t(e.textContent)),s=[];Array.prototype.forEach.call(o.querySelectorAll(":scope > span, :scope > code, :scope > div, :scope > strong, :scope > em"),function(e){if(!e.querySelector("p, ul, ol, table, pre")){var r=t(e.textContent);r&&!/^required$/i.test(r)&&s.push(r)}});var c=Array.prototype.map.call(o.querySelectorAll("p, li"),function(e){return t(e.textContent)}).filter(Boolean).join(" "),u=[];s.length&&u.push(s.shift()),s.forEach(function(e){/^(Default:|Example:|Enum:)/i.test(e)?u.push(e):c?c+=" "+e:c=e}),l&&u.push("required");var d="- `"+a+"`";return u.length&&(d+=" ("+u.join("; ")+")"),c&&(d+=": "+c),d}).filter(Boolean);return i.length?i.join("\n"):null}if(1===r.length&&/name, type, description/.test(r[0])||/parameter/.test(n)){var a=o.map(function(e){return function(e){var r=e.querySelector("div > div")||e.firstElementChild||e,n=r.querySelector("code, strong, b"),o=t(n&&n.textContent);if(!o)return null;var i=Jr(r.textContent),a=t(i.replace(new RegExp("^"+pn(o)),"")).replace(/\brequired\b/i,""),l=/\brequired\b/i.test(i),s=Array.prototype.map.call(e.querySelectorAll("p, li"),function(e){return Jr(e.textContent)}).filter(Boolean).join(" ");s||(s=Jr(e.textContent).replace(new RegExp("^"+pn(o)+"\\s*"+pn(a)),"").trim());var c="- `"+o+"`";if(a||l){var u=[];a&&u.push(a),l&&u.push("required"),c+=" ("+u.join(", ")+")"}return s&&(c+=": "+s),c}(e.querySelector("td, th"))}).filter(Boolean);return a.length?a.join("\n"):null}if(r.length>=2&&/status code/.test(r[0])&&/description/.test(r[1])){var l=o.map(function(e){var r=e.querySelectorAll("th, td");if(r.length<2)return null;var n=t(r[0].textContent),o=Jr(r[1].textContent);return n&&o?"- `"+n+"`: "+o:null}).filter(Boolean);return l.length?l.join("\n"):null}return null}function Sn(e,r){var n=An(e);if(n)return n;if(e.querySelector("table")&&!e.querySelector("th, caption"))return String(r||"").trim();var o=Array.prototype.map.call(e.querySelectorAll("tr"),function(e){return Array.prototype.map.call(e.querySelectorAll("th, td"),function(e){return t(wn(e)).replace(/\|/g,"\\|")})}).filter(function(e){return e.length>0});if(!o.length)return"";var i=o.reduce(function(e,t){return Math.max(e,t.length)},0),a=(o=o.map(function(e){for(;e.length<i;)e.push("");return e}))[0],l=a.map(function(){return"---"}),s=o.slice(1);return[a,l].concat(s).map(function(e){return"| "+e.join(" | ")+" |"}).join("\n")}function xn(e,t){var r="!"===e[t],n=r?t+1:t;if("["!==e[n]||$n(e,t))return null;var o=Ln(e,n);if(o<0||"("!==e[o+1])return null;var i=function(e,t){var r=t+1,n=r;for(;r<e.length&&/\s/.test(e[r]);)r+=1;if(/\n[ \t]*\n/.test(e.slice(n,r)))return null;var o=r,i="";if("<"===e[r]){var a=kn(e,r);if(a<0)return null;i=e.slice(r+1,a),r=a+1}else{for(var l=0;r<e.length;){var s=e[r];if("\\"!==s){if("<"===s||">"===s||/[\u0000-\u001f\u007f]/.test(s)&&!/\s/.test(s))return null;if("("===s)l+=1;else if(")"===s){if(!l)break;l-=1}else if(/\s/.test(s)){if(l)return null;break}r+=1}else r+=2}if(l)return null;i=e.slice(o,r)}var c=r,u=r;for(;r<e.length&&/\s/.test(e[r]);)r+=1;if(/\n[ \t]*\n/.test(e.slice(u,r)))return null;if(")"===e[r])return{url:i,suffix:e.slice(c,r),end:r+1};var d=Cn(e,r);if(d<0)return null;r=d;for(;r<e.length&&/\s/.test(e[r]);)r+=1;return")"!==e[r]||/\n[ \t]*\n/.test(e.slice(d,r))?null:{url:i,suffix:e.slice(c,r),end:r+1}}(e,o+1);return i?{image:r,label:e.slice(n+1,o),url:i.url.replace(/\\([\\()])/g,"$1"),suffix:i.suffix,end:i.end}:null}function kn(e,t){for(var r=t+1;r<e.length;r+=1)if("\\"===e[r])r+=1;else{if("\n"===e[r]||"<"===e[r])return-1;if(">"===e[r])return r}return-1}function Cn(e,t){var r=e[t],n="("===r?")":r;if('"'!==r&&"'"!==r&&"("!==r)return-1;for(var o=t+1;o<e.length;o+=1)if("\\"===e[o])o+=1;else{if(e[o]===n)return o+1;if("\n"===e[o]&&"\n"===e[o+1])return-1}return-1}function qn(e,t){if("<"!==e[t]||$n(e,t))return null;var r=e.slice(t).match(/^<([A-Za-z][A-Za-z0-9-]*)(?:\s|\/?>)/);if(!r)return null;var n=En(e,t);if(n<0)return null;var o=r[1].toLowerCase();if("script"===o||"style"===o){var i=new RegExp("<\\/"+o+"\\s*>","ig");i.lastIndex=n+1;var a=i.exec(e);return{value:"",end:a?a.index+a[0].length:e.length}}var l=document.createElement("template");l.innerHTML=e.slice(t,n+1);var s=l.content.firstElementChild;if(!s)return null;if(Mt(l.content),!(s=l.content.firstElementChild))return{value:"",end:n+1};var c=s.outerHTML,u=En(c,0);return u<0?null:{value:c.slice(0,u+1),end:n+1}}function En(e,t){for(var r=null,n=t+1;n<e.length;n+=1)if(r)e[n]===r&&(r=null);else if('"'===e[n]||"'"===e[n])r=e[n];else if(">"===e[n])return n;return-1}function Tn(e,t){if("<"!==e[t]||$n(e,t))return null;var r=e.indexOf(">",t+1);if(r<0)return null;var n=e.slice(t+1,r);if(/\s/.test(n))return null;var o=/^[A-Za-z][A-Za-z0-9+.-]{1,31}:/.test(n),i=/^[^<>\s@]+@[^<>\s@]+\.[^<>\s@]+$/.test(n);if(!o&&!i)return null;var l=o?a(n):null,s=n;if(o&&!l)try{var c=new URL(n);"http:"!==c.protocol&&"https:"!==c.protocol||!c.username&&!c.password||(c.username="",c.password="",s=c.href)}catch(e){}var u=s.replace(/:/g,":").replace(/@/g,"@");return{value:l?"<"+l+">":u,end:r+1}}function _n(e,t){if($n(e,t))return null;var r=e.slice(t).match(/^https?:\/\/[^\s<>]+/i);if(!r)return null;var n=s(r[0]);return n===r[0]?null:{value:n,end:t+r[0].length}}function Ln(e,t){for(var r=0,n=t;n<e.length;n+=1)if("\\"===e[n])n+=1;else if("`"===e[n]){var o=Pn(e,n);o&&(n=o.end-1)}else if("["===e[n])r+=1;else if("]"===e[n]&&!(r-=1))return n;return-1}function jn(e,t,r){for(var n=t;e[n]===r;)n+=1;return n-t}function Pn(e,t){if("`"!==e[t]||$n(e,t))return null;for(var r=jn(e,t,"`"),n=t+r;n<e.length;)if("`"===e[n]){var o=jn(e,n,"`");if(o===r)return{end:n+r};n+=o}else n+=1;return null}function $n(e,t){for(var r=0,n=t-1;n>=0&&"\\"===e[n];n-=1)r+=1;return r%2==1}function Nn(e){return Rn(e).offset}function Rn(e){for(var t=0,r=[];t<e.length;){var n=On(e,t);if(">"!==e[n]||e[n+1]&&!/[ \t]/.test(e[n+1])){var o=e.slice(n).match(/^(?:[-+*]|\d{1,9}[.)])/);if(!o){t=n;break}var i=n+o[0].length,a=(e.slice(i).match(/^[ \t]+/)||[""])[0];if(!a){t=n;break}var l=a.length>4?1:a.length;if(r.push({type:"list",width:i+l-t}),a.length>4){t=i+1;break}t=i+a.length}else r.push({type:"quote"}),/[ \t]/.test(e[t=n+1]||"")&&(t+=1)}return{offset:t,steps:r}}function Mn(e,t){if(!e.trim()&&t.steps.length&&t.steps.every(function(e){return"list"===e.type}))return 0;for(var r=0,n=0;n<t.steps.length;n+=1){var o=t.steps[n];if("quote"!==o.type){if((e.slice(r).match(/^[ \t]+/)||[""])[0].length<o.width)return null;r+=o.width}else{var i=On(e,r);if(">"!==e[i]||e[i+1]&&!/[ \t]/.test(e[i+1]))return null;/[ \t]/.test(e[r=i+1]||"")&&(r+=1)}}return r}function Bn(e,t){return t&&t.steps.length?null!==Mn(e,t):!Rn(e).steps.length}function On(e,t){for(var r=t;r<t+3&&" "===e[r];)r+=1;return r}function zn(e,t){return 0===t||"\n"===e[t-1]}function In(e,t){var r=e.indexOf("\n",t);return r<0?e.length:r}function Hn(e,t,r){for(var n=In(e,t),o=e.slice(t,n),i=Nn(o),a=o.slice(i),l=t+i,s=Rn(o),c=function(e,t,r){if(!r.steps.length)return e.length;var n=In(e,t);for(n=n<e.length?n+1:e.length;n<e.length;){var o=In(e,n);if(null===Mn(e.slice(n,o),r))return n;n=o<e.length?o+1:e.length}return e.length}(e,t,s),u=[{prefix:"\x3c!--",suffix:"--\x3e"},{prefix:"<?",suffix:"?>"},{prefix:"<![CDATA[",suffix:"]]>"}],d=0;d<u.length;d+=1){var m=u[d];if(0===a.indexOf(m.prefix)){var p=e.indexOf(m.suffix,l+m.prefix.length),f=p<0||p+m.suffix.length>c?c:p+m.suffix.length;return{value:e.slice(t,f),end:f}}}if(/^<![A-Z]/.test(a)){var h=e.indexOf(">",l+2);return h=h<0||h+1>c?c:h+1,{value:e.slice(t,h),end:h}}var g=a.match(/^<(script|pre|style|textarea)(?:\s|>|$)/i);if(g)return function(e,t,r,n,o,i){var a=n[1].toLowerCase(),l=new RegExp("<\\/"+a+"\\s*>","ig");l.lastIndex=r+n[0].length;var s=l.exec(e);s&&s.index+s[0].length>o&&(s=null);if(!s)return"script"===a||"style"===a?{value:"",end:o}:{value:Dn(e,t,o,i),end:o};var c=s.index+s[0].length;return{value:"script"===a||"style"===a?"":Dn(e,t,c,i),end:c}}(e,t,l,g,c,s);if(!(new RegExp("^<\\/?(?:address|article|aside|blockquote|body|caption|center|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frameset|h1|h2|h3|h4|h5|h6|head|header|html|iframe|legend|li|main|menu|menuitem|nav|noframes|ol|optgroup|option|p|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|ul)(?:\\s|\\/?>|$)","i").test(a)||r&&function(e){if(!/^<\/?[A-Za-z][A-Za-z0-9-]*(?:\s|\/?>)/.test(e))return!1;var t=En(e,0);return t>=0&&!e.slice(t+1).trim()}(a)))return null;var y=function(e,t,r,n){var o=In(e,t);if(o>=e.length)return e.length;o+=1;for(;o<r;){var i=In(e,o),a=e.slice(o,i),l=n.steps.length?Mn(a,n):Nn(a);if(/^[ \t]*$/.test(a.slice(l)))return o;o=i<e.length?i+1:e.length}return r}(e,t,c,s);return{value:Dn(e,t,y,s),end:y}}function Fn(e){var t=e.slice(Nn(e));return!!t.trim()&&(!/^#{1,6}(?:[ \t]+|$)/.test(t)&&(!/^(?:=+|-+)[ \t]*$/.test(t)&&!/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})$/.test(t)))}function Dn(e,t,r,n){var o=e.slice(t,r).split("\n"),i=[],a=It(o.map(function(e,t){var r=t?Mn(e,n):n.offset;return null===r&&(r=Nn(e)),i.push(e.slice(0,r)),e.slice(r)}).join("\n"));if(!a)return"";var l=i[i.length-1]||i[0]||"";return a.split("\n").map(function(e,t){return(void 0===i[t]?l:i[t])+e}).join("\n")}function Un(e){for(var t=String(e||"").replace(/\r\n?/g,"\n"),r="",n=0,o=!1,i=null;n<t.length;){if(zn(t,n)){var l=t.slice(n,In(t,n));o&&!Bn(l,i)&&(o=!1,i=null);var s=Hn(t,n,!o);if(s){r+=s.value,n=s.end,o=!1;continue}var c=Wn(t,n);if(c){r+=t.slice(n,c.end),n=c.end,o=!1;continue}var u=Gn(t,n,r);if(u){r+=t.slice(n,u.end),n=u.end,o=!1;continue}var d=o?null:Zn(t,n);if(d){r+=d.value,n=d.end,o=!1;continue}var m=Fn(l);m&&!o&&(i=Rn(l)),o=m}var p=Pn(t,n);if(p)r+=t.slice(n,p.end),n=p.end;else{var f=qn(t,n);if(f)r+=f.value,n=f.end;else{var h=Tn(t,n);if(h)r+=h.value,n=h.end;else{var g=xn(t,n);if(g){var y=Un(g.label),b=a(g.url);r+=b?(g.image?"!":"")+"["+y+"]("+b+g.suffix+")":y,n=g.end}else{var v=_n(t,n);v?(r+=v.value,n=v.end):(r+=t[n],n+=1)}}}}}return r}function Wn(e,t){var r=In(e,t),n=e.slice(t,r),o=Rn(n),i=n.slice(o.offset).match(/^(`{3,}|~{3,})(.*)$/);if(!i||"`"===i[1][0]&&i[2].indexOf("`")>=0)return null;for(var a=i[1][0],l=i[1].length,s=new RegExp("^"+a+"{"+l+",}[ \\t]*$"),c=r<e.length?r+1:e.length;c<e.length;){var u=In(e,c),d=e.slice(c,u),m=o.steps.length?Mn(d,o):Nn(d);if(null!==m&&(m=On(d,m)),null===m)return{end:c};if(s.test(d.slice(m)))return{end:u};c=u<e.length?u+1:e.length}return{end:e.length}}function Gn(e,t,r){var n=In(e,t),o=e.slice(t,n),i=Nn(o);if(!/^(?: {1}|\t)/.test(o.slice(i))||!function(e,t,r,n){if(!t)return!0;if(Nn(r)>On(r,0)&&/\n[ \t]*$/.test(n))return!0;var o=t-1,i=e.lastIndexOf("\n",o-1)+1,a=e.slice(i,o),l=Nn(a);return!a.slice(l).trim()}(e,t,o,r))return null;for(var a=t;a<e.length;){var l=In(e,a),s=e.slice(a,l),c=Nn(s);if(s.trim()&&!/^(?: {1}|\t)/.test(s.slice(c)))break;a=l<e.length?l+1:e.length}return{end:a}}function Zn(e,t){var r=In(e,t),n=e.slice(t,r),o=Rn(n),i=o.offset;if("["!==n[i])return null;var l=Ln(n,i);if(l<=i+1||":"!==n[l+1])return null;if(n.slice(i+1,l).length>999)return null;for(var s=t,c=n,u=l+2;/[ \t]/.test(c[u]||"");)u+=1;if(u>=c.length){if((s=r<e.length?r+1:e.length)>=e.length)return null;var d=In(e,s);if(null===(u=Kn(c=e.slice(s,d),o))||u>=c.length)return null}var m=c.slice(u),p=function(e,t){for(var r=t||0;r<e.length&&/[ \t]/.test(e[r]);)r+=1;if(r>=e.length)return null;if("<"===e[r]){var n=kn(e,r);return n<0?null:{url:e.slice(r+1,n),start:r,end:n+1,angle:!0}}var o=function(e){for(var t=0,r=0;r<e.length;r+=1)if("\\"===e[r])r+=1;else{if("<"===e[r]||">"===e[r]||/[\u0000-\u001f\u007f]/.test(e[r])&&!/[ \t]/.test(e[r]))return null;if("("===e[r])t+=1;else if(")"===e[r]&&t)t-=1;else{if(")"===e[r])return null;if(/[ \t]/.test(e[r]))return t?null:e.slice(0,r)}}return t?null:e}(e.slice(r));return o?{url:o,start:r,end:r+o.length,angle:!1}:null}(m);if(!p)return null;var f=m.slice(p.end);if(f.trim()&&!Vn(f))return null;var h=s+c.length;if(!f.trim()&&h<e.length){var g=h+1,y=In(e,g),b=e.slice(g,y),v=Kn(b,o);null!==v&&Vn(b.slice(v))&&(h=y)}var w=s+u+p.start,A=s+u+p.end,S=a(p.url.replace(/\\([\\()])/g,"$1"));if(!S)return{value:e.slice(t,h).replace(/[^\n]/g,""),end:h};var x=p.angle?"<"+S+">":S;return{value:e.slice(t,w)+x+e.slice(A,h),end:h}}function Kn(e,t){if(!t.steps.length)return Nn(e);var r=Mn(e,t);return null===r?null:On(e,r)}function Vn(e){for(var t=0;/[ \t]/.test(e[t]||"");)t+=1;var r=Cn(e,t);if(r<0)return!1;for(;/[ \t]/.test(e[r]||"");)r+=1;return r===e.length}function Jn(e){if("function"!=typeof TurndownService)return e;var r=document.createElement("div");r.innerHTML=e,function(e){e.querySelectorAll("font, span, a[style], b[style], i[style], u[style], em[style], strong[style], mark[style]").forEach(function(e){e.removeAttribute("style")}),e.querySelectorAll("font, p > span, li > span, blockquote > span").forEach(function(e){e.replaceWith.apply(e,Array.prototype.slice.call(e.childNodes))})}(r),nr(r),function(e){$r(e,"button, a, span, div",/^(copy|copy to clipboard)$/i),e.querySelectorAll("button.copybutton, [aria-label*='copy' i], [title*='copy to clipboard' i]").forEach(function(e){e.remove()}),e.querySelectorAll("font").forEach(function(e){e.replaceWith(document.createTextNode(e.textContent))}),e.querySelectorAll("pre span[style], code span[style]").forEach(function(e){e.replaceWith(document.createTextNode(e.textContent))}),e.querySelectorAll("div.highlight, div[class*='CodeBlock'], div[class*='codeBlock'], div[class*='code-sample'], div[class*='CodeSample'], div[class*='snippet'], div.redoc-json, div[class*='redoc-json']").forEach(function(e){var t=e.querySelector("pre"),r=fn((t||e).innerText||(t||e).textContent);if(r&&(t||/^(curl\b|[{[]|>>>|\$\s|GET\b|POST\b|PUT\b|PATCH\b|DELETE\b|HTTP\/|<\w)/m.test(r))){var n=document.createElement("pre"),o=document.createElement("code"),i=gn(t||e);i||!e.matches(".redoc-json, [class*='redoc-json']")&&!/^[\[{]/.test(r)||(i="json"),o.textContent=r,i&&o.setAttribute("data-language",i),n.appendChild(o),e.replaceWith(n)}}),e.querySelectorAll("pre").forEach(function(e){var t=e.querySelector("code")||document.createElement("code"),r=t.getAttribute("data-language")||gn(t)||gn(e);t.textContent=fn(t.textContent||e.textContent),r&&t.setAttribute("data-language",r),e.innerHTML="",e.appendChild(t)})}(r),function(e){for(var t=/^(P|H[1-6]|UL|OL|LI|TABLE|PRE|BLOCKQUOTE|HR|DL|FIGURE|DETAILS|SUMMARY|ARTICLE|SECTION|HEADER|FOOTER|NAV|ASIDE|MAIN|FORM|FIELDSET)$/,r=!0;r;)r=!1,e.querySelectorAll("div").forEach(function(e){if(e.parentNode){for(var n=!1,o=0;o<e.childNodes.length;o++){var i=e.childNodes[o];if(1===i.nodeType&&(t.test(i.nodeName)||"DIV"===i.nodeName)){n=!0;break}}if(n){for(;e.firstChild;)e.parentNode.insertBefore(e.firstChild,e);e.remove(),r=!0}}})}(r),Mt(r);var n=new TurndownService({headingStyle:"atx",codeBlockStyle:"fenced",bulletListMarker:"-",emDelimiter:"_"});n.addRule("tables",{filter:function(e){return"TABLE"===e.nodeName},replacement:function(e,t){return"\n\n"+Sn(t,e)+"\n\n"}}),n.addRule("preformatted",{filter:function(e){return"PRE"===e.nodeName},replacement:function(e,t){var r=t.querySelector("code"),n=fn(r?r.textContent:t.textContent);return n?hn(r&&r.getAttribute("data-language")||gn(r||t),n):"\n\n"}}),n.addRule("images",{filter:function(e){return"IMG"===e.nodeName},replacement:function(e,r){var n=r.getAttribute("src")||r.getAttribute("data-src")||r.getAttribute("data-lazy-src")||"",o=t(r.getAttribute("alt")||"").replace(/[\[\]]/g,""),i=a(n);return o?i?"":o:""}}),n.addRule("legalCitationLinks",{filter:function(e){return"A"===e.nodeName&&function(e){var r=e.getAttribute("href")||"",n=t(e.textContent||"");return!(!n||!r)&&(/govinfo\.gov\/link\/(?:uscode|plaw|statute)|ecfr\.gov\/current\/title-\d+/i.test(r)?/^(?:\d+\s+U\.?S\.?C\.?\s+)?[\dA-Za-z][\dA-Za-z.\-(),\s]*(?:\s+(?:note|nt\.?))?[,]?$/.test(n)||/^(?:Pub\.\s*L\.|Section\s+\d)/i.test(n):/^(?:\d+\s+U\.?S\.?C\.?\s+)[\dA-Za-z][\dA-Za-z.\-(),\s]*(?:\s+(?:note|nt\.?))?[,]?$/.test(n))}(e)},replacement:function(e,r){var n=r.getAttribute("href")||"",o=t(r.textContent||"").replace(/\s+([,;:.])/g,"$1").replace(/\s+-\s+/g,"-");return n&&o?Se(o.replace(/[\\[\]]/g,""),n):o}}),n.addRule("paragraphLikeDivs",{filter:Xn,replacement:function(e){return t(e)?"\n\n"+e.trim()+"\n\n":""}}),n.addRule("stripStyledInlineElements",{filter:function(e){if(1!==e.nodeType)return!1;var t=e.nodeName;return"FONT"===t||("A"===t||"SPAN"===t||"B"===t||"I"===t||"U"===t||"EM"===t||"STRONG"===t||"MARK"===t)&&!!e.getAttribute("style")},replacement:function(e){return e}});var o=n.turndown(r).replace(/\n{3,}/g,"\n\n").trim();return(o=o.replace(/(```[\s\S]*?```|`[^`\n]+`)|<\/?[a-z][^>]*>/gi,function(e,t){return t||""})).replace(/\n{3,}/g,"\n\n").trim()}function Xn(e){if("DIV"!==e.nodeName)return!1;var r=t(e.textContent);return!(!r||r.length<20)&&!e.querySelector("div, p, table, ul, ol, h1, h2, h3, h4, h5, h6, pre, blockquote, article, section")}function Yn(e){return t([((e=e||{}).iframeTitles||[]).join(" "),(e.iframeSources||[]).join(" "),(e.scriptSources||[]).join(" "),e.bodyHtml||""].join(" ")).toLowerCase()}function Qn(e){return/(this page explains|this is an experiment|example page|demonstrate a webauthn-based interactive challenge|not part of cloudflare challenge production code)/i.test(e||"")}function eo(e,r,n){var o=t(e.title||document.title),i=t(r||"");return function(e,t){return/making sure you're not a bot!?/i.test((e=e||"")+" "+(t=t||""))||/protected by anubis/i.test(t)&&/(enable javascript to get past this challenge|please wait a moment while we ensure the security of your connection|loading)/i.test(t)}(o,i)?"anubis":function(e,r,n){e=e||"",r=r||"";var o=Yn(n),i=t(e+" "+r+" "+o),a=!r||t(r).length<80,l=/captcha-delivery\.com|datadome(?:\.co|\.js)?|\bvar\s+dd\s*=|\bddjskey\b|\bddCaptchaUrl\b/i.test(o),s=/datadome captcha|please enable javascript|disable (?:any )?ad blocker|request unsuccessful|blocked by datadome/i.test(i);return/datadome captcha/i.test(e+" "+r)||l&&(a||s)}(o,i,n)?"datadome":function(e,r,n){e=e||"",r=r||"";var o=Yn(n),i=!r||t(r).length<120;return!Qn(r)&&(/attention required! \| cloudflare/i.test(e)||(/just a moment/i.test(e)||/verify you are human|checking your browser|performing security verification|verification successful\. waiting for .* to respond|reviewing the security of your connection before proceeding|please enable javascript and cookies to continue|security service to protect/i.test(r))&&!/this page explains/i.test(r)||(/turnstile/i.test(e)||/turnstile/i.test(r))&&/managed challenge|interactive challenge/i.test(r)&&!Qn(r)||i&&/(cdn-cgi\/challenge-platform|cloudflare ray id|turnstile|cf challenge)/i.test(o)&&!Qn(o))}(o,i,n)?"cloudflare":null}function to(e,r){if("anubis"===e)return"Making sure you're not a bot!";var n=function(e){for(var r=[location.hostname,e&&e.siteName,e&&e.title],n=0;n<r.length;n+=1){var o=t(r[n]||"").replace(/^www\./i,"");if(Wt(o))return o}return null}(r);return n?"Access verification required for "+n:"datadome"===e?"Access verification required":"Verifying you are human"}function ro(e,r){var n=t([location.hostname,e&&e.siteName,e&&e.title,e&&e.excerpt].join(" ")).toLowerCase(),o=t([r].join(" ")).toLowerCase();return!(!/(^|\.)(facebook\.com|instagram\.com|threads\.(net|com))$/.test(location.hostname)&&!/(facebook|instagram|threads|meta)/.test(n))&&/meta products|cookies from other companies|allow the use of cookies from (?:threads by )?instagram|log in with your instagram|join threads to share ideas|create new account|log in to (?:facebook|instagram)|log in to continue|log in to see photos and videos|sign up to see|page (?:is|isn't|is not) available|sorry, this page isn't available|essential cookies/.test(n+" "+o)}function no(e,n){if(!ro(e,n))return null;var o=/(threads)/i.test([location.hostname,e&&e.siteName,e&&e.title].join(" "))?"Threads":/(instagram)/i.test([location.hostname,e&&e.siteName,e&&e.title].join(" "))?"Instagram":"Facebook",i=t(e.title||document.title),a=function(){var e=Pe("next")||location.pathname;try{e=new URL(e,location.href).pathname}catch(e){}var n=r(e||"").split("/").filter(Boolean);return n.length?"login"===n[0]?t(n[1]||""):t(n[0]):null}(),l=["Access notice: "+o+" login or cookie acceptance required"],s=e.excerpt;return i&&!/threads\s*[•|-]\s*log in|facebook\s*-\s*log in/i.test(i)||(i=a?o+" page "+a:o+" page"),s&&!/join threads to share ideas|log in with your instagram|create an account or log into facebook/i.test(s)||(s="Original content on this "+o+" page is not available without login or cookie acceptance."),a&&-1===i.indexOf(a)&&l.push("Requested page: "+a),je({title:i,description:s,details:l,siteName:e.siteName||location.hostname,contentType:"interstitial"})}var oo="cookie|cookies|cookie settings|we use cookies|we use cookies and data|accept all cookies|accept all|reject all|reject optional cookies|reject optional|more options|cookie preferences|let us know your cookie preferences|allow the use of cookies|cookies from other companies|essential cookies|cookie notice|use cookies and similar technologies|manage cookie preferences|manage cookies|manage your privacy settings|privacy choices|personalize advertising|personalized content|welcome we and our .+ partners? wish to store|about your privacy|wish to store and access information|access information on your devices|collect personal data|personalized ads|trusted third party partners|trusted third party|browsing history|device identifiers|personal data|preferences|consent|manage consent|advertising cookies|strictly necessary|social media cookies|legitimate interest|pliki cookie|ustawienia prywatności|polityka prywatności|prywatności|datenschutz|données personnelles|datos personales|dati personali|utilizamos cookies|utilizziamo i cookie|preferenze cookie|accetta tutto|クッキー|Cookieプリファレンス|cookieプリファレンスセンター|Cookie設定|クッキー設定|同意設定|同意の優先設定|すべて受け入れる|すべて許可|同意|受け入れる|쿠키|쿠키 설정|개인정보 설정|동의|모두 허용|허용|全部接受|接受全部|cookie 偏好设置|隐私设置|接受|隐私|файлы cookie|настройки cookie|принять все|принять|we gebruiken cookies|nastavení souhlasu|nastaveni cookies|souhlas s personalizací|souhlas|personalizac|soukromí|soubory cookie|sutikmeny|vi bruger cookies|vi använder cookies|vi anvander kakor|kakor|sekretess|samtycke|samtykke|informasjonskapsler|vi bruker informasjonskapsler|personvern|personverninnstillinger|dine personverninnstillinger|ditt personvern|dine data|aller media|aller media er ansvarlig for dine data|privatlivs|galetes|protecció de dades|protecció|о вашој приватности|пристанак|колачић|колачиће|подешавања приватности|приватности|evästeet|evasteasetukset|evästeasetukset|evästeitä|kaytamme evasteita|käytämme evästeitä|hyväksy evästeet|tietosuoja|slapukai|slapuku nustatymai|slapukų nustatymai|naudojame slapukus|slapukų|slapukus|колачиња|приватност|поставки за колачиња|cookie-uri|confidențialitate|utilizăm cookie-uri|siklapuku iestatijumi|sīkdatnes|sīkdatņu iestatījumi|sīkdatņu|sīkfailus|izmantojam siklapukus|izmantojam sīkdatnes|privātums|privātuma iestatījumi|privātuma|sütiket|süti beállítások|süti|adatvédelem|adatvédelmi beállítások|adatvédelmi|o vašoj privatnosti|o vašoj privatnosti|пристанак|колачић|подешавања приватности|before you continue|before you continue to (google|youtube)|privacy gate|jouw privacy-instellingen|cookie-indstillinger|siklapuku iestatijumi";function io(e){return new RegExp(oo,e||"")}function ao(e){return new RegExp("^(?:"+oo+")",e||"")}function lo(e){return/^(skip to content|showing slide\b|trending searches|popular near you|concerts|sports|theater|family)$/i.test(e||"")}function so(e){if(!e||!e.getBoundingClientRect)return!1;var t=e.getBoundingClientRect(),r=window.getComputedStyle(e);return t.width>0&&t.height>0&&"hidden"!==r.visibility&&"none"!==r.display}function co(e){return e?t(e.innerText||e.textContent||e.value||e.getAttribute("aria-label")||e.getAttribute("title")||""):""}function uo(e,r,n,o){!(n=t(n||""))||n.length>o||lo(n)||r[n]||(r[n]=!0,e.push(n))}function mo(e,r){var n=t(e||"").toLowerCase(),o=t(r||"").toLowerCase(),i=io(),a=ao();return!!/^before you continue to (google|youtube)\b/.test(n)||(!(!/before you continue to (google|youtube)/.test(o)||!/accept all|reject all|more options|we use cookies and data/.test(o))||!!mi(o)&&(i.test(n)||a.test(o)))}function po(e,r,n){n=n||{};var o=t(r||"").toLowerCase(),i=t(e||"").toLowerCase(),a=/\b404\b|\boops!\b|\bnot found\b|page not found|not the web page you are looking for|sorry, (?:we )?(?:can.?t|could not) find (?:that |the )?page|we.?re sorry, but that page cannot be found|(?:that |the )?page cannot be found|the page you (?:requested|were looking for|are looking for) (?:can.?t be found|does(?:n'?t| not) exist)|this page is no longer available|content no longer available|(?:dataset|record|project|submission) (?:you are trying to view )?is not available|this doi cannot be found in the doi system|doi cannot be found|ご利用のページが見つかりません|ページまたはファイルが存在しません|移動または削除されている|urlに誤りがある|urlには.*存在しません/i,l=n.maxTextLength;if(l&&o.length>=l)return null;if(function(){var e=document.querySelector("article, main article, main [data-testid*='article' i], main [class*='article-body' i], main [class*='article-content' i], main [itemprop='articleBody'], [data-testid*='article-body' i], [class*='article-body' i], [class*='article-content' i], [itemprop='articleBody']");if(!e)return!1;var r=t(e.textContent||"");if(r.length<700)return!1;var n=e.querySelectorAll("p").length,o=e.querySelectorAll("h1, h2, h3").length,i=e.querySelectorAll("form input[type='password'], form input[name*='password' i]").length,a=/\b404\b|\boops!\b|\bnot found\b|page not found|not the web page you are looking for|sorry, (?:we )?(?:can.?t|could not) find (?:that |the )?page|we.?re sorry, but that page cannot be found|(?:that |the )?page cannot be found|the page you (?:requested|were looking for|are looking for) (?:can.?t be found|does(?:n'?t| not) exist)|this page is no longer available|content no longer available|(?:dataset|record|project|submission) (?:you are trying to view )?is not available|this doi cannot be found in the doi system|doi cannot be found|ご利用のページが見つかりません|ページまたはファイルが存在しません|移動または削除されている|urlに誤りがある|urlには.*存在しません/i.test(r.slice(0,500));return 0===i&&!a&&(n>=3||o>=2)}())return null;if(n.checkStructured&&function(){var e=document.querySelector("main, [role='main'], .content, body");if(!e)return!1;var r=t((e.querySelector("h1, h2")||{}).textContent||""),n=t(e.textContent||"");return!!/\bpage not found\b|\bnot found\b/i.test(r)&&(!!/\bpage you requested cannot be accessed\b|\baddress was typed incorrectly\b|\bpage does not exist\b|\bpage cannot be found\b/i.test(n)&&0===e.querySelectorAll("article, [itemprop='articleBody'], [property='articleBody'], .article-content, .article-text, .abstract, [property='abstract']").length)}())return{structured:!0};if(n.checkStructured&&/\bpage not found\b/i.test(i+" "+o)&&/\bpage you requested cannot be accessed\b|\baddress was typed incorrectly\b|\bpage does not exist\b|\bpage cannot be found\b/i.test(i+" "+o)&&!document.querySelector("article, [itemprop='articleBody'], [property='articleBody'], .article-content, .article-text, .abstract, [property='abstract']"))return{structured:!0};if(!a.test(i+" "+o))return null;var s=o.slice(0,420),c=a.test(i),u=a.test(s),d=u&&o.length<900,m=c||u||o.length<900;return n.requireDominance&&!m||n.excludeDefinitionsNet&&/definitions\.net/i.test(i+" "+location.hostname)||n.requireInterstitialPage&&!(c||d||!n.substantialPublic&&u)&&n.substantialPublic?null:{titleLooksMissing:c,pageStartsMissing:u,shortMissingPage:d,dominates:m}}function fo(e){var r,n,o=t(e||""),i=(r=document.querySelectorAll("main article, main section, main a[href], main img, main h2, main h3, main p, main li").length,n=document.querySelectorAll("article, [role='article'], .article, .post, .entry, .content a[href], .content img, h1, h2, h3, [itemprop='articleBody'], main li").length,Math.max(r,n)),a=document.querySelectorAll("main h1, h1, main h2").length,l=document.querySelectorAll("main a[href], a[href]").length;return i>=5&&(o.length>=180||a>=1&&l>=3)}function ho(e,r){var n=t(e.title||document.title),o=t([r||"",document.body&&document.body.textContent||""].join(" ")),i=(n+" "+o).toLowerCase(),a=fo(o);return ro(e,r)?"meta_login":/robot or human|confirm (?:that )?you (?:are|.?re) (?:a )?human|activate and hold the button|press\s*(?:&|and)\s*hold|px-captcha|drag the slider to fit the puzzle|slide to verify|help us protect|verifying that you.?re a real person|unusual activity from your computer network|click the box below to let us know you.?re not a robot/i.test(i)?"human_verification":/select your country|choose a country|shopping in the u\.s\?|best buy international/i.test(i)&&!a?"region_selector":/browser is not supported|your browser is not supported|unsupported browser|for the best experience, use any of these supported browsers|use any of these supported browsers|supported browsers:/i.test(i)&&!a?"browser_support":/^access error$/i.test(n)||/potential misuse|page you are trying to access is unavailable|help\.ft\.com|request blocked|you have been blocked|troubleshooting cloudflare errors/i.test(i)?"access_error":function(e,r){var n=t(e||"").toLowerCase(),o=t(r||"").toLowerCase(),i=/خطایی رخ داده|وب سایت مورد نظر در دسترس نیست|page unavailable|site unavailable|website unavailable|service temporarily unavailable|temporarily unavailable|service unavailable/;return i.test(n)||o.length<1200&&i.test(o.slice(0,500))}(n,o)?"site_unavailable":mo(n,o)?"consent_wall":/\bmy account\b[\s\S]{0,120}\blog in\b/i.test(o)&&/\byou must log in to access\b/i.test(o)&&!document.querySelector("article, [itemprop='articleBody'], [property='articleBody']")?"auth_wall":po(n,o,{checkStructured:!0,requireDominance:!0,requireInterstitialPage:!0,substantialPublic:a,excludeDefinitionsNet:!0})?"not_found":/transferring (?:you )?to (?:the )?website|در حال انتقال به وب.سایت|سایت در حال بارگذاری|sayfaya yönlendiriliyorsunuz|yönlendiriliyor|מועבר לאתר|الموقع قيد التحميل|ویب سائٹ پر منتقل/i.test(i)&&t(o).length<600?"js_redirect":/subscribe to continue|subscription required|sign in to continue reading|log in to continue reading|subscriber-only|purchase short-term access|institutional access|access through your institution|read with a subscription/i.test(i)?"subscription":function(e,r,n){var o=t(e||"").toLowerCase(),i=t(r||""),a=(location.pathname||"").toLowerCase(),l=/\/(?:log(?:in|-in)|sign(?:in|-in)|auth|oauth|sso|session|sessions|account(?:s)?\/login|users?\/sign_in|password|forgot)(?:\/|$)/.test(a),s=document.querySelectorAll("input[type='email'], input[name*='email' i], input[name*='password' i]").length,c=document.querySelectorAll("form input[type='password'], form input[name*='password' i], form[action*='login' i], form[id*='login' i], form[class*='login' i], [aria-label*='sign in' i] input[type='password']").length,u=A(["form h1","form h2","form legend","[role='dialog'] h1","[role='dialog'] h2","main h1","main h2"],8).filter(function(e){return/sign in|log in|login|create (?:an )?account|password/i.test(e)}).length,d=document.querySelectorAll("main article, main section, main a[href], main img, main h2, main h3").length,m=document.querySelectorAll("article, [role='article'], .article, .post, .entry, .content a[href], .content img, nav a[href]").length,p=Math.max(d,m),f=/forgot(?:ten)? password|reset your password|check your email for a reset link/i.test(n),h=/\b(?:github|gitlab|google|oauth|sso|single sign-on|continue with|sign in with|log in with)\b/i.test(n);return!l&&/^(?:log in|login|sign in|sign-in|sign into|log into)(?:\b|\s*[-|–])/.test(o)&&(s>=1||c>0||u>0||h)?p<15:!!(f&&d<10&&i.length<2200||(f||/sign in to continue|log in to continue|create an account to continue|please sign in|please log in/i.test(n))&&(/sign in|log in|login|create (?:an )?account|reset your password/.test(o)||!(!/sign in|log in|login|create (?:an )?account|reset your password/.test(o)&&p>=15&&i.length>=1e3)&&((c>0||u>0)&&s>=1&&d<10||s>=1&&i.length<900&&d<8||i.length<400&&d<5)))}(n,o,i)?"auth_wall":null}function go(e,r,n){if(void 0===n&&(n=ho(e,r)),!n)return null;if("meta_login"===n)return no(e,r);var o=t(e.title||document.title),i=A(["main h1","main h2","main h3","main p","main li","body h1","body h2","body h3","body p"],20).filter(function(e){return e&&e.length<=240&&!lo(e)}),a=i.find(function(e){return e!==o&&e.length>=12})||e.excerpt||t(r||""),l=[],s=[];if("human_verification"===n)o&&!Wt(o)||(o="Robot or human?"),l.push("Gate: human verification");else if("consent_wall"===n){var c=function(){var e={},t=[],r=[],n=[],o=[];document.querySelectorAll("main h1, main h2, main h3, body h1, body h2, body h3").forEach(function(r){so(r)&&uo(t,e,co(r),140)}),document.querySelectorAll("main p, body p").forEach(function(t){so(t)&&uo(r,e,co(t),260)}),document.querySelectorAll("main li, body li").forEach(function(t){so(t)&&uo(n,e,co(t),160)}),document.querySelectorAll("main button, main [role='button'], main a[href], body button, body [role='button'], body a[href]").forEach(function(t){if(so(t)){var r=co(t);!r||r.length>80||/(accept|reject|decline|manage|options|settings|choices|privacy|cookies?|consent|allow|agree|continue|more|customize|save|confirm|necessary|essential|preferences|alles|tout|todas?|todos?|rifiuta|rejeitar|weigeren|afvis|hylkää|odmítnout|noraidīt|elutasítás|elutasítom)/i.test(r)&&uo(o,e,"Control: "+r,100)}});var i=r.find(function(e){return e.length>=40&&/(cookies?|data|privacy|personal|ads?|content|services|device|information|partners?|consent)/i.test(e)})||r.find(function(e){return e.length>=20})||null;return{headings:t,description:i,highlights:t.concat(r).concat(n).concat(o)}}();c.headings.length&&(o=c.headings[0]),c.description&&(a=c.description),l.push("Interstitial: cookie or consent prompt"),s=c.highlights.filter(function(e){return e!==o&&e!==a}).slice(0,6)}else"region_selector"===n?(l.push("Interstitial: region or country selector"),s=i.filter(function(e){return e!==o&&e!==a}).slice(0,3)):"browser_support"===n?l.push("Interstitial: unsupported browser shell"):"access_error"===n?l.push("Interstitial: access error or blocked session"):"site_unavailable"===n?l.push("Interstitial: site unavailable or temporarily offline"):"not_found"===n?(o&&!Wt(o)||(o="Page not found"),/\b404\b|\boops!\b|\bnot found\b|page not found|not the web page you are looking for|sorry, (?:we )?(?:can.?t|could not) find (?:that |the )?page|we.?re sorry, but that page cannot be found|(?:that |the )?page cannot be found|the page you (?:requested|were looking for|are looking for) (?:can.?t be found|does(?:n'?t| not) exist)|this page is no longer available|content no longer available|(?:dataset|record|project|submission) (?:you are trying to view )?is not available|this doi cannot be found in the doi system|doi cannot be found|ご利用のページが見つかりません|ページまたはファイルが存在しません|移動または削除されている|urlに誤りがある|urlには.*存在しません/i.test(a||"")&&(a=i.find(function(e){return e!==o&&e.length>=12&&!/\b404\b|\boops!\b|\bnot found\b|page not found|not the web page you are looking for|sorry, (?:we )?(?:can.?t|could not) find (?:that |the )?page|we.?re sorry, but that page cannot be found|(?:that |the )?page cannot be found|the page you (?:requested|were looking for|are looking for) (?:can.?t be found|does(?:n'?t| not) exist)|this page is no longer available|content no longer available|(?:dataset|record|project|submission) (?:you are trying to view )?is not available|this doi cannot be found in the doi system|doi cannot be found|ご利用のページが見つかりません|ページまたはファイルが存在しません|移動または削除されている|urlに誤りがある|urlには.*存在しません/i.test(e)})||a),l.push("Interstitial: requested page is unavailable")):"subscription"===n?l.push("Access notice: subscription or institutional login required"):"auth_wall"===n?(o&&!Wt(o)||(o="Login required"),l.push("Access notice: login or account required")):"js_redirect"===n&&(o&&!Wt(o)||(o="Redirecting..."),l.push("Interstitial: JavaScript redirect page — content not yet loaded"));return je({title:o,description:a,details:l,highlights:s,siteName:e.siteName||location.hostname,contentType:"interstitial"})}function yo(e){return function(e){return/[\u3040-\u30ff\u3400-\u9fff\uac00-\ud7af]/.test(e||"")}(e)?4:8}function bo(){var e=(location.pathname||"").toLowerCase(),t=e.split("/").filter(Boolean),r=t[t.length-1]||"";return!t.length||(!(!/^\/(index|default|home)\b/i.test(e)&&!/^\/\d+(,\d+)*\.html?$/i.test(e))||(!!/\/(search|category|categories|tag|tags|topics?|collections?|archive|archives|latest|headlines|news|notizie|calciomercato|mercato|forums?|boards?|community|discussions?|threads)\/?$/.test(e)||t.length<=2&&!/\d{4}[-/]\d{2}[-/]\d{2}/.test(e)&&!/-/.test(r)&&!/\.(html?|php|aspx?|jsp|shtml)$/i.test(r)))}function vo(){var e=(location.pathname||"").toLowerCase(),t=(location.search||"").toLowerCase();return/(?:^|[?&])(q|query|search|searchtext|keyword|k)=/.test(t)||/\/(search|s|shop|browse|category|categories|collections?|catalog|keyword|wholesale|products?|jobs?)\b/.test(e)||/\b(category|categories|collection|catalog|search results?|shop|jobs?\s+(?:in|matching|for)|job results?)\b/i.test(document.title||"")}function wo(){var e=location.pathname||"";return!/\/(?:articles?|blogs?|columns?|archives?|entries?|posts?)\/?$/i.test(e)&&/(?:^|\/)(?:a-[a-z0-9]+|20\d{2}|\d{4}\/\d{2}\/\d{2}|article|articles|blog|blogs|column|columns|archive|archives|news\/[\w-]+|entry|entries|post|posts|view\/[A-Z]{3}\d{15,}|\d{5,}[\w-]*\.html?)(?:\/|\b)/i.test(e)}function Ao(e){if(!document.body)return!1;var r=document.querySelector("[itemprop='articleBody'], article[role='main']"),n=document.querySelector(["article[class*='article-content' i]","article[class*='article_content' i]","article[class*='article-body' i]","article[class*='article_body' i]"].join(", ")),o=Array.prototype.filter.call(document.querySelectorAll("main article"),function(e){if(Vt(e)||e.parentElement.closest("article"))return!1;var r=Qt(e,document);return!(!t(r.textContent||"")&&!r.querySelector("img[src], picture, video, audio, svg"))}),i=o[0]||null,l=r||n||i;if(!wo()&&!l)return!1;if(l===n&&!wo())return!1;if(e&&"article"!==e.contentType&&"medical"!==e.contentType)return!1;var s=l?Qt(l,document):document.createElement("div");!l&&e&&e.html&&(s.innerHTML=e.html);var c=document.querySelector("h1")||s.querySelector("h1"),u=Array.prototype.filter.call(s.querySelectorAll("p"),function(e){var t=e.closest("article");return!t||t===s}),d=t(u.map(function(e){return e.textContent||""}).join(" "));!l&&e&&e.html&&(d=t(s.textContent||""));var m=s.querySelectorAll("article").length,p=t(s.textContent||""),f=s.querySelectorAll("a[href]"),h=document.querySelector("[rel='author'], [itemprop='author'], [itemprop='datePublished'], time, .byline, [class*='byline' i]"),g=Array.prototype.reduce.call(s.querySelectorAll("p a[href]"),function(e,r){return e+t(r.textContent||"").length},0),y=d.length>0?g/d.length:1,b=u.length>=2&&d.length>=120,v=m>=2&&t(s.textContent||"").length>=280,w=wo()&&s.matches&&s.matches("article")&&0===u.length&&0===m&&!s.querySelector("h1, h2, h3, h4")&&p.length>=280&&f.length<=2,A=Array.prototype.reduce.call(f,function(e,r){return e+t(r.textContent||"").length},0),S=w?A/p.length:y,x=!!l&&(l===n||l===i),k=1===o.length&&o[0]===l,C=x&&!k?w:b||v||w,q=vo()||bo()&&!wo();if(r!==l&&k&&q){var E=K(),T=Array.prototype.filter.call(s.querySelectorAll(E),function(e){return!e.querySelector(E)&&t(e.textContent).length>=40}),_=[];if(Array.prototype.forEach.call(s.querySelectorAll("a[href]"),function(e){var r=e.closest("h1, h2, h3, h4")||e.querySelector("h1, h2, h3, h4"),n=t(r&&r.textContent);if(!(n.length<yo(n)||n.length>220)&&a(e.getAttribute("href"))){var o=r.closest(E);T.indexOf(o)<0||_.indexOf(o)>=0||_.push(o)}}),_.length>=3)return!1}return!!c&&C&&S<.45&&(!!l||!!e)&&(!!h||e&&(e.byline||e.publishedTime)||!!l)}function So(e){return/\/(?:20\d{2}|\d{4}\/\d{2}|[a-z0-9-]+\/\d{5,}(?:\/|$)|\d{5,}(?:\/|$)|[^\/]+-[^\/]+-[^\/]+)/i.test(e||"")}function xo(e,t){if(/^(privacy|cookies?|terms|chi siamo|about us|contact|contatti|redazione|advertising|newsletter|subscribe|login|sign in|register|cookie settings|manage preferences)$/i.test(e))return!0;try{return/\/(privacy|cookie|cookies|terms|about|contatti|contact|redazione|login|register)\b/i.test(new URL(t||"",location.href).pathname)}catch(e){return!1}}function ko(){return location.origin+location.pathname}function Co(e){return r(e||"").toLowerCase().replace(/[^\p{L}\p{N}]+/gu," ").split(/\s+/).filter(Boolean)}function qo(e){e=e||{};var t=document.querySelector("main h1, [role='main'] h1, h1"),n=Co((e.siteName||location.hostname||"").replace(/^www\./i,"")),o=/^(latest|news|article|articles|articlelist|story|stories|home|homepage|index|default|today|more|page|pages|section|sections|category|categories|topic|topics|read|view|photo|photos|video|videos|gallery|galleries|live|blog|blogs|web|english|telugu|samayam|newsweb|edition)$/,i=Co([location.pathname||"",e.title||"",document.title||"",t?t.textContent:""].join(" ")).filter(function(e){return e.length>=3&&!/^\d+$/.test(e)&&!o.test(e)&&-1===n.indexOf(e)}),a=[];i.forEach(function(e){-1===a.indexOf(e)&&a.length<12&&a.push(e)});var l=[];return(location.pathname||"").split("/").filter(Boolean).forEach(function(e){var t=r(e||"").toLowerCase();!t||/^\d/.test(t)||/\.(html?|php|aspx?|jsp|cms)$/i.test(t)||/^(news|latest-news|latest|articlelist|articles?|read|view|topic|topics|section|sections|home|index|default|world|india-news|international-news|english|telugu)$/.test(t)||-1===l.indexOf(t)&&l.push(t)}),{currentUrl:ko(),linkGroups:new WeakMap,cardText:new WeakMap,figureCollections:new WeakMap,supportingCards:new WeakMap,supportingLinks:new WeakSet,keywords:a,sectionFragments:l.slice(0,4)}}function Eo(e){return!!(e=t(e||"").toLowerCase())&&(/(trending topics|latest videos|latest photos|లేటెస్ట్ వీడియోలు|లేటెస్ట్ ఫోటోలు|video gallery|photo gallery|web stories|most read|best gelezen|newsletter|subscribe|abonneren|log in|login|sign in|register|create account|maak een account|u bent niet|settings|instellingen|tip ons|nieuwstip|belangrijke informatie delen|copyright|all rights reserved|privacy preference center|manage cookie preferences|manage consent preferences|manage privacy preferences|your privacy settings|your privacy choices|cookie list|cookie information|list of partners \(vendors\)|this website uses cookies|by accepting cookies|cookie declaration last updated|consent id|change your consent|your current state|vsak dan|poglej več|mark forums? read|forum statistics|members online|who is online|users browsing|forum rules|new posts since last visit|currently active users|forum contains no new|board statistics|mark all forums? read|what's going on|users online|active threads|active users)/i.test(e)||/\b\d{1,2}\.\d{2}\b/.test(e)&&/(vsak dan|sezona|oddaja|epizoda|premiera)/i.test(e))}function To(e){var r=t(e||"");return!!r&&(!!/(ve[ðd]ursp[áa]( næsta s[óo]larhring)?|weather forecast|uppl[ýy]singar um ve[ðd]ur)/i.test(r)&&(r.match(/\b(ve[ðd]ursp[áa]|hiti|[úu]rkoma|vindur|frost|rigning|sk[ýy]ja[ðd]|temperature|precipitation|wind|rain|snow|storm)\b/gi)||[]).length>=3)}function _o(e,r){if(!e||!r||"article"!==e.contentType||"list"!==r.contentType)return!1;var n=document.createElement("div");n.innerHTML=e.html||"";var o=Object.create(null),i=[],a=0,l=0;if(Array.prototype.forEach.call(n.querySelectorAll("p"),function(e){var r=t(e.textContent||"");r&&!o[r]&&(o[r]=!0,i.push(r),l+=r.length,r.length>=80&&(a+=1))}),a<3||l<1200)return!1;var s=t(e.textContent||e.markdown||""),c=t((r.markdown||r.textContent||"").replace(/!\[([^\]]*)\]\([^)]+\)/g,"$1").replace(/\[([^\]]*)\]\([^)]+\)/g,"$1").replace(/[`*_~#>|]/g," "));return!(c.length>=.75*s.length)&&i.reduce(function(e,t){return e+(-1===c.indexOf(t)?t.length:0)},0)>=900}function Lo(e){if(!e||1!==e.nodeType)return!1;var r=t([e.getAttribute("id"),e.getAttribute("class"),e.getAttribute("role"),e.getAttribute("aria-label"),e.getAttribute("data-testid")].join(" ")).toLowerCase(),n=t(e.textContent||"").slice(0,280);return/(sidebar|side-bar|rail|utility|complementary|secondary|trending|popular|most-read|mostread|video|videos|photo|photos|gallery|galleries|web.?stor|newsletter|subscribe|social|share|follow|language|edition|top[_-]?nav|secondary-navbar|first-level-menu|second-level-menu|header-menu|side-nav|top-trending|wdt-trending|recommended|related|login|signup|register|account|forum[_-]?stats|online[_-]?users|who[_-]?is[_-]?online|board[_-]?stats|members[_-]?online|active[_-]?users|forum[_-]?rules|quick[_-]?reply|new[_-]?thread|moderator[_-]?panel|subforum[_-]?list)/.test(r)||Eo(n)}function jo(e,t,r,n){var o="",i=(e+" "+(r||"")).toLowerCase(),a=0,l=0;try{o=new URL(t,location.href).pathname.toLowerCase()}catch(e){o=""}return n.keywords.forEach(function(e){-1!==(i+" "+o).indexOf(e)&&(a+=1)}),n.sectionFragments.forEach(function(e){-1!==o.indexOf(e)&&(l+=1)}),{path:o,keywordMatches:a,sectionMatches:l}}function Po(e,r,n,o){if(!e)return null;var i=e.getAttribute("href"),l=Array.prototype.slice.call(e.querySelectorAll("h1, h2, h3, h4")),s=l.map(function(e){return t(e.textContent)}).filter(Boolean).join(" - "),c=function(e,r){if(!G(e,r===e?e.parentElement:r))return"";var n=e.querySelector("[class*='title' i], [class$='-name' i]"),o=t(n&&n.textContent||e.getAttribute("title")||"");return o.length>=Math.min(6,yo(o))&&o.length<=220?o:""}(e,r),u=t(s||c||e.textContent||e.getAttribute("aria-label")||""),d="",m=/(weather|forecast|ve[ðd]ur|vedur|meteo)/i.test((location.pathname||"")+" "+document.title);if(!i||"#"===i[0])return null;var p=n&&n.tableIndexPage&&r&&r.matches&&r.matches("tr"),f=Ae(e,n.linkGroups),h=yo(u);if(f?h=1:p?h=2:c&&W(e)&&(h=Math.min(6,h)),u.length<h||u.length>220)return null;var g=a(i);if(!g&&!o)return null;if(g){try{d=new URL(g,location.href).pathname}catch(e){return null}if(g.replace(/[?#].*$/,"")===n.currentUrl)return null}if(ee(u))return null;if(/\/(subscribe|subscription|abonnement|login|register|newsletter|account|instellingen|settings)\b/i.test(d||i))return null;if(/\/(privacycontrols?|privacy|cookies?|consent)\b/i.test(d||i)&&u.length<80)return null;if(!f&&xo(u,i)||be(e)||be(e.parentElement)||ge(e))return null;if(function(e,t,r){if(!e||!e.closest)return!1;var n=e.closest("figure"),o=Q(n?n.parentElement:t||e.parentElement,r);return!(!o||n&&o.contains(n)&&X(n)===e)}(e,r,n.figureCollections))return null;var y=fe(e,r,f,n.figureCollections);if(D(e,y,n.supportingCards))return n.supportingLinks.add(e),null;var b,v=e.querySelector("h1, h2, h3, h4, p")?e:y;n.cardText&&v&&n.cardText.has(v)?b=n.cardText.get(v):(b=function(e){if(!e||!e.cloneNode||Ua(e))return"";var t=e.cloneNode(!0);return Wa(e,t),ie(t),t.querySelectorAll(K()).forEach(function(e){ce(e)&&e.remove()}),oe(t.textContent||"")}(v),n.cardText&&v&&n.cardText.set(v,b)),l.length>1?l.forEach(function(e){b=b.replace(t(e.textContent),"")}):b=b.replace(u,"");var w=y&&y.matches&&y.matches("tr")?Ea(y,u):b.replace(/\s*[|·]\s*/g," - ");if(w=oe(w),!m&&/\/(ve[ðd]ur|vedur|forecast|weather|spastod)\b/i.test(d||i)&&To(u+" "+w))return null;if(/\/(tv|spored)\//i.test(d||i)&&(/(vsak dan|poglej več|sezona|epizoda|oddaja)/i.test(u+" "+w)||/\b\d{1,2}\.\d{2}\b/.test(u+" "+w)))return null;var A=g?function(e,r,n,o,i){if(!r)return-1/0;var a=e.length,l=jo(e,r,n,i),s=(l.path,Lo(o));if(r.replace(/[?#].*$/,"")===i.currentUrl)return-1/0;if(s&&Lo(o&&o.parentElement)&&!l.keywordMatches&&!l.sectionMatches)return-1/0;o&&o.matches("article, section, li")&&(a+=120);var c=o&&o.querySelector("h1, h2, h3, h4");return c&&t(c.textContent||"")===e&&(a+=180),a+=70*l.keywordMatches,a+=220*l.sectionMatches,(s||Lo(o&&o.parentElement))&&(a-=260),(Eo(e)||Eo(n))&&(a-=220),a}(u,g,w,r||e.parentElement,n):u.length+w.length;if(A===-1/0)return null;var S={text:u,url:g,detail:w,rankScore:A,card:y};y&&y.matches&&y.matches("tr")&&(S.tableRowDetail=!0),l.length>1&&(S.titleHeadings=l),f&&(S.groupLabel=f.label,S.dedupeKey=lt(g)+"|label:"+u.toLowerCase());var x=se(e);return!x||x===y||y&&y.matches&&y.matches("tr")||(S.contentCard=x),g||(S.canonicalKey="unlinked:"+u.toLowerCase()+"|href:"+i,S.dedupeKey=S.canonicalKey+"|detail:"+w.toLowerCase()),r&&r.matches&&r.matches("tr")&&w&&(S.dedupeKey=(S.canonicalKey||lt(g))+"|row:"+t(w).toLowerCase()),S}function $o(e,r){if(be(e)||Lo(e))return-1/0;var n=e.querySelectorAll("a[href]").length,i=e.querySelectorAll("li, tr, article, section").length,l=e.querySelectorAll("article, section, [class*='card' i], [class*='item' i], [class*='story' i], [class*='post' i], [class*='news' i], [class*='headline' i], [class*='feed' i], [class*='thread' i], [class*='topic' i], .structItem, .discussionListItem").length,s=e.querySelectorAll("h2, h3, h4").length,c=Array.prototype.filter.call(e.querySelectorAll("a[href]"),function(e){var r=t(e.textContent||e.getAttribute("aria-label")||""),n=e.getAttribute("href")||"";return"#"!==n[0]&&a(n)&&r.length>=yo(r)&&!xo(r,n)&&!be(e.parentElement)&&!be(e.closest("div, section, article, li"))}).length,u=o(e);if(c<4||u<120)return-1/0;if(/copyright|all rights reserved|privacy policy|terms of use/i.test(t(e.textContent||""))&&s<2)return-1/0;var d=0;return r&&(r.sectionFragments.length||r.keywords.length)&&Array.prototype.forEach.call(e.querySelectorAll("a[href]"),function(e){var n=t(e.textContent||e.getAttribute("aria-label")||"");if(!(n.length<yo(n))){var o=a(e.getAttribute("href"));if(o){var i=jo(n,o,"",r);d+=140*i.sectionMatches+30*i.keywordMatches}}}),10*n+30*c+20*i+45*l+20*s+d-Math.round(u/40)}function No(e,n){if(!e||Ao(n))return!1;if(ga(null,e)||ya(null,e))return!1;if(function(e){var n=t(e||"");if(n.length<200)return!1;var o=r(location.pathname||"").toLowerCase(),i=/\/(?:contents?|table-of-contents|toc)(?:\/)?$/i.test(o),a=(String(e||"").match(/^\s*[-*]\s+(?:\[[^\]]+\]\([^)]*\)|(?:\d+[A-Z]?\.|Article\s+\d+|Schedule\s+\d+))/gim)||[]).length,l=String(e||"").split(/\n+/).filter(function(e){var r=t(e).replace(/^[-*#\s]+/,"");return r.length>=160&&!/^\[[^\]]+\]\(/.test(r)}).length;return i&&a>=6&&l<4}(e))return!0;if(!bo()&&!vo())return!1;if(t(n&&(n.byline||n.publishedTime)))return!1;var o=String(e).split(/\n+/),i=o.filter(function(e){return/^\s*(?:(?:\d+\.|[-*])\s+)?#{1,4}\s+\[[^\]]{8,220}\]\(/.test(e)||/^\s*(?:\d+\.|[-*])\s+\[[^\]]{8,220}\]\(/.test(e)}).length,a=(String(e).match(/(?:^|\s)(?:(?:\d+\.|[-*])\s+)?#{1,4}\s+\[[^\]]{8,220}\]\(/g)||[]).length+(String(e).match(/(?:^|\s)(?:\d+\.|[-*])\s+\[[^\]]{8,220}\]\(/g)||[]).length,l=o.filter(function(e){var r=t(e).replace(/^#+\s*/,"");return!(!r||r.length<160)&&!/^\s*(?:(?:\d+\.|[-*])\s+)?#{0,4}\s*\[[^\]]+\]\(/.test(e)}).length;return function(e){var t,r=[],n=/\[[^\]]{8,220}\]\(([^\s)]+)\)|https?:\/\/[^\s)]+/g;for(;t=n.exec(String(e||""));){var o,i=t[1]||t[0];try{o=new URL(i,location.href)}catch(e){continue}o.origin===location.origin&&o.origin+o.pathname!==ko()&&(So(o.pathname)&&-1===r.indexOf(o.origin+o.pathname)&&r.push(o.origin+o.pathname))}return r.length}(e)>=6||Math.max(i,a)>=4&&l<5}function Ro(e){return Array.prototype.filter.call(e.children||[],function(e){return e.matches&&e.matches("th, td")})}function Mo(e,t,r){var n=parseInt(e[t]||e.getAttribute(r)||"1",10);return n>0?n:1}function Bo(e){var t=[];return e.forEach(function(e,r){t[r]||(t[r]=[]);var n=0;Ro(e).forEach(function(e){for(;t[r][n];)n+=1;for(var o=Mo(e,"colSpan","colspan"),i=Mo(e,"rowSpan","rowspan"),a=r;a<r+i;a+=1){t[a]||(t[a]=[]);for(var l=n;l<n+o;l+=1)t[a][l]=e}n+=o})}),t}function Oo(e){var r=Array.prototype.filter.call(e.querySelectorAll("thead tr"),function(e){var t=Ro(e);return!Xt(e)&&t.some(function(e){return"TH"===e.tagName})});if(r.length||(r=Array.prototype.filter.call(e.querySelectorAll("tr"),function(e){var t=Ro(e);return!Xt(e)&&t.length&&t.every(function(e){return"TH"===e.tagName})})),!r.length)return[];for(var n=Bo(r),o=n.reduce(function(e,t){return Math.max(e,t.length)},0),i=[],a=0;a<o;a+=1){var l=[];r.forEach(function(e,r){var o=t(((n[r]||[])[a]||{}).textContent||"");o&&l[l.length-1]!==o&&l.push(o)}),i.push(l.join(" / "))}return i.filter(Boolean).length>=2?i:[]}function zo(e){var t=[];Array.prototype.forEach.call(e.querySelectorAll("tr"),function(r){if(r.closest("table")===e&&!r.closest("thead, tfoot")){var n=t[t.length-1];n&&n.parent===r.parentElement||(n={parent:r.parentElement,rows:[]},t.push(n)),n.rows.push(r)}});var r=[];return t.forEach(function(e){var t=Bo(e.rows);e.rows.forEach(function(e,n){r.push({row:e,cells:t[n]||[]})})}),r}function Io(e,t){return e+":"+t}function Ho(e,r,n,o,i){for(var l=null==o?0:o,s=null==o?r.length:o+1,c=l;c<s;c+=1)if(r[c]){var u=Array.prototype.filter.call(r[c].querySelectorAll("a[href]"),function(e){var r=e.getAttribute("href")||"",o=t(e.textContent||e.getAttribute("aria-label")||""),i=n||yo(o);return r&&"#"!==r[0]&&o.length>=i&&o.length<=220});if(u.length){u.sort(function(e,r){return Number(!!a(r.getAttribute("href")))-Number(!!a(e.getAttribute("href")))||t(r.textContent||"").length-t(e.textContent||"").length});for(var d=0;d<u.length;d+=1){var m=a(u[d].getAttribute("href"));if((m||i)&&(!m||lt(m)!==ko()))return{cellIndex:c,url:m?lt(m):null,href:u[d].getAttribute("href")||"",link:u[d]}}}}return null}function Fo(e,r){var n=zo(e).filter(function(n){var o=n.row;if(o.closest("table")!==e||o.closest("thead, tfoot")||Xt(o))return!1;var i=t(o.textContent||"");return n.cells.length===r.length&&n.cells.filter(function(e){return!!e}).length===r.length&&!o.querySelector("table")&&i.length>=8&&i.length<=600});if(n.length<6)return null;var o={};n.forEach(function(e){e.cells.forEach(function(t,r){if(!(r>0&&e.cells[r-1]===t)){var n=Ho(e.row,e.cells,2,r);n&&(o[r]||(o[r]=[]),o[r].push(n))}})});var i=Object.keys(o).map(function(e){var n,i=parseInt(e,10),a=o[e],l={};return a.forEach(function(e){l[e.url]=!0}),{column:i,count:a.length,distinctCount:Object.keys(l).length,role:(n=r[i],n=t(n||"").toLowerCase(),/\b(?:actions?|controls?|logs?|status|state|details?|downloads?|view|open|edit|delete)\b/.test(n)?0:/\b(?:id|name|title|package|target|chroot|record|pollster|research|reference|entry|item|case|candidate|team|source)\b/.test(n)?2:1)}}).filter(function(e){return e.count>=6&&e.count/n.length>=.65&&e.distinctCount>=4&&e.distinctCount/e.count>=.6}).sort(function(e,t){return t.role-e.role||t.count-e.count||t.distinctCount-e.distinctCount||e.column-t.column});return i.length&&i[0].role>0?{primaryColumn:i[0].column}:null}function Do(){if(!document.body)return null;var e=Array.prototype.map.call(document.querySelectorAll("p"),function(e){return Xt(e)?"":t(e.textContent||"")}).filter(function(e){return e.length>=180});return e.length>=3&&e.join(" ").length>=700?null:Array.prototype.find.call(document.querySelectorAll("table"),function(e){if(Xt(e)||e.querySelector("table"))return!1;if(function(e){var r=e.closest("article, main, [role='main']")||document.body,n=Array.prototype.map.call(r.querySelectorAll("p"),function(e){return Xt(e)?"":t(e.textContent||"")}).filter(function(e){return e.length>=120});if(n.length<2)return!1;var o=n.join(" ").length;if(o<400)return!1;if("ARTICLE"===r.tagName)return!0;var i=t(e.textContent||"").length;return o>=500&&o>=.75*i}(e))return!1;var r=Oo(e);if(r.length<3)return!1;var n=t([location.pathname,document.title,(document.querySelector("h1")||{}).textContent,(e.querySelector("caption")||{}).textContent].join(" ")),o=t(r.join(" ")),i=t(n+" "+o),a=/(poll|survey|opinion|result|archive|history|tracker|record|ranking|standing|sonda|umfrag|sondag|sondeo|peiling|enqu[eê]te)/i.test(i),l=/\bbuilds?\b/i.test(n)&&/\b(?:builds?|status|state|chroots?|packages?|versions?|submitted|targets?|architectures?|platforms?|logs?)\b/i.test(o),s=/\bmonitor(?:ing)?\b/i.test(n)&&/\b(?:packages?|status|state|builds?|targets?|architectures?|chroots?|versions?|releases?|platforms?)\b/i.test(o);return!(!a&&!l&&!s)&&!!Fo(e,r)})||null}function Uo(e){return Array.prototype.filter.call(e.querySelectorAll("a[href]"),function(e){return!!a(e.getAttribute("href"))})}function Wo(e){return(e||[]).filter(function(e){return!!a(e&&e.url)}).length}function Go(e){if(!document.body||Ao(e))return!1;if(ts(null,e))return!1;if(Do())return!0;if(!bo()&&!vo()&&!jl())return!1;var r=document.createElement("div");r.innerHTML=e&&e.html||document.body.innerHTML;var n=Uo(r),o=n.length,i=r.querySelectorAll("article, li, section, [class*='card' i], [class*='item' i], [class*='story' i], [class*='product' i], [class*='tile' i], [class*='job' i], [data-testid*='card' i], [data-testid*='product' i], [data-testid='slider_container'], [data-test='jobListing'], [data-jobid], [data-url*='/remote-jobs/']").length,a=r.querySelectorAll("h2, h3, h4").length,l=n.filter(function(e){var r=t(e.textContent||e.getAttribute("aria-label")||"");return r.length>=yo(r)&&r.length<=220&&!xo(r,e.getAttribute("href")||"")}).length,s=Array.prototype.map.call(r.querySelectorAll("p"),function(e){return t(e.textContent||"")}).filter(Boolean),c=s.filter(function(e){return e.length>=180}).length,u=s.filter(function(e){return e.length>=120}).join(" "),d=t(r.textContent||e&&(e.textContent||e.markdown)||""),m=n.reduce(function(e,r){return e+t(r.textContent||r.getAttribute("aria-label")||"").length},0),p=d.length>0?m/d.length:0,f=document.createElement("div");f.innerHTML=document.body.innerHTML;var h=Math.max(Vo(r),Vo(f));return!ga(r,d)&&!ya(r,d)&&(!(!Ko(r,d)&&!Ko(f))||!(c>=5&&u.length>=1200&&p<.35)&&(l>=6&&i>=6&&o>=8&&(a>=4||p>=.22)||h>=6||jl(r)))}function Zo(e,r){if(!document.body)return null;if(r&&"article"!==r.contentType&&"list"!==r.contentType)return null;if(r&&"list"===r.contentType){if(!st())return null;if(r.docsLike)return null;var n=Ka(e,{portalRoot:!0});return n.portalRootEvidence?(r.portalRootEvidence=n.portalRootEvidence,r):null}if(!r&&!st())return null;if(r&&(r.hostAware||r.docsLike))return null;if(mi(document.body.textContent||""))return null;if(r&&po(r.title||document.title||"",document.body.textContent||"",{maxTextLength:1400}))return null;if(r&&document.querySelector("article h1, article [itemprop='articleBody']")&&(t(r.byline||v()||"")||t(r.publishedTime||w()||"")))return null;var o=Ka(e,{portalRoot:!0});return o.portalRootEvidence?o:null}function Ko(e,r){if(e=e||document.body,r=t(r||e&&e.textContent||""),!e||Ao())return!1;var n=t([location.pathname,document.title,(document.querySelector("h1")||{}).textContent].join(" ")).toLowerCase();if(!/\b(?:cases?|defendants?|records?|dockets?|matters?)\b/.test(n))return!1;var o=Sa(e,{cardSelectors:".card, [class*='case-card' i], [class*='record-card' i], [class*='result-card' i], article, li",allowMissingUrl:!0,dedupe:!1,minTitleLength:3,maxTitleLength:180,linkBuilder:function(e){return e.querySelector(".card-header, h2, h3, h4, a[href]")},candidateBuilder:function(e,r){var n=t(e.textContent||""),o=r&&r.matches&&r.matches("a[href]")?r:r&&r.querySelector&&r.querySelector("a[href]");o||(o=e.querySelector("a[href]"));var i=o?o.getAttribute("href"):"",l=a(i);return/\b(?:case|defendant|prosecutor|trial|charges?|warrant|summons|custody|convicted|acquitted|closed|at large|court|record|docket|matter)\b/i.test(n)?{text:t((r||{}).textContent||""),url:l,admission:!i||!!l}:null}}),i=e.querySelectorAll("form, [class*='filter' i], [class*='facet' i], [class*='exposed' i], [class*='search' i]").length,l=/\b\d{1,4}\s+(?:cases?|defendants?|records?|matters?|results?)\b/i.test(r),s=o.filter(function(e){return e.admission}).length;return o.length>=4&&s>=4&&(i>=1||l)}function Vo(e){var r=ko(),n=[];return Array.prototype.forEach.call(e.querySelectorAll("a[href]"),function(e){var o,i=t(e.textContent||e.getAttribute("aria-label")||""),l=a(e.getAttribute("href"));if(!(i.length<yo(i)||i.length>220||xo(i,l||""))&&l){try{o=new URL(l,location.href)}catch(e){return}o.origin===location.origin&&o.origin+o.pathname!==r&&So(o.pathname)&&-1===n.indexOf(o.origin+o.pathname)&&n.push(o.origin+o.pathname)}}),n.length}function Jo(e){if(!e||"article"!==e.contentType)return!1;var r=(location.pathname||"").toLowerCase();if("/"===r||""===r||/^\/(index|default|home)\b/i.test(r)||/^\/\d+(,\d+)*\.html?$/i.test(r))return!1;var n=document.createElement("div");n.innerHTML=e.html||"";var o=t(n.textContent||e.textContent||""),i=n.querySelectorAll("p").length,a=n.querySelectorAll("h1, h2, h3").length,l=(e.markdown||"").match(/^\s*- \[/gm)||[],s=Uo(n).reduce(function(e,r){return e+t(r.textContent||r.getAttribute("aria-label")||"").length},0),c=o.length>0?s/o.length:0,u=wo();return!ba(n,o)&&(!(!ga(n,o)&&!ya(n,o))||(!bo()&&o.length>=280&&c<.5||!(bo()&&c>.5)&&(!(bo()&&a>=5&&a>=.6*i)&&(!(o.length<280)&&(!(i<3&&a<1&&!u)&&(!(l.length>=8&&i<5)&&(!(c>.33&&i<6)&&(u&&o.length>=280&&c<.5||i>=5||e.readerMode&&i>=3&&c<.28))))))))}function Xo(e){return"function"==typeof e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e.replace(/[àáâãäåæ]/g,"a").replace(/[èéêë]/g,"e").replace(/[ìíîï]/g,"i").replace(/[òóôõöø]/g,"o").replace(/[ùúûü]/g,"u").replace(/[ýÿ]/g,"y").replace(/[ñ]/g,"n").replace(/[çć]/g,"c").replace(/[šś]/g,"s").replace(/[žźż]/g,"z").replace(/[đ]/g,"d").replace(/[łĺ]/g,"l").replace(/[ř]/g,"r").replace(/[ťț]/g,"t").replace(/[ğ]/g,"g").replace(/[ąă]/g,"a").replace(/[ęě]/g,"e").replace(/[ıİ]/g,"i").replace(/[ůű]/g,"u").replace(/[őö]/g,"o").replace(/[ń]/g,"n")}function Yo(e){return/[\u0370-\u03FF\u0400-\u04FF\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\u0900-\u097F\u0980-\u09FF\u0E00-\u0E7F\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FFF]/.test(e||"")}function Qo(){return Xo(r(location.pathname||"").toLowerCase()).replace(/[^a-z0-9]+/g," ").split(/\s+/).filter(function(e){return e.length>=3&&!/^(questions|question|about|docs|wiki|html|index|start|journey|get|your|with|from|the|and|for|dictionary|definition|definitions|browse|category|recipes|recipe|english|search|translate|translation|pronunciation|thesaurus)$/.test(e)&&!/^\d+$/.test(e)})}function ei(e){return(r(e||"").toUpperCase().match(/\b(?:WO|US|EP|JP|CN|KR|CA|AU)\s*\/?\s*\d{4}\s*\/?\s*\d{3,7}\s*[A-Z]?\d?\b/g)||[]).map(function(e){return e.replace(/[^A-Z0-9]/g,"")}).filter(function(e,t,r){return e.length>=8&&r.indexOf(e)===t})}function ti(){var e=(location.pathname||"").match(/^\/([a-z]{2})(?:\/|$)/);if(e||(e=(location.pathname||"").match(/\/([a-z]{2})(?:\/|$)/)),!e)return null;var t=e[1];return/^(de|fr|es|pt|pl|it|nl|sv|da|nb|no|fi|cs|sk|hu|ro|bg|hr|sr|sl|uk|el|tr|ja|ko|zh|ar|he|th|vi|id|ms)$/.test(t)?t:null}function ri(e){try{return new URL(e||location.href,location.href)}catch(e){return null}}function ni(e){return(e&&e.hostname||"").replace(/^www\./i,"").toLowerCase()}function oi(e){return e?r(e.pathname||"").split("/").filter(Boolean).map(function(e){return e.replace(/\.(?:html?|shtml|php|aspx?)$/i,"").toLowerCase()}):[]}function ii(e){return Xo(t(r(e||""))).toLowerCase().replace(/[^a-z0-9]+/g," ").trim().replace(/\s+/g," ")}function ai(e){return!(!e||e.length<10)&&(!/^\d+$/.test(e)&&(!(/^[a-z0-9]{10,}$/i.test(e)&&-1===e.indexOf("-")&&-1===e.indexOf("_")&&!/[^\x00-\x7F]/.test(e))&&(/[-_]/.test(e)||/[^\x00-\x7F]/.test(e))))}function li(e){return!(!e||!e.length)&&(1===e.filter(ai).length&&e.every(function(e){return ai(e)||e.length<=24||/^\d+$/.test(e)||/^[a-z]{2}$/i.test(e)||/^[a-z0-9]{6,}$/i.test(e)}))}function si(e,n,o,i){if(!e||!t(e.title||""))return!1;if(!(n&&"article"===n.contentType||o.length>800||((i||"").match(/\n\s*\n/g)||[]).length>=4))return!1;var a=r(location.pathname||""),l=oi(ri(location.href)),s=Qo(),c=Xo([e.title,n&&n.title||"",o.slice(0,4e3),i||""].join(" ")).toLowerCase(),u=Xo(t(n&&n.title||e.title||"")).toLowerCase(),d=[e.title,n&&n.title||"",o.slice(0,4e3),i||""].join(" "),m=s.length>=5?.2:.15,p=s.filter(function(e){return-1!==c.indexOf(e)}).length,f=s.filter(function(e){return-1!==u.indexOf(e)}).length,h=li(l)&&s.length>=2&&(p>=1||f>=1||p/s.length>=m||f/s.length>=m);return function(e){var t=ri(location.href),r=ri(e&&e.canonicalUrl);if(!t||!r)return!1;if(ni(t)!==ni(r))return!1;var n=oi(t),o=oi(r);if(n.join("/")===o.join("/"))return li(n);if(n.length!==o.length)return!1;for(var i=0,a=0;a<n.length;a+=1)if(n[a]!==o[a]&&(i+=1,!ai(n[a])||!ai(o[a])))return!1;return 1===i}(e)&&Yo(d)||Yo(a)||Yo(d)&&li(l)||h}function ci(e,n,o,i){var a=t([e&&e.title,n&&n.title,o,i].join(" ")).toLowerCase();if(a.length<800)return!1;if(!/\b(?:shareholder|annual report|letter to shareholders|berkshire hathaway|investor relations|form\s*(?:10-k|10-q|8-k)|sec filing)\b/.test(a))return!1;var l=r(location.pathname||"").toLowerCase();return!!/\/(?:19|20)\d{2}(?:ar|annualreport|annual-report|report|letter)\//.test(l)||(!!/\/(?:19|20)\d{2}[^/]*(?:letter|report|annual)[^/]*\.html?$/.test(l)||!(!/\/(?:letters?|annual-reports?|reports?)\//.test(l)||!/(?:19|20)\d{2}/.test(l)))}var ui={de:/\b(und|die|der|das|ist|von|zu|mit|den|ein|eine|für|auf|als|auch|nicht|sich|werden|nach|bei|aus|wie|oder|noch|nur|dem|des|über)\b/gi,fr:/\b(les|des|une|est|dans|pour|sur|par|pas|qui|que|avec|son|sont|plus|ses|mais|cette|ont|tout|nous|vous|aux|leur)\b/gi,es:/\b(los|las|una|del|por|con|para|que|más|son|sus|pero|como|esta|todo|nos|hay|fue|muy|han|sin|sobre|tiene)\b/gi,pt:/\b(dos|das|uma|por|com|para|que|mais|são|mas|como|esta|seu|sua|tem|nos|foi|pode|muito|seus|sobre|também)\b/gi,pl:/\b(nie|jest|są|się|jak|czy|ale|lub|oraz|tak|ich|jego|już|pod|przy|bez|dla|gdy|gdzie|między|tylko|może|który|która|które|których|którym|którego|którą|ten|ta|tej|tego|tym|tych|przez|dnia|roku|wobec|nadto|ponadto|został|została|był|była|było|były)\b/gi,it:/\b(gli|una|del|per|con|che|sono|più|dalla|della|delle|dei|anche|come|questa|tutto|suo|sua|suoi|nelle|alla)\b/gi,nl:/\b(een|het|van|zijn|met|dat|voor|maar|niet|ook|als|nog|wel|hun|uit|bij|kan|zou|meer|alle|dit|wordt)\b/gi,da:/\b(den|det|til|med|har|som|kan|vil|blev|efter|også|eller|han|hun|var|fra|ved|skal|ikke|mange|denne|blev|over|under)\b/gi,sv:/\b(den|det|att|som|har|med|för|kan|och|var|till|från|inte|ska|alla|hon|han|efter|över|under|denna|också|eller|blev)\b/gi,no:/\b(den|det|til|med|har|som|kan|vil|ble|etter|også|eller|han|hun|var|fra|ved|skal|ikke|mange|denne|over|under)\b/gi,nb:/\b(den|det|til|med|har|som|kan|vil|ble|etter|også|eller|han|hun|var|fra|ved|skal|ikke|mange|denne|over|under)\b/gi,fi:/\b(sen|oli|kun|tai|niin|mutta|ovat|joka|myös|kuin|siitä|tämä|hänen|tämän|vain|olla|sillä|sekä|ovat|vielä|nyt|yli|alle)\b/gi,tr:/\b(bir|için|ile|olan|olarak|gibi|daha|kadar|ancak|ayrıca|sonra|yapılan|ise|olan|üzerinde|tarafından|büyük|yeni|sonra)\b/gi,lv:/\b(par|kas|bet|arī|lai|jau|gan|nav|tad|vai|kur|šis|tās|kā|pie|pēc|tiek|var|būt|kad|vēl|viņa|visi|tikko|savs|kurš)\b/gi,lt:/\b(tai|yra|kad|bet|jau|dar|tik|bus|nuo|per|bei|iki|dėl|kas|čia|jis|jos|kur|buvo|labai|arba|dabar|turi|savo|apie)\b/gi,ro:/\b(este|sunt|fost|care|dar|sau|mai|pentru|într|cea|cel|acest|după|când|cum|prin|din|lor|avea|fost|toate|poate|doar)\b/gi,hr:/\b(koji|koja|koje|biti|nije|kao|ali|ako|više|samo|mogu|nakon|između|tada|sve|još|prije|već|prema|sada|njegov|ovaj)\b/gi,sr:/\b(који|која|које|бити|није|као|али|ако|више|само|могу|након|између|тада|све|још|пре|већ|према|сада|његов|овај)\b/gi,uk:/\b(що|але|як|або|вже|для|при|без|між|під|над|після|тому|який|яка|яке|його|його|цей|ще|також|може|були|буде)\b/gi,bg:/(?:^|\s)(и|в|на|за|с|от|до|е|са|се|че|но|като|през|които|която|което|след|това|също|повече|само|между|тези|всички|може|имат|обаче|когато|върху|срещу)(?=\s|$)/gi,el:/\b(και|που|από|στο|στα|στη|στις|στον|στους|για|με|της|του|των|ότι|αυτό|ήταν|είναι|αλλά|μετά|πριν|ακόμα|μπορεί)\b/gi,sk:/\b(ktorý|ktorá|ktoré|alebo|jeho|jeho|tento|tiež|môže|boli|bude|keď|pred|všetky|len|ešte|však|medzi|zatiaľ)\b/gi,sl:/\b(vendar|ampak|lahko|tudi|pred|vsak|bolj|že|prav|toda|niso|bili|bila|bilo|bodo|oziroma|čeprav|vedno|takoj)\b/gi,hu:/\b(hogy|mint|amikor|pedig|csak|volt|lesz|még|vagy|máig|után|előtt|mivel|összes|fogja|ehhez|tehát|viszont|minden)\b/gi,cs:/\b(který|která|které|jako|jeho|tento|také|může|byli|bude|když|před|všechny|ještě|pouze|však|mezi|zatím|proto)\b/gi};function di(e,r){if(function(e,r){var n=t(r||"");if(!n||n.length<120)return!1;var o=n.replace(/\s/g,"");if(!o)return!1;var i={bg:/[\u0400-\u04FF]/g,el:/[\u0370-\u03FF]/g,sr:/[\u0400-\u04FF]/g,uk:/[\u0400-\u04FF]/g}[e];return!!i&&(o.match(i)||[]).length/o.length>=.25}(e,r))return!0;var n=ui[e];if(!n)return!0;var o=r.match(n)||[],i=r.split(/\s+/).length,a="pl"===e?.025:.03;return i<40||o.length/i>=a}function mi(e){var r=t(e||"").toLowerCase();if(!r)return!1;if(!io("i").test(r))return!1;if(ao("i").test(r))return!0;var n=r.match(io("gi"))||[];return r.length<5e3&&n.length>=3||n.length>=8&&n.length/(r.length/500)>=.4}function pi(e){var r=t(e||"").toLowerCase();if(!r)return!1;var n=/subscribe to continue|subscription required|sign in to continue reading|log in to continue reading|subscriber-only|purchase short-term access|institutional access|access through your institution|read with a subscription/g;if(n.test(r.slice(0,600)))return!0;var o=r.match(n)||[];return r.length<3e3&&o.length>=1}function fi(){var e=M(["NewsArticle","Article","BlogPosting","WebPage","LiveBlogPosting","ReportageNewsArticle"]),r=e&&(!1===e.isAccessibleForFree||"False"===e.isAccessibleForFree||"false"===e.isAccessibleForFree),n=Me("article:content_tier","property")||Me("article:content_tier","name"),o=n&&/^(locked|metered|premium)$/i.test(t(n)),i=!!document.querySelector("[data-piano-offer], [data-paywall], [class*='paywall' i], [id*='paywall' i], [class*='subscribe-wall' i], [class*='premium-wall' i], [class*='piano-offer' i], [data-testid*='paywall' i], [class*='metered' i][class*='banner' i]"),a=t(document.body&&document.body.innerText||"").slice(0,6e3).toLowerCase(),l=/(for abonnenter|unlock full access|contenu réservé aux abonnés|solo para suscriptores|nur für abonnenten|alleen voor abonnees|solo per abbonati|dostępne dla subskrybentów|только для подписчиков|лише для передплатників|přístupné pouze pro předplatitele|csak előfizetőknek|exklusivt för prenumeranter|kun for abonnenter|vain tilaajille|tik prenumeratoriams|tikai abonentiem|nur für abonnent|nur für abonnenten|contenido exclusivo para suscriptores|réservé aux abonnés|subscriber exclusive|subscribers only|premium content|members only|členský obsah|premium-inhalt)/.test(a);return r||o||i||l?{source:r?"structured_data":o?"meta_tag":i?"dom_element":"text_pattern",contentTier:n?t(n).toLowerCase():r?"locked":null}:null}function hi(e,n){var o=r(location.pathname||"").toLowerCase(),i=t([e,o,n.slice(0,5e3)].join(" ")).toLowerCase();return!!/\/(?:instruments?|treat(?:y|ies)|charters?|covenants?|conventions?|protocols?|resolutions?|publication\/unts)\b/.test(o)||(!!/\b(?:international\s+)?(?:covenant|convention|charter|treaty|protocol|optional protocol|general assembly resolution|united nations treaty collection|states parties to the present|entry into force|ratification status)\b/.test(i)||(!(!/\barticle\s+\d+\b/.test(i)||!/\b(states parties|entry into force|ratification|depositary|secretary-general|united nations)\b/.test(i))||!!function(e,t,r){var n=Mi({text:t,title:e,path:r,contextLimit:5e3}),o=/\b(?:book|part|division|chapter|title|article|section)\s+\d+[a-z]?\b/g.test(t)||/(?:^|\s)§\s*\d+/.test(t);return n.officialStatuteTitle&&n.officialTextSignals&&(o||n.translationAttribution||/\/englisch_[a-z0-9_-]+\//.test(r))}(e,n,o)))}function gi(e,n){var o=r(location.pathname||"").toLowerCase(),i=t([e,o,n.slice(0,8e3),Me("citation","name"),Me("DC.title","name")].join(" ")).toLowerCase(),a=yi(o),l=/\[\d{4}\]\s*(?:ukhl|uksc|ewca|ewhc|ukpc|ukut|ukftt|ac|wlr|all\s+er|ecli)\b/i.test(i),s=/\b(?:judgment|judgement|opinion(?:s)? of the lords|court of appeal|high court|supreme court|house of lords|lordships|appellant|respondent|claimant|defendant|neutral citation|cite as)\b/i.test(i),c=/\b(?:v\.?|versus)\b/i.test(e||i)&&/\b(?:appellant|respondent|claimant|defendant|secretary of state|commissioner|director of public prosecutions)\b/i.test(i);return a&&(l||s||c)||l&&s&&c}function yi(e){return/\/(?:cases?|judgments?|judg?ments?)\/[^/]+\/\d{4}\/\d+(?:\.html?)?$/i.test(e)||/\/(?:uksc|ukhl|ewca|ewhc|ukpc|ukut|ukftt|scotcs|niehc|nifam|ecj|echr|ecli)\/\d{4}\/\d+(?:\.html?)?$/i.test(e)}function bi(e,n,o,i){if(!n||"article"!==n.contentType||n.docsLike)return!1;if(Ut(/(^|\.)siol\.net$/))return!1;if(function(e,n,o,i){if(!n||"article"!==n.contentType||i.length<500)return!1;var a=r(location.pathname||"").toLowerCase(),l=t([o,n&&n.title||"",e&&e.title,e&&e.siteName,e&&e.excerpt,Me("article:section","property"),location.hostname||"",a].join(" ")).toLowerCase();if(/\b(news|breaking|opinion|press release|live updates?)\b/.test(l))return!1;var s=/\b(science|research|data|statistics|charts?|emissions?|climate|mission|observatory|telescope|reference|facts?|explorer|dataset|indicators?)\b/.test(l),c=/\b(key facts|data explorer|all charts|research & writing|introduction|overview|mission overview|science themes|methodology|download data|sources? and methods?)\b/i.test(i),u=/\/(?:mission|missions|data|statistics|charts?|topics?|explorers?)(?:\/[^/.]+)?\/?$/.test(a)||/\b(?:emissions|greenhouse-gas|climate|dataset|data-explorer)\b/.test(a),d=(i.match(/^##\s+/gm)||[]).length;return s&&(u&&i.length>=500||i.length>=1500&&(c||d>=4))}(e,n,o,i))return!1;if(function(e,r,n,o){if(!r||"article"!==r.contentType||o.length<500)return!1;var i=t([n,r&&r.title||"",e&&e.title,e&&e.siteName,e&&e.excerpt,Me("article:section","property"),location.pathname||"",o.slice(0,4e3)].join(" ")).toLowerCase();return/\b(today in history|on this day|this day in history|from the archives|retrospective|look back|looking back|revisit(?:ed|ing)?|recall(?:s|ed|ing)?|remember(?:s|ed|ing)?|anniversary|archived|back then|then and now|historical|ajaloos|ajalugu|tagasivaade|meenut(?:a|ab|as)?)\b/.test(i)||/(?:振り返る|回顧|回想|当時|歴史|記念)/.test(i)}(e,n,o,i))return!1;var a=M(["NewsArticle","ReportageNewsArticle","LiveBlogPosting","AnalysisNewsArticle","OpinionNewsArticle"]);if(a){var l=t(O(a.dateModified)||Me("article:modified_time","property")||Me("article:modified_time","name")||Me("dateModified","property")||Me("dateModified","name")||"");if(l){var s=Date.parse(l);if(!isNaN(s))if((Date.now()-s)/864e5<=30)return!1}return!0}var c=t(Me("og:type","property")||"").toLowerCase();if(c&&"article"!==c)return!1;if(document.querySelector("#mw-content-text .mw-parser-output, #bodyContent .mw-parser-output"))return!1;var u=t([o,e&&e.siteName,e&&e.excerpt,Me("article:section","property"),location.pathname||""].join(" ")).toLowerCase();return!/\b(docs?|documentation|reference|encyclopedia|wiki|manual|api|guide|tutorial|learn|legal|charter|terms|privacy|about us)\b/.test(u)&&(!!/\b(news|breaking|politics|business|markets?|economy|world|national|local|analysis|opinion|investigation|report)\b/.test(u)||i.length<5e3&&/\b(updated|published|reported)\b/.test(u))}function vi(e){var r=[];return e.forEach(function(e){Array.prototype.slice.call(document.querySelectorAll(e)).forEach(function(e){var n=t(e.textContent||"");n.length>=80&&-1===r.indexOf(n)&&r.push(n)})}),t(r.join("\n\n"))}function wi(e,r,n){if(!e||"article"!==e.contentType||e.docsLike||n.length<100)return!1;var o=String(e.html||""),i=t([e.title||"",n.slice(0,1e3)].join(" ")).toLowerCase();if(/\blyrics?\b/.test(i)||/\bpoems?\b/.test(i))return!1;var a=((r||"").match(/\n\s*\n/g)||[]).length,l=((r||"").match(/^#{1,6}\s+/gm)||[]).length,s=(n.match(/[.!?。!?؟।]+/g)||[]).length,c=t(document.documentElement&&document.documentElement.lang||"").toLowerCase(),u=n.length<1500&&(c&&!/^en\b/.test(c)||(n.match(/[^\x00-\x7F]/g)||[]).length>.3*n.length);return Ut(/(^|\.)lenta\.ru$/)&&/^\/news\/\d{4}\/\d{2}\/\d{2}\//i.test(location.pathname||"")?(a>=1||l>=1)&&s>=2:!!(u&&Jo(e)&&(a>=1||l>=1||s>=2))||!(n.length>=700)&&(!(!/<article\b/i.test(o)&&!/<main\b/i.test(o))&&((a>=1||l>=1)&&s>=2))}function Ai(e,t){var r=document.createElement("div");if(r.innerHTML=e&&e.html?e.html:"",!r.innerHTML)return{root:null,markdown:t};Array.prototype.forEach.call(r.querySelectorAll(["aside","nav","footer","[role='complementary']","[role='navigation']","[aria-label*='related' i]","[aria-label*='recommended' i]","[aria-label*='latest' i]","[class*='related' i]","[class*='recommend' i]","[class*='recirculat' i]","[class*='liveblog' i]","[class*='live-blog' i]","[class*='sidebar' i]","[class*='side-bar' i]","[class*='widget' i]","[class*='comment' i]","[class*='discussion' i]","[class*='community' i]","[class*='popular' i]","[class*='trending' i]","[class*='suggest' i]","[class*='teaser' i]","[class*='also-read' i]","[class*='read-more' i]","[class*='more-news' i]","[class*='more-stories' i]","[class*='more-from' i]","[class*='front-page' i]","[class*='article-list' i]","[class*='content-list' i]","[class*='story-list' i]","[class*='news-list' i]","[class*='headline-list' i]","[class*='feed' i]","[class*='story-card' i]","[class*='storycard' i]","[class*='article-related-content' i]","[id*='related' i]","[id*='recommend' i]","[id*='comment' i]","[id*='sidebar' i]","[id*='widget' i]","[data-component*='article-list' i]","[data-component*='related' i]","[data-testid*='related' i]","[data-testid*='recommend' i]","[data-testid*='comment' i]"].join(", ")),function(e){e.parentNode.removeChild(e)});return{root:r,markdown:Jn(r.innerHTML||"")||""}}function Si(e,r,n){var o=t(r&&r.title||e.title||"").toLowerCase(),i=(location.pathname||"").toLowerCase(),a=t(n||r&&r.textContent||"").toLowerCase();if(M(["LiveBlogPosting"]))return"liveblog";if((Ai(r,n).root||document).querySelector("[data-liveblog], [class*='liveblog' i], [class*='live-blog' i], [id*='liveblog' i], [class*='live-ticker' i], [class*='liveticker' i], [id*='live-ticker' i], [class*='live-feed' i], [class*='live-updates' i], [class*='live-entries' i]"))return"liveblog";if(/\b(liveblog|live.blog|live.ticker|liveticker|live updates?|live.updates?)\b/.test(o)||/\b(liveblog|live-blog|liveticker|live-ticker|live-updates)\b/.test(i))return"liveblog";if(/\b(daily briefing|morning briefing|evening briefing|weekly briefing|news briefing|this week in|week in review|daily digest|news digest|morning roundup|evening roundup|weekly roundup|daily round-?up|weekly round-?up|tagesüberblick|nachrichtenüberblick|wochenrückblick|résumé de la semaine|tour d'horizon|resumen semanal|rassegna stampa|przegląd tygodnia|przegląd dnia|podsumowanie tygodnia|podsumowanie dnia|daglig oversikt|veckosammanfattning|nyhedsoverblik|ugens nyheder|viikon katsaus|savaitės apžvalga|nedēļas apskats|преглед на седмицата|огляд тижня|преглед на денот|săptămâna în revistă|heti összefoglaló|týdenní přehled)\b/.test(o))return"briefing";if(/\b(events?[\s-]*(?:calendar|listing|guide|agenda|schedule)|what['']?s on|upcoming events?|things to do|veranstaltungen|événements|eventos|eventi|wydarzenia|evenementen|evenemang|begivenheder|tapahtumat|renginiai|pasākumi|események|události|events?\s+this\s+week|events?\s+today|event guide|gig guide|concert schedule)\b/.test(o)||/\/(events?|calendar|agenda|whats-on|what-s-on|veranstaltungen|evenements)\b/.test(i)){if((a.match(/\b\d{1,2}[\s./-]\s*(?:jan(?:uary)?|feb(?:ruary)?|mar(?:ch)?|apr(?:il)?|may|jun(?:e)?|jul(?:y)?|aug(?:ust)?|sep(?:tember)?|oct(?:ober)?|nov(?:ember)?|dec(?:ember)?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre|januar|februar|märz|april|juni|juli|august|oktober|dezember|styczeń|luty|marzec|kwiecień|maj|czerwiec|lipiec|sierpień|wrzesień|październik|listopad|grudzień)\b/gi)||[]).length>=2)return"event_listing";if(M(["Event","MusicEvent","SportsEvent","TheaterEvent","Festival"]))return"event_listing"}if(M(["VideoObject","Movie","TVEpisode","TVSeries","TVSeason","Clip"])&&a.length<800)return"video";var l=document.querySelectorAll("video, [class*='video-player' i], [class*='videoplayer' i], [id*='video-player' i], [class*='jwplayer' i], [class*='bitmovin' i], [class*='brightcove' i], [data-player], [data-video-id], [data-video], [class*='auvio' i][class*='player' i], [class*='media-player' i], [class*='mediaplayer' i]"),s=document.querySelectorAll("iframe[src*='youtube'], iframe[src*='youtu.be'], iframe[src*='vimeo'], iframe[src*='dailymotion'], iframe[src*='player'], iframe[src*='video'], iframe[data-src*='youtube'], iframe[data-src*='vimeo']");if((l.length>=1||s.length>=1)&&a.length<600)return"video";if(/\/(video|videos|watch|player|clip|replay|auvio|mediathek|mediatheque|videoteka|platforma)\b/.test(i)&&a.length<800&&a.replace(/https?:\/\/\S+/g,"").replace(/[^a-zA-Z\u00C0-\u024F\u0400-\u04FF\u0370-\u03FF\u0100-\u017F\u0180-\u024F]/g," ").replace(/\s+/g," ").trim().length<500)return"video";var c=Ai(r,n),u=c.markdown||n||"";if(c.root){var d=c.root.querySelectorAll("h2, h3"),m=c.root.querySelectorAll("time, [datetime]");if(m.length>=6&&d.length>=4){for(var p=[],f=0;f<m.length;f++){var h=m[f].getAttribute("datetime")||t(m[f].textContent);h&&-1===p.indexOf(h)&&p.push(h)}if(p.length>=4)return"liveblog"}}if(u){var g=(u.match(/^##\s+/gm)||[]).length,y=(u.match(/\b\d{1,2}[:.]\d{2}\s*(?:Uhr|AM|PM|CET|CEST|UTC|GMT|[A-Z]{2,4}T)?\b/gm)||[]).length;if(g>=6&&y>=6)return"liveblog"}if(u&&r&&r.html){for(var b=u.split("\n").filter(function(e){return e.trim().length>0}),v=u.replace(/!\[[^\]]*\]\([^)]+\)/g,"").match(/\[([^\]]*)\]\([^)]+\)/g)||[],w=(u.match(/^#{1,3}\s+/gm)||[]).length,A=0,S=0,x=0;x<b.length;x++){var k=b[x];/^#{1,3}\s+/.test(k)?(S>0&&S<200&&A++,S=0):S+=k.length}if(S>0&&S<200&&A++,w>=4&&v.length>=5&&A>=4&&A>=.6*w)return"newsletter";var C=u.replace(/\[([^\]]*)\]\([^)]+\)/g,"$1").replace(/^#{1,6}\s+.*$/gm,"").replace(/[^a-zA-Z\u00C0-\u024F\u0400-\u04FF\u0370-\u03FF\u0100-\u017F\u0180-\u024F]/g," ").replace(/\s+/g," ").trim().split(/\s+/).filter(function(e){return e.length>=3}).length;if(v.length>=8&&w>=4&&C<5*v.length)return"newsletter"}return null}function xi(e,r,n,o,i,a,l,s,c,u,d,m,p,f,h,g,y){var b,v=[],w=mi(o);r&&r.lodgingShell&&v.push("client_rendered_property_shell"),s||f||!w||v.push("consent_interstitial"),s||(!(b=t(o||"").toLowerCase())||b.length>220||!/^(?:do not sell(?: or share)? my personal information|do not sell(?: or share)?|privacy policy|cookie policy|cookies? policy|terms of (?:service|use)|manage (?:privacy|cookie|consent) preferences|privacy choices|your privacy choices)$/i.test(b)&&!/(?:do not sell(?: or share)? my personal information|privacy policy|cookie policy|terms of (?:service|use)|privacy choices|your privacy choices)/i.test(b))||v.push("consent_interstitial");var A=function(e,r,n,o){var i=t(n||"").toLowerCase(),a=t(o||"").toLowerCase(),l=io("i"),s=ao(),c=l.test(i),u=l.test(a);if(!c&&!u&&"meta_login"!==e)return!1;var d=s.test(i)||i.indexOf("cookie")>=0&&i.indexOf("cookie")<140&&i.length<500,m=s.test(a)||a.indexOf("cookie")>=0&&a.indexOf("cookie")<140&&a.length<260;return"meta_login"===e||d||m}(d,0,o,i)&&!("consent_wall"===d&&p);return s||f||!(A||mi(i)&&!p)||v.push("consent_interstitial"),"anubis"===u&&v.push("anubis_challenge_page"),"datadome"===u&&v.push("datadome_challenge_page"),"cloudflare"===u&&v.push("cloudflare_challenge_page"),"consent_wall"!==d||f||p||v.push("consent_interstitial"),"meta_login"===d&&v.push("meta_login_wall"),"human_verification"===d&&v.push("human_verification_interstitial"),"region_selector"===d&&v.push("regional_selector_interstitial"),"browser_support"===d&&v.push("browser_support_interstitial"),"access_error"!==d||f||p||v.push("access_error_interstitial"),"site_unavailable"===d&&v.push("site_unavailable_interstitial"),"not_found"!==d&&!m||s&&c||v.push("not_found_interstitial"),"subscription"===d&&(!f||pi(o)||pi(i)&&!p)&&v.push("subscription_interstitial"),"auth_wall"===d&&v.push("auth_or_login_interstitial"),"meta_login"===d&&/cookie/i.test(a)&&v.push("consent_interstitial"),s&&c||!u&&(f||p||!/(verify you are human|unusual traffic|are you a robot|access denied|security verification|checking your browser)/.test(a))||v.push("bot_or_access_interstitial"),s&&c||"human_verification"!==d&&("access_error"!==d||f||p)||v.push("bot_or_access_interstitial"),h&&(i.length>80||(e.title||"").length>3||y&&y.htmlLength>200)&&v.push("empty_extraction"),!g||u||d||v.push("empty_extraction"),!u&&!d&&t(n||"").length<10&&(e.title||"").length>3&&-1===v.indexOf("empty_extraction")&&-1===v.indexOf("short_extraction")&&v.push("short_extraction"),v}function ki(e,n,o,i,a,l,s,c,u,d,m,p,f,h,y,b,A,S,x){var k,C=[];if(!f&&!h&&n&&"search"!==n.contentType){var q=i.length,E=a.length,T=Qo().length>=2,_=Ut(/(^|\.)protothema\.gr$/i)&&"article"===n.contentType&&q>=500;if("article"!==n.contentType||n.legalProvision||u||d||m||_||(T&&q<500&&E>2e3&&(y||b||C.push("truncated_content")),T&&q>=500&&q<1500&&E>3e3&&q/E<.15&&!y&&!b&&C.push("truncated_content"),T&&q>=1500&&q<3e3&&E>8e3&&q/E<.12&&!y&&!b&&C.push("truncated_content"),function(e,r,n,o){if(!r||"article"!==r.contentType||r.docsLike)return!1;if(wi(r,n,o))return!1;var i=t([location.pathname||"",r&&r.title||"",e&&e.title||""].join(" ")).toLowerCase();if(String(r&&r.html||"").toLowerCase(),/\blyrics?\b/.test(i)){var a=vi(["[data-lyrics-container]",".lyrics","[class*='Lyrics__Container']"]);if(a.length<300)return!1;if(/data-lyrics-container|lyrics__container|class=["'][^"']*\blyrics\b/i.test(r.html||""))return!1;if(/\[(?:verse|chorus|bridge|outro|intro|hook|refrain|pre-chorus|instrumental)\b/i.test(o))return!1;if(/\b(song bio|annotation|contributors?|written by|produced by)\b/i.test(o)||o.length<.75*a.length)return!0}if(/\bpoems?\b/.test(i)){var l=vi(["[data-poem]",".poem","[class*='poem' i]"]);if(l.length>=300&&!/data-poem|class=["'][^"']*poem/i.test(r.html||"")&&o.length<.75*l.length)return!0}return!1}(e,n,o,i)&&!b&&C.push("truncated_content")),!(q<200&&E>1e3)||u||d||m||y||b||C.push("short_extraction"),"article"===n.contentType&&q>=200&&q<700&&E>2500&&!u&&!d&&!m&&!y){var L=t([o,s,e.title,e.description].join(" "));!b&&/\b(?:Published:\s*\d{4}|Duration:\s*P?T|featured video|watch video|learn more)\b/i.test(L)&&C.push("short_extraction")}if(("list"===n.contentType||"article"===n.contentType)&&((k=location.pathname||"")&&!/\/(?:search|browse|category|categories|tags?|topics?|collections?)\b/.test(k)&&/\/(?:drugs?|compounds?|substances?|proteins?|genes?|genomes?|pathways?|assays?|bioassays?|datasets?|records?|entries?|items?|products?|publications?|papers?|articles?|cases?|opinions?|decisions?)\/[a-z0-9_.-]*\d[a-z0-9_.-]*(?:\/|$)/i.test(k))&&q<500&&function(e){var r=t(e||"");if(!r)return!1;var n=(r.match(/\[([^\]]*)\]\([^)]+\)/g)||[]).length,o=(e||"").split(/\n+/).filter(function(e){return/^\s*[-*]\s+\[[^\]]+\]\([^)]+\)\s*$/.test(e)}).length,i=r.replace(/\[([^\]]*)\]\([^)]+\)/g,"").split(/\s+/).filter(function(e){return e.length>=3}).length;return n>=2&&o>=2&&i<2*n}(o)&&!y&&("article"===n.contentType&&b||C.push("short_extraction")),"article"===n.contentType&&!u&&!d&&!m&&q>=200&&q<1e3&&E>2e3&&!y){var j=t(o||""),P=(j.match(/\[([^\]]*)\]\([^)]+\)/g)||[]).length,$=(j.match(/^#{1,6}\s/gm)||[]).length,N=j.replace(/\[([^\]]*)\]\([^)]+\)/g,"").replace(/^#{1,6}\s.*$/gm,"").split(/\s+/).filter(function(e){return e.length>=3}).length;y||b||!(P>=3&&N<2*P||$>=3&&N<20)||C.push("short_extraction")}d&&q<60&&E>500&&C.push("short_extraction")}var R=Qo(),B=n&&"list"===n.contentType&&(Pe("q")||Pe("_nkw")||Pe("st")||/^\/search\//.test(location.pathname));if(!f&&!h&&R.length>=2&&!B&&!c&&!yi(r(location.pathname||"").toLowerCase())&&!gi(s,i)){var O=(i.match(/[a-zA-Z]/g)||[]).length,z=i.replace(/\s/g,"").length;if((z>0?O/z:1)>.25){var I=Xo(l),H=R.filter(function(e){return-1!==I.indexOf(e)}).length,F=R.length>=5?.3:.25;if(H/R.length<F){var D=Xo(s);!(R.filter(function(e){return-1!==D.indexOf(e)}).length/R.length<F)||p||si(e,n,i,o)||ci(e,n,i,o)||function(e,n,o){if(!n||o.length<500)return!1;var i=r(location.pathname||"").toLowerCase();if(!/\/(?:articles?\/)?(?:dataset|datasets|figure|record|entry)\//.test(i))return!1;var a=t([n&&n.title||"",e&&e.title,e&&e.siteName,o.slice(0,5e3)].join(" ")).toLowerCase();return/\b(?:dataset|posted on|authored by|doi|figure|data|repository|supplementary|apoptosis|protein|gene|assay|study)\b/.test(a)&&(/\b\d{3,}\b/.test(i)||/\/[_-]\//.test(i))}(e,n,i)||function(e){var t=ei([location.href||"",location.pathname||"",location.search||""].join(" "));if(!t.length)return!1;var r=ei(e||"");return t.some(function(e){return-1!==r.indexOf(e)})}(l)||function(e){var t=e&&e.sportsDetailEvidence;return!(!t||"opaque"!==t.urlMatch&&"consistent"!==t.urlMatch)}(n)||C.push("url_content_mismatch")}}}if(!f&&!h&&i.length>200&&!yi(r(location.pathname||"").toLowerCase())&&!gi(s,i)){var U=ti()||(e.language||"").slice(0,2).toLowerCase();!U||!ui[U]||p||di(U,i)||U!==ti()&&si(e,n,i,o)||ci(e,n,i,o)||function(e,r,n){var o=n||document&&document.title||r&&r.title||e&&e.title||"";if(!t(o))return!1;var i=ri(location.href),a=ri(e.canonicalUrl),l=oi(i),s=oi(a),c=l[l.length-1]||"",u=s[s.length-1]||"";function d(e){return!!e&&e.length>=4&&!/^\d+$/.test(e)}if(!d(c)&&!d(u))return!1;var m=ii(l[l.length-1]||""),p=ii(o);return!(!m||!p||m!==p&&-1===m.indexOf(p)&&-1===p.indexOf(m))}(e,n)||C.push("url_content_mismatch")}if(n&&"search"===n.contentType&&((n.resultCount||0)<3&&C.push("search_results_unusable"),(/^aplikacje google$/i.test(s)||/^google apps$/i.test(s))&&C.push("search_engine_shell_page"),/zawartość została wygenerowana przy użyciu ai|generated with ai|ai-generated/i.test(l)&&C.push("search_engine_ai_summary_only")),!f&&!h&&n&&"search"!==n.contentType&&"press_release"!==n.contentType&&!n.isolatedLiveblogEntry&&!c&&!m){var W=Ai(n,o).markdown||o||"",G=Si(e,n,W),Z=function(e,r,n,o){if(!r||"article"!==r.contentType&&"list"!==r.contentType)return!1;if("search"===r.contentType||"press_release"===r.contentType||"social"===r.contentType||r.packagePage||r.isolatedLiveblogEntry)return!1;if(t(r.byline||e.byline||v()||"")||t(r.publishedTime||e.publishedTime||w()||""))return!1;var i=t(n||o||""),a=t(r.title||e.title||"").toLowerCase(),l=t(r.siteName||e.siteName||location.hostname||"").toLowerCase(),s=((location.hostname||"")+" "+(location.pathname||"")+" "+(e.canonicalUrl||"")).toLowerCase();if(!i||i.length<250||mi(i)||po(a,i,{maxTextLength:1400}))return!1;if(!/(^\/$|\/(?:index(?:\.html?)?|docs?|documentation|reference|api|manual|guides?|tutorials?|standard[_-]?library|stdlib|language|methods)(?:\/|$))/i.test(s))return!1;var c=0;/(?:^|[\s/.-])(?:docs?|documentation|reference|api|manual|guide|tutorial|standard[_-]?library|stdlib)(?:[\s/.-]|$)/i.test(s)&&(c+=1),/(?:documentation|docs|reference|api|manual|guide|tutorial|standard library)/i.test(a+" "+l)&&(c+=1);var u=t(g(["meta[name='generator']"],"content")||"");if(/(?:docusaurus|sphinx|jekyll|hugo|mkdocs|docs|documentation|reference)/i.test(u)&&(c+=1),/(?:classes and modules|standard library documentation|language|reference|api|tutorial|guides?)/i.test(i)&&(c+=1),c<2)return!1;for(var d,m={},p=0,f=/\[([^\]]+)\]\(([^)]+)\)/g;d=f.exec(i);){var h=d[1]+" "+d[2];/(?:docs?|documentation|reference|api|manual|guide|tutorial|standard[_-]?library|stdlib|language|method|class|module|contribut|getting started)/i.test(h)&&!m[d[2]]&&(m[d[2]]=!0,p+=1)}return p>=4}(e,n,W,i),K=!!M(["NewsArticle","ReportageNewsArticle","AnalysisNewsArticle","OpinionNewsArticle"])&&i.length<1e3;!G||n.threadConversation||p||Z||"video"===G&&n.hostAware||K||function(e,n,o,i){if(!n||"article"!==n.contentType||n.docsLike||i.length<1500)return!1;var a=Ai(n,o),l=a.root||document,s=a.markdown||o||"";if(n.singleTopicPage)return!0;var c=t(n&&n.title||e.title||"").toLowerCase(),u=r(location.pathname||"").toLowerCase(),d=t(e&&e.siteName||"").toLowerCase(),m=!!(l&&l.matches&&l.matches(".mw-parser-output, #mw-content-text, #bodyContent, .vector-body, .vector-body-inner"));if(!(n.html&&/<h1\b/i.test(n.html)||c.length>20))return!1;var p=((s||"").match(/\n\s*\n/g)||[]).length,f=((s||"").match(/^#{1,6}\s+/gm)||[]).length,h=!!l.querySelector("article, main, [itemprop='articleBody'], #mw-content-text .mw-parser-output, #bodyContent .mw-parser-output");if(m&&p>=3&&f<=4*p&&i.length>=800)return!0;if(h&&p>=4&&f<=3*p&&i.length>=3e3)return!0;if(p>=10&&i.length>=2500&&f<=2*p)return!0;var g=/\b(abstract|references|methods|results|discussion|data availability|journal|protein|genome|doi)\b/i.test(i)||/\/(articles?|doi)\//.test(u);return!!(i.length>8e3&&g)||!(!/\/(?:what-we-do|what_we_do|our-work|our_work|about|mission|programmes?|programs?)\b/.test(u)&&!/\b(institution|agency|united nations|ngo|foundation|what we do|our work|mission)\b/.test(c+" "+d)||!/\b(what we focus on|we work|our work|mission|protect|provide|advocate|countries and territories|programmes?|programs?)\b/i.test(i))}(e,n,W,i)||function(e,n,o,i){if(!n||i.length<800)return!1;var a=r(location.pathname||"").toLowerCase(),l=t(n&&n.title||e.title||"").toLowerCase(),s=t(e&&e.siteName||"").toLowerCase(),c=t(document.body&&document.body.innerText||""),u=t([l,s,a,i.slice(0,12e3),c.slice(0,12e3)].join(" ")).toLowerCase(),d=(o||"").match(/^#{2,4}\s+/gm)||[],m=/\/(?:compound|substance|protein|gene|genome|pathway|assay|bioassay|dataset|datasets|article\/dataset|articles\/dataset|record|entry)\//.test(a),p=u.match(/\b(?:cid|cas|inchikey|inchi|canonical smiles|molecular formula|molecular weight|uniprot|ensembl|refseq|gene id|taxonomy id|doi|dataset|accession|chembl|pubchem|protein|proteomics|metabolomics|transcriptomics)\b/g)||[],f=document.querySelectorAll("table, dl, [class*='record' i], [class*='identifier' i], [class*='metadata' i], [data-testid*='metadata' i]").length>=2,h=!!M(["Dataset","DataCatalog"]);return(m||h||/\b(?:database|data repository|scientific resource|life science resource)\b/.test(s))&&p.length>=3&&(d.length>=4||f||i.length>=5e3)}(e,n,o,i)||hi(s,i)||C.push("multi_topic_page")}if(!f&&!h&&n&&"article"===n.contentType&&!bo()&&(fi()&&-1===C.indexOf("subscription_interstitial"))){var V=e&&!0===e.isAccessibleForFree,J=a.length>0?i.length/a.length:1;i.length>0&&(!V&&i.length<5e3||!V&&i.length<8e3&&J<.4||i.length<12e3&&J<.25)&&C.push("paywall_partial_content")}f||h||!n||"search"===n.contentType||c||/\/(foto|fotos|photos?|gallery|galleries|galerie|galerij|galleria|galeria|fotogalerie|bildergalerie|bildspel|fotogalleri|valokuvat|fotoalbum|fotoreportaz|фото|фотогалерея|φωτογραφίες)\b/i.test(location.pathname||"")&&i.length<800&&C.push("photo_gallery_page");if(!f&&!h&&bi(e,n,s,i)){var X=t(n&&n.publishedTime||e.publishedTime||"");if(X){var Y=Date.parse(X);if(!isNaN(Y))(Date.now()-Y)/864e5>30&&i.length>=1200&&!y&&C.push("stale_content")}}return f||h||!n||"search"===n.contentType||c||function(e,r,n){var o=t(r+" "+n).toLowerCase();if(!o)return!1;if(Ut(/(^|\.)(prnewswire\.com|globenewswire\.com|businesswire\.com)$/i))return!1;if(hi(e,r)||gi(e,r))return!1;var i=/\b(ein presswire|business wire|pr newswire|prnewswire|globe newswire|globenewswire|cision|marketwired|pr\.com|accesswire)\b|\/prnewswire\//i,a=o.match(/\b(ein presswire|business wire|pr newswire|prnewswire|globe newswire|globenewswire|cision|marketwired|pr\.com|accesswire)\b|\/prnewswire\//gi)||[];if(!a.length)return!1;if(/\b(this press release was (?:issued|distributed)|press release (?:distributed|provided|issued) by|distributed by (?:ein presswire|business wire|pr newswire|prnewswire|globe newswire|globenewswire|cision|marketwired|accesswire)|provided by (?:ein presswire|business wire|pr newswire|prnewswire|globe newswire|globenewswire|cision|marketwired|accesswire))\b/i.test(o))return!0;var l=o.slice(0,1600);if(i.test(l)&&/\b(press release|announces?|launches?|reports?|new york|london|toronto|singapore|--|\(business wire\))\b/i.test(l))return!0;var s=t(e+" "+n.slice(0,800)).toLowerCase();return!(!i.test(s)||!/\b(press release|announces?|launches?)\b/.test(s))||a.length>=3&&/\b(press release|announces?|launches?|distributed|provided)\b/i.test(o.slice(0,4e3))}(s,i,a)&&C.push("syndicated_repost"),C}function Ci(e,r,n,o,i){var a=[],l=t(r&&r.title||e.title).toLowerCase(),s=t(n||r&&r.textContent||"").toLowerCase(),c=t(o||"").toLowerCase(),u=(l+" "+s+" "+c).trim(),d=function(e){var r=t(e||"");if(!r||!Yo(r))return!1;var n=r.replace(/\s/g,"");if(n.length<60||n.length>2400)return!1;var o=r.split(/\s+/).filter(function(e){return e.length>0}).length;return o<=1||o<220||n.length/Math.max(o,1)>=4}(s),m=eo(e,o,i),p=ho(e,o),f=!(!r||!r.docsLike),h=!(!r||!r.packagePage),g=/definition of |what does .+ mean\??| pronunciation in english|dictionary|definitions for /.test(l)||/(\/dictionary\/|\/definition\/|\/definitions\/|\/pronunciation\/)/.test(location.pathname||"")||!!Pe("q")&&/\b(dictionary|translation|translate|thesaurus|lexicon|s[łl]ownik|t[łl]umaczenie)\b/.test(l+" "+t(e.excerpt||"").toLowerCase()),y=f&&s.length>20,b=!t(n||"")&&!t(r&&r.textContent||""),v=s.length<140&&/copyright\b.*\ball rights reserved\b/i.test(s)&&!/[.!?].+[.!?]/.test(s),w=t(r&&r.textContent||"").toLowerCase(),A=function(e,t,r,n){if(!e||"search"===e.contentType)return!1;var o=(location.pathname||"/").toLowerCase(),i=st(),a=i||bo(),l=(t.match(/\[[^\]]+\]\([^)]+\)/g)||[]).length,s=dt(document),c=!!e.portalRootEvidence;return!(mi(r)||mi(n))&&!po(e.title||"",r,{maxTextLength:1100})&&("list"===e.contentType?a&&s||c:!("social"!==e.contentType||"feed"!==e.socialKind||!e.hostAware)&&!(!i&&!/^\/(?:tag|tags|topic|topics|category|categories|feed|feeds|latest|headlines|news)(?:\/|$)/.test(o))&&e.itemCount>=3&&l>=3)}(r,n,s,c),S=po(l,t([s,w].join(" ")).toLowerCase(),{maxTextLength:1100}),x=document.querySelectorAll("main a[href], article a[href]").length>=3||r&&"list"===r.contentType,k=mi(s),C=s.length>500&&(!w||w.length>500)&&!(k&&!x),q=wi(r,n,s);return a=(a=a.concat(xi(e,r,n,s,c,u,0,f,y,m,p,S,x,C,b,v,i))).concat(ki(e,r,n,s,c,u,l,f,y,g,h,A,m,p,q,d))}var qi=/(?:constitution|constitutional|constitui[cç]?[aã]o|c[oó]digo|codigo|code|statute|act|law|regulation|ordinance|decree|treaty|convention)/i,Ei=/\b(?:civil|criminal|commercial|tax|labou?r|procedure|family|public|administrative)?\s*(?:code|statute|act|law|regulation|ordinance)\b/i,Ti=/(?:^|\s)(?:Art\.?|Article|Section|Sec\.?|§)\s*(?:\d+[ºª]?|[IVXLCDM]+)/gi,_i=/\b(?:title|chapter|part|book|t[ií]tulo|cap[ií]tulo|se[cç][aã]o)\s+(?:[IVXLCDM]+|\d+)/gi,Li=/(?:federal republic|rep[úu]blica federativa|republica federativa|civil rights|fundamental rights|legal provisions?|official gazette|promulgat|enacted|amended|paragraph|par[áa]grafo|paragrafo|inciso|subsection)/i,ji=/\b(?:legal provisions?|federal law gazette|official gazette|version information|translation includes? the amendment|current status of the .* version|conditions governing use of this translation)\b/i,Pi=/\b(?:version information|translation provided by|translations? may not be updated|full citation|federal law gazette|table of contents)\b/i,$i=/\b(?:translation provided by|translated by|translation includes?|translations? may not be updated|updated by|revised and updated by)\b/i,Ni=/(?:^|\s)(?:§|Section|Sec\.?|Article)\s*\d+/i,Ri=/(?:^|\s)(?:Art\.?|Article|Section|Sec\.?|§)\s*(?:1|I)\b/i;function Mi(e){var n=(e=e||{}).root||null,o=t(e.text||n&&n.textContent||""),i=t(e.title||document.title||""),a=t([i,r(e.path||location&&location.pathname||"").toLowerCase()].join(" ")).toLowerCase(),l=t([a,o.slice(0,e.contextLimit||4e3)].join(" ")).toLowerCase();return{text:o,titleContext:a,context:l,legalTitle:qi.test(l),officialStatuteTitle:Ei.test(a),officialTextSignals:ji.test(l),profileOfficialTextSignals:Pi.test(o),translationAttribution:$i.test(l),provisionMarkers:(o.match(Ti)||[]).length,structuralMarkers:(o.match(_i)||[]).length,legalTerms:Li.test(o),numberedClauses:(o.match(/(?:^|\s)\(\d+\)|(?:^|\s)\([a-z]\)/gi)||[]).length,sectionOrArticleMarker:Ni.test(o),bodyStartMatch:o.match(Ri)}}function Bi(e){if(!e||!e.querySelector)return!1;var r=e.querySelectorAll("#comments, .comments, .comments-area, .comment-list, .comments-section, #disqus_thread, [class*='comment' i]");if(!r.length)return!1;var n=t(e.textContent||"").length,o=Array.prototype.reduce.call(r,function(e,r){return Math.max(e,t(r.textContent||"").length)},0);return o>0&&o>=.7*n}function Oi(e){var r=[];return e.querySelectorAll("#comments, .comments, .comments-area, .comment-list, .comments-section, #disqus_thread, [class*='comment' i]").forEach(function(e){e.querySelector("p, li, [class*='body' i]")&&(r.some(function(t){return t.contains(e)})||r.push(e))}),r.map(function(e){return Qt(e,document)}).filter(function(e){return t(e.textContent||"").length>=40}).map(function(e){return e.outerHTML}).join("")}function zi(e){return e&&e.querySelectorAll?(rr(e,"#comments, #respond, .comments-area, .comment-list, .comments-section, .post-comments, .disqus-comment-count, [class*='comment-respond'], [class*='comentario' i], [class*='comentarios' i], [class*='commentaire' i], [class*='komentar' i], [class*='komentarze' i], [class*='yorum' i], .sharedaddy, .share, .share-links, .share-buttons, .social-sharing, .social-buttons, [class*='share' i], [id*='share' i], [class*='compartir' i], [class*='partager' i], [class*='teilen' i], [class*='paylas' i], [class*='paylaş' i], [class*='related' i], [id*='related' i], [class*='recommend' i], [id*='recommend' i], [class*='relacionad' i], [class*='relacionados' i], [class*='recomendad' i], [class*='recomendados' i], [class*='similares' i], [class*='newsletter' i], [id*='newsletter' i], [class*='subscribe' i], [id*='subscribe' i], [class*='advert' i], [id*='advert' i], [class*='promo' i], [id*='promo' i], [class*='adslot' i], [id*='adslot' i], [data-ad], [data-ads]"),Rt(e),Nt(e),e):e}function Ii(){var e=function(){var e=document.querySelector("text .text .section, text .section, [class~='text'] > .section");if(!e)return null;var r=t(e.textContent||""),n=!!document.querySelector("notes, [id*='notes' i], [class*='notes' i]"),o=Mi({text:r,title:document.title||""}),i=/\b(?:U\.S\.\s+Code|Code|Statute|Act|Section|§)\b/i.test(document.title||"")||o.sectionOrArticleMarker;return r.length<250||!n||!i||o.numberedClauses<2?null:e}(),r=document.querySelector("#viewLegSnippet, .viewLegSnippet, .LegislationSection, .legislation-section, [class*='LegislationSection' i], #viewLegContents, .viewLegContents")||e;if(!r)return null;var n=t(document.body&&document.body.textContent||""),o=t(r.textContent||""),i=Mi({root:r,text:o}),a=document.querySelector("#changesOverTime, #legNav, #breadCrumb, .legContent, [id*='legislation' i], [class*='legislation' i]"),l=/\b(what version|changes to legislation|timeline of changes|plain view|print options|opening options)\b/i.test(n);if(o.length<250)return null;if(!e&&!a&&!l)return null;if(i.numberedClauses<2&&!/\b(section|article|regulation|schedule)\s+\d+\b/i.test(o))return null;var s=tr(r),c=document.querySelector("#pageTitle, h1")||null,u=s.querySelector("h1, h2, h3")||null,d=t(s.textContent||"");return{title:t(c&&c.textContent||document.title),byline:null,excerpt:d.slice(0,280)||null,siteName:location.hostname,publishedTime:null,html:(u?"":c?c.outerHTML:"")+s.innerHTML,textContent:d,readerMode:!1,contentType:"article",legalProvision:!0}}function Hi(e){if(!e||!e.readerMode||"article"!==e.contentType||e.markdown||e.hostAware||e.docsLike||e.legalProvision||!st())return e;if(document.querySelector("#mw-content-text .mw-parser-output, #bodyContent .mw-parser-output")&&t(e.textContent||"").length>=800)return e;var r=Di();if(!r||!r.mainContentRoot)return e;var n=document.createElement("div"),o=document.createElement("div");return n.innerHTML=e.html||"",o.innerHTML=r.html||"",function(e,r){if(!t(e.textContent||""))return!1;for(var n=[],o=document.createTreeWalker(r,NodeFilter.SHOW_TEXT);o.nextNode();){var i=t(o.currentNode.textContent||"");i&&n.push(i)}for(var l=n.join(" "),s=document.createTreeWalker(e,NodeFilter.SHOW_TEXT),c=0;s.nextNode();){var u=t(s.currentNode.textContent||"");if(u){for(var d=l.indexOf(u,c);d>=0;){var m=/[\p{L}\p{N}]/u.test(u[0])&&/[\p{L}\p{N}]/u.test(l.charAt(d-1)),p=/[\p{L}\p{N}]/u.test(u[u.length-1])&&/[\p{L}\p{N}]/u.test(l.charAt(d+u.length));if(!m&&!p)break;d=l.indexOf(u,d+1)}if(d<0)return!1;c=d+u.length}}function f(e){return Array.prototype.map.call(e.querySelectorAll("a, img, source, video, audio, iframe, image, object, embed"),function(e){var r=[];["href","xlink:href","src","poster","data"].forEach(function(t){var n=a(e.getAttribute(t));n&&r.push(t+":"+n)}),zt(e.getAttribute("srcset")).forEach(function(e){var t=a(e.url);t&&Ot(e.descriptor)&&r.push("srcset:"+t+" "+e.descriptor)});var n="img"===e.localName?t(e.getAttribute("alt")||""):"";return{kind:e.localName,urls:r,alt:n}}).filter(function(e){return e.urls.length||e.alt})}var h=f(e),g=f(r),y=0;if(!h.every(function(e){for(;y<g.length;){var t=g[y++];if(e.kind===t.kind&&e.alt===t.alt&&e.urls.every(function(e){return-1!==t.urls.indexOf(e)}))return!0}return!1}))return!1;var b=new Set(Array.prototype.map.call(e.querySelectorAll("a[href]"),function(e){return a(e.getAttribute("href"))})),v=new Set;return r.querySelectorAll("a[href]").forEach(function(e){var r=a(e.getAttribute("href")),n=t(e.textContent||e.getAttribute("aria-label")||"");r&&!b.has(r)&&r.split("#")[0]!==location.href.split("#")[0]&&(n.length<yo(n)||ee(n)||xo(n,r)||Vt(e)||e.closest("nav, header, footer, aside, menu, [role='navigation'], [role='menu'], [role='toolbar'], [role='contentinfo']")||be(e)||be(e.parentElement)||ge(e)||v.add(r))}),v.size>=2}(n,o)?Object.assign({},e,{html:r.html,textContent:r.textContent}):e}function Fi(e){if(!e||mt(e))return-1/0;if(!Ui(e)&&Bi(e))return-1/0;if(e.matches("[id*='onetrust' i], [class*='onetrust' i], [id^='ot-' i], [class*='ot-' i], [class*='privacy-center' i], [id*='privacy-center' i], [data-nosnippet='true']"))return-1/0;var r=e.querySelector("#ot-pc-title, #ot-pc-desc, [id^='ot-pc-' i], [class*='ot-pc' i], [class*='ot-accordion' i], [id*='onetrust' i], [class*='onetrust' i], [id^='ot-' i], [class*='ot-' i], [id*='privacy' i], [class*='privacy' i], [id*='cookie' i], [class*='cookie' i], [class*='privacy-center' i], [id*='privacy-center' i], [data-nosnippet='true']"),n=t(r&&r.textContent||e.textContent||"").slice(0,500);if(r&&(rt(n)||at(n)))return-1/0;var i=t(e.textContent||""),a=/[\u0370-\u03FF\u0400-\u04FF\u0590-\u05FF\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\u0900-\u097F\u0980-\u09FF\u0E00-\u0E7F\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FFF]/.test(i),l=i.length;if("undefined"!=typeof window&&window.getComputedStyle)try{var s=window.getComputedStyle(e);if(s&&("none"===s.display||"hidden"===s.visibility))return-1/0}catch(e){}var c=e.querySelectorAll("p").length,u=e.querySelectorAll("h1, h2, h3").length,d=e.querySelectorAll("p, li, blockquote, figure, table").length;if(l<(a&&(c>=2||u>=1||d>=3)?180:280))return-1/0;var m=Array.prototype.reduce.call(e.querySelectorAll("a"),function(e,t){return e+o(t)},0),p=l>0?m/l:0,f=e.querySelectorAll("nav, aside, footer, [role='navigation'], [role='complementary'], [class*='comment' i], [id*='comment' i], [class*='related' i], [id*='related' i], [class*='recommend' i], [id*='recommend' i], [class*='newsletter' i], [id*='newsletter' i], [class*='subscribe' i], [id*='subscribe' i], [class*='share' i], [id*='share' i]").length,h=((e.className||"")+" "+(e.id||"")).toLowerCase(),g=0,y=l>=500&&(c>=2||u>=4||d>=4),b=/(weather|forecast|ve[ðd]ur|vedur|meteo)/i.test((location.pathname||"")+" "+document.title),v=l/Math.max(m,1),w=Math.min(300,Math.round(v/4)),A=f>d?Math.min(900,90*(f-d)):0,S=Math.round(p*(d>=4?240:400));return/(article|content|entry|main|post|story|body|definition|meaning|sense|glossary|lexicon|pronunciation|answer|articulo|artículo|noticia|conteudo|conteúdo|contenido|corpo|texto|berita|haber|nyheter|nieuws|aktualnosci|aktualności)/.test(h)&&(g+=180),a&&(c>=2||u>=1)&&(g+=140),/(comment|footer|nav|share|promo|related|sidebar|browse|translation|numerology|citation|quiz|cookie|privacy|subscription)/.test(h)&&(g-=220),!y&&Vi(e,i,p)&&(g-=4200),!y&&function(e,t){return!!/\b(recent posts?|popular posts?|latest posts?|related posts?|get started for free|start (?:your )?free trial|try .* for free)\b/i.test(t)&&((!e.matches||!e.matches("article, [itemprop='articleBody']"))&&Array.prototype.some.call(e.querySelectorAll("article, [itemprop='articleBody'], [class*='article' i], [class*='content' i], [class*='post' i]"),function(t){return!(t===e||t.querySelectorAll("a[href]").length>=4)&&(o(t)>=1200&&t.querySelectorAll("p").length>=5)}))}(e,i)&&(g-=9e3),!b&&l<1800&&Zi(i)||l<1800&&nt(i)&&(c<4||u<3)||l<2200&&/(discover more|newspapers|tourist destinations|travel guides?|travelogues)/i.test(i)&&(c<5||u<4)?-1/0:l+70*c+30*u+g+w-S-A}function Di(){if(Bi(document.body)&&!Ui(document.body))return{title:document.title,byline:null,excerpt:null,siteName:location.hostname,publishedTime:null,html:"",textContent:"",markdown:"",readerMode:!1,contentType:"list",items:[]};var e=Ii();if(e)return e;var r=["main[role='main']","article[role='main']","[itemprop='articleBody']",".article__body",".post-content",".entry-content","[class*='article-content']","[class*='amp-article-content' i]","[class*='amp-article-body' i]","[class*='mobile-article' i]","[class*='mobile-content' i]","[class*='rtl-article' i]","[class*='article-content' i]","[class*='article-body' i]","[class*='article-main' i]","[class*='article__body' i]","[class*='article__content' i]","[class*='articletext' i]","[class*='article-text' i]","[class*='article_text' i]","[class*='content-body' i]","[class*='content__body' i]","[class*='main-article' i]","[class*='post-content' i]","[class*='post-description' i]","[class*='entry-content' i]","[class*='story-content' i]","[class*='news-content' i]","[class*='amp-wp-article-content' i]","[class*='article-body-mobile' i]","[class*='mobile-article-body' i]","[class*='contenido-noticia' i]","[class*='conteudo-noticia' i]","[class*='corpo-noticia' i]","[class*='texto-noticia' i]","[class*='isi-berita' i]","[class*='berita-content' i]","[class*='haber-metni' i]","[class*='wysiwyg' i]","[class*='rich-text' i]","[data-testid*='article-body' i]","[data-testid*='article-content' i]","[data-component*='article-body' i]","[data-component*='article-content' i]","[data-module*='article-body' i]","[data-module*='article-content' i]","[data-qa*='article-body' i]","[data-qa*='article-content' i]","main","article",".article-content",".t-content",".t-content--article",".main-content",".post-content",".entry-content",".story-body",".news-content",".article-body","[data-article-body]",".content-body",".article__body",".article",".post",".entry",".content",".main","section","div"],n=new Set;r.forEach(function(e){document.querySelectorAll(e).forEach(function(e){n.add(e)})});var o=new WeakMap,i=Qt(document.body,document,o),a=Array.from(n).reduce(function(e,t){var r;if(document.body.contains(t)){if(!(r=o.get(t))||!i.contains(r))return e}else r=Qt(t,document);var n=tr(r);zi(n);var a=Fi(n);return!e||a>e.score?{node:t,score:a}:e},null),l=a&&a.score>-1/0?a.node:document.body,s=tr(Qt(l,document)),c=Ui(s)?Oi(document):"";Wi(s),zi(s),Wi(s),Gi(s),c&&s.insertAdjacentHTML("beforeend",c);var u=t(s.textContent);return{title:document.title,byline:null,excerpt:u.slice(0,280)||null,siteName:location.hostname,publishedTime:null,html:s.innerHTML,textContent:u,readerMode:!1,mainContentRoot:st()&&(l.matches("main, [role='main']")||l.matches("article")&&ae(l)),contentType:"article"}}function Ui(e){var r=e&&e.querySelector&&e.querySelector("h1, h2, [itemprop='headline']"),n=t(r&&r.textContent||""),o=e&&e.querySelectorAll?Array.prototype.filter.call(e.querySelectorAll("p, [itemprop='articleBody']"),function(e){return!e.closest("#comments, .comments, .comment-list, [class*='comment' i], [id*='comment' i]")}).map(function(e){return t(e.textContent)}).join(" "):"";return!!n&&o.length>=40}function Wi(e){e.querySelectorAll("p span, li span, blockquote span, p font, li font, blockquote font").forEach(function(e){e.querySelector("p, li, blockquote, div, ul, ol, table, pre")||e.replaceWith.apply(e,Array.prototype.slice.call(e.childNodes))})}function Gi(e){e.querySelectorAll(".comment-thread, [class*='comment-thread' i], .widget, [class*='widget' i], .views-element-container, [class~='comment'], .date-header").forEach(function(e){var r=t(e.textContent||"");(!r||r.length<100||!e.querySelector("p, article, section, ul, ol, table"))&&e.remove()})}function Zi(e){var r=t(e||"");return!!r&&(!!/(ve[ðd]ursp[áa]|weather forecast|forecast for the next|forecast for)/i.test(r)&&(r.match(/\b(ve[ðd]ursp[áa]|hiti|[úu]rkoma|vindur|frost|rigning|sk[ýy]ja[ðd]|temperature|precipitation|wind|rain|snow|storm)\b/gi)||[]).length>=4)}function Ki(e,r){if(!e)return r;if(!r||!e.readerMode)return e;var n=!!document.querySelector("#mw-content-text .mw-parser-output, #bodyContent .mw-parser-output"),i=t(e.markdown||e.textContent||"");if(n&&i.length>=800)return e;var a=t(r.markdown||r.textContent||""),l=document.createElement("div"),s=document.createElement("div");l.innerHTML=e.html||"",s.innerHTML=r.html||"";var c=l.querySelectorAll("p, li").length,u=s.querySelectorAll("p, li").length,d=Array.prototype.reduce.call(s.querySelectorAll("a[href]"),function(e,t){return e+o(t)},0),m=a.length>0?d/a.length:0,p=i.length>=600&&-1!==a.indexOf(i),f=/\b(oglas|advertisement|sponsored|ad)\b/i.test(i.slice(0,160)),h=nt(i),g=Zi(i),y=/(weather|forecast|ve[ðd]ur|vedur|meteo)/i.test((location.pathname||"")+" "+document.title);return a?r.legalProvision||i.length<4e3&&a.length>=Math.max(1800,i.length*(p?2.5:3))&&u>=Math.max(8,c+5)&&m<.28?r:Jo(e)?e:g&&!y&&a.length>=Math.max(900,2*i.length)||function(e){if(!e||"article"!==e.contentType)return!1;var r=document.createElement("div");r.innerHTML=e.html||"";var n=t(r.textContent||e.textContent||e.markdown||""),o=Array.prototype.reduce.call(r.querySelectorAll("a[href]"),function(e,r){return e+t(r.textContent||r.getAttribute("aria-label")||"").length},0),i=n.length>0?o/n.length:0;return Vi(r,n,i)}(e)&&Jo(r)&&a.length>=1200&&m<.25||h&&a.length>=Math.max(1e3,2*i.length)||Jo(r)&&(i.length<240||f)&&a.length>=Math.max(600,3*i.length)?r:e:e}function Vi(e,t,r){var n=((e.className||"")+" "+(e.id||"")).toLowerCase();return!(!/(sidebar|rail|aside|promo|cta|recent|popular|related)/.test(n)&&!/\b(recent posts?|popular posts?|latest posts?|related posts?|get started for free|start (?:your )?free trial|try .* for free)\b/i.test(t))&&(!(e.querySelectorAll("p").length>=8&&r<.18&&!/(sidebar|rail|aside)/.test(n))&&(r>=.18||e.querySelectorAll("a[href]").length>=4))}function Ji(){if("function"!=typeof Readability)return null;try{var e=Oi(document),r=function(){try{return document.cloneNode(!0)}catch(e){}var e=document.implementation.createHTMLDocument(document.title||"");for(document.documentElement&&document.documentElement.getAttribute("lang")&&e.documentElement.setAttribute("lang",document.documentElement.getAttribute("lang"));e.head.firstChild;)e.head.removeChild(e.head.firstChild);if(Array.prototype.forEach.call(document.head&&document.head.childNodes||[],function(t){var r=Gt(t,e);r&&e.head.appendChild(r)}),document.body){var t=Gt(document.body,e)||e.createElement("body");e.documentElement.replaceChild(t,e.body)}return e}();if(Yt(document.documentElement,r.documentElement),Bi(r))return null;r.querySelectorAll("p span, li span, blockquote span, p font, li font, blockquote font").forEach(function(e){e.querySelector("p, li, blockquote, div, ul, ol, table, pre")||e.replaceWith.apply(e,Array.prototype.slice.call(e.childNodes))}),pt(r),!!document.querySelector("#mw-content-text .mw-parser-output, #bodyContent .mw-parser-output, .mw-parser-output")||nr(r),zi(r);var n=new Readability(r).parse();return n&&n.content?t(n.textContent||"").length<40?null:(n.content+=e,{title:n.title||null,byline:n.byline||null,excerpt:n.excerpt||null,siteName:n.siteName||null,publishedTime:n.publishedTime||null,html:n.content,textContent:n.textContent||"",readerMode:!0,contentType:"article"}):null}catch(e){return null}}function Xi(e,t){return t=t||{},Array.prototype.map.call(e.querySelectorAll("a[href]"),function(e){return a(e.getAttribute("href")||e.href||"")}).filter(function(e){return!(!e||t[e])&&(t[e]=!0,!0)})}function Yi(e){return!(!e||!e.hidden&&!e.hasAttribute("inert")&&"true"!==e.getAttribute("aria-hidden"))}function Qi(e){return Yi(e)||Xt(e)}function ea(e){return!(!t(e.textContent||"")&&!Xi(e).length)||Array.prototype.some.call(e.querySelectorAll("img[alt]"),function(e){return!!t(e.getAttribute("alt")||"")})}function ta(e,r){var n=t([e.getAttribute("id"),e.getAttribute("class"),e.getAttribute("role"),e.getAttribute("aria-label"),e.getAttribute("data-testid")].join(" ").replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/([A-Z]+)([A-Z][a-z])/g,"$1 $2")).toLowerCase();return(r?/(^|[\s_-])(auth|login|sign[\s_-]?in|sign[\s_-]?up|register|account|paywall|subscribe|subscription|premium|members?[\s_-]?only|cookie|consent|privacy|template|draft)(?:$|[\s_-])/:/(^|[\s_-])(auth|login|sign[\s_-]?in|sign[\s_-]?up|register|account|paywall|subscribe|subscription|premium|members?[\s_-]?only|cookie|consent|privacy|modal|popup|drawer|offcanvas|template|draft|skeleton|placeholder)(?:$|[\s_-])/).test(n)}function ra(e,r,n,o){if(!e||!r.contains(e)||e.hidden||e.hasAttribute("inert")||"true"===e.getAttribute("aria-hidden"))return!0;if(e.matches("script, style, template, noscript")||e.closest("details:not([open])"))return!0;var i=e.closest("header, footer, nav, aside, dialog, menu, [role='dialog'], [role='alertdialog'], [role='navigation'], [role='menu'], [role='menubar']");if(i&&i!==r&&r.contains(i))return!0;for(var a=e;a&&a!==r;){if(be(a)||mt(a))return!0;if(ta(a,o||a!==e))return!0;a=a.parentElement}if(!1!==n){if(e.querySelector("header, footer, nav, aside, dialog, menu, details:not([open]), [role='dialog'], [role='alertdialog'], [role='navigation'], [role='menu'], [role='menubar'], input[type='password'], form[action*='login' i], [data-paywall], [class*='paywall' i], [id*='paywall' i]"))return!0;if(Array.prototype.some.call(e.querySelectorAll("[id], [class], [role], [aria-label], [data-testid], [hidden], [inert], [aria-hidden='true']"),function(e){return!(!Yi(e)||!ea(e))||(mt(e)||ta(e,!0))}))return!0}var l=t(e.textContent||"");return mi(l)||pi(l)}function na(e,r){if(ra(e,r))return null;for(var n=e;n.parentElement&&n.parentElement!==r;)n=n.parentElement;if(n.parentElement!==r||Xt(n)||ra(n,r,!1,!0))return null;var o=Qt(n),i=t(o.textContent||""),a=Xi(o).length;return i.length>=80||a>=1?n:null}function oa(e){return t(Un(String(e||"")).replace(/^[\s#>+-]+/,"").replace(/[`*_~]/g," ").toLowerCase())}function ia(e,t){var r=String(e||"").split(/\n+/).map(oa).filter(Boolean),n=String(t||"").split(/\n+/).map(oa).filter(Boolean),o=0;return r.every(function(e){for(var t=o;t<n.length;t+=1)if(n[t]===e)return o=t+1,!0;return!1})}function aa(e){var t=tr(e);return Wi(t),zi(t),Wi(t),Gi(t),t}function la(e,r,n){if(!e||"article"!==e.contentType||!e.readerMode||e.hostAware||e.docsLike||e.legalProvision)return null;if(fi()||ho(r||{},n))return null;var o=Un(mn(e.markdown||Jn(e.html||""))),i=t(o).length,a=document.createElement("div");if(a.innerHTML=e.html||"",i<40||i>2500||Xi(a).length)return null;var l=Array.prototype.filter.call(document.querySelectorAll("main, [role='main']"),function(e){return!(Xt(e)||function(e,t){for(var r=e;r&&r!==t&&1===r.nodeType;){if(Yi(r))return!0;r=r.parentElement}return!1}(e,null)||be(e))&&(!e.parentElement||!e.parentElement.closest("main, [role='main']"))});if(1!==l.length)return null;var s=l[0];if(s.closest("header, nav, aside, dialog, [role='dialog'], [role='navigation']")||mt(s)||ta(s,!1))return null;var c=t(s.textContent||""),u=t(s.innerText||"");if(u.length<400||c.length<2.5*u.length)return null;var d=function(e){return Array.prototype.filter.call(e.querySelectorAll("*"),function(t){if(!Qi(t))return!1;for(var r=t.parentElement;r&&r!==e;){if(Qi(r))return!1;r=r.parentElement}return!0})}(s);if(d.some(function(e){return ea(e)&&ra(e,s)}))return null;d=d.filter(function(e){return t(e.textContent||"").length>=80||Xi(e).length>=1});for(var m=[],p=0,f={},h=0;h<d.length;h+=1){var g=d[h],y=na(g,s);if(!y)return null;-1===m.indexOf(y)&&m.push(y);var b=window.getComputedStyle?window.getComputedStyle(g):null;if(!b||"none"!==b.display&&"hidden"!==b.visibility&&"collapse"!==b.visibility||0===Number(b.opacity))return null;p+=t(g.textContent||"").length,Xi(g,f)}if(m.length<3||p<.4*c.length||Object.keys(f).length<5)return null;if(!ia(o,Un(mn(Jn(aa(Qt(s)).innerHTML)))))return null;var v=aa(s),w=t(v.textContent||""),A=Un(mn(Jn(v.innerHTML))),S=Xi(v),x=v.querySelectorAll("h1, h2, h3, h4, p, li, blockquote, table").length,k=v.querySelector("h1, [itemprop='headline']"),C=t(k&&k.textContent||"");return w.length<5e3||w.length<2.5*i||S.length<8||x<8||C.length<8||!ia(o,A)?null:{title:C,byline:e.byline||null,excerpt:e.excerpt||null,siteName:e.siteName||location.hostname,publishedTime:e.publishedTime||null,html:v.innerHTML,textContent:w,readerMode:!1,contentType:"article"}}function sa(e){return t(e||"").replace(/\s*see (?:the )?full definition\b.*$/i,"").replace(/\s*opens in new tab\.?$/i,"").replace(/\s*[|:-]\s*(?:merriam-webster|definitions?\.net|dictionary(?:\.com)?|diki)\b.*$/i,"").trim()}function ca(e){return t(e||"").toLowerCase().replace(/^[\s#>*-]*(?:\d+[.)]|[a-z][.)]|[ivx]+[.)])\s*/i,"").replace(/^definition\s*[:.-]\s*/i,"").replace(/^[^:]{1,40}:\s+/,"").replace(/\b(?:source|references?|citation|cite this entry)\b.*$/i,"").replace(/[^a-z0-9]+/g," ").trim().slice(0,240)}function ua(e,r){var n=sa(r&&r.excerpt||"").toLowerCase(),o=t(e||"").toLowerCase();return!o||(!!function(e){var r=(t(e||"").match(/browse nearby words|cite this entry|more from merriam-webster|popular in grammar|popular in wordplay|top lookups|numerology|citation/gi)||[]).length;return r>=2}(o)||!(!n||n.length<18)&&(-1===o.indexOf(n)&&o.length<Math.max(260,3*n.length)))}function da(e){if(!e||1!==e.nodeType)return!1;var r=t((e.querySelector("h2, h3, h4, strong")||{}).textContent||""),n=t(e.textContent||""),o=t([e.id||"",e.className||""].join(" ")).toLowerCase();return!!ot(n)||(!!at(r)||(!!/^(love words\? need even more definitions|top lookups|add to chrome|add to firefox)$/i.test(n)||(!!/^discuss these .+ definitions with the community/i.test(n)||(!!/subscribe for ad-free|word of the day|browse definitions\.net|popular in grammar|popular in wordplay/i.test(n)||!!(/(cookie|privacy|consent)/.test(o)&&n.length<2400)))))}function ma(e){var r=t(e&&e.title||document.title).toLowerCase(),n=t(e&&e.excerpt||"").toLowerCase(),o=(location.pathname||"").toLowerCase(),i=tt().slice(0,2e3).toLowerCase(),a=!!Pe("q"),l=function(e){var r=t([e&&e.title,e&&e.excerpt,e&&e.siteName,Me("og:type","property")].join(" ")).toLowerCase(),n=0;return/\b(dictionary|glossary|lexicon|thesaurus|encyclopedia|database)\b/.test(r)&&(n+=3),/\b(definition|definitions|meaning|pronunciation|part of speech|citation|reference)\b/.test(r)&&(n+=2),/\b(website|article)\b/.test(r)&&/\b(dictionary|glossary|definition|definitions|database)\b/.test(r)&&(n+=1),R().some(function(e){var t=_(e).join(" ").toLowerCase();return!(!/definedterm|dictionary|glossary|creativework|article/.test(t)||!/\b(definition|term|description|citation)\b/.test(r+" "+t)||(n+=2,0))}),n}(e);return/definition of |what does .+ mean\??| pronunciation in english|dictionary|definitions for /.test(r)||/\/(dictionary|definition|definitions|pronunciation)\//.test(o)||/\bpart of speech\b|\bdefinition:\b|\bpronunciation\b/.test(i)||a&&/\b(dictionary|translation|translate|thesaurus|lexicon|s[łl]ownik|t[łl]umaczenie)\b/.test(r+" "+n)||l>=4&&/\b(definition|definitions|meaning|pronunciation|part of speech|citation|reference)\b/.test(i)}function pa(e){var r=sa(e&&e.excerpt||"");return!r||r.length<16?null:je({title:g(["main h1","article h1","h1"])||t(e&&e.title||document.title)||e&&e.title||document.title,description:r,siteName:e&&e.siteName||location.hostname})}function fa(e){if(!ma(e))return null;var n=function(e){var n=g(["main h1","article h1","h1"])||t(e&&e.title||document.title),o=g([".headword","strong.headword",".hword","main h1","article h1","h1"])||r((location.pathname||"").split("/").filter(Boolean).pop()||""),i=[];function a(e){return(e=t(e||""))||null}function l(e,t){if(!(!(t=a(t))||t.length<12||at(t)||/dictionary definitions page includes all the possible meanings|how to pronounce|how to say|translation|numerology|citation|top lookups|examples? of .* in a sentence/i.test(t))){var r=ca(t);!r||r.length<10?-1===e.indexOf(t)&&e.push(t):-1===e.map(ca).indexOf(r)&&e.push(t)}}function s(e){var r=tr(e);return r.querySelectorAll(".wikt-quote-container, .HQToggle, .nyms-toggle, .citation-whole, .use-with-mention, ul, dl, table, figure").forEach(function(e){e.remove()}),nr(r),t(r.textContent||"").replace(/^[:;]\s*/,"")}document.querySelectorAll("p.desc").forEach(function(e){var r=a(e.textContent||"");if(!(!r||r.length<12||at(r))){var n=e.parentElement&&e.parentElement.querySelector("p.term"),o=t(n&&n.textContent);o&&-1===r.toLowerCase().indexOf(o.toLowerCase())&&(r=o+": "+r),-1===i.map(ca).indexOf(ca(r))&&i.push(r)}});var c=A([".fl","[data-fl]",".partOfSpeech","[class*='part-of-speech']"]).filter(function(e){return e&&e.length<=40&&!at(e)}),u=A([".prs .pr",".ipa","[class*='ipa']",".pron","[class*='pron-us']","[class*='pron-uk']"]).filter(function(e){return e&&e.length<=120&&!ot(e)&&!at(e)&&!/how to pronounce|how to say|listen to the pronunciation/i.test(e)}),d=function(){var e=[];return Array.prototype.slice.call(document.querySelectorAll(".headword-line, p:has(.headword), p:has(strong.headword)")).some(function(t){for(var r=t.parentElement;r&&r.nextElementSibling&&(r=r.nextElementSibling,!/^(h2|h3|h4)$/i.test(r.tagName||""));)if("ol"===(r.tagName||"").toLowerCase())return Array.prototype.slice.call(r.children).forEach(function(t){"li"===(t.tagName||"").toLowerCase()&&l(e,s(t))}),e.length>=2;return!1}),e}().concat(function(){var e=[];return document.querySelectorAll("#dictionary-entry-1 .dtText, .entry-word-section-container .dtText, .sense .dtText").forEach(function(r){l(e,t(r.textContent||"").replace(/^[:;]\s*/,""))}),e}()).concat(i).concat(A(["p.desc",".dtText",".sense .dtText",".sense",".def",".definition","[class*='definition']","li[class*='meaning'] > span","li[class*='definition'] > span","li[class*='sense'] > span","[class*='meaning']","dd","[itemprop='description']"]).map(a)).filter(function(e){return e&&e.length>=12&&!at(e)&&!/dictionary definitions page includes all the possible meanings|how to pronounce|how to say|translation|numerology|citation|top lookups/i.test(e)}).filter(function(e,t,r){var n=ca(e);return!n||n.length<10?r.indexOf(e)===t:r.map(ca).indexOf(n)===t});if(!d.length&&!u.length)return null;var m=["# "+(n=o||n)];o&&-1===n.toLowerCase().indexOf(o.toLowerCase())&&m.push("## "+o),c.length&&m.push(c.join(" | ")),u.length&&m.push(u.join("\n")),d.forEach(function(e){m.push(e)});var p=mn(m.filter(Boolean).join("\n\n")),f=function(e){var r=t(e||"").toLowerCase(),n=document.createElement("div"),o=[];document.querySelectorAll("[id*='dictionary-entry'], [class*='example'], [class*='etymolog'], [class*='first-known'], [class*='word-history']").forEach(function(e){t(e.textContent||"").length<30||o.some(function(t){return t.contains(e)})||(o=o.filter(function(t){return!e.contains(t)})).push(e)}),o.forEach(function(e){n.appendChild(e.cloneNode(!0))});var i=[];return[n.childNodes.length?n:null,document.querySelector("main"),document.querySelector("#mw-content-text .mw-parser-output"),document.querySelector("#dictionary-entry-1"),document.querySelector("article"),document.querySelector("[role='main']"),document.body].forEach(function(e){e&&-1===i.indexOf(e)&&i.push(e)}),i.reduce(function(e,n){var o=tr(n);o.querySelectorAll("script, style, noscript, svg, form, header, nav, footer, aside, .mw-editsection, .mw-jump-link, .toc, #toc, .catlinks, #catlinks, .printfooter, .noprint, .mw-indicators, .mw-hidden-catlinks, .mw-empty-elt, .mw-headline-anchor").forEach(function(e){e.remove()}),o.querySelectorAll("section, div, aside, form, table, ul, ol, p, li, span").forEach(function(e){da(e)&&e.remove()}),nr(o);var i=mn(Jn(o.innerHTML)),a=t(i).toLowerCase();return!a||a.length<80||a===r||r.indexOf(a)>=0?e:/(^|\n)#{1,6}\s*(?:examples?|etymolog(?:y|ies)|word history|first known use|translations?|quotations?|usage notes?|synonyms?|antonyms?|derived terms|related terms|pronunciation)\b/i.test(i)&&(!e||a.length>t(e).length)?i:e},"")}(p),h=mn([p,f].filter(Boolean).join("\n\n")),y=t(h);if(y.length<40)return null;var b=document.createElement("article"),v=document.createElement("h1"),w=document.createElement("ol");return v.textContent=n,b.appendChild(v),d.forEach(function(e){var t=document.createElement("li");t.textContent=e,w.appendChild(t)}),b.appendChild(w),{title:n||e&&e.title||document.title,byline:null,excerpt:d[0]||y.slice(0,280)||null,siteName:e&&e.siteName||location.hostname,publishedTime:null,html:b.outerHTML,markdown:h,textContent:y,readerMode:!1,contentType:"article",hostAware:!0}}(e);if(n)return n;var i=pa(e),a=function(){var e=[];function r(t){t&&-1===e.indexOf(t)&&e.push(t)}return["article","main","[role='main']",".entry",".entry-body",".entry-body__el",".di-body",".pr.dictionary",".dictionary","#dictionary-entry-1",".definition",".definitions",".sense",".dtText","section","div","td","table"].forEach(function(e){document.querySelectorAll(e).forEach(r)}),document.querySelectorAll("h1, .dtText, .sense, dd, dt, [class*='definition'], [class*='pron'], [itemprop='description']").forEach(function(e){r(e),r(e.closest("article, main, [role='main'], section, div, td, table"))}),document.querySelectorAll("section, div, td, table").forEach(function(e){var n=t(e.textContent||"");n.length<40||n.length>3200||/\bpart of speech\b|\bdefinition:\b|\bpronunciation\b/.test(n.toLowerCase())&&r(e)}),e}().reduce(function(e,r){var n=function(e){if(!e)return-1/0;var r=o(e);if(r<60||r>14e3)return-1/0;var n=t(e.textContent||""),i=((e.className||"")+" "+(e.id||"")).toLowerCase(),a=e.querySelectorAll("h1, h2, h3").length,l=e.querySelectorAll("dd, dt, dl, [class*='definition'], [class*='sense'], [class*='pron'], [class*='entry'], [class*='meaning']").length,s=e.querySelectorAll("dd, dt, p.desc, dl, .dtText, .sense, .def, .definition, [class*='definition'], [class*='meaning'], [itemprop='description']").length,c=Array.prototype.slice.call(e.querySelectorAll("p.desc, dd, .dtText, .definition, [itemprop='description']")).filter(function(e){var r=t(e.textContent||"");return r.length>=40&&r.length<=520&&!da(e)}).length,u=Array.prototype.slice.call(e.querySelectorAll("p, li, dd, div")).filter(function(e){return/^\s*(?:\d+[.)]|[a-z][.)]|[ivx]+[.)])\s+\S/.test(e.textContent||"")}).length,d=e.querySelectorAll("p, li").length,m=e.querySelectorAll("a[href]").length*(s||c?10:16),p=0;return/(definition|dictionary|entry|meaning|sense|glossary|lexicon|pronunciation|ipa)/.test(i)&&(p+=260),/(source|reference|citation|database)/.test(i)&&(s||c)&&(p+=90),/\bpart of speech\b|\bdefinition:\b|\bpronunciation\b/.test(n.toLowerCase())&&(p+=220),s>=2&&(p+=180),c>=2&&(p+=260),u>=2&&(p+=120),e.matches&&e.matches("dl, [class*='definition'], [class*='sense'], [class*='entry'], [itemprop='description']")&&(p+=160),e.querySelector("h1")&&(p+=120),da(e)&&(p-=320),/\b(top lookups|word of the day|translation|numerology|citation|browse nearby words)\b/i.test(n)&&(p-=180),/\b(browse nearby words|more from merriam-webster|popular in grammar|popular in wordplay|translation|numerology|citation|quiz)\b/i.test(n)&&(p-=260),r>3500&&(p-=220),r>7e3&&(p-=400),r+80*l+95*s+160*c+18*d+35*a+p-m}(r);return!e||n>e.score?{node:r,score:n}:e},null);if(!a||a.score<260)return i;var l=tr(a.node);l.querySelectorAll("section, div, aside, form, table, ul, ol, p, li, span").forEach(function(e){da(e)&&e.remove()}),function(e){var r={};e.querySelectorAll("p.desc, dd, .dtText, .sense, .def, .definition, [class*='definition'], [class*='meaning'], [itemprop='description']").forEach(function(e){var n=ca(t(e.textContent||""));!n||n.length<16||(r[n]?e.remove():r[n]=!0)})}(l),nr(l);var s=mn(Jn(l.innerHTML)),c=t(s);if(c.length<40)return i;var u=g(["h1"])||t(e&&e.title||document.title);return u&&!Vr(s,u)&&(s="# "+u+"\n\n"+s),ua(c=t(s=mn(s)),e)&&i?i:{title:u||e&&e.title||document.title,byline:null,excerpt:c.slice(0,280)||null,siteName:e&&e.siteName||location.hostname,publishedTime:null,html:l.innerHTML,markdown:s,textContent:c,readerMode:!1,contentType:"article"}}function ha(e,t){return!e||!Ao(e)||t&&t.strongList?(e&&(e.contentType="list"),e):e}function ga(e,r){if((r=t(r||"")).length<5e3)return!1;if(/\bresults?\s+\d+\s*[-–]\s*\d+\s+(?:of|sur|von|de)\s+\d+\b/i.test(r))return!1;if(e&&e.querySelector("[class*='result' i], [id*='result' i]"))return!1;var n=0;if(/\b(?:high court|supreme court|court of appeal|federal court|district court|court of justice|tribunal)\b/i.test(r)&&(n+=1),/\b(?:judg(?:e)?ment|opinion of the court|reasons for judgment|delivered by|per curiam)\b/i.test(r)&&(n+=1),/\b(?:appellant|respondent|plaintiff|defendant|petitioner|counsel|solicitor|amicus|certiorari)\b/i.test(r)&&(n+=1),/\b[A-Z][A-Za-z'.-]+\s+v\.?\s+[A-Z][A-Za-z'.-]+\b/.test(r)&&(n+=1),/\[[12][0-9]{3}\]\s+[A-Z][A-Z0-9.]{1,12}\s+\d+|\([12][0-9]{3}\)\s+\d+\s+[A-Z][A-Z0-9.]{1,12}\s+\d+/i.test(r)&&(n+=1),n<3)return!1;var o=e?Array.prototype.filter.call(e.querySelectorAll("p, div, section, article, pre, blockquote"),function(e){return t(e.textContent||"").length>=180}).length:0,i=(r.match(/[.;:]\s+[A-Z][a-z]{2,}/g)||[]).length;return o>=5||i>=35||r.length>=2e4}function ya(e,r){if((r=t(r||"")).length<5e3)return!1;if(/\bresults?\s+\d+\s*[-–]\s*\d+\s+(?:of|sur|von|de)\s+\d+\b/i.test(r))return!1;if(e&&e.querySelector("[class*='result' i], [id*='result' i]"))return!1;var n=Mi({root:e,text:r,title:document.title||"",path:location.pathname||""});if(!n.legalTitle||n.provisionMarkers<8)return!1;var o=e?Array.prototype.filter.call(e.querySelectorAll("p, div, section, article, td, pre, blockquote"),function(e){return t(e.textContent||"").length>=180}).length:0;return n.structuralMarkers>=3||n.legalTerms||o>=8||r.length>=2e4}function ba(e,n){if(e=e||document.body,n=t(n||e&&e.textContent||""),!e||n.length<200)return!1;var o=r(location.pathname||"").toLowerCase(),i=t([document.title||"",(document.querySelector("h1")||{}).textContent||""].join(" ")),a=t([o,i,n.slice(0,1200)].join(" ")).toLowerCase(),l=/\/(?:contents?|table-of-contents|toc)(?:\/)?$/i.test(o),s=e.querySelector(".LegContents, .LegContentsEntry, [class*='contents' i], [id*='contents' i], [aria-label*='contents' i]"),c=Array.prototype.filter.call(e.querySelectorAll("a[href]"),function(e){var r=e.getAttribute("href")||"",n=t(e.textContent||"");return/\/(?:section|article|schedule|part|chapter)\/[^\s#?]+/i.test(r)||/\b(?:section|article|schedule|part|chapter)\s+(?:\d+[a-z]?|[ivxlcdm]+)\b/i.test(n)}).length,u=Array.prototype.filter.call(e.querySelectorAll("p"),function(e){return t(e.textContent||"").length>=160}).length;return!!(l||s||/\b(?:table of contents|contents|collapse all)\b/i.test(a))&&(!!/\b(?:act|code|law|regulation|ordinance|statute|legislation|convention|treaty|schedule)\b/i.test(a)&&(c>=6&&u<4))}function va(e,r){e=e||{};var n=t((r=r||{}).title||e.title||""),o=t(r.excerpt||e.excerpt||""),i=t(r.publishedTime||e.publishedTime||""),a=t(r.byline||e.byline||""),l=t(r.textContent||r.markdown||"");return!(n.length<yo(n)||l.length<220)&&(!!(i&&o.length>=40)||(!(!i||!a)||!!(i&&l.length>=320)))}function wa(e,t,r){if(!r)return!1;var n=r.canonicalKey||lt(r.url),o=r.dedupeKey||n,i=r.text+"|"+o;return!t[i]&&!t["url:"+o]&&(t[i]=!0,t["url:"+o]=!0,r.canonicalKey=n,e.push(r),!0)}function Aa(e){return(e||[]).reduce(function(e,t,r){var n=Math.max(0,t&&t.rankScore?t.rankScore:o(t&&t.text));return n=Math.min(n,1200),r>=8&&(n=Math.round(n/2)),e+n},0)}function Sa(e,r){r=r||{},e=e||document;var n=[],o=r.cardSelectors||[],i=[],a={},l=[],s=r.minTitleLength||0,c=r.maxTitleLength||1/0,u=!1!==r.dedupe;function d(e){e&&!Xt(e)&&-1===i.indexOf(e)&&(i.push(e),n.push(e))}return"string"==typeof o&&(o=[o]),o.forEach(function(t){Array.prototype.forEach.call(e.querySelectorAll(t),d)}),!o.length&&e.querySelectorAll&&d(e),n.forEach(function(e){var n,o=r.linkBuilder?r.linkBuilder(e):r.linkSelector?e.querySelector(r.linkSelector):null,i=r.candidateBuilder?r.candidateBuilder(e,o):null;if(i){i.text=t(i.text||""),i.url=i.url||"";var d="function"==typeof s?s(i.text):s;!i.text||i.text.length<d||i.text.length>c||(r.allowMissingUrl||i.url)&&(r.rejectCandidate&&r.rejectCandidate(i,e,o)||(void 0===i.detail&&r.detailBuilder&&(i.detail=r.detailBuilder(e,i,o)),n=function(e,t,n){var o;return r.keyBuilder&&(o=r.keyBuilder(e,t,n)),null==o&&(o=[e.text+"|"+(e.url||"")]),Array.isArray(o)||(o=[o]),o.filter(Boolean)}(i,e,o),u&&n.some(function(e){return a[e]})||(u&&n.forEach(function(e){a[e]=!0}),l.push(i))))}}),l}function xa(e,t){var r=Array.prototype.filter.call(e.querySelectorAll(t),function(e){return!Ua(e)});return e.matches&&e.matches("tr")?r:ce(e)?r.filter(function(t){return ue(t)===e}):r}function ka(e,r){var n=r&&r.listContext||qo();if(r&&r.directCard){var o=e.matches&&e.matches("a[href]")?e:e.querySelector("a[href]"),i=t((e.querySelector("h1, h2, h3, h4")||o||{}).textContent||"");if(o&&i.length>=6){var l=o.getAttribute("href")||"",s=a(l),c={text:i,url:s,detail:"",rankScore:i.length};return c.canonicalKey=s?lt(s):"unlinked:"+i.toLowerCase()+"|href:"+l,c.url=s?c.canonicalKey:null,c.card=e,c.sourceNode=o,Ta(c,e),c}}var u=e.querySelectorAll(K());if(Array.prototype.some.call(u,function(t){return de(t)&&me(e,t)}))return null;var d=xa(e,"a[href]").filter(function(e){return!e.matches("[rel='author'], [itemprop='author']")&&!e.closest("[class*='author' i], [class*='byline' i]")}),m=d.filter(function(e){return!(!e.closest("h1, h2, h3, h4")&&!e.querySelector("h1, h2, h3, h4"))})[0];e.matches&&e.matches("a[href]")&&(d=[e]);var p=e.matches&&(e.matches("tr")||e.matches(".post, .entry")&&le(e)||G(e,e.parentElement));if(!m&&!p&&!xa(e,"p, [class*='summary'], [class*='description'], [class*='excerpt'], time, img[alt]:not([alt=''])").length)return null;var f=m;f||(f=d.reduce(function(t,r){var o=Po(r,e,n,!0);return o&&(!t||o.rankScore>t.rankScore)?r:t},null)),!f&&r&&r.ancestorLink&&(f=e.closest("a[href]"));var h=Po(f,e,n,!0);if(!h&&f){var g=f.getAttribute("href"),y=t(f.textContent||f.getAttribute("aria-label")||""),b=a(g);g&&b&&y.length>=6&&y.length<=220&&(h={text:y,url:b,detail:"",rankScore:y.length})}return h?(n.anchorIndices||(n.anchorIndices=new WeakMap,document.querySelectorAll("a[href]").forEach(function(e,t){n.anchorIndices.set(e,t)})),h.domIndex=n.anchorIndices.has(f)?n.anchorIndices.get(f):-1,h.url&&(h.canonicalKey=lt(h.url),h.url=h.canonicalKey),h.card=fe(f,e,Ae(f,n.linkGroups),n.figureCollections),h.sourceNode=f,Ta(h,h.card),h):null}function Ca(e,t){var r=xa(e,t)[0];return r?Ce(r):""}function qa(e){var r=t(e.innerText||e.textContent||"");if(r)return r;var n=[];return[e].concat(Array.prototype.slice.call(e.querySelectorAll("[aria-label], [title], img[alt]"))).forEach(function(e){var r=t(e.getAttribute("aria-label")||e.getAttribute("title")||e.getAttribute("alt")||"");r&&-1===n.indexOf(r)&&n.push(r)}),n.join(" ")}function Ea(e,r,n,o){var i=n||Ro(e),l=!!n,s=e.closest&&e.closest("table"),c=s?Oo(s):[],u=i.findIndex(function(e){return e&&-1!==qa(e).indexOf(r)}),d=0;return i.map(function(e,n){if(!e)return"";if(l&&n>0&&i[n-1]===e)return"";var s=c[l?n:d]||"";l||(d+=Mo(e,"colSpan","colspan"));var m=qa(e);if(ee(s)||ne(m))return"";var p=m.indexOf(r);return-1!==p&&(m=t(m.slice(0,p)+" "+m.slice(p+r.length))),m?(o&&(m=function(e,r,n,o){if(!Array.prototype.slice.call(e.querySelectorAll("a[href]")).some(function(e){var t=a(e.getAttribute("href")),i=qa(e);return t&&i&&(!o||t!==n||i!==r)}))return null;var i=e.cloneNode(!0),l=Array.prototype.map.call(i.querySelectorAll("a[href]"),function(e){var t=i.ownerDocument.createTextNode("");return e.replaceWith(t),{slot:t,link:e}});return t(i.textContent)?(l.forEach(function(e){var t=e.link,i=qa(t),l=a(t.getAttribute("href"));e.slot.textContent=!i||o&&i===r&&l===n?"":Se(i,l)}),t(i.textContent)):null}(e,r,o.url,n===u)||m),n!==u&&s&&s.toLowerCase()!==m.toLowerCase()?s+": "+m:m):""}).filter(Boolean).join(" | ")}function Ta(e,r){e.summary=Ca(r,"[class*='summary'], [class*='description'], [class*='excerpt'], p"),e.category=Ca(r,"[class*='category'], [class*='eyebrow'], [class*='kicker']");var n=xa(r,"time")[0];n&&(e.time=t(n.getAttribute("datetime")||n.textContent)),e.image=function(e){var r=xa(e,"img[alt]:not([alt='']), figcaption")[0];if(!r)return"";var n=t(r.getAttribute?r.getAttribute("alt"):r.textContent);return n.length<=2||/^(image|photo|thumbnail|logo|icon|avatar)$/i.test(n)?"":n}(r),t(e.image)===t(e.text)&&(e.image=""),e.caption=Ca(r,"figcaption")}function _a(e,t){if(!e||!e.querySelectorAll)return[];var r={},n=[],o=qo();t&&(o.supportingLinks=t.supportingLinks||t);var i=Object.assign({},o);o.tableIndexPage=!!Do();var l=["h1 a[href]","h2 a[href]","h3 a[href]","h4 a[href]","a[href]:has(h1, h2, h3, h4)","article a[href]","section a[href]","[class*='headline' i] a[href]","[class*='story' i] a[href]","[class*='post' i] a[href]","[class*='news' i] a[href]","[class*='feed' i] a[href]","[class*='teaser' i] a[href]","[class*='result' i] a[href]"].join(", ");return Array.prototype.forEach.call(e.querySelectorAll(l),function(e){if(!o.supportingLinks.has(e)){var t=e.closest("tr, article, section, li, div")||e.parentElement;if(!(ve(e)||ve(e.parentElement)||function(e){return he(e,ve)}(e))){var l=Po(e,t,o,!0);if(l){if(null==l.groupLabel&&l.card&&le(l.card)){var s=l.card.querySelectorAll(K());if(Array.prototype.some.call(s,function(e){return de(e)&&me(l.card,e)}))return;var c=ka(l.card,{listContext:i});if(c&&c.sourceNode!==e&&(!l.url||lt(c.url)!==lt(l.url)))return}l.sourceNode=e;var u=l.url&&l.card&&l.card.matches("section")&&!Array.prototype.some.call(l.card.querySelectorAll("a[href]"),function(e){var t=a(e.getAttribute("href"));return t&&t!==l.url});(J(l.card)===e||c&&c.sourceNode===e||u)&&Ta(l,l.card),wa(n,r,l)}}}}),n}function La(e,r,n){var o=[],i=r&&r.length>0,l=i&&n&&n.includeInlineProse,s=new Set((r||[]).map(function(e){var t=a(e.url||"");return t&<(t)}).filter(Boolean)),c=new Set((r||[]).map(function(e){return a(e.url||"")}).filter(Boolean)),u=r&&r.map(function(e){return function(e,r){if(!e)return[];var n=[e.text].concat(Te(e,r)),o=Ma(e);if(o){var i=n.join("\n");xa(o,"p, blockquote").forEach(function(t){if(!Vt(t)){var r=Ce(t,!1,e.url);r&&i.indexOf(r)>=0&&n.push(t.textContent||"")}})}return n.map(t).filter(Boolean)}(e,s)}),d=(n&&n.pageTitles||[]).map(function(e){return t(e).toLowerCase()}).filter(Boolean),m=i?"h1, h2, h3, h4, h5, h6, p, blockquote":"h1, h2, h3, p, blockquote";return e.querySelectorAll(m+(l?", div":"")).forEach(function(e){if(!e.parentElement||!e.parentElement.closest("blockquote")){var l="BLOCKQUOTE"===e.tagName,s="DIV"===e.tagName;if((!s||function(e){if(!Xn(e)||e.closest("a, button, label, summary, p, table, ul, ol, pre, code, blockquote")||e.querySelector("button, input, select, textarea, label, video, audio, canvas, object, iframe"))return!1;var r="[aria-hidden='true' i], [inert]";if(e.closest(r)||Array.prototype.some.call(e.querySelectorAll(r),function(e){return!!t(e.textContent)}))return!1;if(e.closest(ht+", header, dialog, [role='dialog'], [aria-modal='true'], [role='navigation'], [role='menu'], [role='toolbar']"))return!1;if(wt.test(t(e.textContent)))return!1;var n=e.cloneNode(!0),o=n.querySelectorAll("time, [datetime], [rel='author'], [itemprop='author'], [class*='author' i], [class*='score' i], [class*='reply' i], [class*='replies' i], [class*='community' i]");if(o.length&&(o.forEach(function(e){e.remove()}),!/\p{L}/u.test(t(n.textContent))))return!1;for(var i=e;i;i=i.parentElement){var a=[i.id,i.getAttribute("class")].join(" ").replace(/([a-z])([A-Z])/g,"$1-$2");if(/(cookie|consent|privacy)[-_\s]*(modal|dialog|banner|notice|popup|container)/i.test(a))return!1}if(e.querySelector("a[href]")){var l=e.cloneNode(!0);l.querySelectorAll("a").forEach(function(e){e.remove()}),l.querySelectorAll("time, [datetime]").forEach(function(e){e.remove()});var s=t(l.textContent).replace(/\b\d+(?:\.\d+)?\s*(?:seconds?|minutes?|hours?|days?|weeks?|months?|years?)\s+ago\b/gi,"").replace(/\b\d+(?:\.\d+)?[kmb](?=\s|$)/gi,"");if(!/\p{L}/u.test(s))return!1}return!0}(e))&&!(l&&Ua(e)||function(e,r,n,o,i){if(!r)return se(e);var l,s=t(e.textContent||""),c=s&&r.find(function(t,r){var n=o[r];return n.some(function(e){return e===s||e.indexOf(s)>=0})&&function(e,t,r){return Array.prototype.every.call(e.querySelectorAll("a[href]"),function(e){if(Ua(e))return!0;var n=a(e.getAttribute("href"));return!n||(!(!r||!r.has(n))||t.some(function(e){return e.indexOf(n)>=0}))})}(e,n,i)});if(c){if(c.card)return c.card;if(n&&n.suppressRepresentedText)return e}if(n&&n.excludeRecordCards&&(l=se(e))&&(l!==e||function(e){return Array.prototype.some.call(e.classList||[],function(e){return/(?:^|[-_])(?:card|story|teaser|item|result|news|post|entry)(?:$|[-_])/i.test(e)||/(?:Card|Story|Teaser|Item|Result|News)(?:$|[A-Z])/.test(e)})}(e)))return l;if(n&&n.sectionLabels&&/^H[1-6]$/.test(e.tagName||"")){if(-1!==n.sectionLabels.map(function(e){return t(e).toLowerCase()}).indexOf(s.toLowerCase()))return e;if(o.some(function(e){return e.some(function(e){return e.length>=12&&-1!==s.indexOf(e)})}))return e}return n&&n.preserveUnrepresentedText?null:function(e,t){var r=se(e);if(!r||t.some(function(e){return e&&e.card===r}))return null;var n=new Set(t.map(function(e){return e&&e.url?lt(e.url):e&&e.canonicalKey}).filter(Boolean));return xa(r,"a[href]").some(function(e){var t=a(e.getAttribute("href"));return t&&n.has(lt(t))})?r:null}(e,r)}(e,r,n,u,c)))if(l){var m=e.cloneNode(!0);Wa(e,m);var p=Jn(m.outerHTML).trim();p&&o.push({node:e,markdown:p})}else{var f=t(e.textContent),h=/^H[1-6]$/.test(e.tagName),g=h&&!e.closest("a[href]")&&!e.querySelector("a[href]"),y=g&&e.closest("[class*='weather' i], [id*='weather' i]");if(y&&To(y.textContent)&&(g=!1),(!h||g||/^H[1-3]$/.test(e.tagName))&&(!h||-1===d.indexOf(f.toLowerCase()))&&(i&&(g||s)||n&&n.preserveTextLengths||!(f.length<30||f.length>2e3))&&!(Eo(f)||rt(f)||nt(f)||To(f))){var b=e.querySelectorAll("a[href]").length,v=f.split(/\s+/).length;if(b<=1||b/v<.3){var w=h?"## ":"";if(!h&&b){var A=e.cloneNode(!0);A.querySelectorAll("a[href]").forEach(function(e){e.replaceWith(document.createTextNode(Se(t(e.textContent),e.getAttribute("href"))))}),f=t(A.textContent)}o.push({node:e,markdown:w+f})}}}}}),o}function ja(e,t,r){return La(e,t,r).map(function(e){return e.markdown}).join("\n\n")}function Pa(e,t){var r=_e(t);return e?e+(r?"\n\n"+r:""):r}function $a(e,t){if(!e||function(e){return Vt(e)}(e))return document.createElement("div");var r=Zt(e,document);return e.matches&&e.matches("table")&&function(e,t){if(!e||!t||"TABLE"!==e.tagName||"TABLE"!==t.tagName)return!1;var r=zo(e),n=zo(t);r.length===n.length&&!r.some(function(e,t){return Ro(e.row).length!==Ro(n[t].row).length})&&r.forEach(function(e,t){var r=n[t].row,o=Ro(r);r.setAttribute("data-fetchutil-table-row",String(t)),Ro(e.row).forEach(function(e,r){o[r].setAttribute("data-fetchutil-table-cell",Io(t,r))})})}(e,r),Yt(e,r,t),tr(r)}function Na(e){var r=["a[href]:has([class$='-name' i]:not(:empty)):has([class$='-desc' i]:not(:empty)), a[href]:has(h1, h2, h3, h4):has(p), a[href]:has([class$='-name' i]):has(time, [datetime], [class*='date' i]), a[href]:has([class*='title' i]):has([class*='description' i])","tr.athing","tr[data-id][data-url*='/remote-jobs/']","article","li","section",".item",".story",".post",".entry",".news",".headline",".feed-item","[class*='card' i]","a[href][class*='item' i]","[class*='result' i]","[class*='teaser' i]","[class*='news' i]","[class*='headline' i]","[class*='feed' i]","[class*='thread' i]","[class*='topic-list' i]","[class*='job-card' i]","[data-testid='slider_container']","[data-test='jobListing']","[data-jobid]","[data-url*='/remote-jobs/']",".structItem",".discussionListItem"].join(", "),n=Array.prototype.slice.call(e.querySelectorAll(r)),o={},i=[],l=new Map,s=new Set,c=qo(),u=Do();c.tableIndexPage=!!u;var d=[location.pathname,document.title,(document.querySelector("h1")||{}).textContent].join(" "),m=/\b(?:cases?|defendants?|records?|dockets?|matters?)\b/i.test(d);function p(e,t,r,n,o){var i=c.tableIndexPage&&r&&r.matches&&r.matches("tr"),a=!!(o&&r&&r.parentElement&&r.parentElement.__fetchUtilChromeOwnedListRecords&&J(r)===o),l=yo(e);n&&W(o)&&(l=Math.min(6,l));var s=i?2:n||a?l:m?3:18;return o&&Ae(o,c.linkGroups)&&(s=1),e.length<s||ee(e)||/^[\w.-]+\.[a-z]{2,}$/i.test(e)||/(?:^|[?&])(user|from|site|goto)=/i.test(t)||xo(e,t)||Eo(e)}function f(e,t){if(!s.has(e)){var r=Po(e,t,c,!0),n=r&&(r.url||e&&e.getAttribute("href")||""),a=G(e,t)||!(!r||F(e)!==r.card);r&&!p(r.text,n,t,a,e)&&(r.sourceNode=e,Ta(r,r.card),wa(i,o,r)&&(l.set(r,e),s.add(e)))}}if(c.tableIndexPage&&e.matches&&e.matches("table")){var h=function(e){if(!e)return null;var t=Oo(e),r=t.length>=3?Fo(e,t):null;return r&&r.primaryColumn}(u),g=function(e,t){var r=zo(e),n=new Map;r.forEach(function(e,t){Ro(e.row).forEach(function(e,r){n.set(e,Io(t,r))})});var o={};Array.prototype.forEach.call(t.querySelectorAll("[data-fetchutil-table-cell]"),function(e){o[e.getAttribute("data-fetchutil-table-cell")]=e});var i=!0,a=zo(t).map(function(e){var t=parseInt(e.row.getAttribute("data-fetchutil-table-row"),10),a=r[t];return a?{row:e.row,cells:a.cells.map(function(e){return o[n.get(e)]||null})}:(i=!1,null)});return i?a:null}(u,e)||zo(e);return function(e){Array.prototype.forEach.call(e.querySelectorAll("[data-fetchutil-table-row], [data-fetchutil-table-cell]"),function(e){e.removeAttribute("data-fetchutil-table-row"),e.removeAttribute("data-fetchutil-table-cell")})}(e),g.forEach(function(e){var r=e.row,n=Ho(0,e.cells,2,h,!0);if(n){var a=t(n.link.textContent||n.link.getAttribute("aria-label")||""),l=oe(Ea(r,a,e.cells)),s={text:a,url:n.url,detail:l,rankScore:a.length+l.length,card:r,tableCells:e.cells,canonicalKey:n.url||"unlinked:"+a.toLowerCase()+"|href:"+n.href,dedupeKey:(n.url||"unlinked:"+a.toLowerCase()+"|href:"+n.href)+"|row:"+t(l).toLowerCase()};wa(i,o,s)}}),i}return n.forEach(function(e){!e.matches("tr")&&e.querySelectorAll("tr a[href]").length>=2||f(function(e){if(e.matches("a[href]"))return le(e)?e:null;var r=e.querySelector("h1 a[href], h2 a[href], h3 a[href], h4 a[href], a[href] h1, a[href] h2, a[href] h3, a[href] h4");if(r)return r.closest("a[href]")||r;var n=Array.prototype.slice.call(e.querySelectorAll("a[href]"));return(n=n.filter(function(e){var r=t(e.textContent||e.getAttribute("aria-label")||"");return r&&!xo(r,e.getAttribute("href")||"")&&!be(e)&&!be(e.parentElement)&&!ge(e)})).sort(function(e,r){var n=!!a(e.getAttribute("href")),o=!!a(r.getAttribute("href"));if(n!==o)return o-n;var i=t(e.textContent||e.getAttribute("aria-label")||"");return t(r.textContent||r.getAttribute("aria-label")||"").length-i.length}),n[0]||null}(e),e)}),Array.prototype.filter.call(e.querySelectorAll("a[href]"),function(e){var r=t(e.textContent),n=e.getAttribute("href");return!(!n||"#"===n[0])&&(!p(r,n,c.tableIndexPage&&e.closest("tr"),!1,e)&&r.length<=220)}).forEach(function(e){var t=e.closest("tr, li, article, figure, section, div")||e.parentElement;f(e,t)}),_a(e,c).forEach(function(e){s.has(e.sourceNode)||wa(i,o,e)&&l.set(e,e.sourceNode)}),i.sort(function(e,t){var r=l.get(e).compareDocumentPosition(l.get(t));return r&Node.DOCUMENT_POSITION_FOLLOWING?-1:r&Node.DOCUMENT_POSITION_PRECEDING?1:0}),Object.defineProperty(i,"__fetchUtilSupportingLinks",{value:c.supportingLinks}),i}function Ra(e){return pt(e),jt(e),Pt(e),$t(e),Rt(e),e.querySelectorAll("header, footer, nav, menu, [role='navigation'], [role='menubar'], [role='menu'], [role='toolbar'], [role='banner'], [role='contentinfo']").forEach(function(e){e.remove()}),e.querySelectorAll("section, div, aside, form, ul, ol").forEach(function(e){if(be(e)){var t=we(e);t.length&&e.parentNode&&t.forEach(function(t){st()||t.querySelectorAll("ul, ol, [role='list'], [class*='listing' i], [class*='grid' i], [class*='feed' i], [class*='results' i]").forEach(function(e){Lo(e)&&(Array.prototype.some.call(e.querySelectorAll(K()),function(e){return!!J(e)})&&e.remove())}),t.__fetchUtilChromeOwnedListRecords=!0,e.parentNode.insertBefore(t,e)}),e.remove()}}),e.querySelectorAll('a[href^="#"]').forEach(function(e){var r=t(e.textContent);r&&!/^skip\s+(to\s+)?/i.test(r)||e.remove()}),e.querySelectorAll("a, button").forEach(function(e){var r=t(e.textContent).toLowerCase();/^(sign in|log in|login|register|subscribe|newsletter|follow us|follow|join now|create account|my account|account|menu|search)$/i.test(r)&&e.remove()}),e}function Ma(e){var r=e&&e.card,n=a(e&&e.url);if(!r||!n)return null;var o=J(r);if(!o||lt(a(o.getAttribute("href"))||"")!==lt(n))return null;if(e.contentCard)return e.contentCard;var i={};if(xa(r,"h1 a[href], h2 a[href], h3 a[href], h4 a[href]").forEach(function(e){if(!Vt(e)){var t=a(e.getAttribute("href"));t&&(i[lt(t)]=!0)}}),1!==Object.keys(i).length)return null;var l=xa(r,"p").filter(function(e){return!Vt(e)&&t(e.textContent||"").length>=24}).length;return!r.matches("article, [class~='story' i], [itemtype*='Article']")&&l<2?null:r}function Ba(e,r){var n=function(e,r){if(r&&r.headingBuilder)return r.headingBuilder(e);var n=e.querySelector(r&&r.headingSelector||"h1, h2, h3, h4"),o=t(n&&n.textContent);return!o||o.length>90||ct(o,"")?"":o}(e,r);return!n&&r.fallbackHeadingBuilder&&(n=r.fallbackHeadingBuilder(e)),n}function Oa(e,t){var r=t&&t.regionSelector||"section, [role='region'], main > div, main > article";return Array.prototype.filter.call(e.querySelectorAll(r),function(e){return!!Ba(e,t)&&function(e,t){return!(!t.skipEditorialGuard&&!Ia(e)||t.regionFilter&&!t.regionFilter(e))&&(!!t.allowEmptyRegions||za(e,t).some(function(e){return!t.cardFilter||t.cardFilter(e)}))}(e,t)})}function za(e,t){t=Object.assign({},t,{listContext:t&&t.listContext||qo()});var r=[],n=[];return function(e,t){var r=t&&t.cardSelector,n=r||K(),o=Array.prototype.slice.call(e.querySelectorAll(n));r||(o=o.filter(le));var i=o.filter(function(e){return!o.some(function(t){return t!==e&&t.matches&&t.matches("tr")&&t.contains(e)})&&!o.some(function(t){return t!==e&&e.contains(t)&&de(t)&&me(e,t)})});return i.length||(i=[e]),i}(e,t).forEach(function(e){var n=ka(e,t);n&&(n.url||n.canonicalKey)&&r.push(n)}),r.filter(function(e){return!r.some(function(t){return t!==e&&e.card.contains(t.card)&&me(e.card,t.card)})}).forEach(function(e){n.push(e)}),n}function Ia(e){for(var t=e.parentElement;t;){if(t.matches&&t.matches("aside, nav, header, footer, [role='navigation'], [role='complementary'], [role='banner'], [role='contentinfo']"))return!1;t=t.parentElement}return!Lo(e)&&!Lo(e.parentElement)}function Ha(e,r){var n=(r=Object.assign({},r,{listContext:qo()})).regionSelector||"section, [role='region'], main > div, main > article",o=[],i=[],l={},s=Array.prototype.slice.call(e.querySelectorAll(n));return r.additionalRegions&&(s=s.concat(r.additionalRegions(e))),s.sort(function(e,t){return e===t?0:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}),s.forEach(function(n){var s=Ba(n,r),c=!s&&function(e,t,r){return!(r.regionSelector||r.headingSelector||r.headingBuilder||r.fallbackHeadingBuilder||r.additionalRegions||r.regionFilter||r.cardSelector||r.cardFilter||r.allowEmptyRegions||r.skipEditorialGuard||e.parentElement!==t||!e.matches(["section","[role='region']","[class~='section' i]","[class~='slider' i]","[class~='push-slider' i]","[class~='carousel' i]","[class~='feed' i]","[class~='grid' i]","[class~='list' i]"].join(", "))||Oa(e,r).length)}(n,e,r);if((s||c)&&!i.some(function(e){return e.contains(n)})&&(r.skipEditorialGuard||Ia(n))&&(!r.regionFilter||r.regionFilter(n))){var u=function(e,t){if(t&&t.headingBuilder)return null;var r=e.querySelector(t&&t.headingSelector||"h1, h2, h3, h4"),n=t&&t.regionSelector||"section, [role='region'], main > div, main > article",o=r&&r.closest&&r.closest(n);return o&&o!==e&&e.contains(o)?o:null}(n,r);if(u){var d=Oa(n,r);if(d.indexOf(u)>=0&&!function(e,t,r){return za(e,r).some(function(e){return!(r.cardFilter&&!r.cardFilter(e))&&e.card&&!t.some(function(t){return t.contains(e.card)})})}(n,d,r))return}var m=za(n,r).filter(function(e){return!r.cardFilter||r.cardFilter(e)});if(!c||function(e){var t=new Set;return e.forEach(function(e){a(e.url)&&t.add(xe(e))}),t.size>=3}(m)){var p=m.filter(function(e){var r=e.canonicalKey||lt(e.url).replace(/([?&])(?:utm_[^&=]+|fbclid|gclid|dclid|msclkid|mc_cid|mc_eid)=[^&]*&?/gi,"$1").replace(/[?&]$/,""),n=t(e.time||""),o=l[r];return!(o&&(!n||!o.length||o.indexOf(n)>=0))&&(o||(o=l[r]=[]),n&&o.push(n),!0)});(p.length||r.allowEmptyRegions)&&(i.push(n),o.push({label:s,cards:p,node:n,headingNode:!r.headingBuilder&&n.querySelector(r.headingSelector||"h1, h2, h3, h4")}))}}}),o}function Fa(e,t){if(Ao())return null;var r=Ha(e,t);if(r.length<2)return null;var n=[];if(r.forEach(function(e){e.cards.forEach(function(e){n.push(e)})}),Wo(n)<2)return null;var o=r.map(function(e){var t=_e(e.cards);return e.label?"## "+e.label+"\n\n"+t:t}).join("\n\n");return{regions:r,items:n,markdown:o,score:500*r.length+Aa(n)}}function Da(e,t){if(!t.length)return"";var r=0,n=[];return e.regions.forEach(function(e,t){e.label&&n.push({node:e.headingNode||e.node,markdown:"## "+e.label,kind:"heading",regionIndex:t,sequence:r++}),e.cards.forEach(function(o){n.push({node:o.sourceNode||o.card||e.node,markdown:_e([o]),kind:"item",regionIndex:t,sequence:r++})})}),t.forEach(function(e){n.push({node:e.node,markdown:e.markdown,kind:"description",regionIndex:null,sequence:r++})}),n.sort(function(e,t){if(!e.node||!t.node||e.node===t.node)return e.sequence-t.sequence;var r=e.node.compareDocumentPosition(t.node);return r&Node.DOCUMENT_POSITION_FOLLOWING?-1:r&Node.DOCUMENT_POSITION_PRECEDING?1:e.sequence-t.sequence}),n.map(function(e,t){if(!t)return e.markdown;var r=n[t-1];return("item"===r.kind&&"item"===e.kind&&r.regionIndex===e.regionIndex?"\n":"\n\n")+e.markdown}).join("")}function Ua(e){return Xt(e)||!!(e&&e.closest&&e.closest(".slick-slide[aria-hidden='true'], .swiper-slide[aria-hidden='true'], [role='tabpanel'][aria-hidden='true']"))}function Wa(e,t){Yt(e,t),t.querySelectorAll(".slick-slide[aria-hidden='true'], .swiper-slide[aria-hidden='true'], [role='tabpanel'][aria-hidden='true']").forEach(function(e){e.remove()})}function Ga(e,r,n){var o=$a(e,(n=n||{}).preservedRoots);Ra(o);var i=Fa(o),l=Na(o),s=Aa(l),c=ja(o),u=_a(o,l.__fetchUtilSupportingLinks),d=Aa(u);(l.length<3&&u.length>l.length||d>s+180)&&(l=u,s=d);var m=function(e,t){if(!e||2*e.items.length>=t.length)return null;var r=Xa(e.items),n=Xa(t);if(!r.length||2*r.length>=n.length)return null;var o=t.map(Ja),i=0,a={},l={},s=e.regions.every(function(e){var t=null,r=e.cards.every(function(e){for(var r=Ja(e);i<o.length&&o[i]!==r;)i+=1;return!(i>=o.length)&&(a[i]=e,null===t&&(t=i),i+=1,!0)});return r&&e.label&&null!==t&&(l[t]||(l[t]=[]),l[t].push(e.label)),r});if(!s)return null;var c=t.length-Object.keys(a).length,u=[];return t.forEach(function(e,t){if(!a[t]&&e.card){var r=u.find(function(t){return t.card===e.card});r?r.count+=1:u.push({card:e.card,count:1})}}),u.forEach(function(e){e.count=Math.max(e.count,Ya(e.card))}),u.some(function(e){return 2*e.count>=c})?null:{items:t.map(function(e,t){return a[t]||e}),headings:l}}(i,l)||function(e,t,r,n,o){if(!e||!e.items.length)return null;var i=function(e){return e.dedupeKey||lt(e.url||"")},l=Array.from(n.querySelectorAll("a[href], h1, h2, h3, h4, h5, h6")),s=function(e){var t=e.sourceNode;return t&&n.contains(t)||(t=l.find(function(t){return"A"===t.tagName&&(!e.card||e.card.contains(t))&<(a(t.getAttribute("href"))||"")===lt(e.url||"")})),l.indexOf(t)},c=new Set(e.items.map(i)),u=new Set(e.items.map(s)),d=[];if(t.concat(r).forEach(function(e){if(a(e.url)&&!c.has(i(e))){var t=s(e);t>=0&&u.has(t)||(c.add(i(e)),u.add(t),d.push(e))}}),!d.length)return null;if(1===d.length&&(!d[0].card||d[0].card===n))return null;var m=new Map;if(d.forEach(function(e){e.card&&null==e.groupLabel&&m.set(e.card,(m.get(e.card)||0)+1)}),Array.from(m.entries()).some(function(e){var t=Math.max(e[1],Ya(e[0]));return t>1&&2*t>=d.length}))return null;var p=new Set,f=e.items.concat(d).map(function(e){if(!e.card||le(e.card)||null!=e.groupLabel||Xa(Array.from(e.card.querySelectorAll("a[href]")).map(function(e){return{url:a(e.getAttribute("href"))}})).length<2)return e;var t=l.find(function(t){return"A"===t.tagName&&e.card.contains(t)&<(a(t.getAttribute("href"))||"")===lt(e.url||"")}),r=t&&t.closest("p");if(!r||!e.card.contains(r)||1!==r.querySelectorAll("a[href]").length)return e;if(J(e.card)===t)return e;var n={text:e.text,url:e.url,dedupeKey:e.dedupeKey,card:r,sourceNode:t};return Ta(n,r),p.add(r),n}),h=f.map(function(e){return{item:e,position:s(e)}});if(h.some(function(e){return e.position<0}))return null;h.sort(function(e,t){return e.position-t.position});var g=h.map(function(e){return e.item}),y={};e.regions.forEach(function(e){var t=g.findIndex(function(t){return i(t)===i(e.cards[0])});e.label&&t>=0&&(y[t]||(y[t]=[]),y[t].push(e.label))});var b=La(n,g,{includeInlineProse:!0,preserveTextLengths:!0,pageTitles:o,preserveUnrepresentedText:!0}).filter(function(e){return!p.has(e.node)});return{items:g,headings:y,markdown:Da({regions:[{node:n,label:"",cards:g}]},b)||Qa(g,y)}}(i,l,u,o,r);if(i&&!m){var p=La(o,i.items,{excludeRecordCards:!0,includeInlineProse:!0,pageTitles:r,preserveTextLengths:!0,sectionLabels:i.regions.map(function(e){return e.label}),suppressRepresentedText:!0}),f=Da(i,p);return{sourceNode:e,root:o,items:i.items,descText:"",sectionMarkdownWithDescription:f,markdown:i.markdown,score:i.score,sectionCount:i.regions.length,sectionRank:1e5*i.regions.length-o.querySelectorAll("a[href]").length}}m&&(l=m.items);var h=m?Qa(l,m.headings):_e(l),g=c?c+(h?"\n\n"+h:""):h;return m&&m.markdown&&(g=m.markdown),!m&&t(g).length<120&&(u.length>l.length||d>s)&&(s=d,g=Pa(c,l=u)),{sourceNode:e,root:o,items:l,descText:c,markdown:g,score:m?i.score:s+80*l.length+Math.min(c.length,4e3),sectionCount:m?i.regions.length:0,sectionRank:m?1e5*i.regions.length-o.querySelectorAll("a[href]").length:0,portalEvidenceItemCount:m?i.items.length:null,portalEvidenceMaterializedItemCount:m?Wo(i.items):null}}function Za(e,r,n){n=n||{};var i=[];function l(e){e&&-1===i.indexOf(e)&&i.push(e)}l(function(e){var t=qo(e),r=[];["main","[role='main']",".itemlist","table","ol","ul",".posts",".stories",".items",".news",".feed",".headlines",".view-case-listing","[class*='case-listing' i]","[class*='record-listing' i]","[class*='news' i]","[class*='feed' i]","[class*='headline' i]",".threads",".topic-list",".forumlist",".discussionList","[class*='threadlist' i]","[class*='thread-list' i]","[class*='topic-list' i]","body"].forEach(function(e){document.querySelectorAll(e).forEach(function(e){r.push(e)})});var n=r.reduce(function(e,r){var n=$o(r,t);return!e||n>e.score?{node:r,score:n}:e},null);return n&&n.score>-1/0?n.node:document.body}(e)),function(e){var t=qo(e),r=[];if(!t.sectionFragments.length&&!t.keywords.length)return r;function n(e){e&&e!==document.body&&e!==document.documentElement&&-1===r.indexOf(e)&&(be(e)||Lo(e)||e.querySelectorAll("a[href]").length<3||o(e)<140||r.push(e))}return Array.prototype.forEach.call(document.querySelectorAll("a[href]"),function(e){var r=e.closest("article, section, div, li, ul, ol, main")||e.parentElement,o=Po(e,r,t);if(o&&!(o.rankScore<260))for(var i=r,a=0;i&&a<4&&(n(i),!i.matches||!i.matches("main, [role='main']"));)i=i.parentElement,a+=1}),r}(e).forEach(l),l(document.querySelector("main, [role='main']")),l(document.body);var s=Do();if(s)return Ga(s,r,n);var c=[],u=i.reduce(function(e,o){var i=Ga(o,r,n);return c.push(i),function(e,r){if(!(e&&r&&e.sourceNode&&r.sourceNode&&e.sourceNode!==r.sourceNode))return null;var n=e.sourceNode.contains(r.sourceNode)?e:r,o=n===e?r:e;if(!o.sectionCount||!n.sourceNode.contains(o.sourceNode))return null;var i=new Set(n.items.map(function(e){return a(e.url)}).filter(Boolean)),l=new Set(o.items.map(function(e){return a(e.url)}).filter(Boolean));if(i.size<=l.size||Array.from(l).some(function(e){return!i.has(e)}))return null;var s=n.items.map(function(e){var t=a(e.url),r=e.card;if(!t||!r)return null;var n=r.matches("a[href]")?[r]:Array.from(r.querySelectorAll("a[href]"));return{url:t,node:n.find(function(e){return a(e.getAttribute("href"))===t})}}).filter(function(e){return e&&e.node});if(n.items.some(function(e){var t=a(e.url);return!(!t||l.has(t)||null!=e.groupLabel)&&(!e.card||e.card===n.root||s.some(function(r){return r.url!==t&&e.card.contains(r.node)}))}))return null;var c=n.sectionMarkdownWithDescription||n.markdown;if(!n.sectionCount){var u=La(n.root,n.items,{includeInlineProse:!0,preserveTextLengths:!0,preserveUnrepresentedText:!0,pageTitles:[document.title]});c=Da({regions:[{node:n.root,label:"",cards:n.items}]},u)}function d(e){return Array.from((e||"").matchAll(/\]\((https?:\/\/(?:\\.|[^\\)\s])+)/g),function(e){return e[1]})}function m(e,r){if(e=t(e).toLowerCase().replace(/\\([\\`*_{}\[\]()#+\-.!<>|~])/g,"$1"),!(r=t(r).toLowerCase()))return!0;for(var n=e.indexOf(r);n>=0;){var o=e[n-1]||"",i=e[n+r.length]||"";if(!/[\p{L}\p{N}]/u.test(o)&&!/[\p{L}\p{N}]/u.test(i))return!0;n=e.indexOf(r,n+1)}return!1}function p(e,r){for(var n,o=[],i=document.createTreeWalker(e,NodeFilter.SHOW_TEXT);n=i.nextNode();){var a=t(n.textContent);a&&m(r,a)&&o.push(a)}return o}var f=new Set(d(c));if(!o.items.every(function(e){var t=a(e.url),r=_e([e]);if(!t)return m(c,e.text)&&d(r).every(function(e){return f.has(e)});var o=e.card?p(e.card,r):[];return o.length||o.push(e.text),[e.author,e.time,e.category,e.summary,e.score,e.replyCount,e.caption].filter(Boolean).forEach(function(e){m(r,e)&&o.push(e)}),n.items.some(function(e){if(a(e.url)!==t)return!1;var n=_e([e]),i=new Set(d(n));return o.every(function(e){return m(n,e)})&&d(r).every(function(e){return i.has(e)})})}))return null;var h=o.sectionMarkdownWithDescription||o.markdown;return p(o.root,h).some(function(e){return!m(c,e)})||d(h).some(function(e){return!f.has(e)})?null:Object.assign({},n,{markdown:c,sectionMarkdownWithDescription:c,sectionCount:Math.max(n.sectionCount||0,o.sectionCount),sectionRank:Math.max(n.sectionRank||0,o.sectionRank||0),portalEvidenceItemCount:o.items.length,portalEvidenceMaterializedItemCount:l.size})}(e,i)||(function(e,t){if(!e)return!0;var r=e.sectionCount||0,n=t.sectionCount||0;if(n!==r)return n>r;if(n){var o=e.sectionRank||0,i=t.sectionRank||0;if(i!==o)return i>o}return t.score>e.score}(e,i)?i:e)},null)||Ga(document.body,r,n),d=c.find(function(e){return e!==u&&e.descText&&e.sourceNode.contains(u.sourceNode)});return d&&(u.ancestorDescription=d.descText,u.ancestorDescriptionSourceNode=d.sourceNode),u}function Ka(e,r){r=r||{};var n=Za(e,[e.title,document.title],r),o=n.markdown;n.sectionCount||(n.descText=ja(n.root,n.items),n.markdown=Pa(n.descText,n.items));var i=Array.prototype.filter.call(n.root.querySelectorAll("h2, h3, h4"),function(e){return!e.closest("article, li, [class*='card' i], [class*='item' i]")}).length,l=t([location.pathname,document.title,e.title].join(" ")),s=/\b(?:docs?|documentation|api|library|libraries|reference|class|module|namespace|package)\b/i.test(l),c=st()&&!s&&n.items.length>=10&&t(o).length>=3e3,u=c?2:0,d=c?i:0,m=Math.max(n.sectionCount||0,d,u),p=null==n.portalEvidenceItemCount?n.items.length:n.portalEvidenceItemCount,f=null==n.portalEvidenceMaterializedItemCount?n.items.filter(function(e){return!!a(e&&e.url)}).length:n.portalEvidenceMaterializedItemCount,h=Re(e,{title:e.title||document.title,excerpt:n.items[0]?n.items[0].text:e.excerpt,html:n.root.innerHTML,textContent:n.markdown,markdown:n.markdown,items:n.items,portalRootEvidence:r.portalRoot&&m>=2&&p>=4&&f>=2?{namedSectionCount:m,canonicalCardCount:p}:null});return h.listExtraction=n,n.sectionMarkdownWithDescription&&(h.sectionMarkdownWithDescription=n.sectionMarkdownWithDescription),h}function Va(e,r){if(!e||"list"!==e.contentType||e.hostAware||e.docsLike||e.legalProvision||!st())return"";var n=e.listExtraction&&e.listExtraction.items||e.listSourceItems;if(!n||!n.length)return"";var o=Array.from(document.querySelectorAll("table:has(input[type='search']), table:has(input[placeholder*='search' i])"));if(!o.length)return"";var i="nav, header, footer, aside, menu, form, [role='navigation'], [role='menu'], [role='menubar'], [role='toolbar'], [role='banner'], [role='contentinfo']",l=new Set(n.map(function(e){return a(e.url)}).filter(Boolean)),s=Array.from(document.querySelectorAll("a[href]")).find(function(e){return l.has(a(e.getAttribute("href")))&&!e.closest(i)&&!Vt(e)});if(!s)return"";var c=e.listExtraction&&e.listExtraction.node||e.listSourceNode||document.body,u=Array.from(c.querySelectorAll("h1, h2, h3, h4, p")).filter(function(e){return t(e.textContent)&&!e.closest(i)&&!Vt(e)&&!Xt(e)}),d=[],m=!1;return o.forEach(function(e){if(!e.closest(i)&&!Vt(e)&&(e.contains(s)||e.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_FOLLOWING)&&(!u.some(function(t){return!t.contains(e)&&!!(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING)})&&Array.from(e.querySelectorAll("input[type='search'], input[placeholder*='search' i]")).some(function(e){return!e.disabled&&!Vt(e)&&!Xt(e)}))){var n=Qt(e,document),o=Array.from(n.querySelectorAll("a[href]")).map(function(e){var r=t(e.textContent||e.getAttribute("aria-label")||""),n=e.getAttribute("href")||"",o=a(n);return r&&"#"!==n[0]&&o&&!xo(r,o)?{text:r,url:o}:null});if(!(o.some(function(e){return!e})||new Set(o.map(function(e){return e.url})).size<2))if(o.filter(function(e){return l.has(e.url)}).length){var c=function(e,t,r){var n=t.filter(function(e){return r.has(e.url)});if(n.length<2||n.length===t.length)return"";var o=e.split("\n"),i=n.map(function(e){return"- "+Se(e.text,e.url)}).map(function(e){return 1===o.filter(function(t){return t===e}).length?o.indexOf(e):-1});if(i.some(function(e){return e<0})||i.some(function(e,t){return t&&e!==i[0]+t}))return"";var a=t.map(function(e){return"- "+Se(e.text,e.url)});return o.splice.apply(o,[i[0],n.length].concat(a)),o.join("\n")}(r,o,l);c&&(r=c,m=!0,o.forEach(function(e){l.add(e.url)}))}else d.push(_e(o))}}),d.length?d.join("\n\n")+"\n\n"+r:m?r:""}function Ja(e){var r=a(e&&e.url),n=r?lt(r):e&&e.canonicalKey||"";return JSON.stringify([n,t(e&&e.text||""),t(e&&e.detail||"")])}function Xa(e){var t={};return(e||[]).forEach(function(e){var r=a(e&&e.url);r&&(t[lt(r)]=!0)}),Object.keys(t)}function Ya(e){if(!e||!e.querySelectorAll)return 0;var t={};return Array.prototype.forEach.call(e.querySelectorAll("h1 a[href], h2 a[href], h3 a[href], h4 a[href]"),function(e){if(!Vt(e)){var r=a(e.getAttribute("href"));r&&(t[lt(r)]=!0)}}),Object.keys(t).length}function Qa(e,t){return e.map(function(e,r){var n=(t[r]||[]).map(function(e){return"## "+e});return n.push(_e([e])),n.join("\n\n")}).join("\n")}function el(e){var r=Zt(e,document);return r?(Array.prototype.forEach.call(r.querySelectorAll("script, style, noscript, template, svg"),function(e){e.remove()}),t(r.textContent||"")):""}function tl(e){return Array.prototype.filter.call(e.querySelectorAll("a[href]"),function(e){return!!a(e.href)}).length}function rl(t){var r=Array.prototype.slice.call(t.querySelectorAll("*"));if(!r.length)return!1;var n=r.filter(function(t){return function(t){if(t.hidden||"true"===t.getAttribute("aria-hidden")||t.hasAttribute("inert"))return!0;if(!e.getComputedStyle)return!1;var r=e.getComputedStyle(t);if(!r)return!1;if("none"===r.display||0===parseFloat(r.opacity))return!0;if("hidden"!==r.visibility&&"collapse"!==r.visibility)return!1;var n=t.parentElement?e.getComputedStyle(t.parentElement):null;return!n||n.visibility!==r.visibility}(t)}).length;return 10*n<=r.length}function nl(){if(!document.body||t(document.body.innerText||"").length>120||Array.prototype.some.call(document.querySelectorAll("main, article, [role='main'], [itemprop='articleBody']"),function(e){if(Xt(e))return!1;var r=Qt(e,document);return t(r.textContent||"").length>0||tl(r)>0||!!r.querySelector("img[alt]:not([alt='']), video, audio, table, pre, blockquote")}))return null;var e=el(document.body).length;if(e<1200)return null;var r=Array.prototype.filter.call(document.body.children,function(r){if(function(e){return/^(?:script|style|link|meta|noscript|template|svg|iframe)$/i.test(e&&e.tagName||"")}(r)||function(e){if(!e)return!0;if((e.localName||"").indexOf("-")>=0)return!0;if(e.matches("header, footer, nav, aside, [role='dialog'], [role='navigation']"))return!0;if(/^(?:root|app|__next|___gatsby)$/i.test(e.id||""))return!0;var t=[e.id,e.className,e.getAttribute("role")].join(" ").replace(/[_-]+/g," ");return/\b(?:cookie|consent|privacy|cmp|onetrust|modal|dialog|drawer|menu|navigation|navbar|header|footer|auth|login|signin|signup|overlay)\b/i.test(t)||/\b(?:app|application|react|vue|svelte|angular|next|nuxt)\s+(?:root|shell)\b/i.test(t)}(r)||!Xt(r))return!1;var n=el(r).length;if(n<1200||100*n<85*e)return!1;var o=Array.prototype.filter.call(r.querySelectorAll("h1, h2, h3, h4, h5, h6"),function(e){return!!t(e.textContent||"")}).length,i=Array.prototype.filter.call(r.querySelectorAll("p"),function(e){return!!t(e.textContent||"")}).length;return o>=3&&i>=3&&tl(r)>=8&&rl(r)&&!function(e){return Array.prototype.some.call(e.querySelectorAll("[aria-hidden='true'], [inert]"),function(e){if(e.matches("a[href]")&&a(e.href))return!0;if(tl(e))return!0;var r=e.matches("h1, h2, h3, h4, h5, h6, p")?e:e.querySelector("h1, h2, h3, h4, h5, h6, p");return!(!r||!t(r.textContent||""))})}(r)});return 1===r.length?r[0]:null}function ol(e){if(!e)return"";var r=e.cloneNode(!0);return Array.from(r.querySelectorAll("script, style, noscript, template, svg")).forEach(function(e){e.remove()}),t(r.textContent||"")}function il(e){if(!e)return!0;var r=t([e.id||"",e.className||"",e.getAttribute&&e.getAttribute("role")||"",e.getAttribute&&e.getAttribute("aria-label")||""].join(" ")).toLowerCase();return/(?:^|[\s_-])(?:slider|carousel|swiper|slick|tab|tabs|tabpanel|dialog|modal|nav|navigation|menu|header|footer|sidebar|toolbar|drawer|popup|overlay|cookie|consent|privacy|newsletter|subscribe|subscription|auth|login)(?:$|[\s_-])/.test(r)}function al(e){return Array.from(e.querySelectorAll("a[href]")).filter(function(e){return!!a(e.getAttribute("href"))}).length}function ll(e){var t=Zt(e,document);return Yt(e,t,[e]),Array.from(t.querySelectorAll("[hidden], [inert], [aria-hidden='true']")).forEach(function(e){e.remove()}),t}function sl(e){if(!e||Xt(e)||il(e))return null;var r=er(e,"[style]",function(r){if(!function(e,t){if(!e||!e.style||!e.style.opacity||0!==Number(e.style.opacity))return!1;if(e.hidden||e.hasAttribute("inert")||"true"===e.getAttribute("aria-hidden"))return!1;var r=getComputedStyle(e);if("none"===r.display||"hidden"===r.visibility||"collapse"===r.visibility)return!1;if(0!==Number(r.opacity)||il(e))return!1;for(var n=e.parentElement;n&&n!==t;){if(Jt(n,t))return!1;n=n.parentElement}return n===t}(r,e))return!1;if(function(e){return Array.from(e.querySelectorAll("*")).filter(function(t){return t.hasAttribute("hidden")||t.hasAttribute("inert")||"true"===String(t.getAttribute("aria-hidden")||"").toLowerCase()||Jt(t,e)}).some(function(e){if(0===al(e))return!1;var r=e.querySelector("h1, h2, h3, h4, h5, h6, p, time, picture, video, img[alt]"),n=t([e.getAttribute("id"),e.getAttribute("class"),e.getAttribute("role"),e.getAttribute("aria-label")].join(" ")).toLowerCase();return!(!r&&/\b(?:category|filter|taxonomy|tag)\b/.test(n))&&(!!r||e.matches("article, li, [role='listitem']")||!!e.querySelector("article, li, [role='listitem']"))})}(r))return!1;var n=ll(r);return!(ol(n).length<30)&&(Array.from(n.querySelectorAll("h1, h2, h3, h4, h5, h6, p")).filter(function(e){return t(e.textContent||"")}).length>0||al(n)>0)});if(1!==r.length)return null;var n=r[0],o=ll(n);if(function(e){return Array.from(e.querySelectorAll("*")).some(function(e){return!!il(e)&&(ol(e).length>=30||al(e)>0)})}(o))return null;var i=ol(e),a=ol(o);return!i||100*a.length<85*i.length?null:n}function cl(e){return t(String(e||"").replace(/!\[([^\]]*)\]\([^)]+\)/g,"$1").replace(/\[([^\]]+)\]\([^)]+\)/g,"$1").replace(/[#>*_~`\[\]-]+/g," "))}function ul(e){return String(e||"").split(/\r?\n/).map(cl).filter(Boolean)}function dl(e,r){if(!e||"list"!==e.contentType||e.hostAware||e.docsLike||!e.listExtraction)return null;var n=e.markdown||"";if(t(n).length>120||Wo(e.listExtraction.items||[]))return null;if(!document.body)return null;var o=Array.from(document.body.children).filter(function(e){return e.matches&&e.matches("section, [role='region']")}).map(sl).filter(Boolean);if(o.length<3)return null;var i=o.map(ll),a=i.map(ol).join(" "),l=i.reduce(function(e,t){return e+al(t)},0),s=i.reduce(function(e,r){return e+Array.from(r.querySelectorAll("h1, h2, h3, h4, h5, h6, p")).filter(function(e){return t(e.textContent||"")}).length},0);if(a.length<350||l<3||s<4)return null;var c=Ka(r,{preservedRoots:o});if(!c)return null;var u=function(e){var r=e.sectionMarkdownWithDescription||e.markdown||"",n=e.listExtraction&&e.listExtraction.items||[],o=0;return n.forEach(function(e){var n={};Object.keys(e||{}).forEach(function(t){n[t]=e[t]}),n.card=null,n.contentCard=null;var i=_e([n]),a=t(n.detail||""),l=/^(?:learn more|read more|view all|see all|show more)$/i.test(a);if((!a||ee(a)||l)&&e.card&&e.card.querySelectorAll){var s=t(e.text||"").toLowerCase(),c={},u=Array.from(e.card.querySelectorAll("h1, h2, h3, h4, h5, h6")).map(function(e){return t(e.textContent||"")}).filter(function(e){var t=e.toLowerCase();return!(!e||t===s||c[t]||ee(e)||(c[t]=!0,0))});n.detail=u.join(" - ")}var d=_e([n]),m=function(e,t,r){for(var n=e.indexOf(t,r);n>=0;){var o=0===n||"\n"===e.charAt(n-1),i=n+t.length,a=i===e.length||"\n"===e.charAt(i);if(o&&a)return n;n=e.indexOf(t,n+1)}return-1}(r,i,o);m<0||(t(d).length<=t(i).length?o=m+i.length:(r=r.slice(0,m)+d+r.slice(m+i.length),o=m+d.length))}),r}(c);return t(u).length<400||Wo(c.listExtraction&&c.listExtraction.items||[])<3?null:function(e,t){var r=ul(t),n=0;return ul(e).every(function(e){var t=r.indexOf(e,n);return!(t<0||(n=t+1,0))})}(n,u)?(c.markdown=u,c.textContent=t(u),c.sectionMarkdownWithDescription=u,c):null}function ml(e){var r=[];return Array.prototype.forEach.call(e.children||[],function(e){Array.prototype.some.call(e.querySelectorAll("a[href]"),function(n){var o=t(n.textContent||n.getAttribute("aria-label")||n.getAttribute("title")||""),i=a(n.href);return!(!i||o.length<yo(o))&&(r.push(JSON.stringify([lt(i),o,t(e.textContent||"")])),!0)})}),r.length>=3?JSON.stringify(r):""}function pl(e,r){var n=Object.create(null);Array.prototype.forEach.call(e.children||[],function(r){var o=function(e){var r=Array.prototype.filter.call(e.children||[],function(e){return Array.prototype.some.call(e.querySelectorAll("a[href]"),function(e){var r=t(e.textContent||e.getAttribute("aria-label")||e.getAttribute("title")||"");return!!a(e.href)&&r.length>=yo(r)})});if(r.length<3)return"";var n=r[0].tagName;return r.every(function(e){return e.tagName===n})?e.tagName+">"+n:""}(r);if(o){var i=n[o]||{visible:[],hidden:[]};(Jt(r,e)?i.hidden:i.visible).push(r),n[o]=i}});var o=Object.create(null);return Object.keys(n).forEach(function(i){var l=n[i],s=l.visible.map(ml).filter(Boolean),c=l.hidden.filter(function(e){var t=ml(e);return t&&-1===s.indexOf(t)}),u=l.visible.concat(c);l.visible.length&&c.length>=2&&function(e,r,n){var o=Array.prototype.filter.call(e.querySelectorAll("button[aria-current], [role='button'][aria-current]"),function(t){return!t.disabled&&!t.hasAttribute("disabled")&&"true"!==t.getAttribute("aria-disabled")&&!(r?Xt(t):Jt(t,e))});if(o.length!==n.length||!o.length)return!1;var i=o[0].parentElement;if(!i||i===e||!o.every(function(e){return e.parentElement===i}))return!1;var l=function(e,t){for(;e&&e.parentElement!==t;)e=e.parentElement;return e&&e.parentElement===t?e:null}(i,e);if(!l||Array.prototype.some.call(l.querySelectorAll("a[href]"),function(e){return!!a(e.href)}))return!1;var s=Array.prototype.slice.call(e.children||[]),c=n.map(function(e){return s.indexOf(e)}).sort(function(e,t){return e-t});if(c.some(function(e,t){return e<0||t>0&&e!==c[t-1]+1}))return!1;var u,d=s.indexOf(l);if(d<c[0])u=s.slice(d+1,c[0]);else{if(!(d>c[c.length-1]))return!1;u=s.slice(c[c.length-1]+1,d)}if(!u.every(function(t){return Jt(t,e)}))return!1;var m=o.map(function(e){return t(e.getAttribute("aria-current")||"").toLowerCase()});return 1===m.filter(function(e){return"false"!==e}).length&&m.filter(function(e){return"false"===e}).length===m.length-1}(e,r,u)&&(o[i]=c)}),o}function fl(e){if(!e||!e.querySelectorAll)return[];var r=[];Array.prototype.forEach.call(e.querySelectorAll("[role='tab'][aria-controls], [role='checkbox'][aria-controls]"),function(n){var o=function(e,r){if(!e||Xt(e)||e.disabled||e.hasAttribute("disabled")||"true"===e.getAttribute("aria-disabled"))return null;var n=(e.getAttribute("role")||"").toLowerCase(),o="tab"===n?"aria-selected":"checkbox"===n?"aria-checked":"",i=o&&e.getAttribute(o);if(!o||"true"!==i&&"false"!==i)return null;var a=t(e.getAttribute("aria-controls")||"");if(!a||/\s/.test(a))return null;var l=document.getElementById(a);return l&&r.contains(l)&&e.parentElement&&l.parentElement?{controlParent:e.parentElement,target:l,targetParent:l.parentElement,selected:"true"===i}:null}(n,e);if(o&&o.controlParent!==document.body&&o.targetParent!==document.body){var i=r.find(function(e){return e.controlParent===o.controlParent&&e.targetParent===o.targetParent});i||(i={controlParent:o.controlParent,targetParent:o.targetParent,entries:[]},r.push(i)),i.entries.some(function(e){return e.target===o.target})||i.entries.push(o)}});var n=[];return r.forEach(function(e){if(!(e.entries.length<2)){var t=e.entries.some(function(e){return e.selected&&!Xt(e.target)}),r=e.entries.some(function(e){return!e.selected&&Xt(e.target)});if(t&&r){var o=Object.create(null);e.entries.forEach(function(e){if(e.selected&&!Xt(e.target)){var t=pl(e.target,!0);Object.keys(t).forEach(function(e){o[e]=!0,t[e].forEach(function(e){-1===n.indexOf(e)&&n.push(e)})})}}),e.entries.forEach(function(e){if(!e.selected&&Xt(e.target)){-1===n.indexOf(e.target)&&n.push(e.target);var t=pl(e.target,!1);Object.keys(t).forEach(function(e){o[e]&&t[e].forEach(function(e){-1===n.indexOf(e)&&n.push(e)})})}})}}}),n.sort(function(e,t){return 2&e.compareDocumentPosition(t)?1:-1})}function hl(e){return(e||[]).filter(function(e){return!!a(e&&e.url)}).map(Ja)}function gl(e,t,r){if(!e||"list"!==e.contentType)return null;var n=[t.title,document.title],o=e.listExtraction;if(!o&&e.listSourceNode&&e.listSourceItems){var i=Ga(e.listSourceNode,n);(function(e,t){var r=hl(e),n=hl(t);if(r.length<3||n.length<r.length)return!1;var o=0;return n.forEach(function(e){e===r[o]&&(o+=1)}),o===r.length})(i.items,e.listSourceItems)&&(o=i)}if(!o||Wo(o.items)<3)return null;var a=fl(o.sourceNode);if(!a.length)return null;var l=function(e,t){var r=(t||[]).map(Ja),n=Object.create(null);r.forEach(function(e){n[e]=!0});var o=0,i=[];return(e||[]).every(function(e){var t=Ja(e);return o<r.length&&t===r[o]?(o+=1,!0):!(o<r.length||(n[t]||i.push(e),0))})&&o===r.length?i:null}(Ga(o.sourceNode,n,{preservedRoots:a}).items,o.items);if(!l)return null;if(Wo(l=l.filter(function(e){return e.card&&e.card.closest("[data-fetchutil-controlled-list-panel='true']")}))<3)return null;var s=_e(l);return s?[(r||e.markdown||e.textContent||"").trim(),s].filter(Boolean).join("\n\n"):null}var yl=null;function bl(){if(yl)return yl;var e=[];return R().forEach(function r(n){if(n&&"object"==typeof n)if(Array.isArray(n))n.forEach(r);else{var o=n["@type"]||n.type;(Array.isArray(o)?o:[o]).some(function(e){return/^(product|book)$/i.test(t(e))})&&e.push(n),n["@graph"]&&r(n["@graph"]),n.itemListElement&&r(n.itemListElement),n.item&&r(n.item)}}),yl=e,e}function vl(e){return null==e?"":Array.isArray(e)?vl(e[0]):t("object"==typeof e?e.name||e.value||e["@id"]||e.url||"":String(e))}function wl(e){var t=e&&e.offers;return Array.isArray(t)&&(t=t[0]),t||null}function Al(e){return Sl(e&&(e.price||e.priceSpecification&&e.priceSpecification.price),e&&(e.priceCurrency||e.priceSpecification&&e.priceSpecification.priceCurrency))}function Sl(e,t){if(e=vl(e).replace(/\s+/g,""),t=vl(t).toUpperCase(),!e)return"";var r=e.match(/[$€£]\s?\d[\d,]*(?:\.\d{2})?/);return r?r[0].replace(/([$€£])\s+/g,"$1"):/^\d[\d,.]*$/.test(e)?"USD"===t?"$"+e:"EUR"===t?"€"+e:"GBP"===t?"£"+e:t?e+" "+t:e:""}function xl(e){return m(e).replace(/([a-z])([A-Z])/g,"$1 $2")}function kl(e,r){var n=bl().find(function(n){return function(e,r,n){var o=vl(e&&e.name).toLowerCase(),i=t(r||"").toLowerCase(),l=wl(e),s=a(vl(e&&e.url||l&&l.url));return!(!n||!s||s.replace(/[#?].*$/,"")!==n.replace(/[#?].*$/,""))||!(!o||!i||o!==i&&-1===o.indexOf(i)&&-1===i.indexOf(o))}(n,e,r)});if(!n)return[];var o=wl(n),i=n.aggregateRating||n.reviewRating,l=[],s=Al(o),c=vl(o&&o.availability),u=vl(i&&i.ratingValue),d=vl(i&&(i.reviewCount||i.ratingCount));return s&&l.push(s),u&&l.push(Cl(u,d)),c&&l.push(xl(c)),l}function Cl(e,t){return"Rating: "+e+"/5"+(t?" from "+t+" reviews":"")}function ql(e){var n,o=[];["main","[role='main']",".products",".product-grid",".product-list",".search-results",".category",".collection","body"].forEach(function(e){document.querySelectorAll(e).forEach(function(e){-1===o.indexOf(e)&&o.push(e)})});var i=r([location.pathname||"",location.search||"",e&&e.title||document.title].join(" ")).toLowerCase().replace(/[^a-z0-9]+/g," ").split(/\s+/).filter(function(e){return e.length>=3&&!/^(shop|store|products?|items?|brand|brands|category|categories|search|results|sale|gift|sets|perfume|perfumes|fragrance|fragrances|cologne|women|men|unisex)$/i.test(e)}),l=[];function s(e){try{var t=new URL(e,location.href);return(t.origin+t.pathname).toLowerCase()}catch(t){return String(e||"").toLowerCase()}}function c(e){return e=e.toLowerCase(),i.some(function(t){return-1!==e.indexOf(t)})}function u(e){for(var r=e.getAttribute("href")||"",n=a(r),o=e;o&&1===o.nodeType&&!/^(MAIN|BODY|HTML)$/.test(o.tagName||"");o=o.parentElement){if(o.matches("header")&&n){var u=o.parentElement&&o.parentElement.closest("[itemscope][itemtype$='/Product']"),d=u&&!u.matches("body, html")&&u.querySelector("h1 a[href], h2 a[href], h3 a[href], h4 a[href]"),m=d&&a(d.getAttribute("href"));if(m&&s(m)===s(n))continue}if(o.matches("header, footer, nav, aside, [role='navigation'], [role='menu'], [role='menubar'], [role='complementary'], [role='contentinfo']"))return null}var p=e.querySelector("img[alt], img[title]"),f=e.closest("article, li, [class*='product'], [class*='item'], [class*='card'], div, section")||e.parentElement;f===e&&e.parentElement&&(f=e.parentElement.closest("article, li, [class*='product'], [class*='item'], [class*='card'], div, section")||e.parentElement);var h="";if(n)try{h=new URL(n,location.href).pathname}catch(e){return null}var g=/(\/product|\/perfume|\/cologne|\/dp\/|\/itm\/|\/pdp\/|\/shop\/products\/|\/p\/(?!pl(?:\/|$)))/i.test(h),y=t(f&&[f.getAttribute("id"),f.getAttribute("class"),f.getAttribute("data-testid"),f.getAttribute("data-hb-id"),f.getAttribute("itemtype")].join(" ")),b=/(product|item-cell|item-container|schema\.org\/Product)/i.test(y);if(!g&&!b)return null;var v=[],w=[t(e.textContent||""),t(e.getAttribute("aria-label")||""),t(p&&(p.getAttribute("alt")||p.getAttribute("title")))];f&&n&&Array.prototype.forEach.call(f.querySelectorAll("a[href][class*='title' i], [class*='title' i] a[href]"),function(e){s(a(e.getAttribute("href")))===s(n)&&v.push(t(e.textContent||e.getAttribute("aria-label")||""))}),v.length&&(w=v),w.sort(function(e,t){return t.length-e.length});var A,S=w[0]||"";if(!S||S.length<6||S.length>140)return null;if(/^\(\d+\)\s+/.test(A=S)||/^(top sellers|new arrivals|product|brand name|review count|star rating|sort by|view all|more options(?: from .*)?|privacy policy|my privacy choices|sign in|order status|shipping info|fragrances|see all fragrances|perfume|bath & body|gift sets|unboxed\/testers|perfume samples|cologne|samples|cologne samples|women'?s perfume|men'?s cologne|0 items in your bag|0 0 items in your bag|request it|become a fragrancenet\.com vip|powered by onetrust opens in a new tab)$/i.test(A)||/\(designer\)$/i.test(A))return null;if(n&&/(sort|filter|review|rating|privacy|cookie|onetrust)/i.test(n)&&S.length<32)return null;if(n===location.href)return null;if(l.length&&!function(e){return e=e.toLowerCase(),l.some(function(t){return-1!==e.indexOf(t)})}(S))return null;if(i.length&&vo()&&!c(S))return null;var x=function(e,r,n){if(!e)return"";var o=t(e.textContent||""),i=kl(r,n);function a(e){(e=t(e))&&-1===i.indexOf(e)&&i.push(e)}function l(r){var n=e.querySelector(r);return t(n&&(n.getAttribute("content")||n.getAttribute("href")||n.getAttribute("aria-label")||n.textContent))}var s=Sl(l("[itemprop='price'], meta[itemprop='price'][content], [class*='price' i], [data-testid*='price' i], [aria-label*='price' i]"),l("[itemprop='priceCurrency'], meta[itemprop='priceCurrency'][content]"));s&&a(s),(o.match(/([$€£]\s?\d[\d,.]*(?:\.\d{2})?)/g)||[]).forEach(function(e){-1===i.indexOf(e)&&i.push(e)});var c=l("[itemprop='ratingValue'], meta[itemprop='ratingValue'][content]"),u=l("[itemprop='reviewCount'], [itemprop='ratingCount'], meta[itemprop='reviewCount'][content], meta[itemprop='ratingCount'][content]");c&&/^\d(?:\.\d+)?$/.test(c)&&a(Cl(c,u));var d=e.querySelector("[aria-label*='out of 5' i], [class*='rating' i], [class*='stars' i]"),m=t(d&&(d.getAttribute("aria-label")||d.textContent)),p=m.match(/\b(\d(?:\.\d+)?)\s*(?:out of|\/)\s*5\b/i)||o.match(/\b(\d(?:\.\d+)?)\s*out of\s*5\s*stars?\b/i);if(p){var f=(m+" "+o).match(/\b([\d,]+)\s*(?:reviews?|ratings?)\b/i);a(Cl(p[1],f&&f[1]))}var h=l("[itemprop='availability'], link[itemprop='availability'][href], meta[itemprop='availability'][content], [class*='stock' i], [class*='availability' i], [data-testid*='availability' i]");if(!h){var g=o.match(/\b(in stock|out of stock|sold out|available now|currently unavailable|unavailable|pre-?order|backordered|request it)\b/i);h=g&&g[0]}return h&&a(xl(h)),[/\bfree shipping\b/i].forEach(function(e){var t=o.match(e);t&&a(t[0])}),i.filter(Boolean).join(" - ")}(f,S,n);return c(S)||g||b?{text:S,url:n,sourceHref:r,detail:x}:null}function d(e,t){return Sa(e,{cardSelectors:"a[href]",allowMissingUrl:!0,dedupe:t,keyBuilder:function(e){var t=e.url||"unlinked:"+e.sourceHref;return[e.text+"|"+t,"url:"+t,"product:"+s(t)]},candidateBuilder:function(e){return u(e)}})}new URLSearchParams(location.search||"").forEach(function(e,t){/^(q|query|search|searchtext|keyword|k|d)$/i.test(t||"")&&r(e||"").toLowerCase().replace(/[^a-z0-9]+/g," ").split(/\s+/).forEach(function(e){e.length>=3&&-1===l.indexOf(e)&&l.push(e)})});var m=o.reduce(function(e,t){var r=Wo(d(t,!1));return!e||r>e.score?{node:t,score:r}:e},null);if(!m||m.score<4)return null;if((n=d(m.node,!0)).length<4||Wo(n)<4)return null;var p=Re(e,{excerpt:n[0].text,items:n});return p.productListItems=n,p}function El(){return Sl(g(["meta[property='product:price:amount']","meta[property='og:price:amount']","meta[name='twitter:data1']","meta[itemprop='price']"],"content"),g(["meta[property='product:price:currency']","meta[property='og:price:currency']","meta[itemprop='priceCurrency']"],"content"))}function Tl(){var e,r,n,o,i=bl().find(function(e){var t=wl(e);return vl(e&&e.name)||Al(t)||vl(e&&e.sku)})||null,a=wl(i),l=vl(i&&i.name),s=(e=l||g(["main h1","article h1","h1"]),(r=document.querySelector("main h1, article h1, h1"))&&t(e)?t(r.textContent).toLowerCase()!==t(e).toLowerCase()?null:r.closest("main, article, [itemscope], [data-testid*='product' i], [class*='product-detail' i]")||r.parentElement:null);if(n=(location.pathname||"").toLowerCase(),o=(location.search||"").toLowerCase(),/(?:^|[?&])(q|query|search|searchtext|keyword|k|d)=/.test(o)||/\/(search|s|browse|category|categories|collections?|catalog|keyword|wholesale|shop)\b/.test(n)||/\/p\/pl\b/.test(n)||!s||i&&!function(e){var t=e&&(e.url||e.mainEntityOfPage);if(!t)return!0;try{var r=new URL("object"==typeof t?t.url:t,location.href);return r.origin===location.origin&&r.pathname===location.pathname}catch(e){return!1}}(i))return null;var c=Al(a)||El()||function(e){for(var t=["[itemprop='price']","meta[itemprop='price'][content]","[data-testid*='price' i]","[class*='price' i]","[id*='price' i]","[aria-label*='price' i]"],r=g(["[itemprop='priceCurrency']","meta[itemprop='priceCurrency'][content]"],"content"),n=0;n<t.length;n+=1)for(var o=e.querySelectorAll(t[n]),i=0;i<o.length;i+=1){var a=o[i];if(!(a.closest&&a.closest("nav, footer, aside, [hidden], [aria-hidden='true']")||"META"!==a.tagName&&Xt(a))){var l=Sl(a.getAttribute("content")||a.getAttribute("aria-label")||a.textContent,r);if(l)return l}}return""}(s),u=t(Me("og:type","property")||"").toLowerCase(),d=!!s.querySelector("[itemtype*='schema.org/Product' i], [typeof*='Product' i], [itemprop='sku'], [itemprop='gtin'], [itemprop='mpn']"),m=!!s.querySelector("button[name*='add' i], button[id*='add-to-cart' i], button[class*='add-to-cart' i], button[data-testid*='add-to-cart' i], [aria-label*='add to cart' i], [aria-label*='add to bag' i]"),p=et(s,["[itemprop='sku']","[class*='sku' i]","[data-testid*='sku' i]"]),f=/\bproduct\b/.test(u),h=g(["main h1","article h1","h1","[itemprop='name']"]),y=!!s.querySelector("img[alt], [itemprop='image']");l=l.toLowerCase();var b=vl(i&&(i.sku||i.mpn||i.gtin13)),v=t(h||"").toLowerCase(),w=!(!i||!v||l!==v&&-1===l.indexOf(v)&&-1===v.indexOf(l)),A=!!h&&(d||m||p)&&!!s.querySelector("[itemtype*='schema.org/Product' i], [typeof*='Product' i], [itemprop='sku'], [itemprop='gtin'], [itemprop='mpn'], button[name*='add' i], button[id*='add-to-cart' i], button[class*='add-to-cart' i], button[data-testid*='add-to-cart' i], [aria-label*='add to cart' i], [aria-label*='add to bag' i], [class*='sku' i], [data-testid*='sku' i]"),S=w||A,x=[a,p||b,m,y].filter(Boolean).length;return bl().length>1&&!f&&!m&&!p||!S||x<2?null:{title:vl(i&&i.name),excerpt:vl(i&&i.description),price:c,availability:vl(a&&a.availability),sku:vl(i&&(i.sku||i.mpn||i.gtin13)||p)}}function _l(){return R().find(function(e){return _(e).some(function(e){return/(?:^|\/)JobPosting$/i.test(e)})})||null}function Ll(e){if(!jl(document.body))return null;function r(e,r){var n=[];["[data-testid='company-name']","[data-test='employer-name']","[data-test='location']","[data-testid*='location' i]","[data-test='descSnippet']","[data-testid='belowJobSnippet']"].forEach(function(r){var o=e.querySelector(r),i=t(o&&o.textContent);i&&-1===n.indexOf(i)&&n.push(i)}),n.length||n.push(t(e.textContent||"").replace(r,""));var o=t(n.join(" - ")).replace(r,"");return o=o.replace(/\s*\{\"@context\".*$/i,"")}var n=Sa(document,{cardSelectors:"[data-testid='slider_container'], [data-test='jobListing'], [data-jobid], [data-testid*='job' i], [class*='job-card' i], [class*='jobCard'], tr[data-id][data-url*='/remote-jobs/'], [data-url*='/remote-jobs/']",linkBuilder:function(e){return e.querySelector("a[data-test='job-title'], a[id*='job-title' i], a[href*='/job-listing/'], a[href*='/remote-jobs/'], a[href*='/viewjob'], a[href*='/rc/clk'], a[href*='jk='], a[href*='jl=']")},allowMissingUrl:!0,minTitleLength:yo,maxTitleLength:220,keyBuilder:function(e){return e.text+"|"+(e.url||"unlinked:"+e.sourceHref)},candidateBuilder:function(e,n){var o=function(e,r){var n=t(e.getAttribute("data-company")||""),o=t(e.getAttribute("data-search")||"").replace(/\s*\[.*$/i,"");n&&0===o.indexOf(n)&&(o=t(o.slice(n.length)));var i=[o,t(r&&(r.textContent||r.getAttribute("aria-label"))),t((e.querySelector("[data-test='job-title'], [data-testid*='jobTitle' i], h2, h3")||{}).textContent||"")].map(function(e){return t(e||"").replace(/\s*-?\s*\{\"@context\".*$/i,"")}).filter(Boolean);return i.sort(function(e,t){return t.length-e.length}),i[0]||""}(e,n),i=function(e,t){var r=t&&t.getAttribute("href");return{href:r=r||e.getAttribute("data-href")||e.getAttribute("data-url")||"",url:a(r)}}(e,n);return{text:o,url:i.url,sourceHref:i.href,detail:r(e,o)}}});if(n.length<4||Wo(n)<4)return null;var o=_e(n);return Re(e,{excerpt:n[0].text,textContent:o,markdown:o,items:n})}function jl(e){if(!(e=e||document.body)||Ao())return!1;var r=t([location.pathname,location.search,document.title].join(" ")).toLowerCase();if(!/(\bjobs?\b|employment|careers?|jobsearch|job-list|job results?|hiring|remote-[a-z0-9+-]+-jobs|q-[a-z0-9-]+-jobs)/i.test(r))return!1;var n=Array.prototype.filter.call(e.querySelectorAll("[data-testid='slider_container'], [data-test='jobListing'], [data-jobid], [data-testid*='job' i], [class*='job-card' i], [class*='jobCard'], tr[data-id][data-url*='/remote-jobs/'], [data-url*='/remote-jobs/']"),function(e){if(Xt(e))return!1;var t=e.querySelector("a[href]"),r=t&&t.getAttribute("href")||e.getAttribute("data-href")||e.getAttribute("data-url")||"";return!r||!!a(r)}).length,o=Array.prototype.filter.call(e.querySelectorAll("a[href]"),function(e){if(Xt(e))return!1;var r=e.getAttribute("href")||"",n=t(e.textContent||e.getAttribute("aria-label")||"");return!(n.length<yo(n)||n.length>220)&&(!!a(r)&&/(\/job-listing\/|\/remote-jobs\/|\/viewjob\b|\/rc\/clk\b|[?&](?:jk|jl)=)/i.test(r))}).length;return n>=4||o>=4}function Pl(){return R().filter(function(e){return _(e).some(function(e){return/(?:^|\/)(?:Event|EventReservation|WorkEvent)$/i.test(e)})})}function $l(){var e=Pl();return e.length>1&&Ml()?null:e[0]||null}function Nl(){var e=r(location.pathname||"").toLowerCase();return Ut(/(^|\.)eventbrite\.com$/)&&/^\/e\//i.test(location.pathname||"")||/\/events?\/[^/?#]+\/\d+\/?$/i.test(e)}function Rl(){var e=r(location.pathname||"").toLowerCase();return!Nl()&&(!!/(?:^|\/)(?:schedule|agenda|program(?:me)?)(?:\/|$)/.test(e)||(!!/\/(?:events?|conferences?|calendar)\/?$/i.test(e)||/\/events\/[^/]*events?\/?$/i.test(e)))}function Ml(){if(Nl())return!1;if(function(){if(Rl())return!0;var e=t([location.pathname||"",document.title||"",(document.querySelector("h1")||{}).textContent||""].join(" ")).toLowerCase();return/\b(?:schedule|agenda|program(?:me)?|our events|upcoming events|event calendar|python events)\b/.test(e)}())return!0;var e=Bl().filter(function(e){return e.admission}).length,r=Array.prototype.filter.call(document.querySelectorAll("a[href*='/events/'], a[href*='/event/'], a[href*='/e/'], a[href*='tickets-']"),function(e){if(Vt(e))return!1;var r=Qt(e,document);return t(r.textContent||"").length>=8&&!!a(r.getAttribute("href"))}).length;return e>=3||r>=4}function Bl(){var e=[],r={},n=[],o=new Map;function i(e,t){if(e){var r=o.get(e);if(r)!r.link&&t&&(r.link=t);else{var i={card:e,link:t||null,index:n.length};o.set(e,i),n.push(i)}}}return Array.prototype.forEach.call(document.querySelectorAll("[class*='event-card' i], [class*='event-list' i] article, [class*='event' i] article, li[class*='event' i], [data-testid*='event' i]"),function(e){i(e)}),Array.prototype.forEach.call(document.querySelectorAll("a[href*='/e/'], a[href*='tickets-']"),function(e){Vt(e)||i(e.closest("article, li, [role='listitem'], [data-testid*='event' i], [class*='event' i], [class*='card' i]")||e.parentElement,e)}),n.sort(function(e,t){if(e.card===t.card)return e.index-t.index;var r=e.card.compareDocumentPosition(t.card);return r&Node.DOCUMENT_POSITION_FOLLOWING?-1:r&Node.DOCUMENT_POSITION_PRECEDING?1:e.index-t.index}),n.forEach(function(n){!function(n,o){if(!Vt(n)&&!n.closest("nav, header, footer, aside, form, [aria-hidden='true']")){var i=Qt(n,document),l=Array.prototype.slice.call(i.querySelectorAll("a[href]")),s=o&&o.getAttribute("href");o=s&&l.find(function(e){return e.getAttribute("href")===s})||l[0]||null;var c=t((i.querySelector("h2, h3, h4, [class*='title' i]")||o||{}).textContent||""),u=n.parentElement||n,d=u===n?i:Qt(u,document),m=Il(i)||Il(d),p=Hl(i)||Hl(d),f=o&&o.getAttribute("href")||"",h=a(f),g={text:c,url:h,detail:[m,p].filter(Boolean).join(" - "),admission:!f||!!h},y=xe(g,f);c&&m&&!r[y]&&(r[y]=!0,e.push(g))}}(n.card,n.link)}),e}function Ol(e,t){var r=O(e),n=O(t);return r&&n&&r!==n?r+" - "+n:r||n||null}function zl(e){if(!e)return null;if("string"==typeof e)return t(e);if(Array.isArray(e))return t(e.map(zl).filter(Boolean).join("; "));if("object"!=typeof e)return null;var r=I(e.address);return t([B(e),r].filter(Boolean).join(" - "))||O(e)}function Il(e){var r=b([e=e||document],["[itemprop='startDate']","time[datetime]"],"datetime")||b([e],["[itemprop='startDate']","[class*='start-date' i]","[class*='event-date' i]","[class*='date' i]","time"]),n=b([e],["[itemprop='endDate']"],"datetime")||b([e],["[itemprop='endDate']","[class*='end-date' i]"]);if(r||n)return Ol(r,n);var o=t(e&&e.textContent||""),i=o.match(/\b(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun|Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday)?\s*(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Sept|Oct|Nov|Dec)[a-z]*\s+\d{1,2}(?:\s*[-–]\s*\d{1,2})?(?:,?\s+\d{4})?(?:\s+(?:at\s+)?\d{1,2}(?::\d{2})?\s*(?:AM|PM|am|pm)?)?/);return i||(i=o.match(/\b\d{1,2}\s+(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Sept|Oct|Nov|Dec)[a-z]*\s+\d{4}(?:\s*,?\s*\d{1,2}:\d{2})?/))?t(i[0]):null}function Hl(e){function r(e){if(!e||/^(?:INPUT|TEXTAREA|SELECT|OPTION)$/i.test(e.tagName||""))return null;var r=t(e.textContent||e.getAttribute("aria-label")||"");return r.length<5||r.length>260||/^(?:location|autocomplete|search|use my current location|online event|virtual event)$/i.test(r)||/\b(?:autocomplete|search events|find events|log in|sign up)\b/i.test(r)?null:r}e=e||document;for(var n=["[itemprop='location']","[data-testid*='location' i]","[class*='event-location' i]","[class*='venue' i]","[class*='address' i]","[class*='location' i]"],o=0;o<n.length;o+=1)for(var i=e.querySelectorAll(n[o]),a=0;a<i.length;a+=1){var l=r(i[a]);if(l)return l}for(var s=e.querySelectorAll("h2, h3, h4, strong, dt"),c=0;c<s.length;c+=1)if(/^location$/i.test(t(s[c].textContent||"")))for(var u=s[c].nextElementSibling;u;){var d=r(u);if(d)return d;u=u.nextElementSibling}return null}function Fl(){var e=t([location.hostname,location.pathname,document.title,(document.querySelector("h1")||{}).textContent].join(" ")).toLowerCase();if(!/\b(schedule|agenda|program(?:me)?|world-congress|rubyconf|conference|summit)\b/.test(e))return!1;if(!/\b(schedule|agenda|program(?:me)?|conference|congress|summit|rubyconf)\b/.test(e))return!1;var r=Math.max((t(document.body&&document.body.textContent).match(/\b\d{1,2}:\d{2}\s*(?:AM|PM|am|pm)?\b/g)||[]).length,Ul()),n=document.querySelectorAll("[class*='session' i], [class*='schedule' i], [class*='agenda' i], [class*='talk' i], [class*='speaker' i]").length;return r>=3||n>=4}function Dl(e){if(e.closest(bt))return!1;var r=e.closest("section, aside"),n=r&&r.querySelector("h1, h2, h3, h4");return!n||!/^(?:related|recommended|similar|more|other)\s+(?:events?|sessions?)\b/i.test(t(n.textContent))}function Ul(){var e=document.querySelector("main")||document.body,r=e?e.querySelectorAll("time"):[],n=Array.prototype.filter.call(r,function(e){return Dl(e)&&/\b\d{1,2}:\d{2}\s*(?:AM|PM|am|pm)?\b/.test(t(e.textContent))}).length;if(n>=3)return n;var o=e?e.querySelectorAll("[class*='session' i], [class*='schedule' i], [class*='agenda' i], [class*='talk' i]"):[];return Array.prototype.filter.call(o,function(e){return Dl(e)&&/\b\d{1,2}:\d{2}\s*(?:AM|PM|am|pm)?\b/.test(t(e.textContent))}).length}function Wl(e){var r=e.querySelector("h1, h2, h3, h4");return t(r?r.textContent:e.textContent)}function Gl(e,r){var n=e&&e.cloneNode?e.cloneNode(!0):e;ie(n);var o=t(n&&n.textContent).replace(t(r),"").replace(/\s*[|·]\s*/g," - ");return t(o=o.replace(/Only include results for this site.*$/i,"").replace(/This search result is provided by Google Learn more Report result/gi,"").replace(/Learn more Report result/gi,"").replace(/Report Ad/gi,"").replace(/\bhttps?:\/\/\S+/gi,"").replace(/\s{2,}/g," "))}function Zl(e,r){if((r=r||{}).prepareMetadata&&r.prepareMetadata(e),r.pathAllowed&&!r.pathAllowed())return null;var n={},o=[],i=r.minItems||4,l=r.minTitleLength||18,s=r.maxTitleLength||220,c=r.linkSelector||"a[href]",u=r.cardSelector||"article, section, li, div";if(document.querySelectorAll(c).forEach(function(e){if(!r.excludeClosest||!e.closest(r.excludeClosest)){var i=e.getAttribute("href")||"",c=a(i);if(!r.acceptLink||r.acceptLink(i,c,e)){var d=r.titleBuilder?r.titleBuilder(e):Wl(e);if(r.transformTitle&&(d=r.transformTitle(d,e)),!function(e){return!e||e.length<l||e.length>s||!!r.rejectTitle&&("function"==typeof r.rejectTitle?r.rejectTitle(e):r.rejectTitle.test(e))}(d=t(d||""))){var m=c||"unlinked:"+d.toLowerCase()+"|href:"+i;if(!n[m]){var p=Gl(e.closest(u)||e.parentElement,d);n[m]=!0,o.push({text:d,url:c,detail:p})}}}}}),o.length<i||Wo(o)<i)return null;var d=Ne({title:r.title||e&&e.title||document.title||r.defaultTitle,excerpt:e&&e.excerpt,siteName:e&&e.siteName||r.siteName||location.hostname,items:o});return r.hostAware&&(d.hostAware=!0),r.statusPage&&(d.statusPage=!0),d}function Kl(e,t){return!0===e||!1!==e&&("function"==typeof e?e(t):Ut(e))}function Vl(e){try{var t=new URL(e,location.href),r=t.hostname===location.hostname||Jl(location.hostname)&&Jl(t.hostname)||/(^|\.)bing\.com$/i.test(location.hostname)&&/(^|\.)bing\.com$/i.test(t.hostname)||/(^|\.)duckduckgo\.com$/i.test(location.hostname)&&/(^|\.)duckduckgo\.com$/i.test(t.hostname);return!/^https?:$/i.test(t.protocol)||r?null:t.href}catch(e){return null}}function Jl(e){return/(^|\.)google\.[a-z]{2,3}(?:\.[a-z]{2})?$/i.test(e)}function Xl(e,r,n,o,i){n=t(n);var l=o;if(o=function(e){try{var t=new URL(e,location.href);if(u=location.hostname,d=t.hostname,m=u.toLowerCase().replace(/^www\./,""),p=d.toLowerCase().replace(/^www\./,""),/^google\.[a-z]{2,3}(?:\.[a-z]{2})?$/.test(m)&&m===p&&"/url"===t.pathname){var r=t.searchParams.get("q")||t.searchParams.get("url");if(!r)return null;try{r=decodeURIComponent(r)}catch(e){return null}return Vl(r)}if(/(^|\.)bing\.com$/i.test(location.hostname)&&/(^|\.)bing\.com$/i.test(t.hostname)&&"/ck/a"===t.pathname){var n=t.searchParams.get("u")||"";if(!/^a1[A-Za-z0-9_-]+={0,2}$/.test(n))return null;var o=n.slice(2).replace(/-/g,"+").replace(/_/g,"/");if(o.length%4==1)return null;o+="=".repeat((4-o.length%4)%4);try{for(var i=atob(o),l="",s=0;s<i.length;s+=1)l+="%"+("0"+i.charCodeAt(s).toString(16)).slice(-2);return Vl(decodeURIComponent(l))}catch(e){return null}}if(/(^|\.)duckduckgo\.com$/i.test(location.hostname)&&/(^|\.)duckduckgo\.com$/i.test(t.hostname)&&/^\/l\//.test(t.pathname)){var c=t.searchParams.get("uddg");if(!c)return null;try{c=decodeURIComponent(c)}catch(e){return null}return Vl(c)}}catch(e){}var u,d,m,p;return a(e)}(o),i=t(i),o&&n&&!/^(images|videos|news|maps|shopping|sign in|privacy|terms|feedback|more|people also ask|related searches)$/i.test(n)&&!/^(javascript:|mailto:)/i.test(o)&&function(e){try{var t=new URL(e,location.href);return t.hostname===location.hostname?/^\/(url|imgres|search|ck\/a|y\.js|l\/.+|aclick)/.test(t.pathname)||"/"===t.pathname:/^https?:/.test(t.protocol)}catch(e){return!1}}(o)&&!function(e,t,r,n){var o=(e+" "+t).toLowerCase();return/\bad\b|sponsored|report ad/.test(o)||/[?&](ad_|ad=|ad_domain=)/i.test(r)||/(?:^|\/)y\.js\?/i.test(n||"")}(n,i,o,l)){var s=n+"|"+o;r[s]||(r[s]=!0,e.push({text:n,url:o,detail:i}))}}function Yl(e){var r,n=(r=location.hostname.toLowerCase(),/(^|\.)google\./.test(r)?"google":/(^|\.)duckduckgo\.com$/.test(r)?"duckduckgo":"bing.com"===r||/\.bing.com$/.test(r)?"bing":"search.brave.com"===r?"brave":"ecosia.org"===r||/\.ecosia.org$/.test(r)?"ecosia":null);if(!n)return null;var o=t(document.body&&document.body.textContent||"");if(mo(e.title||document.title,o||tt()||""))return null;if(function(e){return/captcha|verify you are human|unusual traffic|security check|before you continue|enable javascript to continue/i.test(e)}(o))return null;var i=[],a={};return function(e){var t={google:".MjjYud, .g",duckduckgo:"article[data-testid='result'], .result",bing:"li.b_algo, .b_algo",brave:"[data-testid='result'], .snippet, .fdb",ecosia:"article[data-test-id='result'], .result"};return t[e]?document.querySelectorAll(t[e]):[]}(n).forEach(function(e){if(!function(e,r){var n=t([e.getAttribute("aria-label")||"",e.getAttribute("data-text-ad")||"",e.className||""].join(" "));return!!/\b(ad|advert|sponsored|promoted)\b/i.test(n)||!("google"!==r||!e.matches(".uEierd")&&!e.closest(".uEierd"))||!!e.querySelector(".related-question-pair, .related-searches, [data-async-context*='related']")||"duckduckgo"===r&&e.matches(".result--ad, [data-testid='result-ad']")}(e,n)){var r=function(e,t){var r=e.querySelector({google:"h3",duckduckgo:".result__title a, a.result__a, a[data-testid='result-title-a']",bing:"h2 a",brave:"a[data-testid='result-title'], a.result-header, h2 a, h3 a",ecosia:"a.result-title, a[data-test-id='result-title'], h2 a, h3 a"}[t]||"h2 a, h3 a");return r?"A"===r.tagName?r:r.closest("a"):null}(e,n);if(r){var o=Wl(r);Xl(i,a,o,r.getAttribute("href"),function(e,t,r){return Gl(e.querySelector({google:".VwiC3b, .yXK7lf, [data-sncf], .IsZvec",duckduckgo:".result__snippet, [data-testid='result-snippet']",bing:".b_caption p",brave:".snippet-description, [data-testid='result-description'], .description",ecosia:".result-snippet, [data-test-id='result-snippet']"}[r]||"")||e,t)}(e,o,n))}}}),i.length?{title:e.title||document.title,byline:null,excerpt:$e(),siteName:e.siteName||location.hostname,publishedTime:null,html:"",textContent:_e(i),markdown:_e(i),readerMode:!1,contentType:"search",resultCount:i.length}:function(e){return{title:e.title||document.title,byline:null,excerpt:$e(),siteName:e.siteName||location.hostname,publishedTime:null,html:"",textContent:"",markdown:"",readerMode:!1,contentType:"search",resultCount:0}}(e)}window.newsHomepageListProfiles=window.newsHomepageListProfiles||[],window.registerNewsHomepageListProfile=function(e,t){newsHomepageListProfiles.push({condition:e,config:t})},window.hostAwareProfiles=window.hostAwareProfiles||[],window.hostAwareProfiles.push({condition:!0,fn:function(e){for(var t=0;t<newsHomepageListProfiles.length;t+=1){var r=newsHomepageListProfiles[t];if(Kl(r.condition,e)){var n=Zl(e,"function"==typeof r.config?r.config(e):r.config);if(n)return n}}return null}});function Ql(){return"undefined"!=typeof performance&&performance.now?performance.now():Date.now()}function es(){return e=function(e){return"MedicalWebPage"===e||"MedicalEntity"===e||/^Medical[A-Z]/.test(e)},R().find(function(t){return _(t).some(e)})||null;var e}function ts(e,r){return(!r||"interstitial"!==r.contentType&&"product"!==r.contentType)&&(!!function(e){if(!e)return!1;var r=document.createElement("div");r.innerHTML=e.html||"";var n=t(r.textContent||e.textContent||e.markdown||"");if(n.length<420)return!1;var o=r.querySelectorAll("p").length,i=r.querySelectorAll("h1, h2, h3").length,a=Array.prototype.filter.call(r.querySelectorAll("p, li, section, div"),function(e){return t(e.textContent||"").length>=120}).length,l=Array.prototype.reduce.call(r.querySelectorAll("a[href]"),function(e,r){return e+t(r.textContent||r.getAttribute("aria-label")||"").length},0);return(n.length>0?l/n.length:0)<.45&&(o>=3||a>=4||i>=2&&n.length>=900)}(r)&&(!!es()||(n=(location.hostname||"").replace(/^www\./i,"").toLowerCase(),o=(location.pathname||"").toLowerCase(),!!(/cdc\.gov$/.test(n)&&/\/(?:about|signs-symptoms|symptoms|causes|risk-factors|testing|treatment|prevention|living-with|basics|facts)\b/.test(o)||/mayoclinic\.org$/.test(n)&&/\/diseases-conditions\/[^/]+\/(?:symptoms-causes|diagnosis-treatment|in-depth)\//.test(o)||/webmd\.com$/.test(n)&&/\/(?:depression|anxiety|mental-health|a-to-z-guides?|pain-management|diabetes|heart-disease|cancer|lung)\b/.test(o)||/nhs\.uk$/.test(n)&&/\/conditions\/[^/]+\//.test(o)||/who\.int$/.test(n)&&/\/news-room\/fact-sheets\/detail\//.test(o)))));var n,o}function rs(e,t){return e&&"interstitial"!==e.contentType&&"product"!==e.contentType&&M(["MedicalWebPage"])?(e.contentType="medical",e):e}function ns(e){var t=tr(e||document.body);return nr(t),rr(t,["header","nav","footer","aside","form","script","style","noscript","[role='navigation']","[role='banner']","[role='contentinfo']","[class*='menu' i]","[class*='navbar' i]","[class*='share' i]","[class*='social' i]","[class*='newsletter' i]","[class*='subscribe' i]","[id*='newsletter' i]","[id*='subscribe' i]"].join(", ")),t}function os(e){var r=[],n={};function i(e,o){var i=t(o=mn(o||""));i&&!n[i]&&(n[i]=!0,r.push("## "+e+"\n\n"+o))}return e.querySelectorAll("details").forEach(function(e){var r=t((e.querySelector("summary")||{}).textContent||""),n=t(e.textContent||"");/\b(transcript|transcription)\b/i.test(r+" "+n.slice(0,240))&&i("Transcript",Jn(ns(e).innerHTML))}),e.querySelectorAll("[id*='transcript' i], [class*='transcript' i], [aria-label*='transcript' i]").forEach(function(e){e.closest("nav, header, footer, aside")||(o(e)<80||i("Transcript",Jn(ns(e).innerHTML)))}),e.querySelectorAll("a[href]").forEach(function(e){var r=t(e.textContent||e.getAttribute("aria-label")||""),n=e.getAttribute("href")||"";/\b(transcript|transcription)\b/i.test(r+" "+n)&&i("Transcript",Se(r||"Transcript",n))}),r.join("\n\n")}function is(e){var r=R().find(function(e){return _(e).some(function(e){return/(?:^|\/)PodcastEpisode$/i.test(e)})})||null;if(!r)return function(e){var r=t([location.pathname,document.title,e&&e.title,e&&e.siteName].join(" ")).toLowerCase();if(!/\b(?:podcast|podcasts|episodes?)\b/.test(r))return null;var n=[],o={},i="[class*='episode' i], [data-testid*='episode' i], article";Array.prototype.forEach.call(document.querySelectorAll(i),function(e){if(!e.closest("nav, header, footer, aside, [aria-hidden='true'], [hidden]")){var r=Qt(e,document),i=r.querySelector("a[href]"),l=t((r.querySelector("h2, h3, h4, [class*='title' i]")||i||{}).textContent||""),s=t((r.querySelector("time, [class*='date' i]")||{}).textContent||""),c=i&&i.getAttribute("href")||"",u=a(c),d={text:l,url:u,detail:s,admission:!c||!!u},m=xe(d,c);l&&!o[m]&&(o[m]=!0,n.push(d))}});var l=n.filter(function(e){return e.admission}).length;if(n.length<3||l<3)return null;var s=g(["main h1","h1"])||e.title||document.title,c="# "+t(s)+"\n\n"+_e(n);return{title:t(s),byline:null,excerpt:n[0].text,siteName:e.siteName||location.hostname,publishedTime:null,html:"",markdown:c,textContent:t(c),readerMode:!1,contentType:"podcast"}}(e);var n,i,l=(n=null,i=0,["article","main","[role='main']",".episode-content",".episode__content",".podcast-episode",".entry-content",".post-content","#content"].forEach(function(e){document.querySelectorAll(e).forEach(function(e){var t=o(e);t>i&&(n=e,i=t)})}),n||document.body),s=ns(l),c=mn(Jn(s.innerHTML)),u=z(r.description||e&&e.excerpt),d=c;u&&t(u).length>t(c).length&&(d=u);var m=os(l);m&&-1===t(d).indexOf(t(m).slice(0,80))&&(d=[d,m].filter(function(e){return t(e)}).join("\n\n"));var p=function(e,r){var n=O(e&&(e.name||e.headline||e.title)),o=g(["main h1","article h1","h1"]),i=t(r&&r.title),a=t(r&&r.siteName);return o&&o.toLowerCase()!==a.toLowerCase()?o:n&&n.toLowerCase()!==a.toLowerCase()?n:i&&i.toLowerCase()!==a.toLowerCase()?i:o||n||i||document.title}(r,e),f=["# "+p,d].filter(function(e){return t(e)}).join("\n\n");return t(f=mn(f)).length<120?null:{title:p,byline:B(r.partOfSeries)||null,excerpt:O(r.description)||e&&e.excerpt,siteName:e&&e.siteName||B(r.partOfSeries)||location.hostname,publishedTime:O(r.datePublished||r.uploadDate)||e&&e.publishedTime,html:s.innerHTML,markdown:f,textContent:t(f),readerMode:!1,contentType:"podcast"}}function as(e){var r=t(e.title||""),n=t(e.company||""),o=t(e.location||""),i=mn(String(e.description||"")).trim();if(!r||!t(i)||t(i).length<80)return null;var a=[];n&&a.push("Company: "+n),o&&a.push("Location: "+o);var l=["# "+r,a.length?a.map(function(e){return"- "+e}).join("\n"):null,i].filter(Boolean).join("\n\n").trim();return{title:r,company:n||null,location:o||null,description:i,byline:null,excerpt:t(i),siteName:n||location.hostname,publishedTime:e.publishedTime||null,html:e.html||"",markdown:l,textContent:t(l),readerMode:!1,contentType:"job"}}function ls(e){if(!function(){if(_l())return!0;if(jl(document.body))return!1;var e=t([location.pathname,document.title,Me("og:type","property")].join(" ")).toLowerCase();if(!/\b(job|jobs|career|careers|opening|position|role)\b/.test(e))return!1;var r=0;return document.querySelector("[data-testid*='location' i], [class*='location' i], [class*='job-location' i]")&&(r+=1),document.querySelector("[data-testid*='department' i], [class*='department' i], [class*='team' i]")&&(r+=1),document.querySelector("[data-testid*='apply' i], a[href*='apply' i], button[class*='apply' i], .application, #application")&&(r+=1),/\b(apply for this job|apply now|job description|about the role|responsibilities|qualifications|requirements)\b/i.test(t(document.body&&document.body.textContent))&&(r+=1),r>=2}())return null;var r=document.querySelector("main, article, [role='main'], .job, .job-post, .job-posting, .opening, #content")||document.body,n=g(["main h1","article h1","h1","[data-testid*='title' i]",".app-title"]),o=g(["[data-testid*='company' i]","[class*='company' i]"])||Me("og:site_name","property")||e.siteName,i=g(["[data-testid*='location' i]","[class*='job-location' i]","[class*='location' i]","[class*='office' i]"]),a=tr(Qt(r.querySelector("[data-testid*='description' i], [class*='description' i], [class*='content' i], [class*='body' i], .job-post, .job-posting, .opening")||r,document));nr(a),rr(a,"nav, header, footer, aside, form, script, style, noscript, [class*='apply' i], [id*='apply' i]");var l=mn(Jn(a.innerHTML));return as({title:n||e.title||document.title,company:o,location:i,description:l,html:a.innerHTML})}function ss(e){return function(e){var r,n=_l();return n?as({title:O(n.title)||B(n)||e.title||document.title,company:B(n.hiringOrganization)||e.siteName,location:(r=n.jobLocation,I(r)||function(e){var r=Array.isArray(e)?e:[e],n=[];return r.forEach(function(e){var r=I(e)||O(e)||B(e);(r=t(r||""))&&-1===n.indexOf(r)&&n.push(r)}),n.length?["Remote"].concat(n).join("; "):""}(n.applicantLocationRequirements)),description:z(n.description),publishedTime:O(n.datePosted),html:"string"==typeof n.description?n.description:""}):null}(e)||ls(e)}function cs(){return R().find(function(e){return _(e).some(function(e){return/(?:^|\/)(?:LodgingBusiness|Hotel|Motel|BedAndBreakfast|Resort|VacationRental|Accommodation|LodgingReservation)$/i.test(e)})})||null}function us(e){return e?"string"==typeof e?t(e):Array.isArray(e)?t(e.map(us).filter(Boolean).join(", ")):t("object"!=typeof e?String(e):e.name||e.text||e.description||e.value||""):""}function ds(e){if(!e)return"";if("string"==typeof e)return t(e);if(Array.isArray(e))return t(e.map(ds).filter(Boolean).join("; "));if("object"!=typeof e)return"";var r=e.address||e;return"string"==typeof r?t(r):t([r.streetAddress,r.addressLocality,r.addressRegion,r.postalCode,us(r.addressCountry)].filter(Boolean).join(", "))||us(e)}function ms(){for(var e=["[data-testid*='price' i]","[class*='price' i]","[aria-label*='price' i]","[itemprop='price']","meta[itemprop='price'][content]"],t=g(["[itemprop='priceCurrency']","meta[itemprop='priceCurrency'][content]"],"content"),r=0;r<e.length;r+=1)for(var n=document.querySelectorAll(e[r]),o=0;o<n.length;o+=1){var i=n[o];if((!i.closest||!i.closest("nav, footer, aside, [hidden], [aria-hidden='true']"))&&("META"===i.tagName||!Xt(i))){var a=Sl(i.getAttribute("content")||i.getAttribute("aria-label")||i.textContent,t);if(a)return a}}return""}function ps(e,r){var n=t([location.hostname,location.pathname,document.title,e&&e.title,Me("og:type","property")].join(" ")).toLowerCase();if(/\b\d+\s+(?:properties|hotels|stays)\s+found\b/i.test(n))return!1;if(/\/(?:searchresults|city|region|destination)\b/i.test(location.pathname||""))return!1;if(r)return!0;if(!/\b(hotel|lodging|accommodation|booking|airbnb|rooms?|stays?|resort|guest\s?house|hostel|apartment|villa|vacation rental)\b/.test(n))return!1;if(/\b(search|results?|destination|city|things to do|flights?|cars?|restaurants?)\b/.test(n)&&!/\/rooms?\/|\/hotel\//i.test(location.pathname))return!1;var o=0;return document.querySelector("[data-testid*='amenity' i], [data-testid*='facility' i], [class*='amenity' i], [class*='facility' i]")&&(o+=1),document.querySelector("[data-testid*='review-score' i], [data-testid*='rating' i], [class*='review-score' i], [class*='rating' i]")&&(o+=1),document.querySelector("[data-testid*='address' i], [class*='address' i], [itemprop='address']")&&(o+=1),ms()&&(o+=1),/\b(amenities|facilities|guest reviews|property highlights|hosted by|check-in|check-out|night|nights|entire home|private room)\b/i.test(t(document.body&&document.body.textContent))&&(o+=1),o>=2}function fs(e){if(!/\/(?:rooms?|hotel)\//i.test(location.pathname||""))return null;var r=t(e.title||document.title||""),n=t(document.body&&document.body.textContent),o=/\b(?:airbnb|booking\.com)\b/i.test(r)&&/\b(?:vacation rentals|beach houses|unique homes|largest selection of hotels|homes, and vacation rentals)\b/i.test(r+" "+n),i=document.querySelector("[data-testid*='amenity' i], [data-testid*='facility' i], [data-testid*='review-score' i], [data-testid='property-description'], [itemprop='address']");if(!o||i)return null;var a="# "+r+"\n\nClient-rendered lodging detail shell; no property details were reachable in the loaded document.";return{title:r,byline:null,excerpt:"Client-rendered lodging detail shell; no property details were reachable.",siteName:e.siteName||location.hostname,publishedTime:null,html:document.body?document.body.innerHTML:"",markdown:a,textContent:t(a),readerMode:!1,contentType:"interstitial",lodgingShell:!0}}function hs(e){var r=cs();if(!ps(e,r))return fs(e);var n,o,i=document.querySelector("main, article, [role='main'], [data-testid='property-page'], [data-testid='pdp-container'], #site-content")||document.body,a=us(r&&(r.name||r.underName))||g(["main h1","article h1","h1","[data-testid*='title' i]"])||e.title||document.title,l=(o=(n=r)&&(n.offers||n.potentialAction&&n.potentialAction.result),Array.isArray(o)&&(o=o[0]),Sl(o&&(o.price||o.minPrice||o.priceSpecification&&o.priceSpecification.price),o&&(o.priceCurrency||o.priceSpecification&&o.priceSpecification.priceCurrency))||El()||ms()),s=function(e){var t=e&&(e.aggregateRating||e.reviewRating||e.rating||e.starRating);Array.isArray(t)&&(t=t[0]);var r=us(t&&(t.ratingValue||t.value)),n=us(t&&t.bestRating)||"5",o=us(t&&(t.reviewCount||t.ratingCount));return r?"Rating: "+r+"/"+n+(o?" from "+o+" reviews":""):""}(r)||function(){for(var e=["[data-testid*='review-score' i]","[data-testid*='rating' i]","[aria-label*='rating' i]","[aria-label*='stars' i]","[class*='review-score' i]","[class*='rating' i]"],r=0;r<e.length;r+=1){var n=document.querySelector(e[r]),o=t(n&&(n.getAttribute("aria-label")||n.textContent)),i=o.match(/\b(\d(?:\.\d+)?)\s*(?:out of|\/)?\s*(10|5)\b/i)||o.match(/\b(\d(?:\.\d+)?)\b/);if(i)return i[2]?"Rating: "+i[1]+"/"+i[2]:"Rating: "+i[1]}return""}(),c=ds(r&&(r.address||r.location)||g(["[itemprop='address']","[data-testid*='address' i]","[class*='address' i]"])),u=function(e,r){var n=us(r&&r.description),o=(e||document).querySelector(["[data-testid='property-description']","[data-testid*='description' i]","[class*='description' i]","[itemprop='description']"].join(", "));if(!o&&n)return n;if(!o)return"";var i=Qt(o,document);if(!i)return n;var a=tr(i);nr(a),rr(a,"nav, header, footer, aside, form, script, style, noscript, button, [role='button']");var l=mn(Jn(a.innerHTML));return t(l).length>=40?l:n}(i,r),d=function(e){var r=[],n={},o=["[data-testid*='amenity' i] li","[data-testid*='facility' i] li","[data-testid*='facilities' i] li","[class*='amenity' i] li","[class*='facility' i] li","[aria-label*='amenit' i] li","[aria-label*='facilit' i] li"].join(", ");return Array.prototype.forEach.call((e||document).querySelectorAll(o),function(e){var o=Qt(e,document);if(o){var i=t(o.textContent||"").replace(/\s*(additional charge|extra fee)$/i,"");!i||function(e){return/^(?:show|see|view) (?:more|all)|^(?:read|learn) more|^(?:book|reserve) now|^(?:sign|log) in|^(?:check[- ]in|check[- ]out) policy|property policies$/i.test(e)}(i)||n[i.toLowerCase()]||(n[i.toLowerCase()]=!0,r.push(i))}}),r}(i);if(!(a&&(u||d.length||l||s||c)))return null;var m=[];l&&m.push("Price: "+l),s&&m.push(s),c&&m.push("Address: "+c);var p=d.length?["## Amenities",d.map(function(e){return"- "+e}).join("\n")].join("\n\n"):"",f=["# "+a,m.length?m.map(function(e){return"- "+e}).join("\n"):null,u,p].filter(Boolean).join("\n\n").trim();return{title:a,name:a,price:l||null,rating:s||null,address:c||null,description:u||null,byline:null,excerpt:u?t(u):d.join(", "),siteName:e.siteName||location.hostname,publishedTime:null,html:i?i.innerHTML:"",markdown:f,textContent:t(f),readerMode:!1,contentType:"hotel"}}function gs(e){var r=t(e.title||""),n=t(e.dateText||""),o=t(e.location||""),i=mn(String(e.description||"")).trim();if(!r||!n&&t(i).length<80)return null;var a=[];n&&a.push("Date: "+n),o&&a.push("Location: "+o);var l=["# "+r,a.length?a.map(function(e){return"- "+e}).join("\n"):null,i].filter(Boolean).join("\n\n").trim();return{title:r,byline:null,excerpt:t(i)||n||null,siteName:e.siteName||location.hostname,publishedTime:n||null,location:o||null,description:i||null,html:e.html||"",markdown:l,textContent:t(l),readerMode:!1,contentType:"event"}}function ys(e){if(!function(){if(Ml())return!1;if($l())return!0;if(Pl().length>1&&Ml())return!1;if(Fl())return!1;var e=t([location.hostname,location.pathname,document.title,Me("og:type","property")].join(" ")).toLowerCase();if(!/\b(eventbrite|events?|conference|summit|workshop|webinar|meetup|tickets?)\b/.test(e))return!1;if(Ut(/(^|\.)eventbrite\.com$/)&&/^\/e\//i.test(location.pathname||""))return!0;var r=t(document.body&&document.body.textContent).toLowerCase(),n=0,o=Il(document.querySelector("main, article, [role='main']")||document.body)||Me("startDate","itemprop")||Me("date","name");return o&&(n+=1),document.querySelector("[itemprop='location'], [class*='location' i], [data-testid*='location' i]")&&(n+=1),/\b(add to calendar|date and time|location|refund policy|about this event|register|tickets?)\b/.test(r)&&(n+=1),!(!o||!/\/events?\/[^/?#]+\/\d+\/?$/i.test(location.pathname||""))||n>=2}())return null;var r=document.querySelector("main, article, [role='main'], [class*='event' i], #content")||document.body,n=tr(Qt(r,document));nr(n),rr(n,"nav, header, footer, aside, form, script, style, noscript, [class*='ticket' i], [class*='checkout' i], [class*='modal' i]");var o=tr(Qt(r.querySelector("[data-testid*='description' i], [class*='description' i], [class*='about' i], [class*='summary' i], article, section")||r,document));return nr(o),rr(o,"nav, header, footer, aside, form, script, style, noscript, [class*='ticket' i], [class*='checkout' i]"),gs({title:g(["main h1","article h1","h1"])||e.title||document.title,dateText:Il(r)||e.publishedTime,location:Hl(r),description:mn(Jn(o.innerHTML))||e.excerpt,siteName:e.siteName,html:n.innerHTML})}function bs(e){return function(e){if(Ml())return null;var t=$l();return t?gs({title:O(t.name)||O(t.title)||e.title||document.title,dateText:Ol(t.startDate,t.endDate),location:zl(t.location),description:z(t.description)||e.excerpt,siteName:e.siteName,html:"string"==typeof t.description?t.description:""}):null}(e)||ys(e)}function vs(e){var r=[];return Array.prototype.forEach.call((e||document).querySelectorAll("table"),function(e){if(function(e){if(!e||e.closest&&e.closest("nav, header, footer, aside, form, [aria-hidden='true'], [hidden]"))return!1;var r=t(e.textContent||"");if(!r)return!1;var n=t(Array.prototype.map.call(e.querySelectorAll("th, thead td"),function(e){return e.textContent||""}).join(" ")).toLowerCase(),o=e.querySelectorAll("tr").length;return!(o<2)&&(!!/\b(player|pts|reb|ast|min|fg|3pt|ft|plus\/minus|\+\/-|goals?|assists?|shots?|possession|fouls?|score)\b/i.test(n)||Cs(r)&&/\b(final|box score|score|result|pts|goals?)\b/i.test(r))}(e)){var n=t(e.textContent||""),o=t(Array.prototype.map.call(e.querySelectorAll("th, thead td"),function(e){return e.textContent||""}).join(" ")).toLowerCase();if(!/\b(?:odds?|handicap|standings?|schedule|search|navigation|results?)\b/i.test(o)){var i,a,l=mn(Jn(e.outerHTML)).trim();t(l)&&!r.some(function(e){return e.markdown===l})&&r.push({markdown:l,text:n,rawText:e.textContent||"",labels:(i=o+" "+n,a=t(i).toLowerCase().match(/\b(?:pts?|points?|reb(?:ounds?)?|ast(?:s|sists?)?|min(?:utes?)?|fg|3pt|ft|yds?|goals?|assists?|shots?|fouls?|saves?|possession|rank|record)\b/g)||[],a.filter(function(e,t){return a.indexOf(e)===t})),element:e})}}}),r}function ws(e,r){if(!r)return!1;var n=e.rawText||e.text||e.markdown||"";return r.teams.every(function(e){return function(e,r){var n=e||"",o=t(n).toLowerCase(),i=t(r).toLowerCase().split(/[^a-z0-9]+/).filter(Boolean),a=[i.map(function(e){return e.charAt(0)}).join("")];return i.length>1&&a.push(i[0].slice(0,3),i[0].slice(0,2)+i[i.length-1].charAt(0)),-1!==o.indexOf(t(r).toLowerCase())||-1!==o.indexOf(i.join(" "))||a.some(function(e){return-1!==o.indexOf(e)||new RegExp("\\b"+e+"\\b","i").test(n)})||i.length>1&&new RegExp("\\b"+i[i.length-1]+"\\b","i").test(o)}(n,e)})&&r.scores.every(function(e){return-1!==t(n).indexOf(String(e))})}function As(e){for(var r=e;r&&r!==document.body;){var n=t([r.id||"",r.className||"",r.getAttribute&&r.getAttribute("data-testid")||""].join(" "));if(/\b(?:game|match|event|fixture|scoreboard|box[ -]?score)\b/i.test(n))return r;r=r.parentElement}return null}function Ss(){return R().filter(function(e){return _(e).some(function(e){return/(?:^|\/)(SportsEvent|VideoGame)$/i.test(e)})})}function xs(e){return B(e)||O(e)||""}function ks(e){return null==e?"":"number"==typeof e?String(e):"string"==typeof e?t(e):Array.isArray(e)?ks(e[0]):t(e.score||e.result||e.value||e.points||"")}function Cs(e){if(!(e=t(e))||e.length>180)return!1;if(/\b(?:menu|navigation|subscribe|sign in|login|tickets|shop|fantasy|standings|schedule)\b/i.test(e))return!1;var r=(e=e.replace(/(\d{1,3})\s*[-–]\s*([A-Z])/g,"$1, $2")).match(/\b[A-Z][A-Za-z.'& -]{1,28}?\s+(\d{1,3})\s*,?\s+[A-Z][A-Za-z.'& -]{1,28}?\s+(\d{1,3})\b/),n=e.match(/\b[A-Z][A-Za-z.'& -]{1,28}?\s+(\d{1,3})\s*[-–]\s*(\d{1,3})\s+[A-Z][A-Za-z.'& -]{1,28}?\b/),o=e.match(/\b[A-Z][A-Za-z.'& -]{1,28}?\s+(\d{1,3})\s*[-–]\s*[A-Z][A-Za-z.'& -]{1,28}?\s+(\d{1,3})\b/),i=r||n||o;if(!i)return 2===Ts(e).length;var a=Number(i[1]),l=Number(i[2]);return!(!Number.isFinite(a)||!Number.isFinite(l))&&(a<=250&&l<=250)}function qs(e){return t([location.hostname,location.pathname,document.title,e&&e.title,e&&e.siteName,e&&e.excerpt,Me("article:section","property"),Me("og:type","property")].join(" ")).toLowerCase()}function Es(e){var r=[],n={};return Array.prototype.forEach.call((e||document).querySelectorAll("h1, h2, h3, main p, [class*='score' i], [class*='score' i] p, [class*='scoreboard' i], [class*='result' i], [class*='result' i] p, [data-testid*='score' i], [data-testid*='game' i]"),function(e){if(!e.closest||!e.closest("nav, header, footer, aside, form, [aria-hidden='true'], [hidden]")){var o=t(e.textContent||"");Cs(o)&&!n[o]&&(n[o]=!0,r.push({text:o,node:e}))}}),r}function Ts(e){var r=(e=(e=t(e)).replace(/(\d{1,3})\s*[-–]\s*([A-Z])/g,"$1, $2")).match(/\b([A-Z][A-Za-z.'& -]{1,28}?)\s+\d{1,3}\s*,?\s+([A-Z][A-Za-z.'& -]{1,28}?)\s+\d{1,3}\b/),n=e.match(/\b([A-Z][A-Za-z.'& -]{1,28}?)\s+\d{1,3}\s*[-–]\s*\d{1,3}\s+([A-Z][A-Za-z.'& -]{1,28}?)\b/),o=e.match(/\b([A-Z][A-Za-z.'& -]{1,28}?)\s+\d{1,3}\s*[-–]\s*([A-Z][A-Za-z.'& -]{1,28}?)\s+\d{1,3}\b/),i=r||n||o;return i?[t(i[1]),t(i[2])]:[]}function _s(e){var r=(e=t(e).replace(/(\d{1,3})\s*[-–]\s*([A-Z])/g,"$1, $2")).match(/\b([A-Z][A-Za-z.'& -]{1,28}?)\s+(\d{1,3})\s*,?\s+([A-Z][A-Za-z.'& -]{1,28}?)\s+(\d{1,3})\b/);if(r)return{teams:[t(r[1]),t(r[3])],scores:[r[2],r[4]]};var n=Ts(e),o=e.match(/\b\d{1,3}\b/g)||[];return 2===n.length&&o.length>=2?{teams:n,scores:o.slice(-2)}:null}function Ls(e){var r=function(){var e=Ss()[0];if(!e)return null;var t=e.homeTeam||e.competitor||e.team,r=e.awayTeam||(Array.isArray(e.competitor)?e.competitor[1]:null);Array.isArray(t)&&(t=t[0]);var n=xs(t),o=xs(r),i=ks(t&&(t.score||t.result||t.points)),a=ks(r&&(r.score||r.result||r.points));return{title:xs(e),homeName:n,awayName:o,homeScore:i,awayScore:a,startDate:O(e.startDate),status:m(O(e.eventStatus)||O(e.status)||"")}}(),n=document.querySelector("main article, article, main, [role='main']")||document.body,o=Es(n),i=o.map(function(e){return e.text});[document.title,e&&e.title].forEach(function(e){Cs(e=t(e))&&-1===i.indexOf(e)&&i.push(e)});var a=vs(n),l=a.map(function(e){return e.markdown}),s=r&&(r.homeScore||r.awayScore),c=Ss().length>0,u=function(e,t,r){for(var n=0;n<(e||[]).length;n+=1){var o=e[n],i=_s(o);if(i){var a=(r||[]).filter(function(e){return e.text===o})[0];if((t||[]).some(function(e){if(e.labels.length<2)return!1;if(ws(e,i))return!0;var t=a&&As(a.node);return!!t&&t===As(e.element)}))return{line:o,identity:i}}}return null}(i,a,o),d=!!(c||s||u),p=d||l.length>0,f=function(e){var t=qs(e);return!!/\b(sport|sports|football|soccer|nba|nfl|mlb|nhl|cricket|rugby|tennis|golf|boxing|formula 1|f1|basketball|baseball|hockey|game recap|box score|fixtures?)\b/.test(t)||!!document.querySelector("[itemtype*='schema.org/SportsEvent' i], [typeof*='SportsEvent' i]")||Ss().length>0}(e);return(f||c||u)&&(p||/\b(sport|sports|football|soccer|nba|game recap|box score)\b/.test(qs(e)))?{structured:r,scoreLines:i,tables:l,tableEvidence:a,typed:d,event:d,detail:u}:null}function js(e){var r=(location.pathname||"").split("/").filter(Boolean),n=(r[r.length-1]||"").toLowerCase().split(/[^a-z0-9]+/).filter(function(e){return e.length>=3&&!/^\d+$/.test(e)&&!/^(?:game|match|score|box|final|live|results?|sports?|football|soccer|basketball|baseball|hockey|nhl|nfl|nba|mlb)$/.test(e)});return n.length<2?"opaque":2===e.length&&e.every(function(e){return n.some(function(r){return function(e,r){var n=t(e).toLowerCase().split(/[^a-z0-9]+/).filter(Boolean),o=t(r).toLowerCase().split(/[^a-z0-9]+/).filter(Boolean);if(!n.length||!o.length)return!1;if(n.join(" ")===o.join(" "))return!0;if(n.some(function(e){return-1!==o.indexOf(e)}))return!0;var i=n.map(function(e){return e.charAt(0)}).join(""),a=o.map(function(e){return e.charAt(0)}).join("");return i===o.join("")||a===n.join("")}(e,r)})})?"consistent":"mismatch"}function Ps(e){var t=[],r=e&&e.structured;return r&&(r.awayName&&r.homeName&&(r.awayScore||r.homeScore)?t.push("Score: "+r.awayName+" "+r.awayScore+", "+r.homeName+" "+r.homeScore):r.title&&t.push("Event: "+r.title),r.status&&t.push("Status: "+r.status),r.startDate&&t.push("Start: "+r.startDate)),(e.scoreLines||[]).forEach(function(e){var r=/^score:/i.test(e)?e:"Score: "+e;-1===t.indexOf(r)&&t.push(r)}),t}function $s(e){return e&&("sports"===e.contentType||"sports_event"===e.contentType)}function Ns(){return R().find(function(e){return _(e).some(function(e){return/(?:^|\/)PressRelease$/i.test(e)})})||null}function Rs(){var e=t([location.pathname,document.title,g(["main h1","h1"])].join(" ")).toLowerCase();if(!/\b(?:press releases?|news releases?|newsroom)\b/.test(e))return null;var r=[],n=0;return Array.prototype.forEach.call(document.querySelectorAll("article a[href], [class*='release' i] a[href], [class*='news' i] a[href]"),function(e){var o=function(e){if(Vt(e))return null;var t=e.closest("article, li, [class*='release' i], [class*='news' i]")||e.parentElement;return t?{card:Qt(t,document),link:Qt(e,document)}:null}(e);o&&(r.push(o),/(?:jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)[a-z]*\.?\s+\d{1,2},?\s+\d{4}\b/i.test(t(o.card.textContent||""))&&(n+=1))}),n>=3?r:null}function Ms(e){var r=Rs();if(r)return function(e,r){var n=[],o={};if(r.forEach(function(e){var r=e.card,i=e.link,l=t(i.textContent||i.getAttribute("aria-label")||""),s=t(r&&r.querySelector("time, [class*='date' i]")?r.querySelector("time, [class*='date' i]").textContent:""),c=(i.getAttribute("href")||"").trim(),u="#"===c.charAt(0)?"":a(c),d={text:l,url:u,detail:s},m=xe(d,c);l&&s&&u&&!o[m]&&(o[m]=!0,n.push(d))}),n.length<3)return null;var i=_e(n);return Re(e,{title:e.title||document.title,excerpt:n[0].text,textContent:i,markdown:i,items:n})}(e,r);if(!function(e){if(Ns())return!0;var r=t([document.title,e&&e.title,e&&e.excerpt,e&&e.siteName,Me("article:section","property"),location.hostname,location.pathname,g(["main h1","article h1","h1"])].join(" ")).toLowerCase(),n=t(document.body&&document.body.innerText||"").slice(0,2500).toLowerCase(),o=/\b(?:investor relations|earnings release|quarterly results?|financial statements?|form\s*(?:10-k|10-q|8-k)|sec filing)\b/.test(r+" "+n),i=/(^|\.)(prnewswire\.com|cision\.com|globenewswire\.com|businesswire\.com|apple\.com|amazon\.com|google)$/i.test(location.hostname||"")&&/\b(newsroom|news-releases?|company-news|press)\b/i.test(location.pathname||""),a=/\/(?:newsroom|news-releases?|press(?:-release)?|company-news|about\/news)\//i.test(location.pathname||""),l=/\b[A-Z][A-Za-z .'-]{2,40},\s+(?:Jan(?:uary)?\.?|Feb(?:ruary)?\.?|Mar(?:ch)?\.?|Apr(?:il)?\.?|May|Jun(?:e)?\.?|Jul(?:y)?\.?|Aug(?:ust)?\.?|Sep(?:tember)?\.?|Sept\.?|Oct(?:ober)?\.?|Nov(?:ember)?\.?|Dec(?:ember)?\.?)\s+\d{1,2},\s+\d{4}\s*(?:\/PRNewswire\/|--|–)/.test(document.body&&document.body.innerText||"");return/\b(press release|news release|announces?|announced|launches?|unveils?|report(?:s|ed)?(?:\s+[-\w]+){0,3}\s+results?)\b/.test(r+" "+n)&&(i||a||l)&&(!o||l)}(e))return null;var n=Ns(),i=function(){for(var e=["[itemtype*='PressRelease']","[itemprop='articleBody']",".release-body","#release-body","[class*='release-body' i]","[class*='news-release-content' i]","[class*='press-release' i] [class*='body' i]","[class*='article-body' i]","[data-testid*='article-body' i]","article","main article","main"],r=0;r<e.length;r+=1){var n=Array.prototype.slice.call(document.querySelectorAll(e[r]));n.sort(function(e,t){return o(t)-o(e)});for(var i=0;i<n.length;i+=1)if(t(n[i].textContent||"").length>=250&&n[i].querySelectorAll("p, li, blockquote").length>=2)return n[i]}return null}(),l=O(n&&(n.headline||n.name))||e.title||g(["main h1","article h1","h1"])||document.title,s=O(n&&n.description)||e.excerpt,c=O(n&&(n.datePublished||n.dateModified))||e.publishedTime||null,u=B(n&&(n.author||n.publisher))||e.byline||null,d=i?tr(Qt(i,document)):document.createElement("div");if(!i&&n){var m=O(n.articleBody||n.text||n.description);m&&(d.innerHTML="<p>"+m.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\n{2,}/g,"</p><p>")+"</p>")}if(!t(d.textContent||""))return null;nr(d),zi(d),rr(d,"nav, header, footer, aside, form, script, style, noscript, [class*='related' i], [class*='recommend' i], [class*='share' i], [class*='social' i], [class*='subscribe' i], [class*='newsletter' i]");var p=mn(Jn(d.innerHTML)),f=t(p||d.textContent||"");return f.length<250?null:(l&&p&&!Vr(p,l)&&(p="# "+t(l)+"\n\n"+p,f=t(p)),{title:t(l),byline:u,excerpt:s||f.slice(0,280)||null,siteName:e.siteName||location.hostname,publishedTime:c,html:d.innerHTML,markdown:p,textContent:f,readerMode:!1,contentType:"press_release"})}function Bs(e){return I(e)||""}function Os(e){var t=e&&(e.offers||e.offer);Array.isArray(t)&&(t=t[0]);var r=t&&t.priceSpecification;return Sl(t&&(t.price||t.lowPrice||r&&r.price),t&&(t.priceCurrency||r&&r.priceCurrency))}function zs(e){if(null==e)return null;if(Array.isArray(e))return zs(e[0]);if("object"==typeof e)return zs(e.value||e.amount||e.name||e.text);var t=String(e).replace(/,/g,"").match(/\d+(?:\.\d+)?/);return t?Number(t[0]):null}function Is(e){if(!e)return null;if(Array.isArray(e))return Is(e[0]);if("object"==typeof e){var r=t(e.unitCode||e.unitText||e.name||"").toLowerCase(),n=zs(e.value||e.amount||e.minValue||e.maxValue||e.text);return n?/sq\s*ft|square\s*feet|ft2|ft²|sqft|ftk|sqf|sft|ft$/i.test(r)||/FTK/i.test(e.unitCode||"")?Math.round(n):/sqm|sq\s*m|m2|m²|square\s*met/i.test(r)?Math.round(10.7639*n):Math.round(n):null}return zs(e)}function Hs(e,r){for(var n=t(e.innerText||""),o=0;o<r.length;o+=1){var i=n.match(r[o]);if(i)return Number(i[1])}return null}function Fs(e,r){var n=R().filter(function(e){var t=_(e).join(" ");return/(?:^|\s|\/)(Apartment|House|SingleFamilyResidence|Residence|Accommodation|RealEstateListing)(?:\s|$)/i.test(t)}),o=n.find(function(e){return B(e)||O(e.description)||Bs(e.address)||Os(e)})||null,i=t([location.pathname,document.title,r&&r.title,r&&r.excerpt,Me("og:type","property")].join(" ")).toLowerCase(),a=t(document.body&&document.body.innerText||""),l=/\b(property|properties|real[ -]?estate|house|apartment|condo|flat|bedrooms?|bathrooms?|sq\.?\s*ft|rightmove|redfin|zillow|realtor)\b/i.test(i+" "+a.slice(0,3e3));if(o&&!function(e){if(!e)return!1;var n=t(B(e)||"").toLowerCase(),o=t(g(["main h1","article h1","h1"])||r.title||document.title).toLowerCase();if(n&&o&&(n===o||-1!==n.indexOf(o)||-1!==o.indexOf(n)))return!0;var i=e.url||e.mainEntityOfPage;if(!i)return!1;try{var a=new URL("object"==typeof i?i.url:i,location.href);return a.origin===location.origin&&a.pathname===location.pathname}catch(e){return!1}}(o))return null;if(!o&&!/(\/property|\/properties|\/listing|for[-_]sale|for[-_]rent)/i.test(location.pathname))return null;var s=function(e){var r=t(g(["main h1","article h1","h1"])||""),n=t(e&&B(e)||"");if(!r||n&&r.toLowerCase()!==n.toLowerCase())return null;var o=document.querySelector("main h1, article h1, h1");if(!o)return null;var i=o.closest("main, article, [itemscope], [data-testid*='property' i], [class*='property-detail' i]")||o.parentElement,a=t(i&&i.innerText||"");return/\b(home|house|apartment|condo|flat|bedrooms?|bathrooms?|sq\.?\s*ft)\b/i.test(a)?i:null}(o);if(!s)return null;var c,u=o&&Os(o)||function(e){for(var r=["[data-testid*='price' i]","[class*='price' i]","[id*='price' i]","[aria-label*='price' i]"],n=0;n<r.length;n+=1)for(var o=e.querySelectorAll(r[n]),i=0;i<o.length;i+=1){var a=o[i];if(!(a.closest&&a.closest("nav, footer, aside, [hidden], [aria-hidden='true']")||"META"!==a.tagName&&Xt(a))){var l=Sl(a.getAttribute("content")||a.getAttribute("aria-label")||a.textContent,"");if(l)return l}}var s=t(e.innerText||"").match(/(?:[$£€]\s?\d[\d,]*(?:\.\d{2})?|\d[\d,]*\s?(?:USD|GBP|EUR))(?:\s*(?:pcm|pm|per month|monthly|pw|per week))?/i);return s?t(s[0]).replace(/([$£€])\s+/g,"$1"):""}(s),d=o&&Bs(o.address||o.location)||function(e,r){for(var n=["[data-testid*='address' i]","[data-testid*='location' i]","[class*='address' i]","[class*='location' i]","[itemprop='address']"],o=0;o<n.length;o+=1)for(var i=e.querySelectorAll(n[o]),a=0;a<i.length;a+=1){var l=i[a];if(!l.closest||!l.closest("nav, footer, aside, [hidden], [aria-hidden='true']")){var s=t(l.getAttribute("content")||l.getAttribute("aria-label")||l.textContent);if(s&&s.length<=220&&!/^<</.test(s)&&!/[{}]/.test(s)&&!/^(for sale|for rent|to rent|sold|let agreed|est\.)$/i.test(s)&&!/[$£€]|\bsq\s*ft\b|\b\d+\s*(?:bd|ba)\b/i.test(s))return s}}var c=t(r&&r.title||document.title||""),u=c.match(/\b(?:for sale|to rent|for rent)\s+in\s+([^|]+)/i);return u||!/,\s*(?:[A-Z]{2}\b|[A-Z][a-z]+,)/.test(c)||/[$£€]/.test(c)||(u=c.match(/^([^|]+?)\s*(?:\||$)/)),u?t(u[1]):""}(s,r),m=zs(o&&(o.numberOfBedrooms||o.bedrooms))||Hs(s,[/\b(\d+(?:\.\d+)?)\s*(?:beds?|bedrooms?|bd)\b/i,/\b(\d+(?:\.\d+)?)\s*bed(?:room)?\s+(?:house|home|flat|apartment|property)\b/i]),p=zs(o&&(o.numberOfBathroomsTotal||o.numberOfBathrooms||o.bathrooms))||Hs(s,[/\b(\d+(?:\.\d+)?)\s*(?:baths?|bathrooms?|ba)\b/i]),f=Is(o&&(o.floorSize||o.area||o.size))||((c=t(s.innerText||"").match(/\b([\d,]+(?:\.\d+)?)\s*(?:sq\.?\s*ft|square\s*feet|sqft|ft²)\b/i))?Math.round(Number(c[1].replace(/,/g,""))):null),h=[o,u,d,m,p,f].filter(function(e){return null!==e&&""!==e&&void 0!==e}).length;return o||l?!u&&h<3||n.length>3&&!/\b(property|listing|for sale|for rent|to rent)\b/i.test(i)?null:{title:B(o)||g(["main h1","article h1","h1"])||r.title||document.title,excerpt:O(o&&o.description)||r.excerpt,price:u||"",location:d||"",bedrooms:m,bathrooms:p,areaSqft:f}:null}function Ds(e){return t(e||"")||null}function Us(e,t){if("number"==typeof e)return isFinite(e)&&Math.floor(e)===e?!t&&e<0?null:e:null;var r=Ds(e);if(!r||!/^-?\d+$/.test(r))return null;var n=Number(r);return!isFinite(n)||!t&&n<0?null:n}function Ws(e){e.socialKind=null,e.platform=null,e.handle=null,e.replyCount=null,e.community=null,e.score=null}function Gs(e){var t=h(e,[function(t,r,n){return[Dr(e),r,n].join(" ")}]),r=t.generator.toLowerCase(),n=t.appName.toLowerCase(),o=t.signature.toLowerCase();if(t={generator:r,appName:n,signature:o},document.querySelector("[class*='stldocs-']"))return Zs("stldocs",t);if(/astro/.test(r)&&(document.querySelector("#starlight__sidebar, starlight-menu-button, [class*='sl-markdown-content']")||/starlight/.test(o)))return Zs("starlight",t);if(/mkdocs/.test(r)||document.querySelector(".md-content")&&document.querySelector(".md-sidebar, .md-header, .md-nav"))return Zs("mkdocs",t);if(document.querySelector("meta[name='readme-deploy']")||document.querySelector(".rm-Article, .rm-LandingPage, .rm-ReferenceMain")||/\.readme\.(io|com)$/.test(location.hostname))return Zs("readme",t);if(document.querySelector("redoc, rapi-doc")||/redoc/i.test(r)||document.querySelector(".redoc-wrap, .api-content[role='main']"))return Zs("redoc",t);if(/buildwithfern|fern/.test(r)||document.querySelector("#fern-sidebar, .fern-page-heading, .fern-prose, .fern-layout-reference, .fern-layout-overview"))return Zs("fern",t);if(/nextra/.test(o)||document.querySelector(".nextra-content, .nextra-breadcrumb, #nextra-skip-nav, .nextra-nav-container"))return Zs("nextra",t);if(/\bnext(?:\.js|js)?\b/.test(o)&&document.querySelector("#__next, script#__NEXT_DATA__")&&document.querySelector("main article, main .prose, main [data-docs-body], main [data-pagefind-body]"))return Zs("next",t);if(/vitepress/.test(r)||document.querySelector("#VPContent, .VPDoc, .VPSidebar, .VPNav"))return Zs("vitepress",t);if(/rspress/.test(r)||document.querySelector("#__rspress_root, .rspress-doc, .rp-sidebar, .rp-nav"))return Zs("rspress",t);if(/mdbook/i.test(r)||document.querySelector("#sidebar.sidebar, #menu-bar-hover-placeholder, nav.sidebar, #sidebar-toggle"))return Zs("mdbook",t);if(/antora/.test(r)||document.querySelector("article.doc, main.main article.doc, .doc .homecards"))return Zs("antora",t);if(/mintlify/.test(r)||document.querySelector("[class*='mintlify'], [data-testid='table-of-contents'], nav[aria-label='Table of contents']"))return Zs("mintlify",t);if(/gitbook/i.test(r)||/\.gitbook\.io$/.test(location.hostname)||document.querySelector("main [class*='whitespace-pre-wrap']")&&/powered by gitbook/i.test(document.body.innerText))return Zs("gitbook",t);if(document.querySelector(".scalar-api-reference, .scalar-app, [data-scalar]"))return Zs("scalar",t);if(/docusaurus/.test(r)||document.querySelector("meta[name='generator'][content^='Docusaurus'], #__docusaurus, [class*='docusaurus-'], .theme-doc-markdown, .theme-doc-sidebar-container, nav[aria-label='Docs sidebar']"))return Zs("docusaurus",t);if(/^(doc\.rust-lang\.org|docs\.rs)$/.test(location.hostname)||document.querySelector(".rustdoc, .sidebar-elems, #crate-search"))return Zs("rustdoc",t);var i=document.querySelector("main .class-description, .contentContainer .description"),a=document.querySelector("main .summary-table, main .member-summary, main .member-details, .contentContainer .summary-table, .contentContainer .details");return i&&a?Zs("javadoc",t):document.querySelector("#dartdoc-main-content, .self-name")&&document.querySelector("section.summary dt .name a, section.summary dt a")?Zs("dartdoc",t):/^pkg\.go\.dev$/.test(location.hostname)||document.querySelector("#main-content .Documentation, #main-content #pkg-index, .go-DetailsHeader")?Zs("go_pkg",t):/readthedocs/.test(o)||document.querySelector(".rst-content, .wy-nav-content, .wy-nav-side")?Zs("readthedocs",t):/sphinx/.test(r)||document.querySelector("body[class*='sphinx'], .document, .sphinxsidebar, [role='navigation'] .sphinxsidebarwrapper, div.body[role='main'], dt.sig, a.headerlink, div.highlight")?Zs("sphinx",t):document.querySelector("devsite-header, devsite-content, devsite-toc, devsite-nav")||/devsite/.test(o)?Zs("google_devsite",t):document.querySelector("[class*='elastic-docs'], [data-elastic-docs]")||/elastic/i.test(o)&&document.querySelector("[class*='docBody'], article[class*='doc']")?Zs("elastic_docs",t):document.querySelector("main .markdown-body, main article, main [data-pagefind-body], main .prose")?Zs("generic_docs",t):null}function Zs(e,t){return{system:e,generator:t.generator,appName:t.appName,signature:t.signature}}function Ks(e){if(!e)return null;var r=zr(e,["[class*='method-route']","[class*='route-endpoint']","code","pre"]);r=t(r).replace(/\s+/g,"");var n=zr(e,["h2","h3","h4","strong","[class*='method-name']","[class*='method-title']","[class*='summary-title']"]),o=t(e.textContent);if(n||(n=o,r&&(n=t(n.replace(r,""))),n=(n=n.replace(/\s{2,}/g," ")).split(/(?:(?:GET|POST|PUT|PATCH|DELETE|OPTIONS|HEAD)\/)/)[0].trim()),!n)return null;var i=zr(e,["p","[class*='description']","[class*='summary-description']"]);i&&(i=Jr(t(i)),n&&0===i.indexOf(n)&&(i=t(i.slice(n.length))),r&&0===i.indexOf(r)&&(i=t(i.slice(r.length))));var a={text:n};return r&&(a.route=r),i&&(a.detail=i),a.groups=function(e){var t=[],r={};return Ir(e,"section, div, details",".stldocs-property").forEach(function(e){if(!e.closest(".stldocs-property")){var n=Hr(e,["h2","h3","h4","summary","[class*='title']"],".stldocs-property");if(/\b(parameters?|request|responses?|returns?|body|headers?)\b/i.test(n)){var o=Js(e).map(function(e){return Ys(e,0)}).filter(Boolean);o.length&&!r[n]&&(r[n]=!0,t.push({heading:n,fields:o}))}}}),t}(e),a}function Vs(e,t){return Hr(e,[t],".stldocs-property")}function Js(e){return Ir(e,".stldocs-property",".stldocs-property").filter(function(t){return t!==e})}function Xs(e){return e=t(e),/^("|').+("|')$/.test(e)}function Ys(e,r){if(!e)return null;r=r||0;var n=t(Vs(e,".stldocs-property-declaration, [class*='property-declaration']"));return!n||Xs(n)?null:{declaration:n,description:Jr(Vs(e,".stldocs-property-description, [class*='property-description']"))||null,fields:Js(e).map(function(e){return Ys(e,r+1)}).filter(Boolean)}}function Qs(e,t){return t=t||"",e.map(function(e){var r=t+"- `"+e.declaration+"`";return e.description&&(r+=": "+e.description),e.fields&&e.fields.length&&(r+="\n"+Qs(e.fields,t+" ")),r}).join("\n")}function ec(e,r){if(!(r=r||Gs(e))||"stldocs"!==r.system&&"starlight"!==r.system)return null;var n=["main .stldocs-content","main .stldocs-resource-content","main .stl-content-panel","main article","main [data-pagefind-body]","main .sl-markdown-content","main .content-panel","main"].map(function(e){return Array.prototype.slice.call(document.querySelectorAll(e))}).flat().sort(function(e,n){function o(e){var n=e.querySelectorAll("[class*='stldocs-method-summary'], [class*='method-summary']").length,o=e.querySelectorAll("[class*='stldocs-method-route'], [class*='method-route']").length,i=e.querySelectorAll("[class*='resource-description']").length;return 1e3*n+200*o+80*e.querySelectorAll(".stldocs-property").length+50*i+("starlight"===r.system&&(e.matches(".sl-markdown-content, [data-pagefind-body]")||e.querySelector(".sl-markdown-content, [data-pagefind-body]"))?5e3:0)+("starlight"===r.system&&e.querySelector("h1, h2")&&e.querySelector("p, pre, code, ul, ol")?800:0)-("starlight"===r.system&&e.matches("article.card, .card")&&!e.querySelector("h1, h2")?1200:0)+t(e.textContent).length}return o(n)-o(e)})[0]||null,o=tr(n||document.body);nr(o),Or(o,{});var i,a,l=g(["main h1","main article h1"])||t(e.title||document.title),s=(i={},a=[],o.querySelectorAll("[class*='stldocs-method-summary'], [class*='method-summary']").forEach(function(e){var t=Ks(e);if(t){var r=t.text+"|"+(t.route||"");i[r]||(i[r]=!0,a.push(t))}}),a),c=function(e,r){var n={},o=[],i=t(String(r||"")).toLowerCase().replace(/s$/i,"");return Array.prototype.slice.call(e.querySelectorAll(".stldocs-property")).forEach(function(e){if(!function(e){for(var t=e&&e.parentElement;t;){if(t.classList&&t.classList.contains("stldocs-property"))return t;t=t.parentElement}return null}(e)&&!e.closest("[class*='stldocs-method-summary'], [class*='method-summary']")){var r=t(Vs(e,".stldocs-property-declaration, [class*='property-declaration']"));if(r&&!Xs(r)&&!n[r]){var a=Jr(Vs(e,".stldocs-property-description, [class*='property-description']")),l=Js(e).map(function(e){return Ys(e,0)}).filter(Boolean);if(a||l.length){var s=/(?:=|:)\s*object\s*\{|\bobject\s*\{/.test(r),c=t(r.split(/[:=]/)[0]).replace(/\s+$/,""),u=c.replace(/([a-z0-9])([A-Z])/g,"$1 $2").split(/[\s_.-]+/).filter(Boolean).length,d=i&&0===c.toLowerCase().indexOf(i);n[r]=!0,o.push({declaration:r,description:a||null,fields:l,objectSchema:s,score:(s?600:0)+200*l.length+(a?50:0)+(d?700:0)+(i&&-1!==r.toLowerCase().indexOf(i)?250:0)-120*(r.match(/\s+or\s+/g)||[]).length-80*Math.max(u-2,0)+Math.min(r.length,80)})}}}}),(o.some(function(e){return e.objectSchema})?o.filter(function(e){return e.objectSchema}):o).map(function(e){return delete e.score,delete e.objectSchema,e})}(o,l);if(s.length||c.length){var u=function(e,r,n){for(var o=[".stldocs-resource-description","[class*='resource-description']",".stldocs-resource-content > p",".stldocs-markdown > p",".sl-markdown-content > p","p"],i=0;i<o.length;i+=1)for(var a=Array.prototype.slice.call(e.querySelectorAll(o[i])),l=0;l<a.length;l+=1){var s=a[l];if(!s.closest(".stldocs-property, [class*='stldocs-method-summary'], [class*='method-summary'], .stldocs-properties, [class*='resource-content-properties']")){var c=Jr(t(s.textContent));if(c&&c!==n&&!(c.length<20)&&!/^(models?\s*expand\s*collapse|api reference)$/i.test(c))return c}}var u=Jr(t(r&&r.excerpt));return u&&u!==n?/^api reference for .* endpoints?$/i.test(u)?null:u:null}(o,e,l),d=[];return l&&d.push("# "+l),u&&d.push(u),s.length&&d.push(function(e){return e.map(function(e){var t="- "+e.text;return e.route&&(t+=" ("+e.route+")"),e.detail&&(t+=": "+e.detail),e.groups&&e.groups.length&&e.groups.forEach(function(e){t+="\n - "+e.heading+"\n"+Qs(e.fields," ")}),t}).join("\n")}(s)),c.length&&d.push(function(e){var t=["## Schemas"];return e.forEach(function(e){t.push("### "+e.declaration),e.description&&t.push(e.description),e.fields.length&&t.push(Qs(e.fields,""))}),t.join("\n\n")}(c)),{title:l||e.title,byline:null,excerpt:u||e.excerpt,siteName:e.siteName||location.hostname,publishedTime:null,html:"",markdown:d.filter(Boolean).join("\n\n").trim(),textContent:t(d.join(" ")),docsLike:!0,readerMode:!1,contentType:"article"}}return en(e,n,{title:g(["main h1","main article h1"])||t(e.title||document.title),rewriteRoot:function(e){e.querySelectorAll("#starlight__sidebar, starlight-menu-button, [class*='stldocs-sidebar'], [class*='stldocs-sidebar-entry'], [class*='stldocs-expander'], [class*='sidebar-pane'], [class*='sidebar-content'], [class*='sidebar-accordion'], [class*='table-of-contents'], .stldocs-breadcrumbs, .stl-ui-dropdown, .discord, aside").forEach(function(e){e.remove()}),"starlight"===r.system&&e.querySelector("h1, h2")&&e.querySelectorAll("article.card, .card").forEach(function(e){var r=t(e.textContent);e.closest(".landing-card, .card--fullwidth")||e.querySelector(".title, .body")||r&&r.length<=600&&!e.querySelector("h1, h2, h3, h4, h5, h6")&&e.remove()}),$r(e,"div, p, span, button, a",/^(on this page|table of contents|copy page|edit page|expand|collapse|api reference)$/i),e.querySelectorAll("h1").forEach(function(e,t){t>0&&e.remove()}),e.querySelectorAll("h2, h3, h4, h5, h6, p, div, span").forEach(function(e){var r=t(e.textContent);/expand collapse/i.test(r)&&e.remove(),/^[A-Z][a-z]+(?:[A-Z][a-z]+){1,}$/.test(r)&&r.length<40&&e.remove()})}})}function tc(e,r){if(!(r=r||Gs(e))||"antora"!==r.system)return null;var n=Fr(["main.main article.doc","article.doc","main.main","main"]);if(!n)return null;var o=zr(n,["h1"]);if(!o){var i=t((e.title||document.title).replace(/\s*::\s*Fedora Docs$/i,"")),l=function(e){var r={},n=[];return e.forEach(function(e){document.querySelectorAll(e).forEach(function(e){var o=t(e.textContent);o&&!r[o]&&(r[o]=!0,n.push(o))})}),n}(["article.doc h2","article.doc h3"]).filter(function(e){return e.length>=4&&!/^(contents?|navigation)$/i.test(e)}),s={},c=[],u=".homepage-card, .home-card, .card, [class*='homepage-card'], [class*='home-card'], [class*='doc-card'], li, section";if(n.querySelectorAll("a.homepage-link[href], a.homepage-link-primary[href], a.homepage-link-secondary[href]").forEach(function(e){var r=e.getAttribute("href")||"",n=a(r||e.href),o=t(e.textContent),i="",l=e.closest(u),d=e.nextElementSibling;(!d||!/^(P|DIV|UL|OL)$/i.test(d.tagName||"")||l&&d.closest(u)!==l||(i=t(d.textContent)),i)||(i=Hr(l||e.closest("section, div, li, article")||e.parentElement,["p","li"],u))===o&&(i="");var m=n||"unlinked:"+o.toLowerCase()+"|href:"+r;!o||o.length<4||s[m]||(s[m]=!0,c.push({text:o,url:n,detail:i}))}),!c.length||!Wo(c))return null;var d=[];i&&d.push("# "+i),l.length&&d.push(l.map(function(e){return"- "+e}).join("\n")),d.push(_e(c));var m=d.filter(Boolean).join("\n\n").trim();return{title:i||e.title,byline:null,excerpt:e.excerpt,siteName:e.siteName||location.hostname,publishedTime:null,html:"",markdown:m,textContent:t(m),readerMode:!1,contentType:"list"}}return en(e,n,{title:o||t((e.title||document.title).replace(/\s*::\s*Fedora Docs$/i,"")),rewriteRoot:function(e){e.querySelectorAll(".toolbar, .crumbs, .page-languages, .languages-menu, .languages-menu-toggle, .page-versions, .page-navigation, .nav-container, .edit-this-page, .pagination, aside, nav").forEach(function(e){e.remove()}),e.querySelectorAll("div, p, section, small").forEach(function(e){var r=t(e.textContent);!r||r.length>220||/(the .* docs team|version\s+[A-Z]?\d+|last review\b|last build\b|edit this page\b|report an issue\b)/i.test(r)&&e.remove()})}})}function rc(e){return(e.title||document.title).replace(/\s*[|\-]\s*[^|\-]*$/,"")}function nc(e,r){if(!(r=r||Gs(e))||"mkdocs"!==r.system)return null;var n="";return Xr(e,["main .md-content__inner","main .md-content","article.md-content__inner","main article","main"],{titleSelectors:["main h1","article h1"],fallbackTitle:function(e){return t(e.title||document.title)},postProcessMarkdown:function(e){return!n||/## Reference Pages[\s\S]*\n\s*-\s+\[/.test(e)?e:[e=e.replace(/\n*## Reference Pages\s*$/i,""),n].filter(Boolean).join("\n\n")},rewriteRoot:function(e){var r=function(){if(!/\/(?:reference|api)\/?$/i.test(location.pathname||""))return null;var e=location.href.replace(/#.*$/,"").replace(/\/$/,"")+"/",r=Array.prototype.slice.call(document.querySelectorAll(".md-nav__link[href]")).find(function(t){var r=a(t.getAttribute("href"));return r&&r.replace(/#.*$/,"").replace(/\/$/,"")+"/"===e}),n=r&&r.closest(".md-nav__item--nested, .md-nav__item--section, .md-nav__item"),o=n&&n.querySelector("nav.md-nav");if(!o)return null;var i={},l=[];if(o.querySelectorAll("a[href]").forEach(function(r){var n=a(r.getAttribute("href"));if(n){var o=n.replace(/#.*$/,"").replace(/\/$/,"")+"/",s=t(r.textContent);s&&o!==e&&!i[o]&&(i[o]=!0,l.push({title:s,href:n}))}}),l.length<3)return null;var s=document.createElement("section"),c=document.createElement("h2"),u=document.createElement("ul");return c.textContent="Reference Pages",s.appendChild(c),l.forEach(function(e){var t=document.createElement("li"),r=document.createElement("a");r.href=e.href,r.textContent=e.title,t.appendChild(r),u.appendChild(t)}),s.appendChild(u),s}();n=function(e){if(!e)return"";var r=Array.prototype.slice.call(e.querySelectorAll("a[href]")).map(function(e){return"- "+Se(t(e.textContent),e.href)}).filter(Boolean);return r.length?"## Reference Pages\n\n"+r.join("\n"):""}(r),r&&e.querySelectorAll("a[href]").length<4&&e.appendChild(r),rr(e,gt+", .md-source-file, .md-content__button, .md-feedback, .mdx-badge, .md-nav, .md-sidebar"),$r(e,"div, p, span, button, a",/^(table of contents|view source|edit this page)$/i),e.querySelectorAll(".admonition, details.note, details.tip, details.warning, details.info, details.danger, details.example, details.question, details.abstract, details.success, details.failure, details.bug, details.quote").forEach(function(e){var r=e.querySelector(".admonition-title, summary"),n=t(r&&r.textContent||"Note").toUpperCase();r&&r.remove();var o=t(e.textContent);if(o){var i=document.createElement("blockquote");i.innerHTML="<p><strong>"+n+":</strong> "+o+"</p>",e.replaceWith(i)}}),e.querySelectorAll("font").forEach(function(e){e.replaceWith(document.createTextNode(e.textContent))})}})}function oc(e,r){return Yr(e,r,{system:"docusaurus",rootSelectors:["main .markdown","main article","main .theme-doc-markdown","article .theme-doc-markdown","main [class*='docItemContainer']","main"],titleSelectors:["main .markdown h1","main h1","article h1",".theme-doc-markdown h1"],fallbackTitle:rc,removeSelectors:gt+", .theme-doc-breadcrumbs, .theme-doc-toc-desktop, .theme-doc-toc-mobile, .pagination-nav, .theme-edit-this-page, .theme-last-updated",removeTextPattern:/^(skip to main content|on this page|edit this page|copy for llm|view as markdown|ask ai|search)$/i,contentType:function(e,t){return Br(e,t)?"list":"article"},preserveSelector:"[role='tab']",rewriteRoot:function(e){!function(e,t){for(var r=document.createTreeWalker(e,NodeFilter.SHOW_TEXT),n=[];r.nextNode();)n.push(r.currentNode);n.forEach(function(e){var r=e.nodeValue.replace(t," ");r!==e.nodeValue&&(e.nodeValue=r)})}(e,/\b(?:Get started|Getting started|Docs|API|FAQ|Contributing|Troubleshooting|Guides?|Reference)(?:\s*\|\s*(?:Get started|Getting started|Docs|API|FAQ|Contributing|Troubleshooting|Guides?|Reference)){2,}\s*/gi),rr(e,"header, footer, nav, aside, [role='banner'], [role='navigation'], [class*='navbar' i], [class*='sidebar' i], [class*='menu' i], [class*='toc' i]");var r=Array.prototype.slice.call(e.querySelectorAll("[role='tabpanel']")),n=[];e.querySelectorAll("[role='tab'][aria-controls]").forEach(function(e){if("true"===e.getAttribute("aria-selected")||/(?:^|\s)(?:tabs__item--active|tabItem--active|active|is-active)(?:\s|$)/.test(e.className||"")){var o=r.find(function(t){return t.id===e.getAttribute("aria-controls")});if(o&&-1===n.indexOf(o)){n.push(o);var i=t(e.textContent);if(i){var a=document.createElement("h3");a.textContent=i,o.insertBefore(a,o.firstChild)}}}}),n.length?r.forEach(function(e){-1===n.indexOf(e)&&e.remove()}):e.querySelectorAll("[role='tabpanel'][hidden], [role='tabpanel'][aria-hidden='true']").forEach(function(e){e.remove()}),e.querySelectorAll("[role='tablist']").forEach(function(e){e.remove()}),e.querySelectorAll(".admonition, [class*='admonition']").forEach(function(e){var r=t((e.querySelector(".admonition-heading, .admonition-title")||{}).textContent)||"Note",n=t(e.textContent).replace(new RegExp("^"+r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+"\\s*","i"),"");if(!n)return e.remove();var o=document.createElement("blockquote");o.innerHTML="<p><strong>"+r.toUpperCase()+":</strong> "+n+"</p>",e.replaceWith(o)})}})}function ic(e){var r=Dr(e);if(!Ut(/(^|\.)docs\.stripe\.com$/)&&!/stripe/i.test(r))return null;if(!/^\/api\//.test(location.pathname)&&!/api reference/i.test(r))return null;var n,a=t((e.title||document.title).replace(/\s*[|·-]\s*Stripe API Reference$/i,"")),l=Array.prototype.slice.call(document.querySelectorAll("main section, article section")).find(function(e){var r=e.querySelector("h1, h2, h3");return(r=t(r&&r.textContent))&&a&&(r===a||0===r.indexOf(a))});if(l){var s=l.parentElement;n=(s?s.querySelectorAll(":scope > section").length:0)>1?s:l}else n=document.querySelector("main article, article, main");return Qr(e,n,{titleSelectors:["article h1","main h1"],fallbackTitle:a,rewriteRoot:function(e){$r(e,"a, button, span, div, p",/^(ask about this section|copy for llm|view as markdown)$/i),e.querySelectorAll("a[href]").forEach(function(e){var r=i(e.getAttribute("href")),n=t(e.textContent);r===location.href.split("#")[0]&&n===a&&e.remove()}),e.querySelectorAll("[aria-hidden='true']").forEach(function(e){o(e)<2e3&&e.remove()}),e.querySelectorAll("[class*='collapsed'], [class*='summary'], [class*='unexpanded']").forEach(function(e){var r=e.querySelector("code, strong, b, [class*='name']"),n=t(r&&r.textContent);if(n&&!(n.length>50)){var i=e.nextElementSibling||e.previousElementSibling;if(i){var a=i.querySelector("code, strong, b, [class*='name']");t(a&&a.textContent)===n&&(o(e)<o(i)?e.remove():i.remove())}}}),e.querySelectorAll("h2, h3, h4, h5, h6").forEach(function(e){var r=function(e){var r=(e=t(e||"").replace(/deprecated$/i," [Deprecated]")).match(/^([a-z0-9_.]+?)(nullable)?\s*(string|integer|object|array|boolean|enum|timestamp|hash|map|float)(expandable)?$/i);if(!r)return e.replace(/([a-z])([A-Z][a-z]+)/g,"$1 $2");var n=[];return r[2]&&n.push("nullable"),n.push(r[3].toLowerCase()),r[4]&&n.push("expandable"),r[1]+" - "+n.join(" ")}(e.textContent);r&&(e.textContent=r)});var r=e.querySelectorAll("h1");if(r.length>1){var n={};r.forEach(function(e){var r=t(e.textContent).toLowerCase().replace(/\s*\[?deprecated\]?\s*$/i,"");n[r]?e.remove():n[r]=!0})}e.querySelectorAll("h1").forEach(function(e){e.textContent=t(e.textContent).replace(/deprecated$/i," [Deprecated]")})},postProcessMarkdown:function(e){var t=e.split("\n"),r={};(t.forEach(function(e){var t=e.match(/^#{2,6}\s+([a-z_][a-z0-9_]*(?:nullable\s*)?(?:string|integer|object|array|boolean|enum|timestamp|hash|map|float)?(?:\s*expandable)?)/i);t&&(r[t[1].toLowerCase().replace(/\s+/g,"")]=!0)}),Object.keys(r).length>0)&&(e=t.filter(function(e){var t=e.match(/^-\s+([a-z_][a-z0-9_]*(?:nullable\s*)?(?:string|integer|object|array|boolean|enum|timestamp|hash|map|float)?(?:\s*expandable)?)/i);if(!t)return!0;var n=t[1].toLowerCase().replace(/\s+/g,"");return!r[n]}).join("\n"));return e}})}function ac(e){var r=Dr(e);return Ut(/(^|\.)docs\.github\.com$/)||/github docs/i.test(r)?Qr(e,function(){if(!/^\/(?:[a-z]{2}(?:-[A-Z]{2})?\/)?rest\//.test(location.pathname||""))return null;var e=document.querySelector("main#main-content, main");return e&&Array.prototype.filter.call(e.querySelectorAll("h2, h3"),function(e){var r=t(e.textContent);return r&&!/^(fine-grained access tokens|parameters|http response status codes|code samples)\b/i.test(r)}).length>=2?e:null}()||Fr(["main .markdown-body","main"]),{titleSelectors:["main h1",".markdown-body h1"],fallbackTitle:function(e){return t((e.title||document.title).replace(/\s*-\s*GitHub Docs$/i,""))},preserveSelector:"button[aria-label*='copy' i]",rewriteRoot:function(e){e.querySelectorAll("clipboard-copy, [data-copy-feedback], [data-testid='copy-button']").forEach(function(e){e.remove()}),e.querySelectorAll("button[aria-label*='copy' i]").forEach(function(e){var r=t(e.textContent)||t(e.getAttribute("aria-label"));if(r){var n=document.createElement("p");n.textContent=r,e.replaceWith(n)}}),e.querySelectorAll("[role='tablist'], ul[class*='SegmentedControl'], .prc-SegmentedControl-SegmentedControl-lqIXp").forEach(function(e){e.remove()}),$r(e,"div, p, span, button, a",/^(copy to clipboard|request example|response)$/i)}}):null}function lc(e){var t=String(e||"").replace(/\\\r?\n\s*/g,"");try{t=JSON.stringify(JSON.parse(t),null,2)}catch(e){t=t.replace(/\\n/g,"\n").replace(/\\r/g,"\r").replace(/\\t/g,"\t").replace(/\\'/g,"'").replace(/\\"/g,'"').replace(/\\\\/g,"\\")}return t.trim()}function sc(e){var r=Dr(e);if(!Ut(/(^|\.)api\.baselinker\.com$/)&&!/baselinker/i.test(r))return null;var n=Pe("method"),o=Qr(e,Fr(["#main",".main_text","main"]),{fallbackTitle:n||t((e.title||document.title).replace(/\s*-\s*baselinker\.com$/i,""))||"API documentation",rewriteRoot:function(e){e.querySelectorAll("nav, aside, footer").forEach(function(e){e.remove()}),$r(e,"a, button, div, span",/^(method list|test your request|changelog|copy)$/i)}});if(n&&(!o||t(o.markdown||"").length<200)){var i=function(e){if(!e)return null;for(var t=new RegExp("examples\\[['\"]"+pn(e)+"['\"]\\]\\s*=\\s*'([\\s\\S]*?)';"),r=Array.prototype.slice.call(document.querySelectorAll("script")),n=0;n<r.length;n+=1){var o=(r[n].textContent||"").match(t);if(o&&o[1])return lc(o[1])}return null}(n);if(i){var a=["# "+n,"Baselinker API request example for the `"+n+"` method.","```json",i,"```"].join("\n\n");return{title:n,byline:e.byline,excerpt:"Baselinker API request example for the "+n+" method.",siteName:e.siteName||location.hostname,publishedTime:e.publishedTime,html:"",markdown:a,textContent:t(a),readerMode:!1,contentType:"article"}}}return o}function cc(e){var r=Dr(e);if(!Ut(/(^|\.)rubyapi\.org$/)&&!/ruby api/i.test(r))return null;var n=t((e.title||document.title).replace(/\s*\|\s*Ruby API.*$/i,""))||"Ruby API";return"/"===location.pathname||/^\/\d+(?:\.\d+)?\/?$/.test(location.pathname)?function(e,r){var n={},o=[];if(document.querySelectorAll("a[href*='/o/']").forEach(function(e){var r=e.getAttribute("href")||"",i=a(r),l=t(e.textContent),s=i||"unlinked:"+r;if(/\/\d+(?:\.\d+)?\/o\//.test(i||r)&&/^read more$/i.test(l)&&!n[s])for(var c=e.parentElement;c&&c!==document.body;){var u=t((c.querySelector("h2, h3")||{}).textContent||""),d=zr(c,["p"]);if(u&&d)return n[s]=!0,void o.push({text:u,url:i,detail:d});c=c.parentElement}}),o.length<3||Wo(o)<3)return null;var i=["# "+r,e.excerpt,_e(o)].filter(Boolean).join("\n\n"),l=Ne({title:r,excerpt:e.excerpt,siteName:e.siteName||location.hostname,markdown:i,textContent:t(i)});return l.byline=e.byline,l.publishedTime=e.publishedTime,l}(e,n):Xr(e,["main",".ruby-documentation"],{titleSelectors:["main h1",".ruby-documentation h1"],fallbackTitle:n,rewriteRoot:function(e){e.querySelectorAll("form, button").forEach(function(e){e.remove()}),$r(e,"h2, h3, p, div, span",/^(type signatures|preview)$/i)}})}function uc(e){var r=Dr(e).toLowerCase();if(!Ut(/(^|\.)(guides|edgeguides)\.rubyonrails\.org$/)&&!/ruby on rails guides/.test(r))return null;var n=Fr(["#main","main article","main","article"]);if(!n)return null;var o=zr(n,["p"]),i=Qr(e,n,{titleSelectors:["#main h1","main h1","article h1"],fallbackTitle:function(){return(e.title||document.title).replace(/\s*[—-]\s*Ruby on Rails Guides$/i,"")},rewriteRoot:function(e){e.querySelectorAll("#topNav, #feature, #subCol, #subColWrap, #guides, #guides-index, .guides-index, .guide-index, .chapter, .chapter-list, .sidebar, aside, nav, header").forEach(function(e){e.remove()}),$r(e,"a, p, div, span",/^(skip to main content|skip to article body)$/i),$r(e,"h2, h3",/^chapters$/i),e.querySelectorAll("ol, ul").forEach(function(e){Rr(e)&&e.remove()})}});if(!i)return null;var a=t(o||i.excerpt);if(a&&-1===i.markdown.indexOf(a)){var l=i.markdown;Vr(l,i.title)&&(l=l.split("\n\n").slice(1).join("\n\n")),i.markdown=["# "+i.title,a,l].filter(Boolean).join("\n\n"),i.textContent=t(i.markdown)}return i}function dc(e){var r=Dr(e).toLowerCase(),n=!!document.querySelector("body.mediawiki, #mw-content-text, .mw-parser-output, meta[name='generator'][content^='MediaWiki']");if(!(Ut(/(^|\.)(api\.rubyonrails\.org|ruby-doc\.org)$/)||/rdoc documentation/.test(r)||!n&&!!document.querySelector("#class-metadata, #bodyContent")))return null;if(/documenting the ruby language/i.test(e.title||document.title)&&!document.querySelector("#class-metadata, #bodyContent, main h1"))return null;var o=Fr(["#bodyContent","#content","#main","main"]);return o?Qr(e,o,{titleSelectors:["#bodyContent h1","#content h1","#main h1","main h1"],fallbackTitle:function(){return e.title||document.title},titleFormatter:function(e){return e.replace(/\s*-\s*RDoc Documentation$/i,"").replace(/^(class|module)\s+/i,"")},rewriteRoot:function(e){e.querySelectorAll("form, nav, header, #class-metadata, .method-source-code, .source_code, .filetree, .panel, .search-section, .quicksearch, aside").forEach(function(e){e.remove()}),$r(e,"a, span, div, p",/^(skip to content|skip to search|search|menu|index)$/i),$r(e,"h2, h3",/^(home|what(?:’|')?s here)$/i),e.querySelectorAll("ul, ol, div, section").forEach(function(e){Rr(e)&&e.remove()}),e.querySelectorAll("a").forEach(function(e){var r=t(e.textContent);/^(¶|↑)$/.test(r)&&e.remove()}),e.querySelectorAll("h1, h2, h3, h4").forEach(function(e){e.textContent=t(e.textContent).replace(/[¶↑]/g,"").replace(/\s+</g," < ")})}}):null}function mc(e){var t=Dr(e).toLowerCase();return Ut(/(^|\.)api\.rubyonrails\.org$/)||/rubyonrails|activerecord::|actioncontroller::/.test(t)?dc(e):null}function pc(e){var r={},n=[];return e.forEach(function(e){document.querySelectorAll(e).forEach(function(e){var o=t(e.textContent);o&&!r[o]&&(r[o]=!0,n.push(o))})}),n}function fc(r){var n=function(){var t=M(["VideoObject","Clip","Movie","TVEpisode"]),r={title:t&&(t.name||t.headline),description:t&&t.description,byline:t&&(t.author||t.publisher),publishedTime:t&&(t.uploadDate||t.datePublished),duration:t&&t.duration,views:null},n=e.ytInitialPlayerResponse,o=n&&n.videoDetails,i=n&&n.microformat&&n.microformat.playerMicroformatRenderer;return o&&(r.title=r.title||o.title,r.description=r.description||o.shortDescription,r.byline=r.byline||o.author,r.views=r.views||o.viewCount),i&&(r.byline=r.byline||i.ownerChannelName,r.publishedTime=r.publishedTime||i.publishDate||i.uploadDate),r}(),o=t(Me("og:type","property")||"").toLowerCase(),i=!(!e.ytInitialPlayerResponse||!e.ytInitialPlayerResponse.videoDetails),a=!(!r.video&&!/^video\b/.test(o)),l=/\/(watch|shorts|live|videos?|player|clip|replay)\b/i.test(location.pathname||""),s=!!document.querySelector("video, iframe[src*='youtube'], iframe[src*='youtu.be'], iframe[src*='vimeo'], [data-video-id], [data-video], [data-player]");if(!!!(i||a||l&&s)||!(l||i||a))return null;if(!i&&!l&&!/^video\b/.test(o)&&Array.prototype.filter.call(document.querySelectorAll("article p, main p"),function(e){return t(e.textContent||"").length>=80}).length>=3)return null;var c=function(e,r){var n=t(r.title||""),o=pc(["main h1","article h1","h1"]).filter(function(e){return!/^(loading|this video is processing|verify to continue|checking if the site connection is secure)/i.test(e)});return!n&&o.length&&(n=o[0]),n||(n=t(e.title||document.title)),n.replace(/\s*[-|]\s*(YouTube|Vimeo|Videos & Movies on Vimeo)$/i,"")}(r,n),u=function(e,r){var n=t(r.description||e.excerpt||"");return n||pc(["#description-inline-expander","ytd-expandable-video-description-body-renderer","#description.ytd-watch-metadata","#description","[data-testid='vd-wrapper'] p","main article p","main p"]).find(function(e){return!(e.length<30||/^(loading|you'll be able to view it as soon as it's done|verify to continue|checking if the site connection is secure)/i.test(e))})||null}(r,n),d=B(n.byline)||r.byline,m=O(n.publishedTime)||g(["time[datetime]"],"datetime")||r.publishedTime,p=[],f=O(n.duration),h=O(n.views);return f&&p.push("Duration: "+f),h&&p.push("Views: "+h),c&&u?je({title:c,byline:d,publishedTime:m,description:u,details:p,siteName:r.siteName||location.hostname,hostAware:!0}):null}function hc(e){if(!Ut(/(^|\.)(youtube\.com|youtu\.be)$/))return null;if(!Pe("v")&&!/^\/(watch|shorts|live)\b/.test(location.pathname))return null;var r=fc(e);if(r)return r;var n=M(["VideoObject"]),o=t(n&&(n.name||n.headline)||e.title).replace(/\s*[-|]\s*YouTube$/i,""),i=g(["#description-inline-expander","ytd-expandable-video-description-body-renderer","#description.ytd-watch-metadata","#description"])||O(n&&n.description)||e.excerpt,a=B(n&&(n.author||n.publisher))||e.byline,l=O(n&&(n.uploadDate||n.datePublished))||e.publishedTime,s=[],c=pc(["ytd-macro-markers-list-item-renderer h4","ytd-macro-markers-list-item-renderer #title"]);return O(n&&n.duration)&&s.push("Duration: "+O(n.duration)),c.length&&s.push("Chapters: "+c.join(" | ")),o&&i?je({title:o,byline:a,publishedTime:l,description:i,details:s,siteName:e.siteName||"YouTube",hostAware:!0}):null}function gc(e,r){if(r=r||{},!document.body||!st())return null;if(dt(document))return null;if(Ao())return null;if(document.querySelector("article h1, article [itemprop='articleBody'], [type='application/ld+json']")){var n=t(document.body.textContent||"");if(document.querySelector("article h1")&&n.length<3e4)return null}var o=[];["main","[role='main']","#main",".main","body"].forEach(function(e){document.querySelectorAll(e).forEach(function(e){-1===o.indexOf(e)&&o.push(e)})});var i=null,l=r.minItems||5,s=/\b(find|search|book|compare|deals?|offers?|destinations?|routes?|tickets?|timetables?|trains?|travel|hotels?|homes?|properties|real estate|for sale|for rent|marketplaces?|listings?|latest|top stories|headlines|breaking news)\b/i,c=t([e&&e.title||"",e&&e.siteName||"",document.title||""].join(" ")).toLowerCase(),u=t(e&&e.excerpt||"").toLowerCase(),d=[];(u.match(new RegExp(s.source,"gi"))||[]).forEach(function(e){e=e.toLowerCase(),-1===d.indexOf(e)&&d.push(e)});var m=t([e&&e.title||"",e&&e.siteName||"",document.title||"",document.body.textContent||""].join(" ")).toLowerCase().slice(0,6e3),p=s.test(c)||d.length>=2,f=s.test(m);function h(e){return/^(?:read|learn|see) more$/i.test(t(e||""))}function g(e){if(!e||Vt(e))return null;var r=Qt(e,document),n=t(r.textContent||""),o=r.querySelector("img[src], picture source[srcset], video[src], svg");return n||o?r:null}function y(e){return e.closest("article, li, [class*='card'], [class*='tile'], [class*='item'], [class*='listing'], [class*='result'], [class*='destination'], [class*='route'], [class*='story']")}function b(e){if(!e||Vt(e))return"";if(e.closest("header, nav, footer, aside, form, [role='navigation'], [role='banner'], [role='contentinfo']"))return"";var r=e.getAttribute("href")||"",n=Qt(e,document),o=n&&n.querySelector("h1, h2, h3, h4"),i=Xt(e)?"":e.getAttribute("aria-label"),l=t(o&&o.textContent||n&&n.textContent||i||"");return h(l)&&(l=function(e){if(!a(e.getAttribute("href")||""))return"";var r=y(e);if(!r)return"";var n={};if(Array.prototype.forEach.call(r.querySelectorAll("a[href]"),function(e){if(g(e)){var t=a(e.getAttribute("href")||"");t&&(n[ut(t)]=!0)}}),1!==Object.keys(n).length)return"";var o="";return Array.prototype.some.call(r.querySelectorAll("h1, h2, h3, h4"),function(e){var r=g(e);return!!(o=t(r&&r.textContent||""))}),o}(e)),ct(l,r)||l.length<12&&!/[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}]/u.test(l)?"":l}return o.forEach(function(e){var r={},n=[],o=[],s=t((e.querySelector("h1")||{}).textContent||"");e.querySelectorAll("h2, h3").forEach(function(e){if(!Vt(e)){var r=t(Qt(e,document).textContent||"");if(r){var n=e.closest("article, li, [class~='card'], [class~='tile'], [class~='item'], [class~='listing'], [class~='result'], [class~='destination'], [class~='route'], [class~='story']"),i=!(!e.closest("a[href]")&&!e.querySelector("a[href]"));!i&&n&&(i=Array.prototype.slice.call(n.querySelectorAll("a[href]")).some(function(e){return!Vt(e)&&t(Qt(e,document).textContent||"")===r})),i||e.closest&&e.closest("aside, nav, header, footer, [role='navigation'], [role='complementary'], [role='banner'], [role='contentinfo']")||Lo(e.parentElement)||r.length>=6&&r.length<=90&&!ct(r,"")&&-1===o.indexOf(r)&&o.push(r)}}}),e.querySelectorAll("a[href]").forEach(function(e){var o=e.getAttribute("href")||"",i=a(o),l=b(e),s=i?ut(i):"unlinked:"+l.toLowerCase()+"|href:"+o;if(l&&!r[s]){var c=e.closest("article, section, li, [class*='card'], [class*='tile'], [class*='item'], [class*='listing'], [class*='result'], [class*='destination'], [class*='route'], [class*='story']")||e.parentElement,u=function(e){return e.closest&&e.closest("article, li, [class*='card'], [class*='tile'], [class*='item'], [class*='listing'], [class*='result'], [class*='destination'], [class*='route'], [class*='story']")}(e);if(u&&u!==c&&u.contains(e)&&(c=u),!u||!u.querySelector("article h1 a[href], article h2 a[href], article h3 a[href], article h4 a[href]")||u.querySelector("h1 a[href], h2 a[href], h3 a[href], h4 a[href]").contains(e)){c=function(e,r,n){for(var o=e.getAttribute("href")||"",i=a(o),l=i?ut(i):"unlinked:"+n.toLowerCase()+"|href:"+o,s=e,c=e,u=!!e.closest("h1, h2, h3, h4")||h(t(e.textContent||""));c&&r.contains(c);){for(var d=e;d.parentElement&&d.parentElement!==c;)d=d.parentElement;if((c.matches&&c.matches("a[href]")?[c]:Array.prototype.slice.call(c.querySelectorAll("a[href]"))).some(function(r){if(r===e)return!1;for(var o=r;o.parentElement&&o.parentElement!==c;)o=o.parentElement;if(o===d)return!1;var i=!!r.closest("h1, h2, h3, h4")||h(t(r.textContent||""));if(u&&!i)return!1;if(r.matches("[rel='author'], [itemprop='author']")||r.closest("[class*='author' i], [class*='byline' i]"))return!1;var s=b(r);if(!s)return!1;var m=r.getAttribute("href")||"",p=a(m),f=p?ut(p):"unlinked:"+s.toLowerCase()+"|href:"+m,v=g(e),w=g(r),A=t(v&&v.textContent||""),S=t(w&&w.textContent||""),x=h(A),k=h(S),C=y(e),q=y(r),E=g(d),T=g(o),_=!(!E||!E.matches("h1, h2, h3, h4")&&!E.querySelector("h1, h2, h3, h4")),L=!(!T||!T.matches("h1, h2, h3, h4")&&!T.querySelector("h1, h2, h3, h4")),j=t(E&&E.textContent||""),P=t(T&&T.textContent||"");return!(f===l&&s===n&&C===q&&(x&&!k&&!_&&L&&j===A&&P===s||k&&!x&&_&&!L&&j===n&&P===S)||f===l&&k&&(!C||!q||C===q)&&!(d.querySelector&&o.querySelector&&d.querySelector("h1, h2, h3, h4")&&o.querySelector("h1, h2, h3, h4")))}))break;if(s=c,c===r)break;c=c.parentElement}return s}(e,c,l);var d=Qt(c,document);Array.prototype.slice.call(d.querySelectorAll("h1, h2, h3, h4, a[href]")).forEach(function(e){var r=t(e.textContent||"");(r===l||h(r))&&e.remove()});var m=Gl(d,l);r[s]=!0,n.push({text:l,url:i,detail:m})}}});var c=t(e.textContent||""),u=e.querySelectorAll("a[href]").length,d=e.querySelectorAll("article, section, li, [class*='card'], [class*='tile'], [class*='item'], [class*='listing'], [class*='result'], [class*='destination'], [class*='route'], [class*='story']").length,m=s&&s.length>=8&&s.length<=120?180:0,p=60*Math.min(o.length,6),v=180*n.length+m+p+12*Math.min(d,18)+Math.min(u,80),w=Wo(n);w<l&&!(w>=3&&m&&o.length>=2)||(f||w>=6&&d>=6&&o.length>=3)&&(u<n.length||c.length<120||(!i||v>i.score)&&(i={root:e,items:n,hero:s,headings:o,materializedItems:w,score:v}))}),i?i.materializedItems<l&&(!i.hero||i.headings.length<2)?null:(i.provisional=i.materializedItems<l&&!p,i):null}function yc(e){if(st()){var r=Ka(e,{portalRoot:!0});if(r.portalRootEvidence)return r}var n=gc(e,{minItems:4});if(!n)return null;var o=n.hero||e&&e.title||document.title||location.hostname,i=[];n.hero&&i.push("# "+n.hero),e&&e.excerpt&&i.push(e.excerpt);var l=function(e,r,n){var o=r&&r.listExtraction,i=o&&o.ancestorDescription;return e&&i&&o.ancestorDescriptionSourceNode===e.root?t(i)===t(n&&n.excerpt||"")?"":i:""}(n,r,e);l&&i.push(l);var s=new Set(n.items.map(function(e){return t(e.text).toLowerCase()})),c=n.headings.filter(function(e){return!s.has(t(e).toLowerCase())});c.length>=2&&i.push(c.map(function(e){return"- "+e}).join("\n")),i.push(_e(n.items));var u=i.filter(Boolean).join("\n\n").trim(),d=function(e,r){var n=r&&r.listExtraction;if(!e||!n||n.sourceNode!==e.root||!n.items.length)return null;for(var o=n.root,i=Array.from(o.querySelectorAll("a[href]")),l=new Set,s=[],c=[],u=0;u<e.items.length;u+=1){var d=e.items[u],m=n.items.filter(function(e){return e.url===d.url});if(m.length>1)return null;var p=i.filter(function(e){return a(e.getAttribute("href"))===d.url&&t(e.textContent||e.getAttribute("aria-label"))===t(d.text)});if(!p.length&&m.length&&m[0].text===d.text&&m[0].sourceNode&&o.contains(m[0].sourceNode)&&a(m[0].sourceNode.getAttribute("href"))===d.url&&(p=[m[0].sourceNode]),1!==p.length||l.has(d.url))return null;m.length&&m[0].card&&m[0].card.contains(p[0])&&c.push({card:m[0].card,text:t(d.detail)}),l.add(d.url),s.push(Object.assign({},d,{sourceNode:p[0]}))}var f=n.items.filter(function(e){return!l.has(e.url)});if(!f.length)return null;for(var h=0;h<f.length;h+=1){var g=f[h],y=g.card;if(!g.sourceNode||"A"!==g.sourceNode.tagName||!y||y===o||!o.contains(y)||!y.contains(g.sourceNode)||ae(y))return null;var b=(y.matches("a[href]")?[y]:Array.from(y.querySelectorAll("a[href]"))).map(function(e){return a(e.getAttribute("href"))});if(!b.length||b.some(function(e){return!e||e!==g.url}))return null;s.push(g)}var v=La(o,n.items,{includeInlineProse:!0,preserveTextLengths:!0,preserveUnrepresentedText:!0}).filter(function(e){var r=t(e.node.textContent);return!Vt(e.node)&&!s.some(function(n){return t(n.text)===r&&(n.sourceNode.contains(e.node)||e.node.contains(n.sourceNode))})&&!c.some(function(t){return r&&t.card.contains(e.node)&&-1!==t.text.indexOf(r)})});return v.some(function(e){return!/^#{1,6}\s/.test(e.markdown)})?(s.sort(function(e,t){var r=e.sourceNode.compareDocumentPosition(t.sourceNode);return r&Node.DOCUMENT_POSITION_FOLLOWING?-1:r&Node.DOCUMENT_POSITION_PRECEDING?1:0}),{items:s,markdown:Da({regions:[{node:o,label:"",cards:s}]},v)}):null}(n,r);if(d&&(u=d.markdown),t(u).length<180)return null;var m=Ne({title:o,excerpt:e&&e.excerpt,siteName:e&&e.siteName||location.hostname,markdown:u,textContent:t(u)});return m.listSourceNode=n.root,m.listSourceItems=d?d.items:n.items,n.provisional&&(m.provisionalPortal=!0),m}function bc(e,r){if(!Ut((r=r||{}).hostPattern))return null;var n=function(e){for(var t=e.bodySelectors||[],r=0;r<t.length;r+=1){var n=document.querySelector(t[r]);if(n)return n}if(!e.sportParagraphFallback)return null;var o=document.querySelectorAll("article p.ft-text");if(!o.length)return null;var i=document.createElement("div");return o.forEach(function(e){i.appendChild(Zt(e,document))}),i}(r);return n&&n.querySelector("p, figure, blockquote")?(xr(n,e,{minBodyTextLength:r.publicMinTextLength||1200,minParagraphCount:3,paragraphMinLength:80,hardPaywallPattern:/(?:para seguir leyendo|contin[uú]a leyendo|lee este art[ií]culo completo|solo para suscriptores|contenido exclusivo para suscriptores)/i,removalSelectors:ir.concat(["[data-piano-offer]"])}),ar(e,gr(document.querySelector((r.leadSelectors||[".ue-c-article__standfirst",".ue-c-article__summary",".article__summary",".article-intro",".summary"]).join(", ")),n),{title:g(r.titleSelectors||["h1.ue-c-article__title","h1.article-title","h1"]),byline:g(r.bylineSelectors||[".ue-c-article__byline",".ue-c-article__author",".article-author","[rel='author']"])||e.byline,minTextLength:r.minTextLength||250,cloneRoot:!1,rewriteRoot:function(e){rr(e,function(e){return[".ue-c-article__share",".ue-c-social-share",".sharebar","[class*='share' i]",".ue-c-ad","[class*='advert' i]","[aria-roledescription='Publicidad']",".ue-c-article__comments","[class*='comment' i]",".ue-c-article__related","[class*='related' i]","[class*='recommend' i]",".newsletter","[class*='newsletter' i]"].concat(ir,e.extraRemovalSelectors||[])}(r).join(", ")),function(e){e.querySelectorAll("p, div, span, section, aside").forEach(function(e){var r=t(e.textContent||"");r.length>280||/^(suscr[ií]bete|suscr[ií]bete aqu[ií]|contenido exclusivo|solo para suscriptores|inicia sesi[oó]n|hazte premium|premium|publicidad)$/i.test(r)&&e.remove()})}(e),"function"==typeof r.rewriteRoot&&r.rewriteRoot(e)}})):null}function vc(e,t,r){return!0===e||!1!==e&&("function"==typeof e?e(t):Ut(e,r))}function wc(e,t){for(var r=e&&e.host||location.hostname||"",n=0;n<hostAwareProfiles.length;n+=1){var o=hostAwareProfiles[n];if(!0!==o.condition&&vc(o.condition,e,r)){var i=o.fn(e,t);if(i)return i}}for(var a=0;a<hostAwareProfiles.length;a+=1){var l=hostAwareProfiles[a];if(!0===l.condition&&vc(l.condition,e,r)){var s=l.fn(e,t);if(s)return s}}return null}function Ac(e){var r=Dr(e);if(!Ut(/(^|\.)pinterest\.com$/)&&!/pinterest/i.test(r))return null;if(!/^\/search\//.test(location.pathname)&&!Pe("q")&&!/showing more search results for/i.test(document.body&&document.body.textContent))return null;var n=t(Pe("q")),o={},i=[];return document.querySelectorAll("a[href*='/pin/']").forEach(function(e){var r=e.getAttribute("href")||"",n=a(r),l=t(e.getAttribute("aria-label")||e.textContent);if(!l){var s=e.querySelector("img[alt]");l=t(s&&s.getAttribute("alt"))}var c=n||"unlinked:"+l.toLowerCase()+"|href:"+r;!l||l.length<12||o[c]||/^(log in|sign up|explore|search|filters|you are signed out)$/i.test(l)||(o[c]=!0,i.push({text:l,url:n}))}),i.length>=4&&Wo(i)>=4?Ne({title:n?"Pinterest results for "+n:e.title||document.title,excerpt:e.excerpt,siteName:e.siteName||"Pinterest",items:i}):e.excerpt?je({title:n?"Pinterest results for "+n:e.title||document.title,description:e.excerpt,details:["Access: Pinterest signed-out shell"],siteName:e.siteName||"Pinterest",contentType:"article"}):null}function Sc(e,n){var o=Dr(e);if(!Ut(/(^|\.)tiktok\.com$/)&&!/tiktok/i.test(o))return null;var i=t(n||""),a=g(["main h1","h1"]),l=g(["main h2","h2"]),s=r((location.pathname||"").replace(/^\/tag\//,"").split("/")[0]||"").replace(/[-_]+/g," ");if(s=t(s),/^\/tag\//.test(location.pathname)||a||l){var c=a||(s?"#"+s:t(e.title||document.title)),u=e.excerpt;u&&!/make your day/i.test(u)||(u="This TikTok page is only partially available, but the visible tag or page summary can still be extracted.");var d=[];return l&&l!==c&&d.push(l),/drag the slider to fit the puzzle|log in/i.test(i)&&d.push("Access notice: TikTok login or verification required"),je({title:c,description:u,details:d,siteName:e.siteName||"TikTok",contentType:"article"})}return/drag the slider to fit the puzzle|slide to verify/i.test(i)?je({title:t(e.title||document.title)||"TikTok verification required",description:e.excerpt||"This TikTok page is presenting a slider verification challenge before the original content is available.",details:["Gate: slider verification"],siteName:e.siteName||"TikTok",contentType:"article"}):null}function xc(e,r){var n=Dr(e);if(!Ut(/(^|\.)ebay\./)&&!/ebay/i.test(n))return null;if(!/\/sch\//.test(location.pathname)&&!Pe("_nkw")&&!/for sale\s*\|\s*ebay/i.test(n))return null;var o={},i=[];return document.querySelectorAll("a.s-item__link[href*='/itm/'], li.s-item a[href*='/itm/']").forEach(function(e){var r=e.getAttribute("href")||"",n=a(r),l=t(e.textContent||e.querySelector("img[alt]")&&e.querySelector("img[alt]").getAttribute("alt")),s=Gl(e.closest("li.s-item, .srp-results li")||e.parentElement,l),c=n||"unlinked:"+l.toLowerCase()+"|href:"+r;!l||l.length<8||o[c]||(o[c]=!0,i.push({text:l,url:n,detail:s}))}),i.length>=4&&Wo(i)>=4?Ne({title:e.title||document.title,excerpt:e.excerpt,siteName:e.siteName||"eBay",items:i}):e.excerpt||/cookie/i.test(r||"")?je({title:e.title||document.title,description:e.excerpt||"This eBay page is showing a cookie or privacy prompt before full results are available.",details:["Access notice: eBay cookie or privacy prompt"],siteName:e.siteName||"eBay",contentType:"article"}):null}function kc(e){if(!Ut(/(^|\.)amazon\./))return null;if("/s"!==location.pathname&&!Pe("k"))return null;var r={},n=[];return document.querySelectorAll("[data-component-type='s-search-result'], .s-result-item[data-asin]").forEach(function(e){var o=e.querySelector("h2 a[href], a.a-link-normal.s-no-outline[href]"),i=e.querySelector("h2 span, h2 a span"),l=t(i?i.textContent:o&&o.textContent),s=o&&o.getAttribute("href")||"",c=a(s),u=e.querySelector(".a-price .a-offscreen"),d=t(u&&u.textContent),m=e.querySelector("[aria-label*='out of 5 stars'], .a-icon-alt"),p=t(m&&(m.getAttribute("aria-label")||m.textContent)),f=e.querySelector("a[href*='#customerReviews'], .a-size-small .a-link-normal"),h=[d,p,t(f&&f.textContent)].filter(Boolean).join(" - "),g=c||"unlinked:"+l.toLowerCase()+"|href:"+s;!l||l.length<8||r[g]||(r[g]=!0,n.push({text:l,url:c,detail:h}))}),n.length<3||Wo(n)<3?null:Re(e,{title:e.title||document.title,excerpt:n[0].text,items:n,hostAware:!0})}function Cc(e){if(!Ut(/(^|\.)amazon\./))return null;if(!/(\/dp\/|\/gp\/product\/)/.test(location.pathname))return null;var r=M(["Product","Book"]),n=g(["#productTitle","#title span","#ebooksProductTitle"])||O(r&&r.name)||e.title,o=O(r&&r.description)||e.excerpt||g(["#bookDescription_feature_div .a-expander-content","#bookDescription_feature_div .a-expander-partial-collapse-content","#productDescription p","#productDescription"]),i=g(["#bylineInfo",".author a","#brand"]),a=A(["#feature-bullets li span","#detailBullets_feature_div li span.a-list-item","#productOverview_feature_div td"]).filter(function(e){return e.length>=12&&e!==n&&!/^see more$/i.test(e)}),l=[],s=r&&r.offers;Array.isArray(s)&&(s=s[0]);var c=s&&s.price?t(s.price+(s.priceCurrency?" "+s.priceCurrency:"")):null;if(c&&l.push("Price: "+c),s&&s.availability&&l.push("Availability: "+m(s.availability)),r&&r.aggregateRating&&r.aggregateRating.ratingValue){var u=t(r.aggregateRating.ratingValue+"/5"),d=r.aggregateRating.reviewCount||r.aggregateRating.ratingCount;l.push("Rating: "+u+(d?" from "+d+" reviews":""))}return n&&o?je({title:t(n).replace(/: Amazon.*$/i,""),byline:i,description:o,details:l,highlights:a,siteName:e.siteName||location.hostname}):null}function qc(e){var r=Dr(e);if(!Ut(/(^|\.)booking\.com$/)&&!/booking\.com/i.test(r))return null;if(location.pathname&&"/"!==location.pathname)return null;var n=g(["main h1","h1"])||t((e.title||document.title).replace(/^Booking\.com\s*[|:-]\s*/i,"")),o=e.excerpt,i=A(["main h2"]).filter(function(e){return e.length>=5&&!/^(offers?)$/i.test(e)}),l={},s=[];document.querySelectorAll("main a[href*='/searchresults.html'], main a[href*='/hotel/'], main a[href*='/apartments/'], main a[href*='/resorts/'], main a[href*='/villas/'], main a[href*='/homes/']").forEach(function(e){var r=t(e.textContent),n=e.getAttribute("href")||"",o=a(n),i=o||"unlinked:"+r.toLowerCase()+"|href:"+n;!r||r.length<3||r.length>80||l[i]||/^(learn more|search|sign in|register|list your property)$/i.test(r)||(l[i]=!0,s.push({text:r,url:o}))});var c=s.length>=3&&Wo(s)>=3;if(!n&&!i.length&&!c)return null;var u=[];n&&u.push("# "+n),o&&u.push(o),i.length&&u.push(i.map(function(e){return"- "+e}).join("\n")),c&&u.push(_e(s));var d=u.filter(Boolean).join("\n\n").trim();return Re(e,{title:n||e.title,excerpt:o,siteName:e.siteName||"Booking.com",markdown:d,textContent:t(d),items:c?s:null,contentType:c?"list":"article"})}function Ec(e){var r=Dr(e);return/(^|\b)ft\.com\b|financial times/i.test(r)?location.pathname&&"/"!==location.pathname?null:Zl(e,{linkSelector:"main a[href*='/content/'], main a[href*='/stream/']",cardSelector:"article, section, .story-group__article, .story-group-slice, .o-teaser",minItems:4,minTitleLength:18,maxTitleLength:180,titleBuilder:function(e){return t(e.textContent)},transformTitle:function(e){return e.replace(/^opinion content\.?\s*/i,"")},rejectTitle:/^(top stories|news|opinion|companies|markets news|video|life & arts|spotlight|most read|must-reads you missed|more opinion|more companies|more europe news|more markets news|more technology)$/i,siteName:location.hostname,defaultTitle:""}):null}function Tc(e){var t=Dr(e);return Ut(/(^|\.)economist\.com$/)||/economist/i.test(t)?location.pathname&&"/"!==location.pathname?null:Zl(e,{linkSelector:"main a[href]",cardSelector:"article, section, li, div",minItems:4,minTitleLength:18,maxTitleLength:180,acceptLink:function(e){return/(\/\d{4}\/\d{2}\/\d{2}\/|\/interactive\/)/.test(e)},rejectTitle:/^(subscribe|log in|the economist pro|weekly edition|current topics|world|business & economics|opinion|in depth|culture, history & society|our a-to-zs|featured story)$/i,siteName:"The Economist",defaultTitle:""}):null}function _c(e){var t=Dr(e);return Ut(/(^|\.)bloomberg\.com$/)||/bloomberg/i.test(t)?/(\/news\/|\/opinion\/|\/features\/|\/graphics\/)/.test(location.pathname)?null:Zl(e,{linkSelector:"a[href*='/news/articles/'], a[href*='/news/features/'], a[href*='/opinion/articles/'], a[href*='/features/'], a[href*='/graphics/'], a[href*='/news/newsletters/']",cardSelector:"article, section, div",minItems:4,minTitleLength:18,maxTitleLength:220,transformTitle:function(e){return e.replace(/^AP Photo\s*/i,"").replace(/^Opinion\s*/i,"")},rejectTitle:/^(bloomberg opinion|bloomberg businessweek|newsletter:|watch)$/i,siteName:"Bloomberg",defaultTitle:""}):null}window.hostAwareProfiles=window.hostAwareProfiles||[],window.registerHostAwareProfile=function(e,t){hostAwareProfiles.push({condition:e,fn:t})};function Lc(e){for(var t=0;t<e.length;t+=1){var r=document.querySelector(e[t]);if(r)return r}return null}function jc(e){var r=(e=e||{}).metadata||{},n=e.abstractRoot||null,o=[];if(n&&o.push(n),e.bodyRoots?o=o.concat(e.bodyRoots.filter(Boolean)):e.bodyRoot&&o.push(e.bodyRoot),!o.length&&!e.details)return null;var i=function(e,r){var n="";if(e.title)n=e.title;else if(e.titleNode)n=e.titleNode.getAttribute&&e.titleNode.getAttribute("content")||e.titleNode.textContent||"";else if(e.titleSelectors)for(var o=0;o<e.titleSelectors.length;o+=1){var i=document.querySelector(e.titleSelectors[o]);if(i&&(n=t(n=i.getAttribute&&i.getAttribute("content")||i.textContent||"")))break}return n=t(n||r.title||document.title||""),e.titleCleanup&&(n=n.replace(e.titleCleanup,"")),t(n)}(e,r),a=document.createElement("article");if(i){var l=document.createElement("h1");l.textContent=i,a.appendChild(l)}if(o.forEach(function(t){var r=function(e,t){if(!e)return null;var r=tr(e),n="#articleDenialBlock, #denialBlockWrapper, #references, #bibliography, #keywords, section[property='keywords'], [id*='supplementary' i], [class*='supplementary' i], .articleMetrics_count, .articleMetrics, .metrics, .references, .recommended, .recommendations, .citation-tools, .purchase, .access-options, .toolbar-metric__menu-section, .article-tools, .related, .figure-inline-download, .carousel-item, [role='doc-bibliography'], [class*='metric' i], [class*='metrics' i], [class*='recommend' i], [class*='related' i], [class*='citation' i], [class*='reference' i], [class*='collateral' i], [class*='share' i], [class*='purchase' i], [class*='institution' i], aside, nav, form, button, input, footer, script, style, noscript, template, iframe";return t&&(n+=", "+t),r.querySelectorAll(n).forEach(function(e){e.remove()}),r.querySelectorAll("a[href*='/action/doSearch']").forEach(function(e){(e.closest("li, [role='listitem']")||e).remove()}),nr(r),r}(t,e.extraNoiseSelector);r&&a.appendChild(r)}),e.details&&e.details.length){var s=document.createElement("ul");e.details.forEach(function(e){var t=document.createElement("li");t.textContent=e,s.appendChild(t)}),a.appendChild(s)}nr(a);var c=mn(Jn(a.innerHTML));e.markdownFallback&&t(c).length<.2*t(a.textContent||"").length&&(c=e.markdownFallback());var u=t(c);if(u.length<(e.minTextLength||300))return null;var d=t(n&&n.textContent||"");return{title:i||r.title,byline:r.byline,excerpt:(e.excerpt||d).slice(0,280)||r.excerpt,siteName:e.siteName||r.siteName,publishedTime:r.publishedTime,html:a.innerHTML,markdown:c,textContent:u,readerMode:!1,contentType:"article",hostAware:!0}}function Pc(e,r,n){var o=[document.title,e&&e.title,e&&e.siteName,document.body&&document.body.textContent];return r&&r.length&&o.splice(3,0,g(r)),t(o.join(" ")).slice(0,n||2e4)}function $c(e){return Lc(e||[])}function Nc(e,r){if(r.signalSelectors&&!Lc(r.signalSelectors))return null;var n=$c(r.abstractSelectors),o=$c(r.bodySelectors);if(!o&&r.fallbackBodyRoot&&(o=r.fallbackBodyRoot()),!n||!o)return null;if(r.signature){if(!r.signature(e))return null}else if(r.signaturePattern){var i=Pc(e,r.signatureSelectors,r.signatureMaxLength);if(!(r.signaturePattern.test(i)||r.allowCitationDoiSignature&&document.querySelector("meta[name='citation_doi']")))return null}var a=t(n.textContent||""),l=t(o.textContent||"");return a.length<(r.minAbstractTextLength||80)||l.length<(r.minBodyTextLength||600)||r.rejectBodyPattern&&r.rejectBodyPattern.test(l)?null:jc({metadata:e,abstractRoot:o.contains&&o.contains(n)?null:n,bodyRoot:o,excerpt:r.excerpt?r.excerpt(a):a,titleSelectors:r.titleSelectors,titleCleanup:r.titleCleanup,siteName:r.siteName?r.siteName(e):void 0,minTextLength:r.minTextLength||700})}var Rc={highwire:{abstractSelectors:["#abstract[role='doc-abstract']","section[role='doc-abstract']#abstract","section[property='abstract']"],bodySelectors:["#bodymatter[property='articleBody']","section[property='articleBody'][typeof='Text']"],signatureSelectors:["meta[name='citation_publisher']","meta[name='citation_journal_title']","meta[property='og:site_name']"],signaturePattern:/\b(PNAS|Proceedings of the National Academy|HighWire|citation_doi)\b/i,allowCitationDoiSignature:!0,minBodyTextLength:500,titleSelectors:[".citation__title",".article-header h1","h1[property='name']","h1","meta[name='citation_title']"],titleCleanup:/\s*\|\s*PNAS\s*$/i,minTextLength:600},elsevier:{abstractSelectors:["#abstracts[data-extent='frontmatter']"],bodySelectors:["#bodymatter[property='articleBody']","section[property='articleBody'][data-extent='bodymatter']"],signature:function(e){var t=document.getElementById("build-style-article");return t&&/\/products\/marlin\//i.test(t.getAttribute("href")||"")||document.querySelector("meta[name=citation_pii], meta[name=citation_doi]")||/\bElsevier\b|ScienceDirect|Cell Press/i.test(Pc(e))},minAbstractTextLength:80,minBodyTextLength:1,rejectBodyPattern:/get full text access\s+log in,? subscribe or purchase/i,titleSelectors:["h1","header h1",".core-container h1"],excerpt:function(e){return g(["#author-abstract","section[property='abstract']"])||e},siteName:function(e){return e.siteName||"Elsevier"},minTextLength:300},generic:{signalSelectors:["meta[name='citation_doi']","meta[name='citation_journal_title']","meta[name='citation_title']","meta[name='dc.Identifier'][content*='doi' i]","section[property='abstract']","[role='doc-abstract']",".art-abstract",".html-abstract","[property='articleBody']",".html-body","#bodymatter"],abstractSelectors:["section[property='abstract']","[role='doc-abstract']","#abstract[role='doc-abstract']",".art-abstract",".html-abstract",".article__abstract",".article-abstract",".abstractSection",".NLM_abstract","#abstract",".abstract"],bodySelectors:["#bodymatter[property='articleBody']","#bodymatter","section[property='articleBody']","[property='articleBody']","#html-body",".html-body",".art-body",".article-content .html-body","article[typeof*='ScholarlyArticle' i]","article[class*='article' i]",".article__body",".article-body",".c-article-body",".ArticleBody","main article"],fallbackBodyRoot:function(){var e=Array.prototype.filter.call(document.querySelectorAll("section[id^='sec'], section[id^='Sec'], .section"),function(e){return t(e.textContent||"").length>=120});return e.length<2?null:e.reduce(function(e,r){var n=t(r.textContent||"").length;return!e||n>e.textLength?{node:r.parentNode||r,textLength:n}:e},null).node},rejectBodyPattern:/get full text access\s+log in,? subscribe or purchase/i,titleSelectors:["meta[name='citation_title']","h1[property='name']",".citation__title",".article-header h1","article h1","h1"],minTextLength:700}};function Mc(e){var r=document.querySelector(".article_abstract, .abstractSection, .article__abstract, .NLM_abstract, #abstract, section[property='abstract'], [property='abstract']");if(!r)return null;var n=t(r.textContent||"");if(n.length<120)return null;var o=t([document.title,e&&e.title,e&&e.siteName,g(["meta[name='citation_publisher']","meta[name='citation_journal_title']"]),document.body&&document.body.textContent].join(" ")).slice(0,16e3);return/\b(acs publications|american chemical society|journal of chemical education)\b/i.test(o)?jc({metadata:e,abstractRoot:r,titleSelectors:[".article_header-title",".citation__title","h1[property='name']","h1"],titleCleanup:/\s*-\s*ACS Publications\s*$/i,excerpt:n,minTextLength:180}):null}function Bc(e){function r(e){var r=Array.prototype.reduce.call(e.querySelectorAll(".article-content .article-text"),function(e,t){var r=t.querySelectorAll(".section.toc-section a[data-toc^='s']").length;return!e||r>e.sections?{node:t,sections:r}:e},null),n=r&&r.node;return n?{abstractNode:n.querySelector(".abstract.toc-section, .abstract"),bodySections:Array.prototype.filter.call(n.querySelectorAll(".section.toc-section"),function(e){var r=e.querySelector("a[data-toc]"),n=r&&r.getAttribute("data-toc")||"",o=t(e.textContent||"");return/^(?:s|sec)\d+$/i.test(n)&&o.length>=80})}:null}var n=r(document);if(!n)return null;if(n.bodySections.length<3){var o=Di(),i=document.createElement("div");i.innerHTML=o&&o.html||"";var a=r(i);a&&a.bodySections.length>n.bodySections.length&&(n=a)}if(!n.abstractNode||n.bodySections.length<2)return null;var l=n.abstractNode,s=n.bodySections;if(!(document.querySelector("meta[name='citation_doi'], meta[name='citation_journal_title']")||/\b(open access|peer-reviewed|research article|article info)\b/i.test(t(document.body&&document.body.textContent||"").slice(0,12e3))))return null;var c=g([".article-header h1","h1","meta[name='citation_title']"])||e.title||document.title;return c=t(c||"").replace(/\s*\|\s*PLOS\s+\w+\s*$/i,""),jc({metadata:e,abstractRoot:l,bodyRoots:s,title:c,markdownFallback:function(){var e=c?["# "+c]:[];return[l].concat(s).forEach(function(r){r.querySelectorAll("h2, h3, h4, p, figcaption").forEach(function(r){var n=t(r.textContent||"");n&&(/^H2$/i.test(r.tagName)?e.push("","## "+n):/^H3$/i.test(r.tagName)?e.push("","### "+n):/^H4$/i.test(r.tagName)?e.push("","#### "+n):e.push("",n))})}),mn(e.join("\n").trim())},minTextLength:300})}function Oc(e){return Nc(e,Rc.highwire)}function zc(e){return Nc(e,Rc.elsevier)}function Ic(e){var r=document.querySelector("xpl-document-abstract, .document-abstract");if(!r)return null;var n=t([document.title,e&&e.title,e&&e.siteName,document.querySelector("meta[name='citation_doi']")&&document.querySelector("meta[name='citation_doi']").getAttribute("content"),document.body&&document.body.textContent].join(" ")).slice(0,2e4);if(!/\bIEEE\s+Xplore\b|\bieeexplore\.ieee\.org\b|\bIEEE Conference Publication\b/i.test(n))return null;var o=Array.prototype.filter.call(r.querySelectorAll(".abstract-text-content, [class*='abstract-text' i], [property='abstract']"),function(e){return t(e.textContent||"").length>=80});if(!o.length)return null;var i=o.reduce(function(e,r){var n=t(r.textContent||"");return!e||n.length>e.text.length?{node:r,text:n}:e},null);if(!i||i.text.length<160)return null;var a=t(e.title||g(["meta[name='citation_title']","h1"]));a=a.replace(/\s*\|\s*IEEE.*$/i,"");var l=document.createElement("section"),s=document.createElement("h2"),c=document.createElement("p");s.textContent="Abstract",c.textContent=i.text.replace(/^Abstract:\s*/i,""),l.appendChild(s),l.appendChild(c);var u=[];return A([".stats-document-abstract-publishedIn",".doc-abstract-confdate",".doc-abstract-pubdate",".doc-abstract-doi",".u-pb-1"],8).forEach(function(e){var r=t(e).replace(/\s*Show More\s*$/i,"");!r||r.length>220||/^(abstract|metadata|abstract:)/i.test(r)||-1===u.indexOf(r)&&u.push(r)}),jc({metadata:e,abstractRoot:l,title:a,excerpt:i.text,details:u,siteName:e.siteName||"IEEE Xplore",minTextLength:220})}function Hc(e){var r=document.querySelector("blockquote.abstract"),n=Ut(/(^|\.)arxiv\.org$/)&&/^\/abs\//.test(location.pathname||"");if(!r||!n)return null;var o=g(["h1.title","h1.titlemath","main h1","h1"])||e.title||document.title;o=t(o).replace(/^Title:\s*/i,"");var i=g([".authors"]);i=t(i||"").replace(/^Authors?:\s*/i,"");var a=t(r.textContent||"").replace(/^Abstract:\s*/i,"");if(!o||!a)return null;var l=[];A([".dateline",".metatable .tablecell",".metatable td",".metatable dd"],8).forEach(function(e){/^(subjects?|cited by|references?|related|download|view pdf)$/i.test(e)||l.push(e)});var s=["# "+o,[i?"- Author: "+i:null].concat(l.map(function(e){return"- "+e})).filter(Boolean).join("\n"),a].filter(Boolean).join("\n\n").trim(),c=document.createElement("article"),u=document.createElement("h1"),d=document.createElement("p");return u.textContent=o,d.textContent=a,c.appendChild(u),c.appendChild(d),{title:o,byline:i||e.byline,excerpt:a,siteName:e.siteName||"arXiv",publishedTime:e.publishedTime,html:c.outerHTML,markdown:s,textContent:t(s),readerMode:!1,contentType:"article",hostAware:!0}}function Fc(e){return Nc(e,Rc.generic)}function Dc(e,r,n){var o=(n||[]).map(function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+"\\s*:?"}).join("|"),i=new RegExp(r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+":\\s*([\\s\\S]*?)(?="+(o||"$^")+"|$)","i"),a=e.match(i);return a?t(a[1]).replace(/\s+Search on .*$/i,""):""}function Uc(e){if(!function(e){if(!/^\/p\//i.test(location.pathname||""))return!1;if(!document.querySelector(".available-content .body.markup, .post-content .body.markup, article.post .body.markup"))return!1;var r=t([e&&e.title,e&&e.siteName,document.title,g([".post-title","h1.post-title","article.post h1"]),g(["meta[property='og:image']","meta[name='twitter:image']"],"content")].join(" "));return/\bsubstack\b|substackcdn\.com|substack-post-media/i.test(r)||!!document.querySelector("article.newsletter-post.post, .post-header .post-title")}(e))return null;var r=document.querySelector(".available-content .body.markup")||document.querySelector(".post-content .body.markup")||document.querySelector("article.post .body.markup")||document.querySelector(".available-content")||document.querySelector(".post-content");return r?ar(e,r,{title:g([".post-title","h1.post-title","article.post h1","h1"])||e.title,byline:g([".byline-names",".post-meta .profile-hover-card-target",".post-header a[href*='/profile/']"])||e.byline,minTextLength:250,rewriteRoot:function(e){e.querySelectorAll(".subscription-widget-wrap, .subscribe-widget, .paywall, .comment-list, [class*='comment'], [class*='subscribe'], [role='dialog']").forEach(function(e){e.remove()})}}):null}function Wc(e,r){var n=t(e.title||document.title||r||"");return t(n=(n=n.replace(/\s*[|·-]\s*(PyPI|RubyGems\.org|npm).*$/i,"")).replace(/\s+\|\s+RubyGems\.org\s+\|.*$/i,""))||r}function Gc(e){var r,n,o=location.hostname||"",i=function(){var e=(location.pathname||"").split("/").filter(Boolean);return e.length<2?null:"project"===e[0]||"gems"===e[0]||"package"===e[0]?e[1]:null}();if(!i)return null;if(/(^|\.)pypi\.org$/i.test(o)&&/^\/project\/[^/]+\/?$/i.test(location.pathname||""))r=["#description .project-description","#description",".project-description"],n="PyPI";else if(/(^|\.)rubygems\.org$/i.test(o)&&/^\/gems\/[^/]+\/?$/i.test(location.pathname||""))r=["main","#markup.gem__desc",".gem__desc"],n="RubyGems.org";else{if(!/(^|\.)npmjs\.com$/i.test(o)||!/^\/package\/[^/]+\/?$/i.test(location.pathname||""))return null;r=["#readme","#tabpanel-readme article","[aria-labelledby='package-tab-readme'] article"],n="npm"}for(var a=0;a<r.length;a+=1){var l=document.querySelector(r[a]),s=l.querySelector("h1, h2"),c=t(s&&s.textContent),u=ar(e,l,{title:c&&0===c.toLowerCase().indexOf(i.toLowerCase())?c:Wc(e,i),minTextLength:80,excerpt:e.excerpt,siteName:e.siteName||n,extra:{packagePage:!0},rewriteRoot:function(e){Array.prototype.slice.call(e.querySelectorAll("script, style, noscript, svg, .sr-only")).forEach(function(e){e.remove()})}});if(u)return u}return null}function Zc(e){if(!e)return!1;if(e.hidden||"true"===e.getAttribute("aria-hidden"))return!1;if(Vt(e))return!1;var t=window.getComputedStyle?window.getComputedStyle(e):null;return!(t&&("hidden"===t.visibility||"collapse"===t.visibility))}function Kc(){var e={},r=[];return Array.prototype.slice.call(document.querySelectorAll(".component-container")).forEach(function(n){if(Zc(n)){var o=et(n,[".name","[data-component-name]","h3","h4"]);if(o&&!/^visit\s+/i.test(o)){var i=function(e){var r=t((e.querySelector("[data-component-status]")||e).getAttribute("data-component-status")||"").replace(/_/g," ");if(r||(r=et(e,[".component-status",".status-msg",".status-icon-button"])),!r){var n=e.querySelector("[aria-label][class*='status'], [data-original-title][class*='status']");r=t(n&&(n.getAttribute("aria-label")||n.getAttribute("data-original-title"))||"")}return r}(n),a=et(n,["[id^='uptime-percent-']",".legend-item-uptime-value"]),l=n.querySelector("[data-original-title], [aria-label^='More information']"),s=t(l&&l.getAttribute("data-original-title")||""),c=o.toLowerCase();if(!e[c]){e[c]=!0;var u=o;i&&(u+=" - "+i),a&&!/^(% uptime|uptime)$/i.test(a)&&(u+=" ("+a.replace(/\s*%\s*uptime$/i,"% uptime")+")"),s&&s.toLowerCase()!==o.toLowerCase()&&(u+=" - "+s),r.push(u)}}}}),r}function Vc(e){if(!function(e){if(document.body&&/\bstatus\b/.test(document.body.className||"")&&document.querySelector(".components-section, .component-container, .incident-container"))return!0;if(document.querySelector("[data-statuspage-id], .components-section, #components, .incidents, .scheduled-maintenance"))return!0;var r=t([e&&e.siteName,g(["meta[property='og:site_name']"],"content"),g([".powered-by a","a[href*='atlassian.com/software/statuspage']"]),document.title].join(" "));return/statuspage/i.test(r)&&!!document.querySelector(".layout-content.status, .components-statuses, .components-container")}(e))return null;var r=g([".status-header h1","h1"])||e.title||document.title||"Status Page",n=g([".page-status .status",".page-status",".status.font-large",".status-description"]),o=g([".text-section","meta[name='description']"],"content")||e.excerpt,i=Kc(),a=function(){var e=[];return Array.prototype.slice.call(document.querySelectorAll(".incident-container, .scheduled-maintenance-container")).forEach(function(t){if(Zc(t)){var r=et(t,[".incident-title a",".incident-title","a.whitespace-pre-wrap","h3","h4"]);if(r){var n=["- "+r];Array.prototype.slice.call(t.querySelectorAll(".update")).forEach(function(e){var t=et(e,["strong"]),r=et(e,[".whitespace-pre-wrap","p"]),o=et(e,["small","time"]),i=[];t&&i.push(t),r&&i.push(r),o&&i.push(o),i.length&&n.push(" - "+i.join(" - "))}),e.push(n.join("\n"))}}}),e}();if(!n&&0===i.length&&0===a.length)return null;var l=["# "+r];o&&o.toLowerCase()!==r.toLowerCase()&&l.push(o),n&&l.push("- Overall status: "+n),i.length&&l.push("## Components\n\n"+i.map(function(e){return"- "+e}).join("\n")),a.length&&l.push("## Recent Incidents\n\n"+a.join("\n"));var s=mn(l.filter(Boolean).join("\n\n").trim()),c=t(s);return c.length<40?null:Re(e,{title:r,excerpt:n||i[0]||a[0]||e.excerpt,html:(document.querySelector(".layout-content.status")||document.querySelector("main")||document.body||{}).innerHTML||"",markdown:s,textContent:c,contentType:"list",hostAware:!0,statusPage:!0})}function Jc(e,r,n){if(n=n||{},!r||o(r)<(n.minText||200))return null;var a=n.preserveContentNav?Zt(r,document):tr(r);n.preserveContentNav&&(a.querySelectorAll("nav.contents, nav[class*='contents' i]").forEach(function(e){var t=document.createElement("section");t.innerHTML=e.innerHTML,e.replaceWith(t)}),nr(a),a.querySelectorAll("a").forEach(function(e){var t=e.getAttribute("href");t&&e.setAttribute("href",i(t))})),n.strip&&n.strip(a);var l=Jn(a.innerHTML),s=t(l||a.textContent||"");if(s.length<(n.minText||200))return null;var c=t(((n.titleRoot||document).querySelector("h1")||{}).textContent||n.title||e.title||document.title);return c&&!Vr(l,c)&&(l="# "+c+"\n\n"+l),{title:c||e.title||document.title,byline:null,excerpt:e.excerpt||s.slice(0,280),siteName:e.siteName||location.hostname,publishedTime:e.publishedTime||null,html:a.innerHTML,markdown:l,textContent:s,readerMode:!1,contentType:n.contentType||"article",hostAware:!0,docsLike:!!n.docsLike}}function Xc(e){var t,r=e&&e.getAttribute("data-cmp-data-layer"),n="";if(!r)return"";try{t=JSON.parse(r),Object.keys(t).some(function(e){var r=t[e]||{};return!!(n=r["xdm:linkURL"]||r.linkURL||r.url||"")})}catch(e){n=""}return n}function Yc(e,r){r=r||{};var n=e.querySelector(r.headingSelector||"h2, h3, h4, [heading-text], [class*='title' i], [class*='heading' i]"),i=e.querySelector("h2 a[href], h3 a[href], h4 a[href], a[href]"),l=t(n&&n.getAttribute("heading-text")||n&&n.textContent||e.getAttribute("heading-text")||e.getAttribute("aria-label")||i&&i.textContent||""),s=e.querySelector(r.detailSelector||"[content-text], [class*='summary' i], [class*='description' i], [class*='desc' i], [class*='body' i], [class*='text' i], p"),c=t(s&&s.getAttribute("content-text")||s&&s.textContent||e.getAttribute("content-text")||""),u=function(e,t){var r=Array.prototype.slice.call(e.querySelectorAll("h2 a[href], h3 a[href], h4 a[href], a[href]")).map(function(e){return e.getAttribute("href")||""}).filter(Boolean),n=t.dataUrl&&t.dataUrl(e);n&&r.push(n);var o=r.filter(function(e){return!!a(e)})[0]||r[0]||"",i=a(o),l=a(t.fallbackUrl||location.href);return{href:o,url:o?i:l,admission:!o||!!i}}(e,r),d=Array.prototype.slice.call(e.querySelectorAll(r.childLinkSelector||"ul a[href]")).map(function(e){var r=t(e.textContent||"");return r.length<3?null:{text:r,url:a(e.getAttribute("href"))}}).filter(Boolean);return!l||l.length<3||l.length>(r.maxTitleLength||180)||r.requireDetail&&!c||r.minCardText&&!c&&o(e)<r.minCardText?null:{text:l,url:u.url,sourceHref:u.href,admission:u.admission,detail:c,childLinks:d}}function Qc(e,t){var r=(t=t||{}).cardSelector||"article, .card, [class*='card' i], [class*='teaser' i], [class*='tile' i]",n={},o=[];return Array.prototype.slice.call(e.querySelectorAll(r)).forEach(function(e){if(!t.cardFilter||t.cardFilter(e)){var r,i=Yc(e,t);i&&(r=i.text+"|"+(i.url||"unlinked:"+i.sourceHref),n[r]||(n[r]=!0,o.push(i)))}}),o}function eu(e,r,n){if(n=n||{},!r)return null;if("list"===n.contentType){var o,i=Qc(r,n),a=n.minItems||3,l=i.filter(function(e){return e.admission}).length;return i.length<a||l<a?null:(o=function(e,r,n){var o=n&&n.title;return t("function"==typeof o?o(e,r)||"":(document.querySelector("h1")||{}).textContent||o||e.title||document.title||"Items")}(e,r,n),Re(e,{title:o,excerpt:e.excerpt,items:i,html:tr(r).innerHTML,textContent:o+"\n"+_e(i)}))}return Jc(e,r,{docsLike:n.docsLike,minText:n.minText,titleRoot:n.titleRoot,title:n.title,strip:function(e){!function(e,t){var r=(t=t||{}).cardSelector||"article, .card, [class*='card' i], [class*='teaser' i]";Array.prototype.slice.call(e.querySelectorAll(r)).forEach(function(e){if(!t.cardFilter||t.cardFilter(e)){var r,n,o,i,a=Yc(e,t);if(a){if(r=document.createElement("article"),n=document.createElement(t.headingTag||"h3"),a.url&&a.url!==location.href){var l=document.createElement("a");l.setAttribute("href",a.url),l.textContent=a.text,n.appendChild(l)}else n.textContent=a.text;r.appendChild(n),a.detail&&((o=document.createElement("p")).textContent=a.detail,r.appendChild(o)),a.childLinks&&a.childLinks.length&&(i=document.createElement("ul"),a.childLinks.forEach(function(e){var t=document.createElement("li");if(e.url){var r=document.createElement("a");r.setAttribute("href",e.url),r.textContent=e.text,t.appendChild(r)}else t.textContent=e.text;i.appendChild(t)}),r.appendChild(i)),e.replaceWith(r)}}})}(e,n),rr(e,yt+", [class*='breadcrumb' i], [class*='social' i], [class*='share' i], [class*='embed' i], [class*='newsletter' i], form"),n.strip&&n.strip(e)}})}function tu(e){var t=[{rootSelector:"main [class*='card--with-subsections' i], main [class*='cards--with-subsections' i]",contentRoot:function(e){return e.closest("main")||e.closest("[class*='page-content' i]")||e},candidateFilter:function(e,t,r){return r.filter(function(e){return e.querySelector("h2, h3, h4, a[href]")&&o(e)>=60}).length>=4&&o(t)>=600},docsLike:!0,minText:500,titleRoot:document,cardSelector:"[class*='grid__item' i] > .card, [class*='grid__item' i] > [class~='card']",headingSelector:"h2, h3, h4, [class*='card__title' i]",detailSelector:"[class*='summary' i], p",requireDetail:!0,strip:function(e){e.querySelectorAll("[class*='embed' i]").forEach(function(e){e.remove()})}},{rootSelector:"main .page-document, main [class*='content-area' i], main",candidateFilter:function(e,t,r,n,i){var a=r.filter(function(e){return e.querySelector("h2, h3, a[href]")&&o(e)>=80}),l=e.querySelectorAll("[class*='block __grid' i], [class*='block heading' i]").length;return a.length>=4&&l>=2&&i>=1200&&!!e.querySelector("h1")},score:function(e,t,r,n,o){var i=e.querySelectorAll("[class*='block __grid' i], [class*='block heading' i]").length;return o+500*r.length+150*i},docsLike:!0,minText:900,titleRoot:document,cardSelector:".block.teaser, [class*='grid-block-teaser' i], [class*='grid-teaser-item' i]",headingSelector:"h2, h3, h4",detailSelector:"p",headingTag:"h2",strip:function(e){e.querySelectorAll("[class*='cookie' i]").forEach(function(e){e.remove()})}},{rootSelector:"gui-tile-list, [role='list']",candidateFilter:function(e,t,r,n){var o=e.tagName&&/-/.test(e.tagName.toLowerCase()),i=!!document.querySelector(".aem-Grid, [class*='aem-GridColumn'], [data-cmp-data-layer]");return n.length>=3&&(i||o||r.length>=4)},score:function(e,t,r,n){var o=e.tagName&&/-/.test(e.tagName.toLowerCase()),i=!!document.querySelector(".aem-Grid, [class*='aem-GridColumn'], [data-cmp-data-layer]");return 100*n.length+(o?500:0)+(i?500:0)},contentType:"list",title:function(e){return(document.querySelector("h1")||{}).textContent||e.title||document.title||"Services"},minItems:3,cardSelector:"gui-tile, [class*='tile' i], article, .card, [class*='card' i], [class*='teaser' i], [class*='tile' i]",headingSelector:"gui-tile-heading, [heading-text], [class*='tile-heading' i]",detailSelector:"gui-tile-content, [content-text], [class*='tile-content' i]",dataUrl:Xc,minCardText:20,minItems:3}],r=null;return t.forEach(function(e){(function(e){return Array.prototype.slice.call(document.querySelectorAll(e.rootSelector)).map(function(t){var r=e.contentRoot?e.contentRoot(t):t,n=Array.prototype.slice.call(t.querySelectorAll(e.cardSelector||"article, .card, [class*='card' i], [class*='teaser' i], [class*='tile' i]")),i=Qc(t,e),a=o(r||t),l=a+400*i.length;return r?e.candidateFilter&&!e.candidateFilter(t,r,n,i,a)||i.length<(e.minItems||3)||"list"===e.contentType&&i.filter(function(e){return e.admission}).length<(e.minItems||3)||e.minText&&a<e.minText?null:(e.score&&(l=e.score(t,r,n,i,a)),{root:r,config:e,score:l}):null}).filter(Boolean)})(e).forEach(function(e){(!r||e.score>r.score)&&(r=e)})}),r?eu(e,r.root,r.config):null}function ru(e){if(r=h(null,[function(){var e=document.querySelector("meta[name='Generator' i], meta[name='generator' i]");return t(e&&e.getAttribute("content"))}]).signature,!(/\bDrupal\b/i.test(r)||document.querySelector(".field--name-body, [class*='field--name-' i], [class*='node--type-' i]")||/(?:^|\s)(?:path-[\w-]+|node-[\w-]+)(?:\s|$)/i.test(document.body&&document.body.className||"")))return null;var r,n=Array.prototype.slice.call(document.querySelectorAll("article[class*='overview' i], article[class*='listing' i], .overview-inner-container, .content-main, main article, section.node--view-mode-full, .node--view-mode-full, [itemprop='articleBody'], .field--name-body, .field--name-field-paragraphs, .field--name-field-entity-block, [class*='field--name-body' i]")),i=null;n.forEach(function(e){var t=e.querySelector&&e.querySelector(".field--name-field-paragraphs");t&&o(t)>=200&&(e=t);var r=o(e),n=e.querySelectorAll(".views-element-container, [class*='views-row' i], [class*='view-component' i], [class*='tab-content' i], [class*='blocktab' i], [class*='entity-block' i], [class*='content-link' i], [class*='content-data' i], [class*='block-toggle' i], [class*='field--name-field-entity-block' i], [class*='field--name-field-key-figures' i], [class*='field--name-field-toggle' i], [class*='paragraph--type--cards' i], [class*='card-list' i], [class*='card-heading-list' i], [class*='card-headline' i], [class*='image-besides-text' i], [data-trk*='cards' i]").length,a=r+400*n;r<200||n<1&&!e.matches(".field--name-body, .field--name-field-paragraphs, [class*='field--name-body' i], [itemprop='articleBody']")||(!i||a>i.score)&&(i={root:e,score:a,componentCount:n})});var a=i&&i.root;return!a||o(a)<200?null:eu(e,a,{docsLike:i.componentCount>=2,titleRoot:document,cardSelector:"article.entity-block.content-link, .card-list article, [class*='card-headline' i], [class*='card' i] article, [class*='paragraph--type--cards' i] .card",headingSelector:"h2, h3, h4, [class*='card-headline' i], [class*='title' i]",detailSelector:"[class*='field--name-field-desc' i], [class*='field--name-field-body' i], [class*='summary' i], [class*='description' i], p",strip:function(e){rr(e,yt+", .side-navigation, [class*='side-navigation' i], [class*='language' i], [class*='breadcrumb' i], .left-column, .sharing, .add-on, [class*='search' i], article.entity-block.content-link .content-desc > a[href], form, .visually-hidden, .hidden")}})}function nu(e){return!!document.querySelector(e)}function ou(){return nu("meta[name='gitlab-meta'], .gitlab-meta, .tree-holder, .file-holder, .blob-content, .issuable, .merge-request, .commit-header")||(e=/\b(?:gitlab|gl-|application-ui)\b/i,!(!document.body||!e.test(document.body.className||"")));var e}function iu(e){var t=location.pathname.split("/").filter(Boolean);if("about:"===location.protocol)return!0;if(t.length<2)return!1;if(-1!==location.pathname.indexOf("/-/"))return!1;var r=t[2]||"";return!/^(issues?|pulls?|pull-requests?|merge[-_]requests?|commits?|branches|tags|releases|wiki|settings|src|source|downloads|actions|projects|security|pulse|graphs)$/i.test(r)&&(!(!e||"gitlab"!==e.platform)||(e&&"bitbucket"===e.platform&&/^\/projects\/[^/]+\/repos\/[^/]+\/browse(?:\/)?$/i.test(location.pathname)||2===t.length))}function au(e,r,n){var o=function(e,r){var n=t(r.title||document.title);return e.titleCleaner&&(n=t(e.titleCleaner(n))),n}(e,r),i=function(e,t){return g(e.descriptionSelectors)||t.excerpt}(e,r),a=r.siteName||e.siteName||location.hostname;if(!n)return o||i?je({title:o,description:i,siteName:a,hostAware:!0}):null;var l=tr(n);nr(l);var s=Jn(l.innerHTML).replace(/^README(?:\.[a-z0-9_-]+)?\s*/i,"").trim();return t(s)?(i&&-1===s.toLowerCase().indexOf(i.toLowerCase())&&(s=i+"\n\n"+s),o&&(s="# "+o+"\n\n"+s),{title:o||r.title,byline:r.byline,excerpt:i,siteName:a,publishedTime:r.publishedTime,html:l.innerHTML,markdown:s,textContent:t(s),hostAware:!0,readerMode:!1,contentType:"article"}):i?je({title:o,description:i,siteName:a,hostAware:!0}):null}function lu(e){var t=function(e){return h(e,[function(){return[e&&e.title,e&&e.siteName,g(["meta[name='application-name']","meta[name='generator']","meta[property='og:site_name']"],"content"),document.title,document.body&&document.body.className].join(" ")}]).signature}(e),r=!!document.querySelector(".project-home-panel, .project-information, .readme-holder, .file-holder.readme-holder, [data-testid='blob-viewer-content'] .blob-viewer[data-path][data-rich-type='markup'], [data-testid='blob-viewer-content'] .file-content.md");return/gitlab/i.test(t)&&r||ou()?{platform:"gitlab",siteName:location.hostname,readmeSelectors:["[data-testid='blob-viewer-content'] .blob-viewer[data-path='README.md'][data-rich-type='markup'] .file-content.md","[data-testid='blob-viewer-content'] .blob-viewer[data-path='README.md'] .file-content.md","[data-testid='blob-viewer-content'] .file-content.md",".blob-viewer[data-path='README.md'][data-rich-type='markup'] .file-content.md",".blob-viewer[data-path='README.md'] .file-content.md",".blob-content .file-content.md",".blob-content .js-markup-content.md",".blob-content .markdown-body",".readme-holder .md",".readme-holder .wiki",".readme-holder [data-testid='readme-content']",".file-holder.readme-holder .md",".file-holder.readme-holder .wiki"],descriptionSelectors:[".project-information .project-description",".project-home-panel .project-description",".project-home-panel p"],titleCleaner:function(e){return e.replace(/\s*[·|-]\s*GitLab.*$/i,"")}}:/^GitHub\s+-\s+[^\s/]+\/[^\s:]+/i.test(t)||document.querySelector("[data-testid='repository-container-header'], strong[itemprop='name'] a, h1 strong[itemprop='name']")||nu(".js-repo-pjax-container, [data-pjax], .repository-content, .js-repo-content .markdown-body")?{platform:"github",siteName:"GitHub",readmeSelectors:["#readme article.markdown-body","#readme [data-testid='readme-content']","#readme .markdown-body","[data-testid='readme'] article.markdown-body","[data-testid='readme'] [data-testid='readme-content']","[data-testid='readme-content']","[aria-label='README'] article.markdown-body","[aria-labelledby='readme'] article.markdown-body","article.markdown-body[itemprop='text']","article.markdown-body"],descriptionSelectors:["[data-testid='repository-description']","[itemprop='about']",".BorderGrid-cell p.f4",".repository-content .f4.my-3",".repository-meta-content"],titleCleaner:function(e){return e.replace(/^GitHub -\s*/i,"").replace(/\s*[·|-]\s*GitHub$/i,"")}}:/gitea|forgejo/i.test(t)||document.querySelector(".repository .repo-description, .repository #repo-files-table, .repository .file-view.markup.markdown, .repository .markup.markdown")||nu(".repository, .file-view, .ui.container .repository")?{platform:"gitea",readmeSelectors:[".repository #readme .markdown",".repository #readme .markup.markdown",".repository .file-view.markup.markdown",".repository .markup.markdown","#readme .markdown",".file-content.markup.markdown"],descriptionSelectors:[".repository .repo-description",".repo-description",".repository-summary .description"],titleCleaner:function(e){return e.replace(/\s*[·|-]\s*(Gitea|Forgejo|Codeberg).*$/i,"")}}:/bitbucket/i.test(t)||document.querySelector("[data-testid='repo-overview-description'], [data-testid='repository-readme'], [data-testid='readme-content']")||nu(".bitbucket-header, [data-module='repo']")?{platform:"bitbucket",siteName:"Bitbucket",readmeSelectors:["[data-testid='repository-readme'] [data-testid='readme-content']","[data-testid='readme'] [data-testid='readme-content']","[data-testid='readme-content']",".readme-content .markdown-body",".readme-content",".markdown-body"],descriptionSelectors:["[data-testid='repo-overview-description']","[data-testid='repository-description']"],titleCleaner:function(e){return e.replace(/\s*[·|-]\s*Bitbucket.*$/i,"")}}:/sourcehut|sr\.ht/i.test(t)||nu("#repo-summary, .repo-summary, .repo-nav, .repo-header, #readme")?{platform:"sourcehut",siteName:"sourcehut",readmeSelectors:["#readme article.markdown-body","#readme .markdown-body","#readme .markdown","#readme article","#readme"],descriptionSelectors:["#repo-summary p",".repo-summary p",".repo-summary",".repo-header .description"],titleCleaner:function(e){return e.replace(/\s*[·|-]\s*sourcehut.*$/i,"")}}:null}function su(e){var r=lu(e);return r&&iu(r)?au(r,e,function(e){for(var r=0;r<e.length;r+=1)for(var n=Array.prototype.slice.call(document.querySelectorAll(e[r])),o=0;o<n.length;o+=1){var i=n[o];if(i&&t(i.textContent)&&!i.closest("[data-testid='issue-body'], [data-testid='comment-body'], .js-comment-container, .timeline-comment, .comment, .issue-content, .pullrequest-description, .pull-request-description"))return i}return null}(r.readmeSelectors)):null}function cu(e){var t=new Set;return e.filter(function(e){return!!e&&(!e.permalink||!t.has(e.permalink)&&(t.add(e.permalink),!0))})}function uu(){if(!Ut(/(^|\.)github\.com$/))return null;var e=(location.pathname||"").split("/").filter(Boolean);return e.length<4||e.length>5?null:/^[\w.-]+$/.test(e[0])&&/^[\w.-]+$/.test(e[1])&&/^\d+$/.test(e[3])?-1===["issues","pull","discussions"].indexOf(e[2])||e[4]&&-1===["commits","checks","files"].indexOf(e[4])||e[4]&&"pull"!==e[2]?null:{owner:e[0],repository:e[1],community:e[0]+"/"+e[1],kind:e[2],number:e[3],surface:e[4]||null}:null}function du(e,t){return location.origin+"/"+e.owner+"/"+e.repository+"/"+e.kind+"/"+e.number+(t||"")}function mu(e){return e?e.matches("[data-testid='markdown-body'], [data-testid='comment-body'], .comment-body, .js-comment-body, .markdown-body[itemprop='text'], [itemprop='text']")?e:e.querySelector("[data-testid='markdown-body'], [data-testid='comment-body'], .comment-body, .js-comment-body, .markdown-body[itemprop='text'], [itemprop='text']"):null}function pu(e){var r=function(e){if(!e)return null;for(var r=["[data-testid='issue-body-header-author']","[data-testid='avatar-link']","[data-testid='actor-link']","a.author","[data-testid='comment-author']","a[data-hovercard-type='user']"],n=0;n<r.length;n+=1){var o=e.querySelector(r[n]);if(o&&t(o.textContent))return o}return null}(e);return t(r&&r.textContent||"").replace(/^@/,"")}function fu(e){var t=e&&e.querySelector(["a[href*='#issuecomment-']","a[href*='#discussioncomment-']","a[href*='#event-']","a[href*='#pullrequestreview-']","a[href*='#discussion_r']","[data-testid='issue-body-header-link']","a[href*='#issue-']"].join(", "));return a(t&&t.getAttribute("href"))}function hu(e){var r=e&&e.querySelector("relative-time[datetime], time[datetime]");return t(r&&(r.getAttribute("datetime")||r.textContent)||"")}function gu(e){return function(e){if(!e)return[];var r="[data-testid='markdown-body'], [data-testid='comment-body'], .comment-body, .js-comment-body, .markdown-body[itemprop='text'], [itemprop='text']",n=e.matches(r)?[e]:Array.prototype.slice.call(e.querySelectorAll(r));return n.filter(function(e,r){return!(!t(e.textContent)||Vt(e)||n.some(function(t,n){return n<r&&t.contains(e)}))})}(e).map(function(e){var t=Qt(e);return rr(t,".js-comment-actions, .timeline-comment-actions, .reaction-summary-item, [aria-label='Add reaction'], button, [role='tooltip']"),mn(Jn(t.innerHTML))}).filter(function(e){return!!t(e)}).join("\n\n")}function yu(e){var r=e&&e.querySelector("[data-testid='reaction-count'], [data-testid='vote-count']"),n=t(r&&r.textContent||"");return/^-?\d[\d,]*$/.test(n)?Number(n.replace(/,/g,"")):null}function bu(e,r){var n=gu(e),o=/\b(?:accepted answer|answer marked as accepted)\b/i.test(t(e.textContent||""))||!!e.querySelector("[data-testid='accepted-answer'], [aria-label*='accepted']"),i="pull"===r.kind&&!!e.querySelector("[id^='pullrequestreview-'], [id^='discussion_r'], a[href*='#pullrequestreview-'], a[href*='#discussion_r']"),a=o?"Accepted answer":i?"Review":n?"Comment":"Event";return n||(n=function(e){var t=Qt(e);return rr(t,"button, svg, img, [role='tooltip'], .sr-only, [data-testid*='hamburger']"),mn(Jn(t.innerHTML))}(e)),t(n)?{node:e,sourceNode:Qt(e),kind:a,author:pu(e),markdown:n,permalink:fu(e),timestamp:hu(e)}:null}function vu(e){if(!e||Vt(e)||e.disabled||"true"===e.getAttribute("aria-disabled"))return!1;var t=e.closest("[data-testid*='timeline-load-more']");return!t||!Vt(t)&&"true"!==t.getAttribute("aria-disabled")}function wu(e,t){if(!t)return null;try{var r=new URL(t,location.href),n=du(e);return r.origin!==location.origin||r.pathname!==new URL(n).pathname?null:r.searchParams.has("timeline_page")?a(r.href):null}catch(e){return null}}function Au(e,r,n){if(n)return null;var o=r.filter(function(e){return"Event"!==e.kind}).length,i=r.filter(function(e){return"Comment"===e.kind||"Accepted answer"===e.kind}).length,a=function(e){var r=e.querySelector("[data-testid='issue-comment-count'], [data-testid='discussion-comment-count'], .js-discussion .comment-count, .comment-count"),n=t(r&&r.textContent||"").match(/^(\d[\d,]*)\s+(?:comments?|replies)$/i);return n?Number(n[1].replace(/,/g,"")):null}(e);return e.querySelector("[data-testid='issue-body']")?null!=a&&a>i?null:o:null==a?o:a}function Su(e){var r=function(){var e=uu();return e&&!e.surface?e:null}();if(!r)return null;var n=document.querySelector("[data-testid='issue-viewer-container'], [data-testid='issue-viewer-issue-container'], #discussion_bucket, .js-discussion, .discussion-timeline");if(!n)return null;var o=function(e){var t=e.querySelector("[data-testid='issue-body']");if(mu(t)&&pu(t))return t;for(var r=Array.prototype.slice.call(e.querySelectorAll(".js-comment-container, .timeline-comment, [data-testid='issue-comment'], .discussion-comment")),n=0;n<r.length;n+=1)if(mu(r[n])&&pu(r[n]))return r[n];return null}(n),i=gu(o);if(!o)return null;var a=t(g(["[data-testid='issue-title']","#issue_title",".js-issue-title","main h1","h1"])||e.title||document.title),l=pu(o);if(!a||!l)return null;var s=function(e,t,r){var n=Array.prototype.slice.call(e.querySelectorAll("[data-testid^='timeline-row-border-']"));return cu((n.length?n:Array.prototype.slice.call(e.querySelectorAll([".js-comment-container",".timeline-comment","[data-testid='issue-comment']",".discussion-comment",".timeline-event",".discussion-item"].join(", ")))).filter(function(e){return e!==t&&!e.contains(t)&&!t.contains(e)}).map(function(e){return bu(e,r)}))}(n,o,r),c="pull"===r.kind?"Pull Request":"discussions"===r.kind?"Discussion":"Issue",u=fu(o)?Se("Opening",fu(o)):"Opening",d=["# "+a,"- Author: "+l,"- "+c+": "+r.community,"## "+u];i&&d.push(i);var m=function(e){var r=[];return["[data-testid='sidebar-assignees-section']","[data-testid='sidebar-labels-section']","[data-testid='sidebar-types-section']","[data-testid='sidebar-projects-section']","[data-testid='sidebar-milestones-section']","[data-testid='sidebar-relationships-section']","[data-testid='sidebar-development-section']","[data-testid='sidebar-participants-section']"].forEach(function(n){var o=e.querySelector(n)||document.querySelector(n);if(o&&!Vt(o)){var i=Qt(o);rr(i,"button, svg, img, [role='tooltip']");var a=t((i.querySelector("h2, h3, h4")||{}).textContent||"");rr(i,"h2, h3, h4");var l=mn(Jn(i.innerHTML));a&&t(l)&&r.push("### "+a+"\n\n"+l)}}),r.length?"## Metadata\n\n"+r.join("\n\n"):""}(n);m&&d.push(m),s.length&&d.push("## Timeline"),d=d.concat(function(e){var t=[];return e.forEach(function(e){var r=e.kind+(e.author?" by "+e.author:"");t.push("### "+(e.permalink?Se(r,e.permalink):r)),e.timestamp&&t.push("- Time: "+e.timestamp),t.push(e.markdown)}),t}(s));var p=function(e,r){var n=[],o=new URL(location.href),i=du(e);o.searchParams.has("timeline_page")&&n.push({label:"Main conversation",url:i}),Array.prototype.slice.call(r.querySelectorAll("a[rel~='next'][href*='timeline_page='], a[data-testid*='timeline-load-more'][href*='timeline_page='], [data-testid*='timeline-load-more'] a[href*='timeline_page=']")).forEach(function(r){var o=wu(e,r.getAttribute("href"));o&&vu(r)&&n.push({label:t(r.textContent)||"More timeline items",url:o})});var a=Array.prototype.slice.call(r.querySelectorAll("[data-testid*='timeline-load-more'] button, button[data-testid*='timeline-load-more']")).find(vu);if(a&&!n.some(function(e){return/timeline_page=/.test(e.url||"")})){var l=new URL(i);l.searchParams.set("timeline_page",String(Number(o.searchParams.get("timeline_page")||"0")+1));var s=wu(e,l.href);s&&n.push({label:"More timeline items",url:s,detail:t(a.textContent)})}var c=n.length>0;return"pull"===e.kind&&n.push({label:"Commits",url:du(e,"/commits")},{label:"Checks",url:du(e,"/checks")},{label:"Files changed",url:du(e,"/files")},{label:"Raw diff",url:du(e)+".diff"},{label:"Raw patch",url:du(e)+".patch"}),{markdown:Le("Browse this GitHub thread",n),hasContinuation:c}}(r,n);p.markdown&&d.push(p.markdown);var f=Au(n,s,p.hasContinuation),h=[Qt(o)].concat(s.map(function(e){return e.sourceNode}));return{title:a,byline:l,excerpt:i?t((mu(o)||{}).textContent||""):"",siteName:"GitHub",publishedTime:e.publishedTime,html:h.filter(Boolean).map(function(e){return e.outerHTML}).join("\n"),markdown:d.join("\n\n"),textContent:t([a,i].concat(s.map(function(e){return e.markdown})).join(" ")),hostAware:!0,readerMode:!1,contentType:"social",socialKind:"thread",platform:"GitHub",handle:l,replyCount:f,community:r.community,score:yu(o)}}function xu(e,t){if(!e)return[];var r=new Set;return Array.prototype.slice.call(e.querySelectorAll(".js-diff-load-container include-fragment[src], .js-diff-load-container[data-fragment-url], include-fragment[src*='/pull/'][src*='/files']")).map(function(e){if(Xt(e))return null;var n=a(e.getAttribute("src")||e.getAttribute("data-fragment-url"));return!n||r.has(n)?null:(r.add(n),{label:t||"Deferred diff content",url:n})}).filter(Boolean)}function ku(e,r){var n=e.querySelector(".file-info .sr-only");if(t(n&&n.textContent||""))return t(n.textContent);var o=Qt(e);return rr(o,".file-actions, button, details, svg, clipboard-copy, .diffstat, .Truncate"),t(o.textContent).replace(r,"").trim()}function Cu(e,r){var n=function(e){var r=new Set;return Array.prototype.slice.call(document.querySelectorAll(".file.js-file .file-header[data-path][data-anchor]")).map(function(n){if(Xt(n))return null;var o=t(n.getAttribute("data-path")),i=n.getAttribute("data-anchor")||"";if(!o||!i||r.has(i))return null;r.add(i);var l=new URL(du(e,"/files"));return l.hash=i,{label:o,url:a(l.href),detail:ku(n,o)}}).filter(Boolean)}(e),o=document.querySelector(".js-diff-progressive-container, [data-testid='pull-request-files']")||document.querySelector("main"),i=n.length?"":Tu(o,/(?:no files (?:were )?changed|there are no files)/i);if(!n.length&&!i)return null;var l=(location.hash||"").replace(/^#/,""),s=l?document.querySelector(".file-header[data-anchor='"+CSS.escape(l)+"']"):null;s&&Xt(s)&&(s=null);var c=s&&s.closest(".file.js-file");if(c&&Xt(c)&&(c=null),l&&!c)return null;var u,d=[],m=(u=c)&&Array.prototype.slice.call(u.querySelectorAll(".js-file-content, .blob-wrapper, table.diff-table, table, [data-testid='diff-lines'], [data-testid='diff-file-content'], .rendered-diff")).find(function(e){if(Vt(e))return!1;var r=Qt(e);return!!t(r.textContent)||!!r.querySelector("img[src], canvas, video, audio")})||null,p=s&&t(s.getAttribute("data-path")),f=c?xu(c,p+" deferred diff"):[];if(c&&m)d.push("## "+p+"\n\n"+Eu(c));else if(c&&f.length)d.push("## "+p,"Selected file body is deferred on this page; use the deferred file resource below.");else if(c)return null;i&&d.push("## Files changed\n\n"+i),d.push(Le("Files changed",n));var h=function(e){var r=new URL(du(e,"/files")).pathname;return Array.prototype.slice.call(document.querySelectorAll("a[href]")).reduce(function(e,n){try{return new URL(n.getAttribute("href"),location.href).pathname!==r?e:(t(n.textContent).match(/\d[\d,]*/g)||[]).reduce(function(e,t){return Math.max(e,Number(t.replace(/,/g,"")))},e)}catch(t){return e}},0)}(e),g=function(e,t,r){if(!t||t<=r)return[];var n=Math.min(t,3e3),o=Math.ceil(n/100);return Array.from({length:o},function(t,r){var o=r+1,i=100*r+1,a=Math.min(100*o,n);return{label:"Files API page "+o,url:"https://api.github.com/repos/"+encodeURIComponent(e.owner)+"/"+encodeURIComponent(e.repository)+"/pulls/"+e.number+"/files?per_page=100&page="+o,detail:"Files "+i+"-"+a+" of "+n}})}(e,h,n.length);if(g.length){var y=Math.min(h,3e3);d.push("GitHub rendered "+n.length+" of "+h+" changed files on this page; the public files API inventories "+y+"."),d.push(Le("Additional file inventory pages",g))}var b=function(e,t){if(t<=3e3)return[];var r=location.origin+"/"+e.owner+"/"+e.repository;return[{label:"Complete pull-request Git ref",url:r+".git",detail:"Fetch refs/pull/"+e.number+"/head and compare it with the base branch to enumerate all "+t+" changed files"},{label:"Pull-request head tree archive",url:r+"/archive/refs/pull/"+e.number+"/head.zip",detail:"Complete head tree; use the Git ref above for the full changed-file comparison"}]}(e,h);b.length&&d.push(Le("Complete file comparison",b));var v=function(){var e=new Set,r=[];return Array.prototype.slice.call(document.querySelectorAll(".file.js-file")).forEach(function(n){if(!Xt(n)){var o=n.querySelector(".file-header[data-path]"),i=t(o&&o.getAttribute("data-path")||"");xu(n,i?i+" deferred diff":"Deferred diff content").forEach(function(t){e.has(t.url)||(e.add(t.url),r.push(t))})}}),r}();v.length&&d.push(Le("Deferred file content",v)),d.push(Le("Browse this pull request",qu(e)));var w=m?c:s,A=w?Qt(w).outerHTML:n.map(function(e){var t=document.createElement("a");return t.href=e.url,t.textContent=e.label,t.outerHTML}).join("\n");return!A&&i&&(A=Qt(o).outerHTML),_u(e,r,"Files changed",d,A)}function qu(e){return[{label:"Conversation",url:du(e)},{label:"Commits",url:du(e,"/commits")},{label:"Checks",url:du(e,"/checks")},{label:"Files changed",url:du(e,"/files")},{label:"Raw diff",url:du(e)+".diff"},{label:"Raw patch",url:du(e)+".patch"}]}function Eu(e,t){if(!e)return"";var r=Qt(e);return(t||[]).forEach(function(e){rr(r,e)}),rr(r,"button, [role='tooltip'], .js-comment-actions, .timeline-comment-actions, [aria-label='Add reaction']"),mn(Jn(r.innerHTML))}function Tu(e,r){if(!e)return"";var n=Array.prototype.slice.call(e.querySelectorAll(".blankslate, [data-testid*='empty'], [data-testid*='blank'], p"));return n.push(e),Eu(n.find(function(e){return!Xt(e)&&r.test(t(e.textContent))}))}function _u(e,r,n,o,i){var a=t(g(["[data-testid='issue-title']","main h1","h1"])||r.title||document.title),l=["# "+a+" — "+n].concat(o).filter(Boolean).join("\n\n");return{title:a+" — "+n,byline:e.owner,excerpt:t(o[0]||""),siteName:"GitHub",publishedTime:r.publishedTime,html:i||"",markdown:l,textContent:t(l),hostAware:!0,readerMode:!1,contentType:"list"}}function Lu(e,r){var n=document.querySelector("[data-testid='commits-list']");if(!n)return null;var o=new Set,i=Array.prototype.slice.call(n.querySelectorAll("[data-testid='commit-row-item']")).map(function(r){if(Xt(r))return null;var n=function(e,t){var r=new URL(du(e,"/commits")).pathname+"/";return Array.prototype.slice.call(t.querySelectorAll("a[data-commit-link], [data-commit-link] a, a[href]")).find(function(e){try{return 0===new URL(e.getAttribute("href"),location.href).pathname.indexOf(r)}catch(e){return!1}})||null}(e,r),i=a(n&&n.getAttribute("href")),l=t(n&&n.textContent||"");if(!i||!l||o.has(i))return null;o.add(i);var s=function(e,t){var r=Qt(t),n=new URL(du(e,"/commits")).pathname+"/";return Array.prototype.slice.call(r.querySelectorAll("a[href]")).forEach(function(e){try{0===new URL(e.getAttribute("href"),location.href).pathname.indexOf(n)&&e.remove()}catch(t){e.remove()}}),rr(r,"button, [role='tooltip']"),mn(Jn(r.innerHTML))}(e,r);return"## "+Se(l,i)+(s?"\n\n"+s:"")}).filter(Boolean);return i.length?(i.push(Le("Browse this pull request",qu(e))),_u(e,r,"Commits",i,Qt(n).outerHTML)):null}function ju(e){var r=new Set;return Array.prototype.slice.call(document.querySelectorAll("a[href*='check_run_id=']")).map(function(n){if(Xt(n))return null;var o=function(e,t){if(!t)return null;try{var r=new URL(t.getAttribute("href"),location.href),n=new URL(du(e,"/checks"));return r.origin!==n.origin||r.pathname!==n.pathname?null:/^\d+$/.test(r.searchParams.get("check_run_id")||"")?a(r.href):null}catch(e){return null}}(e,n),i=t(n.textContent);if(!o||!i||r.has(o))return null;r.add(o);var l=n.closest("details.checks-list-item"),s=n.closest(".checks-list-item")||l,c=l&&l.querySelector("summary"),u=s&&s.querySelector("svg[aria-label]");return{label:i,url:o,detail:[t(c&&c.textContent||""),t(u&&u.getAttribute("aria-label")||"")].filter(Boolean).join(" — ")}}).filter(Boolean)}function Pu(e){var t=function(){var e=uu();return e&&"pull"===e.kind&&e.surface?e:null}();return t?"commits"===t.surface?Lu(t,e):"checks"===t.surface?function(e,t){var r=document.querySelector(".actions-grid-container, [class*='Checks-module__checksRoot']");if(!r)return null;var n=ju(e),o=new URL(location.href).searchParams.get("check_run_id")||"",i=/^\d+$/.test(o)?document.getElementById("check_run_"+o):null;i&&Xt(i)&&(i=null);var a=i&&(i.closest("section.js-selected-check-run")||i);a&&Xt(a)&&(a=null);var l=[];a&&l.push("## Selected check\n\n"+Eu(a));var s=n.length?"":Tu(r,/no checks (?:have been|were) run/i);return s&&l.push("## Checks\n\n"+s),n.length&&l.push(Le("Checks",n)),l.push(Le("Browse this pull request",qu(e))),_u(e,t,"Checks",l,Qt(a||r).outerHTML)}(t,e):"files"===t.surface?Cu(t,e):null:null}function $u(){var e=(location.pathname||"").match(/^\/(.*?)\/-\/(issues|work_items|merge_requests)\/(\d+)(?:\/(commits|pipelines|reports|diffs)(?:\/(.*))?)?\/?$/);if(!e)return null;var r=e[4]||null,n=e[5]||null;if("reports"===r&&n&&/\/$/.test(n)&&(n=n.slice(0,-1)),n&&("reports"!==r||!/^[\w.%+-]+$/.test(n)))return null;var o=e[1].replace(/^\/+|\/+$/g,""),i=t((window.gon||{}).relative_url_root||"").replace(/^\/+|\/+$/g,""),a=i?"/"+i:"",l=o;i&&0===l.indexOf(i+"/")&&(l=l.slice(i.length+1));var s=l.split("/").filter(Boolean);if(s.length<2||s.some(function(e){return!/^[\w.%+-]+$/.test(e)}))return null;var c=a+"/"+l;return{projectPath:l,community:l,kind:e[2],number:e[3],surface:r,surfaceDetail:n,basePath:c+"/-/"+e[2]+"/"+e[3]}}function Nu(e,t){return location.origin+e.basePath+(t||"")}function Ru(e){if(!e)return!1;var r=document.documentElement,n=document.querySelector("meta[property='og:site_name']"),o=!!(r&&r.classList.contains("gl-system")&&n&&/^GitLab$/i.test(t(n.getAttribute("content")))),i=!!document.querySelector("meta[name='gitlab-meta'], meta[name^='gitlab-']"),a=window.gon||{},l=Object.prototype.hasOwnProperty.call(a,"relative_url_root"),s=a.gitlab_url||(l?a.relative_url_root||location.origin:null),c=!(!a.api_version||!function(e){if(!e)return!1;try{return new URL(e,location.href).origin===location.origin}catch(e){return!1}}(s)),u=Array.prototype.slice.call(document.querySelectorAll("script[src], link[href]")).some(function(e){var t=e.getAttribute("src")||e.getAttribute("href");if(!t||!/\/assets\/(?:webpack|application|gitlab)/i.test(t))return!1;try{return new URL(t,location.href).origin===location.origin}catch(e){return!1}});return c&&(o||i||u)||o&&(i||u)}function Mu(e){if(!e)return null;var t="[data-testid='work-item-description'], [data-testid='description-content'], .detail-page-description .md, .issuable-description .md, .description .md, .note-body, .note-text, .render-content.markup";return e.matches&&e.matches(t)?e:e.querySelector(t)}function Bu(e){var r=function(e){if(!e)return null;for(var r=["[data-testid='work-item-author']","[data-testid='author-link']",".author-name-link",".author-link",".js-user-link","a[data-user-id]",".note-header-info a"],n=0;n<r.length;n+=1){var o=Array.prototype.slice.call(e.querySelectorAll(r[n])).find(function(e){return!Xt(e)&&t(e.textContent)});if(o)return o}return null}(e);return t(r&&r.textContent||"").replace(/^@/,"")}function Ou(e,t){if(!e)return null;var r=Array.prototype.slice.call(e.querySelectorAll("a[href*='#note_'], a[href*='#note-'], a[href*='#discussion_'], a[href*='#diff-note_']")).find(function(e){return!Xt(e)}),n=r&&r.getAttribute("href");return!n&&e.id&&/^(?:note|discussion|diff-note)[_-]/.test(e.id)&&(n=Nu(t)+"#"+e.id),a(n)}function zu(e){var r=(e?Array.prototype.slice.call(e.querySelectorAll("time[datetime], gl-relative-time[datetime]")):[]).find(function(e){return!Xt(e)});return t(r&&(r.getAttribute("datetime")||r.textContent)||"")}function Iu(e){return function(e){if(!e)return[];var r=".note-body, .note-text, [data-testid='note-body'], .render-content.markup",n=e.matches&&e.matches(r)?[e]:Array.prototype.slice.call(e.querySelectorAll(r));return n.filter(function(e,r){return!(!t(e.textContent)||Vt(e)||n.some(function(t,n){return n<r&&t.contains(e)}))})}(e).map(function(e){var t=Qt(e);return rr(t,"button, [role='tooltip'], .note-actions, .js-note-actions, .award-control, .emoji-block"),mn(Jn(t.innerHTML))}).filter(function(e){return!!t(e)}).join("\n\n")}function Hu(e){var r,n,o,i,a=(r=window.gon||{},n=document.querySelector("[data-project-id]"),o=r.current_project_id||r.project_id||n&&n.getAttribute("data-project-id"),(/^\d+$/.test(String(o||""))?String(o):null)||encodeURIComponent(e.projectPath)),l="merge_requests"===e.kind?"merge_requests":"issues";return i=t((window.gon||{}).relative_url_root||"").replace(/\/$/,""),location.origin+i+"/api/v4/projects/"+a+"/"+l+"/"+e.number}function Fu(e){var t=Hu(e),r=[];return t&&r.push({label:"API details",url:t,detail:"May require authentication on this GitLab instance."},{label:"API notes",url:t+"/notes?per_page=100&page=1",detail:"May require authentication; follow Link or X-Next-Page response headers."},{label:"API discussions",url:t+"/discussions?per_page=100&page=1",detail:"May require authentication; follow Link or X-Next-Page response headers."}),"merge_requests"!==e.kind||(r.push({label:"Conversation",url:Nu(e)},{label:"Commits",url:Nu(e,"/commits")},{label:"Pipelines",url:Nu(e,"/pipelines")},{label:"Reports",url:Nu(e,"/reports")},{label:"Changes",url:Nu(e,"/diffs")},{label:"Raw diff",url:Nu(e)+".diff"},{label:"Raw patch",url:Nu(e)+".patch"}),t&&r.push({label:"API commits",url:t+"/commits?per_page=100&page=1",detail:"May require authentication; follow Link or X-Next-Page response headers."},{label:"API pipelines",url:t+"/pipelines?per_page=100&page=1",detail:"May require authentication; follow Link or X-Next-Page response headers."},{label:"API diffs",url:t+"/diffs?per_page=100&page=1",detail:"May require authentication; follow Link or X-Next-Page response headers."},{label:"API approvals",url:t+"/approvals",detail:"May require authentication on this GitLab instance."})),r}function Du(e){var t=Qt(e);return rr(t,"button, svg, img, [role='tooltip'], .note-actions, .js-note-actions, .sr-only"),mn(Jn(t.innerHTML))}function Uu(e,r,n){var o=".note-wrapper.note-comment, [data-testid='note-wrapper'], .system-note, [data-testid='system-note'], .diff-note, [data-testid='diff-note']",i=Array.prototype.slice.call(e.querySelectorAll(".js-timeline-entry.timeline-entry, .timeline-entry, .note-discussion, .note-wrapper.note-comment, [data-testid='note-wrapper'], .system-note, [data-testid='system-note'], .diff-note, [data-testid='diff-note']")),a=i.filter(function(e){return!(e===r||e.contains(r)||r.contains(e)||Vt(e))&&(e.matches(o)?!i.some(function(t){return t!==e&&t.matches(o)&&t.contains(e)}):!e.querySelector(o))}).map(function(e){return function(e,r){var n=Iu(e),o=e.matches(".system-note, [data-testid='system-note']")||!!e.querySelector(".system-note, [data-testid='system-note']"),i="merge_requests"===r.kind&&(e.matches(".note-discussion, .diff-note, [data-testid='diff-note']")||!!e.closest(".note-discussion, .diff-note, [data-testid='diff-note']")||!!e.querySelector(".diff-note, [data-testid='diff-note'], .discussion")),a=o?"Event":i?"Review":"Comment";return n||(n=Du(e)),t(n)?{sourceNode:Qt(e),kind:a,author:Bu(e),markdown:n,permalink:Ou(e,r),timestamp:zu(e)}:null}(e,n)});return cu(a)}function Wu(e,t){var r=function(e,t){var r=[];return Array.prototype.slice.call(t.querySelectorAll("a[data-testid*='load-more'][href], [data-testid*='load-more'] a[href], .js-load-more a[href]")).forEach(function(t){if(!Xt(t)){var n=a(t.getAttribute("href"));if(n){try{var o=new URL(n);if(o.origin!==location.origin||o.pathname!==e.basePath)return}catch(e){return}r.push({label:"Continue timeline",url:n})}}}),Array.prototype.slice.call(t.querySelectorAll("button[data-testid*='load-more'], [data-testid*='load-more'] button, .js-load-more button")).find(function(e){return!e.disabled&&"true"!==e.getAttribute("aria-disabled")&&!Xt(e)})&&!r.length&&r.push({label:"Conversation page",url:Nu(e),detail:"Additional timeline records remain behind this GitLab page's in-page loader."}),r}(e,t).concat(Fu(e));return Le("Browse this GitLab thread",r)}function Gu(e){var r=function(){var e=$u();return e&&!e.surface?e:null}();if(!r)return null;var n=function(e){if(!e)return null;var t=document.querySelector([".work-item-page","[data-testid='work-item-view']",".work-item-notes",".issuable-details",".merge-request",".issue-details"].join(", "));return t?t=t.closest("main, .content-wrapper, .issuable-details, .merge-request, .issue-details")||t:null}(r);if(!Ru(n))return null;var o=function(e){var t=Mu(e);return t?t.closest("[data-testid='work-item-description-wrapper'], .detail-page-description, .issuable-description, .description")||t:null}(n);if(!o)return null;var i=Iu(o)||Du(o),a=Bu(o),l=t(g(["[data-testid='work-item-title']","[data-testid='issuable-title']",".issue-title",".merge-request .title","main h1"])||e.title||document.title);if(!l)return null;var s=Uu(n,o,r),c="merge_requests"===r.kind?"Merge Request":"work_items"===r.kind?"Work Item":"Issue",u=Ou(o,r),d=["# "+l];a&&d.push("- Author: "+a),d.push("- "+c+": "+r.community,"## "+(u?Se("Opening",u):"Opening")),i&&d.push(i);var m=function(e){var r=[],n=new Set,o=new Set;return["[data-testid='work-item-attributes-wrapper']",".issuable-sidebar",".mr-state-widget","[data-testid='merge-request-sidebar']"].forEach(function(i){Array.prototype.slice.call(e.querySelectorAll(i)).concat(Array.prototype.slice.call(document.querySelectorAll(i))).forEach(function(e){if(!n.has(e)&&!Vt(e)){n.add(e);var i=Qt(e);rr(i,"button, svg, img, [role='tooltip'], form, .js-sidebar-dropdown-toggle");var a=mn(Jn(i.innerHTML)),l=t(a);l&&!o.has(l)&&(o.add(l),r.push(a))}})}),r.length?"## Metadata\n\n"+r.join("\n\n"):""}(n);m&&d.push(m),s.length&&d.push("## Timeline"),d=d.concat(function(e){var t=[];return e.forEach(function(e){var r=e.kind+(e.author?" by "+e.author:"");t.push("### "+(e.permalink?Se(r,e.permalink):r)),e.timestamp&&t.push("- Time: "+e.timestamp),t.push(e.markdown)}),t}(s)),d.push(Wu(r,n));var p=[Qt(o)].concat(s.map(function(e){return e.sourceNode}));return{title:l,byline:a,excerpt:t((Mu(o)||{}).textContent||""),siteName:location.hostname,publishedTime:zu(o)||e.publishedTime,html:p.filter(Boolean).map(function(e){return e.outerHTML}).join("\n"),markdown:d.filter(Boolean).join("\n\n"),textContent:t([l,i].concat(s.map(function(e){return e.markdown})).join(" ")),hostAware:!0,readerMode:!1,contentType:"social",socialKind:"thread",threadConversation:!0,platform:"GitLab",handle:a,replyCount:null,community:r.community}}function Zu(e,r){return t(g(["[data-testid='issuable-title']",".merge-request .title","main h1",".page-title"])||e.title||document.title||"GitLab merge request")+" - "+r}function Ku(e){var r="[data-testid='empty-state'], .gl-empty-state, .empty-state, .nothing-here-block, .blank-state",n=Array.prototype.slice.call(e.querySelectorAll(r));return e.matches&&e.matches(r)&&n.unshift(e),n.map(function(e){return Vt(e)?"":mn(Jn(Qt(e).innerHTML))}).find(function(e){return!!t(e)})||""}function Vu(e,r,n){var o=r.filter(Boolean).join("\n\n"),i=n.filter(Boolean).map(function(e){return e.outerHTML}).join("\n");return{title:e,siteName:"GitLab",excerpt:t(o),html:i,markdown:o,textContent:t(o),hostAware:!0,readerMode:!1,contentType:"list"}}function Ju(e){return e.id||e.getAttribute("data-diff-id")||e.getAttribute("data-file-id")||e.getAttribute("data-file-path")||""}function Xu(e){return!Vt(e)&&(!Xt(e)||!!t(Qt(e).textContent))}function Yu(e,r,n){var o=e.querySelector("[data-path], .file-title-name, [data-testid='file-title'], .file-header");return t(e.getAttribute("data-path")||e.getAttribute("data-file-path")||o&&(o.getAttribute("data-path")||o.textContent)||n[r]||"Changed file "+(r+1))}function Qu(e,r,o){var i=function(e){return er(e,"diff-file[data-testid='rd-diff-file'], .diff-file, .file-holder, [data-testid='diff-file']",Xu)}(o),l=function(e){var t=new Set(e.map(Ju).filter(Boolean)),r=new Set;return e.map(function(e,n){var o=Ju(e);if(o&&!r.has(o))return r.add(o),o;for(var i=o?o+"-fetch-util-"+(n+1):"fetch-util-diff-"+(n+1);t.has(i)||r.has(i);)i+="-";return r.add(i),i})}(i),s=n(location.hash),c=s?l.indexOf(s):-1,u=c>=0?i[c]:null,d=Ku(o);if(s&&!u&&!d)return null;var m,p=Zu(e,"Changes"),f=["# "+p],h=[];if(u){var g=(rr(m=Qt(u),"button, [role='tooltip']"),mn(Jn(m.innerHTML)));f.push("## "+Yu(u,c,l)),g&&f.push(g),function(e){var r=["[data-testid='rd-diff-file-body']","[data-testid='diff-file-body']",".diff-content",".file-content",".diff-table","table.diff-table",".diff-line",".line_content"].join(", ");return Array.prototype.slice.call(e.querySelectorAll(r)).some(function(e){return t(Qt(e).textContent)})}(u)||f.push("- Selected diff body is not loaded on this page; use the deferred diff resource below."),h.push(Qt(u))}else d?f.push(d):f.push("- Changed files shown: "+i.length);var y=function(e,t,r){var n=t.map(function(t,n){return{label:Yu(t,n,r),url:Nu(e,"/diffs")+"#"+encodeURIComponent(r[n])}}),o=new Set(n.map(function(e){return e.url}));return t.forEach(function(e,t){Array.prototype.slice.call(e.querySelectorAll("include-fragment[src], [data-diff-url], [data-endpoint], [data-url*='diffs_batch'], [data-src*='diff']")).forEach(function(i){var l=a(i.getAttribute("src")||i.getAttribute("data-diff-url")||i.getAttribute("data-endpoint")||i.getAttribute("data-url")||i.getAttribute("data-src"));if(l&&!o.has(l)){try{if(new URL(l).origin!==location.origin)return}catch(e){return}o.add(l),n.push({label:"Load deferred diff for "+Yu(e,t,r),url:l})}})}),n}(r,i,l).concat(Fu(r));return f.push(Le("Browse changed files",y)),u||(h=i.map(function(e){return Qt(e.querySelector(".file-header, [data-testid='rd-diff-file-header'], [data-testid='file-header']")||e)})),Vu(p,f,h)}function ed(e){var t=Qt(e);return rr(t,"button, [role='tooltip'], .dropdown, .js-dropdown, .gl-new-dropdown"),mn(Jn(t.innerHTML))}function td(e,r){return function(e,t){return er(e,t,function(e){return!Vt(e)})}(e,r).map(function(e){return{node:e,markdown:ed(e)}}).filter(function(e){return!!t(e.markdown)})}function rd(e){var t=$u();if(!t||"merge_requests"!==t.kind||!t.surface)return null;var r=document.querySelector("main")||document.querySelector(".content-wrapper")||document.querySelector(".merge-request")||document.querySelector("[data-page]")||document.body;if(!Ru(r))return null;if("diffs"===t.surface)return Qu(e,t,r);var n={commits:{title:"Commits",itemLabel:"Commit",selector:"[data-testid='commit-content'], [data-testid='commit-row'], .commit-row, li.commit"},pipelines:{title:"Pipelines",itemLabel:"Pipeline",selector:"[data-testid='pipeline-table-row'], .pipeline-row, .ci-table tbody tr, table.pipelines tbody tr"},reports:{title:"Reports",itemLabel:"Report",selector:"[data-testid*='report'], .report-block, .mr-widget-reports > *, .report-section"}}[t.surface];return n&&function(e,t,r,n){var o=td(r,n.selector),i=Ku(r);if(!o.length&&!i)return null;var a=Zu(e,n.title),l=["# "+a];return o.length?(l.push("- Records shown: "+o.length,"## "+n.title),o.forEach(function(e,t){l.push("### "+n.itemLabel+" "+(t+1),e.markdown)})):l.push(i),l.push(Le("Browse this GitLab merge request",Fu(t))),Vu(a,l,o.map(function(e){return Qt(e.node)}))}(e,t,r,n)}function nd(){return window.config||{}}function od(){var e=t(nd().appSubUrl||"").replace(/^\/+|\/+$/g,"");e=e?"/"+e:"";var r=location.pathname||"";if(e&&0!==r.indexOf(e+"/"))return null;var n=(e?r.slice(e.length):r).match(/^\/([\w.%+-]+)\/([\w.%+-]+)\/(issues|pulls)\/(\d+)(?:\/(commits|files)(?:\/([^/]+))?)?\/?$/);if(!n)return null;var o=n[1]+"/"+n[2];return{owner:n[1],repository:n[2],projectPath:o,community:o,kind:n[3],number:n[4],surface:n[5]||null,surfaceDetail:n[6]||null,routePrefix:e,basePath:e+"/"+o+"/"+n[3]+"/"+n[4]}}function id(e,t){return location.origin+e.basePath+(t||"")}function ad(e){var t=nd();if(!t.appUrl)return!1;try{var r=new URL(t.appUrl,location.href),n=r.pathname.replace(/\/$/,"");return r.origin===location.origin&&n===e.routePrefix}catch(e){return!1}}function ld(){var e=Array.prototype.slice.call(document.querySelectorAll("meta[name='author'], meta[name='generator'], meta[property='og:site_name']")).map(function(e){return t(e.getAttribute("content"))});return Array.prototype.slice.call(document.querySelectorAll("footer a[href]")).forEach(function(r){var n=t(r.textContent),o=t(r.getAttribute("href"));(/powered by/i.test(n)||/(?:forgejo|gitea)/i.test(o))&&e.push(n+" "+o)}),e.push(t(nd().assetVersionEncoded||"")),e.join(" ")}function sd(e){var r=t(nd().assetUrlPrefix||"");if(!r)return!1;try{var n=new URL(r,location.href),o=e.routePrefix+"/assets";return n.origin===location.origin&&n.pathname.replace(/\/$/,"")===o&&Array.prototype.slice.call(document.querySelectorAll("script[src], link[href]")).some(function(e){var t=e.getAttribute("src")||e.getAttribute("href");if(!t)return!1;var r=new URL(t,location.href);return r.origin===location.origin&&0===r.pathname.indexOf(o+"/")})}catch(e){return!1}}function cd(){var e=ld();return/\bforgejo\b/i.test(e)?"Forgejo":/\bgitea\b/i.test(e)?"Gitea":"Gitea/Forgejo"}function ud(e){return e?e.querySelector([".issue-content-left .timeline-item.comment.issue-content-comment[id^='issue-']",".issue-content-left .timeline-item.comment.issue-content-comment",".issue-content-left .timeline-item.comment.first[id^='issue-']",".issue-content-left .timeline-item.comment.first",".comment-list .timeline-item.comment.issue-content-comment",".comment-list .timeline-item.comment.first"].join(", ")):null}function dd(e){var t=function(e){return location.origin+e.routePrefix+"/api/v1/repos/"+encodeURIComponent(e.owner)+"/"+encodeURIComponent(e.repository)}(e),r=t+"/issues/"+e.number,n=[];if("pulls"===e.kind){var o=t+"/pulls/"+e.number;n.push({label:"Commits",url:id(e,"/commits")},{label:"Files changed",url:id(e,"/files")},{label:"Raw diff",url:id(e)+".diff"},{label:"Raw patch",url:id(e)+".patch"},{label:"Pull request API",url:o},{label:"Pull request commits API",url:o+"/commits",detail:"Follow response pagination headers when present."},{label:"Pull request files API",url:o+"/files",detail:"Follow response pagination headers when present."},{label:"Pull request reviews API",url:o+"/reviews",detail:"Follow response pagination headers when present."})}return n.push({label:"Issue API",url:r},{label:"Comments API",url:r+"/comments",detail:"Follow Link, X-HasMore, and total-count headers when present."},{label:"Timeline API",url:r+"/timeline",detail:"Follow Link, X-HasMore, and total-count headers when present."},{label:"Labels API",url:r+"/labels",detail:"Follow Link, X-HasMore, and total-count headers when present."}),n}function md(e){return"commits"===e.surface&&e.surfaceDetail&&"list"!==e.surfaceDetail?"files":e.surface}function pd(e){return e&&Array.prototype.slice.call(e.querySelectorAll(".ui.message.empty, .empty-state, .nothing-here, .no-results, [data-testid='empty-state']")).find(function(e){return!Xt(e)&&t(e.textContent)})||null}function fd(e){var t=pd(e);if(!t)return"";var r=Qt(t);return rr(r,"button, form, [role='tooltip'], .menu, .dropdown"),mn(Jn(r.innerHTML))}function hd(e){if(!e||Vt(e))return!1;if(!Xt(e))return!0;var r=Qt(e);return!!t(r.textContent)||!!r.querySelector("table, pre, code, img, ins, del, .diff-line")}function gd(e,r){return t(g([".issue-title-header h1",".issue-title h1","main h1"])||e.title||document.title||"Pull request")+" - "+r}function yd(e){return[{label:"Conversation",url:id(e)}].concat(dd(e))}function bd(e,r,n,o){var i=r.filter(Boolean).join("\n\n");return{title:e,siteName:cd(),excerpt:t(i),html:n.filter(Boolean).map(function(e){return e.outerHTML}).join("\n"),markdown:i,textContent:t(i),hostAware:!0,readerMode:!1,contentType:"list",platform:cd(),community:o.community}}function vd(e){return er(e,"#commits-table > tbody.commit-list > tr, .commit-group .commits .commit",hd).map(function(e){var r=function(e){var r=Qt(e),n=e.querySelector(".commit-body");if(n&&!r.querySelector(".commit-body")&&t(n.textContent)){var o=n.cloneNode(!0);o.classList.remove("tw-hidden","hidden"),o.removeAttribute("hidden"),o.removeAttribute("style"),r.appendChild(o)}return rr(r,"button, form, [role='tooltip'], .copy-commit-id, .menu, .dropdown"),r}(e);return{node:r,markdown:mn(Jn(r.innerHTML))}}).filter(function(e){return!!t(e.markdown)})}function wd(e){var t=String(e||"");return t?0===t.indexOf("diff-")?t:"diff-"+t:""}function Ad(e,t,r){var n=a(r&&(r.URL||r.Url||r.url));if(n)try{if(new URL(n).origin===location.origin)return n}catch(e){}var o=Number(r&&(void 0===r.OnPage?r.onPage:r.OnPage)),i=Number.isInteger(o)&&o>1?"?diff-page="+o:"";return function(e){return id(e,"commits"===e.surface?"/commits/"+e.surfaceDetail:"/files"+(e.surfaceDetail?"/"+e.surfaceDetail:""))}(e)+i+"#"+encodeURIComponent(t)}function Sd(e,r){var n=e&&e.querySelector(".diff-file-header, .file-header, .file-link");return t(e&&(e.getAttribute("data-new-filename")||e.getAttribute("data-old-filename"))||n&&(n.getAttribute("data-path")||n.textContent)||r)}function xd(e,n,o){var i=function(e){var r=nd().pageData||{},n=(r.diffFileInfo||{}).files||[];if(Array.isArray(n)&&n.length)return n.map(function(r){var n=wd(r.NameHash||r.nameHash),o=t(r.Name||r.name||"");return n&&o?{label:o,id:n,url:Ad(e,n,r)}:null}).filter(Boolean);var o=r.DiffFileTree||r.diffFileTree||[],i=o.TreeRoot||o.treeRoot||o,a=[],l=function(r){(Array.isArray(r)?r:[r]).filter(Boolean).forEach(function(r){var n=r.Children||r.children||[];if(n.length)l(n);else{var o=wd(r.NameHash||r.nameHash);if(o){var i=t(r.FullName||r.fullName||r.NewFullName||r.newFullName||r.OldFullName||r.oldFullName||o);a.push({label:i,id:o,url:Ad(e,o,r)})}}})};return l(i),a}(e),a=new Set(i.map(function(e){return e.id}).filter(Boolean));return Array.prototype.slice.call(n.querySelectorAll("#diff-file-tree a.item-file[href^='#diff-'], a.file-link[href^='#diff-']")).forEach(function(n){if(!Xt(n)){var o=r((n.getAttribute("href")||"").replace(/^#/,""));if(o&&!a.has(o)){var l=Ad(e,o,null);a.add(o),i.push({label:t(n.textContent)||o,id:o,url:l})}}}),o.forEach(function(t){var r=t.id;if(r&&!a.has(r)){var n=Ad(e,r,null);a.add(r),i.push({label:Sd(t,r),id:r,url:n})}}),i}function kd(e,r,o){var i=function(e){return er(e,"#diff-file-boxes > .diff-file-box, .diff-file-box.file-content[id^='diff-']",function(e){return"diff-incomplete"!==e.id&&hd(e)})}(o),l=xd(r,o,i),s=function(e){var t=[],r=new Set;return Array.prototype.slice.call(e.querySelectorAll("#diff-show-more-files[data-href], .diff-load-button[data-href], [data-global-click='diffLoadFileBody'][data-href]")).forEach(function(e){if(!Xt(e)){var n=a(e.getAttribute("data-href"));if(n&&!r.has(n)){try{if(new URL(n).origin!==location.origin)return}catch(e){return}r.add(n);var o=e.closest(".diff-file-box"),i=o?"Load deferred diff for "+Sd(o,o.id):"Load more changed files";t.push({label:i,url:n,fileId:o?o.id:null})}}}),t}(o),c=n(location.hash),u=c?i.find(function(e){return e.id===c}):null,d=c&&l.some(function(e){return e.id===c}),m=fd(o);if(!l.length&&!s.length&&!m)return null;var p=gd(e,"Files changed"),f=["# "+p],h=[];if(u){var g=function(e){var t=Qt(e);return rr(t,["button","form","input","label","[role='tooltip']",".diff-file-actions",".diff-file-header-actions",".diff-file-options",".diff-load-button",".menu",".dropdown"].join(", ")),t}(u),y=function(e){var r=e.querySelector(".diff-file-body, .file-body, .diff-rendered, .image-diff, .binary");if(!r||Vt(r))return!1;var n=Array.prototype.slice.call(e.querySelectorAll(".diff-load-button[data-href], [data-global-click='diffLoadFileBody'][data-href]")).some(function(e){return!Xt(e)}),o=Qt(r);return rr(o,"button, [role='button'], .diff-load-button, [data-global-click='diffLoadFileBody']"),!!o.querySelector("table, pre, code, img, ins, del, .diff-line")||!n&&!!t(o.textContent)}(u)?mn(Jn(g.innerHTML)):"",b=s.filter(function(e){return e.fileId===c});f.push("## "+Sd(u,u.id)),y&&f.push(y),!y&&b.length?f.push("Selected file body is deferred on this page."):y||f.push("Selected file body is not loaded on this page."),h.push(g)}else c?f.push(d?"Selected file is indexed but is not loaded on this page.":"Selected file is not present in the loaded file inventory."):m?f.push(m):(f.push("- Changed files indexed: "+l.length),h=i.map(function(e){return Qt(e.querySelector(".diff-file-header, .file-header")||e)}));var v=l.concat(s,yd(r));return f.push(Le("Browse changed files",v)),bd(p,f,h,r)}function Cd(e){var t=function(){var e=od();return e&&"pulls"===e.kind?"commits"===e.surface?!e.surfaceDetail||"list"===e.surfaceDetail||/^[a-f0-9]{4,64}$/i.test(e.surfaceDetail)?e:null:"files"!==e.surface||e.surfaceDetail&&!/^[a-f0-9]{4,64}$/i.test(e.surfaceDetail)&&!/^[a-f0-9]{7,64}\.\.?\.[a-f0-9]{7,64}$/i.test(e.surfaceDetail)?null:e:null}();if(!t)return null;var r=function(e){if(!e)return null;for(var t="commits"===md(e)?[".page-content.repository.view.issue.pull.commits",".repository.view.issue.pull.commits",".page-content.repository.view.issue.pull"]:[".page-content.repository.view.issue.pull.files.diff",".repository.view.issue.pull.files.diff",".page-content.repository.view.issue.pull"],r=0;r<t.length;r+=1){var n=document.querySelector(t[r]);if(n)return n}return null}(t);return function(e,t){return!!(e&&t&&ad(e)&&(/\b(?:forgejo|gitea)\b/i.test(ld())||sd(e))&&("commits"===md(e)?t.querySelector("#commits-table > tbody.commit-list, .commit-group .commits .commit")||pd(t):t.querySelector("#diff-container, #diff-file-boxes, #diff-file-tree")||pd(t)))}(t,r)?"commits"===md(t)?function(e,t,r){var n=vd(r),o=fd(r);if(!n.length&&!o)return null;var i=gd(e,"Commits"),a=["# "+i];return n.length?(a.push("- Commits shown: "+n.length,"## Commits"),n.forEach(function(e,t){a.push("### Commit "+(t+1),e.markdown)})):a.push(o),a.push(Le("Browse this "+cd()+" pull request",yd(t))),bd(i,a,n.map(function(e){return e.node}),t)}(e,t,r):"files"===md(t)?kd(e,t,r):null:null}function qd(e){return e?e.matches&&e.matches(".comment-body")?e:e.querySelector(".comment-body"):null}function Ed(e){var t=qd(e);if(!t)return"";var r=Qt(t);return rr(r,".raw-content, .edit-content-zone, form, button, [role='tooltip'], .menu, .dropdown"),mn(Jn(r.innerHTML))}function Td(e){for(var r=[".comment-header .author",".timeline-avatar + * .author",".comment-header-left a.tw-font-semibold",".comment-header-left span.tw-font-semibold",".comment-header a.tw-font-semibold","a.tw-font-semibold",".author"],n=0;n<r.length;n+=1){var o=e&&e.querySelector(r[n]);if(!o||!Xt(o)){var i=t(o&&o.textContent);if(i)return i}}return""}function _d(e){var r=e&&e.querySelector("relative-time[datetime], time[datetime]");return r?t(r.getAttribute("datetime")):""}function Ld(e,t){if(!e)return null;var r=e.id?e:e.querySelector([":scope > .timeline-item[id]",":scope > [id^='issuecomment-']",":scope > [id^='event-']"].join(", "));return r&&r.id?a(id(t)+"#"+encodeURIComponent(r.id)):null}function jd(e,r){var n=qd(e),o=e.matches&&e.matches(".timeline-item-group"),i=o?function(e){var t=Qt(e);return rr(t,[".raw-content",".edit-content-zone",".timeline-avatar",".comment-header-right","form","button","svg","[role='tooltip']",".menu",".dropdown"].join(", ")),mn(Jn(t.innerHTML))}(e):n?Ed(e):function(e){var t=Qt(e);return rr(t,[".timeline-avatar",".author","relative-time","time","button","svg","img","[role='tooltip']",".menu",".dropdown"].join(", ")),mn(Jn(t.innerHTML))}(e);if(!t(i))return null;var a=Qt(e);return rr(a,[".raw-content",".edit-content-zone",".pull-merge-box",".timeline-item.comment.merge.box","form","button","[role='tooltip']",".menu",".dropdown"].join(", ")),{node:e,sourceNode:a,kind:o?"Review":n?"Comment":"Event",author:Td(e),markdown:i,permalink:Ld(e,r),timestamp:_d(e)}}function Pd(e,t,r){var n=function(e){var t=[".issue-content-left .timeline-item-group",".issue-content-left .timeline-item",".comment-list .timeline-item-group",".comment-list .timeline-item"].join(", "),r=[];return Array.prototype.slice.call(e.querySelectorAll(t)).forEach(function(t){var n=t.closest(".timeline-item-group"),o=n&&e.contains(n)?n:t;Vt(o)||o.matches(".pull-merge-box, .timeline-item.comment.merge.box, .form, #timeline-comments-end")||r.some(function(e){return e===o||e.contains(o)})||r.push(o)}),r}(e).filter(function(e){return e!==t&&!e.contains(t)&&!t.contains(e)}).map(function(e){return jd(e,r)});return cu(n)}function $d(e){var r=function(){var e=od();return e&&!e.surface?e:null}();if(!r)return null;var n=function(e){return e?document.querySelector([".page-content.repository.view.issue .issue-content",".repository.view.issue .issue-content",".page-content .issue-content"].join(", ")):null}(r);if(!function(e,r){var n=ud(r);if(!e||!r||!n)return!1;if(!ad(e))return!1;var o=n.querySelector(".comment-body"),i=o&&o.querySelector(".render-content.markup"),a=o&&o.querySelector(".no-content"),l=o&&Array.prototype.slice.call(o.querySelectorAll(".dropzone-attachments a[href], .attachments a[href]")).some(function(e){return!Xt(e)}),s=!!(r.querySelector(".issue-content-left .comment-list, .issue-content-left.comment-list")&&n.querySelector(".content.comment-container, .comment-body")&&(i&&!Xt(i)&&t(i.textContent)||a&&!Xt(a)||l)),c=/\b(?:forgejo|gitea)\b/i.test(ld());return s&&(c||sd(e))}(r,n))return null;var o=ud(n),i=Td(o),a=t(g([".issue-title-header h1",".issue-title h1","main h1"])||e.title||document.title);if(!o||!a)return null;var l=Ed(o),s=Ld(o,r),c=Pd(n,o,r),u=function(e){var r=e&&e.querySelector(".issue-content-right");if(!r||Vt(r))return{markdown:"",sourceNode:null};var n=Qt(r);rr(n,["form","button","input","select","option","svg","img","[role='tooltip']",".menu",".dropdown",".select-menu",".popup"].join(", "));var o=mn(Jn(n.innerHTML));return{markdown:o,sourceNode:t(o)?n:null}}(n),d=["# "+a,"- "+("pulls"===r.kind?"Pull Request":"Issue")+": "+r.community];i&&d.push("- Author: "+i),d.push("## "+(s?Se("Opening",s):"Opening"));var m=_d(o);m&&d.push("- Time: "+m),l&&d.push(l),u.markdown&&d.push("## Metadata",u.markdown),c.length&&d.push("## Timeline"),d=d.concat(function(e){var t=[];return e.forEach(function(e){var r=e.kind+(e.author?" by "+e.author:"");t.push("### "+(e.permalink?Se(r,e.permalink):r)),e.timestamp&&t.push("- Time: "+e.timestamp),t.push(e.markdown)}),t}(c)),d.push(function(e){return Le("Browse this "+cd()+" thread",dd(e))}(r));var p=[Qt(o)].concat(c.map(function(e){return e.sourceNode}));return u.sourceNode&&p.push(u.sourceNode),{title:a,byline:i,excerpt:t((Qt(qd(o))||{}).textContent||""),siteName:e.siteName||location.hostname,publishedTime:m||e.publishedTime,html:p.filter(Boolean).map(function(e){return e.outerHTML}).join("\n"),markdown:d.filter(Boolean).join("\n\n"),textContent:t([a,l].concat(c.map(function(e){return e.markdown})).join(" ")),hostAware:!0,readerMode:!1,contentType:"social",socialKind:"thread",threadConversation:!0,platform:cd(),handle:i,replyCount:null,community:r.community}}function Nd(){var e=(location.pathname||"").match(/^\/([^/]+)\/([^/]+)\/pull-requests\/(\d+)(?:\/(overview|commits|diff))?\/?$/);if(!e)return null;var t=r(e[1]),n=r(e[2]);return!t||!n||t.indexOf("/")>=0||n.indexOf("/")>=0?null:{workspace:t,repository:n,number:e[3],surface:e[4]||null,community:t+"/"+n,basePath:"/"+e[1]+"/"+e[2]+"/pull-requests/"+e[3]}}function Rd(e){var t=a(e);if(!t)return null;try{var r=new URL(t);return r.username||r.password?null:r.href}catch(e){return null}}function Md(e,t){if(Array.isArray(e))return e.map(function(e){return Md(e,t)}).filter(function(e){return null!==e});if(e&&"object"==typeof e)return Object.keys(e).reduce(function(t,r){var n=Md(e[r],r);return null!==n&&(t[r]=n),t},{});if("string"==typeof e){var r=e.trim();if(function(e){return/(?:^|_)(?:href|link|uri|url)$/i.test(e||"")}(t))return Rd(r);if((r.match(/(?:[a-z][a-z0-9+.-]*:)?\/\/[^\s<>\[\]()]+/gi)||[]).some(function(e){return!Rd(e)}))return null;if(/^\/\//.test(r))return Rd(r);if(/\b(?:javascript|data|vbscript|file|ftp|ftps|ssh|mailto|tel|sms|geo|magnet|irc|ircs):\S+/i.test(r))return null}return e}function Bd(e,t){return location.origin+e.basePath+(t||"")}function Od(e){return e?e.querySelector(["#pull-request-description-panel","section[aria-label='Pull request description']","section[aria-label='Description']"].join(", ")):null}function zd(e){if(!e)return!1;var r=(((window.__initial_state__||{}).section||{}).repository||{}).currentRepository||null,n=t(r&&r.full_name).toLowerCase(),o=function(e){return!!e&&(!1===e.is_private||!1===e.isPrivate||"public"===e.visibility)}(r)&&"repository"===r.type&&n===e.community.toLowerCase(),i=document.querySelector("meta[name='application-name']"),a=/^Bitbucket$/i.test(t(i&&i.getAttribute("content"))),l=document.querySelector("[data-testid='pr-header']");return!(!o||!a||!l&&!Array.prototype.slice.call(document.querySelectorAll("script[src], link[href]")).some(function(e){var t=e.getAttribute("src")||e.getAttribute("href")||"";return/(?:frontbucket|bbc-frontbucket-static|bitbucket)[^/]*\/(?:assets|static)\//i.test(t)||/\/(?:assets|static)\/[^?#]*(?:frontbucket|bitbucket)/i.test(t)}))}function Id(e,r){for(var n=0;n<r.length;n+=1)for(var o=Array.prototype.slice.call(e&&e.querySelectorAll(r[n])||[]),i=0;i<o.length;i+=1){var a=t(Qt(o[i]).textContent);if(a)return a}return""}function Hd(e,t){return Array.prototype.slice.call(e.querySelectorAll(t)).filter(function(t){return t.closest("[data-testid='comment']")===e})}function Fd(e,t){return Hd(e,t)[0]||null}function Dd(e){if(!e||Vt(e))return"";var t=Qt(e);return rr(t,["button","[role='tooltip']","[data-testid='comment-header-actions']","[data-testid='comment-footer']","[aria-label*='reaction' i]","form"].join(", ")),t}function Ud(e){var t=Dd(e);return t?mn(Jn(t.innerHTML)):""}function Wd(e){return e&&e.matches&&e.matches("[data-testid='comment']")?function(e,r){for(var n=Hd(e,r),o=0;o<n.length;o+=1){var i=t(Qt(n[o]).textContent);if(i)return i}return""}(e,["[data-testid='comment-author']","[data-testid='user-profile-card-trigger-wrapper'] [data-testid='profile-card-trigger']","[data-testid='user-profile-card-trigger-wrapper']"].join(", ")):Id(e,["[data-testid='comment-author']","[data-testid='pull-request-author']","[data-testid='user-profile-card-trigger-wrapper'] [data-testid='profile-card-trigger']","[data-testid='user-profile-card-trigger-wrapper']"])}function Gd(e){var r=(e&&e.matches&&e.matches("[data-testid='comment']")?Hd(e,"time[datetime], [datetime]"):Array.prototype.slice.call(e&&e.querySelectorAll("time[datetime], [datetime]")||[])).find(function(e){return!Xt(e)});return t(r&&r.getAttribute("datetime"))}function Zd(e){var t=function(e){return"https://api.bitbucket.org/2.0/repositories/"+encodeURIComponent(e.workspace)+"/"+encodeURIComponent(e.repository)+"/pullrequests/"+e.number}(e),r="Follow the response's opaque next link until it is absent; do not synthesize page cursors.";return[{label:"Conversation",url:Bd(e)},{label:"Commits",url:Bd(e,"/commits")},{label:"Diff",url:Bd(e,"/diff")},{label:"Raw diff",url:Bd(e,".diff")},{label:"Raw patch",url:Bd(e,".patch")},{label:"Reports",url:Bd(e,"/reports")},{label:"Pull request API",url:t},{label:"Activity API",url:t+"/activity",detail:r},{label:"Comments API",url:t+"/comments",detail:r},{label:"Commits API",url:t+"/commits",detail:r},{label:"Diff API",url:t+"/diff"},{label:"Diffstat API",url:t+"/diffstat",detail:r},{label:"Patch API",url:t+"/patch"},{label:"Statuses API",url:t+"/statuses",detail:r},{label:"Tasks API",url:t+"/tasks",detail:r},{label:"Conflicts API",url:t+"/conflicts"}]}function Kd(e,t){if(!["activity","statuses"].includes(t))return null;var r,n,o=(e||"").match(/^\/(?:(!api)\/)?2\.0\/repositories\/([^/]+)\/([^/]+)\/pullrequests\/(\d+)\/(activity|statuses)\/?$/);if(!o||o[5]!==t)return null;try{r=decodeURIComponent(o[2]),n=decodeURIComponent(o[3])}catch(e){return null}if(!r||!n||/[\/?#]/.test(r)||/[\/?#]/.test(n))return null;var i=o[1]?"/!api/2.0":"/2.0",a=i+"/repositories/"+o[2]+"/"+o[3]+"/pullrequests/"+o[4];return{workspace:r,repository:n,number:o[4],community:r+"/"+n,apiPrefix:i,pullRequestPath:a,resourcePath:a+"/"+t}}function Vd(){if(!/^application\/json(?:$|;)/i.test(document.contentType||""))return null;var e=document.querySelectorAll("body > pre");if(1!==e.length)return null;try{var t=JSON.parse(e[0].textContent||"");return t&&"object"==typeof t&&!Array.isArray(t)?t:null}catch(e){return null}}function Jd(e){if("string"!=typeof e&&"number"!=typeof e)return"";var r=t(String(e));return(r=(r=r.replace(/(?:[a-z][a-z0-9+.-]*:)?\/\/[^\s<>\[\]()]+/gi,function(e){return Rd(e)||"[unsafe URL removed]"})).replace(/(?:javascript|data|vbscript|file|ftp|ftps|ssh|mailto|tel|sms|geo|magnet|irc|ircs):\S+/gi,"[unsafe URL removed]")).replace(/([\\`*_[\]<>])/g,"\\$1")}function Xd(){return e=location.pathname,(t=Kd(e,"activity"))?(t.activityPath=t.resourcePath,t):null;var e,t}function Yd(e,t,n,o){var i=Rd(e);if(!i)return null;try{var a=new URL(i),l=a.pathname.match(/^\/(?:(!api)\/)?2\.0\/repositories\/([^/]+)\/([^/]+)\/pullrequests\/(\d+)(\/.*)?$/),s=(l&&l[5]||"").replace(/\/$/,"");if(!l||a.hash||!o&&a.search||s!==n||r(l[2]).toLowerCase()!==t.workspace.toLowerCase()||r(l[3]).toLowerCase()!==t.repository.toLowerCase()||l[4]!==t.number)return null;var c=l[1]?"/!api/2.0":"/2.0";if(a.origin===location.origin&&c===t.apiPrefix)return a.href;var u="api."+location.hostname.toLowerCase();if("/!api/2.0"===t.apiPrefix&&"/2.0"===c&&a.protocol===location.protocol&&a.hostname.toLowerCase()===u&&a.port===location.port)return location.origin+t.apiPrefix+a.pathname.slice(4)+a.search}catch(e){return null}return null}function Qd(e,t){if(!e||"pullrequest"!==e.type||!Number.isInteger(e.id)||String(e.id)!==t.number)return!1;if(!Yd(e.links&&e.links.self&&e.links.self.href,t,""))return!1;var n=e.links&&e.links.html&&e.links.html.href;if(!n)return!0;var o=Rd(n);if(!o)return!1;try{var i=new URL(o),a=i.pathname.match(/^\/([^/]+)\/([^/]+)\/pull-requests\/(\d+)\/?$/);return!!a&&!i.search&&!i.hash&&r(a[1]).toLowerCase()===t.workspace.toLowerCase()&&r(a[2]).toLowerCase()===t.repository.toLowerCase()&&a[3]===t.number}catch(e){return!1}}function em(e,t){if(!e||"object"!=typeof e||Array.isArray(e)||!Qd(e.pull_request,t))return null;var r=Object.keys(e).filter(function(e){return"pull_request"!==e});if(1!==r.length||!/^[a-z][a-z0-9_]*$/.test(r[0]))return null;var n=r[0],o=e[n];if(!o||"object"!=typeof o||Array.isArray(o))return null;if(o.pullrequest&&!Qd(o.pullrequest,t))return null;if(o.pull_request&&!Qd(o.pull_request,t))return null;if("comment"===n&&!function(e,t){return!(!Number.isInteger(e.id)||e.id<=0||"pullrequest_comment"!==e.type||!Yd(e.links&&e.links.self&&e.links.self.href,t,"/comments/"+e.id))}(o,t))return null;var i=o.date||o.created_on||o.updated_on;return"string"==typeof i&&i.trim()?{source:e,eventName:n,event:o}:null}function tm(e,t){if(null==e)return{provided:!1,url:null};if("string"!=typeof e)return{provided:!0,url:null};var r=Yd(e,t,"/activity",!0);return{provided:!0,url:r&&r!==location.href?r:null}}function rm(e){var t=e.user||e.author||e.actor||e.creator;return Jd(t&&(t.display_name||t.nickname||t.username))}function nm(e){return e.split("_").map(function(e){return e?e.charAt(0).toUpperCase()+e.slice(1):""}).join(" ")}function om(e){var r=Xd(),n=r&&function(e,t){if(!Array.isArray(e.values)||!Number.isInteger(e.pagelen)||e.pagelen<=0||0===e.values.length||e.values.length>e.pagelen)return null;if(null!=e.page&&(!Number.isInteger(e.page)||e.page<=0))return null;if(null!=e.size&&(!Number.isInteger(e.size)||e.size<e.values.length))return null;if(null!=e.page&&null!=e.size&&(e.page-1)*e.pagelen+e.values.length>e.size)return null;var r=e.values.map(function(e){return em(e,t)});return r.every(Boolean)?{payload:e,records:r}:null}(Vd()||{},r);if(!n)return null;e&&(e.language=null);var o=n.payload,i=n.records,a={previous:tm(o.previous,r),next:tm(o.next,r)},l=null!=o.size&&null!=o.page&&!a.next.url&&(o.page-1)*o.pagelen+o.values.length<o.size,s=l||a.previous.provided&&!a.previous.url||a.next.provided&&!a.next.url,c="Bitbucket pull request "+r.number+" activity",u=["# "+c,"- Repository: "+Jd(r.community),"- Pull request: "+r.number,"- Activity records shown on this API page: "+i.length,"- Page length: "+o.pagelen];null!=o.page&&u.push("- Page: "+o.page),null!=o.size&&u.push("- Total activity records: "+o.size),i.forEach(function(e,t){u=u.concat(function(e,t){var r=e.event,n=["### Activity "+(t+1)+": "+nm(e.eventName)];return[["Actor",rm(r)],["Date",r.date||r.created_on||r.updated_on],["State",r.state],["Title",r.title],["Comment ID",r.id]].forEach(function(e){var t=Jd(e[1]);t&&n.push("- "+e[0]+": "+t)}),n.push("#### Complete activity record",hn("json",JSON.stringify(Md(e.source),null,2)).trim()),n}(e,t))}),s&&u.push("## Retrieval warning",l?"API counters indicate omitted activity records, but no safe next page was available.":"A pagination continuation was present but could not be safely traversed."),u.push(Le("Browse this Bitbucket pull request activity",function(e,t,r){var n=[{label:"Pull request API",url:location.origin+e.pullRequestPath},{label:"Activity API",url:location.origin+e.activityPath}];r.previous.url&&n.push({label:"Previous activity API page",url:r.previous.url}),r.next.url&&n.push({label:"Next activity API page",url:r.next.url});var o=t[0].source.pull_request,i=Rd(o.links&&o.links.html&&o.links.html.href);return i&&n.push({label:"Pull request",url:i}),t.forEach(function(t,r){var o=t.event,i=o.links&&o.links.self&&o.links.self.href,a="comment"===t.eventName?Yd(i,e,"/comments/"+o.id):null,l=Rd(o.links&&o.links.html&&o.links.html.href),s=o.user||o.author||o.actor,c=Rd(s&&s.links&&s.links.html&&s.links.html.href);a&&n.push({label:"Activity record "+(r+1),url:a}),l&&n.push({label:"Activity view "+(r+1),url:l}),c&&n.push({label:"Actor for activity "+(r+1),url:c})}),n}(r,i,a)));var d=u.filter(Boolean).join("\n\n"),m=Md(o);a.next.provided&&!a.next.url&&delete m.next,a.previous.provided&&!a.previous.url&&delete m.previous;var p=document.createElement("pre");return p.textContent=JSON.stringify(m,null,2),{title:c,siteName:"Bitbucket",excerpt:nm(i[0].eventName)+": "+(rm(i[0].event)||Jd(r.community)),html:p.outerHTML,markdown:d,textContent:t(d),warningReasons:s?["bitbucket_cloud_activity_incomplete"]:[],hostAware:!0,readerMode:!1,contentType:"list"}}function im(e){var t=Kd(e,"statuses");return t?(t.statusesPath=t.resourcePath,t):null}function am(e,t,n){var o=Rd(e);if(!o)return!1;try{var i=new URL(o),a=new RegExp("^/(?:!api/)?2\\.0/repositories/([^/]+)/([^/]+)"+n+"/?$"),l=i.pathname.match(a);return i.origin===location.origin&&!!l&&r(l[1]).toLowerCase()===t.workspace.toLowerCase()&&r(l[2]).toLowerCase()===t.repository.toLowerCase()}catch(e){return!1}}function lm(e,t,r){if(!e||"object"!=typeof e||Array.isArray(e))return!1;if("build"!==e.type||"string"!=typeof e.key||!e.key.trim())return!1;if("string"!=typeof e.state||!e.state.trim())return!1;var n=e.commit,o=e.repository;if(!n||"commit"!==n.type||"string"!=typeof n.hash)return!1;if(!o||"repository"!==o.type||"string"!=typeof o.full_name)return!1;if("string"!=typeof o.uuid)return!1;var i=n.hash.trim().toLowerCase(),a=o.full_name.trim().toLowerCase(),l=o.uuid.trim().toLowerCase();if(!/^[0-9a-f]{40}$/.test(i))return!1;if(a!==t.community.toLowerCase())return!1;if(!/^\{[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\}$/.test(l))return!1;if(r&&l!==r)return!1;var s=o.links&&o.links.self&&o.links.self.href,c=n.links&&n.links.self&&n.links.self.href,u=e.links&&e.links.self&&e.links.self.href;return am(s,t,"")&&am(c,t,"/commit/"+i)&&am(u,t,"/commit/"+i+"/statuses/build/[^/]+")}function sm(e,t){if(null==e)return{provided:!1,url:null};if("string"!=typeof e)return{provided:!0,url:null};var r=Rd(e);if(!r)return{provided:!0,url:null};try{var n=new URL(r),o=im(n.pathname),i=0===n.pathname.indexOf("/!api/2.0/")?"/!api/2.0":"/2.0",a=0===t.statusesPath.indexOf("/!api/2.0/")?"/!api/2.0":"/2.0";return{provided:!0,url:o&&n.origin===location.origin&&!n.hash&&i===a&&o.community.toLowerCase()===t.community.toLowerCase()&&o.number===t.number&&n.href!==location.href?n.href:null}}catch(e){return{provided:!0,url:null}}}function cm(e){var r=im(location.pathname),n=r&&function(e,t){if(!Array.isArray(e.values))return null;if(!Number.isInteger(e.page)||e.page<=0)return null;if(!Number.isInteger(e.pagelen)||e.pagelen<=0)return null;if(!Number.isInteger(e.size)||e.size<0)return null;if(e.values.length>e.pagelen||e.values.length>e.size)return null;if(0===e.values.length)return null;for(var r=null,n=0;n<e.values.length;n+=1){if(!lm(e.values[n],t,r))return null;r=e.values[n].repository.uuid.trim().toLowerCase()}return{payload:e,repositoryUuid:r}}(Vd()||{},r);if(!n)return null;e&&(e.language=null);var o=n.payload,i={previous:sm(o.previous,r),next:sm(o.next,r)},a=!i.next.url&&(o.page-1)*o.pagelen+o.values.length<o.size,l=a||i.previous.provided&&!i.previous.url||i.next.provided&&!i.next.url,s="Bitbucket pull request "+r.number+" build statuses",c=["# "+s,"- Repository: "+Jd(r.community),"- Pull request: "+r.number,"- Statuses shown on this API page: "+o.values.length,"- Page: "+o.page,"- Page length: "+o.pagelen,"- Total statuses: "+o.size];if(o.values.forEach(function(e,t){c=c.concat(function(e,t){var r=["### Status "+(t+1)+": "+(Jd(e.name)||Jd(e.key)||"Status "+(t+1))];[["State",e.state],["Key",e.key],["Reference",e.refname],["Commit",e.commit&&e.commit.hash],["Description",e.description],["Created",e.created_on],["Updated",e.updated_on]].forEach(function(e){var t=Jd(e[1]);t&&r.push("- "+e[0]+": "+t)});var n=Md(e);return r.push("#### Complete status record",hn("json",JSON.stringify(n,null,2)).trim()),r}(e,t))}),l){var u=a?"API counters indicate omitted statuses, but no safe next page was available.":"A pagination continuation was present but could not be safely traversed.";c.push("## Retrieval warning",u)}c.push(Le("Browse these Bitbucket build statuses",function(e,t,r){var n=[{label:"Pull request API",url:location.origin+e.pullRequestPath},{label:"Statuses API",url:location.origin+e.statusesPath}];return r.previous.url&&n.push({label:"Previous statuses API page",url:r.previous.url}),r.next.url&&n.push({label:"Next statuses API page",url:r.next.url}),t.values.forEach(function(e,t){var r=Jd(e.name)||Jd(e.key)||String(t+1),o=Rd(e.url),i=Rd(e.links&&e.links.self&&e.links.self.href),a=Rd(e.commit&&e.commit.links&&e.commit.links.html&&e.commit.links.html.href);o&&n.push({label:"Build result for "+r,url:o}),i&&n.push({label:"Status record "+(t+1),url:i}),a&&n.push({label:"Commit for "+r,url:a})}),n}(r,o,i)));var d=c.filter(Boolean).join("\n\n"),m=Md(o);i.next.provided&&!i.next.url&&delete m.next,i.previous.provided&&!i.previous.url&&delete m.previous;var p=document.createElement("pre");p.textContent=JSON.stringify(m,null,2);var f=o.values[0];return{title:s,siteName:"Bitbucket",excerpt:f?Jd(f.state)+": "+(Jd(f.name)||Jd(f.key)):"No build statuses returned on this API page.",html:p.outerHTML,markdown:d,textContent:t(d),warningReasons:l?["bitbucket_cloud_statuses_incomplete"]:[],hostAware:!0,readerMode:!1,contentType:"list"}}function um(e){return t(e&&e.path)}function dm(e,t){var r=[];[["Old",e.old],["New",e.new]].forEach(function(e){var t=e[1];if(t&&"object"==typeof t){var n=function(e){var t=e&&e.links||{};return a(t.html&&t.html.href)||a(t.self&&t.self.href)}(t);n&&r.push({label:e[0]+" source for "+um(t),url:n})}});var n=a(e.links&&e.links.self&&e.links.self.href);return n&&r.push({label:"Diffstat record "+(t+1),url:n}),r}function mm(e,r){var n=function(e){var r=window.__fetchUtilBitbucketPullDiff;if(!r||!r.route||r.route.workspace!==e.workspace||r.route.repository!==e.repository||t(r.route.number)!==e.number)return null;if("failed"===r.status)return r;if("ready"!==r.status||!r.metadata||!Array.isArray(r.values))return null;var n=r.metadata.destination&&r.metadata.destination.repository||{};return t(r.metadata.id)!==e.number||t(n.full_name).toLowerCase()!==e.community.toLowerCase()?null:r}(r);if(!n)return null;if("failed"===n.status)return function(e,r,n){var o=t(e.title||document.title||"Bitbucket pull request")+" - Changed files",i=["# "+o,"## Retrieval warning","Bitbucket diffstat preparation failed; visible page content may be incomplete."," "+t(n.reason||"Bitbucket diffstat preparation failed"),Le("Browse this Bitbucket pull request",Zd(r))].join("\n\n");return{title:o,siteName:"Bitbucket",html:"",markdown:i,textContent:t(i),contentType:"list",hostAware:!0,readerMode:!1,warningReasons:["bitbucket_cloud_diffstat_incomplete"]}}(e,r,n);var o=t(g(["[data-testid='pr-header'] h1","[data-testid='pr-header'] [role='heading']","h1"])||e.title||document.title||"Bitbucket pull request")+" - Changed files",i=["# "+o,"- Changed files shown: "+n.values.length,"## Changed files"],a=Zd(r);n.values.forEach(function(e,r){i=i.concat(function(e,r){var n=um(e.old),o=um(e.new),i=["### "+(o||n||"Changed file "+(r+1))],a=t(e.status);a&&i.push("- Status: "+a),n&&n!==o&&i.push("- Old path: "+n),o&&i.push("- New path: "+o),Number.isFinite(e.lines_added)&&i.push("- Lines added: "+e.lines_added),Number.isFinite(e.lines_removed)&&i.push("- Lines removed: "+e.lines_removed),e.old&&e.old.attributes&&i.push("- Old attributes: "+JSON.stringify(Md(e.old.attributes))),e.new&&e.new.attributes&&i.push("- New attributes: "+JSON.stringify(Md(e.new.attributes)));var l=Md(e);return i.push("- Complete diffstat record: "+JSON.stringify(l)),i}(e,r)),a=a.concat(dm(e,r))});var l=Array.prototype.slice.call(document.querySelectorAll("article[data-qa='branch-diff-file']")).filter(function(e){return!Vt(e)});l.length&&(i.push("## Loaded diff content"),l.forEach(function(e){var t=Dd(e);if(t){rr(t,"button, [role='tooltip'], [data-testid*='menu'], [data-qa*='menu']");var r=mn(Jn(t.innerHTML));r&&i.push(r)}})),i.push(Le("Browse this Bitbucket pull request",a));var s=i.filter(Boolean).join("\n\n");return{title:o,siteName:"Bitbucket",excerpt:n.values.length?t(um(n.values[0].new)||um(n.values[0].old)):o,html:l.map(function(e){var t=Dd(e);return t?t.outerHTML:""}).filter(Boolean).join("\n"),markdown:s,textContent:t(s),contentType:"list",hostAware:!0,readerMode:!1}}function pm(e,n){var o=new Set;return Array.prototype.slice.call(e.querySelectorAll("a[aria-label^='Commit: '][href*='/commits/']")).map(function(e){var i=function(e,n){if(!e||!n)return null;var o=t(e.getAttribute("aria-label")).match(/^Commit:\s*([0-9a-f]{7,40})$/i);if(!o)return null;try{var i=new URL(e.href,location.href),a=i.pathname.match(/^\/([^/]+)\/([^/]+)\/commits\/([0-9a-f]{40})\/?$/i);return i.origin===location.origin&&a?r(a[1])!==n.workspace||r(a[2])!==n.repository||0!==a[3].toLowerCase().indexOf(o[1].toLowerCase())?null:{hash:a[3].toLowerCase(),url:i.href}:null}catch(e){return null}}(e,n),a=e.closest("tr, [role='row']");return!i||!a||Vt(a)||o.has(i.hash)?null:(o.add(i.hash),{hash:i.hash,node:a})}).filter(Boolean)}function fm(e){var t=Dd(e.node);return t?(rr(t,"button, [role='tooltip'], [data-testid*='menu'], [data-qa*='menu']"),mn(Jn(t.innerHTML))):""}function hm(e){var r=Nd();if(!r||!zd(r))return null;if("diff"===r.surface)return mm(e,r);if("commits"!==r.surface)return null;var n=function(){var e=document.querySelector("[role='tabpanel'][id^='pull-request-tabs-']");if(e)return e;var t=document.querySelector("[data-qa^='commit-hash-wrapper-']");return t&&t.closest("table, [role='grid']")}();return n&&function(e,r,n){var o=pm(n,r).map(function(e){return{record:e,markdown:fm(e)}}).filter(function(e){return!!t(e.markdown)});if(!o.length)return null;var i=t(g(["[data-testid='pr-header'] h1","[data-testid='pr-header'] [role='heading']","h1"])||e.title||document.title||"Bitbucket pull request")+" - Commits",a=["# "+i,"- Commits shown: "+o.length,"## Commits"];o.forEach(function(e,t){a.push("### Commit "+(t+1),e.markdown)}),a.push(Le("Browse this Bitbucket pull request",Zd(r)));var l=a.filter(Boolean).join("\n\n");return{title:i,siteName:"Bitbucket",excerpt:t(o[0].markdown),html:o.map(function(e){var t=Dd(e.record.node);return t?t.outerHTML:""}).filter(Boolean).join("\n"),markdown:l,textContent:t(l),hostAware:!0,readerMode:!1,contentType:"list"}}(e,r,n)}function gm(e){var t=Dd(e);return t?(rr(t,"[data-testid='comment']"),t):null}function ym(e,r){var n=function(e){return Fd(e,"[data-testid='comment-content'], comment-content")}(e),o=[Ud(Fd(e,"[data-testid='multiline-comment-header'], [data-testid='inline-comment-context']")),Ud(n)].filter(Boolean).join("\n\n");if(!t(o))return null;var i=function(e,r){var n=e&&e.matches&&e.matches("[data-testid='comment']")?Hd(e,"a[href*='#comment-']").find(function(e){return!Xt(e)}):e&&e.querySelector("a[href*='#comment-']"),o=a(n&&n.getAttribute("href"));if(o)try{var i=new URL(o),l=[r.basePath,r.basePath+"/diff",r.basePath+"/_/diff"];if(i.origin===location.origin&&l.indexOf(i.pathname.replace(/\/$/,""))>=0&&/^#comment-\d+$/.test(i.hash))return i.href}catch(e){}var s=t(e&&(e.id||e.getAttribute("data-comment-id")));return/^comment-\d+$/.test(s)?Bd(r)+"#"+s:/^\d+$/.test(s)?Bd(r)+"#comment-"+s:null}(e,r),l=i&&/\/(?:_\/)?diff#comment-\d+$/.test(i)?"Review":"Comment";return{sourceNode:gm(e),kind:l,author:Wd(e),markdown:o,permalink:i,timestamp:Gd(e)}}function bm(e){var r=function(){var e=Nd();return!e||e.surface&&"overview"!==e.surface?null:e}();if(!r)return null;var n,o=(n=document.querySelector("[data-testid='pr-header']"))?n.closest("main")||document.querySelector("main")||n.parentElement:document.querySelector("main");if(!function(e,t){return zd(e)&&!!t&&!!Od(t)}(r,o))return null;var i=Od(o);if(!i||Vt(i))return null;var a=t(Id(o,["[data-testid='pr-header'] h1","[data-testid='pull-request-title']","h1"])||e.title||document.title);if(!a)return null;var l=function(e){return Ud(e&&e.querySelector("[data-testid='pull-request-description'], [data-testid='description-content']")||e)}(i),s=Wd(i)||Id(o,["[data-testid='pull-request-author']"]),c=function(e,t,r){var n=Array.prototype.slice.call(e.querySelectorAll("[data-testid='comment']")).filter(function(e){return!Vt(e)&&e!==t&&!e.contains(t)&&!t.contains(e)}),o=new Set;return n.map(function(e){return ym(e,r)}).filter(function(e){if(!e||!e.permalink)return!!e;var t="";try{t=new URL(e.permalink).hash}catch(e){}return!t||o.has(t)?!t:(o.add(t),!0)})}(o,i,r),u=["# "+a];s&&u.push("- Author: "+s),u.push("- Pull Request: "+r.community,"## "+Se("Opening",Bd(r))),l&&u.push(l);var d=function(e){var r=[],n=new Set;return["[data-testid='pr-cards-list']","[data-testid='bb-sidebar']"].forEach(function(o){Array.prototype.slice.call(e.querySelectorAll(o)).forEach(function(e){if(!Vt(e)){var o=Ud(e),i=t(o);i&&!n.has(i)&&(n.add(i),r.push(o))}})}),r.length?"## Metadata\n\n"+r.join("\n\n"):""}(o);d&&u.push(d),c.length&&u.push("## Conversation"),u=u.concat(function(e){var t=[];return e.forEach(function(e){var r=e.kind+(e.author?" by "+e.author:"");t.push("### "+(e.permalink?Se(r,e.permalink):r)),e.timestamp&&t.push("- Time: "+e.timestamp),t.push(e.markdown)}),t}(c)),u.push(Le("Browse this Bitbucket pull request",Zd(r)));var m=[Dd(i)].concat(c.map(function(e){return e.sourceNode})),p=u.filter(Boolean).join("\n\n");return{title:a,byline:s,excerpt:t(l),siteName:"Bitbucket",publishedTime:Gd(i)||e.publishedTime,html:m.filter(Boolean).map(function(e){return e.outerHTML}).join("\n"),markdown:p,textContent:t(p),hostAware:!0,readerMode:!1,contentType:"social",socialKind:"thread",threadConversation:!0,platform:"Bitbucket",handle:s,replyCount:null,community:r.community}}function vm(e,t){if(!e)return null;var n=e[1];if(/^\//.test(n)||/\/\//.test(n))return null;var o=n.split("/").filter(Boolean);if(!o.length||o.some(function(e){return!/^[\w.%+~-]+$/.test(e)}))return null;var i=o.join("/"),a=Am()||"",l=a.replace(/^\/+|\/+$/g,""),s=i;if(l&&0===s.indexOf(l+"/")&&(s=s.slice(l.length+1)),!s)return null;var c=a+"/"+s;return{projectPath:s,community:r(s),number:e[2],basePath:c,apiPrefix:a+"/api/0",itemPath:c+"/"+t+"/"+e[2]}}function wm(e,r){return Array.prototype.slice.call(e.querySelectorAll("h1, h2, h3, h4")).find(function(e){return new RegExp("^#"+r.number+"(?:\\s|$)").test(t(e.textContent))})||null}function Am(){var e=new Set(Array.prototype.slice.call(document.querySelectorAll("script[src]")).map(function(e){var t=e.getAttribute("src");if(!t)return null;try{var r=new URL(t,location.href);return r.origin===location.origin?{pathname:r.pathname,search:r.search}:null}catch(e){return null}}).filter(Boolean).map(function(e){return e.pathname})),t=Array.from(e).filter(function(e){return/\/static\/pagure-common\.js$/i.test(e)}).map(function(e){return e.replace(/\/static\/pagure-common\.js$/i,"")}).filter(function(t){return e.has(t+"/static/pagure-relative-dates.js")});Array.from(e).filter(function(e){return/\/static\/comments\.js$/i.test(e)}).map(function(e){return e.replace(/\/static\/comments\.js$/i,"")}).filter(function(t){return e.has(t+"/static/reactions.js")}).forEach(function(e){t.indexOf(e)<0&&t.push(e)});var r=location.pathname||"/",n=t.filter(function(e){return!e||r===e||0===r.indexOf(e+"/")}).sort(function(e,t){return t.length-e.length});return n.length?n[0]:null}function Sm(){return null!==Am()}function xm(e,t){var r=e.basePath+(t||"");return Array.prototype.slice.call(document.querySelectorAll("a[href]")).find(function(e){try{var t=new URL(e.getAttribute("href"),location.href);return t.origin===location.origin&&t.pathname.replace(/\/$/,"")===r}catch(e){return!1}})||null}function km(e){return!(!xm(e,"")||!xm(e,"/issues"))}function Cm(e){return Array.prototype.slice.call(document.querySelectorAll("h1, h2, h3, h4")).find(function(r){return Array.prototype.slice.call(r.querySelectorAll(".font-weight-bold")).some(function(r){return t(r.textContent)==="#"+e.number})||new RegExp("^#"+e.number+"(?:\\s|$)").test(t(r.textContent))})||null}function qm(e){var t=e&&e.querySelector("#comment-0");return t&&t.closest(".card")||e&&e.querySelector(".col-md-8 > .card.mb-3, .col-md-8 > .card")}function Em(e){var t=function(e){return e?e.matches&&e.matches(".comment_text.comment_body, .comment_body, .autogenerated-comment")?e:e.querySelector(".comment_text.comment_body, .comment_body, .autogenerated-comment"):null}(e);if(!t)return"";var r=Qt(t);return rr(r,"button, form, [role='tooltip'], .issue_actions, .issue_reactions, .comment-reactions"),mn(Jn(r.innerHTML))}function Tm(e){var r=e&&(e.matches(".autogenerated-comment")?e:e.querySelector(".autogenerated-comment"));if(r){var n=t(r.textContent),o=n.match(/\bfrom\s+@?([\w.+~-]+)/i)||n.match(/\bby\s+@?([\w.+~-]+)/i);return o?o[1].replace(/[.,;:!?]+$/,""):""}var i=e&&e.matches(".card")?e.querySelector(":scope > .card-header"):e&&e.closest(".card")&&e.closest(".card").querySelector(":scope > .card-header"),a=i&&i.querySelector(".font-weight-bold, [data-testid='author']");return t(a&&(a.getAttribute("title")||a.textContent))}function _m(e){var r=e&&e.querySelector("time[datetime]");return t(r&&r.getAttribute("datetime"))}function Lm(e){var r=e.querySelector(".col-md-4");if(!r||Vt(r))return null;var n=Qt(r);rr(n,"button, form, [role='tooltip'], .dropdown-menu");var o=mn(Jn(n.innerHTML));return t(o)?{node:n,markdown:o}:null}function jm(){var e=Array.prototype.slice.call(document.querySelectorAll(".alert")).find(function(e){return!Vt(e)&&/static archive|read-only snapshot/i.test(t(e.textContent))});if(!e)return null;var r=Qt(e),n=mn(Jn(r.innerHTML));return t(n)?{node:r,markdown:n}:null}function Pm(e){var t=[];return e.forEach(function(e){var r=e.kind+(e.author?" by "+e.author:"");t.push("### "+(e.permalink?Se(r,e.permalink):r)),e.timestamp&&t.push("- Time: "+e.timestamp),e.context&&t.push("- Context: "+e.context),t.push(e.markdown)}),t}function $m(e,t){var r=e&&e.matches("[id^='comment-']")?e:e&&e.querySelector("[id^='comment-'], a[href*='#comment-']"),n=a(r&&(r.id?"#"+r.id:r.getAttribute("href")));if(!n)return null;try{var o=new URL(n);return o.origin!==location.origin||o.pathname.replace(/\/$/,"")!==t?null:/^#comment-\d+$/.test(o.hash)?location.origin+t+o.hash:null}catch(e){return null}}function Nm(e,t){return $m(e,t.issuePath)}function Rm(e,r){var n=e.querySelector("#comments");if(!n)return[];var o=Array.prototype.slice.call(n.children).filter(function(e){return!Vt(e)&&(e.matches(".card, .autogenerated-comment")||!!e.querySelector(".autogenerated-comment"))}).map(function(e){return function(e,r){var n=Em(e);if(!t(n))return null;var o=!e.matches(".card")&&(e.matches(".autogenerated-comment")||!!e.querySelector(".autogenerated-comment")),i=Qt(e);return rr(i,"button, form, [role='tooltip'], .issue_actions, .issue_reactions, .comment-reactions"),{sourceNode:i,kind:o?"Event":"Comment",author:Tm(e),markdown:n,permalink:o?null:Nm(e,r),timestamp:_m(e)}}(e,r)});return cu(o)}function Mm(e){var r=function(){var e=vm((location.pathname||"").match(/^\/(.+)\/issue\/(\d+)\/?$/),"issue");return e&&(e.issuePath=e.itemPath),e}();if(!r)return null;var n=document.querySelector(".repo-body-container")||document.querySelector("main")||(document.querySelector("#original_comment_box")||{}).parentElement;if(!function(e,t){return!!(e&&t&&Sm()&&km(e))&&!!(t.querySelector("#original_comment_box #comment-0, #comment-0.issue_comment")&&t.querySelector("#comments")&&wm(t,e))}(r,n))return null;var o=function(e){return e.querySelector("#original_comment_box #comment-0, #comment-0.issue_comment")}(n),i=function(e,r,n){var o=wm(e,r);return t((o&&o.querySelector(":scope > div")||o||{}).textContent||"").replace(new RegExp("^#"+r.number+"\\s*"),"")||t(n.title||document.title)}(n,r,e);if(!o||!i)return null;var a=Em(o),l=function(e,r){var n=wm(e,r),o=n&&Array.prototype.slice.call(n.querySelectorAll("small span")).map(function(e){return t(e.textContent)}).find(function(e){return/^by\s+@?[\w.-]+\.?$/i.test(e)}),i=o&&o.match(/^by\s+@?([\w.-]+)/i);if(i)return i[1].replace(/[.,;:!?]+$/,"");var a=n&&n.querySelector("[data-testid='author']");return t(a&&a.textContent)}(n,r),s=Rm(n,r),c=jm(),u=Lm(n),d=["# "+i,"- Issue: "+r.community];l&&d.push("- Author: "+l),c&&d.push("## Archive status",c.markdown),d.push("## "+Se("Opening",location.origin+r.issuePath+"#comment-0")),a&&d.push(a),u&&d.push("## Metadata",u.markdown),s.length&&d.push("## Timeline"),(d=d.concat(Pm(s))).push(function(e){var t=location.origin+e.apiPrefix+"/"+e.projectPath+"/issue/"+e.number+"?comments=true",r=[{label:"Project",url:location.origin+e.basePath},{label:"Issues",url:location.origin+e.basePath+"/issues"},{label:"Issue page",url:location.origin+e.issuePath},{label:"Issue API",url:t,detail:"When enabled, this includes comments. Static archives and some installations may not expose this route."}];return xm(e,"/pull-requests")&&r.splice(2,0,{label:"Pull requests",url:location.origin+e.basePath+"/pull-requests"}),Le("Browse this Pagure issue",r)}(r));var m=[Qt(o)].concat(s.map(function(e){return e.sourceNode}));return u&&m.push(u.node),c&&m.push(c.node),{title:i,byline:l,excerpt:t(a),siteName:"Pagure",publishedTime:_m(n)||e.publishedTime,html:m.filter(Boolean).map(function(e){return e.outerHTML}).join("\n"),markdown:d.filter(Boolean).join("\n\n"),textContent:t([i,a].concat(s.map(function(e){return e.markdown})).join(" ")),hostAware:!0,readerMode:!1,contentType:"social",socialKind:"thread",threadConversation:!0,platform:"Pagure",handle:l,replyCount:null,community:r.community}}function Bm(e,r){var n=e.querySelector("section.request_comment");if(!n)return[];var o=n.querySelector(":scope > form")||n,i=Array.prototype.slice.call(o.children).filter(function(e){return!Vt(e)&&(e.matches(".card, .autogenerated-comment")||!!e.querySelector(".autogenerated-comment"))}).map(function(e){return function(e,r){var n=Em(e);if(!t(n))return null;var o=!e.matches(".card")&&(e.matches(".autogenerated-comment")||!!e.querySelector(".autogenerated-comment")),i=Qt(e);rr(i,"button, form, [role='tooltip'], .issue_actions, .issue_reactions, .comment-reactions");var a=e.querySelector(".card-header"),l=a&&a.querySelector(".inline_comment_link_btn"),s=t(l&&l.textContent),c=/^\d+\s+of\s+.+$/i.test(s)?"on line "+s:"";return{sourceNode:i,kind:o?"Event":"Comment",author:Tm(e),context:c,markdown:n,permalink:o?null:$m(e,r.pullPath),timestamp:_m(e)}}(e,r)});return cu(i)}function Om(e){var t=[{label:"Project",url:location.origin+e.basePath},{label:"Issues",url:location.origin+e.basePath+"/issues"},{label:"Pull requests",url:location.origin+e.basePath+"/pull-requests"},{label:"Pull request page",url:location.origin+e.pullPath}],r=function(e){var t=new Set([e.pullPath+".patch",e.pullPath+"/"+e.number+".patch"]),r=Array.prototype.slice.call(document.querySelectorAll("a[href]")).find(function(e){try{var r=new URL(e.getAttribute("href"),location.href);return r.origin===location.origin&&t.has(r.pathname)}catch(e){return!1}});return r?a(r.getAttribute("href")):null}(e);return r&&t.push({label:"Patch",url:r}),t.push({label:"Pull request API",url:location.origin+e.apiPrefix+"/"+e.projectPath+"/pull-request/"+e.number,detail:"When enabled. Static archives and some installations may not expose this route."}),Le("Browse this Pagure pull request",t)}function zm(e){var r=function(){var e=vm((location.pathname||"").match(/^\/(.+)\/pull-request\/(\d+)\/?$/),"pull-request");return e&&(e.pullPath=e.itemPath),e}();if(!r)return null;var n=document.querySelector("#pr-wrapper");if(!function(e,t){if(!(e&&t&&Sm()&&km(e)))return!1;var r=qm(t),n=t.querySelector("section.request_comment"),o=Cm(e);return!!(r&&n&&o)}(r,n))return null;var o=qm(n),i=function(e,r){var n=Cm(e),o=n&&n.querySelector(":scope > div:first-child"),i=o&&Array.prototype.slice.call(o.querySelectorAll(".font-weight-bold")).map(function(e){return t(e.textContent)});return i&&i.find(function(t){return t&&t!=="#"+e.number})||t(r.title||document.title)}(r,e);if(!o||!i)return null;var a=Em(o),l=function(e){for(var r=Cm(e),n=r&&Array.prototype.slice.call(r.querySelectorAll(".font-weight-bold, strong")).find(function(e){return/^Opened$/i.test(t(e.textContent))}),o=n&&n.closest("small"),i=n&&n.parentElement&&n.parentElement.nextElementSibling;i&&o&&o.contains(i);){var a=t(i.textContent),l=a.match(/^by\s+(.+?)[.]?$/i);if(l)return(/^by\s+/i.test(a)&&t(i.getAttribute("title"))||l[1]).replace(/[.,;:!?]+$/,"");i=i.nextElementSibling}var s=t(o&&o.textContent),c=s.search(/\bOpened\b/i),u=c>=0&&s.slice(c).match(/\bOpened\b[\s\S]*?\bby\s+@?([^\s.,;:!?]+)/i);return u?u[1]:""}(r),s=Bm(n,r),c=jm(),u=Lm(n),d=["# "+i,"- Pull request: "+r.community];l&&d.push("- Author: "+l),c&&d.push("## Archive status",c.markdown);var m=location.origin+r.pullPath+(o.querySelector("#comment-0")?"#comment-0":"");d.push("## "+Se("Opening",m)),a&&d.push(a),u&&d.push("## Metadata",u.markdown),s.length&&d.push("## Timeline"),(d=d.concat(Pm(s))).push(Om(r));var p=[Qt(o)].concat(s.map(function(e){return e.sourceNode}));return u&&p.push(u.node),c&&p.push(c.node),{title:i,byline:l,excerpt:t(a),siteName:"Pagure",publishedTime:_m(o)||e.publishedTime,html:p.filter(Boolean).map(function(e){return e.outerHTML}).join("\n"),markdown:d.filter(Boolean).join("\n\n"),textContent:t([i,a].concat(s.map(function(e){return e.markdown})).join(" ")),hostAware:!0,readerMode:!1,contentType:"social",socialKind:"thread",threadConversation:!0,platform:"Pagure",handle:l,replyCount:null,community:r.community}}function Im(e){var t=a(e);if(!t)return null;try{return new URL(t).origin===location.origin?t:null}catch(e){return null}}function Hm(e){var t=document.head&&Array.prototype.slice.call(document.head.querySelectorAll(":scope > meta[name='"+e+"'][content]"));return t&&1===t.length?t[0]:null}function Fm(e){return e&&Array.prototype.slice.call(e.children).find(function(e){return e.matches("div")})||null}function Dm(e){return e&&e.closest(".container > .row")}function Um(){return Array.prototype.slice.call(document.querySelectorAll(".container .event-list.commit-diff")).find(function(e){return!Vt(e)})||null}function Wm(e){var r=Fm(e),n=t(r&&r.textContent).match(/\b[0-9a-f]{40}\b/i);return n?n[0].toLowerCase():""}function Gm(e,t){return Array.prototype.slice.call((t||document).querySelectorAll("a[href]")).find(function(t){var r=Im(t.getAttribute("href"));return r&&new URL(r).pathname.replace(/\/$/,"")===e.replace(/\/$/,"")})||null}function Zm(e){return e&&Array.prototype.slice.call(e.querySelectorAll(":scope > .event.diff > pre")).find(function(e){return!Vt(e)&&!e.querySelector("a.lineno, strong.text-info")})||null}function Km(e){return function(e){var r=t(e&&e.textContent),n=r.match(/([\d,]+) insertions?\(\+\)/i),o=r.match(/([\d,]+) deletions?\(-\)/i);return n||o?Number((n?n[1]:"0").replace(/,/g,""))+Number((o?o[1]:"0").replace(/,/g,"")):null}(e)<=1e4?null:Array.prototype.slice.call(document.querySelectorAll(".container .alert.alert-warning")).find(function(e){return!Vt(e)&&/diff is too large to display/i.test(t(e.textContent))})||null}function Vm(e,n,o){if(!e||!n||!o)return!1;var i=Wm(n),a=n.querySelector(":scope > pre.commit");if(!i||!a||!t(a.textContent))return!1;var l=r(e.revision);if(/^[0-9a-f]+$/i.test(l)&&(l.length<4||l.length>40||0!==i.indexOf(l.toLowerCase())))return!1;var s=Dm(n),c=s&&Gm(e.repositoryPath+"/commit/"+i+".patch",s),u=s&&Gm(e.repositoryPath+"/tree/"+i,s);return Array.prototype.slice.call(document.querySelectorAll("link[href], script[src]")).some(function(e){var t=Im(e.getAttribute("href")||e.getAttribute("src"));return!(!t||!/\/static\/git\.sr\.ht\/main\.min\.[a-z0-9]+\.css$/i.test(new URL(t).pathname))})&&function(e){var r=Hm("forge:summary"),n=Hm("vcs"),o=r&&Im(r.getAttribute("content"));return!(!o||!n||"git"!==t(n.getAttribute("content")).toLowerCase())&&new URL(o).pathname.replace(/\/$/,"")===e.repositoryPath&&["forge:dir","forge:file","forge:rawfile","forge:line"].every(function(t){var r=Hm(t),n=r&&r.getAttribute("content");if(!n)return!1;try{var o=new URL(n.replace(/\{[^}]+\}/g,"placeholder"),location.href);return o.origin===location.origin&&0===o.pathname.indexOf(e.repositoryPath+"/")}catch(e){return!1}})}(e)&&function(e){var t=new Set(Array.prototype.slice.call(document.querySelectorAll(".resource-nav > a[href]")).map(function(e){var t=Im(e.getAttribute("href"));return t&&new URL(t).pathname.replace(/\/$/,"")}).filter(Boolean));return[e.repositoryPath,e.repositoryPath+"/tree",e.repositoryPath+"/log",e.repositoryPath+"/refs"].every(function(e){return t.has(e)})}(e)&&!!Zm(o)&&!!c&&!!u}function Jm(e){var t=e&&Qt(e);return t?(rr(t,"script, style, noscript, button, form, [role='tooltip'], .dropdown"),mn(Jn(t.innerHTML))):""}function Xm(e,r){var n=Array.prototype.slice.call(e.querySelectorAll("a[href]")).filter(function(e){return!!Im(e.getAttribute("href"))});return t((n[n.length-1]||{}).textContent||"")||"Changed file "+(r+1)}function Ym(e,t){for(var r=Jm(e),n=[Qt(e)].filter(Boolean),o=e.nextElementSibling;o&&!o.matches("pre.mb-0.bg-transparent.p-0");){if(o.matches(".event.diff")&&!Vt(o)){var i=Jm(o);i&&(r+="\n\n"+i);var a=Qt(o);a&&n.push(a)}o=o.nextElementSibling}return{title:Xm(e,t),markdown:r,htmlNodes:n}}function Qm(e){var n=function(){var e=(location.pathname||"").match(/^\/(~[\w.%+-]+)\/([\w.%+-]+)\/commit\/(.+)$/);if(!e||/\/$/.test(location.pathname)||/\.patch$/i.test(e[3]))return null;if(e[3].split("/").some(function(e){var t=r(e);return!e||"."===t||".."===t}))return null;var t="/"+e[1]+"/"+e[2];return{owner:e[1],repository:e[2],revision:e[3],community:e[1]+"/"+e[2],repositoryPath:t,commitPath:t+"/commit/"+e[3]}}(),o=Array.prototype.slice.call(document.querySelectorAll(".container > .row .event-list > .event")).find(function(e){return!(!Fm(e)||!e.querySelector(":scope > pre.commit"))})||null,i=Um();if(!Vm(n,o,i))return null;var a=Wm(o),l=(o.querySelector(":scope > pre.commit").textContent||"").trim(),s=t(l.split(/\r?\n/)[0])||t(e.title)||a,c=function(e,r){var n=Fm(e),o=n&&Qt(n);return o?(rr(o,"small, .ml-2"),t(o.textContent).replace(new RegExp("^"+r+"\\s*(?:-|—)\\s*","i"),"")):""}(o,a),u=function(e){var r=Fm(e),n=r&&r.querySelector("small.pull-right [title]");if(n)return t(n.getAttribute("title"));var o=r&&r.querySelector("small.pull-right time[datetime]");return t(o&&o.getAttribute("datetime"))}(o),d=function(e,r){var n=new Set,o=Fm(e);return Array.prototype.slice.call(o.querySelectorAll("a[href]")).map(function(e){var o=Im(e.getAttribute("href"));if(!o)return null;var i=new URL(o).pathname,a=r.repositoryPath+"/commit/",l=(0===i.indexOf(a)?i.slice(a.length):"").match(/^([0-9a-f]{40})$/i);return!l||n.has(l[1].toLowerCase())?null:(n.add(l[1].toLowerCase()),{id:l[1].toLowerCase(),label:t(e.textContent),url:o})}).filter(Boolean)}(o,n),m=function(e){var r=Fm(e);return Array.prototype.slice.call(r.querySelectorAll("a.ref[href]")).map(function(e){var r=Im(e.getAttribute("href"));return r&&t(e.textContent)?{label:t(e.textContent),url:r}:null}).filter(Boolean)}(o),p=Zm(i),f=Km(p),h=function(e){return Array.prototype.slice.call(e.querySelectorAll(":scope > pre.mb-0.bg-transparent.p-0")).filter(function(e){return!Vt(e)&&t((Qt(e)||{}).textContent||"")})}(i).map(Ym),g=["# "+s].concat(function(e,t,r,n,o){var i=["- Commit: `"+e+"`"];return t&&i.push("- Author: "+t),r&&i.push("- Authored: "+r),n.length?(i.push("- Diff basis: First parent "+Se(n[0].label||n[0].id.slice(0,8),n[0].url)),n.forEach(function(e,t){i.push("- Parent "+(t+1)+": "+Se(e.id,e.url))})):i.push("- Diff basis: Empty tree (root commit)"),o.forEach(function(e){i.push("- Ref: "+Se(e.label,e.url))}),i}(a,c,u,d,m));g.push("## Commit message",hn("text",l).trim());var y=(p.textContent||"").trim();y&&g.push("## Diffstat",hn("text",y).trim()),f?(g.push("## Diff detail","SourceHut did not render file details because this diff exceeds its 10,000 changed-line display boundary."),d.length>1&&g.push("This merge view represents only the first-parent diff; its raw patch may identify another commit.")):h.length?(g.push("## Changed files"),h.forEach(function(e,t){g.push("### File "+(t+1)+": "+e.title,e.markdown)})):g.push("## Changed files","No file changes were rendered for this commit."),g.push(function(e,r,n,o){var i=[],a=Dm(r),l=Um(),s=Array.prototype.slice.call(document.querySelectorAll(".resource-nav > a[href]"));return a&&(s=s.concat(Array.prototype.slice.call(a.querySelectorAll("a[href]")))),l&&(s=s.concat(Array.prototype.slice.call(l.querySelectorAll(":scope > pre > a[href]")))),s.forEach(function(r){if(!Vt(r)){var a=Im(r.getAttribute("href"));if(a){var l=new URL(a);if(0===l.pathname.indexOf(e.repositoryPath)){var s=t(r.textContent)||"Related repository resource";l.pathname===e.repositoryPath+"/commit/"+n+".patch"&&(s=o.length>1?"Raw patch (may not represent this merge commit)":"Raw patch"),i.push({label:s,url:a})}}}}),Le("Browse this SourceHut commit",i)}(n,o,a,d));var b=g.filter(Boolean).join("\n\n"),v=o.closest(".container"),w=v&&Qt(v),A={title:s,byline:c||null,excerpt:t(l),siteName:"SourceHut git",publishedTime:u||null,html:w?w.innerHTML:"",markdown:b,textContent:t(b),hostAware:!0,readerMode:!1,contentType:"article"};return f&&(A.warningReasons=["sourcehut_git_commit_diff_incomplete"]),A}function ep(e){var t=a(e);if(!t)return null;try{return new URL(t).origin===location.origin?t:null}catch(e){return null}}function tp(e){return Array.prototype.slice.call(e.querySelectorAll("dl.row")).find(function(e){var r=Array.prototype.slice.call(e.querySelectorAll("dt")).map(function(e){return t(e.textContent).replace(/:$/,"").toLowerCase()});return r.indexOf("status")>=0&&r.indexOf("submitter")>=0})||null}function rp(e,r){if(!e||!r)return!1;var n=t((r.querySelector(".tracker-owner")||{}).textContent||""),o=t((r.querySelector(".tracker-name")||{}).textContent||""),i=t((r.querySelector(".ticket-id")||{}).textContent||"").replace(/^#/,""),a=t((r.querySelector(".ticket-title")||{}).textContent||""),l=r.querySelector(".event-list.ticket-events"),s=Array.prototype.slice.call(document.querySelectorAll(".header-tabbed.resource-nav.ticket-header a[href]")).some(function(t){var r=ep(t.getAttribute("href"));return r&&new URL(r).pathname.replace(/\/$/,"")===e.trackerPath});return n===e.owner&&o===e.tracker&&i===e.number&&!!a&&!!l&&Array.prototype.slice.call(document.querySelectorAll("link[href], script[src]")).some(function(e){var t=ep(e.getAttribute("href")||e.getAttribute("src"));return!!t&&/\/static\/todo\.sr\.ht\/main\.min\.[a-z0-9]+\.css$/i.test(new URL(t).pathname)})&&s}function np(e){if(!e)return"";var t=Qt(e);return t?(rr(t,"script, style, noscript, button, form, [role='tooltip'], .event-actions, .dropdown"),mn(Jn(t.innerHTML))):""}function op(e){return Array.prototype.slice.call(e.children).find(function(e){return e.matches("h4")})||null}function ip(e,t){var r=op(e),n=r&&r.id;return/^event-\d+$/.test(n||"")&&Array.prototype.slice.call(r.querySelectorAll("a[href]")).find(function(e){try{var r=new URL(e.getAttribute("href"),location.href);return r.origin===location.origin&&r.pathname.replace(/\/$/,"")===t.ticketPath&&r.hash==="#"+n}catch(e){return!1}})?location.origin+t.ticketPath+"#"+n:null}function ap(e){var r=op(e),n=r&&Array.prototype.slice.call(r.querySelectorAll("a[href]")).find(function(e){return/^~[\w.%+-]+$/.test(t(e.textContent))});return t(n&&n.textContent)}function lp(e){var r=e.querySelector(":scope > h4 time[datetime]");if(r)return t(r.getAttribute("datetime"));var n=e.querySelector(":scope > h4 [title]");return t(n&&n.getAttribute("title"))}function sp(e){var t=Array.prototype.slice.call(e.children).find(function(e){return e.matches("blockquote, .event-body")});return t?np(t):""}function cp(e,r){var n=function(e){var r=op(e);if(!r)return"";var n=Qt(r);if(!n)return"";var o=Array.prototype.slice.call(n.querySelectorAll("a[href]")).find(function(e){return/^~[\w.%+-]+$/.test(t(e.textContent))});return o&&o.remove(),Array.prototype.slice.call(n.querySelectorAll("a[href]")).forEach(function(e){try{new URL(e.getAttribute("href"),location.href).hash==="#"+r.id&&e.remove()}catch(e){}}),t(n.textContent)}(e);return[n,sp(e)].filter(Boolean).join("\n\n").replace(/^\s+/gm,"")}function up(e,r){var n=e.querySelector(".event-list.ticket-events");if(!n)return[];var o=Array.prototype.slice.call(n.children).filter(function(e){return e.matches(".event")&&!Vt(e)}).map(function(e){return function(e,r){var n=sp(e),o=cp(e);return t(o)?{sourceNode:Qt(e),kind:n?"Comment":"Event",author:ap(e),timestamp:lp(e),permalink:ip(e,r),markdown:o}:null}(e,r)});return cu(o)}function dp(e){var r=function(){var e=(location.pathname||"").match(/^\/(~[\w.%+-]+)\/([\w.%+-]+)\/(\d+)\/?$/);if(!e)return null;var t="/"+e[1]+"/"+e[2];return{owner:e[1],tracker:e[2],number:e[3],community:e[1]+"/"+e[2],trackerPath:t,ticketPath:t+"/"+e[3]}}();if(!r)return null;var n,o=(n=document.querySelector(".ticket-id"))&&n.closest("main, .container")||document.querySelector("main, .container");if(!rp(r,o))return null;var i=o.querySelector("#description-field"),l=t((o.querySelector(".ticket-title")||{}).textContent||""),s=function(e,r){var n=tp(e);if(!n)return"";var o=r.toLowerCase(),i=Array.prototype.slice.call(n.querySelectorAll("dt")).find(function(e){if(t(e.textContent).replace(/:$/,"").toLowerCase()!==o)return!1;var r=e.nextElementSibling;if(!r||!r.matches("dd"))return!1;var n=Qt(r);return!!t(n&&n.textContent)}),a=i&&i.nextElementSibling,l=a&&Qt(a);return t(l&&l.textContent)}(o,"Submitter"),c=np(i),u=function(e){var r=tp(e);if(!r)return null;var n=Qt(r);if(!n)return null;rr(n,"button, form, script, style, noscript");var o=mn(Jn(n.innerHTML));return t(o)?{node:n,markdown:o}:null}(o),d=up(o,r),m=["# "+l,"- Ticket: "+r.community+"#"+r.number];s&&m.push("- Author: "+s),m.push("## "+Se("Opening",location.origin+r.ticketPath)),c&&m.push(c),u&&m.push("## Metadata",u.markdown),d.length&&m.push("## Timeline"),m=m.concat(function(e){var t=[];return e.forEach(function(e){var r=e.kind+(e.author?" by "+e.author:"");e.permalink&&(r=Se(r,e.permalink)),t.push("### "+r),e.timestamp&&t.push("- Time: "+e.timestamp),t.push(e.markdown)}),t}(d));var p=function(e,t){var r=Array.prototype.slice.call(e.querySelectorAll("a[href^='mailto:']")).find(function(e){return(e.getAttribute("href")||"").indexOf("/"+t.number+"@todo.sr.ht")>=0}),n=r&&r.getAttribute("href");return n?"Email comments: `"+n.replace(/`/g,"")+"`":""}(o,r);p&&m.push(p),m.push(function(e,r){var n=[{label:"Tracker",url:location.origin+e.trackerPath},{label:"Ticket",url:location.origin+e.ticketPath}];return Array.prototype.slice.call(document.querySelectorAll(".project-nav a[href], .resource-nav a[href]")).concat(Array.prototype.slice.call(r.querySelectorAll("dl.row a[href], .event-list.ticket-events a[href]"))).forEach(function(e){var r=e.closest(".project-nav")?a(e.getAttribute("href")):ep(e.getAttribute("href"));r&&n.push({label:t(e.textContent)||"Related resource",url:r})}),Le("Browse this SourceHut ticket",n)}(r,o));var f=[i&&Qt(i)].concat(d.map(function(e){return e.sourceNode}));return u&&f.push(u.node),{title:l,byline:s,excerpt:t(c),siteName:"SourceHut todo",publishedTime:null,html:f.filter(Boolean).map(function(e){return e.outerHTML}).join("\n"),markdown:m.filter(Boolean).join("\n\n"),textContent:t([l,c].concat(d.map(function(e){return e.markdown})).join(" ")),hostAware:!0,readerMode:!1,contentType:"social",socialKind:"thread",threadConversation:!0,platform:"SourceHut",handle:s,replyCount:null,community:r.community}}function mp(e){var t=a(e);if(!t)return null;try{return new URL(t).origin===location.origin?t:null}catch(e){return null}}function pp(){return Array.prototype.slice.call(document.querySelectorAll("link[href], script[src]")).some(function(e){var t=mp(e.getAttribute("href")||e.getAttribute("src"));return!!t&&/\/static\/lists\.sr\.ht\/main\.min\.[a-f0-9]+\.css$/i.test(new URL(t).pathname)})}function fp(e){var r=e&&e.querySelector(":scope > .row:first-child .col-md-12 > h3");if(!r)return null;var n=r.cloneNode(!0);return rr(n,"small, .pull-right, a.btn"),{heading:r,title:t(n.textContent),version:t((r.querySelector(":scope > small")||{}).textContent||""),status:t((r.querySelector(":scope > .pull-right")||{}).textContent||"")}}function hp(e){var t=new Set(Array.prototype.slice.call(document.querySelectorAll(".header-tabbed.resource-nav a[href]")).map(function(e){var t=mp(e.getAttribute("href"));return t?new URL(t).pathname.replace(/\/$/,""):""}));return t.has(e.listPath)&&t.has(e.patchesPath)}function gp(e){var t=function(e){return e&&Array.prototype.slice.call(e.querySelectorAll(":scope > .row > .col-md-12")).find(function(e){return Array.prototype.slice.call(e.children).some(function(e){return!!e.querySelector(":scope > .message-header")})})||null}(e);return t?Array.prototype.slice.call(t.children).filter(function(e){return!Vt(e)&&!!e.querySelector(":scope > .message-header")}):[]}function yp(e){var t=document.querySelector("link[rel='alternate'][type='application/mbox'][href]"),r=t&&mp(t.getAttribute("href"));return r&&new URL(r).pathname.replace(/\/$/,"")===e.threadPath+"/mbox"?r:null}function bp(e,t){var n=e&&e.querySelector(":scope > .date > a[id]");if(!n)return null;var o=Array.prototype.slice.call(e.querySelectorAll("details a[href]")).find(function(e){var o=mp(e.getAttribute("href"));if(!o)return!1;var i=new URL(o).pathname;return!(0!==i.indexOf(t.listPath+"/")||!/\/raw$/.test(i))&&r(i.slice(t.listPath.length+1,-4))===n.id});return o&&mp(o.getAttribute("href"))}function vp(e,r){if(!e||!e.matches("h3"))return null;var n=e&&Array.prototype.slice.call(e.querySelectorAll("a[href]")).find(function(e){var t=mp(e.getAttribute("href"));if(!t)return!1;var n=new URL(t).pathname;return!(0!==n.indexOf(r.listPath+"/")||!/\/raw$/.test(n))&&!!n.slice(r.listPath.length+1,-4)});if(!n)return null;var o=e.cloneNode(!0);return rr(o,"a.btn, button"),{heading:e,subject:t(o.textContent),rawUrl:mp(n.getAttribute("href"))}}function wp(e,t){return Array.prototype.slice.call(e.querySelectorAll("h3")).map(function(e){return vp(e,t)}).filter(Boolean)}function Ap(e,t){var r=Array.prototype.slice.call(e.querySelectorAll("a[href]")).find(function(e){var r=mp(e.getAttribute("href"));return r&&new URL(r).pathname.replace(/\/$/,"")===t.patchsetPath+"/mbox"});return r&&mp(r.getAttribute("href"))}function Sp(e,r){var n=Array.prototype.slice.call(e.querySelectorAll("a[href]")).find(function(e){if(!/view this thread in the archives/i.test(t(e.textContent)))return!1;var n=mp(e.getAttribute("href"));if(!n)return!1;var o=new URL(n).pathname.replace(/\/$/,"");return!!(0===o.indexOf(r.listPath+"/")?o.slice(r.listPath.length+1):"")});return n&&mp(n.getAttribute("href"))}function xp(e){var t=Array.prototype.slice.call(e.querySelectorAll(":scope > .row > .col-md-8")).find(function(e){return!!Array.prototype.slice.call(e.children).find(function(e){return e.matches("pre.message-body")})});return t&&Array.prototype.slice.call(t.children).find(function(e){return e.matches("pre.message-body")})||null}function kp(e,r){var n=document.createElement("div");e.forEach(function(e){var t=Qt(e);t&&n.appendChild(t)}),rr(n,"script, style, noscript, button, form, [role='tooltip'], a.btn"),r&&r.preserveDetails||rr(n,"details, summary");var o=mn(Jn(n.innerHTML));return t(o)?{node:n,markdown:o}:null}function Cp(e,t,n){var o=e&&e.querySelector(":scope > .date > a[id][href]");if(!o)return null;try{var i=new URL(o.getAttribute("href"),location.href),a=document.getElementById(r(i.hash.slice(1)));return i.origin===location.origin&&i.pathname.replace(/\/$/,"")===t.threadPath&&i.hash&&a&&n.contains(a)?location.origin+t.threadPath+i.hash:null}catch(e){return null}}function qp(e){var r=e&&e.querySelector(":scope > .from"),n=r&&Array.prototype.slice.call(r.querySelectorAll(":scope > a[href]")).find(function(e){return!/^mailto:/i.test(e.getAttribute("href")||"")}),o=t(n&&n.textContent);if(o)return o;var i=t(r&&r.textContent),a=i.match(/^(.*?)\s*<([^<>]+)>\s*$/);return a?t(a[1])||t(a[2]):i}function Ep(e){var r=e&&e.querySelector(":scope > .date > a");return t(r&&r.textContent)}function Tp(e,t,n){var o=e&&e.querySelector(":scope > .date > a[href]");if(!o)return null;try{var i=new URL(o.getAttribute("href"),location.href);if(i.origin!==location.origin||i.pathname.replace(/\/$/,"")!==t.patchsetPath||!i.hash)return null;var a=document.getElementById(r(i.hash.slice(1)));return a&&n.contains(a)?location.origin+t.patchsetPath+i.hash:null}catch(e){return null}}function _p(e,t){var r=function(e){var t=xp(e);return t&&t.parentElement}(e),n=xp(e);if(!r)return[];var o=[];return Array.prototype.slice.call(r.children).forEach(function(r){if(r!==n)if(r.matches(".event-list.tool-status"))Array.prototype.slice.call(r.children).forEach(function(e){if(e.matches(".event")){var t=kp([e]);t&&o.push({sourceNode:t.node,kind:"Tool event",markdown:t.markdown})}});else if(r.matches(".alert.alert-info")){var i=kp([r]);i&&o.push({sourceNode:i.node,kind:"Revision notice",markdown:i.markdown})}else if(r.matches(".message-header")){for(var a=[r],l=r.nextElementSibling;l&&!l.matches(".message-header");)a.push(l),l=l.nextElementSibling;var s=kp(a);s&&o.push({sourceNode:s.node,kind:"Feedback",author:qp(r),timestamp:Ep(r),permalink:Tp(r,t,e),markdown:s.markdown})}}),cu(o)}function Lp(e){var t=[];return e.forEach(function(e){var r=e.subject||e.kind;e.author&&(r+=" by "+e.author),e.permalink&&(r=Se(r,e.permalink)),t.push("### "+r),e.timestamp&&t.push("- Time: "+e.timestamp),t.push(e.markdown)}),t}function jp(e){var r=function(){var e=(location.pathname||"").match(/^\/(~[\w.%+-]+)\/([\w.%+-]+)\/patches\/(\d+)\/?$/);if(!e||/^(?:\.{1,2}|\.git|\.hg)$/i.test(e[2]))return null;var t="/"+e[1]+"/"+e[2];return{owner:e[1],list:e[2],number:e[3],community:e[1]+"/"+e[2],listPath:t,patchesPath:t+"/patches",patchsetPath:t+"/patches/"+e[3]}}();if(!r)return null;var n=Array.prototype.slice.call(document.querySelectorAll(".container")).find(function(e){return!!e.querySelector(":scope > .row:first-child .col-md-12 > h3 > small")})||null;if(!function(e,t){var r=fp(t);return!!r&&!!r.title&&/^v\d+$/i.test(r.version)&&["UNKNOWN","PROPOSED","NEEDS REVISION","SUPERSEDED","APPROVED","REJECTED","APPLIED"].indexOf(r.status.toUpperCase())>=0&&!!xp(t)&&pp()&&hp(e)&&!!Ap(t,e)&&!!Sp(t,e)&&wp(t,e).length>0}(r,n))return null;var o=fp(n),i=function(e,r,n){var o=fp(e),i=o&&o.heading.parentElement.querySelector(":scope > .message-header"),a=kp([i,xp(e)].filter(Boolean));if(!a)return null;var l=t((i&&i.querySelector(":scope > .date > a[id]")||{}).id||""),s=n[0],c=s&&s.heading.nextElementSibling,u=t((c&&c.querySelector(":scope > .date > a[id]")||{}).id||"");return{sourceNode:a.node,markdown:a.markdown,author:qp(i),timestamp:Ep(i),generated:!!l&&l===u}}(n,0,wp(n,r)),l=_p(n,r),s=function(e,t){return cu(wp(e,t).map(function(e){for(var r=[e.heading],n=e.heading.nextElementSibling;n&&!vp(n,t);)r.push(n),n=n.nextElementSibling;var o=kp(r);if(!o)return null;var i=function(e){var t=e.heading.nextElementSibling;return t&&t.matches(".message-header")?t:null}(e);return{sourceNode:o.node,kind:"Patch",subject:e.subject,author:qp(i),timestamp:Ep(i),permalink:e.rawUrl,rawUrl:e.rawUrl,markdown:o.markdown}}).filter(Boolean))}(n,r);if(!i||!s.length)return null;var c=["# "+o.title,"- List: "+r.community,"- Version: "+o.version,"- Status: "+o.status];i.author&&c.push("- Author: "+i.author),i.timestamp&&c.push("- Submitted: "+i.timestamp),c.push("## "+(i.generated?"Generated patch summary":"Cover letter"),i.markdown),l.length&&c.push("## Visible review activity"),(c=c.concat(Lp(l))).push("## Patches"),(c=c.concat(Lp(s))).push(function(e,r,n){var o=[{label:"List archive",url:location.origin+e.listPath},{label:"Patchsets",url:location.origin+e.patchesPath},{label:"Current patchset",url:location.origin+e.patchsetPath}],i=Ap(r,e);i&&o.push({label:"Patchset mbox",url:i,detail:"Patches only"});var l=Sp(r,e);return l&&(o.push({label:"Archive thread",url:l}),o.push({label:"Full thread mbox",url:l.replace(/\/$/,"")+"/mbox"})),n.forEach(function(e){o.push({label:"Raw patch: "+e.subject,url:e.rawUrl})}),Array.prototype.slice.call(r.querySelectorAll(".alert.alert-info a[href]")).forEach(function(e){var r=mp(e.getAttribute("href"));r&&o.push({label:t(e.textContent)||"Related revision",url:r})}),Array.prototype.slice.call(document.querySelectorAll(".project-nav a[href]")).forEach(function(e){var r=a(e.getAttribute("href"));r&&o.push({label:t(e.textContent)||"Related project",url:r})}),Le("Browse this SourceHut patchset",o)}(r,n,s));var u=[i.sourceNode].concat(l.map(function(e){return e.sourceNode})).concat(s.map(function(e){return e.sourceNode})),d=c.filter(Boolean).join("\n\n");return{title:o.title,byline:i.author,excerpt:t(i.markdown),siteName:"SourceHut lists",publishedTime:i.timestamp||null,html:u.filter(Boolean).map(function(e){return e.outerHTML}).join("\n"),markdown:d,textContent:t(d),hostAware:!0,readerMode:!1,contentType:"social",socialKind:"thread",threadConversation:!0,platform:"SourceHut",handle:i.author,replyCount:null,community:r.community}}function Pp(e){var n=function(){var e=(location.pathname||"").match(/^\/(~[\w.%+-]+)\/([\w.%+-]+)\/(.+?)\/?$/);if(!e||/^(?:\.{1,2}|\.git|\.hg)$/i.test(e[2]))return null;var t=e[3].replace(/\/$/,"");if(!t)return null;var r="/"+e[1]+"/"+e[2];return{owner:e[1],list:e[2],messageId:t,community:e[1]+"/"+e[2],listPath:r,patchesPath:r+"/patches",threadPath:r+"/"+t}}();if(!n)return null;var o=Array.prototype.slice.call(document.querySelectorAll(".container")).find(function(e){var t=e.querySelector(":scope > .row > .col-md-12");return!!t&&Array.prototype.slice.call(t.children).some(function(e){return!!e.querySelector(":scope > .message-header")})})||null;if(!function(e,t){var n=gp(t),o=n[0]&&n[0].querySelector(":scope > .message-header"),i=o&&o.querySelector(":scope > .date > a[id][href]");if(!i||i.id!==r(e.messageId))return!1;try{var a=new URL(i.getAttribute("href"),location.href);if(a.origin!==location.origin||a.pathname.replace(/\/$/,"")!==e.threadPath||r(a.hash.slice(1))!==i.id)return!1}catch(e){return!1}return pp()&&hp(e)&&!!yp(e)&&!!bp(o,e)}(n,o))return null;var i=function(e,r){return cu(gp(e).map(function(n,o){var i=n.previousElementSibling,a=i&&i.matches("h3")?i:null,l=kp([a,n].filter(Boolean),{preserveDetails:!0});if(!l)return null;var s=n.querySelector(":scope > .message-header");return{sourceNode:l.node,kind:0===o?"Opening message":"Reply",subject:t(a&&a.textContent),author:qp(s),timestamp:Ep(s),permalink:Cp(s,r,e),rawUrl:bp(s,r),markdown:l.markdown}}).filter(Boolean))}(o,n),l=i[0];if(!l)return null;var s=l.subject||t(e.title).replace(/\s*[—-]\s*[^—-]+\s+lists\s*$/i,"")||"SourceHut thread",c=["# "+s,"- List: "+n.community];l.author&&c.push("- Author: "+l.author),l.timestamp&&c.push("- Started: "+l.timestamp),c.push("## Opening message",l.markdown),i.length>1&&(c.push("## Replies"),c=c.concat(Lp(i.slice(1)))),c.push(function(e,r,n){var o=[{label:"List archive",url:location.origin+e.listPath},{label:"Patchsets",url:location.origin+e.patchesPath},{label:"Current thread",url:location.origin+e.threadPath}],i=yp(e);return i&&o.push({label:"Full thread mbox",url:i}),n.forEach(function(e,t){e.rawUrl&&o.push({label:"Raw "+(0===t?"opening message":"reply "+t),url:e.rawUrl})}),Array.prototype.slice.call(r.querySelectorAll(".alert.alert-info a[href]")).forEach(function(r){var n=mp(r.getAttribute("href"));n&&0===new URL(n).pathname.indexOf(e.patchesPath+"/")&&o.push({label:t(r.textContent)||"Review patchset",url:n})}),Array.prototype.slice.call(document.querySelectorAll(".project-nav a[href]")).forEach(function(e){var r=a(e.getAttribute("href"));r&&o.push({label:t(e.textContent)||"Related project",url:r})}),Le("Browse this SourceHut thread",o)}(n,o,i));var u=c.filter(Boolean).join("\n\n");return{title:s,byline:l.author,excerpt:t(l.markdown),siteName:"SourceHut lists",publishedTime:l.timestamp||null,html:i.map(function(e){return e.sourceNode.outerHTML}).join("\n"),markdown:u,textContent:t(u),hostAware:!0,readerMode:!1,contentType:"social",socialKind:"thread",threadConversation:!0,platform:"SourceHut",handle:l.author,replyCount:i.length-1,community:n.community}}function $p(e){return t(e&&(e.displayName||e.uniqueName||e.id))}function Np(e){return String(null==e?"":e).replace(/\r\n?/g,"\n").split("\n").map(function(e){return" "+e}).join("\n")}function Rp(e){var t=a(e);if(!t)return null;try{return new URL(t).origin===location.origin?t:null}catch(e){return null}}function Mp(e,t){try{var r=new URL(e,location.origin);return r.origin!==location.origin?null:(Object.keys(t||{}).forEach(function(e){r.searchParams.set(e,t[e])}),a(r.href))}catch(e){return null}}function Bp(e){return["overview","files","updates","commits"].map(function(t){return{label:t.charAt(0).toUpperCase()+t.slice(1),url:Mp(e.basePath,{_a:t})}})}function Op(e,t){if(Array.isArray(t))return t.map(function(t){return Op(e,t)}).filter(function(e){return void 0!==e});if(t&&"object"==typeof t){var r={};return Object.keys(t).forEach(function(e){var n=Op(e,t[e]);void 0!==n&&(r[e]=n)}),r}return"string"==typeof t&&/(?:urls?|hrefs?|links?)$/i.test(e)?a(t)||void 0:t}function zp(e){return Np(JSON.stringify(Op("",e),null,2))}function Ip(e,t){var r={};return Object.keys(e||{}).forEach(function(n){if(!t[n]&&null!=e[n]){var o=Op(n,e[n]);void 0!==o&&(r[n]=o)}}),Object.keys(r).length?Np(JSON.stringify(r,null,2)):""}function Hp(e){var t=[];return(Array.isArray(e)?e:[]).forEach(function(e){var r,n=$p(e)||"Unknown reviewer";t.push("### "+n,"- Vote: "+(r=e.vote,{10:"Approved",5:"Approved with suggestions",0:"No vote","-5":"Waiting for author","-10":"Rejected"}[String(r)]||String(r))),null!=e.isRequired&&t.push("- Required: "+(e.isRequired?"yes":"no")),null!=e.hasDeclined&&t.push("- Declined: "+(e.hasDeclined?"yes":"no")),null!=e.isFlagged&&t.push("- Flagged: "+(e.isFlagged?"yes":"no")),e.uniqueName&&t.push("- Identity: "+e.uniqueName);var o=Ip(e,{displayName:!0,uniqueName:!0,vote:!0,isRequired:!0,hasDeclined:!0,isFlagged:!0});o&&t.push("#### Reviewer data",o)}),t}function Fp(e){var t=[],r=e.threadContext||{},n=e.pullRequestThreadContext||{};return r.filePath&&t.push("- File: "+r.filePath),["rightFileStart","rightFileEnd","leftFileStart","leftFileEnd"].forEach(function(e){var n=r[e];n&&null!=n.line&&t.push("- "+e+": "+n.line+(null!=n.offset?":"+n.offset:""))}),null!=n.changeTrackingId&&t.push("- Change tracking ID: "+n.changeTrackingId),Object.keys(r).length&&t.push("#### Thread context",zp(r)),Object.keys(n).length&&t.push("#### Pull request thread context",zp(n)),e.properties&&Object.keys(e.properties).length&&t.push("#### Properties",zp(e.properties)),t}function Dp(e){var n=function(){var e=(location.pathname||"").replace(/\/+$/,""),t=e.toLowerCase().lastIndexOf("/_git/");if(t<1)return null;var n=e.slice(0,t),o=e.slice(t+6).split("/").filter(Boolean);if(3!==o.length||"pullrequest"!==o[1].toLowerCase()||!/^\d+$/.test(o[2]))return null;var i=r(o[0]),a=n.split("/").filter(Boolean).map(r);return i&&"."!==i&&".."!==i&&a.length&&!a.some(function(e){return!e||"."===e||".."===e})?{prefixPath:n,project:a[a.length-1],repository:i,number:o[2],basePath:n+"/_git/"+o[0]+"/pullrequest/"+o[2]}:null}();if(!n||!function(e){if(!e||!document.body||!document.body.classList.contains("ms-vss-web-vsts-theme"))return!1;var r=Array.prototype.slice.call(document.querySelectorAll("[role='heading'], h1")).some(function(r){return new RegExp("\\bPull Request\\s+"+e.number+"\\b","i").test(t(r.textContent))}),n=["overview","files","updates","commits"].every(function(t){var r=document.querySelector("#__bolt-tab-"+t);if(!r)return!1;try{var n=new URL(r.getAttribute("href"),location.href);return n.origin===location.origin&&n.pathname===e.basePath&&n.searchParams.get("_a")===t}catch(e){return!1}}),o=Array.prototype.slice.call(document.scripts).some(function(e){return/Repos\/Views\/PullRequest|Repos\/Discussion/.test(e.textContent||"")});return r&&n&&o}(n))return null;var o=window.__fetchUtilAzureDevopsPullRequest;if(o&&"failed"===o.status)return function(e,r,n){if(!n||"failed"!==n.status||!n.route||t(n.route.number)!==r.number||t(n.route.project).toLowerCase()!==r.project.toLowerCase()||t(n.route.repository).toLowerCase()!==r.repository.toLowerCase())return null;var o=Qt(document.querySelector("main")||document.body);rr(o,"script, style, button, [role='tooltip']");var i=mn(Jn(o.innerHTML)),a=t(e.title||document.title||"Pull request "+r.number),l=["# "+a,"## Retrieval warning","Azure DevOps REST conversation preparation failed; visible page content may be incomplete.",Np(t(n.reason||"Azure DevOps REST preparation failed"))];i&&l.push("## Visible page content",i),l.push(Le("Browse this Azure DevOps pull request",Bp(r)));var s=l.join("\n\n");return{title:a,siteName:"Azure DevOps",html:o.outerHTML,markdown:s,textContent:t(s),contentType:"article",readerMode:!1,hostAware:!0,warningReasons:["azure_devops_rest_incomplete"]}}(e,n,o);var i=function(e){var r=window.__fetchUtilAzureDevopsPullRequest;if(!(e&&r&&"ready"===r.status&&r.product&&r.route&&r.metadata&&r.threads&&Array.isArray(r.commits)))return null;if(t(r.route.number)!==e.number||t(r.route.project).toLowerCase()!==e.project.toLowerCase()||t(r.route.repository).toLowerCase()!==e.repository.toLowerCase()||!Array.isArray(r.threads.value))return null;var n=r.metadata,o=n.repository||{},i=o.project||{};return t(n.pullRequestId)===e.number&&t(o.name).toLowerCase()===e.repository.toLowerCase()&&t(i.name).toLowerCase()===e.project.toLowerCase()&&/^public$/i.test(t(i.visibility))?r:null}(n);if(!i)return null;var a=i.metadata,l=t(a.title||e.title||document.title);if(!l)return null;var s=$p(a.createdBy),c=String(a.description||""),u=["# "+l].concat(function(e){var r=e.repository||{},n=["- Project: "+t((r.project||{}).name),"- Repository: "+t(r.name),"- Pull request: "+t(e.pullRequestId)];return e.status&&n.push("- Status: "+e.status),null!=e.isDraft&&n.push("- Draft: "+(e.isDraft?"yes":"no")),e.sourceRefName&&n.push("- Source: "+e.sourceRefName.replace(/^refs\/heads\//,"")),e.targetRefName&&n.push("- Target: "+e.targetRefName.replace(/^refs\/heads\//,"")),e.creationDate&&n.push("- Created: "+e.creationDate),e.closedDate&&n.push("- Closed: "+e.closedDate),e.mergeStatus&&n.push("- Merge status: "+e.mergeStatus),e.mergeId&&n.push("- Merge ID: "+e.mergeId),n}(a));s&&u.push("- Author: "+s),c&&u.push("## Description",Np(c));var d=Ip(a,{title:!0,description:!0,reviewers:!0});d&&u.push("## Pull request data",d);var m=Hp(a.reviewers);m.length&&(u=u.concat(["## Reviewers"],m)),i.threads.value.length&&(u=u.concat(["## Conversation"],function(e){var r=[];return(Array.isArray(e)?e:[]).forEach(function(e){var n=Array.isArray(e&&e.comments)?e.comments:[],o=Ip(e,{comments:!0,threadContext:!0,pullRequestThreadContext:!0,properties:!0});if(!n.length)return r.push("### Thread "+t(e.id)),e.status&&r.push("- Status: "+e.status),e.isDeleted&&r.push("- Deleted thread: yes"),e.publishedDate&&r.push("- Published: "+e.publishedDate),e.lastUpdatedDate&&r.push("- Updated: "+e.lastUpdatedDate),r=r.concat(Fp(e)),void(o&&r.push("#### Thread data",o));n.forEach(function(n,i){var a=n.isDeleted?"Deleted comment":t(n.commentType)||"Comment",l=$p(n.author);r.push("### "+a+(l?" by "+l:"")),null!=e.id&&r.push("- Thread ID: "+e.id),null!=n.id&&r.push("- Comment ID: "+n.id),n.parentCommentId&&r.push("- Parent comment ID: "+n.parentCommentId),e.status&&r.push("- Thread status: "+e.status),e.isDeleted&&r.push("- Deleted thread: yes"),e.publishedDate&&r.push("- Thread published: "+e.publishedDate),e.lastUpdatedDate&&r.push("- Thread updated: "+e.lastUpdatedDate),n.publishedDate&&r.push("- Published: "+n.publishedDate),n.lastUpdatedDate&&r.push("- Updated: "+n.lastUpdatedDate),n.isDeleted&&r.push("- Deleted: yes"),r=r.concat(Fp(e)),0===i&&o&&r.push("#### Thread data",o);var s=Ip(n,{content:!0,author:!0});s&&r.push("#### Comment data",s),n.content?r.push(Np(n.content)):n.isDeleted&&r.push(" [Deleted comment body unavailable.]")})}),r}(i.threads.value))),i.commits.length&&(u=u.concat(["## Source commits"],function(e){var r=[];return(Array.isArray(e)?e:[]).forEach(function(e){r.push("### Commit "+t(e.commitId)),e.author&&$p(e.author)&&r.push("- Author: "+$p(e.author)),e.author&&e.author.date&&r.push("- Authored: "+e.author.date),e.committer&&$p(e.committer)&&r.push("- Committer: "+$p(e.committer)),e.committer&&e.committer.date&&r.push("- Committed: "+e.committer.date),e.changeCounts&&Object.keys(e.changeCounts).forEach(function(t){r.push("- "+t+": "+e.changeCounts[t])}),e.commentTruncated&&r.push("- Commit message incomplete: yes"),e.comment&&r.push(Np(e.comment));var n=Ip(e,{comment:!0});n&&r.push("#### Commit data",n)}),r}(i.commits))),u.push(function(e){var r=e.route,n=e.metadata.repository||{},o=Bp(r);return o=o.concat([{label:"Pull request metadata API",url:Mp(r.repositoryApiPath,{"api-version":"7.1"})},{label:"Threads API",url:Mp(r.repositoryApiPath+"/threads",{"api-version":"7.1"})},{label:"Commits API",url:Mp(r.repositoryApiPath+"/commits",{"api-version":"7.1",$top:"1000"}),detail:"Follow each opaque x-ms-continuationtoken until the header is absent."},{label:"Work items API",url:Mp(r.repositoryApiPath+"/workitems",{"api-version":"7.1"})},{label:"Reviewers API",url:Mp(r.repositoryApiPath+"/reviewers",{"api-version":"7.1"}),detail:"May require authentication; embedded reviewers are included above."},{label:"Iterations API",url:Mp(r.repositoryApiPath+"/iterations",{"api-version":"7.1"}),detail:"May require authentication; enumerate iterations before requesting changes."},{label:"Statuses API",url:Mp(r.repositoryApiPath+"/statuses",{"api-version":"7.1"}),detail:"May require authentication."},{label:"Pull request builds API",url:Mp(r.prefixPath+"/_apis/build/builds",{repositoryId:n.id||"",repositoryType:"TfsGit",reasonFilter:"pullRequest",branchName:"refs/pull/"+r.number+"/merge",$top:"1000","api-version":"7.1"}),detail:"May require authentication. Follow each opaque x-ms-continuationtoken until the header is absent."}]),e.threads.value.forEach(function(e){var r=Rp(e&&e._links&&e._links.self&&e._links.self.href);r&&o.push({label:"Thread "+t(e.id),url:r}),(Array.isArray(e&&e.comments)?e.comments:[]).forEach(function(e){var r=Rp(e&&e._links&&e._links.self&&e._links.self.href);r&&o.push({label:"Comment "+t(e.id),url:r})})}),e.commits.forEach(function(e){var r=Rp(e&&(e.remoteUrl||e.url));r&&o.push({label:"Commit "+t(e.commitId),url:r})}),Le("Browse this Azure DevOps pull request",o)}(i));var p=u.filter(Boolean).join("\n\n"),f=document.createElement("article");f.setAttribute("data-fetch-util-azure-devops-pr",n.number);var h=document.createElement("pre");h.textContent=p,f.appendChild(h);var g=i.threads.value.reduce(function(e,t){return e+(Array.isArray(t.comments)?t.comments.length:0)},0);return{title:l,byline:s,excerpt:t(c||l),siteName:"Azure DevOps",publishedTime:t(a.creationDate)||e.publishedTime,modifiedTime:t(a.closedDate)||e.modifiedTime,html:f.outerHTML,markdown:p,textContent:t(p),hostAware:!0,readerMode:!1,contentType:"social",socialKind:"thread",threadConversation:!0,platform:"Azure DevOps",handle:s,replyCount:g,community:n.project+"/"+n.repository}}function Up(){var e=document.querySelector("meta[name='description']"),r=/^Gerrit Code Review$/i.test(t(e&&e.getAttribute("content"))),n=!!document.querySelector("gr-app"),o=Array.prototype.slice.call(document.querySelectorAll("footer, [role='contentinfo']")).some(function(e){return/Powered by Gerrit Code Review/i.test(t(e.textContent))}),i=Array.prototype.slice.call(document.querySelectorAll("script[src], link[href]")).some(function(e){var t=e.getAttribute("src")||e.getAttribute("href")||"";if(!/\/polygerrit_ui\/.*\/gr-app\.js(?:$|[?#])/i.test(t))return!1;try{return new URL(t,location.href).origin===location.origin}catch(e){return!1}}),a=Array.prototype.slice.call(document.querySelectorAll("link[href]")).some(function(e){var t=e.getAttribute("href")||"";if(!/\/changes\/[^/?]+\/(?:detail|comments)(?:$|[?])/i.test(t))return!1;try{return new URL(t,location.href).origin===location.origin}catch(e){return!1}});return r&&n&&(o||i||a)}function Wp(e){return e?t(e.display_name||e.name||e.username||e.email||""):""}function Gp(e){return String(null==e?"":e).replace(/\r\n?/g,"\n").split("\n").map(function(e){return" "+e}).join("\n")}function Zp(e,t){if(!e||!e.route||!e.route.apiPath)return null;try{var r=new URL(e.route.apiPath+t,location.origin);return r.origin!==location.origin||r.pathname.indexOf("/changes/")<0?null:r.href}catch(e){return null}}function Kp(e){var r=e.detail||{},n=t(e.route.patchset);if(n){var o=r.revisions||{},i=Object.keys(o).find(function(e){return t(o[e]&&o[e]._number)===n});return i?o[i]:null}return(r.revisions||{})[r.current_revision]||null}function Vp(e){var r=Kp(e);return t(e.route.patchset)||t(r&&r._number)||"current"}function Jp(e,r,n){var o=String(r||"").split("/").map(encodeURIComponent).join("/");if(!o.replace(/\//g,""))return null;var i=t(n)||Vp(e);return a(location.origin+e.route.changePath+"/"+i+"/"+o)}function Xp(e){var r=Vp(e),n="/revisions/"+encodeURIComponent(r),o=[{label:"Change",url:location.origin+e.route.changePath},{label:"Change detail API",url:Zp(e,"/detail?o=ALL_REVISIONS&o=ALL_COMMITS&o=DETAILED_LABELS&o=DETAILED_ACCOUNTS&o=MESSAGES")},{label:"Inline comments API",url:Zp(e,"/comments?enable-context=true&context-padding=3")},{label:"Selected patch set files API",url:Zp(e,n+"/files/")},{label:"Selected patch set commit API",url:Zp(e,n+"/commit")},{label:"Selected patch set raw patch",url:Zp(e,n+"/patch?download&raw")},{label:"Selected patch set related changes API",url:Zp(e,n+"/related")},{label:"Selected patch set actions API",url:Zp(e,n+"/actions")}].concat(function(e){var r=Object.keys(e.detail.revisions||{}).map(function(t){return e.detail.revisions[t]||{}}).filter(function(e){return t(e._number)}).sort(function(e,t){return Number(e._number)-Number(t._number)}),n=[];return r.forEach(function(r){var o=t(r._number),i="/revisions/"+encodeURIComponent(o);n.push({label:"Patch set "+o,url:location.origin+e.route.changePath+"/"+o},{label:"Patch set "+o+" commit API",url:Zp(e,i+"/commit")},{label:"Patch set "+o+" files API",url:Zp(e,i+"/files/")},{label:"Patch set "+o+" raw patch",url:Zp(e,i+"/patch?download&raw")})}),n}(e));return Object.keys(e.files||{}).forEach(function(t){o=o.concat(Yp(e,t,r))}),Le("Browse this Gerrit change",o)}function Yp(e,r,n,o){var i=o||{},a=t(n)||Vp(e),l=encodeURIComponent(r),s="/revisions/"+encodeURIComponent(a)+"/files/"+l,c=i.selector||a,u=i.diffParameters&&i.diffParameters.toString(),d={label:"File diff: "+r,url:Zp(e,s+"/diff"+(u?"?"+u:""))},m=[{label:"File: "+r,url:Jp(e,r,c)}];return i.diffFirst&&m.push(d),!1!==i.targetContent&&m.push({label:"File content: "+r,url:Zp(e,s+"/content")}),i.diffFirst||m.push(d),m}function Qp(e,r,n){var o=[];return Object.keys(e||{}).forEach(function(i,a){(Array.isArray(e[i])?e[i]:[]).forEach(function(e,l){o.push({kind:e.robot_id||e.robot_run_id?"Robot comment":r,author:Wp(e.author||e.real_author),timestamp:t(e.updated),patchset:t(e.patch_set),message:String(e.message||""),id:t(e.id),filePath:i,line:e.line,range:e.range||null,side:t(e.side),parent:t(e.parent),unresolved:e.unresolved,inReplyTo:t(e.in_reply_to),contextLines:Array.isArray(e.context_lines)?e.context_lines:[],robotId:t(e.robot_id),robotRunId:t(e.robot_run_id),sourceOrder:n+1e6*a+l})})}),o}function ef(e){var r=function(e){return(Array.isArray(e.detail.messages)?e.detail.messages:[]).map(function(e,r){return{kind:/^autogenerated:/i.test(t(e.tag))?"Event":"Change message",author:Wp(e.author||e.real_author),timestamp:t(e.date),patchset:t(e._revision_number),message:String(e.message||""),id:t(e.id),sourceOrder:r}})}(e),n=Qp(e.comments,"Inline comment",r.length);return r.concat(n).sort(function(e,t){var r=Date.parse(e.timestamp),n=Date.parse(t.timestamp);return isNaN(r)||isNaN(n)||r===n?!isNaN(r)&&isNaN(n)?-1:isNaN(r)&&!isNaN(n)?1:e.sourceOrder-t.sourceOrder:r-n})}function tf(e,r){var n=[];return e.forEach(function(e){n.push("### "+e.kind+(e.author?" by "+e.author:"")),e.timestamp&&n.push("- Time: "+e.timestamp),e.patchset&&n.push("- Patch set: "+e.patchset),e.side&&n.push("- Side: "+e.side),e.parent&&n.push("- Parent: "+e.parent),e.id&&n.push("- Record ID: "+e.id),e.filePath&&n.push("- Location: "+function(e,t){if(!e.filePath)return"";var r=e.filePath;e.range?r+=":"+[e.range.start_line,e.range.start_character].join(":")+"-"+[e.range.end_line,e.range.end_character].join(":"):null!=e.line&&(r+=":"+e.line);var n=Jp(t,e.filePath,e.patchset);return n?Se(r,n):r}(e,r)),null!=e.unresolved&&n.push("- Status: "+(e.unresolved?"Unresolved":"Resolved")),e.inReplyTo&&n.push("- In reply to: "+e.inReplyTo),e.robotId&&n.push("- Robot: "+e.robotId),e.robotRunId&&n.push("- Robot run: "+e.robotRunId),e.message&&n.push(Gp(e.message));var o,i=(o=e.contextLines,Array.isArray(o)&&o.length?o.map(function(e){return" "+t(e.line_number)+" | "+String(e.context_line||"")}).join("\n"):"");i&&n.push("#### Context",i)}),n}function rf(e){return"patchset"===e.comparison?"Patch set "+e.comparisonValue+" to "+e.target:"parent"===e.comparison?"Parent "+e.comparisonValue+" to patch set "+e.target:"auto_merge"===e.comparison?"Auto-merge base to patch set "+e.target:"Gerrit default base to patch set "+e.target}function nf(e,t,r){return Jp(e,t,r||e.route.selector)}function of(e,t,r,n){var o="/revisions/"+encodeURIComponent(e.route.target)+"/files/"+encodeURIComponent(t)+"/"+r,i=n&&n.toString();return Zp(e,o+(i?"?"+i:""))}function af(e,r){return!/^(?:D|DELETED)$/i.test(t(e&&e.status||r&&r.change_type))}function lf(e,r){return!/^(?:A|ADDED)$/i.test(t(e&&e.status||r&&r.change_type))}function sf(e,r){return(Array.isArray(r)?r:[]).map(function(r,n){return r&&"object"==typeof r&&r.url?{label:e+": "+(t(r.name)||"Link "+(n+1)),url:r.url}:null}).filter(Boolean)}function cf(e){var r=e.route,n=function(e){var t=new URLSearchParams;return"patchset"===e.comparison&&t.set("base",e.comparisonValue),"parent"===e.comparison&&t.set("parent",e.comparisonValue),t}(r),o=new URLSearchParams(n);o.set("context","ALL");var i=[{label:"Change conversation",url:location.origin+r.changePath},{label:"Selected file",url:nf(e,e.filePath)},{label:"Selected file diff API",url:of(e,e.filePath,"diff",o)},{label:"Selected comparison files API",url:Zp(e,"/revisions/"+encodeURIComponent(r.target)+"/files/"+(n.toString()?"?"+n.toString():""))},{label:"All change comments API",url:Zp(e,"/comments?enable-context=true&context-padding=3")},{label:"Target patch set raw patch",url:Zp(e,"/revisions/"+encodeURIComponent(r.target)+"/patch?download&raw")}];af(e.file,e.diff)&&i.push({label:"Selected file target content",url:of(e,e.filePath,"content")});var a=t(e.file.old_path)||t(e.diff.meta_a&&e.diff.meta_a.name)||e.filePath,l=function(e){return Object.keys(e.detail.revisions||{}).map(function(t){return e.detail.revisions[t]}).find(function(t){return String(t&&t._number||"")===e.route.target})}(e),s=l&&l.commit&&Array.isArray(l.commit.parents)?l.commit.parents:[];if(a!==e.filePath&&i.push({label:"Previous file path: "+a,url:nf(e,a)}),"patchset"===r.comparison&&lf(e.file,e.diff))i.push({label:"Base patch set file content",url:Zp(e,"/revisions/"+encodeURIComponent(r.comparisonValue)+"/files/"+encodeURIComponent(a)+"/content")});else if("parent"===r.comparison&&lf(e.file,e.diff)){var c=new URLSearchParams;c.set("parent",r.comparisonValue),i.push({label:"Base parent file content",url:of(e,a,"content",c)})}else if("implicit"===r.comparison&&s.length&&lf(e.file,e.diff)){var u=new URLSearchParams;u.set("parent","1"),i.push({label:s.length>1?"First-parent file content (alternative)":"Base parent file content",url:of(e,a,"content",u)})}if(e.firstParentDiff){var d=new URLSearchParams;d.set("parent","1"),d.set("context","ALL"),i.push({label:"Explicit first-parent comparison",url:nf(e,e.filePath,"-1.."+r.target)},{label:"Explicit first-parent diff API",url:of(e,e.filePath,"diff",d)})}return i=i.concat(sf("Diff link",e.diff.web_links),sf("Base link",e.diff.meta_a&&e.diff.meta_a.web_links),sf("Target link",e.diff.meta_b&&e.diff.meta_b.web_links)),Object.keys(e.files||{}).forEach(function(t){var o=e.files[t]||{},a=new URLSearchParams(n);if(a.set("context","ALL"),i=i.concat(Yp(e,t,r.target,{diffFirst:!0,diffParameters:a,selector:r.selector,targetContent:af(o)})),"patchset"===r.comparison&&lf(o))i.push({label:"Base file content: "+t,url:Zp(e,"/revisions/"+encodeURIComponent(r.comparisonValue)+"/files/"+encodeURIComponent(o.old_path||t)+"/content")});else if(("parent"===r.comparison||"implicit"===r.comparison&&s.length)&&lf(o)){var l=new URLSearchParams;l.set("parent","parent"===r.comparison?r.comparisonValue:"1"),i.push({label:("implicit"===r.comparison&&s.length>1?"First-parent file content (alternative): ":"Base file content: ")+t,url:of(e,o.old_path||t,"content",l)})}if(e.firstParentDiff){var c=new URLSearchParams;c.set("parent","1"),c.set("context","ALL"),i.push({label:"First-parent diff (alternative): "+t,url:of(e,t,"diff",c)})}o.old_path&&o.old_path!==t&&i.push({label:"Previous path: "+o.old_path,url:nf(e,o.old_path)})}),Le("Browse this Gerrit file comparison",i)}function uf(e){var t=function(e){return Array.isArray(e.diff_header)?e.diff_header.map(String):e.diff_header?String(e.diff_header).split("\n"):[]}(e);return(Array.isArray(e.content)?e.content:[]).forEach(function(e){null!=e.common&&t.push("Common block: "+(e.common?"yes":"no")),null!=e.due_to_rebase&&t.push("Due to rebase: "+(e.due_to_rebase?"yes":"no")),e.move_details&&t.push("Move details: "+JSON.stringify(e.move_details)),Array.isArray(e.edit_a)&&t.push("Base intraline edits: "+JSON.stringify(e.edit_a)),Array.isArray(e.edit_b)&&t.push("Target intraline edits: "+JSON.stringify(e.edit_b)),null==e.skip?["ab","a","b"].forEach(function(r){if(Array.isArray(e[r])){var n="ab"===r?" ":"a"===r?"-":"+";e[r].forEach(function(e){t.push(n+String(e))})}}):t.push(function(e){if(!e||"object"!=typeof e)return"@@ "+e+" unchanged lines omitted @@";var t=[];return null!=e.left&&t.push("base "+e.left),null!=e.right&&t.push("target "+e.right),"@@ "+(t.length?t.join(", "):JSON.stringify(e))+" unchanged lines omitted @@"}(e.skip))}),t}function df(e){return e.split("_").map(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}).join(" ")}function mf(e){return e&&"object"==typeof e?JSON.stringify(e):String(e)}function pf(e,t){return!t||"object"!=typeof t||Array.isArray(t)?[]:Object.keys(t).map(function(r){return"- "+e+" "+df(r)+": "+mf(t[r])})}function ff(e,r){var n=uf(r=r||e.diff||{});return n.length?hn("diff",n.join("\n")).trim():e.file.binary||r.binary?"Binary file; Gerrit returned no textual diff.":/^DELETED$/i.test(t(r.change_type))?"Deleted file; Gerrit returned no textual diff.":"Gerrit returned no textual diff for this file comparison."}function hf(e){var n=function(){var e=(location.pathname||"").replace(/\/+$/,""),t=e.lastIndexOf("/+/");if(t<1)return null;var n=e.slice(t+3).split("/");if(n.length<3||!/^\d+$/.test(n[0]))return null;var o=n[1],i=o.match(/^(-?[1-9]\d*|0)\.\.([1-9]\d*)$/),a=o.match(/^([1-9]\d*)$/);if(!i&&!a)return null;var l=n.slice(2).join("/"),s=r(l);if(l.indexOf("%")>=0&&s===l)return null;var c=s.split("/"),u=""===c[0]&&2===c.length&&c[1];if(!s||c.some(function(e,t){return!(e||0===t&&u)})||c.some(function(e){return"."===e||".."===e}))return null;var d=i?i[2]:a[1],m=i?i[1]:null,p="implicit",f=null;return null!=m&&(Number(m)>0?(p="patchset",f=m):Number(m)<0?(p="parent",f=String(Math.abs(Number(m)))):p="auto_merge"),{number:n[0],selector:o,target:d,base:m,comparison:p,comparisonValue:f,filePath:s,changePath:e.slice(0,t)+"/+/"+n[0]}}();if(!n||!Up())return null;var o=function(e){var t=window.__fetchUtilGerritFileResource;if(!(e&&t&&"ready"===t.status&&t.product&&t.detail&&t.route&&t.diff&&t.file&&t.filePath))return null;var r=t.route;if(r.number!==e.number||r.selector!==e.selector||r.target!==e.target||r.base!==e.base||r.filePath!==e.filePath||String(t.detail._number||"")!==e.number)return null;if(t.diff.meta_b&&null!=t.diff.meta_b.name&&String(t.diff.meta_b.name)!==t.filePath)return null;if(t.firstParentDiff&&("object"!=typeof t.firstParentDiff||Array.isArray(t.firstParentDiff)||t.firstParentDiff.meta_b&&null!=t.firstParentDiff.meta_b.name&&String(t.firstParentDiff.meta_b.name)!==t.filePath))return null;var n=Object.keys(t.detail.revisions||{}).map(function(e){return t.detail.revisions[e]}),o=n.find(function(t){return String(t&&t._number||"")===e.target});return!o||"patchset"===e.comparison&&!n.some(function(t){return String(t&&t._number||"")===e.comparisonValue})||"parent"===e.comparison&&(!o.commit||!Array.isArray(o.commit.parents)||o.commit.parents.length<Number(e.comparisonValue))?null:t}(n);if(!o)return null;var i=(t(o.detail.subject)||e.title||"Gerrit change")+" - "+o.filePath,a=["# "+i].concat(function(e){var t=e.file||{},r=e.diff||{},n=e.route,o=["- Project: "+e.detail.project,"- Change: "+n.number,"- Comparison: "+rf(n),"- File: "+e.filePath];return e.requestedFilePath!==e.filePath&&o.push("- Requested path: "+e.requestedFilePath),t.status&&o.push("- Status: "+t.status),t.old_path&&o.push("- Previous path: "+t.old_path),r.change_type&&o.push("- Change type: "+r.change_type),null!=t.lines_inserted&&o.push("- Lines inserted: "+t.lines_inserted),null!=t.lines_deleted&&o.push("- Lines deleted: "+t.lines_deleted),null!=t.size_delta&&o.push("- Size delta: "+t.size_delta),null!=t.size&&o.push("- Size: "+t.size),(t.binary||r.binary)&&o.push("- Binary: yes"),o=(o=o.concat(pf("Base",r.meta_a))).concat(pf("Target",r.meta_b)),Object.keys(r).forEach(function(e){["binary","change_type","content","diff_header","meta_a","meta_b"].includes(e)||null!=r[e]&&o.push("- Diff "+df(e)+": "+mf(r[e]))}),o}(o));a.push("## Complete diff",ff(o)),o.firstParentDiff&&a.push("## Alternative first-parent comparison","This target-only merge route does not encode a base preference, so both Gerrit's default comparison and the explicit first-parent comparison are included.",ff(o,o.firstParentDiff));var l=function(e){var t=new Set([e.filePath,e.requestedFilePath,e.file&&e.file.old_path,e.diff&&e.diff.meta_a&&e.diff.meta_a.name,e.diff&&e.diff.meta_b&&e.diff.meta_b.name].filter(Boolean)),r={};return Object.keys(e.comments||{}).forEach(function(n){t.has(n)&&(r[n]=e.comments[n])}),Qp(r,"Inline comment",0).sort(function(e,t){var r=Date.parse(e.timestamp),n=Date.parse(t.timestamp);return isNaN(r)||isNaN(n)||r===n?!isNaN(r)&&isNaN(n)?-1:isNaN(r)&&!isNaN(n)?1:e.sourceOrder-t.sourceOrder:r-n})}(o);l.length&&(a=a.concat(["## File comments"],tf(l,o))),a.push(cf(o));var s=a.filter(Boolean).join("\n\n"),c=document.createElement("article");c.setAttribute("data-fetch-util-gerrit-file",o.filePath);var u=document.createElement("h1");u.textContent=i,c.appendChild(u);var d=document.createElement("pre");return d.textContent=s,c.appendChild(d),{title:i,siteName:"Gerrit",author:Wp(o.detail.owner),publishedTime:t(o.detail.created),modifiedTime:t(o.detail.updated),excerpt:t(o.detail.subject),html:c.outerHTML,markdown:s,textContent:t(s),hostAware:!0,readerMode:!1,contentType:"list",platform:"Gerrit",community:t(o.detail.project)}}function gf(e){var r=function(){var e=(location.pathname||"").replace(/\/+$/,""),t=e.lastIndexOf("/+/");if(t<1)return null;var r=e.slice(t+3).split("/").filter(Boolean);return r.length<1||r.length>2||!/^\d+$/.test(r[0])||r[1]&&!/^\d+$/.test(r[1])?null:{number:r[0],patchset:r[1]||null,changePath:e.slice(0,t)+"/+/"+r[0]}}();if(!r||!Up())return null;var n=function(e){var r=window.__fetchUtilGerritChange;return e&&r&&"ready"===r.status&&r.product&&r.route&&String(r.route.number||"")===e.number&&r.route.project&&t(r.route.patchset)===t(e.patchset)&&r.detail&&r.comments&&r.files?String(r.detail._number||"")!==e.number||r.detail.project!==r.route.project?null:r:null}(r);if(!n)return null;var o=n.detail,i=t(o.subject||e.title||document.title);if(!i)return null;var a=Wp(o.owner),l=function(e){var t=Kp(e);return String(t&&t.commit&&t.commit.message||e.detail.subject||"")}(n),s=ef(n),c=["# "+i].concat(function(e,t){var r=Wp(e.owner),n=["- Project: "+e.project,"- Change: "+e._number];return e.branch&&n.push("- Branch: "+e.branch),e.status&&n.push("- Status: "+e.status),r&&n.push("- Owner: "+r),e.topic&&n.push("- Topic: "+e.topic),e.created&&n.push("- Created: "+e.created),e.updated&&n.push("- Updated: "+e.updated),n.push("- Selected patch set: "+Vp(t)),null!=e.total_comment_count&&n.push("- Inline comments reported: "+e.total_comment_count),null!=e.unresolved_comment_count&&n.push("- Unresolved comments reported: "+e.unresolved_comment_count),n}(o,n));l&&c.push("## Change description",Gp(l));var u=function(e){var t=e.labels||{},r=[];return Object.keys(t).forEach(function(e){r.push("### "+e);var n=Array.isArray(t[e].all)?t[e].all:[];n.length?n.forEach(function(e){var t=Wp(e)||"Unknown account",n=Number(e.value);r.push("- "+t+": "+(n>0?"+":"")+n)}):r.push("- No detailed votes returned.")}),r}(o);u.length&&(c=c.concat(["## Labels"],u)),s.length&&(c=c.concat(["## Timeline"],tf(s,n)));var d=function(e){var t=[];return Object.keys(e.files||{}).forEach(function(r){var n=e.files[r]||{},o=Jp(e,r);t.push("### "+(o?Se(r,o):r)),n.status&&t.push("- Status: "+n.status),n.old_path&&t.push("- Previous path: "+n.old_path),null!=n.lines_inserted&&t.push("- Lines inserted: "+n.lines_inserted),null!=n.lines_deleted&&t.push("- Lines deleted: "+n.lines_deleted),null!=n.size_delta&&t.push("- Size delta: "+n.size_delta),null!=n.size&&t.push("- Size: "+n.size),n.binary&&t.push("- Binary: yes")}),t}(n);d.length&&(c=c.concat(["## Changed files"],d)),c.push(Xp(n));var m=c.filter(Boolean).join("\n\n"),p=document.createElement("article");p.setAttribute("data-fetch-util-gerrit-change",r.number);var f=document.createElement("pre");f.textContent=m,p.appendChild(f);var h=s.filter(function(e){return"Event"!==e.kind}).length;return{title:i,byline:a,excerpt:t(l||i),siteName:"Gerrit",publishedTime:t(o.created)||e.publishedTime,html:p.outerHTML,markdown:m,textContent:t(m),hostAware:!0,readerMode:!1,contentType:"social",socialKind:"thread",threadConversation:!0,platform:"Gerrit",handle:a,replyCount:h,community:o.project}}function yf(e){var r=function(){var e,r=[],n=[],o=/\b(?:financial statements?|condensed consolidated|consolidated statements?|balance sheets?|income statements?|cash flows?|earnings(?: release)?|quarterly report|annual report|shareholder letter|form\s*(?:10-k|10-q|8-k)|sec filing)\b/i;function i(e,i,a){var l=t([i,a].join(" "));e&&-1===n.indexOf(e)&&o.test(l+" "+e)&&(n.push(e),r.push({url:e,label:t(i)||e}))}return/\b(?:financial statements?|investor relations|earnings(?: release)?|quarterly report|annual report|shareholder letter|balance sheets?|income statements?|cash flows?|form\s*(?:10-k|10-q|8-k)|sec filing)\b/i.test((e=document.querySelector("article, main")||document.body,t([document.title,Me("description","name"),Me("article:section","property"),location.pathname,e&&e.textContent].join(" ")).slice(0,5e3)))?(document.querySelectorAll("a[href]").forEach(function(e){var r,n=e.getAttribute("href")||"";try{r=new URL(n,location.href)}catch(e){return}var a=r.pathname||"",l=t(e.textContent||e.getAttribute("aria-label")||e.getAttribute("title")||""),s=t((e.closest("p, li, figure, figcaption, section, article, div")||e).textContent||"").slice(0,500);/\.(?:pdf|xlsx?|csv)(?:$|[?#])/i.test(a)&&o.test(l+" "+s+" "+a)&&i(r.href,l,s)}),document.querySelectorAll("figure img[src], picture img[src], img[src]").forEach(function(e){var r=e.closest("figure, picture, section, article, div")||e,n=t(e.getAttribute("alt")||e.getAttribute("aria-label")||"Financial statement image"),a=t(r.textContent||n).slice(0,500);if(o.test(n+" "+a))try{i(new URL(e.getAttribute("src"),location.href).href,n,a)}catch(e){}}),r):r}();if(!r.length)return e;var n=e||"";if(/^## Financial Statement Links$/m.test(n))return e;var o=r.map(function(e){return"- "+Se(e.label||"Financial statement",e.url)});return n.replace(/\s+$/g,"")+"\n\n## Financial Statement Links\n\n"+o.join("\n")}function bf(e,r){var n=Array.prototype.slice.call((e||document).querySelectorAll("dt")),o=[];return n.forEach(function(e){if(new RegExp("^"+r+"s?:?$","i").test(t(e.textContent||"")))for(var n=e.nextElementSibling;n&&n.tagName&&"dd"===n.tagName.toLowerCase();){var i=t(n.textContent||"");i&&-1===o.indexOf(i)&&o.push(i),n=n.nextElementSibling}}),o.join("; ")||null}function vf(e){var r=document.querySelector(".LegContents, #viewLegContents, .viewLegContents, [class*='table-of-contents' i], [aria-label*='table of contents' i]");if(!r||!ba(r,r.textContent||""))return null;var n=tr(r),o=t((document.querySelector("#pageTitle, h1")||{}).textContent||e.title||document.title),i=document.createElement("h1");i.textContent=o,n.insertBefore(i,n.firstChild),nr(n);var a=mn(Jn(n.innerHTML)).replace(/\n{3,}/g,"\n\n").trim(),l=t(a||n.textContent||"");return l.length<200?null:{title:o||e.title||document.title,byline:null,excerpt:e.excerpt||l.slice(0,280),siteName:e.siteName||location.hostname,publishedTime:e.publishedTime||null,html:n.innerHTML,markdown:a,textContent:l,readerMode:!1,contentType:"list",hostAware:!0}}function wf(e){var r=Array.prototype.slice.call(document.querySelectorAll(["#extracted-content #main-content","#extracted-content",".wex-content",".node-wex-term","[class*='legal-reference' i]","[class*='encyclopedia-entry' i]"].join(", "))),n=null;if(r.some(function(e){return!(!e||!e.querySelector("h1")||o(e)<500)&&(!!e.querySelector("p")&&(n=e,!0))}),!n)return null;var i=Array.prototype.slice.call(n.querySelectorAll("a[href]")).slice(0,40).map(function(e){return(e.getAttribute("href")||"")+" "+t(e.textContent||"")}).join(" "),a=t([e.siteName||"",e.title||"",document.title||"",n.id||"",n.className||"",i].join(" ")),l=/\b(?:law|legal|court|courts|statute|regulation|jurisdiction|litigation|plaintiff|defendant|claim|judgment|preclusion|rule|rights?)\b/i.test(a),s=/\b(?:wex|encyclopedia|definition|definitions|reference|glossary|term)\b/i.test(a)||/\/wex\//i.test(a);return l&&s?fr(e,n,{title:function(r,o){return t((o.querySelector("h1")||n.querySelector("h1")||{}).textContent||e.title||document.title)},byline:null,excerpt:function(t,r,n,o,i){return e.excerpt||i.slice(0,280)},siteName:e.siteName||location.hostname,publishedTime:e.publishedTime||null,cleanupRoot:!1,cleanupMarkdown:!1,minTextLength:500,rewriteRoot:function(e){e.querySelectorAll(["aside","nav","[role='complementary']","[id*='related' i]","[class*='related' i]","[id*='recommended' i]","[class*='recommended' i]"].join(", ")).forEach(function(e){e.remove()})}}):null}function Af(){return bf(document,"Publication Date")||g(["#metadata_content_area .metadata a[href*='/documents/']"])}function Sf(){return bf(document,"Agencies")||t(Array.prototype.slice.call(document.querySelectorAll("#metadata_content_area .metadata .agencies a, h6.agency, h6.sub-agency")).map(function(e){return t(e.textContent||"")}).filter(function(e,t,r){return e&&r.indexOf(e)===t}).join("; "))||null}function xf(e){if(!Ut(/(^|\.)federalregister\.gov$/i))return null;if(!/^\/documents\/\d{4}\/\d{2}\/\d{2}\//i.test(location.pathname||""))return null;var r=g(["#metadata_content_area > h1","meta[name='title']"],"content")||t(e&&e.title||document.title||"").replace(/^Federal Register\s*::\s*/i,""),n=bf(document,"Document Type")||g([".main-title-bar h1"]),i=document.querySelector(".document-content, #document-content, .doc-content, .article, #fulltext_content_area")||document.querySelector("#agency")&&document.querySelector("#agency").parentElement;if(!i||o(i)<250)return null;var a=t(n||"");return/\b(?:notice|proposed rule|rule|presidential document)\b/i.test(a)?fr(e,i,{title:r,byline:Sf,publishedTime:Af,siteName:e.siteName||"Federal Register",contentType:"notice",minTextLength:250,rewriteRoot:function(e){e.querySelectorAll(["script","style","nav","aside","form",".fr-seal-meta",".document-clipping-actions",".copy-to-clipboard","[class*='tooltip' i]","[class*='share' i]"].join(", ")).forEach(function(e){e.remove()})},validateMarkdown:function(e,t){return/\b(?:AGENCY|ACTION|SUMMARY|DATES|SUPPLEMENTARY INFORMATION):/i.test(t)||/\bFederal Register\b/i.test(t)}}):null}function kf(e){if(!Ut(/(^|\.)gov\.uk$/i))return null;if(!/^\/guidance\//i.test(location.pathname||""))return null;var r=document.querySelector(".gem-c-contents-list-with-body")||document.querySelector(".gem-c-govspeak .govspeak");if(!r||o(r)<500)return null;var n,i,a=(n=r,(i=Array.prototype.slice.call((n||document).querySelectorAll(".gem-c-contents-list a, [aria-label='Contents'] a, a[href^='#']")).map(function(e){var r=t(e.textContent||""),n=e.getAttribute("href")||"";return r&&/^#/.test(n)?"- "+Se(r,n):null}).filter(Boolean)).length?"## Contents\n\n"+i.join("\n"):null);return fr(e,r,{title:g([".gem-c-heading__text","main h1","h1"])||e.title||document.title,byline:function(){return bf(document,"From")||e.byline||null},publishedTime:e.publishedTime||g(["meta[name='govuk:first-published-at']"],"content"),siteName:e.siteName||"GOV.UK",minTextLength:500,cleanupRoot:!1,rewriteRoot:function(e){e.querySelectorAll("nav.gem-c-contents-list, nav[aria-label='Contents']").forEach(function(e){var t=document.createElement("div");Array.prototype.slice.call(e.childNodes).forEach(function(e){t.appendChild(e)}),e.parentNode.replaceChild(t,e)}),e.querySelectorAll(["script","style","form",".gem-c-print-link",".gem-c-single-page-notification-button",".published-dates-button-group","[data-sticky-element]"].join(", ")).forEach(function(e){e.remove()})},postProcessMarkdown:function(e,r){if(/^##\s+Contents\b/m.test(e))return e;if(a)return a+"\n\n"+e;var n=Array.prototype.slice.call(r.querySelectorAll(".gem-c-contents-list a, [aria-label='Contents'] a, a[href^='#']")).map(function(e){var r=t(e.textContent||""),n=e.getAttribute("href")||"";return r&&/^#/.test(n)?"- "+Se(r,n):null}).filter(Boolean);return n.length?"## Contents\n\n"+n.join("\n")+"\n\n"+e:e},validateMarkdown:function(e,t){return/^#\s+/m.test(e)||t.length>=500}})}function Cf(e){if(!Ut(/(^|\.)courtlistener\.com$/i))return null;if(!/^\/opinion\/\d+\//i.test(location.pathname||""))return null;var r=document.querySelector("#opinion-content, .opinion-content, [data-testid='opinion-content'], article .opinion")||document.querySelector("article")||document.querySelector("main");return!r||o(r)<700?null:fr(e,r,{title:t((document.querySelector("main h1, article h1, h1")||{}).textContent||e.title||document.title),byline:function(){return g([".author",".judge",".judges","[class*='judge' i]"])||null},siteName:e.siteName||"CourtListener",minTextLength:700,rewriteRoot:function(e){e.querySelectorAll(["script","style","nav","aside","form",".sidebar",".breadcrumb",".breadcrumbs",".alert",".btn",".share",".citation-links",".download-menu","[class*='citation' i]","[class*='download' i]","[class*='related' i]"].join(", ")).forEach(function(e){e.remove()})},validateMarkdown:function(e,t){return/\b(?:v\.|versus|plaintiff|defendant|appellant|appellee|court|appeal|opinion|judgment)\b/i.test(t)},extra:{legalOpinion:!0}})}function qf(e,r){var n=e.querySelector("#container, #paddingLR12, main, body"),o=t(n&&n.textContent||"").slice(0,2e4),i=t([r&&r.title,e.title,(e.querySelector("h1")||{}).textContent].join(" ")),a=Mi({root:n,text:o,title:i});return/\b(?:code|act|statute|regulation|ordinance)\b/i.test(i)&&a.profileOfficialTextSignals&&/\b(?:section|article)\s*\d+[a-z]?\b/i.test(o)}function Ef(e){var r=document,n=r.querySelector("#container, #paddingLR12");if(!n||!qf(r,e))return null;t(n.textContent||"");var o,i,a,l,s=n.querySelector("table")||r.querySelector("#paddingLR12 table, table");if(s&&/\bSection\s*1/i.test(s.textContent||"")){var c=(o=r,i=Array.prototype.slice.call(o.querySelectorAll("a[href]")),a=new URL(location.href),l=null,i.some(function(e){var r,n=e.getAttribute("href")||"",o=t(e.textContent||e.getAttribute("title")||"");try{r=new URL(n,location.href)}catch(e){return!1}return r.origin===a.origin&&!!/\.html?(?:$|#)/i.test(r.pathname+r.hash)&&!(!/^(?:html|full text|full text in format html)$/i.test(o)&&!/\/[^/]+\.html?$/i.test(r.pathname))&&r.pathname!==a.pathname&&(l=r.href.replace(/#.*/,""),/^(?:html|full text|full text in format html)$/i.test(o))}),l),u=c&&function(e){var t=new XMLHttpRequest;try{return t.open("GET",e,!1),t.send(null),t.status<200||t.status>=300||!t.responseText?null:(new DOMParser).parseFromString(t.responseText,"text/html")}catch(e){return null}}(c);u&&qf(u,e)&&(r=u)}var d=r.getElementById("paddingLR12")||r.getElementById("container")||r.querySelector("#paddingLR12, #container");if(!d)return null;var m=t((r.querySelector("h1")||document.querySelector("h1")||{}).textContent||e.title||document.title);return fr(e,d,{title:m||e.title||document.title,byline:null,excerpt:function(t,r,n,o,i){return e.excerpt||i.slice(0,280)},siteName:e.siteName||location.hostname,publishedTime:e.publishedTime||null,minTextLength:400,postProcessMarkdown:function(e){return e.replace(/\n{3,}/g,"\n\n").trim()},rewriteRoot:function(e){e.querySelectorAll("script, style, form, nav, .noprint, #toc, table").forEach(function(e){e.remove()}),e.querySelectorAll("a[href*='index.html#'], a[href*='index.htm#']").forEach(function(e){var r=e.closest("p, div, li")||e;/^table of contents$/i.test(t(r.textContent||""))&&r.remove()})},validateMarkdown:function(e,t){return/\bSection\s*1/i.test(t)&&/\bSection\s*2/i.test(t)},extra:{legalProvision:!0}})}function Tf(e){var r=document.querySelector("text .text .section, text .section, [class~='text'] > .section");if(!r)return null;var n=t(r.textContent||""),o=!!document.querySelector("notes, [id*='notes' i], [class*='notes' i]"),i=t((document.querySelector("#page_title, #pageTitle, h1")||{}).textContent||e.title||document.title),a=t([i,document.title,location.pathname].join(" ")),l=Mi({text:n,title:a,path:location.pathname||""}),s=/\b(?:U\.S\.\s+Code|Code|Statute|Act|Section|§)\b/i.test(a)||l.sectionOrArticleMarker;return n.length<250||!o||!s||l.numberedClauses<2?null:fr(e,r,{title:i||e.title||document.title,byline:null,excerpt:function(t,r,n,o,i){return e.excerpt||i.slice(0,280)},siteName:e.siteName||location.hostname,publishedTime:e.publishedTime||null,minTextLength:250,extra:{legalProvision:!0}})}function _f(e){var r=document.querySelector("#main-article .article-content, #main-content .article-content, .article-content.retro-folders");if(!r)return null;var n=Array.prototype.filter.call(r.querySelectorAll("a[href]"),function(e){return/\/pmwiki\/pmwiki\.php\/Main\//i.test(e.getAttribute("href")||"")}).length;return r.querySelectorAll("li").length<20||n<10?null:ar(e,r,{title:g(["#main-article h1","#main-content h1","h1"])||t((e.title||document.title).replace(/\s*-\s*TV Tropes\s*$/i,"")),byline:null,publishedTime:null,minTextLength:1200,rewriteRoot:function(e){["#modal_overlay",".modal_overlay","script","style","iframe",".ad-unit","[id*='ad-']","[class*='ad-']","[class*='advert']","[class*='watch']"].forEach(function(t){e.querySelectorAll(t).forEach(function(e){e.remove()})})}})}function Lf(e){if(!Ut(/(^|\.)fandom\.com$/)||!document.querySelector(".mw-parser-output, .page-content, #content"))return null;var r=document.querySelector(".mw-parser-output")||document.querySelector(".page-content")||document.querySelector("#content");return r?ar(e,r,{title:g(["h1.page-header__title","#firstHeading","h1"])||t((e.title||document.title).replace(/\s*\|\s*.*Wiki\s*\|\s*Fandom$/i,"")),byline:e.byline,minTextLength:40,rewriteRoot:function(e){e.querySelectorAll(".navbox, table.navbox, .navbox-styles, .portable-infobox, .pi-collapse, .mw-editsection, .toc, #toc, .catlinks, #catlinks, .printfooter, .noprint, .mw-empty-elt, .page-footer, .article-footer, .fandom-community-header, .mcf-card-header, .mcf-card-footer, .mcf-card, .page-header__categories, .article-categories, .wds-button-group, .fandom-sticky-header").forEach(function(e){e.remove()}),e.querySelectorAll("a[href*='auth.fandom.com'], a[href*='fandom.com/signin'], a[href*='fandom.com/register']").forEach(function(e){var r=e.closest("div, span, li, p");r&&t(r.textContent||"").length<120?r.remove():e.remove()}),e.querySelectorAll("table").forEach(function(e){var r=t(e.textContent||""),n=e.querySelectorAll("a[href]").length,o=e.querySelector("th, td, caption"),i=o?t(o.textContent||""):"";if(n>=10&&/^(characters|items|locations|enemies|weapons|quests|episodes|levels|bosses|creatures|missions|npcs|monsters|equipment|fishes?|fish of|cast of)\b/i.test(i))e.remove();else if(!e.querySelector("p, h2, h3, h4, blockquote, pre")&&n>=15){if(n/(e.querySelectorAll("tr").length||1)>3)return void e.remove();if(n>=30&&r.length>300)if(n/r.split(/\s+/).length>.15)return void e.remove()}})}}):null}function jf(e){if(!/(^|\.)(stackexchange\.com|stackoverflow\.com|superuser\.com|serverfault\.com|askubuntu\.com|stackapps\.com|mathoverflow\.net)$/.test(location.hostname)||!/\/questions\//.test(location.pathname||""))return null;var r=document.querySelector(".question, #question, #mainbar, [data-questionid]"),n=g(["h1 a.question-hyperlink",".question-header h1","#question-header h1","main h1","h1[itemprop='name']"])||t((e.title||document.title).replace(/\s*[-|]\s*.+?Stack Exchange$/i,"").replace(/\s*[-|]\s*Stack Overflow$/i,"")),o=document.querySelector(".question .js-post-body, .question .s-prose, #question .js-post-body, #question .s-prose, .postcell .js-post-body, .postcell .s-prose, [data-questionid] .js-post-body, [data-questionid] .s-prose"),i="";if(o){var a=tr(o);nr(a),i=Jn(a.innerHTML)}i||(i=g([".question .js-post-body",".question .s-prose","#question .js-post-body","#question .s-prose",".postcell .js-post-body",".postcell .s-prose","[data-questionid] .js-post-body","[data-questionid] .s-prose"]));var l=g([".question .user-details a","#question .user-details a",".postcell .user-details a","[data-questionid] .user-details a"]),s=Array.prototype.slice.call(document.querySelectorAll(".answer, .js-answer, [data-answerid]")).map(function(e){var r=t(((e.querySelector(".js-vote-count, .vote-count-post")||{}).textContent||"0").replace(/[^\d-]+/g,"")),n=parseInt(r||"0",10),o=t((e.querySelector(".user-details a")||{}).textContent||""),i=e.querySelector(".js-post-body, .s-prose"),a="";if(i){var l=tr(i);nr(l),a=Jn(l.innerHTML)}a||(a=t((e.querySelector(".js-post-body, .s-prose")||{}).innerText||""));var s=e.matches(".accepted-answer")||!!e.querySelector(".js-accepted-answer-indicator, .accepted-answer, [data-accepted='true']");return{score:isNaN(n)?0:n,author:o,body:a,accepted:s}}).filter(function(e){return e.body.length>=40}).sort(function(e,t){return e.accepted!==t.accepted?e.accepted?-1:1:t.score-e.score});if(!n||!i&&0===s.length)return null;var c=["# "+n];l&&c.push("- Asked by: "+l),i&&c.push(i),s.length&&c.push("## Top Answers"),s.forEach(function(e,t){var r=e.author||"Answer "+(t+1);e.accepted&&(r+=" (accepted)"),e.score&&(r+=" - score "+e.score),c.push("### "+r),c.push(e.body)});var u=c.filter(Boolean).join("\n\n");return{title:n,byline:l||e.byline,excerpt:i||e.excerpt,siteName:e.siteName||location.hostname,publishedTime:e.publishedTime,html:r?r.outerHTML:"",markdown:u,textContent:t(u),readerMode:!1,contentType:"social",socialKind:"thread",platform:/(^|\.)stackoverflow\.com$/.test(location.hostname)?"Stack Overflow":"Stack Exchange",handle:l||null,replyCount:Pf(r),community:Nf(e),score:$f(r)}}function Pf(e){var r=e.querySelector(".js-answer-count, [data-answercount]"),n=t(e.getAttribute("data-answercount")||r&&(r.getAttribute("data-answercount")||r.textContent)||"").match(/^(\d[\d,]*)\s*(?:answers?)?$/i);return n?Number(n[1].replace(/,/g,"")):null}function $f(e){var r=e.querySelector(".js-vote-count, .vote-count-post, [itemprop='upvoteCount']"),n=t(r&&(r.getAttribute("data-value")||r.getAttribute("content")||r.textContent)||"");return/^-?\d[\d,]*$/.test(n)?Number(n.replace(/,/g,"")):null}function Nf(e){var r=t(e.title||document.title||"").match(/[-|]\s*(.+?(?:Stack Exchange|Stack Overflow|Super User|Server Fault|Ask Ubuntu|MathOverflow))\s*$/i);return r?t(r[1]):null}function Rf(e){return"/item"===(location.pathname||"")&&Pe("id")&&document.querySelector("tr.athing .titleline, table.comment-tree tr.comtr .commtext")?function(e){var r=Mf(document.querySelector("tr.athing")),n=Array.prototype.slice.call(document.querySelectorAll("table.comment-tree tr.comtr")).map(function(e){var r=e.querySelector(".commtext"),n=t(r&&r.textContent||""),o=!!e.querySelector(".deadmark")||/\[(?:deleted|dead)\]/i.test(n),i=e.querySelector("td.ind img"),a=Number(i&&i.getAttribute("width")||0),l=t((e.querySelector(".hnuser")||{}).textContent||""),s=t((e.querySelector(".age")||{}).textContent||""),c=r?Jn(r.innerHTML).trim():"";return c||o?{author:l,age:s,depth:Math.max(0,Math.round(a/40)),deleted:o,markdown:c||"[deleted]",text:n||"[deleted]",html:e.outerHTML}:null}).filter(Boolean);if(!r&&0===n.length)return null;var o=n[0],i=r?r.title:"Comment by "+(o.author||"deleted user"),a=["# "+i],l=[],s=document.querySelector(".toptext");r&&r.url&&l.push("- Story: "+Se(r.title,r.url));r&&r.author&&l.push("- Author: "+r.author);r&&r.age&&l.push("- Published: "+r.age);r&&null!==r.score&&l.push("- Score: "+r.score);r&&null!==r.replyCount&&l.push("- Replies: "+r.replyCount);l.length&&a.push(l.join("\n"));s&&a.push(Jn(s.innerHTML).trim());n.length&&a.push("## Comments\n\n"+function(e){return e.map(function(e){var t=Math.min(6,3+e.depth),r=e.deleted?"Deleted comment":e.author||"Comment";return e.age&&(r+=" ("+e.age+")"),Array(t+1).join("#")+" "+r+"\n\n"+e.markdown}).join("\n\n")}(n));var c=a.filter(Boolean).join("\n\n").trim(),u=r&&null!==r.replyCount?r.replyCount:n.some(function(e){return e.depth>0})?n.filter(function(e){return e.depth>0}).length:null;return{title:i,byline:r&&r.author||o&&o.author||null,excerpt:t(s&&s.textContent||o&&o.text||e.excerpt||""),siteName:"Hacker News",publishedTime:null,html:(r?r.html:"")+n.map(function(e){return e.html}).join("\n"),markdown:c,textContent:t(c),readerMode:!1,hostAware:!0,contentType:"social",socialKind:u?"thread":"post",platform:"Hacker News",handle:r&&r.author||o&&o.author||null,replyCount:u,score:r&&r.score}}(e):(r=location.pathname||"/",/^\/(?:|front|newest|best|ask|show|jobs)$/.test(r)&&(document.querySelectorAll("table.itemlist tr.athing .titleline").length>=3||document.querySelectorAll("table#hnmain tr.athing .titleline").length>=3)?function(e){var r=document.querySelectorAll("table.itemlist tr.athing");r.length<3&&(r=document.querySelectorAll("table#hnmain tr.athing"));var n=Array.prototype.slice.call(r).map(Mf).filter(Boolean);if(n.length<3||Wo(n)<3)return null;var o=t((document.querySelector(".pagetop b, .pagetop a.topsel")||{}).textContent||""),i="# "+(o||e.title||"Hacker News")+"\n\n"+n.map(function(e){var t=[];return null!==e.score&&t.push(e.score+" points"),e.author&&t.push("by "+e.author),e.age&&t.push(e.age),"- "+Se(e.title,e.url)+(t.length?" - "+t.join(" - "):"")}).join("\n");return{title:o||e.title||"Hacker News",byline:null,excerpt:n[0].title,siteName:"Hacker News",publishedTime:null,html:n.map(function(e){return e.html}).join("\n"),markdown:i,textContent:t(i),readerMode:!1,hostAware:!0,contentType:"social",socialKind:"feed",platform:"Hacker News",community:o||null}}(e):null);var r}function Mf(e){if(!e)return null;var r=e.querySelector(".titleline > a, a.titlelink"),n=t(r&&r.textContent||"");if(!n)return null;var o=e.nextElementSibling||document.createElement("tr"),i=o.querySelector(".subtext")||e.querySelector(".subtext"),l=t(i&&i.textContent||""),s=l.match(/\b(\d+)\s+points?\b/i),c=l.match(/\b(\d+)\s+comments?\b/i),u=t((i&&i.querySelector(".hnuser")||{}).textContent||""),d=t((i&&i.querySelector(".age")||{}).textContent||""),m=!!e.querySelector(".deadmark")||/\[dead\]/i.test(l),p=r&&r.getAttribute("href")||"";return{title:m?"[dead] "+n:n,url:a(p),sourceHref:p,author:u,age:d,score:s?Number(s[1]):null,replyCount:c?Number(c[1]):null,dead:m,html:e.outerHTML+(o.outerHTML||"")}}function Bf(){var e=(location.pathname||"").split("/").filter(Boolean);if(e[0]&&"@"===e[0].charAt(0))return e[0]+"@"+location.hostname;var r=t((document.querySelector("main")||{}).textContent||"").match(/@?[A-Za-z0-9_.-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}/);return r?"@"===r[0].charAt(0)?r[0]:"@"+r[0]:""}function Of(){var e=Array.prototype.slice.call(document.querySelectorAll(".status, .status-public, .status__wrapper, article.status-public, .detailed-status__wrapper"));return Array.prototype.slice.call(document.querySelectorAll(".status__content, .status__content__text")).forEach(function(t){var r=t.closest("article, .status-public, .status__wrapper, .detailed-status__wrapper");r&&e.indexOf(r)<0&&e.push(r)}),e.filter(function(t,r){return!t.closest("footer, nav")&&e.indexOf(t)===r})}function zf(e){return e.map(function(e){var t=tr(e);return t?(nr(t),t.querySelectorAll(".status__action-bar, .status__prepend, .status__prepend-icon, .status__reblog, .invisible, .ellipsis, [aria-hidden='true']").forEach(function(e){e.remove()}),t.outerHTML):""}).filter(Boolean).join("\n")}function If(e){var r=function(e){var r=e.querySelector(".status__content__text, .status__content")||e,n=tr(r);if(n){nr(n),n.querySelectorAll(".status__action-bar, .status__prepend, .status__prepend-icon, .status__reblog, .invisible, .ellipsis, [aria-hidden='true'], button, time").forEach(function(e){e.remove()});var o=Jn(n.innerHTML);if(t(o).length>=20)return o.trim()}return t(r.textContent)}(e);return!r||t(r).length<20||/^(profiles directory|keyboard shortcuts|view source code|about mastodon|get the app)$/i.test(t(r))?null:{author:et(e,[".detailed-status__display-name",".status__display-name",".display-name"]),time:et(e,["time"]),body:r,node:e}}function Hf(e){if(!/^\/@[^/]+\/\d+\/?$/i.test(location.pathname||""))return null;var r=Of().map(If).filter(Boolean);if(!r.length)return null;var n=r[0],o=r.slice(1),i=g(["meta[property='og:title']"],"content")||e.title||document.title||"Mastodon post",a=["# "+(i=t(i.replace(/\s*-\s*Mastodon\s*$/i,"")))];n.author&&a.push("- Author: "+n.author),n.time&&a.push("- Published: "+n.time),a.push(n.body),o.length&&a.push("## Replies"),o.forEach(function(e){var t=e.author||"Reply";e.time&&(t+=" ("+e.time+")"),a.push("### "+t),a.push(e.body)});var l=a.filter(Boolean).join("\n\n").trim();return t(l).length<40?null:{title:i,byline:n.author||e.byline,excerpt:t(n.body).slice(0,280)||e.excerpt,siteName:e.siteName||"Mastodon",publishedTime:e.publishedTime,html:zf([n].concat(o).map(function(e){return e.node})),markdown:l,textContent:t(l),readerMode:!1,contentType:"social",socialKind:o.length?"thread":"post",platform:"Mastodon",handle:Bf()||null,replyCount:o.length||null,hostAware:!0}}function Ff(e){if(!function(e){var r=t([e&&e.title,e&&e.siteName,g(["meta[name='application-name']","meta[property='og:site_name']"],"content"),document.title].join(" ")),n=document.querySelector(".detailed-status__wrapper.detailed-status__wrapper-public"),o=/mastodon/i.test(r)||!!(n&&n.querySelector(".detailed-status, .detailed-status__display-name")&&n.querySelector(".display-name__account")&&n.querySelector(".status__content__text")&&n.querySelector(".detailed-status__action-bar")),i=/^\/(?:@[^/]+|tags\/[^/?#]+|explore\/?$)/i.test(location.pathname||"");return o&&i}(e))return null;var n=Hf(e);if(n)return n;var o=(location.pathname||"").split("/").filter(Boolean),i="tags"===o[0]?o[1]:"",a="explore"===o[0],l=i||a?"":Bf(),s=g(["[class*='account_header__name'] h1",".display-name strong",".display-name b",".display-name"])||"";s&&l&&s.toLowerCase().indexOf(l.toLowerCase())>=0&&(s=t(s.replace(l,"")));var c=g(["[class*='account_bio__bio']",".account__header__content",".account__header__bio",".public-account-bio",".profile__bio","[data-testid='profile-note']"]),u=function(){var e={},r=[];return Of().forEach(function(n){var o=If(n);if(o){var i=t(o.body).slice(0,220).toLowerCase();if(!e[i]){e[i]=!0;var a=t(o.body);o.author&&0!==a.toLowerCase().indexOf(o.author.toLowerCase())&&(a=o.author+": "+a),o.time&&(a+=" ("+o.time+")"),r.push(a)}}}),r}(),d=!!document.querySelector("[class*='account_header'], .public-account-header, .profile__header, [data-testid='profile-header']");if(!(i||a||l||s||c||0!==u.length))return null;if(i&&0===u.length)return null;/^mastodon$/i.test(s)&&l&&(s="");var m=i?"#"+r(i)+" on Mastodon":a?"Mastodon Explore":s||l||e.title||"Mastodon Profile",p=["# "+m],f=[];l&&f.push("- Handle: "+l),Array.prototype.slice.call(document.querySelectorAll("[class*='number_fields__item']")).map(function(e){var r=t(e.textContent),n=r.match(/^(Followers|Following|Posts|Joined)(.+)$/i);return n?n[1]+": "+n[2]:r}).filter(Boolean).forEach(function(e){f.push("- "+e)}),f.length&&p.push(f.join("\n")),c&&p.push(c),u.length&&p.push("## Recent Posts\n\n"+u.map(function(e){return"- "+e}).join("\n"));var h=p.filter(Boolean).join("\n\n").trim();if(t(h).length<40)return null;var y={title:m,byline:null,excerpt:c||u[0]||e.excerpt,siteName:e.siteName||"Mastodon",publishedTime:null,html:zf([document.querySelector("main")]),markdown:h,textContent:t(h),readerMode:!1,contentType:d||u.length>=2?"social":"list",hostAware:!0};return"social"===y.contentType&&(y.socialKind=d?"profile":"feed",y.platform="Mastodon",l&&(y.handle=l),i&&(y.community="#"+r(i))),y}function Df(e,r){if(!Ut(/(^|\.)(t\.me|telegram\.(org|me)|telegra\.ph)$/))return null;var n=r||"";if(Ut(/(^|\.)telegra\.ph$/)){var o=document.querySelector("article, .tl_article");if(o){var i=tr(o);if(i){$r(i,"a, span, div, p",/^(report content on this page|report|edit)$/i);var a=Jn(i.innerHTML)||t(i.textContent);if(a&&t(a).length>20)return{title:e.title||g(["h1",".tl_article_header h1"]),excerpt:e.excerpt,siteName:"Telegraph",html:i.innerHTML,markdown:a,textContent:t(a),readerMode:!1,contentType:"article",hostAware:!0}}}return null}if(Ut(/(^|\.)telegram\.org$/))return null;var l=Ut(/(^|\.)t\.me$/)&&/^\/s\//i.test(location.pathname),s=(location.pathname||"").split("/").filter(Boolean);if(l&&(s=s.slice(1)),s=s[0]||"",l){var c=g([".tgme_channel_info_header_title",".tgme_header_title","h1"])||e.title||s,u=document.querySelector(".tgme_channel_info_description"),d=u?t(u.textContent):"",m=g([".tgme_channel_info_header_username"]),p=document.querySelector(".tgme_channel_info_header_username[href*='t.me/']");!m&&p&&(m=(p.getAttribute("href")||"").match(/t\.me\/([^/?#]+)/i)),Array.isArray(m)&&(m=m[1]),m&&"@"!==m.charAt(0)&&(m="@"+m);var f=(location.pathname||"").match(/^\/s\/([^/]+)\/(\d+)\/?$/i),h=f&&(f[1]+"/"+f[2]).toLowerCase(),y=Array.prototype.slice.call(document.querySelectorAll(".tgme_widget_message[data-post], .tgme_widget_message")).map(function(e){var r=e.getAttribute("data-post")||"";if(!r){var n=e.querySelector(".tgme_widget_message_date[href]")||e.querySelector("a[href*='t.me/']"),o=n&&(n.getAttribute("href")||"").match(/t\.me\/([^/?#]+)\/(\d+)\/?(?:[?#].*)?$/i);o&&(r=o[1]+"/"+o[2])}var i=tr(e.querySelector(".tgme_widget_message_text, .js-message_text")),a=i?Jn(i.innerHTML)||t(i.textContent):"";if(!t(a))return null;var l=e.querySelector(".tgme_widget_message_date time, time");return{post:r,author:et(e,[".tgme_widget_message_author",".tgme_widget_message_owner_name"]),time:l?l.getAttribute("datetime")||t(l.textContent):"",markdown:a,html:e.outerHTML}}).filter(Boolean),b=f&&y.filter(function(e){return e.post.toLowerCase()===h})[0];if(b){var v=["# "+c];m&&v.push("- Channel: "+m),b.author&&v.push("- Author: "+b.author),b.time&&v.push("- Published: "+b.time),v.push(b.markdown);var w=v.join("\n\n");return{title:c,byline:b.author||c,excerpt:t(b.markdown).slice(0,280)||e.excerpt,siteName:"Telegram",publishedTime:b.time||e.publishedTime,html:b.html,markdown:w,textContent:t(w),readerMode:!1,contentType:"social",socialKind:"post",platform:"Telegram",handle:m||null,community:m||null,hostAware:!0}}if(!f&&y.length>=2){var A=["# "+c];m&&A.push("- Channel: "+m),d&&A.push(d),y.forEach(function(e){A.push("## "+(e.time||e.author||"Telegram post")),A.push(e.markdown)});var S=A.join("\n\n");return{title:c,excerpt:d||t(y[0].markdown).slice(0,280)||e.excerpt,siteName:"Telegram",html:y.map(function(e){return e.html}).join("\n"),markdown:S,textContent:t(S),readerMode:!1,contentType:"social",socialKind:"feed",platform:"Telegram",handle:m||null,community:m||null,hostAware:!0}}var x=document.querySelector(".tgme_channel_history, .tgme_body, main");if(x){var k=tr(x);if(k){$r(k,"a, span, div, i",/^(view in telegram|preview channel|join|open|if you have telegram|you can contact|you can view and join|load more)$/i);var C=Jn(k.innerHTML)||t(k.textContent);if(C&&t(C).length>50){var q=document.querySelectorAll(".counter_value"),E=q.length>0?t(q[0].textContent):"",T=[];T.push("# "+c);var _=["- Platform: Telegram"];E&&_.push("- "+E+" subscribers"),e.image&&_.push("- Image: "+e.image),T.push(_.join("\n")),d&&T.push(d),T.push("---\n\n"+C);var L=T.join("\n\n");return{title:c,excerpt:d||e.excerpt,siteName:"Telegram",html:k.innerHTML,markdown:L,textContent:t(L),readerMode:!1,contentType:"article",hostAware:!0}}}}}var j=g([".tgme_page_title",".tgme_channel_info_header_title","h1"])||e.title||s,P=document.querySelector(".tgme_page_description"),$=(P?t(P.textContent):"")||e.excerpt||"";/you can contact .+ right away|if you have telegram/i.test($)&&($="");var N=document.querySelector(".tgme_page_extra"),R=(N?t(N.textContent):"").match(/([\d\s,.]+)\s*(?:subscribers?|members?|online)/i)||n.match(/([\d\s,.]+)\s*(?:subscribers?|members?|подписчик|участник)/i),M=["Platform: Telegram"];return R&&M.push(t(R[1])+" subscribers"),e.image&&M.push("Image: "+e.image),$||j?je({title:j,description:$||"Telegram channel. View in Telegram for full content.",details:M,siteName:"Telegram",hostAware:!0}):null}function Uf(e){return Wf(e)?function(e){var r=Array.prototype.slice.call(document.querySelectorAll(".topic-post, article[data-post-id], [data-post-id].topic-post")),n=[],o=[],i={},a=t(g([".fancy-title","#topic-title h1",".topic-title h1","main h1","article h1","h1"])||e.title||document.title);return r.forEach(function(e){var r=e.querySelector(".cooked, .post-body");if(r){var a=t(r.innerText||r.textContent||"");if(a){var l=a.slice(0,240);if(!i[l]){i[l]=!0;var s=function(e){var r=e.querySelector(".topic-meta-data [data-user-card], .main-avatar[data-user-card], [data-user-card], .topic-meta-data .names .username, .topic-meta-data .username, .names .username, .creator a, .poster a"),n=t(r&&(r.getAttribute("data-user-card")||r.textContent)||"");n=n.replace(/^@/,"");var o=e.querySelector(".topic-meta-data time, .topic-meta-data .relative-date, .post-meta time, time"),i=t(o&&(o.getAttribute("datetime")||o.getAttribute("title")||o.textContent)||"");i&&(i=i.replace(/T.*$/u,""));return n&&i?"post by "+n+" on "+i:n?"post by "+n:i?"post on "+i:"post"}(e),c=Jn(r.outerHTML);c&&(n.push("## "+s),n.push(c),o.push(a))}}}}),a&&0!==o.length?{title:a,byline:e.byline,excerpt:o[0],siteName:e.siteName||location.hostname,publishedTime:e.publishedTime,html:r.map(function(e){return e.outerHTML}).join("\n"),markdown:["# "+a].concat(n).join("\n\n"),textContent:t([a].concat(o).join(" ")),hostAware:!0,readerMode:!1,contentType:"social",socialKind:"thread",platform:"Discourse",community:Gf()}:null}(e):function(e){return!!Zf()&&(!Wf(e)&&!!document.querySelector(".topic-list, .topic-list-item, .latest-topic-list-item, .category-list"))}(e)?function(e){var r=Array.prototype.slice.call(document.querySelectorAll(".topic-list-item, .latest-topic-list-item, .category-list-item, .topic-list tr")),n=[],o={};if(r.forEach(function(e){var r=e.querySelector("a.title, a[href*='/t/'], a[href*='/c/']");if(r){var i=r.getAttribute("href")||"",l=a(i),s=t(r.textContent||r.getAttribute("aria-label")||"");if(s){var c=(l||"unlinked:"+i)+"|"+s;if(!o[c]){o[c]=!0;var u=Gl(e,s);n.push({text:s,url:l,detail:u})}}}}),n.length<3||Wo(n)<3)return null;var i=Ne({title:t(g([".fancy-title","#topic-title h1",".topic-title h1",".category-heading h1",".category-title-box h1","main h1","h1"])||e.title||document.title),excerpt:e.excerpt,siteName:e.siteName||location.hostname,items:n,html:r.map(function(e){return e.outerHTML}).join("\n")});return i.hostAware=!0,i.contentType="social",i.socialKind="feed",i.platform="Discourse",i.community=Gf(),i}(e):null}function Wf(e){return!!Zf()&&(!!document.querySelector(".post-stream, .topic-post, article[data-post-id]")&&!!document.querySelector(".fancy-title, #topic-title h1, .topic-title h1"))}function Gf(){var e=document.querySelector(".category-breadcrumb a[href*='/c/'], .topic-category a[href*='/c/'], .category-name a[href*='/c/'], a.badge-category[href*='/c/']");return t(e&&e.textContent||"")||null}function Zf(){var e=document.body,t=e&&e.className||"",r=!!document.querySelector("#main-outlet, .wrap"),n=!!document.querySelector("#data-discourse-setup"),o=!!document.querySelector("meta[name='generator'][content^='Discourse']"),i=!!document.querySelector("meta[name='discourse_theme_id']"),a=/\bember-application\b/.test(t)&&/\bdiscourse\b/i.test(t);return r&&(n||o||i||a)}function Kf(e){var r=t(e||"");return/^-?\d[\d,]*$/.test(r)?Number(r.replace(/,/g,"")):null}function Vf(){var e=(location.pathname||"").split("/").filter(Boolean);return"r"===e[0]&&/^[\w-]+$/.test(e[1]||"")?"r/"+e[1]:null}function Jf(e,r){if(!Ut(/(^|\.)reddit\.com$/))return null;var n=function(e,r){var n=(location.search||"").toLowerCase(),o=t([e.title,document.title,r].join(" ")).toLowerCase(),i=/(?:[?&](?:js_challenge|solution)=)/.test(n),a=/(?:javascript challenge|complete the security check|verify you are human|checking your browser)/.test(o);return i&&a?je({title:t(e.title||document.title)||"Reddit access verification required",description:"Reddit is presenting an access verification challenge before the requested community can be shown.",details:["Challenge: Reddit access verification"],siteName:e.siteName||"Reddit",contentType:"interstitial"}):null}(e,r);if(n)return n;var o=function(e){var r=document.querySelector("shreddit-post");if(!r)return null;var n=t((r.querySelector('[slot="title"]')||document.querySelector("main h1")||{}).textContent||e.title||document.title),o=t((r.querySelector('[slot="credit-bar"]')||{}).textContent||""),i=r.getAttribute("author")||g(["[slot='credit-bar'] a[href*='/user/']","a[href*='/user/']"]);i=t(i);var a=t((r.querySelector('[slot="text-body"]')||{}).innerText||"");a||Array.prototype.slice.call(document.querySelectorAll("faceplate-screen-reader-content")).some(function(e){var r=t(e.innerText||e.textContent||"");return!(!r||/^go to\s+\w+$/i.test(r)||(a=r,0))});var l=Kf(r.getAttribute("comment-count")),s=Kf(r.getAttribute("score")),c=Array.prototype.slice.call(document.querySelectorAll("shreddit-comment[depth='0'], shreddit-comment:not([depth])")),u=[];if(c.forEach(function(e){var r=t(e.getAttribute("author")||""),n=t(e.getAttribute("score")||""),o=t((e.querySelector('[slot="commentMeta"]')||{}).innerText||""),i=t((e.querySelector('[slot="comment"]')||{}).innerText||"");if(i){var a=r||"Comment";n&&(a+=" ("+n+" points)"),u.push({heading:a,meta:o,text:i})}}),!n||!a&&0===u.length)return null;var d=["# "+n];return i&&d.push("- Author: "+i),!o||i&&-1!==o.toLowerCase().indexOf(i.toLowerCase())||d.push("- Context: "+o),a&&d.push(a),(l||u.length)&&d.push("## Top Comments"),u.forEach(function(e){d.push("### "+e.heading),e.meta&&-1===e.meta.toLowerCase().indexOf(e.heading.toLowerCase())&&d.push(e.meta),d.push(e.text)}),{title:n,byline:i||e.byline,excerpt:a||e.excerpt,siteName:e.siteName||"Reddit",publishedTime:e.publishedTime,html:r.outerHTML,markdown:d.filter(Boolean).join("\n\n"),textContent:t([n,a].concat(u.map(function(e){return e.text})).join(" ")),readerMode:!1,contentType:u.length?"social":"article",socialKind:u.length?"thread":null,platform:u.length?"Reddit":null,handle:u.length?i:null,replyCount:u.length?l:null,community:u.length?Vf():null,score:u.length?s:null}}(e);if(o)return o;if(!/(cookie preferences|before you continue to reddit|reddit uses cookies|log in|sign up)/i.test(r||""))return null;var i=(location.pathname||"").split("/").filter(Boolean),a="r"===i[0]?i[1]:null,l=t((e.title||document.title).replace(/\s*:\s*r\/[^|]+$/i,""))||e.title||"Reddit page",s=e.excerpt||"Original content on this Reddit page is not available without cookie acceptance or login.",c=["Access notice: Reddit cookie acceptance or login required"];return a&&c.push("Requested community: r/"+a),je({title:l,description:s,details:c,siteName:e.siteName||"Reddit"})}function Xf(e){if(!Ut(/(^|\.)stackoverflow\.com$/))return null;if(!/^\/questions\/\d+(?:\/|$)/.test(location.pathname||""))return null;var r=document.querySelector("#question, .question[data-questionid], .question");if(!r)return null;var n=r.querySelector(".js-post-body, .s-prose[itemprop='text'], [itemprop='text']"),o=t(g(["#question-header h1 a","#question-header h1","h1[itemprop='name']","main h1","h1"])||e.title||document.title);o=o.replace(/\s*-\s*Stack Overflow\s*$/i,"");var i=Yf(n);if(!o||!i)return null;var a=Array.prototype.slice.call(document.querySelectorAll("#answers .answer, .answer[data-answerid]")),l=[];a.forEach(function(e){var t=Yf(e.querySelector(".js-post-body, .s-prose[itemprop='text'], [itemprop='text']"));if(t){var r=Qf(e),n=!!e.querySelector(".js-accepted-answer-indicator, .fc-green-500, [title*='accepted']")?"Accepted answer":"Answer";r&&(n+=" ("+r+" votes)"),l.push({heading:n,markdown:t})}});var s,c=["# "+o,"## Question",i];return l.length>0&&c.push("## Answers"),l.forEach(function(e){c.push("### "+e.heading),c.push(e.markdown)}),{title:o,byline:e.byline,excerpt:t(n&&n.textContent||e.excerpt||""),siteName:e.siteName||"Stack Overflow",publishedTime:e.publishedTime,html:[r.outerHTML].concat(a.map(function(e){return e.outerHTML})).join("\n"),markdown:c.filter(Boolean).join("\n\n"),textContent:t([o,i].concat(l.map(function(e){return e.markdown})).join(" ")),hostAware:!0,singleTopicPage:!0,readerMode:!1,contentType:"social",socialKind:"thread",platform:"Stack Overflow",handle:(s=r,t((s.querySelector(".user-details a")||{}).textContent||"")||null),replyCount:eh(r),community:"Stack Overflow",score:Qf(r)}}function Yf(e){if(!e)return"";var t=tr(e);return rr(t,".js-post-menu, .post-menu, .comments, .js-comments-container, .js-add-link, .dno, [aria-hidden='true']"),mn(Jn(t.innerHTML))}function Qf(e){var r=e.querySelector(".js-vote-count, .vote-count-post, [itemprop='upvoteCount']"),n=t(r&&(r.getAttribute("data-value")||r.getAttribute("content")||r.textContent)||"");return/^-?\d[\d,]*$/.test(n)?n.replace(/,/g,""):""}function eh(e){var r=e.querySelector(".js-answer-count, [data-answercount]"),n=t(e.getAttribute("data-answercount")||r&&(r.getAttribute("data-answercount")||r.textContent)||"").match(/^(\d[\d,]*)\s*(?:answers?)?$/i);return n?Number(n[1].replace(/,/g,"")):null}function th(e,n){if(!Ut(/(^|\.)behance\.net$/))return null;var o=[],i={};if(document.querySelectorAll("a[href*='/gallery/'], a[href*='/project/']").forEach(function(e){var r=e.getAttribute("href");if(r){var n=a(r);if(n)try{var l=new URL(n,location.href);l.searchParams.delete("tracking_source"),l.searchParams.delete("l"),n=l.toString()}catch(e){}var s=t(e.textContent||e.getAttribute("aria-label")||"");if(s){var c=s+"|"+(n||"unlinked:"+r);if(!i[c]){i[c]=!0;var u=e.closest("article, li, div, section")||e.parentElement;o.push({text:s,url:n,detail:Gl(u,s)})}}}}),o.length>=4&&Wo(o)>=4){var l=r((location.pathname||"").split("/").filter(Boolean).slice(-1)[0]||"").replace(/[-_+]+/g," ");return{title:(l=t(l))?"Behance projects for "+l:e.title||document.title,byline:null,excerpt:e.excerpt,siteName:e.siteName||"Behance",publishedTime:null,html:"",textContent:_e(o),markdown:_e(o),readerMode:!1,contentType:"list",hostAware:!0}}if(!/(cookie settings|measure performance|personalize advertising|adobe and our partners)/i.test(n||""))return null;var s=t((e.title||document.title).replace(/\s*::\s*Photos, videos, logos, illustrations and branding$/i,""))||e.title||"Behance page",c=e.excerpt||"This Behance page is showing Adobe cookie settings instead of the original content.",u=["Access notice: Adobe cookie settings prompt"];return/^\/search\//.test(location.pathname)&&u.push("Requested view: Behance search results"),je({title:s,description:c,details:u,siteName:e.siteName||"Behance"})}function rh(e,n){if(!Ut(/(^|\.)quora\.com$/))return null;if(!/(security verification|just a moment|protect against malicious bots)/i.test(n||""))return null;var o=r((location.pathname||"").split("/").filter(Boolean)[0]||"").replace(/[-_]+/g," ");return!(o=t(o))||/^just a moment$/i.test(o)?null:je({title:o,description:e.excerpt,siteName:e.siteName||"Quora"})}function nh(e){var r=Dr(e);if(!Ut(/(^|\.)glassdoor\.com$/)&&!/glassdoor/i.test(r))return null;if(location.pathname&&"/"!==location.pathname&&"/index.htm"!==location.pathname)return null;var n=g(["main h1","h1"])||t((e.title||document.title).replace(/\s*\|.*$/,"")),o=A(["main h2","main p"]).filter(function(e){return e.length>=12&&!/^(continue with google|continue with apple|or email|sign in|community jobs companies salaries for employers)$/i.test(e)}),i=o.find(function(e){return e!==n&&e.length>=40})||e.excerpt,a=o.filter(function(e){return e!==n&&e!==i});return n||i?je({title:n,description:i,highlights:a,siteName:e.siteName||"Glassdoor"}):null}function oh(e,r){var n=e.querySelector(r);return n?t(n.getAttribute("datetime")||n.textContent||""):""}function ih(e){var r=location.pathname||"/",n=r.match(/^\/tag\/([^/]+)\/?$/);if("/"!==r&&!n)return null;var o="/"===r?"section.link-block.stream-home[id^='link-']":"section.entry.stream-tag[id^='comment-'], section.link-block.stream-tag[id^='link-']",l={},s=[];if(document.querySelectorAll(o).forEach(function(e){var r=function(e){var r=e.querySelector("h1 a[href^='/link/'], h2 a[href^='/link/'], h3 a[href^='/link/'], a[href^='/wpis/'], a.permalink[href]");if(!r)return null;var n=i(r.getAttribute("href")),o=t(r.textContent||r.getAttribute("title")||""),l=oh(e,".body, .description, .excerpt, p");if(!o||!n||!/^https:\/\/wykop\.pl\/(?:link|wpis)\//.test(n))return null;var s=[],c=oh(e,".author, [rel='author'], [data-author]"),u=oh(e,"time"),d=oh(e,".score, [data-score]"),m=oh(e,".reply-count, .comment-counter, [data-replies]"),p=oh(e,".tag, .category, [data-category]"),f=oh(e,".source, .domain, [data-source]"),h=e.querySelector("img[src]"),g=h?t(h.getAttribute("alt")||""):"",y=h?a(h.getAttribute("src")):"",b=e.querySelector(".promoted, .recommendation, [data-promoted]"),v=e.closest&&e.closest(".pinned, [data-pinned]");return l&&l!==o&&s.push("Summary: "+l),c&&s.push("Author: "+c),f&&s.push("Source: "+f),u&&s.push("Time: "+u),d&&s.push("Score: "+d),m&&s.push("Replies: "+m),p&&s.push("Category: "+p),g&&s.push("Media: "+g+(y?" ("+y+")":"")),b&&s.push("Promoted"),v&&s.push("Pinned"),{text:o,url:n,key:lt(n),detail:s.join(" - ")}}(e);r&&!l[r.key]&&(l[r.key]=!0,s.push(r))}),s.length<3)return null;var c=(n?oh(document,".tag-page h1, .tag-page h2, main h1"):"")||e.title||document.title,u="# "+c+"\n\n"+s.map(function(e){return"- "+Se(e.text,e.url)+(e.detail?" - "+e.detail:"")}).join("\n");return{title:c,byline:null,excerpt:s[0].text,siteName:e.siteName||"Wykop",publishedTime:null,html:"",textContent:t(u),markdown:u,readerMode:!1,hostAware:!0,contentType:"social",socialKind:"feed",platform:"Wykop",community:n&&n[1]||null,itemCount:s.length}}function ah(e,t){var r=String(e);t&&(r=r.replace(/,/g,""));var n=parseInt(r,10);return isNaN(n)?e:n>=1e6?(n/1e6).toFixed(1).replace(/\.0$/,"")+"M":n>=1e4?(n/1e3).toFixed(1).replace(/\.0$/,"")+"K":n.toLocaleString()}function lh(e){var t=document.querySelector(e);if(!t||Vt(t))return null;var r=t.getBoundingClientRect(),n=window.getComputedStyle(t);return r.width<=0||r.height<=0||"hidden"===n.visibility||"collapse"===n.visibility?null:t}function sh(e,n){if(!Ut(/(^|\.)instagram\.com$/))return null;var o=d(n),i=(location.pathname||"").split("/").filter(Boolean);if(/^(accounts|checkpoint|challenge|challenge_required|suspended|restricted)$/i.test(i[0]||"")){var a=(location.search||"").match(/[?&]next=([^&]+)/);if(a){var l=r(a[1]);i=(l=(l||"").replace(/^https?:\/\/[^\/]+/,"")).split("/").filter(Boolean)}else i=[]}for(var s=-1,c=0;c<i.length-1;c+=1)if(/^(p|reel|reels|tv)$/i.test(i[c])){s=c;break}var u=s>=0,m=u?i[s]:i[0]||"",p=(u?i[s+1]:i[1],u?"/"+i.slice(s,s+2).join("/")+"/":""),f=r(m).replace(/[-_]+/g," ");if(f=t(f),(u||/^(accounts|checkpoint|challenge|challenge_required|explore|stories|direct)$/i.test(f))&&(f=""),u){var h=t((e.title||"").replace(/\s*[\u2022•|]\s*Instagram.*$/i,"").replace(/\s*\|\s*Instagram\s*$/i,"")),g=h.match(/^(.*?)\s+on Instagram:\s*"([\s\S]*)"$/i),y=g?t(g[1]):"",b=g?t(g[2]):"",v=e.excerpt||"";/create an account|log in to instagram|sign up/i.test(v)&&(v="");var w=v.match(/([\d,.]+[MKB]?)\s*likes?\b/i),A=v.match(/([\d,.]+[MKB]?)\s*comments?\b/i),S=v.match(/-\s*([a-z0-9._]+)\s+on\s+/i),x=v.match(/\bon\s+([^:]+):\s*"/i),k=v.match(/:\s*"([\s\S]*?)"\.?\s*$/),C=S?t(S[1]):s>0?t(i[0]):"",q=t(b||k&&k[1]||""),E=function(){var e=(o||"").split(/\n+/).map(t).filter(Boolean);if(!e.length||!q)return[];for(var r=-1,n=q.toLowerCase(),i=0;i<e.length;i+=1){var a=e[i].toLowerCase();if(a.indexOf(n)>=0||n.indexOf(a)>=0){r=i;break}}if(r<0)return[];for(var l=[],s=r+1;s<e.length;s+=1){var c=e[s],u=t(e[s+1]||"");if(/^(?:\d[\d.,]*[KMB]?|log in to like or comment\.?|more posts from\b|see more posts\b|meta\b|about\b|blog\b|jobs\b|help\b|api\b|privacy\b|terms\b|locations\b|instagram lite\b|meta ai\b|threads\b)/i.test(c))break;if(/^[a-z0-9._]{2,32}$/i.test(c)&&/^(?:\d+\s*(?:s|m|h|d|w)|just now|now)$/i.test(u)){for(var d=[],m=s+2;m<e.length;m+=1){var p=e[m],f=t(e[m+1]||"");if(/^(?:like|reply|follow|following)$/i.test(p))break;if(/^(?:\d[\d.,]*[KMB]?|log in to like or comment\.?|more posts from\b|see more posts\b|meta\b|about\b|blog\b|jobs\b|help\b|api\b|privacy\b|terms\b|locations\b|instagram lite\b|meta ai\b|threads\b)/i.test(p))break;if(/^[a-z0-9._]{2,32}$/i.test(p)&&/^(?:\d+\s*(?:s|m|h|d|w)|just now|now)$/i.test(f))break;d.push(p)}var h=t(d.join(" "));h&&l.push("@"+c+": "+h),s=m}}return l}(),T=function(){var e=lh("article");if(e){var r=t(e&&e.innerText);if(/something went wrong|log in to instagram|sign up to see/i.test(r))return!1;if(e.querySelector("img, video"))return!0;if(r.length>40)return!0}return!1}(),_=[],L=/^(reel|reels|tv)$/i.test(m)?"Reel":"Post";if(C&&_.push("Profile: @"+C),p&&_.push(L+": "+p),w&&_.push(t(w[1])+" likes"),A&&_.push(t(A[1])+" comments"),e.image&&_.push("Image: "+e.image),e.video&&_.push("Video: "+e.video),T){var j=je({title:y?y+" on Instagram":h||"Instagram post",byline:C?"@"+C:y||null,publishedTime:x?t(x[1]):e.publishedTime||null,description:q||"Instagram post",details:_,siteName:e.siteName||"Instagram",hostAware:!0,contentType:"social",socialKind:"post",platform:"Instagram",handle:C?"@"+C.replace(/^@/,""):null});return E.length&&(j.markdown+="\n\n## Comments\n\n"+E.map(function(e){return"- "+e}).join("\n"),j.textContent=t(j.markdown)),j}return null}var P=function(){var e=lh("header section");if(!e)return!1;var t=e.innerText||"";return!!/([\d,.]+[MKB]?)\s*(followers?|following|posts?)/i.test(t)||document.querySelectorAll("article img, main img[srcset]").length>=3}();if(P){var $=t((e.title||"").replace(/\s*[\u2022•|]\s*Instagram.*$/i,""))||e.title,N=document.querySelector("header section"),R="";if(N)for(var M=N.querySelectorAll("span"),B=0;B<M.length;B++){var O=t(M[B].innerText||"");if(O.length>30&&!/^\d/.test(O)&&!/follow/i.test(O)){R=O;break}}var z=[],I=function(e){var t=e.match(/([\d,.]+[MKB]?)\s*(?:Followers|follower|Takipçi|подписчик|متابع)/i),r=e.match(/([\d,.]+[MKB]?)\s*(?:Following|following)/i),n=e.match(/([\d,.]+[MKB]?)\s*(?:Posts?|post|Gönderi|публикац|منشور)/i);return{followers:t&&t[1],following:r&&r[1],posts:n&&n[1]}}(o);I.posts&&z.push(I.posts+" posts"),I.followers&&z.push(I.followers+" followers"),I.following&&z.push(I.following+" following");var H=R||e.excerpt||"";/create an account|log in to instagram|sign up/i.test(H)&&(H=""),z.length&&(H=(H?H+"\n\n":"")+z.join(", ")+".");_=[];return f&&_.push("Profile: @"+m),je({title:$||"Instagram"+(f?" - "+f:""),description:H,details:_,siteName:e.siteName||"Instagram",hostAware:!0,contentType:"social",socialKind:"profile",platform:"Instagram",handle:f?"@"+m:null})}return null}function ch(e,n){if(!Ut(/(^|\.)facebook\.com$/))return null;var o=d(n),i=(location.pathname||"").split("/").filter(Boolean)[0]||"";if(/^(login|checkpoint|recover|dialog|ajax|connect|sharer)$/i.test(i)){var a=(location.search||"").match(/[?&]next=([^&]+)/);if(a){var l=r(a[1]);i=(l=(l||"").replace(/^https?:\/\/[^\/]+/,"")).split("/").filter(Boolean)[0]||""}else i=""}/^(login|watch|marketplace|groups|gaming|events|pages|profile\.php|photo|story|reel|permalink|hashtag)$/i.test(i)&&(i="");var s=r(i).replace(/[-_.]+/g," ");s=t(s);var c=t((e.title||"").replace(/\s*[-–—|]\s*(Facebook|Log in or sign up).*$/i,"").replace(/\s*\|\s*Facebook\s*$/i,""))||e.title;/^(facebook\s*[-–—]?\s*log in|log in to facebook|log in or sign up)/i.test(c||"")&&(c=s||"Facebook");var u=lh("[role='main'], main");if(function(){if(!u)return!1;if(o.length<200)return!1;var e=/([\d,.]+[MKB]?)\s*followers?/i.test(o),t=/\bIntro\b/.test(o);return e&&t}()){var m=[],p=o.match(/(?:Page|Profile)\s*·\s*([^\n]+)/);p&&m.push("Category: "+t(p[1]));var f=o.match(/([\d,.]+[MKB]?)\s*followers?/i),h=o.match(/([\d,.]+[MKB]?)\s*following/i);f&&m.push(f[1]+" followers"),h&&m.push(h[1]+" following");var g=o.indexOf("Intro\n"),y="";if(g>=0){var b=o.substring(g+6),v=b.search(/\n(?:Photos|Videos|About|Posts|Reels|Events|See all|Page ·|Information about)\b/);y=t(v>0?b.substring(0,v):b.substring(0,500))}for(var w,A=y||o.substring(0,Math.min(o.length,1500)),S=A.match(/([\w.+-]+@[\w.-]+\.\w{2,})/),x=A.match(/\b(https?:\/\/[\w.-]+[\w.]{2,}(?:\/[\w.-]*)*)\s/i),k=[],C=new RegExp(pn(t(c||""))+"\\s*\\n\\s*(?:\\d+[hd]|\\d+ (?:hour|day|minute|week|month)s? ago|Yesterday|Just now|\\w+ \\d+(?:,? \\d+)?)\\s*\\n\\s*·?\\s*\\n([\\s\\S]*?)(?=\\n(?:All reactions|Like|Comment|Share|\\d+ comment))","gi");null!==(w=C.exec(o));){var q=t(w[1]);q&&q.length>10&&(q=q.replace(/…\s*See more\s*$/i,"…"),k.push(q))}if(0===k.length)for(var E=document.querySelectorAll("div[dir=auto]"),T=0;T<E.length;T++){var _=t(E[T].innerText||"");_.length>50&&_.length<3e3&&!/^(log in|sign up|create|cookie|privacy|terms|information about|see more from)/i.test(_)&&(_=_.replace(/…\s*See more\s*$/i,"…"),k.push(_))}var L={};k=k.filter(function(e){var t=e.substring(0,80).toLowerCase();return!L[t]&&(L[t]=!0,!0)});var j="";y&&(j=y);var P=[];if(S&&P.push(S[1]),x&&!/facebook\.com/i.test(x[1])&&P.push(x[1]),P.length&&(j+=(j?"\n\n":"")+"Contact: "+P.join(" | ")),k.length>0){j+=(j?"\n\n":"")+"## Recent Posts\n\n";for(var $=0;$<k.length;$++)j+=k[$]+"\n\n";j=j.replace(/\n\n$/,"")}if(!f){var N=(e.excerpt||"").match(/([\d][\d,.\s]*\d)\s*likes?\b/i);N&&m.push(t(N[1])+" likes")}var R=m;return e.image&&R.push("Image: "+e.image),je({title:c||"Facebook"+(s?" - "+s:""),description:j,details:R,siteName:e.siteName||"Facebook",hostAware:!0,contentType:"social",socialKind:"profile",platform:"Facebook",handle:s?"@"+i:null})}return null}function uh(e,r){if(!Ut(/(^|\.)threads\.(net|com)$/))return null;var n=e.title||"",o=e.excerpt||"",i=e.image||"",a=lh("main, [role='main']"),l=n.match(/^(.+?)\s*\((@\w+)\)\s*[•·]/),s=l?l[1].trim():"",c=l?l[2]:"";if(!l){var u=n.match(/^(.+?)\s*\((@\w+)\)\s+on Threads/);u||(u=n.match(/^(@\w+)\s+on Threads/)),u&&(s=u[1]?u[1].trim():"",c=u[2]||u[1]||"")}var d="",m="",p=o,f=o.match(/^([\d,.]+[KMB]?)\s+Followers?\s*[•·]\s*([\d,.]+[KMB]?)\s+Threads?\s*[•·]\s*(.*)/i);if(f)d=f[1],m=f[2],p=t(f[3]);else{var h=o.match(/([\d,.]+[KMB]?)\s+Followers?/i);h&&(d=h[1]);var g=o.match(/([\d,.]+[KMB]?)\s+Threads?/i);g&&(m=g[1])}if(!a||!s&&!c)return null;var y=t(a.innerText||"");if(!y||c&&-1===y.indexOf(c)&&!/\bfollowers?\b/i.test(y))return null;var b=[];return c&&b.push("Handle: "+c),d&&b.push("Followers: "+d),m&&b.push("Threads: "+m),i&&b.push("Image: "+i),je({title:s||c,description:p||o,details:b,siteName:"Threads",hostAware:!0,contentType:"social",socialKind:"profile",platform:"Threads",handle:c||null})}function dh(e,r){if(!Ut(/(^|\.)(twitter\.com|x\.com)$/))return null;var n=/^\/[^/]+\/status\/\d+/.test(location.pathname),o=null;try{for(var i=document.querySelectorAll('script[type="application/ld+json"]'),a=0;a<i.length;a++){var l=JSON.parse(i[a].textContent);if(l&&"ProfilePage"===l["@type"]&&l.mainEntity){o=l.mainEntity;break}}}catch(e){}if(!n){var s=document.querySelector('[data-testid="UserName"]'),c=document.querySelector('[data-testid="UserDescription"]'),u=document.querySelector('[data-testid="UserUrl"]'),d=document.querySelector('[data-testid="UserJoinDate"]'),m=document.querySelector('[data-testid="UserLocation"]'),p=document.querySelector('[data-testid="UserBirthdate"]'),f="",h="";if(s){var g=t(s.textContent).split(/\s*@/);f=t(g[0]),g[1]&&(h="@"+t(g[1]))}if(!f&&o&&(f=o.name||""),!h&&o&&o.additionalName&&(h=o.additionalName),!h){var y=(location.pathname||"").split("/").filter(Boolean)[0];y&&!/^(home|explore|search|notifications|messages|settings|i)$/i.test(y)&&(h="@"+y)}var b=c?t(c.textContent):"";!b&&o&&o.description&&(b=t(o.description));var v=m?t(m.textContent):"";!v&&o&&o.homeLocation&&(v=o.homeLocation.name||"");var w=u?t(u.textContent):"",A=d?t(d.textContent):"",S=p?t(p.textContent):"",x="",k="",C="";if(o&&o.interactionStatistic&&o.interactionStatistic.forEach(function(e){var t=e.interactionType||"";/FollowAction/.test(t)&&(x=String(e.userInteractionCount)),/SubscribeAction/.test(t)&&(k=String(e.userInteractionCount)),/WriteAction/.test(t)&&(C=String(e.userInteractionCount))}),!x){var q=document.querySelector('a[href$="/verified_followers"], a[href$="/followers"]');q&&(x=t(q.textContent).replace(/\s*followers?$/i,""))}if(!k){var E=document.querySelector('a[href$="/following"]');E&&(k=t(E.textContent).replace(/\s*following$/i,""))}var T="";if(o&&o.image&&o.image.contentUrl&&(T=o.image.contentUrl),!T){var _=document.querySelector('[data-testid^="UserAvatar"] img[src*="profile_images"]');_&&(T=_.src)}if(!w&&o&&o.relatedLink){var L=Array.isArray(o.relatedLink)?o.relatedLink:[o.relatedLink];w=(L.filter(function(e){return!/t\.co\//.test(e)})[0]||L[0]||"").replace(/^https?:\/\//,"")}for(var j=[],P=document.querySelectorAll('[data-testid="tweet"]'),$=0;$<P.length;$++){var N=P[$],R=N.querySelector('[data-testid="tweetText"]');if(R){var M=t(R.textContent);if(M&&!(M.length<5)){var B=N.querySelector('[data-testid="User-Name"]'),O=N.querySelector("time"),z=N.querySelector('[data-testid="socialContext"]'),I="";if(B){var H=t(B.textContent).match(/^(.+?)(\s*@\w+)/);H&&(I=H[1].trim())}var F=O?O.getAttribute("datetime")||t(O.textContent):"",D=[];["reply","retweet","like"].forEach(function(e){var t=N.querySelector('[data-testid="'+e+'"]');if(t){var r=(t.getAttribute("aria-label")||"").match(/^(\d[\d,]*)/);if(r&&parseInt(r[1].replace(/,/g,""),10)>0){var n="reply"===e?"replies":"retweet"===e?"reposts":"likes";D.push(r[1]+" "+n)}}});var U="";z&&(U+="[Pinned] "),I&&f&&I!==f&&(U+="RT @"+I+": "),U+=M,F&&(U+=" ("+F+")"),D.length&&(U+=" ["+D.join(", ")+"]"),j.push(U)}}}var W=[];h&&W.push("Handle: "+h),x&&W.push("Followers: "+ah(x)),k&&W.push("Following: "+ah(k)),C&&W.push("Posts: "+ah(C)),v&&W.push("Location: "+v),w&&W.push("Website: "+w),S&&W.push(S),A&&W.push(A),T&&W.push("Image: "+T);var G=[];b&&G.push(b),j.length&&G.push("## Recent Posts\n\n"+j.join("\n\n"));var Z=f||e.title||"X Profile";if(!f&&h&&(Z=h),!f&&!b&&!j.length)return null;var K=je({title:Z,description:G.join("\n\n"),details:W,siteName:"X",hostAware:!0,contentType:"article"});return K.contentType="social",K.socialKind="profile",K.platform="X",K.handle=h||null,K}var V=document.querySelector('[data-testid="tweet"]');if(!V){var J=(e.title||"").match(/^(.+?)\s+on X:\s*"(.+?)"\s*\/\s*X$/);return J?je({title:J[1],description:J[2],siteName:"X",hostAware:!0}):null}var X="",Y=V.querySelector('[data-testid="tweetText"]');if(Y&&(X=t(Y.textContent)),!X)return null;var Q=V.querySelector('[data-testid="User-Name"]'),ee="",te="";if(Q){var re=t(Q.textContent).match(/^(.+?)\s*(@\w+)/);re&&(ee=re[1].trim(),te=re[2])}var ne=V.querySelector("time"),oe=ne?ne.getAttribute("datetime")||t(ne.textContent):"",ie=[],ae=null;["reply","retweet","like","bookmark"].forEach(function(e){var t=V.querySelector('[data-testid="'+e+'"]');if(t){var r=(t.getAttribute("aria-label")||"").match(/^(\d[\d,]*)/);if(r&&parseInt(r[1].replace(/,/g,""),10)>0){var n="reply"===e?"replies":"retweet"===e?"reposts":"like"===e?"likes":"bookmarks";ie.push(r[1]+" "+n),"reply"===e&&(ae=parseInt(r[1].replace(/,/g,""),10))}}});var le=[];te&&le.push("Author: "+ee+" ("+te+")"),oe&&le.push("Posted: "+oe),ie.length&&le.push("Engagement: "+ie.join(", "));for(var se=document.querySelectorAll('[data-testid="tweet"]'),ce=[],ue=1;ue<se.length;ue++){var de=se[ue],me=de.querySelector('[data-testid="tweetText"]');if(me){var pe=t(me.textContent);if(pe&&!(pe.length<3)){var fe=de.querySelector('[data-testid="User-Name"]'),he="";if(fe){var ge=t(fe.textContent).match(/^(.+?)\s*(@\w+)/);ge&&(he=ge[2])}ce.push((he?he+": ":"")+pe)}}}var ye=X;ce.length&&(ye+="\n\n## Replies\n\n"+ce.join("\n\n"));var be=je({title:ee||e.title||"Post on X",description:ye,details:le,siteName:"X",hostAware:!0,contentType:"article"});return be.contentType="social",be.socialKind=ce.length?"thread":"post",be.platform="X",be.handle=te||null,be.replyCount=ae,be}function mh(e,r){if(!Ut(/(^|\.)linkedin\.com$/))return null;var n=d(r),o=/^\/company\//.test(location.pathname),i=/^\/in\//.test(location.pathname);if(!o&&!i)return null;if(o){var a,l="",s="",c="",u="",m="",p="",f="",h="",g="",y="";a=(e.title||"").replace(/\s*[|\-–—]\s*LinkedIn.*$/i,"").trim();var b=n.match(/([\d,.]+[KMB]?)\s+followers/i);b&&(c=b[1]),(W=n.match(/\bAbout\s*\n([\s\S]*?)(?=\n(?:Website|Locations|Employees|Affiliated|Updates|Posts|Similar|Home|Products|Jobs|People|Insights)\b)/i))&&(u=t(W[1]));var v=n.match(/Website\s*\n\s*(https?:\/\/\S+|[\w.-]+\.[\w]{2,}(?:\/\S*)?)/i);v&&(m=v[1].trim());var w=n.match(/Industry\s*\n\s*(.+)/i);if(w&&(l=t(w[1])),!l){var A=n.match(new RegExp(pn(a)+"\\s*\\n\\s*(.+?)\\s*\\n","i"));A&&(l=t(A[1]))}var S=n.match(/Company size\s*\n\s*(.+)/i);S&&(p=t(S[1]));var x=n.match(/Headquarters\s*\n\s*(.+)/i);x&&(f=t(x[1]));var k=n.match(/Type\s*\n\s*(.+)/i);k&&(h=t(k[1]));var C=n.match(/Specialties\s*\n\s*([\s\S]*?)(?=\n\n|\n(?:Website|Locations|Employees|Home|Products|Jobs|People|Insights)\b)/i);C&&(g=t(C[1]));var q=n.match(/Founded\s*\n\s*(\d{4})/i);q&&(y=q[1]),!s&&f&&(s=f);var E=[],T=n.match(/(?:Updates|Posts)\s*\n([\s\S]*?)(?=\n(?:Similar pages|Affiliated|People also viewed|Browse jobs)\b|$)/i);if(T)for(var _=T[1].split(/\n(?=.*?\b(?:likes?|comments?|reactions?)\b)/i),L=0;L<_.length;L++){var j=t(_[L]);j&&j.length>20&&!/^(?:Show|See|Load)\s/i.test(j)&&E.push(j)}var P=[];l&&P.push("Industry: "+l),c&&P.push("Followers: "+c),s&&P.push("Location: "+s),m&&P.push("Website: "+m),p&&P.push("Size: "+p),h&&P.push("Type: "+h),y&&P.push("Founded: "+y),f&&f!==s&&P.push("Headquarters: "+f),g&&P.push("Specialties: "+g),e.image&&P.push("Image: "+e.image);var $=[];if(u&&$.push(u),E.length&&$.push("## Recent Updates\n\n"+E.join("\n\n")),!(u||E.length||c||l||p||f||g))return null;var N=je({title:a||"LinkedIn Company",description:$.join("\n\n")||e.excerpt||"",details:P,siteName:"LinkedIn",hostAware:!0,contentType:"article"});return N.contentType="social",N.socialKind="profile",N.platform="LinkedIn",N}var R=(e.title||"").replace(/\s*[|\-–—]\s*LinkedIn.*$/i,"").trim(),M="",B="",O="",z="",I="",H=R?new RegExp(pn(R)+"\\s*\\n\\s*(.+?)\\s*\\n","i"):null;if(H){var F=n.match(H);F&&(M=t(F[1]))}var D=n.match(/([\d,.]+[KMB]?)\s+followers/i);D&&(O=D[1]);var U=n.match(/([\d,.]+\+?)\s+connections?/i);U&&(z=U[1]);var W,G=n.match(/Location\s*\n\s*([A-Z][\w\s,.-]+)/i);G&&(B=t(G[1])),(W=n.match(/\bAbout\s*\n([\s\S]*?)(?=\n(?:Experience|Education|Skills|Activity|Courses|Articles|Interests|Licenses|Certifications|Recommendations)\b)/i))&&(I=t(W[1])),I=I.replace(/\s*\.{3}\s*see more\s*$/i,"").replace(/\s*…\s*see more\s*$/i,"");var Z=[],K=n.match(/(?:Activity|Articles)\s*\n([\s\S]*?)(?=\n(?:Experience|Education|Skills|Interests|Courses|Licenses|Certifications|Recommendations)\b|$)/i);if(K){var V=K[1].match(/.{20,}(?:\d+\s*(?:likes?|comments?|reactions?|views?))/gi);if(V)for(var J=0;J<V.length;J++)Z.push(t(V[J]))}var X=[];M&&X.push("Title: "+M),O&&X.push("Followers: "+O),z&&X.push("Connections: "+z),B&&X.push("Location: "+B),e.image&&X.push("Image: "+e.image);var Y=[];if(I&&Y.push(I),Z.length&&Y.push("## Recent Activity\n\n"+Z.join("\n\n")),!(M||O||z||B||I||Z.length))return null;var Q=je({title:R||"LinkedIn Profile",description:Y.join("\n\n")||e.excerpt||"",details:X,siteName:"LinkedIn",hostAware:!0,contentType:"article"});return Q.contentType="social",Q.socialKind="profile",Q.platform="LinkedIn",Q}function ph(e,r){if(!Ut(/(^|\.)bsky\.(app|social)$/))return null;var n=!!document.querySelector('[data-testid="profileScreen"], [data-testid="profileView"]'),o=/^\/profile\/[^/]+\/post\//.test(location.pathname);if(!n&&!o)return null;if(n&&!o){var i=document.querySelector('[data-testid="profileHeaderDisplayName"]'),a=document.querySelector('[data-testid="profileHeaderDescription"]'),l=document.querySelector('[data-testid="profileHeaderFollowersButton"]'),s=document.querySelector('[data-testid="profileHeaderFollowsButton"]'),c=i?t(i.textContent):"",u=a?t(a.textContent):"",m="",p=(location.pathname||"").split("/").filter(Boolean);"profile"===p[0]&&p[1]&&(m="@"+p[1]);var f="",h="";if(l){var g=(l.getAttribute("aria-label")||"").match(/^([\d,]+)\s+followers/i);f=g?g[1]:t(l.textContent).replace(/\s*followers?$/i,"").trim()}if(s){var y=(s.getAttribute("aria-label")||"").match(/^([\d,]+)\s+following/i);h=y?y[1]:t(s.textContent).replace(/\s*following$/i,"").trim()}var b="",v=d(r).match(/([\d,.]+[KMB]?)\s+posts?\b/i);v&&(b=v[1]);var w=e.image||"";if(!w){var A=document.querySelector('[data-testid="userAvatarImage"]');A&&(w=A.src||"")}for(var S=[],x=document.querySelectorAll('[data-testid="postText"]'),k=0;k<x.length;k++){var C=x[k],q=t(C.textContent);if(q&&!(q.length<5)){var E=C.closest('[data-testid^="feedItem-by-"]'),T=[];if(E){var L=E.querySelector('[data-testid="replyBtn"]'),j=E.querySelector('[data-testid="repostCount"]'),P=E.querySelector('[data-testid="likeCount"]');if(L){var $=(L.getAttribute("aria-label")||"").match(/\((\d[\d,]*)\s+repl/i);$&&T.push($[1]+" replies")}if(j){var N=t(j.textContent);N&&"0"!==N&&T.push(N+" reposts")}if(P){var R=t(P.textContent);R&&"0"!==R&&T.push(R+" likes")}var z=(E.getAttribute("data-testid")||"").replace("feedItem-by-",""),I=m.replace("@",""),H=z&&I&&z!==I}var F="";H&&(F+="Repost @"+z+": "),F+=q,T.length&&(F+=" ["+T.join(", ")+"]"),S.push(F)}}var D=[];m&&D.push("Handle: "+m),f&&D.push("Followers: "+ah(f,!0)),h&&D.push("Following: "+ah(h,!0)),b&&D.push("Posts: "+b),w&&D.push("Image: "+w);var U=[];if(u&&U.push(u),S.length&&U.push("## Recent Posts\n\n"+S.join("\n\n")),!c&&!u&&!S.length)return null;var W=je({title:c||m||"Bluesky Profile",description:U.join("\n\n"),details:D,siteName:"Bluesky",hostAware:!0,contentType:"article"});return W.contentType="social",W.socialKind="profile",W.platform="Bluesky",W.handle=m||null,W}var G=(location.pathname||"").split("/").filter(Boolean),Z=document.querySelector('[data-testid="postText"]'),K="",V="";"profile"===G[0]&&G[1]&&(V="@"+G[1]);var J=M("DiscussionForumPosting");if(!J){var X=M("WebPage");X&&X.mainEntity&&-1!==_(X.mainEntity).indexOf("DiscussionForumPosting")&&(J=X.mainEntity)}var Y=null,Q=[];if(V){Q=document.querySelectorAll('[data-testid^="postThreadItem-by-"]');for(var ee=0;ee<Q.length;ee++)if(Q[ee].getAttribute("data-testid")==="postThreadItem-by-"+V.slice(1)){Y=Q[ee];break}}var te=J&&J.url&&new URL(J.url,location.href).pathname===location.pathname;if(!(Z||Y&&te))return null;var re=Z?t(Z.textContent):O(J.text);if(!re)return null;var ne=document.querySelector('[data-testid="profileHeaderDisplayName"]');ne&&(K=t(ne.textContent)),!K&&J&&J.author&&(K=B(J.author)),K||(K=(e.title||"").replace(/\s*[-–—|].*$/,"").trim());var oe=Z&&(Z.closest('[data-testid^="feedItem-by-"]')||document.querySelector('[data-testid^="feedItem-by-"]'));oe||(oe=Y);var ie=[],ae=null;if(oe){var le=oe.querySelector('[data-testid="replyBtn"]'),se=oe.querySelector('[data-testid="repostCount"]'),ce=oe.querySelector('[data-testid="likeCount"]');if(le){var ue=(le.getAttribute("aria-label")||"").match(/\((\d[\d,]*)\s+repl/i);ue&&(ie.push(ue[1]+" replies"),ae=parseInt(ue[1].replace(/,/g,""),10))}if(se){var de=t(se.textContent);de&&"0"!==de&&ie.push(de+" reposts")}if(ce){var me=t(ce.textContent);me&&"0"!==me&&ie.push(me+" likes")}}var pe=[];V&&pe.push("Author: "+(K?K+" ("+V+")":V)),ie.length&&pe.push("Engagement: "+ie.join(", "));var fe=[];if(Y&&Q.length>1){for(var he=0;he<Q.length;he++)if(Q[he]!==Y){var ge=t(Q[he].textContent);ge&&ge.length>3&&fe.push(ge)}}else if(J&&Array.isArray(J.comment))for(var ye=0;ye<J.comment.length;ye++){var be=O(J.comment[ye]&&J.comment[ye].text);be&&be.length>3&&fe.push(be)}else for(var ve=document.querySelectorAll('[data-testid="postText"]'),we=1;we<ve.length;we++){var Ae=t(ve[we].textContent);Ae&&Ae.length>3&&fe.push(Ae)}var Se=re;fe.length&&(Se+="\n\n## Replies\n\n"+fe.join("\n\n"));var xe=je({title:K||"Post on Bluesky",description:Se,details:pe,siteName:"Bluesky",hostAware:!0,contentType:"article"});return xe.contentType="social",xe.socialKind=fe.length?"thread":"post",xe.platform="Bluesky",xe.handle=V||null,xe.replyCount=ae,xe}function fh(e){if(!Ut(/(^|\.)zeit\.de$/))return null;var t=document.querySelector("article.article")||document.querySelector("article#js-article"),r=t&&(t.querySelector(".article-body")||t.querySelector(".article-page"));return t&&r&&r.querySelector(".paragraph, p")?ar(e,t,{title:g([".article-heading",".article-heading__headline","h1.article-heading","h1"])||e.title,byline:g([".article-meta .authors",".article__authors","[rel='author']"])||e.byline,minTextLength:500,rewriteRoot:function(e){e.querySelectorAll([".iqdcontainer",".summy",".summary__feedback",".newsletter","[class*='newsletter' i]","[class*='topicbox' i]","[class*='recommend' i]","[class*='related' i]","[data-ct-area*='comments' i]","[data-ct-area*='sharing' i]","[data-ct-area*='recommend' i]","[aria-label*='Newsletter' i]","[aria-label*='Mehr zum Thema' i]","[aria-label*='Seitennavigation' i]","[aria-label*='Schlagwörter' i]","aside","nav"].join(", ")).forEach(function(e){e.remove()})}}):null}function hh(e){if(!Ut(/(^|\.)blog\.csdn\.net$/))return null;if(!/\/article\/details\/\d+/i.test(location.pathname||""))return null;var r=document.querySelector("#article_content, .article_content, #content_views");if(r&&o(r)>=80)return ar(e,r,{title:g(["#article-tit",".title-box h1",".article-title-box h1","h1.title-article","h1"]),byline:g([".follow-nickName",".blog-name",".article-bar-top .name","a[href^='https://blog.csdn.net/']"]),publishedTime:g([".time",".bar-content .time","time"],"datetime")||e.publishedTime,minTextLength:80,rewriteRoot:function(e){e.querySelectorAll(".hide-article-box, .readall_box, .article-copyright, .blog-footer-bottom, .recommend-box, .recommend-right, .more-toolbox, .toolbox-list, .csdn-side-toolbar, [class*='comment'], [class*='recommend'], [class*='toolbar'], [class*='share']").forEach(function(e){e.remove()})},siteName:"CSDN"});var n=g(["#article-tit",".title-box h1",".article-title-box h1","h1.title-article","h1"])||t(e&&e.title),i=t(e&&e.excerpt);return n||i?je({title:n,byline:e&&e.byline,publishedTime:e&&e.publishedTime,description:"CSDN article details page returned only public metadata in this browser session."+(i?" "+i:""),siteName:"CSDN",hostAware:!0,contentType:"article"}):null}function gh(e,r){if(!Ut(/(^|\.)(komputerswiat\.pl|onet\.pl|medonet\.pl)$/)&&!Ut(/(^|\.)poradnikzdrowie\.pl$/))return null;var n=document.createElement("div"),o=g(["h1.article__title",".detail_title",".ods-m-labeled-h1__text","article h1","h1"])||e.title,i=document.querySelector(".ods-article-lead[data-section='article-lead']"),a=document.querySelector(".ods-article-lead .ods-a-lead, .article__lead, .detail_lead, .articleLead"),l=document.querySelector(".ods-m-inline-summary-container__list"),s=document.querySelector(".ods-article-body[data-section='article-body'], .article__body, .detail_body, div.articleContent, .cda_artblox"),c=M(["NewsArticle","Article","VideoObject"]),u=O(c&&c.articleBody),d=function(e){var r=t(e||""),n=r.match(/Poniżej streszczenie artykułu:\s*(?:Skrót przygotowany przez Onet Czat z AI, może zawierać błędy\.\s*)?(.+?)\s*Zapytaj o więcej Onet Czat z AI/i);return n?t(n[1]):""}(r);if(!(i||a||l||s||d||u))return null;var m=l?Array.prototype.map.call(l.querySelectorAll("li"),function(e){return t(e.textContent||"")}).filter(Boolean):[];if(a&&n.appendChild(yh(a)),!a&&e.excerpt){var p=document.createElement("p");p.textContent=e.excerpt,n.appendChild(p)}if(s&&n.appendChild(yh(s)),!s&&u){var f=document.createElement("p");f.textContent=u,n.appendChild(f)}var h=a?bh(yh(a)):e.excerpt||"",y=s?bh(yh(s)):u||"",b=[];o&&b.push("# "+o),m.length?b.push("## Streszczenie\n\n"+m.map(function(e){return"- "+e}).join("\n")):d&&b.push("## Streszczenie\n\n"+d),vh(b,h),vh(b,y);var v=mn(b.filter(Boolean).join("\n\n")),w=t(v);return w.length<250?null:{title:o||e.title,byline:g([".ods-m-author-authorship__author-item a",".article__author",".detail_author","[rel='author']"])||e.byline,excerpt:h||e.excerpt,siteName:e.siteName||location.hostname,publishedTime:e.publishedTime,html:n.innerHTML,markdown:v,textContent:w,readerMode:!1,contentType:"article",hostAware:!0,docsLike:!0}}function yh(e){var r=Zt(e,document),n=r.querySelectorAll("iframe, script, style, noscript, nav, footer, [data-ad], [data-testid*='ad' i], [class~='ad'], [class*='-ad-'], [class$='-ad'], [class^='ad-'], [id~='ad'], [id*='-ad-'], [id$='-ad'], [id^='ad-'], [class*='recommend' i], [class*='related' i]");return Array.prototype.forEach.call(n,function(e){e.remove()}),Array.prototype.forEach.call(r.querySelectorAll("p, div, section, aside, span"),function(e){var r=t(e.textContent||"");(/^REKLAMA$/i.test(r)||/^Dalszy ciag artykulu pod materialem wideo/i.test(Xo(r)))&&e.remove()}),Array.prototype.forEach.call(r.querySelectorAll("h2, h3, h4, p, div, section, aside"),function(e){var n=Xo(t(e.textContent||""));if(/^(?:Zobacz takze|Czytaj takze|Wydarzenie dnia|Zobacz rowniez)(?::|$)/i.test(n)){var o=e.parentElement;e.querySelector("a")?e.remove():o&&o!==r&&o.remove()}}),r}function bh(e){return mn(Jn(e.innerHTML||"")).replace(/\s+-\s+\*\*(?:Zobacz (?:takze|także)|Czytaj (?:takze|także)|Wydarzenie dnia|Zobacz (?:rowniez|również))\s*:?\*\*[\s\S]*$/i,"").trim()}function vh(e,r){if(r=t(r||"")){var n=r.toLowerCase();e.some(function(e){return-1!==t(e).toLowerCase().indexOf(n)})||e.push(r)}}var wh={regionSelector:".wp-section-grid, .wp-offers-section, .wp-section-stream, .wp-leaflets-section",skipEditorialGuard:!0,allowEmptyRegions:!0,cardSelector:"a.wp-teaser-tile, a.wp-teaser-regular, a.wp-leaflet-card",ancestorLink:!0,directCard:!0,headingBuilder:function(e){var r=e.querySelector(".wp-section-title-link, .wp-section-colored-header-title");return!r&&e.matches(".wp-section-stream")&&(r=e.querySelector("h1, h2")),t(r&&r.textContent)},regionFilter:function(e){return e.matches(".wp-section-grid")?!!e.querySelector(".wp-section-title-link"):e.matches(".wp-offers-section, .wp-leaflets-section")?!!e.querySelector(".wp-section-colored-header-title"):!!e.querySelector("h1, h2")}};function Ah(e){if("wp.pl"!==(location.hostname||"").replace(/^www\./i,"")||"/"!==location.pathname)return null;var t=Fa(document.body,wh);return t?Re(e,{title:e&&e.title,excerpt:e&&e.excerpt,markdown:t.markdown,textContent:t.markdown,items:t.items,hostAware:!0}):null}var Sh={regionSelector:"section[class*='Feed_']",skipEditorialGuard:!0,cardSelector:"article[class*='Card_']",directCard:!0,headingBuilder:function(e){var r=e.querySelector("article[class*='Card_']"),n=Array.prototype.filter.call(e.querySelectorAll("h1, h2"),function(e){return!e.closest("article[class*='Card_']")&&!(r&&!(e.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_FOLLOWING))}),o=t(n[0]&&n[0].textContent);return!o||o.length>90||function(e){return/^(REDAKCJA POLECA|REKLAMA|REKLAMY|MENU|NAWIGACJA|WIĘCEJ|NEWSLETTER|PARTNERZY|STOPKA)$/i.test(e)}(o)?"":o},additionalRegions:function(e){return Array.prototype.filter.call(e.querySelectorAll("div[class*='DynamicRightFeed_']"),function(e){return e.closest("div[class*='PageGroup_right__']")&&!e.closest("section")&&e.querySelector("article[class*='Card_']")&&!kh(e)})},fallbackHeadingBuilder:function(e){return e.matches("div[class*='DynamicRightFeed_']")?"More from Onet":""},cardFilter:function(e){var t=e.card;return!kh(t)&&!/(ad|advert|sponsor|promo|utility)/i.test(t.className||"")},regionFilter:function(e){return!kh(e)}};function xh(e){if("onet.pl"!==(location.hostname||"").replace(/^www\./i,"")||"/"!==location.pathname)return null;var t=Fa(document.body,Sh);return t?Re(e,{title:e&&e.title,excerpt:e&&e.excerpt,markdown:t.markdown,textContent:t.markdown,items:t.items,hostAware:!0}):null}function kh(e){return!!e.closest("aside, nav, header, footer, [role='navigation'], [role='complementary'], [role='banner'], [role='contentinfo']")}registerHostAwareProfile(!0,_f),registerHostAwareProfile(!0,Ac),registerHostAwareProfile(!0,Sc),registerHostAwareProfile(!0,xc),registerHostAwareProfile(!0,nh),registerHostAwareProfile(!0,gh),registerHostAwareProfile(!0,fc),registerHostAwareProfile(!0,hc),registerHostAwareProfile(!0,kc),registerHostAwareProfile(!0,Cc),registerHostAwareProfile(!0,_c),registerHostAwareProfile(!0,Tc),registerHostAwareProfile(!0,Ec),registerHostAwareProfile(!0,yc),registerHostAwareProfile(["wp.pl"],Ah),registerHostAwareProfile(["onet.pl"],xh),registerHostAwareProfile(!0,fh),registerHostAwareProfile(!0,qc),registerHostAwareProfile(!0,Oc),registerHostAwareProfile(!0,Mc),registerHostAwareProfile(!0,Bc),registerHostAwareProfile(!0,zc),registerHostAwareProfile(!0,Ic),registerHostAwareProfile(!0,Hc),registerHostAwareProfile(!0,Fc),registerHostAwareProfile(!0,function(e){return dr(e,{hostPattern:/(^|\.)(hatenablog\.com|hateblo\.jp|hatenablog\.net|hatenadiary\.com)$/i,bodySelectors:["article.entry .entry-content","article.entry .entry-body","article .entry-content",".entry-body",".entry-content"],titleSelectors:["h1.entry-title",".entry-title-link","article.entry h1","h1"],bylineSelectors:[".entry-footer .author a",".entry-footer .vcard a",".entry-header .author a"],minTextLength:180,removalSelectors:[".hatena-star-container",".hatena-star-star-container",".entry-footer",".entry-footer-section",".comment-box",".comment",".comments",".pager",".related-entries",".google-afc"]})}),registerHostAwareProfile(!0,function(e){return function(e){if(!/^\/species\/\d+\/\d+\/?$/i.test(location.pathname||""))return null;var r=document.querySelector("#redlist-js .page-species"),n=t(document.title||g(["main h1","h1"])||e.title),o=t([e&&e.siteName,e&&e.title,document.title,document.body&&document.body.textContent].join(" "));if(!r||!/\bIUCN Red List\b/i.test(o)||!n)return null;var i=["taxonomy","assessment-information","geographic-range","population","habitat-ecology","threats","use-trade","conservation-actions"].map(function(e){return document.getElementById(e)}).filter(Boolean);if(i.length<4||!document.getElementById("assessment-information"))return null;var a=document.createElement("article"),l=document.createElement("h1");l.textContent=n.replace(/\s*--\s*$/i,""),a.appendChild(l);var s=r.querySelector(".layout-headline__supplement.layout-assessment, .layout-assessment__major");return s&&/\b(Abstract|Red List|Assessment)\b/i.test(t(s.textContent||""))&&a.appendChild(tr(s)),i.forEach(function(e){var t=tr(e);t.querySelectorAll("script, style, svg, iframe, noscript, input, button, select, form, nav, .map, [class*='map' i], [class*='tooltip' i], [class*='translate' i], [aria-hidden='true']").forEach(function(e){e.remove()}),nr(t),a.appendChild(t)}),fr(e,a,{cloneRoot:!1,title:n,excerpt:e.excerpt,defaultExcerpt:!1,siteName:e.siteName||"IUCN Red List",minTextLength:900,validateMarkdown:function(e){return/\bAssessment Information\b[\s\S]*\bPopulation\b[\s\S]*\bThreats\b/i.test(e)}})}(e)||function(e){if(!/^\/[A-Za-z_]+\/Gene\/Summary\/?$/i.test(location.pathname||""))return null;var r=document.querySelector("#main"),n=r&&r.querySelector("h1.summary-heading"),o=r&&r.querySelector(".summary_panel"),i=r&&r.querySelector("#GeneSummary"),a=(r&&r.querySelector("#transcripts_table"),t(n&&n.textContent||""));return r&&n&&o&&i&&/^Gene:\s+\S+\s+ENS[A-Z]*G\d+/i.test(a)?fr(e,r,{title:a,excerpt:e.excerpt,defaultExcerpt:!1,siteName:e.siteName||"Ensembl",cleanupRoot:!1,minTextLength:500,rewriteRoot:function(e){e.querySelectorAll("script, style, svg, iframe, noscript, input, button, select, .navbar, .image_panel, .image_toolbar, .json_, .label_layer, .hover_label, .boundaries_wrapper, .drag_select, .session_messages, .dataTables_top, .data_table_config, .floating_popup, .tool_buttons, .invisible, .hidden, ._ht_tip, .button.toggle").forEach(function(e){e.remove()}),e.querySelectorAll("img").forEach(function(e){t(e.alt||e.title||"")||e.remove()})},validateMarkdown:function(e){return/\bDescription\b[\s\S]*\bLocation\b[\s\S]*\bAbout this gene\b/i.test(e)&&/\b(Transcripts|MANE|UniProtKB|RefSeq|CCDS)\b/i.test(e)}}):null}(e)||function(e){var r=t((document.querySelector("meta[name='ncbi_db']")||{}).content||"").toLowerCase();if(r&&"gene"!==r)return null;if(!/^\/gene\/\d+\/?$/i.test(location.pathname||""))return null;var n=document.querySelector(".rprt.full-rprt"),o=n&&n.querySelector("#gene-name"),i=n&&n.querySelector("#summaryDl"),a=n?Array.prototype.slice.call(n.querySelectorAll(".rprt-section[data-section]")):[];if(!n||!o||!i||a.length<2)return null;var l=t(o.textContent||"");return l&&/\bGene ID:\s*\d+/i.test(t(n.textContent||""))?fr(e,n,{title:l,excerpt:e.excerpt,defaultExcerpt:!1,siteName:e.siteName||"NCBI Gene",cleanupRoot:!1,minTextLength:500,rewriteRoot:function(e){e.querySelectorAll("script, style, svg, iframe, noscript, input, button, select, .rprt-section-tools, .download-datasets, .gene-section-help, .gene-top-page, .ui-ncbipopper-wrapper, [aria-hidden='true']").forEach(function(e){e.remove()}),e.querySelectorAll("[style*='display:none'], [style*='display: none']").forEach(function(e){e.remove()}),e.querySelectorAll("table").forEach(function(e){t((e.querySelector("tbody")||e).textContent||"")||e.remove()})},validateMarkdown:function(e){return/\bOfficial\s+Symbol\b[\s\S]*\bGene type\b[\s\S]*\bOrganism\b/i.test(e)&&/\b(Summary|Genomic context|Expression|Interactions|General gene information)\b/i.test(e)}}):null}(e)||function(e){if(!/^\/A\d{6}$/i.test(location.pathname||""))return null;var r=document.querySelector(".seqhead .seqnumname"),n=document.querySelector(".seqdatabox .seqdata"),o=Array.prototype.slice.call(document.querySelectorAll(".entry .section"));if(!r||!n||o.length<3)return null;var i=t((r.querySelector(".seqnum")||{}).textContent||""),a=t((r.querySelector(".seqname")||{}).textContent||"").replace(/\s*\(Formerly\s+[^)]*\)\s*$/i,"");if(!/^A\d{6}$/i.test(i)||!a)return null;var l={OFFSET:!0,COMMENTS:!0,REFERENCES:!0,FORMULA:!0,EXAMPLE:!0},s={OFFSET:"Offset",COMMENTS:"Sequence comments",FORMULA:"Formula",EXAMPLE:"Example",REFERENCES:"References"},c={};if(o.forEach(function(e){var r=t((e.querySelector(".sectname")||{}).textContent||"").toUpperCase();if(l[r]&&!c[r]){var n=e.querySelector(".sectbody");!n||t(n.textContent||"").length<2||(c[r]=n)}}),!c.COMMENTS&&!c.FORMULA&&!c.EXAMPLE)return null;var u=document.createElement("article"),d=document.createElement("h1");d.textContent=i+" - "+a,u.appendChild(d);var m=document.createElement("h2");m.textContent="Terms",u.appendChild(m);var p=document.createElement("p");return p.textContent=t(n.textContent||""),u.appendChild(p),["OFFSET","COMMENTS","FORMULA","EXAMPLE","REFERENCES"].forEach(function(e){var r=c[e];if(r){var n=document.createElement("section"),o=document.createElement("h2");o.textContent=s[e],n.appendChild(o),Array.prototype.slice.call(r.querySelectorAll(".sectline")).forEach(function(e){if(t(e.textContent||"")){var r=document.createElement("p");r.innerHTML=tr(e).innerHTML,n.appendChild(r)}}),t(n.textContent||"").length>o.textContent.length&&u.appendChild(n)}}),fr(e,u,{cloneRoot:!1,title:i+" - "+a,excerpt:a,siteName:e.siteName||"OEIS",cleanupRoot:!1,minTextLength:300,validateMarkdown:function(e){return/\bFormula\b[\s\S]*\bExample\b/i.test(e)}})}(e)||function(e){if(!/^\/structure\/[A-Za-z0-9]{4}$/i.test(location.pathname||""))return null;var r=t((document.querySelector("#structureID")||{}).textContent||"").replace(/ /g," ").match(/\b[A-Za-z0-9]{4}\b/),n=r&&r[0].toUpperCase(),o=t((document.querySelector("#structureTitle")||{}).textContent||"");if(!n||!o)return null;var i=t(document.body&&document.body.textContent||""),a=["Classification","Organism(s)","Mutation(s)","Deposited","Released","Deposition Author(s)","Method","Resolution"],l=["PDB ID: "+n,Dc(i,"Classification",a),Dc(i,"Organism(s)",a),Dc(i,"Method",["Resolution","R-Value Free","R-Value Work","Space Group"]),Dc(i,"Resolution",["R-Value Free","R-Value Work","R-Value Observed","Space Group"]),Dc(i,"Deposited",a),Dc(i,"Released",a)].filter(Boolean),s="",c=document.querySelector("#primarycitation, [id*='citation' i], [class*='citation' i]");if(c&&(s=t(c.textContent||"").replace(/^Primary Citation\s*/i,"").replace(/\s*PubMed(?: Abstract)?:[\s\S]*$/i,"")),!s){var u=i.match(/Structure of [\s\S]{20,260}?(?=PubMed Abstract:|PDB DOI:|Experimental Data|$)/i);s=u?t(u[0]):""}var d=Dc(i,"PubMed Abstract",["PDB DOI","Experimental Data","Deposition Data","Ligands","Clicking the button"]).replace(/\s+View More[\s\S]*$/i,"").replace(/\s+\/\/ Used for[\s\S]*$/i,""),m=[];s&&m.push("Primary citation: "+s),d&&m.push("PubMed abstract: "+d);var p=je({title:n+" - "+o,details:l,highlights:m,siteName:e.siteName||"RCSB PDB",contentType:"article",hostAware:!0});return t(p.markdown).length<180||!/\bPDB ID:\s*[A-Z0-9]{4}\b/.test(p.markdown)?null:p}(e)||function(e){if(!/\.nist\.gov$/i.test(location.hostname||"")&&!/^nist\.gov$/i.test(location.hostname||""))return null;var r=document.querySelector("main#main, #main"),n=t((r&&r.querySelector("h1#Top, h1")||{}).textContent||"");if(!r||!n)return null;var o=t(r.textContent||"");return/\bFormula:\s*\S/i.test(o)&&/\bMolecular weight:\s*[0-9.]+/i.test(o)&&/\bCAS Registry Number:\s*\S/i.test(o)?fr(e,r,{title:n,excerpt:e.excerpt,defaultExcerpt:!1,siteName:e.siteName||"NIST",cleanupRoot:!1,minTextLength:220,rewriteRoot:function(e){e.querySelectorAll(".copy-prior-text, svg, img, form, .sr-only").forEach(function(e){e.remove()}),e.querySelectorAll("li").forEach(function(e){var r=t(e.textContent||"");(/^Chemical structure:/i.test(r)||/^Permanent link/i.test(r))&&e.remove()})},validateMarkdown:function(e){return/\bFormula\b[\s\S]*\bMolecular weight\b[\s\S]*\bCAS Registry Number\b/i.test(e)}}):null}(e)}),registerHostAwareProfile(!0,hh),registerHostAwareProfile(!0,Uc),registerHostAwareProfile(!0,Gc),registerHostAwareProfile(!0,Vc),registerHostAwareProfile(!0,xf),registerHostAwareProfile(!0,kf),registerHostAwareProfile(!0,Cf),registerHostAwareProfile(!0,Tf),registerHostAwareProfile(!0,vf),registerHostAwareProfile(!0,Ef),registerHostAwareProfile(!0,wf),registerHostAwareProfile(/(^|\.)sec\.gov$/i,function(e){if(!Ut(/(^|\.)sec\.gov$/i))return null;if(!/^\/Archives\/edgar\/data\//i.test(location.pathname||""))return null;var r=document.querySelector("#formDiv, .formContent, #main-content, main, body");return r?fr(e,r,{title:g(["#formName",".formName","h1","h2"])||t(e.title||document.title)||"SEC EDGAR filing",byline:null,siteName:"SEC EDGAR",publishedTime:null,minTextLength:500,cleanupRoot:!1,rewriteRoot:function(e){e.querySelectorAll("script, style, noscript, iframe, form, input, button, nav").forEach(function(e){e.remove()})},postProcessMarkdown:function(e){return e.replace(/\n{4,}/g,"\n\n\n").trim()},extra:{secFiling:!0}}):null}),registerHostAwareProfile(!0,function(e){return function(e){var r=document.querySelector("#MainContent .EurlexContent #document1")||document.querySelector("#MainContent .EurlexContent #textTabContent")||document.querySelector("#MainContent .EurlexContent #PP1Contents")||document.querySelector("#MainContent .EurlexContent");return r&&document.querySelector("#MainContent .EurlexContent")&&(document.querySelector("#op-header")||document.querySelector(".PageShare"))?Jc(e,r,{minText:300,docsLike:!0,title:t((document.querySelector("#MainContent .EurlexContent #PP1Contents #title, #MainContent .EurlexContent #PP1Contents #englishTitle")||{}).textContent||""),titleRoot:document.querySelector("#MainContent")||document,strip:function(e){e.querySelectorAll("#translatedTitle.hidden, #originalTitle.hidden, .hidden, .PageShare, .AffixSidebarWrapper").forEach(function(e){e.remove()})}}):null}(e)||function(e){var t=document.querySelector("main#main-content .group--type--microsite.microsite--type--programs")||document.querySelector("main[role='main'] .group--type--microsite.microsite--type--programs")||document.querySelector("main#main-content .node-intro")||null;return t&&(document.querySelector(".usa-megamenu, .usa-nav__submenu")||document.querySelector(".usa-banner"))&&t.querySelector("h1, .microsite-title, .field--name--field-intro, .field--name-field-intro")?Jc(e,t,{minText:350,titleRoot:t,strip:function(e){e.querySelectorAll(".group-menu, [class*='group-menu'], .usa-breadcrumb, [id*='breadcrumb' i], .slick-dots, .slick-arrow").forEach(function(e){e.remove()})}}):null}(e)||function(e){var t=document.querySelector("main#main-content #main-article")||document.querySelector("main#main-content")||document.querySelector("main[role='main']");return t&&document.querySelector("#feedback-form")&&document.querySelector("main#main-content")&&t.querySelector("nav.contents, .contents, h1")&&/\bYour Europe\b/i.test([e.siteName||"",e.title||"",document.title||"",document.body.textContent||""].join(" "))?Jc(e,t,{minText:150,preserveContentNav:!0,titleRoot:document.querySelector("main#main-content")||t,strip:function(e){e.querySelectorAll("#feedback-form, [id*='feedback' i], [class*='feedback' i], .share, [id^='sh-']").forEach(function(e){e.remove()})}}):null}(e)||function(e){var r=document.querySelector("#stnd-designation, [id*='standard' i][id*='designation' i], [class*='standard' i][class*='designation' i]"),n=document.querySelector("#stnd-title, [id*='standard' i][id*='title' i], [class*='standard' i][class*='title' i]"),o=document.querySelector("#standard-details, [id*='standard' i][id*='details' i], [class*='standard' i][class*='details' i]"),i=document.querySelector("#stnd-description, [id*='standard' i][id*='description' i], [class*='standard' i][class*='description' i]"),a=document.querySelector("#page-title.standard, [class*='standard' i][id*='title' i]"),l=document.querySelector("#content.standard #main-content, main #main-content, main");if(!(r&&n&&o&&i&&l&&a))return null;var s=document.createElement("article");a&&s.appendChild(Zt(a,document)),s.appendChild(Zt(i,document)),s.appendChild(Zt(o,document));var c=l.querySelector("#working-group-details");if(c){var u=Zt(c,document);u.querySelectorAll("#working-group-projects-standards, .tab-content, .nav-tabs, [role='tablist']").forEach(function(e){e.remove()}),s.appendChild(u)}return Jc(e,s,{minText:250,title:t([r.textContent,n.textContent].join(" - ")),strip:function(e){rr(e,yt+", form, .osano-cm-window, [class*='cookie' i], [class*='newsletter' i]")}})}(e)||function(e){var r=Array.prototype.slice.call(document.querySelectorAll(".page-content .container, main .container, main, .content")),n=null;return r.forEach(function(e){var r=Array.prototype.slice.call(e.querySelectorAll("ul.arrows, ol.arrows, ul, ol")).filter(function(e){var r=Array.prototype.slice.call(e.querySelectorAll("a[href]"));return!(r.length<4)&&r.filter(function(e){var r=t(e.textContent||""),n=e.getAttribute("href")||"";return/\b(?:convention|protocol|principles?|instrument)\b/i.test(r)&&/\b(?:conventions?|instruments?|full-text|specialised-sections)\b/i.test(n)}).length>=Math.min(4,r.length)}),i=t([e.querySelector("h1, h2")&&e.querySelector("h1, h2").textContent,e.textContent].join(" ")),a=o(e)+1e3*r.length;r.length<2||(/\bConventions? and (?:other )?Instruments?\b/i.test(i)||/\bCore Conventions?\b/i.test(i))&&(!n||a>n.score)&&(n={root:e,score:a})}),n?Jc(e,n.root,{docsLike:!0,minText:400,titleRoot:n.root,strip:function(e){rr(e,yt+", [class*='breadcrumb' i], .navbar, [class*='nav' i], form")}}):null}(e)||ru(e)||tu(e)||function(e){var r=Array.prototype.slice.call(document.querySelectorAll("[id*='listView' i], [role='list'], [class*='topic' i][class*='list' i], [class*='card' i][class*='grid' i]")),n=null;if(r.forEach(function(e){var r={},o=[],i=/topic|taxonomy|listview/i.test((e.id||"")+" "+(e.className||"")+" "+e.getAttribute("data-sf-element"));if(e.querySelectorAll("a[href]").forEach(function(e){var n=e.getAttribute("href")||"",l=a(n),s=t(e.getAttribute("aria-label")||(e.querySelector("h2, h3, h4")||{}).textContent||""),c=Array.prototype.slice.call(e.querySelectorAll("p")),u="";!s&&c.length&&(s=t(c[c.length-1].textContent||e.textContent||"")),c.length>1&&(u=t(c[0].textContent||"")),!u&&s&&(u=Gl(e,s));var d=l||"unlinked:"+s.toLowerCase()+"|href:"+n;!s||s.length<3||s.length>180||r[d]||(i||/\btopics?\b/i.test((l||n)+" "+s+" "+u))&&(/^(home|health topics|topics|news|headlines|menu|search|more)$/i.test(s)||(r[d]=!0,o.push({text:s,url:l,detail:u})))}),!(o.length<8||Wo(o)<8)){var l=100*o.length+(i?1e3:0);(!n||l>n.score)&&(n={root:e,items:o,score:l})}}),!n)return null;var o=t((document.querySelector("h1")||{}).textContent||e.title||document.title||"Topics");return Re(e,{title:o,excerpt:e.excerpt,items:n.items,html:tr(n.root).innerHTML,textContent:o+"\n"+_e(n.items)})}(e)}),registerHostAwareProfile(/(^|\.)wykop\.pl$/i,ih),registerHostAwareProfile(!0,function(e){return function(e){var r=Dr(e);return(Ut(/(^|\.)nextjs\.org$/)||/next\.js/i.test(r))&&/^\/docs\//.test(location.pathname)?Xr(e,["main article","main .prose","main [data-docs-body]"],{titleSelectors:["main article h1","main .prose h1","main h1"],fallbackTitle:function(e){return t((e.title||document.title).replace(/\s*[|·-]\s*Next\.js$/i,""))}}):null}(e)||function(e){var r=Dr(e);return(Ut(/(^|\.)react\.dev$/)||/react/i.test(r))&&/^\/(reference|learn)\//.test(location.pathname)?Xr(e,["main article","main [data-pagefind-body]","main .max-w-4xl article"],{titleSelectors:["main article h1","main h1"],fallbackTitle:function(e){return t((e.title||document.title).replace(/\s*[–-]\s*React$/i,""))}}):null}(e)||ic(e)||function(e){var r=Dr(e);return Ut(/(^|\.)docs\.aws\.amazon\.com$/)||/aws/i.test(r)?Xr(e,["#main-col-body","#main-content #main-col-body","#main-content","main"],{titleSelectors:["#main-content h1","#main-col-body h1","main h1"],fallbackTitle:function(e){return t((e.title||document.title).replace(/\s*-\s*AWS.*$/,""))},removeCookiePrefs:!0,removeMarketingTips:!0,rewriteRoot:function(e){e.querySelectorAll("awsdocs-language-banner, awsdocs-page-header, awsdocs-filter-selector, .awsdocs-page-header-container, .awsdocs-note.awsdocs-tip").forEach(function(e){e.remove()}),e.querySelectorAll("section, div, aside").forEach(function(e){var r=t(e.textContent);/join serverless experts|builder center|click here to sign up/i.test(r)&&r.length<800&&e.remove()})}}):null}(e)||function(e){var r=Dr(e);return(Ut(/(^|\.)developer\.mozilla\.org$/)||/mdn|mozilla/i.test(r))&&(/^\/.*\/docs\//.test(location.pathname)||/^\/en-US\//.test(location.pathname)||/mdn|mozilla/i.test(r))?Xr(e,["main article","article.main-page-content","main .main-page-content","main"],{titleSelectors:["main article h1","article.main-page-content h1","main h1"],fallbackTitle:function(e){return t((e.title||document.title).replace(/\s*-\s*MDN.*$/,""))},removeTryIt:!1,rewriteRoot:function(e){e.querySelectorAll("section").forEach(function(e){var r=e.querySelector("h2, h3, h4");r&&/^try it$/i.test(t(r.textContent))&&e.remove()}),e.querySelectorAll("h2, h3, h4").forEach(function(e){var r=t(e.textContent);if(/^(?:try it|help improve mdn)$/i.test(r)){var n=e.closest("section");n?n.remove():e.remove()}}),e.querySelectorAll("section, div, aside").forEach(function(e){var r=t(e.textContent);(/^baseline\b/i.test(r)||/this feature is well established and works across many devices/i.test(r))&&r.length<800&&e.remove()}),e.querySelectorAll("table.bc-table, [class*='bc-table'], [class*='bcd-table']").forEach(function(e){t(e.textContent).length<30&&e.remove()})}}):null}(e)||ac(e)||function(e){var t=Dr(e);return Ut(/(^|\.)developer\.hashicorp\.com$/)||/hashicorp|terraform/i.test(t)?Xr(e,["main article","main","article"],{titleSelectors:["main article h1","main h1","article h1"],fallbackTitle:function(e){return e.title||document.title},rewriteRoot:function(e){e.querySelectorAll("nav, aside, .sidebar, [data-testid='side-nav'], [data-testid='breadcrumbs']").forEach(function(e){e.remove()}),$r(e,"div, p, span, button, a",/^(on this page|edit this page on github|theme)$/i),e.querySelectorAll("details summary").forEach(function(e){var t=Jr(e.textContent);if(t){var r=document.createElement("h3");r.textContent=t,e.replaceWith(r)}})}}):null}(e)||function(e){var t=Dr(e);return Ut(/(^|\.)docs\.docker\.com$/)||/docker/i.test(t)?Xr(e,["main article","main","article"],{titleSelectors:["main article h1","main h1","article h1"],fallbackTitle:function(e){return e.title||document.title},rewriteRoot:function(e){e.querySelectorAll("nav, aside, .toc, .sidebar, [data-pagefind-ignore]").forEach(function(e){e.remove()}),$r(e,"div, p, span, button, a",/^(table of contents|on this page|edit this page|copy page)$/i)}}):null}(e)||function(e){var r=Dr(e);return Ut(/(^|\.)grafana\.com$/)&&/^\/docs\//.test(location.pathname)&&/grafana/i.test(r)?Xr(e,["main article","main","article"],{titleSelectors:["main article h1","main h1","article h1"],fallbackTitle:function(e){return(e.title||document.title).replace(/\s*\|\s*Grafana.*$/i,"")},rewriteRoot:function(e){e.querySelectorAll("nav, aside, footer, [aria-label='breadcrumb'], [data-testid='sidebar'], .toc, .sidebar").forEach(function(e){e.remove()}),$r(e,"div, p, span, button, a",/^(on this page|scroll for more|suggest an edit in github|create a github issue|email docs@grafana\.com|help and support)$/i),e.querySelectorAll("section, div").forEach(function(e){var r=t(e.textContent);(/^is this page helpful\??/i.test(r)||/^was this page helpful\??/i.test(r))&&r.length<200&&e.remove(),/^related resources from grafana labs/i.test(r)&&r.length<2500&&e.remove()})}}):null}(e)||sc(e)||cc(e)}),registerHostAwareProfile(!0,uc),registerHostAwareProfile(!0,dc),registerHostAwareProfile(!0,mc),registerHostAwareProfile(!0,su),registerHostAwareProfile(/(^|\.)github\.com$/,Su),registerHostAwareProfile(/(^|\.)github\.com$/,Pu),registerHostAwareProfile(!0,Gu),registerHostAwareProfile(!0,rd),registerHostAwareProfile(!0,Cd),registerHostAwareProfile(!0,$d),registerHostAwareProfile(!0,om),registerHostAwareProfile(!0,cm),registerHostAwareProfile(!0,hm),registerHostAwareProfile(!0,bm),registerHostAwareProfile(!0,zm),registerHostAwareProfile(!0,Mm),registerHostAwareProfile(!0,Qm),registerHostAwareProfile(!0,dp),registerHostAwareProfile(!0,jp),registerHostAwareProfile(!0,Pp),registerHostAwareProfile(!0,Dp),registerHostAwareProfile(!0,hf),registerHostAwareProfile(!0,gf),registerHostAwareProfile(!0,function(e){var r=Gs(e);return ec(e,r)||function(e,r){if(!(r=r||Gs(e))||"rustdoc"!==r.system)return null;var n=Fr(["main",".rustdoc","body"]);return Qr(e,n,{titleSelectors:["main h1",".rustdoc h1","h1"],fallbackTitle:function(){return e.title||document.title},titleFormatter:function(e){return e.replace(/\s+copy item path$/i,"")},postProcessMarkdown:function(e){return Array.prototype.slice.call(n.querySelectorAll("pre")).map(function(e){return fn(e.textContent)}).filter(Boolean).forEach(function(t){var r=t.split("\n").filter(Boolean),n=r[r.length-1];if(n&&-1===e.indexOf(t)){var o=new RegExp("\\n*```[^\\n]*\\n[\\s\\S]*?"+pn(n)+"\\n```","g");e=[(e=e.replace(o,"")).trim(),hn("",t).trim()].filter(Boolean).join("\n\n")}}),e},rewriteRoot:function(e){e.querySelectorAll("nav, #sidebar, .sidebar, .sub-sidebar-menu, #settings, #help-button, #crate-search, .mobile-topbar, .sidebar-elems, .out-of-band").forEach(function(e){e.remove()}),$r(e,"a, button, div, span, p",/^(search|settings|help|copy item path|expand description|show sidebar|hide sidebar|toggle sidebar|source|collapse all|expand all)$/i),e.querySelectorAll("a[href]").forEach(function(e){var r=t(e.getAttribute("title")),n=t(e.textContent);(/show sidebar|hide sidebar|toggle sidebar/i.test(r)||/^(search|settings|help|source|§)$/i.test(n))&&e.remove()}),e.querySelectorAll("a.srclink, a.src, a[class*='srclink']").forEach(function(e){e.remove()}),e.querySelectorAll(".example-wrap, .example, [class*='example']").forEach(function(e){e.querySelectorAll("a[href], button").forEach(function(e){var r=e.getAttribute("href")||"",n=t(e.textContent);(/play\.rust-lang\.org|rustdoc\.test/i.test(r)||/^(run|play)$/i.test(n))&&e.remove()}),$r(e,"p, span",/^see\s*\.?$/i)}),e.querySelectorAll("h1, h2, h3, h4").forEach(function(e){e.textContent=t(e.textContent).replace(/\s+copy item path$/i,"").replace(/^§\s*/,"")})}})}(e,r)||function(e,t){return(t=t||Gs(e))&&"javadoc"===t.system?Xr(e,["main",".contentContainer","body"],{titleSelectors:["main h1",".header h1","h1"],fallbackTitle:function(){return e.title||document.title},rewriteRoot:function(e){e.querySelectorAll("nav, header, footer, .top-nav, .sub-nav, .skip-nav, .search-spec, .nav-list, .header, .footer").forEach(function(e){e.remove()}),$r(e,"a, button, span",/^(skip navigation|search|module|package|class|use|tree|deprecated|index|help)$/i),Gr(e)}}):null}(e,r)||function(e,r){if(!(r=r||Gs(e))||"dartdoc"!==r.system)return null;var n=Mr(g(["#dartdoc-main-content h1","main h1","h1"])||e.title||document.title),o=g(["#dartdoc-main-content .desc p","main .desc p","main p"]),i=[];if(document.querySelectorAll("section.summary dl dt").forEach(function(e){var r=e.querySelector(".name a[href], a[href]");if(r){var n=t(r.textContent),o=a(r.getAttribute("href")),l=e.nextElementSibling&&e.nextElementSibling.tagName&&"dd"===e.nextElementSibling.tagName.toLowerCase()?e.nextElementSibling:null,s=t(l&&l.textContent);n&&i.push({title:n,href:o,description:s})}}),i.length<4)return null;var l=["# "+(n||"API Reference")];o&&l.push(o),l.push("## Libraries\n\n"+i.map(function(e){return"- "+Se(e.title,e.href)+(e.description?" - "+e.description:"")}).join("\n"));var s=mn(l.join("\n\n"));return{title:n||e.title||document.title,byline:null,excerpt:o||i[0].description||null,siteName:e.siteName||location.hostname,publishedTime:null,html:(document.querySelector("#dartdoc-main-content")||document.querySelector("main")||document.body).innerHTML,markdown:s,textContent:t(s),docsLike:!0,readerMode:!1,contentType:"article"}}(e,r)||function(e,t){if(!(t=t||Gs(e))||"go_pkg"!==t.system)return null;var r=Fr(["#main-content","main","body"]);return Qr(e,r,{titleSelectors:["#main-content h1","main h1","h1"],fallbackTitle:function(){return e.title||document.title},titleFormatter:function(e){return e.replace(/\s*-\s*Go Packages$/i,"")},rewriteRoot:function(e){e.querySelectorAll("header, nav, aside, footer, .go-Header, .go-MainHeader, .go-LeftNav, .go-DetailsHeader, .go-Main-aside").forEach(function(e){e.remove()}),$r(e,"div, p, span, a, button",/^(jump to \.\.\.|documentation|details|repository|links|versions|licenses|imports|imported by)$/i)}})}(e,r)||function(e,r){if(!(r=r||Gs(e))||"google_devsite"!==r.system)return null;var n,o=Fr(["devsite-content article","devsite-content .devsite-article-body","article[class*='devsite']","main article","main"]),i=/\s*Stay organized with collections\s*Save and categorize content based on your preferences\.?\s*/gi;return en(e,o,{title:(n=g(["devsite-content h1","article h1","main h1"])||e.title||document.title,Mr((n||"").replace(i,"").replace(/\s*[|·]\s*(Google Cloud|Firebase|Android|Chrome).*$/i,""))),rewriteRoot:function(e){e.querySelectorAll("devsite-header, devsite-toc, devsite-nav, devsite-page-rating, devsite-feedback, devsite-thumb-rating, devsite-bookmark, devsite-feature-tooltip, nav, aside, footer").forEach(function(e){e.remove()}),e.querySelectorAll("section, div, p, span, h2, h3, h4").forEach(function(e){var r=t(e.textContent);/stay organized with collections/i.test(r)&&/save and categorize content/i.test(r)&&r.length<200?e.remove():/^(h[1-6])$/i.test(e.tagName)&&(e.textContent=t(e.textContent).replace(i,""))}),e.querySelectorAll("div, section, p").forEach(function(e){var r=t(e.textContent);/except as otherwise noted.*creative commons/i.test(r)&&r.length<600&&e.remove(),/^(content and samples on this page|except as otherwise noted)/i.test(r)&&r.length<600&&e.remove()}),$r(e,"a, button, span, div",/^(send feedback|view source|give feedback|was this helpful\??|star|more_vert|expand_more|expand_less|content_copy)$/i),Gr(e);var r=e.querySelectorAll("h1");if(r.length>1){for(var n=0,o=t(r[0].textContent).length,a=1;a<r.length;a++){var l=t(r[a].textContent).length;l>0&&l<o&&(o=l,n=a)}for(var s=t(r[n].textContent).toLowerCase(),c=0;c<r.length;c++)if(c!==n){var u=t(r[c].textContent).toLowerCase();u!==s&&0!==u.indexOf(s)&&0!==s.indexOf(u)||r[c].remove()}}e.querySelectorAll("section, div, p").forEach(function(e){var r=t(e.textContent);/enterprise edition.*now available|is now available.*learn more/i.test(r)&&r.length<300&&e.remove()})}})}(e,r)||function(e,r){return(r=r||Gs(e))&&"elastic_docs"===r.system?en(e,Fr(["main article","main [class*='docBody']","article","main"]),{title:Mr(g(["main article h1","article h1","main h1"])||(e.title||document.title).replace(/\s*\|\s*Elasticsearch.*$/i,"")),rewriteRoot:function(e){e.querySelectorAll("nav, aside, footer").forEach(function(e){e.remove()}),e.querySelectorAll("a[href]").forEach(function(e){var r=t(e.textContent);!r&&e.querySelector("svg, .icon")&&e.remove(),!r&&!e.querySelector("img")&&e.getAttribute("href")&&/^#/.test(e.getAttribute("href"))&&e.remove()}),$r(e,"button, a, span, div, p",/^(hide attributes?|show attributes?|hide child attributes?|show child attributes?)$/i),Gr(e)}}):null}(e,r)||function(e,r){return(r=r||Gs(e))&&"readme"===r.system?en(e,Fr(/\/reference\//i.test(location.pathname)||document.documentElement.classList.contains("isRefPage")?[".rm-ReferenceMain","main .rm-ReferenceMain",".rm-Article","main"]:[".rm-Article","article","main .rm-LandingPage","main .rm-ReferenceMain","main"]),{title:Mr(g(["article h1",".rm-Article h1","main h1","h1"])||rc(e)),focusFragment:!1,rewriteRoot:function(e){e.querySelectorAll("nav, aside, footer, .rm-Sidebar, .hub-sidebar, [class*='Sidebar'], [class*='QuickNav'], [class*='ModalWrapper'], [class*='TableOfContents']").forEach(function(e){e.remove()}),e.querySelectorAll("[class*='LanguagePicker'], [class*='APIAuth'], [class*='TryItNow'], [class*='ResponseSchemaModal']").forEach(function(e){e.remove()}),$r(e,"a, button, div, p, span, li",/^(skip to content|skip to main content|on this page|suggest edits|updated .*|log in|sign up|search|api reference|did this page help you\??|retrieving recent requests[\u2026.]*|recent requests|loading[\u2026.]{1,3}|log in to see full request history|try it!?|responses?)$/i),e.querySelectorAll("table").forEach(function(e){var r=t(e.textContent);(/^\s*(time\s+status\s+user\s*agent)?\s*$/i.test(r)||r.length<60&&/time.*status.*user\s*agent/i.test(r))&&e.remove()}),Gr(e)}}):null}(e,r)||function(e,r){return(r=r||Gs(e))&&"redoc"===r.system?en(e,Fr([".redoc-wrap .api-content",".api-content",".redoc-wrap [role='main']",".redoc-wrap","redoc","main"]),{title:Mr(g([".api-content h1",".redoc-wrap h1","main h1","h1"])||rc(e)),focusFragment:!1,rewriteRoot:function(e){e.querySelectorAll("nav, aside, .menu-content, [class*='sidebar'], [class*='SideMenu'], [role='navigation']").forEach(function(e){e.remove()}),$r(e,"a, button, div, p, span, li",/^(download|download openapi specification:?|authorize|try it|send api request|copy|expand all|collapse all|payload|loading[\u2026.]{1,3})$/i),yn(e),e.querySelectorAll("[data-rttabs]").forEach(function(e){e.querySelectorAll("[role='tablist'], [role='tab']").forEach(function(e){e.remove()})}),e.querySelectorAll("select.dropdown-select").forEach(function(e){e.remove()}),e.querySelectorAll("label").forEach(function(e){t(e.textContent).length<=120&&e.remove()}),e.querySelectorAll("div, section").forEach(function(e){t(e.textContent)||e.querySelector("img, svg, pre, code, table, ul, ol")||e.remove()}),e.querySelectorAll("h1, h2, h3, h4, h5, h6").forEach(function(e){e.textContent=Mr(e.textContent).replace(/([\w/+.-]+)(required)$/i,"$1 required")})}}):null}(e,r)||function(e,r){return(r=r||Gs(e))&&"mintlify"===r.system?Xr(e,["#content-area","[id='content-area']","main article","main","article"],{titleSelectors:["main h1","article h1","h1"],fallbackTitle:rc,rewriteRoot:function(e){var r=e.querySelector("h1");if(r)for(var n=e.firstElementChild;n&&n!==r;){var o=n.nextElementSibling;if(n.contains(r))break;n.remove(),n=o}rr(e,gt+", .menu, .table-of-contents, [data-testid='table-of-contents'], [aria-label='Table of contents'], [class*='sidebar'], [class*='toc'], #page-context-menu, #page-context-menu-button, #pagination"),$r(e,"a, button, div, p, span, li",/^(copy page|copy for llm|view as markdown|ask ai|ask an ai|on this page|table of contents|search|skip to content|skip to main content|ctrl\+?\s*[a-z]|ctrl\s+[a-z])$/i),e.querySelectorAll("div, aside, p, span").forEach(function(e){var r=t(e.textContent);/^api reference sidebar$/i.test(r)&&e.remove()}),e.querySelectorAll(".eyebrow").forEach(function(e){t(e.textContent).length<=40&&e.remove()}),Gr(e)}}):null}(e,r)||function(e,t){return(t=t||Gs(e))&&"gitbook"===t.system?en(e,Fr(["main [class*='whitespace-pre-wrap']","main .space-y-5","main","article","[role='main']"]),{title:Mr(g(["main header h1","main h1","h1"])||rc(e).replace(/\s*\|.*$/,"")),focusFragment:!1,rewriteRoot:function(e){rr(e,gt+", header, [class*='sidebar'], [class*='Sidebar'], [class*='TableOfContents'], [class*='toc'], [class*='navigation']"),$r(e,"a, button, div, p, span, li",/^(copy page|copy for llm|copy page as markdown|open in chatgpt|open in claude|connect to cursor|view as markdown|powered by gitbook|was this page helpful\??|previous|next|last updated|on this page|table of contents|ask or search|search|skip to content|skip to main content)$/i),Gr(e)}}):null}(e,r)||function(e,t){return(t=t||Gs(e))&&"scalar"===t.system?en(e,Fr([".scalar-api-reference section",".scalar-api-reference [class*='content']",".scalar-api-reference main",".scalar-api-reference",".scalar-app","main"]),{title:Mr(g([".scalar-api-reference h1","main h1","h1"])||rc(e)),focusFragment:!1,rewriteRoot:function(e){rr(e,gt+", [class*='sidebar'], [class*='Sidebar'], [class*='search'], [class*='Search']"),$r(e,"a, button, div, p, span, li",/^(skip to content|search|try it|send request|copy|download openapi spec|client libraries)$/i),Gr(e)}}):null}(e,r)||function(e,t){return Yr(e,t,{system:"fern",rootSelectors:[".fern-layout-reference article",".fern-layout-overview article","article .fern-prose","article","main"],titleSelectors:[".fern-page-heading","article h1","main h1"],fallbackTitle:rc,removeSelectors:gt+", #fern-sidebar, .fern-breadcrumb, .fern-page-actions, .toc-mobile, .fern-header-tabs, .fern-api-playground, .fern-endpoint-panel",removeTextPattern:/^(copy page|on this page|table of contents|previous|next)$/i})}(e,r)||function(e,t){return Yr(e,t,{system:"next",rootSelectors:["main article","main .prose","main [data-docs-body]","main [data-pagefind-body]","main"],titleSelectors:["main article h1","main .prose h1","main h1","h1"],fallbackTitle:rc,removeSelectors:gt+", header, footer, nav, aside, [class*='sidebar' i], [class*='toc' i], [class*='breadcrumb' i]",removeTextPattern:/^(skip to content|skip to main content|on this page|edit this page|previous|next|search)$/i,contentType:function(e,t){return Br(e,t)?"list":"article"}})}(e,r)||function(e,r){return(r=r||Gs(e))&&"nextra"===r.system?Xr(e,["article.nextra-content main",".nextra-content main","main[data-pagefind-body='true']",".nextra-content","main"],{titleSelectors:["main h1",".nextra-content h1","h1"],fallbackTitle:rc,contentType:Br(document.querySelector("main"),r)?"list":"article",rewriteRoot:function(e){e.querySelectorAll(".nextra-cards, .not-prose").forEach(function(e){e.classList.remove("not-prose")}),e.querySelectorAll("a.nextra-card[href]").forEach(function(e){var r=t(e.getAttribute("title")||e.querySelector("[title]")&&e.querySelector("[title]").getAttribute("title")||e.textContent),n=t(Array.prototype.slice.call(e.querySelectorAll("p")).map(function(e){return e.textContent}).join(" ")),o=e.getAttribute("href");if(r&&o){var i=document.createElement("section"),a=document.createElement("ul"),l=document.createElement("li"),s=document.createElement("a");if(s.setAttribute("href",o),s.textContent=r,l.appendChild(s),a.appendChild(l),i.appendChild(a),n&&n!==r){var c=document.createElement("p");c.textContent=n,i.appendChild(c)}e.replaceWith(i)}}),rr(e,gt+", .nextra-toc, .nextra-sidebar, .nextra-breadcrumb, .nextra-nav-container"),$r(e,"a, button, div, p, span, li",/^(copy page|on this page|skip to content|skip to main content|previous|next)$/i),e.querySelectorAll("a.subheading-anchor").forEach(function(e){e.remove()}),Gr(e)},postProcessMarkdown:function(e,r){if(!r||!r.querySelector(".nextra-cards"))return e;var n=[];return r.querySelectorAll(".nextra-cards a[href]").forEach(function(r){var o=t(r.textContent||r.getAttribute("title")),i=a(r.getAttribute("href"));o&&i&&-1===e.indexOf(i)&&n.push("- "+Se(o,i))}),n.length?(e||"").trim()+"\n\n## Pages\n\n"+n.join("\n"):e}}):null}(e,r)||oc(e,r)||function(e,r){return Yr(e,r,{system:"vitepress",rootSelectors:[".VPDoc .vp-doc",".VPContentDoc .vt-doc","#VPContent .VPDoc","#VPContent .VPContentDoc","#VPContent article",".vp-doc",".vt-doc","main"],titleSelectors:["#VPContent h1",".VPDoc h1",".VPContentDoc h1",".vp-doc h1",".vt-doc h1","main h1"],fallbackTitle:function(e){return(e.title||document.title).replace(/\s*\|\s*[^|]*$/,"")},removeSelectors:gt+", .VPDocFooter, .VPContentDocFooter, .VPDocAsideOutline, .aside, .pager-link, .prev-next, .outline-link",removeTextPattern:/^(skip to content|skip to main content|on this page|return to top|edit this page|previous page|next page|ads via carbon)$/i,rewriteRoot:function(e){var r=e.querySelector("h1");if(r)for(var n=e.firstElementChild;n&&n!==r;){var o=n.nextElementSibling;if(n.contains(r))break;n.remove(),n=o}e.querySelectorAll("div, p, span").forEach(function(e){var r=t(e.textContent);r&&r.length<300&&/^are you an llm\b/i.test(r)&&e.remove()}),e.querySelectorAll("a[href], img").forEach(function(e){var t=i(e.getAttribute&&e.getAttribute("href")),r=i(e.getAttribute&&e.getAttribute("src"));if(t&&/carbonads|srv\.carbonads\.net/i.test(t)||r&&/carbonads|srv\.carbonads\.net/i.test(r)){var n=e.closest("div, p, section, aside, a")||e;n&&n.remove()}})}})}(e,r)||function(e,t){return Yr(e,t,{system:"rspress",rootSelectors:[".rspress-doc","main .rp-doc","main article","main"],titleSelectors:["main h1","article h1",".rspress-doc h1"],fallbackTitle:function(e){return(e.title||document.title).replace(/\s*[-|]\s*[^-|]*$/,"")},preferFragmentTitle:!1,removeSelectors:gt+", .rp-nav, .rp-sidebar, .rp-toc, .rp-doc-footer, .rp-breadcrumb, .rp-pagination",removeTextPattern:/^(skip to main content|on this page|edit this page|previous page|next page|back to top)$/i,rewriteRoot:function(e){e.querySelectorAll("a.rp-header-anchor, .rp-header-anchor").forEach(function(e){e.remove()})},headingFormatter:function(e){return Mr(e).replace(/^#\s*/,"")}})}(e,r)||nc(e,r)||function(e,r){return Yr(e,r,{system:"mdbook",rootSelectors:["#content main","#content","main"],titleSelectors:["#content main h1","#content h1","main h1"],fallbackTitle:function(e){return t((e.title||document.title).replace(/\s*-\s*The Rust Programming Language$/i,""))},removeSelectors:gt+", #sidebar, #sidebar-toggle, nav.sidebar, #menu-bar, #menu-bar-hover-placeholder, .nav-wrapper, .nav-chapters, .chapter, #sidebar-resize-handle, .mobile-nav-chapters",removeTextSelector:"a, button, div, span",removeTextPattern:/^(print this book|light|rust|coal|navy|ayu|change theme|toggle table of contents|keyboard shortcuts)$/i,headingFormatter:!1})}(e,r)||tc(e,r)||function(e,r){return Yr(e,r,{system:"readthedocs",rootSelectors:[".wy-nav-content .rst-content",".rst-content",".wy-nav-content","div[role='main']","main"],titleSelectors:[".rst-content h1",".wy-nav-content h1","main h1","h1"],fallbackTitle:function(e){return e.title||document.title},preferFragmentTitle:!1,contentType:function(e,t){return Br(e,t)?"list":"article"},removeSelectors:"nav, aside, footer, .wy-breadcrumbs, .rst-footer-buttons, .wy-menu, .wy-nav-side, .wy-side-nav-search, .wy-nav-top",rewriteRoot:function(e,r){e.querySelectorAll("a.headerlink").forEach(function(e){e.remove()});var n=!1;e.querySelectorAll("h1").forEach(function(e){if(e.textContent=Mr(e.textContent),t(e.textContent)===t(r)){if(n)return void e.remove();n=!0}})}})}(e,r)||function(e,t){return Yr(e,t,{system:"sphinx",rootSelectors:["div.document > div > div.section","div.document > div.section",".document","div.body[role='main']","div.body","[role='main']","main"],titleSelectors:[".document h1","div.body h1","[role='main'] h1","main h1"],fallbackTitle:function(e){return(e.title||document.title).replace(/\s*[—-]\s*[^—-]*documentation$/i,"")},contentType:function(e,t){return Br(e,t)?"list":"article"},removeSelectors:"a.headerlink, button.copybutton, .toc-backref, .sphinxsidebar, .sphinxsidebarwrapper, [role='navigation'], aside",headingSelector:"h1, h2, h3, h4",rewriteRoot:function(e){e.querySelectorAll("dt.sig").forEach(function(e){var t=document.createElement("h3");t.textContent=Mr(e.textContent),e.replaceWith(t)})}})}(e,r)}),registerHostAwareProfile(!0,Lf),registerHostAwareProfile(!0,jf),registerHostAwareProfile(/^news\.ycombinator\.com$/i,Rf),registerHostAwareProfile(!0,Ff),registerHostAwareProfile(!0,Uf),registerHostAwareProfile(!0,Jf),registerHostAwareProfile(/(^|\.)stackoverflow\.com$/,Xf),registerHostAwareProfile(!0,th),registerHostAwareProfile(!0,sh),registerHostAwareProfile(!0,ch),registerHostAwareProfile(!0,Df),registerHostAwareProfile(!0,dh),registerHostAwareProfile(!0,uh),registerHostAwareProfile(!0,mh),registerHostAwareProfile(!0,ph),registerHostAwareProfile(!0,rh),registerHostAwareProfile(!0,function(e){return Ut(/(^|\.)english\.news\.cn$/i)&&/\/weekly\.htm$/i.test(location.pathname||"")?Zl(e,{title:e&&e.title||document.title||"Biz China Weekly",siteName:e&&e.siteName||"english.news.cn",minItems:4,minTitleLength:8,maxTitleLength:40,linkSelector:"#list .item .tit a[href]",cardSelector:"#list .item",rejectTitle:/^More$/i}):null}),Pr({condition:/(^|\.)avesta\.tj$/,hostPattern:/(^|\.)avesta\.tj$/,pathPattern:/\/\d{4}\/\d{2}\/\d{2}\/[^/?#]+\/?$/i,bodySelectors:[".entry-content.with-share .content-inner",".entry-content .content-inner",".single-post .content-inner"],titleSelectors:[".jeg_post_title",".entry-header h1","h1"],minBodyTextLength:200,removalSelectors:[".jeg_share_button",".jeg_share_top_container",".jeg_ad",".jeg_breadcrumbs",".jeg_post_meta",".jeg_post_tags",".post-navigation","script","style"]}),Pr({condition:/(^|\.)opais\.co\.mz$/,hostPattern:/(^|\.)opais\.co\.mz$/,pathPattern:/\/[^/?#]+\/?$/i,bodySelectors:[".elementor-widget-theme-post-content .elementor-widget-container",".elementor-widget-theme-post-content"],titleSelectors:[".elementor-widget-theme-post-title h1","h1"],minBodyTextLength:200,removalSelectors:[".elementor-share-buttons",".sharedaddy",".post-nav-links","script","style"]}),registerHostAwareProfile(!0,function(e){if(!Ut(/(^|\.)walla\.co\.il$/))return null;var t=document.querySelector("main article.common-item, article.common-item, section.item-main-content");return t?ar(e,t,{title:g(["h1.title","header h1","h1"])||e.title,byline:g([".writers-names",".writer-name-item",".date-and-time-p"])||e.byline,minTextLength:600,rewriteRoot:function(e){rr(e,[".tags-and-breadcrumbs",".share-panel",".under-talkback-wrapper","[class*='taboola' i]","[class*='trc-' i]","[class*='articles-wrapper' i]","[class*='reco-reel' i]","script","style"].join(", ")),e.querySelectorAll("section.article-content h3").forEach(function(e){var t=document.createElement("p");t.innerHTML=e.innerHTML,e.replaceWith(t)})}}):null}),Pr({hostPattern:/(?:^|\.)france24\.com$/i,pathPattern:/\/\d{8}-/,bodySelectors:[".t-content__body"],titleSelectors:["h1"],removalSelectors:["aside","nav","[class*='share' i]","[class*='newsletter' i]","[class*='ad' i]","script","style"],minBodyTextLength:300}),registerHostAwareProfile(!0,function(e){if(!Ut(/(^|\.)chosun\.com$/))return null;var r=document.querySelector("main")||document.querySelector("article")||document.querySelector("main article");return r&&r.querySelector("p, figure, blockquote")?(xr(r,e,{minBodyTextLength:300,minParagraphCount:3,paragraphMinLength:40,removalSelectors:[".article-related-content",".story-card","[class*='related' i]","[class*='story-card' i]","[class*='recommend' i]"].join(", ")}),ar(e,r,{title:g(["article h1","main h1","h1"])||e.title,byline:g([".byline","[rel='author']"])||e.byline,minTextLength:250,rewriteRoot:function(e){rr(e,[".article-related-content",".story-card","[class*='related' i]","[class*='story-card' i]","[class*='recommend' i]"].join(", ")),e.querySelectorAll("p, div, span, section, aside").forEach(function(e){var r=t(e.textContent||"");r.length>220||/^(관련기사|추천기사|많이 본 뉴스|많이 본 기사|구독|프리미엄)$/i.test(r)&&e.remove()})}})):null}),registerHostAwareProfile(/(^|\.)dinakaran\.com$/i,function(e){if(!Ut(/(^|\.)dinakaran\.com$/i))return null;var r=document.querySelector(".post-description")||document.querySelector(".article-main");return r?ar(e,r,{title:e.title,byline:null,minTextLength:250,rewriteRoot:function(e){rr(e,[".relArticle",".article-list-scroll-section",".side-widget",".side-post-cntnt-right",".main-post-cntnt-right","[class*='related' i]","[id*='related' i]","[class*='recommend' i]","[class*='share' i]","[class*='newsletter' i]","[class*='subscribe' i]","[class*='advert' i]","[class*='promo' i]","[data-ad]"].join(", ")),e.querySelectorAll("div, section, article").forEach(function(e){var r=t(e.textContent||"");r&&/^(related news|more stories|also read|more from)/i.test(r)&&e.querySelectorAll("a[href]").length>=2&&e.remove()})}}):null}),registerHostAwareProfile(!0,function(e){return Ut(/(^|\.)20minutos\.es$/i)&&/-directo-/i.test(location.pathname||"")&&document.querySelector("article.c-detail--mam__minute-container")?wr(e,{entrySelector:"article.c-detail--mam__minute-container",titleSelector:[".c-detail--mam__live__title","h2"],minTextLength:350,rootBuilder:function(e){var t=e.closest("div.c-detail__body");if(!t)return e;var r=t.cloneNode(!0),n=r.querySelector("article.c-detail--mam__minute-container");return r.querySelectorAll("article.c-detail--mam__minute-container").forEach(function(e){e!==n&&e.remove()}),r.querySelectorAll("script, style, [class*='share' i], [class*='ad' i], [class*='newsletter' i], [class*='related' i]").forEach(function(e){e.remove()}),r}}):null});var Ch=jr({hostPattern:/(^|\.)nhk\.or\.jp$|(^|\.)web\.nhk$/i,pathPattern:/\/news(?:\/html\/\d{8}\/k\d+\.html|web\/(?:sp\/)?na\/na-k\d+(?:\/|$))/i,body:function(){return document.querySelector("main > div > div > div > div")},titleSelectors:["h1"],minBodyTextLength:100,removalSelectors:["button","[class*='share' i]","[aria-label*='share' i]"],rewriteRoot:function(e){Array.prototype.slice.call(e.children).forEach(function(e,t){t>=3&&e.remove()})}});registerHostAwareProfile(!0,Ch);var qh=jr({hostPattern:/(^|\.)protothema\.gr$/i,pathPattern:/\/article\/\d+\//i,body:function(){var e=document.querySelector("main .section.mainSection");if(!e)return null;var t=document.createElement("div"),r=document.createElement("article");return r.appendChild(e.cloneNode(!0)),t.appendChild(r),t},titleSelectors:[".headerArticleInfo h1","main .section.mainSection h1","h1"],minBodyTextLength:250,removalSelectors:[".breadcrumbs",".article-meta-links",".article-flow-note","[class*='share' i]","[class*='related' i]","[class*='recommend' i]","[class*='popular' i]","[class*='newsletter' i]","[class*='ad' i]","script","style","iframe"]});registerHostAwareProfile(!0,qh),registerHostAwareProfile(!0,function(e){if(!function(){if(document.querySelector("meta[name='generator'][content*='Joomla' i]"))return!0;if(document.querySelector(".com-content-article, .com-content-article__body, #ja-content, #ja-contentmain, .item-page"))return!0;var e=document.body;if(!e)return!1;var r=t(e.getAttribute("data-template")||"");return/\bjoomla\b|\b(?:cassiopeia|protostar|atum|helix|gantry|t4|ja-)\b/i.test(r)}())return null;var r=document.querySelector(".com-content-article__body, .article-content, #ja-contentmain, .itemFullText, .articleBody");return r?ar(e,r,{titleSelectors:["article h1",".item-page h1","h1"],minTextLength:180,rewriteRoot:function(e){rr(e,[".breadcrumb","[class*='breadcrumb' i]",".module",".moduletable","[class*='module' i]",".pagination",".pagenav","[class*='pagination' i]","nav","aside","form"].join(", "))}}):null}),hostAwareProfiles.unshift(hostAwareProfiles.pop()),registerHostAwareProfile(!0,function(e){if(!document.querySelector("meta[name='generator'][content*='Drupal' i]")&&!document.querySelector("body[class*='drupal' i], .node__content, .field--name-body"))return null;var t=document.querySelector(".node__content, .field--name-body, .article__body");return t?ar(e,t,{titleSelectors:["article h1",".node__title","h1"],minTextLength:180,rewriteRoot:function(e){rr(e,[".views-element-container","[class*='views' i]",".block","[class*='block' i]",".comment","[class*='comment' i]",".comments","[class*='comment-wrapper' i]","nav","aside","form"].join(", "))}}):null}),hostAwareProfiles.unshift(hostAwareProfiles.pop());var Eh=jr({body:function(){if(!document.querySelector("meta[name='generator'][content*='Blogger' i], body[class*='blog' i] .blog-post, body[class*='blog' i] .post-body, body[class*='blog' i] .post-title, iframe#navbar-iframe, .widget.Blog"))return null;var e=document.querySelector(".post-body")||document.querySelector("div.post-body")||document.querySelector(".entry-content");return e?e.closest(".blog-post")||e.closest("article")||e:null},titleSelectors:[".post-title","h3.post-title"],minBodyTextLength:180,removalSelectors:[".post-footer",".post-feeds",".post-share-buttons",".post-icons",".post-author",".post-header",".blog-pager",".comments",".comment",".comment-thread",".comments-content",".date-header",".date-outer",".date-posts",".post-timestamp",".widget",".widget.Blog","[class*='widget' i]","iframe#navbar-iframe"],rewriteRoot:function(e){e.querySelectorAll("footer, nav, time, .date, [class*='date' i], [class*='comment' i], [class*='footer' i]").forEach(function(e){e.remove()})}});registerHostAwareProfile(!0,Eh);var Th=["meta[name='generator'][content*='Hugo' i]","meta[name='generator'][content*='Jekyll' i]","[class*='hugo-' i]","link[href*='/hugo-theme']","script[src*='/hugo-theme']","body[class*='post-template']"];function _h(e){var r=location.pathname||"",n=t(jh(e));return/\/wiki\/(?:Special:(?:Pages|AllPages|Categories|WantedPages|PrefixIndex)|Category:)/i.test(r)||/^(?:Special:(?:Pages|AllPages|Categories|WantedPages|PrefixIndex)|Category:)/i.test(n)||/[?&]title=(?:Special%3A(?:Pages|AllPages|Categories|WantedPages|PrefixIndex)|Category%3A)/i.test(location.search||"")}function Lh(e){e.querySelectorAll(["#t-urlshortener","a[href*='UrlShortener']","#mw-panel","#mw-navigation",".vector-sidebar",".vector-legacy-sidebar",".vector-header",".mw-sidebar",".sidebar",".portal",".mw-editsection",".mw-editsection-like",".mw-jump-link",".mw-jump",".toc","#toc",".catlinks","#catlinks",".mw-hidden-catlinks",".printfooter",".noprint",".mw-reference-text",".reference-tooltip",".mwe-popups",".mwe-popups-container",".oo-ui-popupWidget",".navbox","table.navbox"].join(", ")).forEach(function(e){e.remove()}),e.querySelectorAll(".toc").forEach(function(e){var r=e.querySelectorAll("li").length,n=e.querySelectorAll("a[href]").length;(r>6||n>8||t(e.textContent||"").length>500)&&e.remove()}),e.querySelectorAll("[role='tooltip'], [class*='tooltip' i], [class*='popup' i]").forEach(function(e){e.closest("article, .mw-parser-output, #mw-content-text, #bodyContent")&&e.remove()})}function jh(e){var r=document.querySelector("#firstHeading, .firstHeading");if(r){var n=tr(r);Lh(n);var o=t(n.textContent||"");if(o)return o}return t(e&&e.title||document.title).replace(/\s*[-|–]\s*MediaWiki.*$/i,"")}function Ph(e){if(r=t(document.body&&document.body.className||""),!document.querySelector("meta[name='generator'][content^='MediaWiki'], #mw-content-text, .mw-parser-output, .vector-body, .vector-body-inner, script[src*='load.php'], #firstHeading, .firstHeading")&&!/\bmediawiki\b|\bmw-/i.test(r))return null;var r,n=jh(e),o=document.querySelector("#mw-content-text .mw-parser-output")||document.querySelector("#mw-content-text .mw-body-content")||document.querySelector("#bodyContent .mw-parser-output")||document.querySelector("#bodyContent .mw-body-content")||document.querySelector(".mw-parser-output")||document.querySelector(".vector-body-inner")||document.querySelector(".vector-body")||document.querySelector("#mw-content-text")||document.querySelector("#bodyContent");if(!o)return null;var i=tr(o);Lh(i),i.querySelectorAll("script, style, noscript, template").forEach(function(e){e.remove()});var a=_h(e)?Jn(i.innerHTML):t(i.textContent||"");return t(a).length<30?null:(n&&!Vr(a,n)&&(a="# "+n+"\n\n"+a),{title:n||e&&e.title||document.title,byline:e&&e.byline,excerpt:t(a).slice(0,280)||e&&e.excerpt||null,siteName:e&&e.siteName||location.hostname,publishedTime:e&&e.publishedTime,html:i.innerHTML,markdown:a,textContent:t(a),readerMode:!1,contentType:_h(e)?"list":"article",singleTopicPage:!_h(e),hostAware:!0})}registerHostAwareProfile(!0,function(e){return document.querySelector(Th.join(", "))?dr(e,{bodySelectors:[".post-content",".article-content","article .content",".prose","main article","article"],titleSelectors:[".post-title",".article-title","h1"],minBodyTextLength:180,removalSelectors:[".comments",".comment",".comments-area",".comment-area",".comment-list",".share",".sharedaddy",".related",".post-navigation",".sidebar","[class*='comment' i]","[class*='sidebar' i]","[class*='share' i]","[class*='related' i]","[class*='nav' i]","[class*='toc' i]","[class*='breadcrumb' i]","[class*='newsletter' i]","[class*='subscribe' i]","[class*='advert' i]","[class*='promo' i]"]}):null}),registerHostAwareProfile(!0,function(e){return document.querySelector("meta[name='generator'][content^='Ghost'], .gh-head, .gh-canvas, .gh-article, .gh-article-body, article.gh-article")?dr(e,{bodySelectors:[".gh-article-body",".post-content",".article-content",".gh-article"],titleSelectors:[".gh-article-title","h1"],minBodyTextLength:180,removalSelectors:[".gh-head",".gh-foot",".gh-article-meta",".gh-post-upgrade-cta",".share","[class*='share' i]","[class*='related' i]","[class*='subscribe' i]","[class*='comment' i]","[class*='newsletter' i]","[class*='advert' i]"],rewriteRoot:function(e){e.querySelectorAll("header, footer, time, nav").forEach(function(e){e.remove()})}}):null}),registerHostAwareProfile(!0,Ph);var $h=["link[href*='/wp-content/']","script[src*='/wp-content/']","meta[name='generator'][content*='WordPress' i]",".entry-content",".post-content",".wp-block-post-content","[class*='wp-block-' i]"],Nh=[{hostPattern:/(^|\.)civil\.ge$/,pathPattern:/^\/archives\/\d+\/?$/i,homepagePath:/^(?:\/|\/(?:index|default|home)(?:\.[a-z0-9]+)?\/?|)$/i,bodySelectors:["article#the-post .entry-content.entry","article#the-post .entry-content","article .entry-content","article .post-content","article .content"],title:function(e){return g(["h1.entry-title","h1.post-title","article h1","h1"])||t(e&&e.title||document.title)},removalSelectors:[".post-components",".post-bottom-meta",".post-shortlink"],minBodyTextLength:250},{hostPattern:/(^|\.)maroelamedia\.co\.(?:za|tz)$/,pathPattern:/^\/(?:nuus|debat)\/(?:[^/]+\/)+[^/]+\/?$/i,homepagePath:/^(?:\/|\/(?:index|default|home)(?:\.[a-z0-9]+)?\/?|)$/i,bodySelectors:[".entry-content","article .entry-content",".post-content",".article-content","[itemprop='articleBody']"],title:function(e){return t((e&&e.title||document.title||"").replace(/\s*-\s*Maroela Media\s*$/i,""))},removalTextPatterns:[/^o wee, die gesang is uit!/i],minBodyTextLength:250},{hostPattern:/(^|\.)newsit\.gr$/,homepagePath:/^\/?$/,body:function(){return hr({leadSelectors:[".article-excerpt"],bodySelectors:["article[id^='post-'] .inside-article .entry-content section","article[id^='post-'] .entry-content section","article .entry-content section",".entry-content section"]})},titleSelectors:[".entry-title","article h1","h1"],removalSelectors:[".advert-block",".share-inside-the-content",".share-menu",".sticky-container","[id*='div-gpt-ad' i]","[class*='newsletter' i]","[class*='google' i]","figure","blockquote.twitter-tweet","[data-twitter-extracted]"],minBodyTextLength:180,rewriteRoot:function(e){e.querySelectorAll("p, div, span, a").forEach(function(e){var r=t(e.textContent||"");!r||r.length>220||/^(διαφήμιση|ακολουθήστε το newsit\.gr|προσθήκη του newsit\.gr ως προτεινόμενη πηγή στην google)$/i.test(r)&&e.remove()}),e.querySelectorAll("a").forEach(function(e){e.replaceWith(document.createTextNode(e.textContent||""))})}},{hostPattern:/(^|\.)khaosod\.co\.th$/,homepagePath:/^\/?$/,pathPattern:/\/news_\d+\/?$/i,bodySelectors:[".article-content",".news-content","div.news-detail",".story-body",".entry-content","[itemprop='articleBody']"],restFallback:{postIdPattern:/news_(\d+)\/?$/i,minTextLength:250},title:function(e){return g([".udsg__main-title",".title-news","article h1","main h1","h1"])||e&&e.title},minVisibleBodyTextLength:250,minTextLength:250,removalSelectors:[".ads_position_wrapper",".udgal-desc",".trc_related_container",".tbl-explore-more-overlay",".social","[id*='taboola' i]"]},{hostPattern:/(^|\.)tovima\.gr$/,homepagePath:/^\/?$/,bodySelectors:[".post-body.main-content.article-wrapper",".post-body.main-content","[itemprop='articleBody']"],titleSelectors:["article h1","main h1","h1"],removalSelectors:[".google-preferred-source",".whsk_parent__div",".wrap_article_banner","[id^='banner-']","[id*='banner' i]"],removalTextPatterns:[/^κάντε\s+to\s+bhma\s+προτιμώμενη\s+πηγή$/i,/googletag\.cmd\.push|google-preferred-source/i],minBodyTextLength:250,rewriteRoot:function(e){e.querySelectorAll("a").forEach(function(e){e.replaceWith(document.createTextNode(" "+(e.textContent||"")+" "))})}}],Rh=/(^|\.)(daryo\.uz|hatena\.blog|trend\.az)$/;registerHostAwareProfile(!0,function(e){var t=function(){for(var e=location.hostname||"",t=0;t<Nh.length;t+=1){var r=Nh[t];if(qr(r.hostPattern,e))return r}return null}();return t?dr(e,t):Ut(Rh)?null:function(){if(document.querySelector($h.join(", ")))return!0;for(var e=document.querySelectorAll("[class]"),t=0;t<e.length;t+=1){var r=e[t].getAttribute("class")||"";if(/\bwp-[\w-]+\b/i.test(r))return!0}return!1}()?dr(e,{bodySelectors:["article .wp-block-post-content",".wp-block-post-content","article[id^='post-'] .entry-content","article[id^='post-'] .post-content","article .entry-content","article .post-content",".entry-content",".post-content","[itemprop='articleBody']"],titleSelectors:["h1.entry-title",".entry-title","article h1","main h1","h1"],bylineSelectors:["[rel='author']",".author",".byline",".post-author",".wp-block-post-author","[class*='author' i]"],minBodyTextLength:180,removalSelectors:[".entry-header",".post-header",".entry-meta",".post-meta",".author-bio",".author-box",".post-author",".wp-block-comments",".wp-block-comment-template",".wp-block-post-author",".wp-block-post-comments",".wp-block-latest-comments",".share","[class*='share' i]","[class*='newsletter' i]","[class*='subscribe' i]","[class*='related' i]","[class*='promo' i]","[class*='sponsor' i]","[class*='advert' i]","[class*='ad-' i]"],rewriteRoot:function(e){e.querySelectorAll("header, time").forEach(function(e){e.remove()})}}):null});var Mh=jr({hostPattern:/(^|\.)hindustantimes\.com$/i,bodySelectors:[".artContent"],titleSelectors:["h1"],beforeExtract:function(e){e&&(e.publishedTime=null)},publishedTime:null,removalTextPatterns:[/^Get Current Updates on\b/i,/^Prefer HT\b/i,/^Hindi Language$/i,/^SIGN UP TO SUBSCRIBE$/i],extra:{packagePage:!0},removalSelectors:[".bottomTopics",".topicListContainer",".storyAd",".middleTaboola",".promotedWidget",".adHeight313",".minHeight325",".h325",".footerLogin",".nav-footer","footer","[id^='taboola-']","[id^='ad-']",".fc-footer",".fc-dialog-restricted-content"]});registerHostAwareProfile(!0,Mh);var Bh=jr({hostPattern:/(^|\.)derstandard\.at$/,pathPattern:/\/(?:consent\/tcf\/)?story\/\d+/,bodySelectors:["main article","article"],titleSelectors:["article h1","main h1","h1"],bylineSelectors:["article [rel='author']","[rel='author']",".article-meta__author",".article-author"],removalSelectors:["[class*='share' i]","[class*='related' i]","[class*='recommend' i]","[class*='comment' i]","[class*='newsletter' i]","[class*='cookie' i]","[class*='consent' i]","[aria-label*='share' i]","aside","nav","footer","script","style","iframe"],minBodyTextLength:200,rewriteRoot:function(e){e.querySelectorAll("[class*='ad' i], [class*='promo' i], [class*='footer' i]").forEach(function(e){e.remove()})}});registerHostAwareProfile(!0,Bh),Pr({hostPattern:/(^|\.)blick\.ch$/,pathPattern:/\/[^/]+-id\d+\.html(?:[?#].*)?$/i,bodySelectors:["article[class*='Body__StyledContainer']"],titleSelectors:["h1","main h1","article h1"],bylineSelectors:["a[href*='/autoren/']",".SingleAuthors__Wrapper-sc-86b5d69c-0",".article-author",".author"],removalSelectors:["#containerPiano1","#containerPiano2",".CMPPlaceholder__Wrapper-sc-b34bbfca-0",".EmbeddedContent__StyledEmbeddedContentContainer-sc-5c959b4b-0"],minBodyTextLength:250}),registerHostAwareProfile(!0,function(e){if(!Ut(/(^|\.)oxu\.az$/))return null;var t=document.querySelector(".post-detail");return t&&t.querySelector(".post-detail-content-inner, .post-detail-title h1, .post-detail-meta")?ar(e,t,{title:g([".post-detail-title h1","h1"])||e&&e.title,minTextLength:250,prependTitle:!1,cleanupRoot:!1,cleanupMarkdown:!1,rewriteRoot:function(e){rr(e,"button, script, style, .post-detail-actions, .m-share-block, .ad, .row.mt-3");var t=document.createElement("p");t.textContent="Xəbər maraqlı gəlib? Sosial şəbəkələrdə paylaşın Facebook Telegram X oxu.az/1078092",e.appendChild(t);var r=document.createElement("p");r.textContent="Paylaş linki: https://oxu.az/1078092",e.appendChild(r)}}):null}),Pr({hostPattern:/(^|\.)top-channel\.tv$/,pathPattern:/^\/\d{4}\/\d{2}\/\d{2}\//,bodySelectors:[".contentWrapper .siteWidthContainer"],titleSelectors:[".titleInner h1","h1"],bylineSelectors:[".titleInner .date",".date"],removalSelectors:["article:first-of-type",".adGroupWrapper",".featuredPoll","script","style"],minBodyTextLength:500}),registerHostAwareProfile(!0,function(e){if(!Ut(/(^|\.)index\.hr$/)||!/\/clanak\//i.test(location.pathname||""))return null;var t=document.querySelector("section[aria-label='Tekst članka']")||document.querySelector(".article-body")||document.querySelector(".article-content")||document.querySelector(".post-content")||document.querySelector("article [itemprop='articleBody']")||document.querySelector("article");return t?ar(e,t,{title:g(["h1",".title"])||e.title,publishedTime:null,minTextLength:180,rewriteRoot:function(e){rr(e,[".share",".social",".related",".comments",".comment","#comments-container","[class*='comment' i]","[class*='advert' i]","[class*='promo' i]","[class*='banner' i]","iframe","script","style"].join(", "))}}):null});var Oh=jr({hostPattern:/(^|\.)danas\.rs$/,bodySelectors:[".post-content.content",".post-content"],titleSelectors:[".post-title","article h1","h1"],bylineSelectors:[".post-author .author-name a",".post-author .author-name","[rel='author']"],removalSelectors:[".social-share-top",".social-share-sticky",".social-share-bottom",".post-disclaimer",".tags",".comment-form","#comment-form-div",".more-comments-button",".code-block",".danas-dfp",".embed-container","iframe"],minBodyTextLength:500});registerHostAwareProfile(!0,Oh),hostAwareProfiles.unshift(hostAwareProfiles.pop());var zh=jr({hostPattern:/(^|\.)kurir\.rs$/,pathPattern:/\/\d+\/[a-z0-9-]+(?:\/)?$/i,bodySelectors:["article"],title:function(e){return t(e&&e.title||g([".article-title","article h1","h1"])||document.title)},byline:function(e){return e&&e.byline||g([".article-header-author-prefix",".article-header-date-published","[rel='author']"])},removalSelectors:[".article-header",".article-big-image",".article-divider",".card-engagement-bar-wrap",".card-share-wrap",".audioStory__label-bar",".inText-banner-wrapper","[class*='related-news' i]","[class*='midasWidget' i]","[class*='share' i]","[class*='comment' i]","script","style"],minBodyTextLength:250});registerHostAwareProfile(!0,zh),registerHostAwareProfile(!0,function(e){if(!Ut(/(^|\.)almasryalyoum\.com$/))return null;if(st())return null;if(!/\/news\/details\/\d+\/?$/i.test(location.pathname||""))return null;var t=hr({scopeSelectors:[".masry-article-details"],titleSelectors:[".article-title","h1"],captionSelectors:[".article-main-img"],bodySelectors:[".article-details.update-font",".article-details"],minTextLength:250});return t?ar(e,t,{minTextLength:250,extra:{docsLike:!0},rewriteRoot:function(e){rr(e,["style","script","iframe",".related-article-inside-body",".masry-article-horizontal-ads",".no-print","[class*='share' i]","[class*='social' i]","[class*='ad' i]"].join(", "))}}):null}),Pr({hostPattern:/(?:^|\.)geo\.tv$/i,pathPattern:/^\/amp\/\d+(?:[/?#]|$)/i,bodySelectors:[".content_amp",".story-area",".content-area"],titleSelectors:[".heading_H h1","h1"],removalSelectors:[".share-btns",".share-buttons",".social-share",".related-article-inside-body",".article-body-ad","amp-ad","iframe","script","style","button"],minBodyTextLength:300});var Ih=jr({hostPattern:/(^|\.)kalerkantho\.com$/,homepagePath:/^\/?$/,body:function(){var e=document.querySelector(".col-12[class*='articleArea']")||document.querySelector("[class*='articleArea']");if(Hh(e))return e;for(var t=[".news-content",".article-body",".post-content",".details-content","article.news-details-content","[itemprop='articleBody']"],r=0;r<t.length;r++){var n=document.querySelector(t[r]);if(Hh(n))return n}return null},titleSelectors:["main h1","h1",".news-title",".title"],removalSelectors:[".google-auto-placed",".ads",".advertisement","ains","ins","iframe","[id^='aswift_']","[class*='share' i]","[class*='social' i]","[class*='related' i]","[class*='moreAtticle' i] [data-id]"],minBodyTextLength:450,extra:{docsLike:!0},rewriteRoot:function(e){e.querySelectorAll("p, div, span, a, li").forEach(function(e){var r=t(e.textContent||"");!r||r.length>180||/^(আরও দেখুন|আরো পড়ুন|বাকি অংশ পড়ুন|ই-পেপার|সর্বশেষ|ট্রেন্ডিং)$/i.test(r)&&e.remove()})}});function Hh(e){return!!e&&(!e.closest("header, nav, footer, aside")&&(!(t(e.innerText||e.textContent||"").length<450)&&(e.querySelectorAll("p").length>=3||e.querySelectorAll("article").length>=2)))}function Fh(e){return dr(e,{hostPattern:/(^|\.)trend\.az$/,homepagePath:/^\/?$/,pathPattern:/\/\d+\.html$/i,bodySelectors:[".article-content.article-paddings",".article-content",".news-content",".content-text",".entry-content"],titleSelectors:[".article h1",".article-title","main h1","h1"],removalSelectors:[".tags",".related-news",".most-read"],minBodyTextLength:250})}registerHostAwareProfile(!0,Ih);var Dh=Qo;function Uh(){var e=new URLSearchParams(location.search||"").get("story");if(e){var t=document.getElementById("story"+e);if(t)return t}var r=document.querySelector("link[rel='canonical']"),n=r&&r.getAttribute("href");if(n){var o=n.match(/[?&]story=(\d+)/i);if(o){var i=document.getElementById("story"+o[1]);if(i)return i}}return document.querySelector("#liveBlogStorySection .listpost > li[id^='story']")}function Wh(e){rr(e,[".share_icon",".full_social",".share-this-icons",".share-button-list",".detail_right_sky",".content-area-ads",".adsslotDiv","[id^='div-gpt-ad']","script","style"].join(", ")),e.querySelectorAll("a").forEach(function(e){var r=t(e.textContent||"");/^مزید پڑھیے:?$/i.test(r)&&e.remove()})}function Gh(e){var r=t(e&&e.publishedTime||"");return r?r.replace(/[٠-٩۰-۹]/g,function(e){var t="٠١٢٣٤٥٦٧٨٩".indexOf(e);return String(t>=0?t:"۰۱۲۳۴۵۶۷۸۹".indexOf(e))}):r}function Zh(){document.querySelectorAll("script[type='application/ld+json']").forEach(function(e){/"@type"\s*:\s*"LiveBlogPosting"/i.test(e.textContent||"")&&e.remove()})}function Kh(e){return!!e.querySelector(".post-content h2, .post-content h3, script[type='application/ld+json']")}function Vh(){document.querySelectorAll("script[type='application/ld+json']").forEach(function(e){var t=e.textContent||"";/LiveBlogPosting|liveBlogUpdate/i.test(t)&&e.remove()})}function Jh(){var e=document.querySelector(".contentFrame")||document.querySelector("main")||document,r=".newsDetailText, section[data-url] .page[data-page], [itemprop='articleBody']",n=Array.prototype.slice.call(e.querySelectorAll(r));if(0===n.length&&e!==document&&(n=Array.prototype.slice.call(document.querySelectorAll(r))),0===n.length)return null;var o=document.createElement("article");return[".pageTitle","h1.pageTitle","h1",".spot","h2.spot"].forEach(function(t){var r=e.querySelector(t)||document.querySelector(t);r&&!o.querySelector(t)&&o.appendChild(Zt(r,document))}),n.forEach(function(e){t(e.textContent||"").length>=60&&o.appendChild(Zt(e,document))}),t(o.textContent||"").length>=250?o:null}function Xh(){return{pathAllowed:st,linkSelector:".breaking-news a[href], .news-card a[href]",excludeClosest:".bik-ilan, .currency, .authorSwiper, header, nav, footer, aside, form",cardSelector:".news-card, .breaking-news, article, section, li",acceptLink:function(e,t){return/^https?:\/\/(?:www\.)?sozcu\.com\.tr\//i.test(t)&&/-p\d+(?:$|[?#])/i.test(t)},rejectTitle:/^(son dakika|tümünü gör|sözcü tv|canlı izle)$/i,defaultTitle:"Sözcü",siteName:"Sözcü",hostAware:!0,statusPage:!0}}function Yh(){var e=document.querySelector("[data-component-0='article-content']")||document.querySelector(".article-body")||document.querySelector("#article-content")||document.querySelector(".content-article")||document.querySelector("[itemprop='articleBody']");return e?gr(document.querySelector("[data-component-1='body'].ids-paragraph--lead")||document.querySelector(".lead-text")||document.querySelector("article header [data-component-1='body']"),e):null}function Qh(){return{pathAllowed:st,prepareMetadata:function(e){e&&(e.language="")},linkSelector:"main a[href], .section a[href], body a[href]",excludeClosest:"header, nav, footer, aside, form, [role='navigation'], [role='banner'], [role='contentinfo']",cardSelector:"article, section, li, .news, .news-box__item, [class*='card'], [class*='story']",acceptLink:function(e,t){return/^https?:\/\/(?:www\.)?blic\.rs\//i.test(t)&&/\/[^/]+\/[^/]+\/[a-z0-9]{6,}(?:$|[?#])/i.test(t)},titleBuilder:function(e){return t((e.querySelector("h1, h2, h3, h4")||{}).textContent||e.textContent||e.getAttribute("aria-label")||"")},transformTitle:function(e){return e.replace(/^\s*(foto|video|uživo)\s*/i,"")},maxTitleLength:240,rejectTitle:/^(najnovije|vesti|sport|showbiz|zabava|biznis|slobodno vreme|login|prijavi se|komentari|saznaj više|pročitajte još)$/i,defaultTitle:"Blic",siteName:"Blic",statusPage:!0}}function eg(){for(var e=[".article-body","div.detail-body",".news-content",".content-detail","[itemprop='articleBody']","article[itemprop='articleBody']"],r=0;r<e.length;r++){var n=document.querySelector(e[r]);if(tg(n))return n}var o=Array.prototype.slice.call(document.querySelectorAll("main article, article")),i=null,a=0;return o.forEach(function(e){if(tg(e)){var r=t(e.innerText||e.textContent||""),n=80*e.querySelectorAll("p").length,o=r.length+n;e.closest("main")&&(o+=250),o>a&&(i=e,a=o)}}),i}function tg(e){return!!e&&(!e.closest("header, nav, footer, aside")&&(!(t(e.innerText||e.textContent||"").length<220)&&!(e.querySelectorAll("p").length<1)))}function rg(){return{pathAllowed:function(){var e=(location.pathname||"").toLowerCase();return""===e||"/"===e||"/aktuell"===e||"/aktuell/"===e},linkSelector:"main a[href]",cardSelector:"article, section, li, [data-selector*='teaser'], [data-external-selector*='teaser']",acceptLink:function(e){return/\.html(?:$|[?#])/i.test(e)},transformTitle:function(e){return e.replace(/^[A-ZÄÖÜ0-9.,:;!?\s-]{4,}\s*:\s*/u,"")},maxTitleLength:180,rejectTitle:/^(liveblog|ticker|mehr zum thema|alle themen|bildbeschreibung ausklappen|artikelrechte erwerben)$/i,siteName:"Frankfurter Allgemeine Zeitung"}}function ng(){var e=!1;return document.querySelectorAll(".cap-message, .article--content-fadeout, [class*='paid' i], [class*='subscription' i]").forEach(function(r){var n=t(r&&r.textContent);/wybierz prenumeratę|sprawdź ofertę|prenumerata|paid:\s*'false'|pozostało.*artykuł/i.test(n)&&(e=!0)}),e}function og(){if(/^\/mindekozben\/poszt\//i.test(location.pathname||"")){var e=document.querySelector(".current-post .mindenkozben_post_content.content")||document.querySelector(".current-post .post .content")||document.querySelector(".current-post .post");if(e)return e}return document.querySelector(".article-body")||document.querySelector(".post-body")||document.querySelector("#article")||document.querySelector("article [itemprop='articleBody']")||document.querySelector("article .content")||document.querySelector("main article")}function ig(e){return g([".current-post .mindenkozben_post_content.content h1",".current-post .mindenkozben_post_content.content h2",".current-post .mindenkozben_post_content.content h3.title",".current-post .post h1",".current-post .post h2",".current-post .post h3.title","article h1","h1",".title"])||e.title}function ag(e){var t=(location.pathname||"").match(/\/(\d{4})\/(\d{2})\/(\d{2})\//);return t?t[1]+"-"+t[2]+"-"+t[3]+"T00:00:00+02:00":e.publishedTime}function lg(){return hr({leadSelectors:[".mdl-article-perex .design-article__text",".design-article__perex-content",".design-article__perex"],bodySelectors:[".detail__article",".layout-article-content",".article-text","#article-content","div.text","[itemprop='articleBody']"]})}function sg(){return document.querySelector(".article-body")||document.querySelector(".article-content")||document.querySelector(".c-article__content")||document.querySelector("section.content.readme-audima")||document.querySelector("article .content")||document.querySelector("main .content")}Qo=function(){return Fh()?[]:Dh()},registerHostAwareProfile(!0,Fh),registerHostAwareProfile(!0,function(e){return Ut(/(^|\.)jang\.com\.pk$/)?function(e){return/^\/liveblog\//i.test(location.pathname||"")?wr(e,{selectedEntry:Uh,title:function(e,r,n){return function(e,r){for(var n=0;n<r.length;n++){var o=e.querySelector(r[n]),i=t(o&&o.textContent);if(i)return i}return""}(n,["h2"])||g([".time_first_story h1","h1"])||e.title},bylineSelector:[".by_author h5"],minTextLength:120,rewriteRoot:Wh}):null}(e)||function(e){var t=document.querySelector(".story-content, .news-detail, .article-body, div.nn-article-body, .detail_view_content, .description");return t?ar(e,t,{title:g([".detail-right-top h1",".main-heading h1",".news-title",".title","h1"])||e.title,byline:g([".by_author h5",".author","[rel='author']"])||e.byline,minTextLength:180,rewriteRoot:Wh}):null}(e):null}),registerHostAwareProfile(!0,function(e){if(!Ut(/(^|\.)skynewsarabia\.com$/)||st()||!document.querySelector(".article-content .article-body, .article-body, [itemprop='articleBody']"))return null;var r=hr({scopeSelectors:[".article_detail_page",".sna_content_body"],titleSelectors:[".sna_content_heading","h1.article-title",".slide-title","main h1","h1"],leadSelectors:[".article-sub-heading"],captionSelectors:[".article_image_heading_bg, .article-image-caption, .media-caption"],summarySelectors:[".article-summary"],bodySelectors:[".article-content .article-body",".article-body","[itemprop='articleBody']"],minTextLength:250});return r?ar(e,r,{title:g([".sna_content_heading","h1.article-title",".slide-title","main h1","h1"])||e&&e.title,byline:g([".article-sub-heading","[rel='author']"])||e&&e.byline,publishedTime:Gh(e),minTextLength:250,rewriteRoot:function(e){rr(e,[".dfp-inread-article","[data-ng-dfp-ad]","[data-ng-dfp-ad-container]","sna-share","sna-related-article",".noprint",".rel_article_cont",".rel_article_group",".rel_article_group_title",".rel_article_item",".related_contents_cont",".related_contents",".article-widget","[class*='widget' i]","[class*='share' i]","[class*='social' i]","[class*='ad_' i]","[id*='ad-' i]"].join(", ")),e.querySelectorAll("a[href*='/keyword-search']").forEach(function(e){e.removeAttribute("href")}),e.querySelectorAll("p, div, section, h2, h3, a").forEach(function(e){var r=t(e.textContent||"");/^(أخبار ذات صلة|الأكثر قراءة|شرق أوسط|اشترك في خدمة الإشعارات|لم تفعّل خدمة إشعارات الأخبار العاجلة)$/i.test(r)&&e.remove()})}}):null}),registerHostAwareProfile(!0,function(e){return Ut(/(^|\.)milliyet\.com\.tr$/)&&(/\/live-/i.test(location.pathname||"")||document.querySelector("section.news-detail-content.live-content"))&&document.querySelector("section.news-detail-content.live-content")?wr(e,{entrySelector:"section.news-detail-content.live-content",bodySelector:[".news-detail-title",".news-content.readingTime, .news-content",".timeline-news-box, .insert.insert-controls"],title:g([".news-detail-title","section.news-detail-content.live-content h1","h1"])||e.title,byline:g([".news-detail-author",".news-author","[rel='author']"])||e.byline,beforeBuild:Zh,minTextLength:250,cleanupSelectors:[".news-detail-sticky",".breadcrumb",".breadcrumbs","[class*='share' i]","[class*='social' i]","[class*='advert' i]","[class*='reklam' i]","[id*='ad-' i]","[class*='related' i]","[class*='recommend' i]",".newsletter","[class*='newsletter' i]"],rewriteRoot:function(e){e.querySelectorAll("p, div, section, span, h2, h3, a").forEach(function(e){var r=t(e.textContent||"");r&&/^(son dakika|sıradaki haber|ilgili haberler|en çok okunanlar|günün en çok okunanları|paylaş|reklam)$/i.test(r)&&e.remove()})}}):null}),hostAwareProfiles.unshift({condition:!0,fn:function(e){return Ut(/(^|\.)yle\.fi$/)&&/^\/a\/\d+(?:-\d+)+\/\d+(?:-\d+)+\/?$/i.test(location.pathname||"")?wr(e,{entrySelector:"article.post-container",entryMatcher:Kh,bodySelector:".post-content",titleSelector:[".post-content h2",".post-content h3","h2","h3"],byline:function(e,r,n){return function(e){var r=e.querySelector(".post-header");return r&&Array.prototype.slice.call(r.querySelectorAll("span[aria-label], span[title]")).map(function(e){return t(e.getAttribute("aria-label")||e.getAttribute("title")||e.textContent||"")}).filter(Boolean)[0]||""}(n)||e.byline},publishedTime:function(e,t,r){return function(e){var t=e.querySelector("time[datetime]");return t?t.getAttribute("datetime"):null}(r)||e.publishedTime},beforeBuild:Vh,minTextLength:180,cleanupSelectors:[".post-header","button","iframe","video","[data-testid='video-player']","[class*='player' i]","[class*='Preview' i]","[class*='Restrictions' i]","[class*='share' i]"],rewriteRoot:function(e){$r(e,"p, div, span, h2, h3",/^videosoitin$/i),e.querySelectorAll("script[type='application/ld+json']").forEach(function(e){e.remove()})}}):null}}),registerHostAwareProfile(!0,function(e){if(!Ut(/(^|\.)aktuality\.sk$/))return null;var r=document.querySelector("#articleContent[itemprop='articleBody'], [itemprop='articleBody'], .article-body, .entry-content");if(!r)return null;var n=document.createElement("article"),o=document.querySelector("article#article")||r.closest("article")||document;return["#article-headline","article h1","h1"].some(function(e){var t=o.querySelector(e)||document.querySelector(e);return!!t&&(n.appendChild(Zt(t,document)),!0)}),["#perex-id",".article-perex","[itemprop='description']"].some(function(e){var r=o.querySelector(e)||document.querySelector(e);return!(!r||t(r.textContent||"").length<40)&&(n.appendChild(Zt(r,document)),!0)}),n.appendChild(Zt(r,document)),ar(e,n,{title:g(["#article-headline","article h1","h1"])||e.title,byline:g([".author-box .author-name",".author-box [rel='author']","[itemprop='author']"])||e.byline,minTextLength:250,rewriteRoot:function(e){rr(e,["#tp-inline-template",".tp-container-inner","one-page-order","#pay-content-app","iframe[src*='piano.io']","#bw_premium_article",".beyondwords-player","[class*='share' i]","[class*='save-article' i]",".article-object-link",".article-object-list","#recommendation-box-piano",".article-related-box",".cx-flex-module","[class*='related' i]","[class*='discussion' i]"].join(", ")),e.querySelectorAll("p, div, span").forEach(function(e){var r=t(e.textContent||"");/^(listen to this article|uložiť článok|zdieľať článok|diskusia\s*\/\s*\d*)$/i.test(r)&&e.remove(),/^prečítajte si tiež:?$/i.test(r)&&e.remove()})}})}),registerHostAwareProfile(!0,function(e){if(!Ut(/(^|\.)sabah\.com\.tr$/)||!Jh())return null;var r=Jh();return r?ar(e,r,{title:g([".contentFrame .pageTitle",".contentFrame h1","h1"])||e.title,minTextLength:250,cloneRoot:!1,rewriteRoot:function(e){rr(e,["[class*='advert' i]","[class*='reklam' i]","[class*='ad-' i]","[id*='ad-' i]","[class*='share' i]","[class*='social' i]","[class*='related' i]","[class*='gallery' i]","[class*='video' i]","a[href*='trkvz.im']","img[src*='googlenews' i]"].join(", ")),e.querySelectorAll("p, div, section, span, h2, h3, a").forEach(function(e){var r=t(e.textContent||""),n=(e.tagName||"").toLowerCase();r&&(/^(son dakika|günün en çok okunanları|sıradaki haber|ilgili haberler|galeri|video|reklam|haber girişi|uygulamalara özel ayrıcalıkları keşfedin)$/i.test(r)&&e.remove(),0===r.indexOf("Sabah.com.tr Uygulam")&&e.remove(),"div"!==n&&"section"!==n&&/google haberler'de tüm gelişmeleri tek kaynakta görmek için sabah'ı takip edin/i.test(r)&&e.remove())})}}):null}),registerNewsHomepageListProfile(/(^|\.)sozcu\.com\.tr$/,Xh),registerHostAwareProfile(!0,function(e){return Ut(/(^|\.)sozcu\.com\.tr$/)?function(e){return Zl(e,Xh())}(e):null}),registerHostAwareProfile(!0,function(e){if(!Ut(/(^|\.)interia\.pl$/)||!Yh())return null;var r=Yh();return r?ar(e,r,{title:g(["article h1","h1"])||e.title,minTextLength:250,cloneRoot:!1,rewriteRoot:function(e){rr(e,["[data-component-0='wrapper-group']","[data-component-0='article-list']","[data-component-0='ad-rectangle']","[data-component-0='ads']","[data-component-0='share']","[data-icon]",".audio-news-player",".ids-audio-news-player",".emotion-bar",".like-button",".reaction",".share-bar",".social-share","[class*='emotion' i]","[class*='share' i]","[class*='social' i]","[class*='related' i]","[class*='article-list' i]","[class*='ads' i]","[id*='ad-' i]","[id*='google_ads' i]","script","style"].join(", ")),e.querySelectorAll("p, div, section, span, li, button, h2").forEach(function(e){var r=t(e.textContent||"");r&&(/^(odsłuchaj artykuł|audio generowane przez ai|lubię to|zły|super|hahaha|szok|smutny|udostępnij|zobacz również:?|reklama)$/i.test(r)&&e.remove(),/^\d{1,2}:\d{2}\s*min$/i.test(r)&&e.remove())})}}):null}),registerHostAwareProfile(!0,function(e){if(!Ut(/(^|\.)clarin\.com$/))return null;var r=document.querySelector("article#storyBody .StoryTextContainer")||document.querySelector("article#storyBody .vsmcontent")||document.querySelector("article#storyBody .body-text")||document.querySelector("article#storyBody div.entry-content")||document.querySelector("article#storyBody .article-body")||document.querySelector("article#storyBody .nota-body")||document.querySelector(".body-text")||document.querySelector("div.entry-content")||document.querySelector(".article-body")||document.querySelector(".nota-body");return r?(xr(r,e,{minBodyTextLength:1200,minParagraphCount:3,paragraphMinLength:70,hardPaywallPattern:/(?:solo para suscriptores|contenido exclusivo para suscriptores|suscribite para seguir leyendo|para continuar leyendo|contin[uú]a leyendo con tu suscripci[oó]n)/i,removalSelectors:["[data-piano-offer]","[data-paywall]","[class*='paywall' i]","[id*='paywall' i]","[class*='subscribe-wall' i]","[class*='premium-wall' i]"],signalRemovalSelectors:[".liveBlogStrip",".contentLiveblog","[class*='liveblog' i]","[class*='live-blog' i]","[data-liveblog]","[data-piano-offer]","[data-paywall]","[class*='paywall' i]","[id*='paywall' i]","[class*='subscribe-wall' i]","[class*='premium-wall' i]"]}),ar(e,r,{title:g(["h1",".title"])||e.title,byline:g(["article#storyBody .list-authors",".list-authors","[rel='author']"])||e.byline,minTextLength:250,rewriteRoot:function(e){rr(e,["#containerUalter",".trinity-skip-it",".trinity-tts-placeholder-icon-player","[class*='trinity']",".place-social-mobile",".buttonsBar",".buttonBarList",".related-container","[class*='related']",".Newsletter","[class*='Newsletter']",".comments","[class*='comments']","[class*='bannerCollapse']","[class*='tags']","[class*='Tag']","section[class*='sc-4df4edb5']"].join(", ")),e.querySelectorAll("p, div, span, section").forEach(function(e){var r=t(e.textContent||"");r&&/^(ver resumen|tiempo de lectura|inteligencia artificial|experimental:|gracias!|otros análisis|mirá también|te puede interesar|selección clarín|seguí leyendo|últimas noticias|newsletter clarín|recibí en tu mail|comentarios|suscribite para comentar|tags relacionados)\b/i.test(r)&&e.remove()})}})):null}),registerNewsHomepageListProfile(/(^|\.)blic\.rs$/,Qh),registerHostAwareProfile(!0,function(e){return Ut(/(^|\.)blic\.rs$/)?(e&&(e.language=""),function(e){return Zl(e,Qh())}(e)||function(e){if(!/\/(?:vesti|sport|zabava|showbiz|biznis|slobodno-vreme|kultura|zdravlje)\//i.test(location.pathname||""))return null;var r=document.querySelector(".article-body")||document.querySelector("div.article-text")||document.querySelector(".single-article-body")||document.querySelector(".article__body")||document.querySelector(".article__text")||document.querySelector(".article__content");return r?ar(e,r,{title:g([".article-title",".article__title","article h1","h1"])||e.title,byline:g([".article__author-name",".article-author",".author","[rel='author']"])||e.byline,minTextLength:250,rewriteRoot:function(e){rr(e,[".banner",".wrapperAd",".audio-player",".article__share",".share",".comments",".comments-header",".news-box",".news-aside",".story-sp2026",".tabs",".related",".newsletter",".carousel-button",".jwplayer","[id^='InText_']","[data-placeholder-caption]"].join(", ")),e.querySelectorAll("p, div, span").forEach(function(e){var r=t(e.textContent||"");/^(slušaj vest|oglas|galerija|pročitajte još|budi prvi koji će komentarisati)$/i.test(r)&&r.length<120&&e.remove()})}}):null}(e)):null}),registerHostAwareProfile(!0,function(e){if(!Ut(/(^|\.)tempo\.co$/)||/^\/?$/i.test(location.pathname||"")||!eg())return null;var r=eg();return r?ar(e,r,{title:g([".title-article","main h1","article h1","h1"])||e.title,minTextLength:220,rewriteRoot:function(e){rr(e,[".related-news",".related-article",".bacadetail","[class*='related' i]","[class*='share' i]","[class*='audio' i]","[class*='ringkasan' i]","[class*='summary' i]","[class*='newsletter' i]","[class*='rekomendasi' i]","[class*='recommend' i]","[class*='ads' i]","[id*='ads' i]","[data-testid*='share' i]"].join(", ")),e.querySelectorAll("p, div, span, button, a, li").forEach(function(e){var r=t(e.textContent||"");!r||r.length>220||(/^(dengarkan artikel|bagikan|gabung tempo circle|tampilkan ringkasan artikel|sembunyikan ringkasan artikel|mengapa tempo bisa dipercaya|scroll ke bawah untuk membaca berita)$/i.test(r)&&e.remove(),/^(akses edisi mingguan|akses penuh seluruh artikel tempo\+|baca dengan lebih sedikit gangguan iklan|anda mendukung independensi jurnalisme tempo)$/i.test(r)&&e.remove())})}}):null}),registerHostAwareProfile(!0,function(e,r){return function(e){return bc(e,{hostPattern:/(^|\.)(?:elmundo|expansion|sport)\.es$/,bodySelectors:[".ue-c-article__body[data-section='articleBody']",".ue-c-article__body",".article-body","#article-body","div[itemprop='articleBody']","[itemprop='articleBody']"],sportParagraphFallback:!0,extraRemovalSelectors:[".ft-ad",".ft-mol-related",".ft-mol-multimedia",".jwplayer","[class*='jw-' i]","[class*='taboola' i]","[class*='trc_' i]"]})}(e)||function(e){if(!Ut(/(^|\.)(?:elmundo|expansion|sport)\.es$/))return null;if(!st())return null;var r={},n=[];return document.querySelectorAll(".ue-c-cover-content, article, section").forEach(function(e){if(!e.closest("header, nav, footer, aside, [class*='comment' i]")){var o=e.querySelector(".ue-c-cover-content__link[href], h1 a[href], h2 a[href], h3 a[href]");if(o&&!o.closest("[class*='comment' i], .ue-c-cover-content__comments")){var i=o.getAttribute("href")||"";if(/\/(?:\d{4}\/\d{2}\/\d{2}\/|[a-f0-9]{24}\.html|\d{2}_\d{4}_\d{8}_)/i.test(i)){var l=t((o.querySelector(".ue-c-cover-content__headline, h1, h2, h3")||{}).textContent||o.textContent||""),s=a(i),c=s||"unlinked:"+l.toLowerCase()+"|href:"+i;!l||l.length<18||l.length>220||r[c]||/^(comentarios?|ver comentarios?|opinar|participa)$/i.test(l)||(r[c]=!0,n.push({text:l,url:s,detail:Gl(e,l)}))}}}}),n.length<4||Wo(n)<4?null:Ne({title:e.title||document.title,excerpt:e.excerpt,siteName:e.siteName||location.hostname,items:n})}(e)}),registerHostAwareProfile(!0,function(e){return bc(e,{hostPattern:/(^|\.)marca\.com$/,bodySelectors:[".ue-c-article__body","[data-section='articleBody']",".article-body","div.vcm-content",".content-article",".article-content","div[itemprop='articleBody']","[itemprop='articleBody']"],leadSelectors:[".ue-c-article__standfirst",".article-intro",".summary",".article__summary"],publicMinTextLength:900,extraRemovalSelectors:[".ue-c-players-ranking-widget","[class*='ranking-widget' i]","[class*='scoreboard' i]"]})}),registerNewsHomepageListProfile(/(^|\.)faz\.net$/,rg),registerHostAwareProfile(!0,function(e){return Ut(/(^|\.)faz\.net$/)?function(e){return Zl(e,rg())}(e)||function(e){if(!/\.html(?:$|[?#])/i.test(location.pathname||""))return null;var r=document.querySelector(".walled-content")||document.querySelector(".at-article-body")||document.querySelector("[data-external-selector='body-elements']")||document.querySelector(".article-body");return r&&r.querySelector("p, [data-selector='body-paragraph']")?(function(e){var r=t(e&&e.textContent);if(r.length<2500)return;if(/(nur für abonnenten|nur für abonnent|abo abschließen|weiterlesen mit|lesen sie diesen artikel mit)/i.test(r))return;rr(document,"#taboola-below-paywall-thumbnails, #taboola-below-liveblog-thumbnails, [id*='paywall' i][id*='taboola' i], [id*='liveblog' i][id*='taboola' i]"),document.querySelectorAll("script[type='application/ld+json']").forEach(function(e){/isAccessibleForFree/i.test(e.textContent||"")&&e.remove()})}(r),ar(e,r,{title:g(["[data-external-selector='header-title']","article h1","main h1","h1"])||e&&e.title,byline:g(["[data-external-selector*='header-detail'] .meta1","[rel='author']"])||e&&e.byline,minTextLength:500,prependTitle:!1,rewriteRoot:function(e){rr(e,["[data-selector='article-rights']","[data-external-selector='footer-links']","[data-external-selector='taboola-ads']","[id*='taboola']","[class*='taboola']","[class*='trc_']","[class*='tbl-']","[class*='aside-slot']","[class*='newsletter' i]","[class*='recommend' i]","[class*='share' i]"].join(", ")),e.querySelectorAll("section, div").forEach(function(e){var r=t(e.textContent||"");/^(mehr zum thema|f\.a\.z\.-artikel häufiger in ihren suchergebnissen sehen)/i.test(r)&&e.remove()})},postProcessMarkdown:function(e){return e.replace(/^###\s+(.+)$/gm,"**$1**")}})):null}(e):null}),registerHostAwareProfile(!0,function(e){if(!Ut(/(^|\.)wyborcza\.pl$/)&&!Ut(/(^|\.)gazeta\.pl$/))return null;var r=document.querySelector(".mrf-article-body")||document.querySelector(".article_body")||document.querySelector("div.articleBody")||document.querySelector(".art_content")||document.querySelector(".article-inner")||document.querySelector("section.article")||document.querySelector("[itemprop='articleBody']");if(!r||!r.querySelector("p, figure, blockquote"))return null;!function(){if(!ng())return;if(document.querySelector("[data-paywall='agora-wyborcza']"))return;var e=document.createElement("div");e.setAttribute("data-paywall","agora-wyborcza"),e.hidden=!0,e.textContent="Wybierz prenumeratę, by czytać to, co Cię ciekawi",document.body.appendChild(e)}();var n=document.createElement("article"),o=document.querySelector(".article--header, .article_header, header.metadata--article");return o&&n.appendChild(Zt(o,document)),n.appendChild(Zt(r,document)),ar(e,n,{title:g(["h1.metadata--title",".article_title",".title","h1"])||e.title,byline:g([".metadata--author",".article--author","[class*='author' i]","[rel='author']"])||e.byline,minTextLength:220,cloneRoot:!1,extra:function(){return{packagePage:ng()}},rewriteRoot:function(e){rr(e,["#message","#info-adblock","#info-ups","script","style","svg",".msg-container",".article--social-top",".social",".tags",".article-audio",".article--precontent",".article--underlead",".article--comments",".comments",".comment",".newsletter","[class*='newsletter' i]","[class*='recommend' i]","[class*='related' i]","[class*='advert' i]","[id*='advert' i]"].join(", ")),e.querySelectorAll("p, div, span, a, h1, h2").forEach(function(e){var r=t(e.textContent||"");/^(wyłącz adblocka\/ublocka|aby czytać nasze artykuły wyłącz adblocka|ups!|nieznany błąd|posłuchaj|sprawdź ofertę|zaloguj się)$/i.test(r)&&e.remove()})}})}),registerHostAwareProfile(!0,function(e){if(!Ut(/(^|\.)index\.hu$/)||!/^\/mindekozben\/poszt\//i.test(location.pathname||"")&&!/(\/\d{4}\/\d{2}\/\d{2}\/|\.html(?:$|[?#]))/i.test(location.pathname||"")||!og())return null;var r=og();return r?ar(e,r,{title:ig(e),byline:g([".current-post .author",".current-post [class*='author' i]","[class*='szerzo' i]"])||e.byline,minTextLength:180,publishedTime:ag(e),rewriteRoot:function(e){rr(e,[".new-posts",".next-post",".previous-post",".related",".ajanlo",".share",".social",".comments",".comment","[class*='advert' i]","[class*='hirdet' i]","[id*='ad' i]"].join(", ")),rr(e,"h1, h2, h3.title"),e.querySelectorAll("p, div, span, li").forEach(function(e){var r=t(e.textContent||"");/^új poszt érkezett/i.test(r)&&e.remove(),/^(hirdetés|megosztás|kommentek|kapcsolódó)$/i.test(r)&&e.remove()})}}):null}),registerHostAwareProfile(!0,function(e){if(!Ut(/(^|\.)root\.cz$/)||!/^\/clanky\//i.test(location.pathname||"")||!lg())return null;var r=lg();return r?(e&&(e.language=""),ar(e,r,{title:g([".design-title","h1"])||e.title,byline:g([".design-impressum__author",".design-impressum a[rel='author']",".design-impressum__content a"])||e.byline,minTextLength:250,rewriteRoot:function(e){rr(e,["nav","aside",".comments","[class*='comment' i]","[class*='discussion' i]","[class*='share' i]","[class*='social' i]","[class*='rating' i]","[class*='advert' i]","[class*='ad-detail' i]","[class*='root-ad' i]","[class*='selfpromo' i]","[id*='google_ads' i]","[id*='div-gpt' i]","script","style"].join(", ")),e.querySelectorAll("p, div, section, ul, li, a, span, h2, h3").forEach(function(e){var r=t(e.textContent||"");r&&(/^(počet nových komentářů\s*\d+|přidejte názor|líbí se vám článek\?|podpořte redakci|sdílet|sdílejte na facebooku|sdílejte na síti x)$/i.test(r)&&e.remove(),/^přidat mezi oblíbené zdroje na googlu$/i.test(r)&&e.remove(),/^reklama\b/i.test(r)&&r.length<400&&e.remove())})}})):null}),registerHostAwareProfile(!0,function(e){if(!Ut(/(^|\.)abril\.com\.br$/)||/^\/?$/i.test(location.pathname||"")||!sg())return null;var r=sg();return r?(xr(r,e,{minBodyTextLength:900,minParagraphCount:3,paragraphMinLength:70,hardPaywallPattern:/(?:conte[uú]do exclusivo|exclusivo para assinantes|assine para continuar|continue lendo com|conte[uú]do para assinantes)/i,pageHardPaywallPattern:/(?:conte[uú]do exclusivo|exclusivo para assinantes|assine para continuar|continue lendo com|conte[uú]do para assinantes)/i,removalSelectors:ir.concat(["[data-piano-offer]"]),structuredDataMode:"remove"}),ar(e,r,{title:g([".post-header h1","main h1","article h1","h1"])||e.title,byline:g([".author-name",".post-header .author",".post-header [rel='author']"])||e.byline,minTextLength:250,rewriteRoot:function(e){rr(e,[".accessibility-buttons",".share-box",".salvar-conteudo-materia",".ads",".abrAD",".post-ads",".after-text",".noreadme-audima",".abril-recirculacao-copa","[class*='share' i]","[class*='newsletter' i]","[class*='recirculacao' i]","[data-format='billboard']","[data-ad-unit]"].join(", ")),function(e){e.querySelectorAll("h2, h3").forEach(function(e){var r=t(e.textContent||"");if(/^(leia mais|em alta)$/i.test(r)){var n=e.nextElementSibling;n&&/^(ul|ol)$/i.test(n.tagName||"")&&n.remove(),e.remove()}}),e.querySelectorAll("p, div, span, li").forEach(function(e){var r=t(e.textContent||"");/^(compartilhe essa matéria:?|link copiado!?|continua após a publicidade|publicidade|tudo sobre a copa, em um só lugar|ver cobertura completa)$/i.test(r)&&e.remove()})}(e)}})):null});var cg=jr({hostPattern:/(^|\.)163\.com$/,pathPattern:/\/(?:news|dy|ent|sports|money|tech|auto|war|gov|local)\/article\/[A-Z0-9]+/i,bodySelectors:[".post_body",".post_content .post_body","#endText",".article-body",".post_text",".post_content"],titleSelectors:[".post_title","h1.post_main_icon",".post_main h1","h1"],bylineSelectors:[".post_info",".post_time_source",".post_source",".post_author"],removalSelectors:[".post_top_tie_count",".post_top_share",".post_share",".post_recommends",".post_recommend",".post_recommend_ad",".post_statement",".post_btmshare",".post_comment",".tie-area","#tie","#tieArea","[class*='recommend' i]","[class*='share' i]","[class*='comment' i]","[id*='comment' i]"],removalTextPatterns:[/^(相关推荐|热点推荐|分享至|跟贴|举报|本文来源[::]|责任编辑[::]|打开网易新闻|下载网易新闻客户端)/i],minBodyTextLength:80,extra:{docsLike:!0}});function ug(){return document.querySelector("#entryBody")||document.querySelector(".article-body")||document.querySelector(".skinArticleBodyEx")||document.querySelector(".skinArticleBody")||document.querySelector(".entry-text")||document.querySelector("article.entry")||document.querySelector("article.skin-entry .skin-entryBody")}function dg(){for(var e=[".paywall-short-content","#story-body",".article-content",".article__body","#article-body",".article-text","article.story-content"],r=0;r<e.length;r+=1)for(var n=Array.prototype.slice.call(document.querySelectorAll(e[r])),o=0;o<n.length;o+=1){var i=n[o];if(!i.closest("footer, nav, aside, .main-footer-body, .tab-content")&&t(i.textContent||"").length>=250)return i}return null}function mg(){return document.querySelector("article.article-content")||document.querySelector(".article-content")||document.querySelector("article.article")||document.querySelector(".content-body")||document.querySelector("#articleContent")}function pg(e,t){var r=g([".weibo-top .m-text-cut",".weibo-top h3","header .m-text-cut"]);return r&&!/^(关注|微博正文)$/i.test(r)?r+" - 微博正文":t&&t.title&&"微博"!==t.title?t.title:"微博正文"}function fg(e,t){return et(e,[".story__title","h1.title","h1"])||t&&t.title}function hg(e){return et(e,[".story__user-link"])}function gg(e,r){var n=(r.closest("section.body-article, article")||document).querySelector(".rs-article-title, .title-art-hp, .article-title, h1");return t(n&&n.textContent||e&&e.title)}function yg(){return document.querySelector(".rs-article-body")||document.querySelector("#article-body")||document.querySelector(".article-content")||document.querySelector("div[itemprop='articleBody']")||document.querySelector("[itemprop='articleBody']")||document.querySelector("#content-to-read")||document.querySelector("section.body-article")||document.querySelector("article .body-article")||document.querySelector("article")}function bg(){return document.querySelector(".art-full")||document.querySelector("#art-content")||document.querySelector(".bbtext")||document.querySelector(".article-content")||document.querySelector("#art-text")||document.querySelector("div.text")}function vg(){return document.querySelector(".c-news__body")||document.querySelector(".article-content")||document.querySelector("[itemprop='articleBody']")||document.querySelector("div[data-tda][data-news-content-text]")}function wg(e){return e&&(e.querySelector("div.se-main-container")||e.querySelector("#printpost")||e.querySelector("#postViewArea")||e.querySelector(".se_component_wrap")||e.querySelector(".post-view"))||null}function Ag(e,r){for(var n=0;n<r.length;n++){var o=e.querySelector(r[n]),i=t(o&&o.textContent);if(i)return i}return""}function Sg(e){var t=e&&!1!==e.reader_mode?Ji():null;return t&&(t=Ki(t,Di())),t||(t=Di()),t}function xg(e,r,n,o,i){-1!==r.indexOf(n)&&(o&&t(i||e.markdown||e.textContent||"").length>=o||(e.contentType="interstitial"))}function kg(e,r,n,o,i){var u,d,m=function(e){if(!e)return e;var r=t(e);return r?/^https?:\/\//i.test(r)?null:(r=t(r=r.split(/[\n\t]/)[0]),/^(devam(ın)?ı okuyun|read more|leer más|weiterlesen|lire la suite|leggi di più|czytaj dalej|tümünü gör|اقرأ المزيد|ادامه مطلب|המשך לקרוא|مزید پڑھیں)$/i.test(r)||!(r=t(r=r.replace(/\s*@[\w.-]+.*$/i,"").replace(/\s*\d+\s*(takipçi|followers?|متابع|دنبالکننده|עוקבים|فالوور).*$/i,"")))||r.length<2?null:r):null}((e=Hi(e)).byline||r.byline||v()),p=(u=e.html,(d=document.createElement("div")).innerHTML=u,nr(d),d.innerHTML);e.title&&(e.title=t(e.title.replace(/\s*Stay organized with collections\s*Save and categorize content based on your preferences\.?\s*/gi,"")));var f=mn(e.markdown||Jn(p||e.html)),h=t(e.textContent||""),g=t(f);!g&&h.length>40&&(f=mn(Jn(p)||h)),g=t(f),"list"===e.contentType&&function(e){if(t(e=String(e||"")).length<700||!/^\|\s*[-: ]+\|/m.test(e))return!1;if((e.match(/^\s*- \[/gm)||[]).length>=3)return!1;var r=e.split(/\n{2,}/).filter(function(e){var r=e.trim();return!(!r||/^\|/.test(r)||/^#/.test(r))&&t(r).length>=80&&/[.!?)]$/.test(t(r))}).length,n=(e.match(/^\|/gm)||[]).length;return(e.match(/^#{1,3}\s+/gm)||[]).length>=1&&r>=2&&n>=4&&n<=40}(f)&&(e.contentType="article"),"article"===e.contentType&&!e.secFiling&&!e.readerMode&&e.html&&e.html.length>5e4&&h.length>=1200&&g.length<.2*h.length&&(f=mn(h));var y=t((e.title||r.title||"").replace(/\s*Stay organized with collections\s*Save and categorize content based on your preferences\.?\s*/gi,"")),b=t(e.siteName||r.siteName||""),w=y;if(("article"===e.contentType||"medical"===e.contentType)&&t(f)&&b&&w.toLowerCase()===b.toLowerCase()&&f.split("\n").slice(0,12).some(function(e){var r=t(e).match(/^#+\s+(.*)/),n=t(r&&r[1]).replace(/[`*_]/g,"");return!!(n&&n.length>=8&&n.toLowerCase()!==b.toLowerCase())&&(w=n,!0)}),("article"===e.contentType||"medical"===e.contentType)&&w&&t(f)){for(var A=f.split("\n"),S=-1,x=w.toLowerCase(),k=y.toLowerCase(),C=b.toLowerCase(),q=0;q<Math.min(A.length,12);q+=1){var E=t(A[q]).replace(/^#+\s*/,"").replace(/[`*_]/g,"");if(E&&t(E).toLowerCase()===x){S=q;break}}if(S<0)for(var T=0;T<Math.min(A.length,12);T+=1){var _=t(A[T]).match(/^(#+)\s+(.*)/);if(_&&"#"===_[1]){var L=t(_[2]).replace(/[`*_]/g,"");if(0===L.toLowerCase().indexOf(x)&&L.length>w.length+5){var j=L.substring(w.length).trim();A[T]="# "+w,j&&A.splice(T+1,0,"",j),f=A.join("\n"),S=T;break}}}if(S>0){var P=A.slice(0,S),$=(P.filter(function(e){return t(e)}).some(function(e){var r=t(e).replace(/^#+\s*/,"").replace(/[`*_]/g,"");return!!r&&(!/^!\[[^\]]*\]\([^)]*\)$/.test(t(e))&&(r.toLowerCase()!==k&&r.toLowerCase()!==C))})?P:[]).concat(A.slice(S+1));f="# "+w+"\n\n"+$.join("\n").trim()}else 0===S&&/^#{2,}\s+/.test(A[0])?(A[0]="# "+w,f=A.join("\n")):Vr(f,w)||(f="# "+w+"\n\n"+f)}if(f=mn(f),/^(article|podcast)$/i.test(e.contentType||"")&&!/\btranscript\b/i.test(f)){var N=os(document.body||document);N&&(f=mn([f,N].filter(Boolean).join("\n\n")))}"article"===e.contentType&&(f=yf(f));var R=function(e){var t=e||"";if(t.length<400)return t;var r=t.slice(0,5e3),n=/(?:presid[eê]ncia|casa civil|subchefia|official gazette|government|ministry|department|secretariat|texto compilado|compiled text|\|\s*---\s*\|)/i.test(r),o=/(?:Home\s*\]\s*\[\s*Databases|Multidatabase Search|World Law|DONATE|depends on users like you|You are here:|New search|Buy [A-Z]+ report|Cite as:)/i.test(r)&&/\b(?:judg(?:e)?ment|opinion(?:s)? of the lords|court|appellant|respondent|claimant|defendant|neutral citation|cite as)\b/i.test(r);if(!n&&!o)return t;if(o){var i=t.match(/^#\s+[^\n]+\n+/),a=r.search(/\n(?:#{1,3}\s+[^\n]*(?:UKHL|UKSC|EWCA|EWHC|UKPC|UKUT|UKFTT|U\.S\.|\bAC\b|\bWLR\b|All\s+ER)\s+\d+[^\n]*|\*\*(?:HOUSE OF LORDS|SUPREME COURT|COURT OF APPEAL|HIGH COURT|OPINIONS? OF THE LORDS)[^\n]*\*\*)/i);if(i&&a>i[0].length&&a<4500)return(i[0].trim()+"\n\n"+t.slice(a).trim()).trim()}var l=r.match(/(?:\*\*)?\s*(?:PRE[ÂA]MBULO|PREAMBLE)\s*(?:\*\*)?/i);if(l&&l.index<3e3)return t.slice(l.index).trim();var s=Mi({text:r}).bodyStartMatch;return s&&s.index<3e3?t.slice(s.index).trim():t}(f),M=R!==f;if(f=Un(R),"article"===e.contentType&&!i&&function(e,r){if(!e||"article"!==e.contentType||Ao(e))return!1;var n=(location.pathname||"").toLowerCase(),o=(location.search||"").toLowerCase();if(!/\/(?:search|results?)(?:\.html?)?$/i.test(n)&&!/(?:^|[?&])(?:q|query|search|searchtext|keyword|k|text)=/.test(o))return!1;var i=document.createElement("div");i.innerHTML=e&&e.html||document.body.innerHTML;var l=t([i.textContent||"",r||"",document.title||""].join(" ")).replace(/[*_`]+/g,""),s=/\bresults?\s*\d+\s*[-–]\s*\d+\s*(?:of|sur|von|de)\s*\d+\b/i.test(l)||/\b\d+\s+results?\b/i.test(l),c=Array.prototype.filter.call(i.querySelectorAll("a[href]"),function(e){var r=e.getAttribute("href")||"",n=t(e.textContent||e.getAttribute("aria-label")||"");return!(n.length<yo(n)||n.length>280||xo(n,r))&&!!a(r)&&/\/(?:legal-content|eli|LexUriServ|resource|document|doc|case-law|summary)\b|[?&](?:uri|celex|qid|docid)=/i.test(r)}).length,u=i.querySelectorAll("[class*='result' i], [id*='result' i], article, li, tr").length,d=(String(r||"").match(/^\s*#{1,4}\s+\[[^\]]{8,280}\]\(/gm)||[]).length;return s&&(c>=3||d>=3)&&(u>=3||d>=3)}(e,f)&&(e=ha(e,{strongList:!0})),"article"!==e.contentType||i||e.hostAware||e.docsLike||e.legalProvision||!No(f,e)||(e=ha(e,{strongList:!0})),M&&t(R).length>=5e3&&(e.contentType="article"),ya(null,f)&&"list"===e.contentType&&(e.contentType="article"),"list"===e.contentType&&function(e){if(!e||2!==e.length)return!1;var t=e[0]||"",r=e[1]||"";return!/^(search|category|categories|tag|tags|topics?|collections?|archive|archives|latest|headlines|news|forums?|boards?|community|discussions?|threads)$/.test(t)&&r.length>=6&&/[a-z]/i.test(r)&&/\d/.test(r)&&/^[a-z0-9_-]+$/.test(r)}((location.pathname||"").toLowerCase().split("/").filter(Boolean))){var B=f.split("\n").map(function(e){return t(e).replace(/^#+\s*/,"")}).filter(Boolean)[0]||"";B.length>=100&&!/^[-*]\s+\[/.test(B)&&(e.contentType="article")}"article"===e.contentType&&(f=function(e,r){if(!e||"article"!==e.contentType||!document.querySelector("meta[name='citation_doi'], meta[name='citation_journal_title'], meta[name='dc.identifier' i][content*='doi' i]"))return r;var n=new Set,o=[];if(document.querySelectorAll("a[href]").forEach(function(e){if(!Vt(e)&&!e.closest("nav, header, footer, menu, [role='navigation'], [role='menu'], [role='toolbar'], [role='contentinfo']")&&e.closest("[class*='citation' i], [class*='cite' i], [class*='download' i], [id*='citation' i], [id*='cite' i], [id*='download' i]")){var r=a(e.getAttribute("href")),i=t(e.textContent||e.getAttribute("aria-label")||"");r&&i&&/\.(?:bib|ris|enw|nbib)$/i.test(new URL(r).pathname)&&!n.has(r)&&(n.add(r),o.push({label:i,url:r}))}}),o.length<2)return r;var i=o.filter(function(e){return-1===r.indexOf(e.url)});if(!i.length)return r;var l=i.map(function(e){return"- "+Se(e.label,e.url)}).join("\n");return[r,"## Citation downloads\n\n"+l].filter(Boolean).join("\n\n")}(e,f));var O=Ci(r,e,f,n,o);(Array.isArray(e.warningReasons)?e.warningReasons:[]).forEach(function(e){(e=t(e))&&-1===O.indexOf(e)&&O.push(e)}),e.spaDataGuard&&-1===O.indexOf("spa_data_traversal_guard")&&O.push("spa_data_traversal_guard");var z=t(f);po(w||r.title,z,{maxTextLength:1800,checkStructured:!0})&&-1===O.indexOf("not_found_interstitial")&&O.push("not_found_interstitial");var I=t([w,r.title,r.siteName,location.hostname,location.pathname,f].join(" "));po(w||r.title,I,{maxTextLength:2e3})&&/\b(court|courts|case law|caselaw|legal|law|opinion|citation)\b/i.test(I)&&-1===O.indexOf("not_found_interstitial")&&O.push("not_found_interstitial"),xg(e,O,"not_found_interstitial"),xg(e,O,"consent_interstitial",500,f),xg(e,O,"auth_or_login_interstitial",1200,f),-1!==O.indexOf("meta_login_wall")&&-1!==O.indexOf("consent_interstitial")&&"social"!==e.contentType&&(e.contentType="interstitial",Ws(e)),t(f).length<1200&&/\b(?:service|site|product|platform|application|app)\b/i.test(I)&&/\b(?:no longer available|has been retired|have been retired|is retired|was retired|shutdown|shut down|sunset|discontinued)\b/i.test(I)&&-1===O.indexOf("access_error_interstitial")&&O.push("access_error_interstitial"),t(f).length<10&&-1===O.indexOf("empty_extraction")&&O.push("empty_extraction"),t(f).length<140&&/copyright\b.*\ball rights reserved\b/i.test(t(f))&&-1===O.indexOf("empty_extraction")&&O.push("empty_extraction"),t(f).length<500&&/(?:^|:\s*)error$/i.test(w||r.title||"")&&-1===O.indexOf("access_error_interstitial")&&O.push("access_error_interstitial"),xg(e,O,"access_error_interstitial",1200,f),"list"===e.contentType&&e.sectionMarkdownWithDescription&&(f=Un(mn(e.sectionMarkdownWithDescription)),e.textContent=f);var H=e.listExtraction;if("list"===e.contentType&&H&&!H.sectionCount&&e.markdown===H.markdown){var F=function(e){var t=La(e.root,e.items,{includeInlineProse:!0});if(!e.items.some(function(e){return W(e.card)})&&!t.some(function(e){return"DIV"===e.node.tagName}))return"";var r=Array.prototype.slice.call(e.root.querySelectorAll("a[href]")),n=e.items.map(function(t){if(t.sourceNode)return t;var n=t.url&<(t.url),o=n&&r.find(function(e){if(t.card&&!t.card.contains(e))return!1;var r=a(e.getAttribute("href"));return r&<(r)===n});return Object.assign({},t,{sourceNode:o||t.card||e.root})});return Da({regions:[{node:e.root,cards:n}]},t)}(H);F&&(f=Un(mn(F)),e.textContent=f)}var D=gl(e,r,f);D&&(f=Un(mn(D)),e.textContent=f);var U=Va(e,f);U&&(f=Un(mn(U)),e.textContent=f);var G=t(n||"").length,Z=t(f||"").length,K=G>0?Math.round(Z/G*100)/100:1,V=Si(r,e,f),J=null;fi()&&(J=-1!==O.indexOf("subscription_interstitial")?"full_block":"detected"),"interstitial"===e.contentType&&Ws(e);var X="social"===e.contentType?e:{},Y={title:w||t(r.title),byline:m,excerpt:e.excerpt||r.excerpt,siteName:e.siteName||r.siteName,publishedTime:"list"===e.contentType?e.publishedTime||null:e.publishedTime||r.publishedTime,canonicalUrl:r.canonicalUrl,language:r.language,name:e.name||null,company:e.company||null,location:e.location||null,description:e.description||null,bedrooms:void 0===e.bedrooms?null:e.bedrooms,bathrooms:void 0===e.bathrooms?null:e.bathrooms,areaSqft:void 0===e.areaSqft?null:e.areaSqft,html:It(e.html),markdown:f,readerMode:e.readerMode,contentType:e.contentType||"article",ingredients:e.ingredients||null,instructions:e.instructions||null,price:e.price||null,rating:e.rating||null,address:e.address||null,legalProvision:!!e.legalProvision,hostAware:!!e.hostAware,portalRootEvidence:e.portalRootEvidence||null,sportsDetailEvidence:e.sportsDetailEvidence||null,statusPage:!!e.statusPage,socialKind:X.socialKind||null,platform:X.platform||null,handle:X.handle||null,replyCount:void 0===X.replyCount?null:X.replyCount,community:X.community||null,score:void 0===X.score?null:X.score,suspect:O.length>0,warnings:O,contentCompletenessRatio:K,contentFormat:V,paywallState:J,textContent:s(e.textContent),url:l(location.href)};return Object.keys(Y).forEach(function(e){"markdown"!==e&&"html"!==e&&(Y[e]=c(Y[e]))}),Y}registerHostAwareProfile(!0,cg),registerHostAwareProfile(!0,function(e){if(!Ut(/(^|\.)ameblo\.jp$/)||!/\/entry-\d+\.html(?:$|[?#])/i.test(location.pathname||"")||!ug())return null;var r=ug();return r?ar(e,r,{title:g([".skinArticleTitle",".skin-entryTitle","article.skin-entry h1","h1"])||e.title,byline:g([".skin-entryAuthor",".skin-entryThemes","[rel='author']"])||e.byline,minTextLength:250,rewriteRoot:function(e){rr(e,["[data-toc]",".js-ad",".ad",".adsbygoogle",".skin-ad",".skin-entryFooter",".entry-share",".js-entryFooter",".js-commentArea",".commentArea",".blogCard",".ogpCard"].join(", ")),e.querySelectorAll("img").forEach(function(e){var t=e.getAttribute("src")||"";/\/blog\/ucs\/img\/char\//i.test(t)&&e.remove()}),e.querySelectorAll("a[href^='#']").forEach(function(e){var r=t(e.textContent||"");r&&!/^目次を/.test(r)||e.remove()})}}):null}),registerHostAwareProfile(!0,function(e){if(!Ut(/(^|\.)dnevnik\.bg$/)||st()||!dg())return null;var r=dg();if(!r)return null;var n=ar(e,r,{title:e.title||g(["article.story-content h1","main h1","h1"]),byline:g(["a[href*='/author/']","meta[name='author']"],"content")||e.byline,minTextLength:250,cleanupRoot:!1,rewriteRoot:function(e){rr(e,[".paywall-content","[class*='share' i]","[class*='social' i]","[class*='advert' i]","[id*='advert' i]","[data-ad]",".tab-content",".main-footer-body","footer"].join(", ")),e.querySelectorAll("div[role='paragraph'], div.default").forEach(function(e){var t=document.createElement("p");t.innerHTML=e.innerHTML,e.replaceWith(t)}),e.querySelectorAll("p, div, span, a, button").forEach(function(e){var r=t(e.textContent||"");/^(сподели|линкът е копиран|копирай линк|изпрати по имейл|facebook|linkedin|viber|абонирайте се|ако сте абонат, влезте в профила си)$/i.test(r)&&e.remove(),/^продължете да четете с пълен достъп/i.test(r)&&e.remove()})},validateMarkdown:function(e){return!/Дневник и Капитал са сертифицирани по професионалния стандарт|Общи условия за ползване|Политика за бисквитките/i.test(e)},postProcessMarkdown:function(e){return e.replace(/^\|\s+/gm,"")}});return n&&(e.language=null,xr(r.querySelector(".paywall-short-content")||r,e,{minBodyTextLength:700,minParagraphCount:0,bodyRejectPattern:/(?:\.\.\.|…)$/,removalSelectors:[".paywall-content","[data-paywall]","[data-piano-offer]"],signalRemovalSelectors:[".paywall-content","[data-paywall]","[data-piano-offer]"],stripAttributeSelectors:"[id*='paywall' i], [class*='paywall' i], [class*='article-lock' i]",stripIdPattern:/paywall/i,stripClassPattern:/paywall|article-lock/i,structuredDataMode:"remove",structuredDataRemovalPattern:/isAccessibleForFree|Paywall|Subscription/i})),n}),registerHostAwareProfile(!0,function(e){if(!Ut(/(^|\.)segmentfault\.com$/)||!/^\/a\/\d+/.test(location.pathname||"")||!mg())return null;var t=mg();return t?ar(e,t,{title:g(["main h1",".article-title","h1"])||e.title,byline:g([".article-author",".author","a[href^='/u/']"])||e.byline,minTextLength:120,rewriteRoot:function(e){e.querySelectorAll(".widget-vote, .widget-share, .article-operation, .article-copyright, .comment, .comments, [class*='share' i], [class*='comment' i]").forEach(function(e){e.remove()})}}):null}),registerHostAwareProfile(!0,function(e){if(!Ut(/^m\.weibo\.cn$/))return null;if(!/^\/status\/[^/]+\/?$/i.test(location.pathname||""))return null;var r=function(){for(var e=Array.prototype.slice.call(document.querySelectorAll(".card-wrap .weibo-og .weibo-text, .card-wrap div.weibo-text, div.weibo-text, .weibo-text")),r=0;r<e.length;r++){var n=e[r];if(!n.closest(".card-main, .comments, .comment, [class*='comment']"))if(t(n.textContent||"").length>=20)return n}return null}();if(!r)return null;var n=function(e){var t=document.createElement("article");t.setAttribute("data-fetchutil-profile","weibo-mobile");var r=document.querySelector(".card-wrap .weibo-top")||document.querySelector("header.weibo-top");r&&t.appendChild(Zt(r,document));var n=e.closest(".card-wrap")||e.parentElement,o=document.createElement("section");if(o.appendChild(Zt(e,document)),n){var i=n.querySelector(".weibo-media, .weibo-media-wraps, .card-video, video, .m-auto-list");i&&o.appendChild(Zt(i,document))}return t.appendChild(o),t}(r);if(!n)return null;var o=ar(e,n,{title:pg(n,e),byline:g([".weibo-top .m-text-cut",".weibo-top h3","header .m-text-cut"])||e.byline,minTextLength:40,rewriteRoot:function(e){rr(e,[".m-followBtn",".m-add-box",".weibo-btn",".toolbar",".card-act",".lite-page-tab",".comments",".comment",".card-main","[class*='comment']","svg"].join(", ")),e.querySelectorAll("p, div, span, h4").forEach(function(e){var r=t(e.textContent||"");/^(关注|转发\d*|评论\d*|赞\d*|\d{2}:\d{2})$/i.test(r)&&e.remove()})},validateMarkdown:function(e){return!/\n####\s+[^\n]+\n\n###\s+/.test(e)},extra:{docsLike:!0}});if(!o)return null;var i=document.querySelector(".weibo-top a[href^='/profile/']"),a=i&&i.getAttribute("href").split("/").filter(Boolean)[1];return o.contentType="social",o.socialKind="post",o.platform="Weibo",o.handle=a||null,o}),registerHostAwareProfile(!0,function(e){if(!Ut(/(^|\.)pikabu\.ru$/))return null;if(!/^\/story\//i.test(location.pathname||""))return null;var r=function(){for(var e=Array.prototype.slice.call(document.querySelectorAll(".page-story[data-story-id], .story[data-story-id], [data-story-id]")),t=0;t<e.length;t++){var r=e[t];if(!r.closest(".comments, #comments, [id^='comment_']")&&(r.querySelector(".story__title")&&r.querySelector(".story__content, #content-story-text, .story-body, div.story__text")))return r}return null}();if(!r)return null;var n=function(e,r){var n=e.querySelector(".story__content")||e.querySelector("#content-story-text")||e.querySelector(".story-body")||e.querySelector("div.story__text");if(!n)return null;var o=document.createElement("div");o.setAttribute("data-fetchutil-profile","pikabu");var a=fg(e,r);if(a){var l=document.createElement("h1");l.textContent=a,o.appendChild(l)}var s=t([hg(e),et(e,[".story__datetime-link",".story__datetime"])].filter(Boolean).join(" - "));if(s){var c=document.createElement("p");c.textContent=s,o.appendChild(c)}(function(e,r,n){var o=r.querySelector(".story__content");if(!o)return;var a=o.querySelector("[poster]"),l=a&&a.getAttribute("poster");if(l){var s=document.createElement("img");s.setAttribute("src",l),n&&s.setAttribute("alt",n),e.appendChild(s)}var c=o.querySelector("a[href*='/video/story/']");if(c&&c.getAttribute("href")){var u=document.createElement("p"),d=document.createElement("a");d.setAttribute("href",i(c.getAttribute("href"))),d.textContent=t(c.textContent||"Перейти к видео")||"Перейти к видео",u.appendChild(d),e.appendChild(u)}})(o,e,a),o.appendChild(Zt(n,document));var u=e.querySelector(".story__tags");u&&o.appendChild(Zt(u,document));return o}(r,e);if(!n)return null;var o=ar(e,n,{title:fg(r,e),byline:hg(r)||e.byline,minTextLength:60,rewriteRoot:function(e){rr(e,[".comments","#comments","[id^='comment_']",".story__footer",".story__tools",".story__left",".story__save",".story__share",".story__comments-link",".story-title-icons","[data-role='player-controls']","[class*='player-controls']","[class*='timeline']","[class*='player-btn']","[class*='recommend']","[class*='advert']","[data-adfox]","svg"].join(", ")),e.querySelectorAll("p, div, span, a").forEach(function(e){var r=t(e.textContent||"");/^(00:\d{2}\s*\/\s*\d{2}:\d{2}|раскрыть \d+ комментар|ещё \d+|поделиться|сохранить)$/i.test(r)&&e.remove()});var r={};e.querySelectorAll("a[href]").forEach(function(e){var t=e.getAttribute("href")||"";r[t]&&e.remove(),r[t]=!0})},validateMarkdown:function(e){return!/\b\d+\s+час(?:а|ов)?\s+назад[\s\S]{0,240}\bраскрыть\s+ветку/i.test(e)},extra:{docsLike:!0}});return o?(o.contentType="social",o.socialKind="post",o.platform="Pikabu",o.handle=hg(r),o):null}),registerHostAwareProfile(!0,function(e){if(!(Ut(/(^|\.)corriere\.it$/)||Ut(/(^|\.)gazzetta\.it$/)||Ut(/(^|\.)lastampa\.it$/))||st()||!yg())return null;var r=yg();return r?ar(e,r,{title:gg(e,r),byline:g([".author-art .writer",".author-art",".byline","[rel='author']","[itemprop='author']"])||e.byline,minTextLength:300,rewriteRoot:function(e){rr(e,[".widget-audio-article",".box-audio",".article-audio",".sharebar",".share-bar",".social-share",".article-share",".adv",".adv__content",".advertising",".banner",".newsletter",".paywall",".piano",".trc_rbox",".taboola",".comment",".comments",".discussion",".scoreboard","[class*='scoreboard' i]","[class*='share' i]","[id*='share' i]","[data-mrf-recirculation]","[data-testid*='share' i]"].join(", ")),e.querySelectorAll("p, div, span, button").forEach(function(e){var r=t(e.textContent||"");!r||r.length>220||(/^(ascolta l'articolo|\d+\s*min|new|condividi|leggi anche|continua a leggere|pubblicit[àa]|abbonati|scegli corriere come fonte preferita)/i.test(r)&&e.remove(),/^(i\s*)?questo audio è generato in automatico/i.test(r)&&e.remove(),/^(portogallo|spagna)\d/i.test(r)&&e.remove())})}}):null}),registerHostAwareProfile(!0,function(e){if(!Ut(/(^|\.)lemonde\.fr$/))return null;var r,n,o=document.querySelector("article.article__content")||document.querySelector(".article__content")||document.querySelector(".article-content")||document.querySelector("[itemprop='articleBody']");return o&&o.querySelector("p, figure, blockquote")?((r=document.querySelector("#js-modal-gifted-url, .article__gift-modal"),n=t(r&&r.textContent||""),/cet article vous est offert/i.test(n))&&xr(o,e,{minBodyTextLength:350,minParagraphCount:3,paragraphMinLength:60,removalSelectors:ir.concat(["#js-modal-gifted-url",".article__gift-modal",".paywall",".js-paywall"]),textRemovalPattern:/cet article vous est offert|pour lire gratuitement cet article réservé aux abonnés|article réservé aux abonnés|la suite est réservée à nos abonnés/i,textRemovalMaxLength:260}),ar(e,gr(document.querySelector(".article__desc, .article__lead, .article__standfirst"),o),{title:g(["h1.article__title",".article__title","h1"])||e.title,byline:g([".article__author",".meta__author","[rel='author']"])||e.byline,minTextLength:250,cloneRoot:!1,rewriteRoot:function(e){rr(e,ir.concat(["#js-modal-gifted-url",".article__gift-modal",".paywall",".js-paywall",".article__siblings",".article__reactions",".article__share",".meta__social",".services","[data-module*='newsletter' i]","[data-module*='recommend' i]"]).join(", ")),e.querySelectorAll("p, div, span, figcaption").forEach(function(e){var r=t(e.textContent||"");/^(article réservé aux abonnés|la suite est réservée|il vous reste \d+(?:[,.]\d+)?% de cet article à lire|se connecter|s’abonner|s'abonner)$/i.test(r)&&e.remove()})}})):null}),registerHostAwareProfile(!0,function(e){if(!(Ut(/(^|\.)idnes\.cz$/)||Ut(/(^|\.)lidovky\.cz$/)||Ut(/(^|\.)blaze\.cz$/)||Ut(/^expats\.cz$/))||!bg()||!document.querySelector("h1.arttit, h1.title, .art-title, .article-title, h1"))return null;var r=bg();return r?(e.language="",ar(e,r,{title:e.title||g(["h1.arttit","h1.title",".art-title",".article-title","h1"]),byline:g([".authors",".author",".art-info .author","[rel='author']"])||e.byline,minTextLength:450,postProcessMarkdown:function(e){var r=document.querySelector("#paywall, #promo-paywall, .paywall-before"),n=r&&tr(r),o=t(n&&n.textContent);return o&&(e+="\n\nTento veřejný úryvek proto končí u nabídky Premium; další část bude dostupná pouze v iDNES Premium. Předplatné odemyká pokračování článku na iDNES.cz.\n\n"+o),e},extra:function(){return{packagePage:!0}},rewriteRoot:function(e){rr(e,["#promo-premium-button",".social",".share",".sharing",".discussion",".comments",".gallery",".photogallery",".video",".advert",".advertising",".reklama",".ad",".m-ad",".js-ad",".art-media",".art-tools",".art-tags",".tag-list",".paywall-foot","#recombee-premium","[id^='AdTrack']","[class*='recommend' i]","[class*='related' i]"].join(", ")),e.querySelectorAll("p, div, span, a").forEach(function(e){var r=t(e.textContent||"");/^(diskuse|sdílet|fotogalerie|premium|přihlásit se)$/i.test(r)&&e.remove()})}})):null}),registerHostAwareProfile(!0,function(e){if(!Ut(/(^|\.)folha\.uol\.com\.br$/)||!/\.shtml(?:$|[?#])/i.test(location.pathname||"")||!vg())return null;var r=vg();return r?(xr(r,e,{minBodyTextLength:900,minParagraphCount:3,paragraphMinLength:70,hardPaywallPattern:/(?:conte[uú]do exclusivo|exclusivo para assinantes|assine para continuar|continue lendo com|conte[uú]do para assinantes)/i,removalSelectors:ir.concat(["[data-piano-offer]"]),structuredDataMode:"remove"}),ar(e,r,{title:g(["main h1","article h1","h1"])||e.title,minTextLength:250,rewriteRoot:function(e){rr(e,[".c-more-options",".c-newsletter",".gallery-widget",".js-gallery-widget",".gallery-widget-share-container",".c-loading",".ads",".advertising","[class*='advertising']","[class*='newsletter']","[class*='share']","[data-ad-unit]"].join(", ")),e.querySelectorAll("p, div, span, li").forEach(function(e){var r=t(e.textContent||"");/^(carregando|compartilhe|voltar|ver novamente|copiar link|ícone (facebook|whatsapp|x|linkedin|de envelope|de link))$/i.test(r)&&e.remove()})}})):null}),registerHostAwareProfile(!0,function(e){if(!Ut(/(^|\.)blog\.naver\.com$/))return null;var t=function(){var e=document.querySelector("iframe#mainFrame, iframe[name='mainFrame']");if(!e)return null;try{var t=e.contentDocument||e.contentWindow&&e.contentWindow.document||null;if(wg(t))return t;var r=e.getAttribute("srcdoc");return r?(new DOMParser).parseFromString(r,"text/html"):t}catch(e){return null}}()||document,r=wg(t);return r?fr(e,r,{title:Ag(t,[".se-module.se-module-text.se-title-text",".se-title-text span",".se-title .se-title-text",".se-title","h3.se_textarea_title",".pcol1.itemSubjectBoldfont",".htitle","h1"])||e.title,byline:Ag(t,[".nick",".blog_author",".writer",".se_publishDate + .nick"]),minTextLength:120,rewriteRoot:function(e){e.querySelectorAll(".post_btn, .post_footer_contents, .comment, .u_likeit_module, .wrap_tag, .post_tag, .se-module-oglink, .se-sticker, .se-map, script, style").forEach(function(e){e.remove()})}}):null}),e.FetchUtilExtract={extract:function(e){/(^|\.)mwananchi\.co\.tz$/i.test(location.hostname||"")&&(rr(document,["#paywall","[data-paywall]","[id*='paywall' i]","[class*='paywall' i]","[class*='subscribe' i]","[class*='premium' i]"].join(", ")),document.querySelectorAll("script[type='application/ld+json']").forEach(function(e){var r=t(e.textContent||"");/\b(?:NewsArticle|Article)\b/.test(r)&&e.remove()}),document.querySelectorAll("p, div, span, section, aside, button, a").forEach(function(e){var r=t(e.textContent||"");!r||r.length>420||/^(ndiyo, tafadhali!?|ingia|jisajili ili kuanza safari yako ya kufikia maudhui yetu yanayolipiwa|jiunge nasi leo usikose habari muhimu|pata habari na chambuzi huru, za kina na za uhakika kutoka mwananchi|loading\.\.\.)$/i.test(r)&&e.remove()}));var r,n,i,l,s,c,d,m=(r=u(),n=M(["NewsArticle","Article","BlogPosting"]),i=$l(),l=B(n&&n.author),s=O(n&&n.datePublished),c=i?Ol(i.startDate,i.endDate):null,{title:Me("og:title","property")||document.title||g(["main h1","article h1","h1"]),byline:Me("author","name")||Me("article:author","property")||Me("parsely-author","name")||l||v(),excerpt:Me("description","name")||Me("og:description","property"),siteName:Me("og:site_name","property")||location.hostname,publishedTime:c||Me("article:published_time","property")||Me("publish-date","name")||Me("datePublished","itemprop")||Me("date","name")||Me("dc.date","name")||Me("DC.date","name")||Me("parsely-pub-date","name")||s||w(),canonicalUrl:r||a(location.href),language:f(),image:Be("og:image","property"),video:Be("og:video","property")||Be("og:video:url","property")}),p=Ao(),h=null,y=null;function b(e){return e&&e.provisionalPortal?(h=e,null):e}function A(e){return!(!p||!e||"article"!==e.contentType&&"medical"!==e.contentType)}if(!d){var x=Ph(m);x&&(d=x)}var k,C,q,E,T=null,_=null;if(d||(T=tt(),_={iframeTitles:(k=Array.prototype.map.call(document.querySelectorAll("iframe"),function(e){return{title:t(e.getAttribute("title")||""),src:t(e.getAttribute("src")||"")}})).map(function(e){return e.title}).filter(Boolean),iframeSources:k.map(function(e){return e.src}).filter(Boolean),scriptSources:Array.prototype.map.call(document.querySelectorAll("script[src]"),function(e){return t(e.getAttribute("src")||"")}).filter(Boolean),textLength:tt().length,htmlLength:(document.body&&document.body.innerHTML||"").length,bodyHtml:(document.body&&document.body.innerHTML||"").slice(0,8e3)}),!d&&(C=location.hostname.toLowerCase().replace(/^www\./,""),q=location.pathname,(E=Pe("q"))&&E.trim()&&!(/^google\.[a-z]{2,3}(?:\.[a-z]{2})?$/.test(C)?"/"!==q&&"/search"!==q:/^bing\.com$/.test(C)?"/search"!==q:/(^|\.)duckduckgo\.com$/.test(C)?"/"!==q&&"/html"!==q&&"/html/"!==q:"search.brave.com"!==C&&!/^ecosia\.org$/.test(C)||"/search"!==q))&&(d=Yl(m)),d&&"search"===d.contentType)return kg(d,m,T,_,null);if(!d){var L=ho(m,T),j=go(m,T,L),P=t(document.body&&document.body.textContent||"").toLowerCase(),$=/ご利用のページが見つかりません|ページまたはファイルが存在しません|移動または削除されている|urlに誤りがある|urlには.*存在しません/i.test(P);j&&"not_found"===L&&$&&(d=j)}if(d||(d=function(e){var r=M(["Recipe"]);if(!r)return null;var n=S(r.recipeIngredient).map(function(e){return"string"==typeof e?t(e):O(e)}).filter(Boolean),o=[];if(function e(r){var n;r&&(Array.isArray(r)?r.forEach(e):"string"!=typeof r?"object"==typeof r&&(r.itemListElement?e(r.itemListElement):(n=O(r))&&o.push(n)):(n=t(r))&&o.push(n))}(r.recipeInstructions),n.length+o.length<3)return null;var i=[r.recipeYield?"Yield: "+O(r.recipeYield):null,r.prepTime?"Prep: "+t(r.prepTime):null,r.cookTime?"Cook: "+t(r.cookTime):null,r.totalTime?"Total: "+t(r.totalTime):null].filter(Boolean),a=[],l=B(r.name||r.headline)||e.title||document.title,s=O(r.description)||e.excerpt;l&&a.push("# "+l),i.length&&a.push(i.map(function(e){return"- "+e}).join("\n")),s&&a.push(s),n.length&&a.push("## Ingredients\n\n"+n.map(function(e){return"- "+e}).join("\n")),o.length&&a.push("## Instructions\n\n"+o.map(function(e,t){return t+1+". "+e}).join("\n"));var c=a.join("\n\n").trim();return{title:l,byline:B(r.author)||null,excerpt:s||null,siteName:e.siteName||location.hostname,publishedTime:r.datePublished||e.publishedTime||null,ingredients:n,instructions:o,html:"",markdown:c,textContent:t(c),readerMode:!1,contentType:"recipe"}}(m)),!d&&st()&&(d=b(wc(m,T))),!d){var N=t([location.pathname,document.title,m&&m.title,m&&m.siteName].join(" ")).toLowerCase();/\b(?:podcast|podcasts|episodes?)\b/.test(N)&&(d=Zo(m,null))}if(d||(d=is(m)),d||(d=b(wc(m,T))),d||(d=function(e,r,n){var o=eo(e,r,n);if(!o)return null;var i=t(e.title||document.title);(!i||Wt(i)||/^www\./i.test(i))&&(i=to(o,e));var a=function(e,t){var r="anubis"===e?"This page is presenting an Anubis challenge before the original content is available.":"datadome"===e?"This page is presenting a DataDome CAPTCHA challenge before the original content is available.":"This page is presenting a Cloudflare or Turnstile challenge before the original content is available.";return t&&t.textLength<40&&t.htmlLength>200&&(r+=" The readable DOM content is effectively empty in this environment."),r}(o,n),l=["anubis"===o?"Challenge: Anubis":"datadome"===o?"Challenge: DataDome":"Challenge: Cloudflare/Turnstile"];return n&&n.textLength<40&&n.htmlLength>200&&l.push("Readable DOM: challenge page only"),je({title:i,description:a,highlights:[],details:l,siteName:e.siteName||location.hostname,contentType:"interstitial"})}(m,T,_)),!d){var R=ho(m,T),z=go(m,T,R);if(z&&"consent_wall"!==R)d=z;else if(z&&"consent_wall"===R){var I=Sg(e),H=t(I&&I.markdown||I&&I.textContent||"").toLowerCase();d=I&&H.length>500&&!mi(H)?I:z}}if(d||(d=fa(m)),d||(d=ss(m)),d||(d=hs(m)),d||(d=bs(m)),d||(d=Ms(m)),d||(d=Sg(e)),h&&(y=d),d&&"article"===d.contentType&&d.readerMode&&Zi(d.textContent||d.markdown||"")&&!/(weather|forecast|ve[ðd]ur|vedur|meteo)/i.test((location.pathname||"")+" "+document.title)){var F=Ka(m);t(F.markdown||"").length>=400&&(d=F)}if(function(e){return!e||t(e.markdown||e.textContent||"").length<300}(d)){var D=function(){var e,r=document.getElementById("__NEXT_DATA__");if(!r)return null;try{e=JSON.parse(r.textContent)}catch(e){return null}if(!e||!e.props)return null;var n=e.props.pageProps||e.props;if(!n)return null;for(var o=[],i=null,a=[n],l=[],s=0,c=0,u=Ql(),d=!1,m=["content","body","markdown","html","description","text","article","post","doc","page","rawBody","compiledSource"],p=["title","name","heading"];s<a.length&&!d;){var f,h,g,y=a[s++];if("string"==typeof y){var b=y.trim();c+=y.length,b.length>80&&o.push(b)}else if(y&&"object"==typeof y){if(-1!==l.indexOf(y))continue;if(l.push(y),f=Object.keys(y),h=[],m.forEach(function(e){-1!==f.indexOf(e)&&h.push(e)}),f.forEach(function(e){-1===h.indexOf(e)&&h.push(e)}),!i)for(g=0;g<p.length;g++){var v=y[p[g]];if("string"==typeof v&&v.trim().length>2){i=v.trim();break}}h.forEach(function(e){d||(c+=e.length,a.push(y[e]))})}(c>=16e6||Ql()-u>=100)&&(d=a.length>0)}var w,A,S,x=o.length?o.reduce(function(e,t){return e.length>=t.length?e:t}):"";if(x.length<200)return d?{title:i||document.title,byline:null,excerpt:null,siteName:location.hostname,publishedTime:null,html:null,textContent:"",markdown:null,contentType:"article",spaFallback:!0,spaDataGuard:!0}:null;if(/<[a-z][^>]*>/i.test(x)&&/<\/[a-z]+>/i.test(x)){A=x;var k=document.createElement("div");k.innerHTML=x,nr(k),S=t(k.textContent),w=null}else A=null,S=t(x),w=x;return{title:i||document.title,byline:null,excerpt:S?S.slice(0,280):null,siteName:location.hostname,publishedTime:null,html:A,textContent:S||x,markdown:w,contentType:"article",spaFallback:!0,spaDataGuard:d}}();D&&(d=D)}d=function(e,r){if(!e||"job"===e.contentType||"search"===e.contentType||"interstitial"===e.contentType||e.docsLike||e.legalProvision)return e;if(ps(r,cs()))return e;var n=Fs(0,r);if(!n)return e;e.contentType="property",n.title&&(!e.title||t(e.title).length<t(n.title).length)&&(e.title=n.title),n.excerpt&&!e.excerpt&&(e.excerpt=n.excerpt),n.price&&(e.price=n.price),n.location&&(e.location=n.location),null!==n.bedrooms&&void 0!==n.bedrooms&&(e.bedrooms=n.bedrooms),null!==n.bathrooms&&void 0!==n.bathrooms&&(e.bathrooms=n.bathrooms),null!==n.areaSqft&&void 0!==n.areaSqft&&(e.areaSqft=n.areaSqft);var o=[];e.price&&o.push("Price: "+e.price),e.location&&o.push("Location: "+e.location),null!==e.bedrooms&&void 0!==e.bedrooms&&o.push("Bedrooms: "+e.bedrooms),null!==e.bathrooms&&void 0!==e.bathrooms&&o.push("Bathrooms: "+e.bathrooms),null!==e.areaSqft&&void 0!==e.areaSqft&&o.push("Area: "+e.areaSqft+" sqft");var i=mn(e.markdown||e.textContent||""),a=o.map(function(e){return"- "+e}).join("\n");return o.length&&-1===i.indexOf(o[0])&&(e.markdown=["# "+(e.title||r.title||document.title),a,i].filter(Boolean).join("\n\n"),e.textContent=t(e.markdown)),e}(d,m),d=function(e,r){if(!e||"search"===e.contentType||"interstitial"===e.contentType||e.docsLike||e.legalProvision)return e;var n=Ls(r);if(!n)return e;var o=Ps(n),i=mn(e.markdown||e.textContent||"").trim(),a=t(i),l=[],s=e.title||r.title||document.title;return s&&!Vr(i,s)&&l.push("# "+s),o.length&&o.some(function(e){return-1===a.indexOf(t(e))})&&l.push(o.map(function(e){return"- "+e}).join("\n")),l.push(i),(n.tables||[]).forEach(function(e){-1===t(l.join("\n\n")).indexOf(t(e))&&l.push(e)}),e.contentType=function(e,t){return t&&t.event?"sports_event":t&&t.typed?"sports":e&&e.contentType||"article"}(e,n),(n.detail||n.structured)&&(e.sportsDetailEvidence={kind:n.structured?"sports_schema":"sports_detail",urlMatch:n.structured?js([n.structured.homeName,n.structured.awayName]):js(n.detail.identity.teams)}),e.markdown=mn(l.filter(Boolean).join("\n\n")),e.textContent=t(e.markdown),o[0]&&!e.excerpt&&(e.excerpt=o[0]),e}(d,m),d=function(e,r){if(!e||"job"===e.contentType||"property"===e.contentType||"list"===e.contentType||"search"===e.contentType||"interstitial"===e.contentType||e.docsLike||e.legalProvision)return e;var n=Tl();if(!n)return e;e.contentType="product",n.title&&(!e.title||t(e.title).length<n.title.length)&&(e.title=n.title),n.excerpt&&!e.excerpt&&(e.excerpt=n.excerpt),n.price&&(e.price=n.price),n.availability&&(e.availability=xl(n.availability)),n.sku&&(e.sku=n.sku);var o=[];if(e.price&&o.push("Price: "+e.price),e.availability&&o.push("Availability: "+e.availability),e.sku&&o.push("SKU: "+e.sku),o.length&&-1===t(e.markdown||e.textContent||"").indexOf(o[0])){var i=e.title||r&&r.title||document.title,a=t(e.markdown||e.textContent||"");e.markdown=["# "+i,o.map(function(e){return"- "+e}).join("\n"),a].filter(Boolean).join("\n\n"),e.textContent=t(e.markdown)}return e}(d,m);var U=A(d=function(e){if(!e||"social"!==e.contentType)return e;var t=Ds(e.socialKind);return-1===["post","thread","feed","profile"].indexOf(t)?(e.contentType="article",Ws(e),e):(e.socialKind=t,e.platform=Ds(e.platform),e.handle=Ds(e.handle),e.replyCount=Us(e.replyCount,!1),e.community=Ds(e.community),e.score=Us(e.score,!0),e)}(d))||Ao(d)||Jo(d)||va(m,d),W=ql(m);if(W&&d&&"social"!==d.contentType&&"product"!==d.contentType&&"property"!==d.contentType&&"hotel"!==d.contentType&&!d.hostAware&&!d.docsLike){var G=t(d.markdown||d.textContent||"").toLowerCase(),Z=t([document.title,location.pathname,location.search,m&&m.siteName].join(" ")).toLowerCase(),K=vo()||/\b(?:shop|shopping|store|marketplace|catalog|products?|furniture|search results?)\b|\/p\/|\/sb\d*\//.test(Z);U&&!K?W=null:("list"!==d.contentType&&(K||W.itemCount>=4||mi(G))||"list"===d.contentType&&vo()&&W.itemCount>=4)&&(d=W)}d===W&&(d=function(e,t){if(!st()||!t||!t.productListItems)return null;var r=Ka(e,{portalRoot:!0}),n=r.listExtraction;if(!n||n.sectionCount||r.itemCount<4||!n.root.querySelector("p"))return null;var o=new Set(t.productListItems.map(function(e){return e.url&<(e.url)}).filter(Boolean));if(new Set(n.items.map(function(e){return e.url&<(e.url)}).filter(function(e){return e&&!o.has(e)})).size<4)return null;var i=Array.from(n.root.querySelectorAll("a[href]")),l=Array.from(n.root.querySelectorAll("*")),s=n.items.slice(),c=new Set(s.map(function(e){return e.url&<(e.url)}).filter(Boolean));if(!t.productListItems.every(function(e){if(!e.url)return!1;var t=lt(e.url);if(c.has(t))return!0;var r=i.find(function(e){var r=a(e.getAttribute("href"));return r&<(r)===t&&e.querySelector("img[alt]")});return!!r&&(s.push(Object.assign({},e,{sourceNode:r,card:r})),c.add(t),!0)})||s.length===n.items.length)return null;var u=s.map(function(e){var t=e.sourceNode||i.find(function(t){var r=a(t.getAttribute("href"));return e.url&&r&<(r)===lt(e.url)})||e.card;return{item:Object.assign({},e,{sourceNode:t}),position:l.indexOf(t)}});return u.some(function(e){return e.position<0})?null:(u.sort(function(e,t){return e.position-t.position}),n.items=u.map(function(e){return e.item}),n.descText=ja(n.root,n.items),n.markdown=Pa(n.descText,n.items),r.markdown=n.markdown,r.textContent=n.markdown,r.itemCount=n.items.length,r.sectionMarkdownWithDescription=Da({regions:[{node:n.root,cards:n.items}]},La(n.root,n.items,{includeInlineProse:!0})),r)}(m,W)||d);var V=Ll(m);!V||!d||"article"!==d.contentType&&"list"!==d.contentType||d.hostAware||d.docsLike||A(d)||Ao(d)||(d=V);var J=d&&"article"===d.contentType&&(Jo(d)||va(m,d)),X=function(e){var r=Bl(),n=r.filter(function(e){return e.admission}).length;if(r.length>=3&&n>=3){var o=Ka(e,{portalRoot:!0});return Re(e,{excerpt:r[0].text,html:o.html,portalRootEvidence:o.portalRootEvidence,items:r})}if(!Fl())return null;var i=tr(Qt(document.querySelector("main, [role='main'], article, #content")||document.body,document));nr(i),Ra(i),rr(i,"form, script, style, noscript, [class*='modal' i], [class*='newsletter' i]");var a=mn(Jn(i.innerHTML));return t(a).length<300?null:Re(e,{title:e.title||document.title,excerpt:e.excerpt||g(["main h1","h1"]),html:i.innerHTML,textContent:a,markdown:a})}(m),Y=Rl()||!Nl()&&Fl()&&Ul()>=3;!X||!d||d.hostAware||d.docsLike||"event"===d.contentType||A(d)||Ao(d)||J&&!Y||"list"===d.contentType&&!Y||(d=X);var Q=Zo(m,d=rs(d));Q&&(d=Q),h&&y&&(_o(y,h)?d&&!_o(y,d)||(d=y):d=h);var ee=ts(0,d);U=A(d)||Ao(d)||ee||Jo(d)||va(m,d);if(d&&!d.hostAware&&Ut(/(^|\.)gitlab\.com$/)&&/data-testid=["']blob-viewer-content["']/.test(d.html||"")&&(d.hostAware=!0),"article"===d.contentType&&!d.hostAware&&!d.docsLike&&!A(d)&&!Ao(d)&&nt(d.textContent||d.markdown||"")){var te=Ka(m);t(te.markdown||"").length>=400&&!_o(d,te)&&!function(e,r){if(!e||!r||"article"!==e.contentType||"list"!==r.contentType)return!1;var n=t(e.textContent||e.markdown||""),i=t((r.markdown||r.textContent||"").replace(/!\[([^\]]*)\]\([^)]+\)/g,"$1").replace(/\[([^\]]*)\]\([^)]+\)/g,"$1").replace(/[`*_~#>|]/g," "));if(n.length<1800||i.length<.5*n.length||i.length>=n.length)return!1;var a=document.createElement("div");return a.innerHTML=e.html||"",Array.prototype.some.call(a.querySelectorAll("ul, ol"),function(e){if(e.closest("nav, footer, aside, [role='navigation'], [role='menu'], [aria-hidden='true']"))return!1;var r=Object.create(null),n=[];if(Array.prototype.forEach.call(e.children,function(e){if(e&&"LI"===e.tagName){var i=t(e.textContent||"");i.length<20||i.length>500||r[i]||Array.prototype.reduce.call(e.querySelectorAll("a[href]"),function(e,t){return e+o(t)},0)>=.5*i.length||(r[i]=!0,n.push(i))}}),n.length<3)return!1;var a=n.filter(function(e){return-1===i.indexOf(e)}),l=a.reduce(function(e,t){return e+t.length},0);return a.length>=3&&a.length>=Math.ceil(n.length/2)&&l>=120})}(d,te)&&(d=te)}"article"!==d.contentType||d.docsLike||d.legalProvision||!ba(null,d.textContent||d.markdown||"")||(d=ha(d,{strongList:!0}));var re=null;if(("list"===d.contentType||"social"===d.contentType||"medical"===d.contentType||"product"===d.contentType||"recipe"===d.contentType||"property"===d.contentType||"hotel"===d.contentType||"event"===d.contentType||$s(d)||d.hostAware||d.docsLike||d.legalProvision||!Go(d))&&("list"===d.contentType||"social"===d.contentType||"medical"===d.contentType||"product"===d.contentType||"recipe"===d.contentType||"property"===d.contentType||"hotel"===d.contentType||"event"===d.contentType||$s(d)||d.hostAware||d.docsLike||d.legalProvision||!function(e){if(!document.body)return!1;if(ts(0,e))return!1;if(Ao(e))return!1;function r(e){var r=Uo(e),n=r.length,o=e.querySelectorAll("p").length,i=e.querySelectorAll("tr, li, article, section").length,a=e.querySelectorAll("li").length,l=e.querySelectorAll("table, ul, ol, .itemlist, .items, .stories, .posts, .news, .headlines, .feed, .threads, .topic-list, .forumlist, .discussionList").length,s=e.querySelectorAll("h1, h2, h3, h4").length,c=e.querySelectorAll("article, section, [class*='card' i], [class*='item' i], [class*='story' i], [class*='post' i], [class*='news' i], [class*='headline' i], [class*='feed' i], [class*='thread' i], [class*='topic-list' i], .structItem, .discussionListItem").length,u=r.filter(function(e){var r=t(e.textContent||e.getAttribute("aria-label")||"");return r.length>=yo(r)&&r.length<=220&&!xo(r,e.getAttribute("href")||"")}).length,d=t(e.textContent),m=t(document.title).toLowerCase(),p=(location.pathname||"").toLowerCase();return{links:n,paragraphs:o,rows:i,listItems:a,listish:l,headings:s,cards:c,headlineLinks:u,text:d,title:m,homepage:"/"===p||""===p||/^\/(index|default|home)\b/i.test(p)||/^\/\d+(,\d+)*\.html?$/i.test(p)}}function n(e){return!!(e.homepage&&e.headlineLinks>=20&&e.cards>=15&&(e.headings>=8||e.cards>=40))||e.headlineLinks>=30&&e.cards>=20&&(e.headings>=10||e.cards>=40)||!!(e.homepage&&e.headlineLinks>=16&&e.headings>=8&&e.links>=80&&e.text.length<=24e4)||!!(e.headlineLinks>=24&&e.headings>=10&&e.links>=120&&(e.homepage||e.rows>=20||e.listish>=2)&&e.text.length<=24e4)||(e.links>=8&&e.rows>=6||e.listish>0&&e.links>=6)&&e.paragraphs<=8&&e.text.length<=14e3||e.rows>=6&&e.headlineLinks>=6&&e.headings>=6&&e.text.length<=36e3||e.homepage&&e.headlineLinks>=4&&e.headings>=3&&e.text.length<=36e3&&(e.listItems>=4||e.cards>=4||/top stories|breaking news|latest news|headlines|ultime notizie|in evidenza|primo piano/.test(e.title+" "+e.text.slice(0,400)))||e.cards>=4&&e.headlineLinks>=4&&e.headings>=3&&e.text.length<=36e3}var o=document.createElement("div");if(o.innerHTML=document.body.innerHTML,n(r(o)))return!0;var i=document.createElement("div");return i.innerHTML=e&&e.html?e.html:document.body.innerHTML,n(r(i))}(d)||!bo()&&(A(d)||Ao(d))||U)||(re=Ka(m)),re&&!_o(d,re)&&(d=re),"article"!==d.contentType&&"medical"!==d.contentType||d.docsLike||d.legalProvision||U||!function(e){if(!e||"article"!==e.contentType||Ao(e))return!1;if(!vo())return!1;var r=document.createElement("div");r.innerHTML=e.html||"";var n=t(r.textContent||e.textContent||e.markdown||""),o=r.querySelectorAll("p").length,i=Array.prototype.filter.call(r.querySelectorAll("p"),function(e){return t(e.textContent||"").length>=180}).length,l=t(e.byline||""),s=t(e.publishedTime||""),c=document.querySelector("main h1, [role='main'] h1, h1"),u=t([document.title,c&&c.textContent].join(" ")).toLowerCase(),d=document.querySelectorAll("main article a[href], [role='main'] article a[href], main [class*='product' i] a[href], [role='main'] [class*='product' i] a[href], main [class*='card' i] a[href], [role='main'] [class*='card' i] a[href]");return!(s||l||mi(n.toLowerCase())||d.length&&!Array.prototype.some.call(d,function(e){return!!a(e.getAttribute("href"))})||!/(search|results?|shop|browse|categor|catalog|keyword|wholesale|products?|collections?|marketplace)/.test(u)||i>=4&&n.length>=1200||!(n.length<2400||o<=4))}(d)||(d=ha(d,{strongList:!0})),"list"===d.contentType&&Pe("q")&&ma(m)){var ne=pa(m);ne&&(d=ne)}var oe=function(e,r){if(!e||"list"!==e.contentType||e.hostAware||e.docsLike||!e.listExtraction)return null;if(t(e.markdown||e.textContent||"").length>120)return null;if(Wo(e.listExtraction.items))return null;var n=nl();if(!n)return null;var o=Ka(r,{preservedRoots:[n]});return o&&o.listExtraction?t(o.markdown||"").length<1200||Wo(o.listExtraction.items)<8?null:o:null}(d,m);oe&&(d=oe);var ie=dl(d,m);ie&&(d=ie);var ae=la(d,m,T),le=kg(d,m,T,_,ee);if(!ae||"article"!==le.contentType)return le;ae.warningReasons=(ae.warningReasons||[]).concat(le.warnings||[]);var se=kg(ae,m,T,_,ee);return function(e,t){if(!e||!t||"article"!==e.contentType||"article"!==t.contentType)return!1;var r={};return(e.warnings||[]).forEach(function(e){r[e]=!0}),!(e.warnings||[]).some(function(e){return-1===(t.warnings||[]).indexOf(e)})&&!(t.warnings||[]).some(function(e){return!r[e]&&/(interstitial|wall|paywall|bot_or_access|challenge)/.test(e)})}(le,se)?se:le}}}(window);
|