1import{a as z}from"./FileSaver.min-Ce7lHByP.js";import"./components-C_ZgTcQ5.js";var d=ee(),D=te(),j=ne(),M=re(),W={imagePlaceholder:void 0,cacheBust:!1,useCredentials:!1,httpTimeout:3e4},b={toSvg:H,toPng:G,toJpeg:_,toBlob:q,toPixelData:$,toCanvas:J,impl:{fontFaces:j,images:M,util:d,inliner:D,options:{}}};const B=window.getComputedStyle,X=window.atob;function H(n,e){return e=e||{},K(e),Promise.resolve(n).then(function(o){return N(o,e.filter,!0,!e.raster)}).then(Y).then(Q).then(r).then(function(o){return Z(o,e.width||d.width(n),e.height||d.height(n))});function r(o){e.bgcolor&&(o.style.backgroundColor=e.bgcolor),e.width&&(o.style.width=e.width+"px"),e.height&&(o.style.height=e.height+"px"),e.style&&Object.keys(e.style).forEach(function(i){o.style[i]=e.style[i]});var l=null;return typeof e.onclone=="function"&&(l=e.onclone(o)),Promise.resolve(l).then(function(){return o})}}function $(n,e){return e=e||{},e.raster=!0,V(n,e).then(function(r){return r.getContext("2d").getImageData(0,0,d.width(n),d.height(n)).data})}function G(n,e){return e=e||{},e.raster=!0,V(n,e).then(function(r){return r.toDataURL()})}function _(n,e){return e=e||{},e.raster=!0,V(n,e).then(function(r){return r.toDataURL("image/jpeg",e.quality||1)})}function q(n,e){return e=e||{},e.raster=!0,V(n,e).then(d.canvasToBlob)}function J(n,e){return e=e||{},e.raster=!0,V(n,e||{})}function K(n){typeof n.imagePlaceholder>"u"?b.impl.options.imagePlaceholder=W.imagePlaceholder:b.impl.options.imagePlaceholder=n.imagePlaceholder,typeof n.cacheBust>"u"?b.impl.options.cacheBust=W.cacheBust:b.impl.options.cacheBust=n.cacheBust,typeof n.useCredentials>"u"?b.impl.options.useCredentials=W.useCredentials:b.impl.options.useCredentials=n.useCredentials}function V(n,e){return H(n,e).then(d.makeImage).then(d.delay(200)).then(function(o){var l=typeof e.scale!="number"?1:e.scale,i=r(n,l),s=i.getContext("2d");return s.mozImageSmoothingEnabled=!1,s.msImageSmoothingEnabled=!1,s.imageSmoothingEnabled=!1,o&&(s.scale(l,l),s.drawImage(o,0,0)),ue(),i});function r(o,l){var i=document.createElement("canvas");if(i.width=(e.width||d.width(o))*l,i.height=(e.height||d.height(o))*l,e.bgcolor){var s=i.getContext("2d");s.fillStyle=e.bgcolor,s.fillRect(0,0,i.width,i.height)}return i}}function N(n,e,r,o,l=null){if(!r&&e&&!e(n))return Promise.resolve();return Promise.resolve(n).then(i).then(function(a){return s(n,a)}).then(function(a){return c(n,a,o)});function i(a){return a instanceof HTMLCanvasElement?d.makeImage(a.toDataURL()):a.nodeName==="IFRAME"?html2canvas(a.contentDocument.body).then(g=>g.toDataURL()).then(d.makeImage):a.cloneNode(!1)}function s(a,g){var y=a.childNodes;if(y.length===0)return Promise.resolve(g);return S(g,d.asArray(y)).then(function(){return g});function S(A,x){var T=B(a),w=Promise.resolve();return x.forEach(function(v){w=w.then(function(){return N(v,e,!1,o,T)}).then(function(f){f&&A.appendChild(f)})}),w}}function c(a,g,y){if(!(g instanceof Element))return g;return Promise.resolve().then(S).then(A).then(x).then(T).then(function(){return g});function S(){v(a,g);function w(f,t){t.font=f.font,t.fontFamily=f.fontFamily,t.fontFeatureSettings=f.fontFeatureSettings,t.fontKerning=f.fontKerning,t.fontSize=f.fontSize,t.fontStretch=f.fontStretch,t.fontStyle=f.fontStyle,t.fontVariant=f.fontVariant,t.fontVariantCaps=f.fontVariantCaps,t.fontVariantEastAsian=f.fontVariantEastAsian,t.fontVariantLigatures=f.fontVariantLigatures,t.fontVariantNumeric=f.fontVariantNumeric,t.fontVariationSettings=f.fontVariationSettings,t.fontWeight=f.fontWeight}function v(f,t){var u=B(f);u.cssText?(t.style.cssText=u.cssText,w(u,t.style)):(y?ie(f,u,t,r):oe(u,l,t),r&&(["inset-block","inset-block-start","inset-block-end"].forEach(h=>t.style.removeProperty(h)),["left","right","top","bottom"].forEach(h=>{t.style.getPropertyValue(h)&&t.style.setProperty(h,"0px")})))}}function A(){[":before",":after"].forEach(function(v){w(v)});function w(v){var f=B(a,v),t=f.getPropertyValue("content");if(t===""||t==="none")return;var u=d.uid(),h=g.getAttribute("class");h&&g.setAttribute("class",h+" "+u);var m=document.createElement("style");m.appendChild(p()),g.appendChild(m);function p(){var C="."+u+":"+v,F=f.cssText?k():I();return document.createTextNode(C+"{"+F+"}");function k(){return f.cssText+" content: "+f.getPropertyValue("content")+";"}function I(){return d.asArray(f).map(E).join("; ")+";";function E(U){return U+": "+f.getPropertyValue(U)+(f.getPropertyPriority(U)?" !important":"")}}}}}function x(){a instanceof HTMLTextAreaElement&&(g.innerHTML=a.value),a instanceof HTMLInputElement&&g.setAttribute("value",a.value)}function T(){g instanceof SVGElement&&(g.setAttribute("xmlns","http://www.w3.org/2000/svg"),g instanceof SVGRectElement&&["width","height"].forEach(function(w){var v=g.getAttribute(w);v&&g.style.setProperty(w,v)}))}}}function Y(n){return j.resolveAll().then(function(e){var r=document.createElement("style");return n.appendChild(r),r.appendChild(document.createTextNode(e)),n})}function Q(n){return M.inlineAll(n).then(function(){return n})}function Z(n,e,r){return Promise.resolve(n).then(function(o){return o.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),new XMLSerializer().serializeToString(o)}).then(d.escapeXhtml).then(function(o){return'<foreignObject x="0" y="0" width="100%" height="100%">'+o+"</foreignObject>"}).then(function(o){return'<svg xmlns="http://www.w3.org/2000/svg" width="'+e+'" height="'+r+'">'+o+"</svg>"}).then(function(o){return"data:image/svg+xml;charset=utf-8,"+o})}function ee(){return{escape:S,parseExtension:e,mimeType:r,dataAsUrl:y,isDataUrl:o,canvasToBlob:i,resolveUrl:s,getAndEncode:g,uid:c(),delay:A,asArray:x,escapeXhtml:T,makeImage:a,width:w,height:v};function n(){var t="application/font-woff",u="image/jpeg";return{woff:t,woff2:t,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:u,jpeg:u,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"}}function e(t){var u=/\.([^\.\/]*?)(\?|$)/g.exec(t);return u?u[1]:""}function r(t){var u=e(t).toLowerCase();return n()[u]||""}function o(t){return t.search(/^(data:)/)!==-1}function l(t){return new Promise(function(u){for(var h=X(t.toDataURL().split(",")[1]),m=h.length,p=new Uint8Array(m),C=0;C<m;
1C++)p[C]=h.charCodeAt(C);u(new Blob([p],{type:"image/png"}))})}function i(t){return t.toBlob?new Promise(function(u){t.toBlob(u)}):l(t)}function s(t,u){var h=document.implementation.createHTMLDocument(),m=h.createElement("base");h.head.appendChild(m);var p=h.createElement("a");return h.body.appendChild(p),m.href=u,p.href=t,p.href}function c(){var t=0;return function(){return"u"+u()+t++;function u(){return("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4)}}}function a(t){return t==="data:,"?Promise.resolve():new Promise(function(u,h){var m=new Image;b.impl.options.useCredentials&&(m.crossOrigin="use-credentials"),m.onload=function(){u(m)},m.onerror=h,m.src=t})}function g(t){return b.impl.options.cacheBust&&(t+=(/\?/.test(t)?"&":"?")+new Date().getTime()),new Promise(function(u){var h=b.impl.options.httpTimeout,m=new XMLHttpRequest;m.onreadystatechange=F,m.ontimeout=k,m.responseType="blob",m.timeout=h,b.impl.options.useCredentials&&(m.withCredentials=!0),m.open("GET",t,!0),m.send();var p;if(b.impl.options.imagePlaceholder){var C=b.impl.options.imagePlaceholder.split(/,/);C&&C[1]&&(p=C[1])}function F(){if(m.readyState===4){if(m.status!==200){p?u(p):I("cannot fetch resource: "+t+", status: "+m.status);return}var E=new FileReader;E.onloadend=function(){var U=E.result.split(/,/)[1];u(U)},E.readAsDataURL(m.response)}}function k(){p?u(p):I("timeout of "+h+"ms occured while fetching resource: "+t)}function I(E){console.error(E),u("")}})}function y(t,u){return"data:"+u+";base64,"+t}function S(t){return t.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1")}function A(t){return function(u){return new Promise(function(h){setTimeout(function(){h(u)},t)})}}function x(t){for(var u=[],h=t.length,m=0;m<h;m++)u.push(t[m]);return u}function T(t){return t.replace(/%/g,"%25").replace(/#/g,"%23").replace(/\n/g,"%0A")}function w(t){var u=f(t,"border-left-width"),h=f(t,"border-right-width");return t.scrollWidth+u+h}function v(t){var u=f(t,"border-top-width"),h=f(t,"border-bottom-width");return t.scrollHeight+u+h}function f(t,u){var h=B(t).getPropertyValue(u);return parseFloat(h.replace("px",""))}}function te(){var n=/url\(['"]?([^'"]+?)['"]?\)/g;return{inlineAll:l,shouldProcess:e,impl:{readUrls:r,inline:o}};function e(i){return i.search(n)!==-1}function r(i){for(var s=[],c;(c=n.exec(i))!==null;)s.push(c[1]);return s.filter(function(a){return!d.isDataUrl(a)})}function o(i,s,c,a){return Promise.resolve(s).then(function(y){return c?d.resolveUrl(y,c):y}).then(a||d.getAndEncode).then(function(y){return d.dataAsUrl(y,d.mimeType(s))}).then(function(y){return i.replace(g(s),"$1"+y+"$3")});function g(y){return new RegExp(`(url\\(['"]?)(`+d.escape(y)+`)(['"]?\\))`,"g")}}function l(i,s,c){if(a())return Promise.resolve(i);return Promise.resolve(i).then(r).then(function(g){var y=Promise.resolve(i);return g.forEach(function(S){y=y.then(function(A){return o(A,S,s,c)})}),y});function a(){return!e(i)}}}function ne(){return{resolveAll:n,impl:{readAll:e}};function n(){return e().then(function(r){return Promise.all(r.map(function(o){return o.resolve()}))}).then(function(r){return r.join(` 2`)})}function e(){return Promise.resolve(d.asArray(document.styleSheets)).then(o).then(r).then(function(i){return i.map(l)});function r(i){return i.filter(function(s){return s.type===CSSRule.FONT_FACE_RULE}).filter(function(s){return D.shouldProcess(s.style.getPropertyValue("src"))})}function o(i){var s=[];return i.forEach(function(c){if(Object.getPrototypeOf(c).hasOwnProperty("cssRules"))try{d.asArray(c.cssRules||[]).forEach(s.push.bind(s))}catch(a){console.log("Error while reading CSS rules from "+c.href,a.toString())}}),s}function l(i){return{resolve:function(){var c=(i.parentStyleSheet||{}).href;return D.inlineAll(i.cssText,c)},src:function(){return i.style.getPropertyValue("src")}}}}}function re(){return{inlineAll:e,impl:{newImage:n}};function n(r){return{inline:o};function o(l){return d.isDataUrl(r.src)?Promise.resolve():Promise.resolve(r.src).then(l||d.getAndEncode).then(function(i){return d.dataAsUrl(i,d.mimeType(r.src))}).then(function(i){return new Promise(function(s){const c=new Image;c.onload=s,c.onerror=s,r.src=i,c.src=i})})}}function e(r){if(!(r instanceof Element))return Promise.resolve(r);return o(r).then(function(){return r instanceof HTMLImageElement?n(r).inline():Promise.all(d.asArray(r.childNodes).map(function(l){return e(l)}))});function o(l){var i=l.style.getPropertyValue("background");
2return i?D.inlineAll(i).then(function(s){l.style.setProperty("background",s,i)}).then(function(){return l}):Promise.resolve(l)}}}function ie(n,e,r,o){var l=r.style,i=n.style;const s=l.borderWidth,c=s&&s!=="0px";for(var a of e)if(!(a.includes("transform")||["width","height","block-size"].includes(a))){var g=e.getPropertyValue(a),y=i.getPropertyValue(a);i.setProperty(a,o?"initial":"unset");var S=e.getPropertyValue(a);S!==g?l.setProperty(a,g):l.removeProperty(a),["border-style","border-block-style","border-inline-end-style","border-inline-start-style","border-bottom-style","border-top-style","border-left-style","border-right-style"].includes(a)&&!c&&l.removeProperty(a),i.setProperty(a,y)}}function oe(n,e,r){var o=ae(r.tagName),l=r.style;const i=l.borderWidth,s=i&&i!=="0px";d.asArray(n).forEach(function(c){if(!["width","height","block-size"].includes(c)){var a=n.getPropertyValue(c);(a!==o[c]||e&&a!==e.getPropertyValue(c))&&l.setProperty(c,a,n.getPropertyPriority(c))}}),s||["border-style","border-block-style","border-inline-end-style","border-inline-start-style","border-bottom-style","border-top-style","border-left-style","border-right-style"].forEach(function(c){l.removeProperty(c)})}var R=null,P=null,L={};function ae(n){if(L[n])return L[n];P||(P=document.createElement("iframe"),P.style.visibility="hidden",P.style.position="fixed",document.body.appendChild(P),P.contentWindow.document.write('
2<!DOCTYPE html><meta charset="UTF-8"><title>sandbox</title><body>'));var e=document.createElement(n);P.contentWindow.document.body.appendChild(e),e.textContent=".";var r=P.contentWindow.getComputedStyle(e),o={};return d.asArray(r).forEach(function(l){o[l]=l==="width"||l==="height"?"auto":r.getPropertyValue(l)}),P.contentWindow.document.body.removeChild(e),L[n]=o,o}function ue(){P&&(document.body.removeChild(P),P=null,R&&clearTimeout(R),R=setTimeout(()=>{R=null,L={}},20*1e3))}const{toBlob:le}=b,se=n=>{var e;return!((e=n.dataset)!=null&&e.ignoreScreenshot)};async function O(n,e=!0){let r=null;try{r=await le(n,{scale:2,raster:!0,filter:se,style:{marginInline:"0",marginLeft:"0",marginRight:"0",marginInlineStart:"0",marginInlineEnd:"0",borderWidth:"0",borderStyle:"none",borderColor:"transparent"}})}catch(c){console.error(c)}if(!r||!e)return r;const l=(window.URL||window.webkitURL).createObjectURL(r),i=document.createElement("img");return i.src=l,await new Promise(c=>{i.onload=()=>{O(n,!1).then(c)}})}async function de(n,e){const r=await O(n);return r?(window.saveAs?window.saveAs(r,e):z.saveAs(r,e),!0):!1}async function he(n){return await O(n)}export{he as copyToClipboard,de as downloadAsPng};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.