/*! For license information please see browse.bf384f8116a6044582db.js.LICENSE.txt */
!function(t,e){"object"==typeofexports&&"object"==typeofmodule?module.exports=e():"function"==typeofdefine&&define.amd?define([],e):"object"==typeofexports?exports.swh=e():(t.swh=t.swh||{},t.swh.browse=e())}(self,(function(){returnfunction(){vart={87757:function(t,e,n){t.exports=n(35666)},14547:function(){!function(t){t.fn.tabSlideOut=function(e){functionn(t){returnparseInt(t.outerHeight()+1,10)+"px"}functionr(){vare=t(window).height();return"top"!==s&&"bottom"!==s||(e=t(window).width()),e-parseInt(a.otherOffset)-parseInt(a.offset)}varo=this;functioni(){returno.hasClass("ui-slideouttab-open")}if("string"==typeofe)switch(e){case"open":returnthis.trigger("open"),this;case"close":returnthis.trigger("close"),this;case"isOpen":returni();case"toggle":returnthis.trigger("toggle"),this;case"bounce":returnthis.trigger("bounce"),this;default:thrownewError("Invalid tabSlideOut command")}else{vara=t.extend({tabLocation:"left",tabHandle:".handle",action:"click",hoverTimeout:5e3,offset:"200px",offsetReverse:!1,otherOffset:null,handleOffset:null,handleOffsetReverse:!1,bounceDistance:"50px",bounceTimes:4,bounceSpeed:300,tabImage:null,tabImageHeight:null,tabImageWidth:null,onLoadSlideOut:!1,clickScreenToClose:!0,clickScreenToCloseFilters:[".ui-slideouttab-panel"],onOpen:function(){},onClose:function(){}},e||{}),s=a.tabLocation,c=a.tabHandle=t(a.tabHandle,o);if(o.addClass("ui-slideouttab-panel").addClass("ui-slideouttab-"+s),a.offsetReverse&&o.addClass("ui-slideouttab-panel-reverse"),c.addClass("ui-slideouttab-handle"),a.handleOffsetReverse&&c.addClass("ui-slideouttab-handle-reverse"),a.toggleButton=t(a.toggleButton),null!==a.tabImage){varu=0,l=0;if(null!==a.tabImageHeight&&null!==a.tabImageWidth)u=a.tabImageHeight,l=a.tabImageWidth;else{varf=newImage;f.src=a.tabImage,u=f.naturalHeight,l=f.naturalWidth}c.addClass("ui-slideouttab-handle-image"),c.css({background:"url("+a.tabImage+") no-repeat",width:l,height:u})}"top"===s||"bottom"===s?(a.panelOffsetFrom=a.offsetReverse?"right":"left",a.handleOffsetFrom=a.handleOffsetReverse?"right":"left"):(a.panelOffsetFrom=a.offsetReverse?"bottom":"top",a.handleOffsetFrom=a.handleOffsetReverse?"bottom":"top"),null===a.handleOffset&&(a.handleOffset="-"+function(t,e){returnparseInt(t.css("border-"+e+"-width"),10)}(o,a.handleOffsetFrom)+"px"),"top"===s||"bottom"===s?(o.css(a.panelOffsetFrom,a.offset),c.css(a.handleOffsetFrom,a.handleOffset),null!==a.otherOffset&&(o.css("width",r()+"px"),t(window).resize((function(){o.css("width",r()+"px")}))),"top"===s?c.css({bottom:"-"+n(c)}):c.css({top:"-"+n(c)})):(o.css(a.panelOffsetFrom,a.offset),c.css(a.handleOffsetFrom,a.handleOffset),null!==a.otherOffset&&(o.css("height",r()+"px"),t(window).resize((function(){o.css("height",r()+"px")}))),"left"===s?c.css({right:"0"}):c.css({left:"0"})),c.click((function(t){t.preventDefault()})),a.toggleButton.click((function(t){t.preventDefault()})),o.addClass("ui-slideouttab-ready");varh=function(){o.removeClass("ui-slideouttab-open").trigger("slideouttabclose"),a.onClose()},d=function(){o.addClass("ui-slideouttab-open").trigger("slideouttabopen"),a.onOpen()},p=function(){i()?h():d()},v=[];v[s]="-="+a.bounceDistance;varw=[];w[s]="+="+a.bounceDistance;if(a.clickScreenToClose&&t(document).click((function(e){if(i()&&!o[0].contains(e.target)){for(varn=t(e.target),r=0;r<a.clickScreenToCloseFilters.length;r++){vars=a.clickScreenToCloseFilters[r];if("string"==typeofs){if(n.is(s)||n.parents().is(s))return}elseif("function"==typeofs&&s.call(o,e))return}h()}})),"click"===a.action)c.click((function(t){p()}));elseif("hover"===a.action){varg=null;o.hover((function(){i()||d(),g=null}),(function(){i()&&null===g&&(g=setTimeout((function(){g&&h(),g=null}),a.hoverTimeout))})),c.click((function(t){i()&&h()}))}a.onLoadSlideOut&&(d(),setTimeout(d,500)),o.on("open",(function(t){i()||d()})),o.on("close",(function(t){i()&&h()})),o.on("toggle",(function(t){p()})),o.on("bounce",(function(t){i()?function(){for(vart=o,e=0;e<a.bounceTimes;e++)t=t.animate(v,a.bounceSpeed).animate(w,a.bounceSpeed);o.trigger("slideouttabbounce")}():function(){for(vart=o,e=0;e<a.bounceTimes;e++)t=t.animate(w,a.bounceSpeed).animate(v,a.bounceSpeed);o.trigger("slideouttabbounce")}()}))}returnthis}}(jQuery)},86515:function(t,e,n){"use strict";n.d(e,{Fg:function(){returno}});varr=n(59537),o=768;(0,r.TT)("img/swh-spinner.gif")},59537:function(t,e,n){"use strict";n.d(e,{DK:function(){returns},Sv:function(){returnl},TT:function(){returnc},ry:function(){returna}});varr=n(15861),o=n(87757),i=n.n(o);n(31955);functiona(t){if(!t.ok)throwt;returnt}functions(t,e){varn="";try{varr=JSON.parse(t.reason);Object.entries(r).forEach((function(t,e){varr=t[0],o=t[1][0];n+="\n"+r+": "+o}))}catch(e){n=t.reason}returnn?"Error: "+n:e}functionc(t){return"/static/"+t}functionu(t,e){void0===e&&(e=[]);varn=null,r=!0;try{n=newURL(t)}catch(t){r=!1}returnr&&e.length&&(r=void0!==e.find((function(t){returnt===n.protocol}))),r?n:null}functionl(t){returnf.apply(this,arguments)}functionf(){return(f=(0,r.Z)(i().mark((functiont(e){varn;returni().wrap((function(t){for(;;)switch(t.prev=t.next){case0:if(u(e)){t.next=4;break}returnt.abrupt("return",!1);case4:returnt.next=6,fetch(Urls.api_1_origin(e));case6:returnn=t.sent,t.abrupt("return",n.ok&&200===n.status);case8:case"end":returnt.stop()}}),t)})))).apply(this,arguments)}},69840:function(t,e,n){"use strict";n.d(e,{E:function(){returno}});varr=n(86515);functiono(){window.location.pathname===Urls.browse_origin_visits()?$("#swh-browse-origin-visits-nav-link").addClass("active"):window.location.pathname===Urls.browse_origin_branches()||window.location.pathname===Urls.browse_snapshot_branches()||window.location.pathname.endsWith("branches/")?$("#swh-browse-snapshot-branches-nav-link").addClass("active"):window.location.pathname===Urls.browse_origin_releases()||window.location.pathname===Urls.browse_snapshot_releases()||window.location.pathname.endsWith("releases/")?$("#swh-browse-snapshot-releases-nav-link").addClass("active"):$("#swh-browse-code-nav-link").addClass("active")}$(document).ready((function(){$(".dropdown-submenu a.dropdown-item").on("click",(function(t){$(t.target).next("div").toggle(),"none"!==$(t.target).next("div").css("display")?$(t.target).focus():$(t.target).blur(),t.stopPropagation(),t.preventDefault()})),$(".swh-popover-toggler").popover({boundary:"viewport",container:"body",html:!0,placement:function(){return$(window).width()<r.Fg?"top":"right"},template:'<div class="popover" role="tooltip">\n <div class="arrow"></div>\n <h3 class="popover-header"></h3>\n <div class="popover-body swh-popover"></div>\n </div>',content:function(){vart=$(this).attr("data-popover-content");return$(t).children(".popover-body").remove().html()},title:function(){vart=$(this).attr("data-popover-content");return$(t).children(".popover-heading").html()},offset:"50vh",sanitize:!1}),$(".swh-vault-menu a.dropdown-item").on("click",(function(t){$(".swh-popover-toggler").popover("hide")})),$(".swh-popover-toggler").on("show.bs.popover",(function(t){$(".swh-popover-toggler:not(#"+t.currentTarget.id+")").popover("hide"),$(".swh-vault-menu .dropdown-menu").hide()})),$(".swh-actions-dropdown").on("hide.bs.dropdown",(function(){$(".swh-vault-menu .dropdown-menu").hide(),$(".swh-popover-toggler").popover("hide")})),$("#swh-branch-search-form").submit((function(t){vare=newURLSearchParams(window.location.search);e.set("name_include",$("#swh-branch-search-string").val().trim()),window.location.search=e.toString(),t.preventDefault()})),$("body").on("click",(function(t){$(t.target).parents(".swh-popover").length&&t.stopPropagation()}))}))},11555:function(t,e,n){"use strict";functionr(t,e){varn="\n <p>\n You can embed that "+t+' view in an external website\n through the use of an iframe. Use the following HTML code\n to do so.\n </p>\n <pre><code class="swh-iframe-html html"><iframe style="width: 100%; height: 500px; border: 1px solid rgba(0, 0, 0, 0.125);"\n src="'+window.location.origin+Urls.browse_swhid_iframe(e.replaceAll("\n",""))+'">\n</iframe></code></pre>\n <iframe style="width: 100%; height: 500px; border: 1px solid rgba(0, 0, 0, 0.125);"\n src="'+window.location.origin+Urls.browse_swhid_iframe(e.replaceAll("\n",""))+'">\n </iframe>';swh.webapp.showModalHtml("Software Heritage "+t+" iframe",n,"1000px"),swh.webapp.highlightCode(!1,".swh-iframe-html")}n.d(e,{j:function(){returnr}})},8656:function(t,e,n){"use strict";n.d(e,{A:function(){returnk}});varr=n(15861),o=n(87757),i=n.n(o),a=n(59537);functions(t,e){varn="undefined"!=typeofSymbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeoft)returnc(t,e);varn=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)returnArray.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))returnc(t,e)}(t))||e&&t&&"number"==typeoft.length){n&&(t=n);varr=0;returnfunction(){returnr>=t.length?{done:!0}:{done:!1,value:t[r++]}}}thrownewTypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}functionc(t,e){(null==e||e>t.length)&&(e=t.length);for(varn=0,r=newArray(e);n<e;n++)r[n]=t[n];returnr}varu=[],l=null,f=null,h=!1;functiond(t){returnt.match(/<(.+)>; rel="next"/)[1]}functionp(){setTimeout((function(){$("#origin-search-results tbody tr").removeAttr("style")}))}functionv(){$("#origin-search-results tbody tr").remove()}functionw(t){returng.apply(this,arguments)}functiong(){return(g=(0,r.Z)(i().mark((functiont(e){varn,r,o,a,c,f,d,w,g,m,y,b,x,k,S;returni().wrap((function(t){for(;;)switch(t.prev=t.next){case0:if(!(e.length>0)){t.next=17;break}for($("#swh-origin-search-results").show(),$("#swh-no-result").hide(),v(),n=$("#origin-search-results tbody"),r=[],o=s(e.entries());!(a=o()).done;)c=a.value,f=c[0],d=c[1],w=Urls.browse_origin()+"?origin_url="+encodeURIComponent(d.url),g='<tr id="origin-'+f+'" class="swh-search-result-entry swh-tr-hover-highlight">',g+='<td id="visit-type-origin-'+f+'" class="swh-origin-visit-type" style="width: 120px;"><i title="Checking software origin type" class="mdi mdi-sync mdi-spin mdi-fw"></i>Checking</td>',g+='<td style="white-space: nowrap;"><a href="'+w+'">'+d.url+"</a></td>",g+='<td class="swh-visit-status" id="visit-status-origin-'+f+'"><i title="Checking archiving status" class="mdi mdi-sync mdi-spin mdi-fw"></i>Checking</td>',g+="</tr>",n.append(g),m=Urls.api_1_origin_visit_latest(d.url),m+="?require_snapshot=true",r.push(fetch(m));returnt.next=9,Promise.all(r);case9:returny=t.sent,t.next=12,Promise.all(y.map((function(t){returnt.json()})));case12:for(b=t.sent,x=0;x<y.length;++x)k=y[x],S=b[x],404!==k.status&&S.type?($("#visit-type-origin-"+x).html(S.type),$("#visit-status-origin-"+x).html('<i title="Software origin has been archived by Software Heritage" class="mdi mdi-check-bold mdi-fw"></i>Archived')):($("#visit-type-origin-"+x).html("unknown"),$("#visit-status-origin-"+x).html('<i title="Software origin archival by Software Heritage is pending" class="mdi mdi-close-thick mdi-fw"></i>Pending archival'),$("#swh-filter-empty-visits").prop("checked")&&$("#origin-"+x).remove());p(),t.next=20;break;case17:$("#swh-origin-search-results").hide(),$("#swh-no-result").text("No origins matching the search criteria were found."),$("#swh-no-result").show();case20:null===l?$("#origins-next-results-button").addClass("disabled"):$("#origins-next-results-button").removeClass("disabled"),0===u.length?$("#origins-prev-results-button").addClass("disabled"):$("#origins-prev-results-button").removeClass("disabled"),h=!1,setTimeout((function(){window.scrollTo(0,0)}));case24:case"end":returnt.stop()}}),t)})))).apply(this,arguments)}functionm(t,e){varn;if($("#swh-search-origin-metadata").prop("checked"))(n=newURL(Urls.api_1_origin_metadata_search(),window.location)).searchParams.append("fulltext",t);else{varr=$("#swh-search-use-ql").prop("checked");(n=newURL(Urls.api_1_origin_search(t),window.location)).searchParams.append("use_ql",null!=r&&r)}varo=$("#swh-search-origins-with-visit").prop("checked");n.searchParams.append("limit",e),n.searchParams.append("with_visit",o);vari=$("#swh-search-visit-type").val();"any"!==i&&n.searchParams.append("visit_type",i),y(n.toString())}functiony(t){returnb.apply(this,arguments)}functionb(){return(b=(0,r.Z)(i().mark((functiont(e){varn,r,o,s;returni().wrap((function(t){for(;;)switch(t.prev=t.next){case0:returnv(),$(".swh-loading").addClass("show"),t.prev=2,t.next=5,fetch(e);case5:returnn=t.sent,(0,a.ry)(n),t.next=9,n.json();case9:r=t.sent,f=e,l=null,n.headers.has("Link")&&void0!==(o=d(n.headers.get("Link")))&&(l=o),$(".swh-loading").removeClass("show"),w(r),t.next=27;break;case17:returnt.prev=17,t.t0=t.catch(2),t.next=21,t.t0.json();case21:s=t.sent,$(".swh-loading").removeClass("show"),h=!1,$("#swh-origin-search-results").hide(),$("#swh-no-result").text((0,a.DK)(s,"An unknown error occurred while searching origins")),$("#swh-no-result").show();case27:case"end":returnt.stop()}}),t,null,[[2,17]])})))).apply(this,arguments)}functionx(){return(x=(0,r.Z)(i().mark((functiont(){vare,n,r,o,s;returni().wrap((function(t){for(;;)switch(t.prev=t.next){case0:if($("#swh-no-result").hide(),e=$("#swh-origins-url-patterns").val(),h=!0,!e.startsWith("swh:")){t.next=27;break}returnt.prev=4,n=Urls.api_1_resolve_swhid(e),t.next=8,fetch(n);case8:returnr=t.sent,(0,a.ry)(r),t.next=12,r.json();case12:o=t.sent,window.location=o.browse_url,t.next=25;break;case16:returnt.prev=16,t.t0=t.catch(4),t.next=20,t.t0.json();case20:s=t.sent,$("#swh-origin-search-results").hide(),$(".swh-search-pagination").hide(),$("#swh-no-result").text(s.reason),$("#swh-no-result").show();case25:t.next=36;break;case27:returnt.next=29,(0,a.Sv)(e);case29:if(!t.sent){t.next=33;break}window.location.href=Urls.browse_origin()+"?origin_url="+encodeURIComponent(e),t.next=36;break;case33:$("#swh-origin-search-results").show(),$(".swh-search-pagination").show(),m(e,100);case36:case"end":returnt.stop()}}),t,null,[[4,16]])})))).apply(this,arguments)}functionk(){$(document).ready((function(){if($("#swh-search-origins").submit((function(t){if(t.preventDefault(),t.target.checkValidity()){$(t.target).removeClass("was-validated");vare=$("#swh-origins-url-patterns").val().trim(),n=$("#swh-search-origins-with-visit").prop("checked"),r=$("#swh-filter-empty-visits").prop("checked"),o=$("#swh-search-use-ql").prop("checked"),i=$("#swh-search-origin-metadata").prop("checked"),a=$("#swh-search-visit-type").val(),s=newURLSearchParams;s.append("q",e),n&&s.append("with_visit",n),r&&s.append("with_content",r),o&&s.append("use_ql",null!=o&&o),i&&s.append("search_metadata",i),"any"!==a&&s.append("visit_type",a),window.location=Urls.browse_search()+"?"+s.toString()}else$(t.target).addClass("was-validated")})),$("#origins-next-results-button").click((function(t){$("#origins-next-results-button").hasClass("disabled")||h||(h=!0,u.push(f),y(l),t.preventDefault())})),$("#origins-prev-results-button").click((function(t){$("#origins-prev-results-button").hasClass("disabled")||h||(h=!0,y(u.pop()),t.preventDefault())})),window.location.search){vart=newURLSearchParams(window.location.search),e=t.get("q"),n=t.has("with_visit"),r=t.has("use_ql"),o=t.has("with_content"),i=t.has("search_metadata"),a=t.get("visit_type");$("#swh-origins-url-patterns").val(e),$("#swh-search-origins-with-visit").prop("checked",n),$("#swh-search-use-ql").prop("checked",null!=r&&r),$("#swh-filter-empty-visits").prop("checked",o),$("#swh-search-origin-metadata").prop("checked",i),a&&$("#swh-search-visit-type").val(a),function(){x.apply(this,arguments)}()}}))}},26424:function(t,e,n){"use strict";functionr(t,e){functionn(){$(".swh-releases-switch").removeClass("active"),$(".swh-branches-switch").addClass("active"),$("#swh-tab-releases").removeClass("active"),$("#swh-tab-branches").addClass("active")}functionr(){$(".swh-branches-switch").removeClass("active"),$(".swh-releases-switch").addClass("active"),$("#swh-tab-branches").removeClass("active"),$("#swh-tab-releases").addClass("active")}$(document).ready((function(){$(".dropdown-menu a.swh-branches-switch").click((function(t){n(),t.stopPropagation()})),$(".dropdown-menu a.swh-releases-switch").click((function(t){r(),t.stopPropagation()}));varo=!1;$("#swh-branches-releases-dd").on("show.bs.dropdown",(function(){if(!o){vart=$(".swh-branches-releases").width();$(".swh-branches-releases").width(t+25),o=!0}})),t&&(e?n():r())}))}n.d(e,{a:function(){returnr}})},70533:function(t,e,n){"use strict";n.d(e,{Z:function(){returna},_:function(){returns}});varr=n(42152),o=n.n(r),i=(n(14547),n(86515));functiona(t){t.preventDefault(),$(t.target).tab("show")}functions(t){t.stopPropagation();vare=$(t.target).closest(".swhid-ui").find(".swhid"),n=$(t.target).data("swhid-with-context"),r=$(t.target).data("swhid-with-context-url"),o=e.text();if($(t.target).prop("checked"))e.attr("href",r),o=n.replace(/;/g,";\n");else{vari=o.indexOf(";");-1!==i&&(o=o.slice(0,i)),e.attr("href","/"+o)}e.text(o),c()}functionc(){for(vart=$("#swhid-tab-content").find(".swhid"),e=t.text().replace(/;\n/g,";"),n=[],r=";lines=",o=newRegExp(/L(\d+)/g),i=o.exec(window.location.hash);i;)n.push(parseInt(i[1])),i=o.exec(window.location.hash);n.length>0&&(r+=n[0]),n.length>1&&(r+="-"+n[1]),$("#swhid-context-option-content").prop("checked")&&(e=e.replace(/;lines=\d+-*\d*/g,""),n.length>0&&(e+=r),t.text(e.replace(/;/g,";\n")),t.attr("href","/"+e))}$(document).ready((function(){new(o())(".btn-swhid-copy",{text:function(t){return$(t).closest(".swhid-ui").find(".swhid").text().replace(/;\n/g,";")}}),new(o())(".btn-swhid-url-copy",{text:function(t){vare=$(t).closest(".swhid-ui").find(".swhid").attr("href");returnwindow.location.origin+e}}),.7*window.innerWidth>1e3&&$("#swh-identifiers").css("width","1000px");vart={tabLocation:"right",clickScreenToCloseFilters:[function(){return$(".introjs-overlay").length>0},".ui-slideouttab-panel",".modal"],offset:function(){return$(window).width()<i.Fg?"250px":"200px"}};(window.innerHeight<600||window.innerWidth<500)&&(t.otherOffset="20px"),$("#swh-identifiers").tabSlideOut(t),$("#swh-identifiers").addClass("d-none d-sm-block"),$(".swhid-context-option").trigger("click"),$(window).on("hashchange",(function(){c()})),$("body").click((function(){c()}))}))},42152:function(t){vare;e=function(){returnfunction(){vart={686:function(t,e,n){"use strict";n.d(e,{default:function(){returnk}});varr=n(279),o=n.n(r),i=n(370),a=n.n(i),s=n(817),c=n.n(s);functionu(t){try{returndocument.execCommand(t)}catch(t){return!1}}varl=function(t){vare=c()(t);returnu("cut"),e},f=function(t,e){varn=function(t){vare="rtl"===document.documentElement.getAttribute("dir"),n=document.createElement("textarea");n.style.fontSize="12pt",n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[e?"right":"left"]="-9999px";varr=window.pageYOffset||document.documentElement.scrollTop;returnn.style.top="".concat(r,"px"),n.setAttribute("readonly",""),n.value=t,n}(t);e.container.appendChild(n);varr=c()(n);returnu("copy"),n.remove(),r},h=function(t){vare=arguments.length>1&&void0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"==typeoft?n=f(t,e):tinstanceofHTMLInputElement&&!["text","search","url","tel","password"].includes(null==t?void0:t.type)?n=f(t.value,e):(n=c()(t),u("copy")),n};functiond(t){returnd="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(t){returntypeoft}:function(t){returnt&&"function"==typeofSymbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeoft},d(t)}varp=function(){vart=arguments.length>0&&void0!==arguments[0]?arguments[0]:{},e=t.action,n=void0===e?"copy":e,r=t.container,o=t.target,i=t.text;if("copy"!==n&&"cut"!==n)thrownewError('Invalid "action" value, use either "copy" or "cut"');if(void0!==o){if(!o||"object"!==d(o)||1!==o.nodeType)thrownewError('Invalid "target" value, use a valid Element');if("copy"===n&&o.hasAttribute("disabled"))thrownewError('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(o.hasAttribute("readonly")||o.hasAttribute("disabled")))thrownewError('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}returni?h(i,{container:r}):o?"cut"===n?l(o):h(o,{container:r}):void0};functionv(t){returnv="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(t){returntypeoft}:function(t){returnt&&"function"==typeofSymbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeoft},v(t)}functionw(t,e){for(varn=0;n<e.length;n++){varr=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"inr&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}functiong(t,e){returng=Object.setPrototypeOf||function(t,e){returnt.__proto__=e,t},g(t,e)}functionm(t){vare=function(){if("undefined"==typeofReflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeofProxy)return!0;try{returnDate.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();returnfunction(){varn,r=b(t);if(e){varo=b(this).constructor;n=Reflect.construct(r,arguments,o)}elsen=r.apply(this,arguments);returny(this,n)}}functiony(t,e){return!e||"object"!==v(e)&&"function"!=typeofe?function(t){if(void0===t)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");returnt}(t):e}functionb(t){returnb=Object.setPrototypeOf?Object.getPrototypeOf:function(t){returnt.__proto__||Object.getPrototypeOf(t)},b(t)}functionx(t,e){varn="data-clipboard-".concat(t);if(e.hasAttribute(n))returne.getAttribute(n)}var$=function(t){!function(t,e){if("function"!=typeofe&&null!==e)thrownewTypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&g(t,e)}(i,t);vare,n,r,o=m(i);functioni(t,e){varn;returnfunction(t,e){if(!(tinstanceofe))thrownewTypeError("Cannot call a class as a function")}(this,i),(n=o.call(this)).resolveOptions(e),n.listenClick(t),n}returne=i,n=[{key:"resolveOptions",value:function(){vart=arguments.length>0&&void0!==arguments[0]?arguments[0]:{};this.action="function"==typeoft.action?t.action:this.defaultAction,this.target="function"==typeoft.target?t.target:this.defaultTarget,this.text="function"==typeoft.text?t.text:this.defaultText,this.container="object"===v(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){vare=this;this.listener=a()(t,"click",(function(t){returne.onClick(t)}))}},{key:"onClick",value:function(t){vare=t.delegateTarget||t.currentTarget,n=this.action(e)||"copy",r=p({action:n,container:this.container,target:this.target(e),text:this.text(e)});this.emit(r?"success":"error",{action:n,text:r,trigger:e,clearSelection:function(){e&&e.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(t){returnx("action",t)}},{key:"defaultTarget",value:function(t){vare=x("target",t);if(e)returndocument.querySelector(e)}},{key:"defaultText",value:function(t){returnx("text",t)}},{key:"destroy",value:function(){this.listener.destroy()}}],r=[{key:"copy",value:function(t){vare=arguments.length>1&&void0!==arguments[1]?arguments[1]:{container:document.body};returnh(t,e)}},{key:"cut",value:function(t){returnl(t)}},{key:"isSupported",value:function(){vart=arguments.length>0&&void0!==arguments[0]?arguments[0]:["copy","cut"],e="string"==typeoft?[t]:t,n=!!document.queryCommandSupported;returne.forEach((function(t){n=n&&!!document.queryCommandSupported(t)})),n}}],n&&w(e.prototype,n),r&&w(e,r),i}(o()),k=$},828:function(t){if("undefined"!=typeofElement&&!Element.prototype.matches){vare=Element.prototype;e.matches=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}t.exports=function(t,e){for(;t&&9!==t.nodeType;){if("function"==typeoft.matches&&t.matches(e))returnt;t=t.parentNode}}},438:function(t,e,n){varr=n(828);functiono(t,e,n,r,o){vara=i.apply(this,arguments);returnt.addEventListener(n,a,o),{destroy:function(){t.removeEventListener(n,a,o)}}}functioni(t,e,n,o){returnfunction(n){n.delegateTarget=r(n.target,e),n.delegateTarget&&o.call(t,n)}}t.exports=function(t,e,n,r,i){return"function"==typeoft.addEventListener?o.apply(null,arguments):"function"==typeofn?o.bind(null,document).apply(null,arguments):("string"==typeoft&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,(function(t){returno(t,e,n,r,i)})))}},879:function(t,e){e.node=function(t){returnvoid0!==t&&tinstanceofHTMLElement&&1===t.nodeType},e.nodeList=function(t){varn=Object.prototype.toString.call(t);returnvoid0!==t&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"int&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"==typeoft||tinstanceofString},e.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},370:function(t,e,n){varr=n(879),o=n(438);t.exports=function(t,e,n){if(!t&&!e&&!n)thrownewError("Missing required arguments");if(!r.string(e))thrownewTypeError("Second argument must be a String");if(!r.fn(n))thrownewTypeError("Third argument must be a Function");if(r.node(t))returnfunction(t,e,n){returnt.addEventListener(e,n),{destroy:function(){t.removeEventListener(e,n)}}}(t,e,n);if(r.nodeList(t))returnfunction(t,e,n){returnArray.prototype.forEach.call(t,(function(t){t.addEventListener(e,n)})),{destroy:function(){Array.prototype.forEach.call(t,(function(t){t.removeEventListener(e,n)}))}}}(t,e,n);if(r.string(t))returnfunction(t,e,n){returno(document.body,t,e,n)}(t,e,n);thrownewTypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},817:function(t){t.exports=function(t){vare;if("SELECT"===t.nodeName)t.focus(),e=t.value;elseif("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){varn=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();varr=window.getSelection(),o=document.createRange();o.selectNodeContents(t),r.removeAllRanges(),r.addRange(o),e=r.toString()}returne}},279:function(t){functione(){}e.prototype={on:function(t,e,n){varr=this.e||(this.e={});return(r[t]||(r[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){varr=this;functiono(){r.off(t,o),e.apply(n,arguments)}returno._=e,this.on(t,o,n)},emit:function(t){for(vare=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),r=0,o=n.length;r<o;r++)n[r].fn.apply(n[r].ctx,e);returnthis},off:function(t,e){varn=this.e||(this.e={}),r=n[t],o=[];if(r&&e)for(vari=0,a=r.length;i<a;i++)r[i].fn!==e&&r[i].fn._!==e&&o.push(r[i]);returno.length?n[t]=o:deleten[t],this}},t.exports=e,t.exports.TinyEmitter=e}},e={};functionn(r){if(e[r])returne[r].exports;varo=e[r]={exports:{}};returnt[r](o,o.exports,n),o.exports}returnn.n=function(t){vare=t&&t.__esModule?function(){returnt.default}:function(){returnt};returnn.d(e,{a:e}),e},n.d=function(t,e){for(varrine)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=function(t,e){returnObject.prototype.hasOwnProperty.call(t,e)},n(686)}().default},t.exports=e()},35666:function(t){vare=function(t){"use strict";vare,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeofSymbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";functionc(t,e,n){returnObject.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){returnt[e]=n}}functionu(t,e,n,r){varo=e&&e.prototypeinstanceofw?e:w,i=Object.create(o.prototype),a=newC(r||[]);returni._invoke=function(t,e,n){varr=f;returnfunction(o,i){if(r===d)thrownewError("Generator is already running");if(r===p){if("throw"===o)throwi;returnL()}for(n.method=o,n.arg=i;;){vara=n.delegate;if(a){vars=_(a,n);if(s){if(s===v)continue;returns}}if("next"===n.method)n.sent=n._sent=n.arg;elseif("throw"===n.method){if(r===f)throwr=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;varc=l(t,e,n);if("normal"===c.type){if(r=n.done?p:h,c.arg===v)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=p,n.method="throw",n.arg=c.arg)}}}(t,n,a),i}functionl(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;varf="suspendedStart",h="suspendedYield",d="executing",p="completed",v={};functionw(){}functiong(){}functionm(){}vary={};y[i]=function(){returnthis};varb=Object.getPrototypeOf,x=b&&b(b(T([])));x&&x!==n&&r.call(x,i)&&(y=x);var$=m.prototype=w.prototype=Object.create(y);functionk(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){returnthis._invoke(e,t)}))}))}functionS(t,e){functionn(o,i,a,s){varc=l(t[o],t,i);if("throw"!==c.type){varu=c.arg,f=u.value;returnf&&"object"==typeoff&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){returnn("throw",t,a,s)}))}s(c.arg)}varo;this._invoke=function(t,r){functioni(){returnnewe((function(e,o){n(t,r,e,o)}))}returno=o?o.then(i,i):i()}}function_(t,n){varr=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,_(t,n),"throw"===n.method))returnv;n.method="throw",n.arg=newTypeError("The iterator does not provide a 'throw' method")}returnv}varo=l(r,t.iterator,n.arg);if("throw"===o.type)returnn.method="throw",n.arg=o.arg,n.delegate=null,v;vari=o.arg;returni?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):i:(n.method="throw",n.arg=newTypeError("iterator result is not an object"),n.delegate=null,v)}functionE(t){vare={tryLoc:t[0]};1int&&(e.catchLoc=t[1]),2int&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}functionO(t){vare=t.completion||{};e.type="normal",deletee.arg,t.completion=e}functionC(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}functionT(t){if(t){varn=t[i];if(n)returnn.call(t);if("function"==typeoft.next)returnt;if(!isNaN(t.length)){varo=-1,a=functionn(){for(;++o<t.length;)if(r.call(t,o))returnn.value=t[o],n.done=!1,n;returnn.value=e,n.done=!0,n};returna.next=a}}return{next:L}}functionL(){return{value:e,done:!0}}returng.prototype=$.constructor=m,m.constructor=g,g.displayName=c(m,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){vare="function"==typeoft&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){returnObject.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,c(t,s,"GeneratorFunction")),t.prototype=Object.create($),t},t.awrap=function(t){return{__await:t}},k(S.prototype),S.prototype[a]=function(){returnthis},t.AsyncIterator=S,t.async=function(e,n,r,o,i){void0===i&&(i=Promise);vara=newS(u(e,n,r,o),i);returnt.isGeneratorFunction(n)?a:a.next().then((function(t){returnt.done?t.value:a.next()}))},k($),c($,s,"Generator"),$[i]=function(){returnthis},$.toString=function(){return"[object Generator]"},t.keys=function(t){vare=[];for(varnint)e.push(n);returne.reverse(),functionn(){for(;e.length;){varr=e.pop();if(rint)returnn.value=r,n.done=!1,n}returnn.done=!0,n}},t.values=T,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(varninthis)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;vart=this.tryEntries[0].completion;if("throw"===t.type)throwt.arg;returnthis.rval},dispatchException:function(t){if(this.done)throwt;varn=this;functiono(r,o){returns.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(vari=this.tryEntries.length-1;i>=0;--i){vara=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)returno("end");if(a.tryLoc<=this.prev){varc=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)returno(a.catchLoc,!0);if(this.prev<a.finallyLoc)returno(a.finallyLoc)}elseif(c){if(this.prev<a.catchLoc)returno(a.catchLoc,!0)}else{if(!u)thrownewError("try statement without catch or finally");if(this.prev<a.finallyLoc)returno(a.finallyLoc)}}}},abrupt:function(t,e){for(varn=this.tryEntries.length-1;n>=0;--n){varo=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){vari=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);vara=i?i.completion:{};returna.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throwt.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(vare=this.tryEntries.length-1;e>=0;--e){varn=this.tryEntries[e];if(n.finallyLoc===t)returnthis.complete(n.completion,n.afterLoc),O(n),v}},catch:function(t){for(vare=this.tryEntries.length-1;e>=0;--e){varn=this.tryEntries[e];if(n.tryLoc===t){varr=n.completion;if("throw"===r.type){varo=r.arg;O(n)}returno}}thrownewError("illegal catch attempt")},delegateYield:function(t,n,r){returnthis.delegate={iterator:T(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}},15861:function(t,e,n){"use strict";functionr(t,e,n,r,o,i,a){try{vars=t[i](a),c=s.value}catch(t){returnvoidn(t)}s.done?e(c):Promise.resolve(c).then(r,o)}functiono(t){returnfunction(){vare=this,n=arguments;returnnewPromise((function(o,i){vara=t.apply(e,n);functions(t){r(a,o,i,s,c,"next",t)}functionc(t){r(a,o,i,s,c,"throw",t)}s(void0)}))}}n.d(e,{Z:function(){returno}})},31955:function(){"use strict";functiont(t){for(vare=1;e<arguments.length;e++){varn=arguments[e];for(varrinn)t[r]=n[r]}returnt}(functione(n,r){functiono(e,o,i){if("undefined"!=typeofdocument){"number"==typeof(i=t({},r,i)).expires&&(i.expires=newDate(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);vara="";for(varsini)i[s]&&(a+="; "+s,!0!==i[s]&&(a+="="+i[s].split(";")[0]));returndocument.cookie=e+"="+n.write(o,e)+a}}returnObject.create({set:o,get:function(t){if("undefined"!=typeofdocument&&(!arguments.length||t)){for(vare=document.cookie?document.cookie.split("; "):[],r={},o=0;o<e.length;o++){vari=e[o].split("="),a=i.slice(1).join("=");try{vars=decodeURIComponent(i[0]);if(r[s]=n.read(a,s),t===s)break}catch(t){}}returnt?r[t]:r}},remove:function(e,n){o(e,"",t({},n,{expires:-1}))},withAttributes:function(n){returne(this.converter,t({},this.attributes,n))},withConverter:function(n){returne(t({},this.converter,n),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(n)}})})({read:function(t){return'"'===t[0]&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){returnencodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})}},e={};functionn(r){varo=e[r];if(void0!==o)returno.exports;vari=e[r]={exports:{}};returnt[r].call(i.exports,i,i.exports,n),i.exports}n.n=function(t){vare=t&&t.__esModule?function(){returnt.default}:function(){returnt};returnn.d(e,{a:e}),e},n.d=function(t,e){for(varrine)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeofglobalThis)returnglobalThis;try{returnthis||newFunction("return this")()}catch(t){if("object"==typeofwindow)returnwindow}}(),n.o=function(t,e){returnObject.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeofSymbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};varr,o={};return(r="undefined"!=typeofwindow?window:void0!==n.g?n.g:"undefined"!=typeofself?self:{}).SENTRY_RELEASE={id:"0.1.1"},r.SENTRY_RELEASES=r.SENTRY_RELEASES||{},r.SENTRY_RELEASES["swh-webapp@swh"]={id:"0.1.1"},function(){"use strict";n.r(o),n.d(o,{initBrowseNavbar:function(){returnt.E},initOriginSearch:function(){returnr.A},initSnapshotNavigation:function(){returni.a},showIframeInfoModal:function(){returne.j},swhIdContextOptionToggled:function(){returna._},swhIdObjectTypeToggled:function(){returna.Z}});vart=n(69840),e=n(11555),r=n(8656),i=n(26424),a=n(70533)}(),o}()}));