"use strict";(self.webpackChunkforgejo=self.webpackChunkforgejo||[]).push([["node_modules_mermaid_dist_chunks_mermaid_core_sizeCapture-X5ZJPWSS_mjs"],{"./node_modules/mermaid/dist/chunks/mermaid.core/sizeCapture-X5ZJPWSS.mjs":(function(h,m,u){u.d(m,{captureNodeSizes:function(){return a}});var n=u("./node_modules/mermaid/dist/chunks/mermaid.core/chunk-Y2CYZVJY.mjs"),p=1;function o(){if(!(typeof globalThis>"u"))return globalThis}(0,n.K)(o,"getCaptureGlobal");function _(){return!!o()?.mermaidCaptureSizes}(0,n.K)(_,"shouldCaptureSizes");function d(){return typeof location>"u"?"browser-dev":`${location.pathname}${location.search}`}(0,n.K)(d,"capturedFromLocation");function s(r,i){const e=o();if(!e)return;const t=i.node(),l=((t&&"ownerSVGElement"in t?t.ownerSVGElement:null)??t)?.id??"(unknown)";e.mermaidCapturedSizes??(e.mermaidCapturedSizes=[]);const c={svgId:l,sizes:r};e.mermaidCapturedSizes.push(c),e.mermaidLastCapturedSizes=c}(0,n.K)(s,"emitCapturedSizes");function a(r,i){const e=[];for(const t of i.nodes)t.isGroup||e.push({id:t.id,width:t.width??0,height:t.height??0});e.length!==0&&s({metadata:{captureVersion:p,capturedAt:new Date().toISOString(),capturedFrom:d()},nodes:e},r)}(0,n.K)(a,"captureNodeSizes")})}]);
