"use strict";(self.webpackChunkpowerwiki=self.webpackChunkpowerwiki||[]).push([[2857],{62857(e,t,n){n.d(t,{captureNodeSizes:()=>u});var i=n(86827);function o(){if("undefined"!=typeof globalThis)return globalThis}function r(){return"undefined"==typeof location?"browser-dev":`${location.pathname}${location.search}`}function a(e,t){const n=o();if(!n)return;const i=t.node(),r=(i&&"ownerSVGElement"in i?i.ownerSVGElement:null)??i,a=r?.id??"(unknown)";n.mermaidCapturedSizes??=[];const u={svgId:a,sizes:e};n.mermaidCapturedSizes.push(u),n.mermaidLastCapturedSizes=u}function u(e,t){const n=[];for(const e of t.nodes)e.isGroup||n.push({id:e.id,width:e.width??0,height:e.height??0});0!==n.length&&a({metadata:{captureVersion:1,capturedAt:(new Date).toISOString(),capturedFrom:r()},nodes:n},e)}(0,i.K)(o,"getCaptureGlobal"),(0,i.K)(function(){return Boolean(o()?.mermaidCaptureSizes)},"shouldCaptureSizes"),(0,i.K)(r,"capturedFromLocation"),(0,i.K)(a,"emitCapturedSizes"),(0,i.K)(u,"captureNodeSizes")}}]);