1import{P as Ft}from"./chunk-vBDoWlyaA3s2-propo.js";import{cm as Pt,ao as Gt,b0 as Xt,ba as Ht,aN as Yt,cZ as D,dI as Jt,dR as H,at as A,aL as Kt,d1 as bt,cO as z,az as Qt,dV as jt,ay as P,aI as Y,aC as E,cz as L,F as V,c_ as O,cs as K,aA as W,dF as Q,c8 as te,bZ as ee}from"./chunk-C9MwVHZDj8F9-rende.js";import{aJ as oe,C as ne,a7 as J,a5 as ie,aZ as se,_ as re}from"./chunk-BY8-DUITmgGY-_onpa.js";import{i as yt}from"./chunk-BmiWkJwjQ_s1-isele.js";/* empty css */function T(u){return+`${Math.round(`${u}e+2`)}e-2`}function ae(u,n,o){if(!n)return u;switch(u=Gt(u),u.type){case"pill":case"circle":{u.params.x=T(u.params.x/n),u.params.y=T(u.params.y/n),u.params.radius=T((u.params.radius??o)/n);break}case"polygon":{Xt(u.params.points,e=>{e.x=T(e.x/n),e.y=T(e.y/n)});break}case"group":{u.params.shapes=It(u.params.shapes,n,o);break}}return u}function It(u,n,o){return Pt(u,e=>ae(e,n,o))}function it(u){if(u.canvas&&u.context)return u;const n=document.createElement("canvas"),o=n.getContext("2d");return n.width=u.width,n.height=u.height,o.drawImage(u,0,0,u.width,u.height),{canvas:n,context:o}}function le(u,n,o){let e=n;e="image/webp";const{canvas:s}=it(u);return s.toDataURL(e)}function ue(u){const{canvas:n,context:o}=it(u);return{topLeft:o.getImageData(0,0,1,1).data,topRight:o.getImageData(n.width-1,0,1,1).data,bottomLeft:o.getImageData(0,n.height-1,1,1).data,bottomRight:o.getImageData(n.width-1,n.height-1,1,1).data}}var j,xt;function ce(){return xt||(xt=1,j=(function(){var u="",n,o,e,s=[],a={passive:!0},f={passive:!1};window.addEventListener?(n="addEventListener",o="removeEventListener"):(n="attachEvent",o="detachEvent",u="on"),e="onwheel"in document.createElement("div")?"wheel":document.onmousewheel!==void 0?"mousewheel":"DOMMouseScroll";function C(d,c){var b=function(x){!x&&(x=window.event);var B={originalEvent:x,target:x.target||x.srcElement,type:"wheel",deltaMode:x.type=="MozMousePixelScroll"?0:1,deltaX:0,delatZ:0,preventDefault:function(){x.preventDefault?x.preventDefault():x.returnValue=!1}};return e=="mousewheel"?(B.deltaY=-.025*x.wheelDelta,x.wheelDeltaX&&(B.deltaX=-.025*x.wheelDeltaX)):B.deltaY=x.detail,c(B)};return s.push({element:d,fn:b}),b}function g(d){for(var c=0;c<s.length;c++)if(s[c].element===d)return s[c].fn;return function(){}}function I(d){for(var c=0;c<s.length;c++)if(s[c].element===d)return s.splice(c,1)}function t(d,c,b,x){var B;e==="wheel"?B=b:B=C(d,b),d[n](u+c,B,x?a:f)}function i(d,c,b,x){var B;e==="wheel"?B=b:B=g(d),d[o](u+c,B,x?a:f),I(d)}function h(d,c,b){t(d,e,c,b),e=="DOMMouseScroll"&&t(d,"MozMousePixelScroll",c,b)}function v(d,c,b){i(d,e,c,b),e=="DOMMouseScroll"&&i(d,"MozMousePixelScroll",c,b)}return{on:h,off:v}})()),j}var tt,St;function st(){if(St)return tt;St=1,tt={extend:function(n,o){n=n||{};for(var e in o)this.isObject(o[e])?n[e]=this.extend(n[e],o[e]):n[e]=o[e];return n},isElement:function(n){return n instanceof HTMLElement||n instanceof SVGElement||n instanceof SVGSVGElement||n&&typeof n=="object"&&n!==null&&n.nodeType===1&&typeof n.nodeName=="string"},isObject:function(n){return Object.prototype.toString.call(n)==="[object Object]"},isNumber:function(n){return!isNaN(parseFloat(n))&&isFinite(n)},getSvg:function(n){var o,e;if(this.isElement(n))o=n;else if(typeof n=="string"||n instanceof String){if(o=document.querySelector(n),!o)throw new Error("Provided selector did not find any elements. Selector: "+n)}else throw new Error("Provided selector is not an HTML object nor String");if(o.tagName.toLowerCase()==="svg")e=o;else if(o.tagName.toLowerCase()==="object")e=o.contentDocument.documentElement;else if(o.tagName.toLowerCase()==="embed")e=o.getSVGDocument().documentElement;else throw o.tagName.toLowerCase()==="img"?new Error('Cannot script an SVG in an "img" element. Please use an "object" element or an in-line SVG.'):new Error("Cannot get SVG.");return e},proxy:function(n,o){return function(){return n.apply(o,arguments)}},getType:function(n){return Object.prototype.toString.apply(n).replace(/^\[object\s/,"").replace(/\]$/,"")},mouseAndTouchNormalize:function(n,o){if(n.clientX===void 0||n.clientX===null)if(n.clientX=0,n.clientY=0,n.touches!==void 0&&n.touches.length){if(n.touches[0].clientX!==void 0)n.clientX=n.touches[0].clientX,n.clientY=n.touches[0].clientY;else if(n.touches[0].pageX!==void 0){var e=o.getBoundingClientRect();n.clientX=n.touches[0].pageX-e.left,n.clientY=n.touches[0].pageY-e.top}}else n.originalEvent!==void 0&&n.originalEvent.clientX!==void 0&&(n.clientX=n.originalEvent.clientX,n.clientY=n.originalEvent.clientY)}
1,isDblClick:function(n,o){if(n.detail===2)return!0;if(o!=null){var e=n.timeStamp-o.timeStamp,s=Math.sqrt(Math.pow(n.clientX-o.clientX,2)+Math.pow(n.clientY-o.clientY,2));return e<250&&s<10}return!1},now:Date.now||function(){return new Date().getTime()},throttle:function(n,o,e){var s=this,a,f,C,g=null,I=0;e||(e={});var t=function(){I=e.leading===!1?0:s.now(),g=null,C=n.apply(a,f),g||(a=f=null)};return function(){var i=s.now();!I&&e.leading===!1&&(I=i);var h=o-(i-I);return a=this,f=arguments,h<=0||h>o?(clearTimeout(g),g=null,I=i,C=n.apply(a,f),g||(a=f=null)):!g&&e.trailing!==!1&&(g=setTimeout(t,h)),C}},createRequestAnimationFrame:function(n){var o=null;return n!=="auto"&&n<60&&n>1&&(o=Math.floor(1e3/n)),o===null?window.requestAnimationFrame||u(33):u(o)}};function u(n){return function(o){window.setTimeout(o,n)}}return tt}var $,Mt;function rt(){if(Mt)return $;Mt=1;var u=st(),n="unknown";return document.documentMode&&(n="ie"),$={svgNS:"http://www.w3.org/2000/svg",xmlNS:"http://www.w3.org/XML/1998/namespace",xmlnsNS:"http://www.w3.org/2000/xmlns/",xlinkNS:"http://www.w3.org/1999/xlink",evNS:"http://www.w3.org/2001/xml-events",getBoundingClientRectNormalized:function(o){if(o.clientWidth&&o.clientHeight)return{width:o.clientWidth,height:o.clientHeight};if(o.getBoundingClientRect())return o.getBoundingClientRect();throw new Error("Cannot get BoundingClientRect for SVG.")},getOrCreateViewport:function(o,e){var s=null;if(u.isElement(e)?s=e:s=o.querySelector(e),!s){var a=Array.prototype.slice.call(o.childNodes||o.children).filter(function(t){return t.nodeName!=="defs"&&t.nodeName!=="#text"});a.length===1&&a[0].nodeName==="g"&&a[0].getAttribute("transform")===null&&(s=a[0])}if(!s){var f="viewport-"+new Date().toISOString().replace(/\D/g,"");s=document.createElementNS(this.svgNS,"g"),s.setAttribute("id",f);var C=o.childNodes||o.children;if(C&&C.length>0)for(var g=C.length;g>0;g--)C[C.length-g].nodeName!=="defs"&&s.appendChild(C[C.length-g]);o.appendChild(s)}var I=[];return s.getAttribute("class")&&(I=s.getAttribute("class").split(" ")),~I.indexOf("svg-pan-zoom_viewport")||(I.push("svg-pan-zoom_viewport"),s.setAttribute("class",I.join(" "))),s},setupSvgAttributes:function(o){if(o.setAttribute("xmlns",this.svgNS),o.setAttributeNS(this.xmlnsNS,"xmlns:xlink",this.xlinkNS),o.setAttributeNS(this.xmlnsNS,"xmlns:ev",this.evNS),o.parentNode!==null){var e=o.getAttribute("style")||"";e.toLowerCase().indexOf("overflow")===-1&&o.setAttribute("style","overflow: hidden; "+e)}},internetExplorerRedisplayInterval:300,refreshDefsGlobal:u.throttle(function(){for(var o=document.querySelectorAll("defs"),e=o.length,s=0;s<e;s++){var a=o[s];a.parentNode.insertBefore(a,a)}},$?$.internetExplorerRedisplayInterval:null),setCTM:function(o,e,s){var a=this,f="matrix("+e.a+","+e.b+","+e.c+","+e.d+","+e.e+","+e.f+")";o.setAttributeNS(null,"transform",f),"transform"in o.style?o.style.transform=f:"-ms-transform"in o.style?o.style["-ms-transform"]=f:"-webkit-transform"in o.style&&(o.style["-webkit-transform"]=f),n==="ie"&&s&&(s.parentNode.insertBefore(s,s),window.setTimeout(function(){a.refreshDefsGlobal()},a.internetExplorerRedisplayInterval))},getEventPoint:function(o,e){var s=e.createSVGPoint();return u.mouseAndTouchNormalize(o,e),s.x=o.clientX,s.y=o.clientY,s},getSvgCenterPoint:function(o,e,s){return this.createSVGPoint(o,e/2,s/2)},createSVGPoint:function(o,e,s){var a=o.createSVGPoint();return a.x=e,a.y=s,a}},$}var et,Ct;function he(){if(Ct)return et;Ct=1;var u=rt();return et={enable:function(n){var o=n.svg.querySelector("defs");o||(o=document.createElementNS(u.svgNS,"defs"),n.svg.appendChild(o));var e=o.querySelector("style#svg-pan-zoom-controls-styles");if(!e){var s=document.createElementNS(u.svgNS,"style");s.setAttribute("id","svg-pan-zoom-controls-styles"),s.setAttribute("type","text/css"),s.textContent=".svg-pan-zoom-control { cursor: pointer; fill: black; fill-opacity: 0.333; } .svg-pan-zoom-control:hover { fill-opacity: 0.8; } .svg-pan-zoom-control-background { fill: white; fill-opacity: 0.5; } .svg-pan-zoom-control-background { fill-opacity: 0.8; }",o.appendChild(s)}var a=document.createElementNS(u.svgNS,"g");
1a.setAttribute("id","svg-pan-zoom-controls"),a.setAttribute("transform","translate("+(n.width-70)+" "+(n.height-76)+") scale(0.75)"),a.setAttribute("class","svg-pan-zoom-control"),a.appendChild(this._createZoomIn(n)),a.appendChild(this._createZoomReset(n)),a.appendChild(this._createZoomOut(n)),n.svg.appendChild(a),n.controlIcons=a},_createZoomIn:function(n){var o=document.createElementNS(u.svgNS,"g");o.setAttribute("id","svg-pan-zoom-zoom-in"),o.setAttribute("transform","translate(30.5 5) scale(0.015)"),o.setAttribute("class","svg-pan-zoom-control"),o.addEventListener("click",function(){n.getPublicInstance().zoomIn()},!1),o.addEventListener("touchstart",function(){n.getPublicInstance().zoomIn()},!1);var e=document.createElementNS(u.svgNS,"rect");e.setAttribute("x","0"),e.setAttribute("y","0"),e.setAttribute("width","1500"),e.setAttribute("height","1400"),e.setAttribute("class","svg-pan-zoom-control-background"),o.appendChild(e);var s=document.createElementNS(u.svgNS,"path");return s.setAttribute("d","M1280 576v128q0 26 -19 45t-45 19h-320v320q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-320h-320q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h320v-320q0 -26 19 -45t45 -19h128q26 0 45 19t19 45v320h320q26 0 45 19t19 45zM1536 1120v-960 q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z"),s.setAttribute("class","svg-pan-zoom-control-element"),o.appendChild(s),o},_createZoomReset:function(n){var o=document.createElementNS(u.svgNS,"g");o.setAttribute("id","svg-pan-zoom-reset-pan-zoom"),o.setAttribute("transform","translate(5 35) scale(0.4)"),o.setAttribute("class","svg-pan-zoom-control"),o.addEventListener("click",function(){n.getPublicInstance().reset()},!1),o.addEventListener("touchstart",function(){n.getPublicInstance().reset()},!1);var e=document.createElementNS(u.svgNS,"rect");e.setAttribute("x","2"),e.setAttribute("y","2"),e.setAttribute("width","182"),e.setAttribute("height","58"),e.setAttribute("class","svg-pan-zoom-control-background"),o.appendChild(e);var s=document.createElementNS(u.svgNS,"path");s.setAttribute("d","M33.051,20.632c-0.742-0.406-1.854-0.609-3.338-0.609h-7.969v9.281h7.769c1.543,0,2.701-0.188,3.473-0.562c1.365-0.656,2.048-1.953,2.048-3.891C35.032,22.757,34.372,21.351,33.051,20.632z"),s.setAttribute("class","svg-pan-zoom-control-element"),o.appendChild(s);var a=document.createElementNS(u.svgNS,"path");return a.setAttribute("d","M170.231,0.5H15.847C7.102,0.5,0.5,5.708,0.5,11.84v38.861C0.5,56.833,7.102,61.5,15.847,61.5h154.384c8.745,0,15.269-4.667,15.269-10.798V11.84C185.5,5.708,178.976,0.5,170.231,0.5z M42.837,48.569h-7.969c-0.219-0.766-0.375-1.383-0.469-1.852c-0.188-0.969-0.289-1.961-0.305-2.977l-0.047-3.211c-0.03-2.203-0.41-3.672-1.142-4.406c-0.732-0.734-2.103-1.102-4.113-1.102h-7.05v13.547h-7.055V14.022h16.524c2.361,0.047,4.178,0.344,5.45,0.891c1.272,0.547,2.351,1.352,3.234,2.414c0.731,0.875,1.31,1.844,1.737,2.906s0.64,2.273,0.64,3.633c0,1.641-0.414,3.254-1.242,4.84s-2.195,2.707-4.102,3.363c1.594,0.641,2.723,1.551,3.387,2.73s0.996,2.98,0.996,5.402v2.32c0,1.578,0.063,2.648,0.19,3.211c0.19,0.891,0.635,1.547,1.333,1.969V48.569z M75.579,48.569h-26.18V14.022h25.336v6.117H56.454v7.336h16.781v6H56.454v8.883h19.125V48.569z M104.497,46.331c-2.44,2.086-5.887,3.129-10.34,3.129c-4.548,0-8.125-1.027-10.731-3.082s-3.909-4.879-3.909-8.473h6.891c0.224,1.578,0.662,2.758,1.316,3.539c1.196,1.422,3.246,2.133,6.15,2.133c1.739,0,3.151-0.188,4.236-0.562c2.058-0.719,3.087-2.055,3.087-4.008c0-1.141-0.504-2.023-1.512-2.648c-1.008-0.609-2.607-1.148-4.796-1.617l-3.74-0.82c-3.676-0.812-6.201-1.695-7.576-2.648c-2.328-1.594-3.492-4.086-3.492-7.477c0-3.094,1.139-5.664,3.417-7.711s5.623-3.07,10.036-3.07c3.685,0,6.829,0.965,9.431,2.895c2.602,1.93,3.966,4.73,4.093,8.402h-6.938c-0.128-2.078-1.057-3.555-2.787-4.43c-1.154-0.578-2.587-0.867-4.301-0.867c-1.907,0-3.428,0.375-4.565,1.125c-1.138,0.75-1.706,1.797-1.706,3.141c0,1.234,0.561,2.156,1.682,2.766c0.721,0.406,2.25,0.883,4.589,1.43l6.063,1.43c2.657,0.625,4.648,1.461,5.975,2.508c2.059,1.625,3.089,3.977,3.089,7.055C108.157,41.624,106.937,44.245,104.497,46.331z M139.61,48.569h-26.18V14.022h25.336v6.117h-18.281v7.336h16.781v6h-16.781v8.883h19.125V48.569z M170.337,20.14h-10.336v28.43h-7.266V20.14h-10.383v-6.117h27.984V20.14z"),a.setAttribute("class","svg-pan-zoom-control-element"),o.appendChild(a),o},_createZoomOut:function(n){var o=document.createElementNS(u.svgNS,"g");o.setAttribute("id","svg-pan-zoom-zoom-out"),o.setAttribute("transform","translate(30.5 70) scale(0.015)"),o.setAttribute("class","svg-pan-zoom-control"),o.addEventListener("click",function(){n.getPublicInstance().zoomOut()},!1),o.addEventListener("touchstart",function(){n.getPublicInstance().zoomOut()},!1);var e=document.createElementNS(u.svgNS,"rect");e.setAttribute("x","0"),e.setAttribute("y","0"),e.setAttribute("width","1500"),e.setAttribute("height","1400"),e.setAttribute("class","svg-pan-zoom-control-background"),o.appendChild(e);var s=document.createElementNS(u.svgNS,"path");return s.setAttribute("d","M1280 576v128q0 26 -19 45t-45 19h-896q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h896q26 0 45 19t19 45zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5 t84.5 -203.5z"),s.setAttribute("class","svg-pan-zoom-control-element"),o.appendChild(s),o},disable:function(n){n.controlIcons&&(n.controlIcons.parentNode.removeChild(n.controlIcons),n.controlIcons=null)}},et}var ot,zt;function pe(){if(zt)return ot;zt=1;var u=rt(),n=st(),o=function(e,s){this.init(e,s)};return o.prototype.init=function(e,s){this.viewport=e,this.options=s,this.originalState={zoom:1,x:0,y:0},this.activeState={zoom:1,x:0,y:0},this.updateCTMCached=n.proxy(this.updateCTM,this),this.requestAnimationFrame=n.createRequestAnimationFrame(this.options.refreshRate),this.viewBox={x:0,y:0,width:0,height:0},this.cacheViewBox();var a=this.processCTM();this.setCTM(a),this.updateCTM()},o.prototype.cacheViewBox=function(){var e=this.options.svg.getAttribute("viewBox");if(e){var s=e.split(/[\s\,]/).filter(function(f){return f}).map(parseFloat);this.viewBox.x=s[0],this.viewBox.y=s[1],this.viewBox.width=s[2],this.viewBox.height=s[3];var a=Math.min(this.options.width/this.viewBox.width,this.options.height/this.viewBox.height);this.activeState.zoom=a,this.activeState.x=(this.options.width-this.viewBox.width*a)/2,this.activeState.y=(this.options.height-this.viewBox.height*a)/2,this.updateCTMOnNextFrame(),this.options.svg.removeAttribute("viewBox")}else this.simpleViewBoxCache()},o.prototype.simpleViewBoxCache=function(){var e=this.viewport.getBBox();this.viewBox.x=e.x,this.viewBox.y=e.y,this.viewBox.width=e.width,this.viewBox.height=e.height},o.prototype.getViewBox=function(){return n.extend({},this.viewBox)},o.prototype.processCTM=function(){var e=this.getCTM();if(this.options.fit||this.options.contain){var s;this.options.fit?s=Math.min(this.options.width/this.viewBox.width,this.options.height/this.viewBox.height):s=Math.max(this.options.width/this.viewBox.width,this.options.height/this.viewBox.height),e.a=s,e.d=s,e.e=-this.viewBox.x*s,e.f=-this.viewBox.y*s}if(this.options.center){var a=(this.options.width-(this.viewBox.width+this.viewBox.x*2)*e.a)*.5,f=(this.options.height-(this.viewBox.height+this.viewBox.y*2)*e.a)*.5;e.e=a,e.f=f}return this.originalState.zoom=e.a,this.originalState.x=e.e,this.originalState.y=e.f,e},o.prototype.getOriginalState=function(){return n.extend({},this.originalState)},o.prototype.getState=function(){return n.extend({},this.activeState)},o.prototype.getZoom=function(){return this.activeState.zoom},o.prototype.getRelativeZoom=function(){return this.activeState.zoom/this.originalState.zoom},o.prototype.computeRelativeZoom=function(e){return e/this.originalState.zoom},o.prototype.getPan=function(){return{x:this.activeState.x,y:this.activeState.y}},o.prototype.getCTM=function(){var e=this.options.svg.createSVGMatrix();return e.a=this.activeState.zoom,e.b=0,e.c=0,e.d=this.activeState.zoom,e.e=this.activeState.x,e.f=this.activeState.y,e},o.prototype.setCTM=function(e){var s=this.isZoomDifferent(e),a=this.isPanDifferent(e);
1if(s||a){if(s&&(this.options.beforeZoom(this.getRelativeZoom(),this.computeRelativeZoom(e.a))===!1?(e.a=e.d=this.activeState.zoom,s=!1):(this.updateCache(e),this.options.onZoom(this.getRelativeZoom()))),a){var f=this.options.beforePan(this.getPan(),{x:e.e,y:e.f}),C=!1,g=!1;f===!1?(e.e=this.getPan().x,e.f=this.getPan().y,C=g=!0):n.isObject(f)&&(f.x===!1?(e.e=this.getPan().x,C=!0):n.isNumber(f.x)&&(e.e=f.x),f.y===!1?(e.f=this.getPan().y,g=!0):n.isNumber(f.y)&&(e.f=f.y)),C&&g||!this.isPanDifferent(e)?a=!1:(this.updateCache(e),this.options.onPan(this.getPan()))}(s||a)&&this.updateCTMOnNextFrame()}},o.prototype.isZoomDifferent=function(e){return this.activeState.zoom!==e.a},o.prototype.isPanDifferent=function(e){return this.activeState.x!==e.e||this.activeState.y!==e.f},o.prototype.updateCache=function(e){this.activeState.zoom=e.a,this.activeState.x=e.e,this.activeState.y=e.f},o.prototype.pendingUpdate=!1,o.prototype.updateCTMOnNextFrame=function(){this.pendingUpdate||(this.pendingUpdate=!0,this.requestAnimationFrame.call(window,this.updateCTMCached))},o.prototype.updateCTM=function(){var e=this.getCTM();u.setCTM(this.viewport,e,this.defs),this.pendingUpdate=!1,this.options.onUpdatedCTM&&this.options.onUpdatedCTM(e)},ot=function(e,s){return new o(e,s)},ot}var nt,Zt;function fe(){if(Zt)return nt;Zt=1;var u=ce(),n=he(),o=st(),e=rt(),s=pe(),a=function(t,i){this.init(t,i)},f={viewportSelector:".svg-pan-zoom_viewport",panEnabled:!0,controlIconsEnabled:!1,zoomEnabled:!0,dblClickZoomEnabled:!0,mouseWheelZoomEnabled:!0,preventMouseEventsDefault:!0,zoomScaleSensitivity:.1,minZoom:.5,maxZoom:10,fit:!0,contain:!1,center:!0,refreshRate:"auto",beforeZoom:null,onZoom:null,beforePan:null,onPan:null,customEventsHandler:null,eventsListenerElement:null,onUpdatedCTM:null},C={passive:!0};a.prototype.init=function(t,i){var h=this;this.svg=t,this.defs=t.querySelector("defs"),e.setupSvgAttributes(this.svg),this.options=o.extend(o.extend({},f),i),this.state="none";var v=e.getBoundingClientRectNormalized(t);this.width=v.width,this.height=v.height,this.viewport=s(e.getOrCreateViewport(this.svg,this.options.viewportSelector),{svg:this.svg,width:this.width,height:this.height,fit:this.options.fit,contain:this.options.contain,center:this.options.center,refreshRate:this.options.refreshRate,beforeZoom:function(c,b){if(h.viewport&&h.options.beforeZoom)return h.options.beforeZoom(c,b)},onZoom:function(c){if(h.viewport&&h.options.onZoom)return h.options.onZoom(c)},beforePan:function(c,b){if(h.viewport&&h.options.beforePan)return h.options.beforePan(c,b)},onPan:function(c){if(h.viewport&&h.options.onPan)return h.options.onPan(c)},onUpdatedCTM:function(c){if(h.viewport&&h.options.onUpdatedCTM)return h.options.onUpdatedCTM(c)}});var d=this.getPublicInstance();d.setBeforeZoom(this.options.beforeZoom),d.setOnZoom(this.options.onZoom),d.setBeforePan(this.options.beforePan),d.setOnPan(this.options.onPan),d.setOnUpdatedCTM(this.options.onUpdatedCTM),this.options.controlIconsEnabled&&n.enable(this),this.lastMouseWheelEventTime=Date.now(),this.setupHandlers()},a.prototype.setupHandlers=function(){var t=this,i=null;if(this.eventListeners={mousedown:function(c){var b=t.handleMouseDown(c,i);return i=c,b},touchstart:function(c){var b=t.handleMouseDown(c,i);return i=c,b},mouseup:function(c){return t.handleMouseUp(c)},touchend:function(c){return t.handleMouseUp(c)},mousemove:function(c){return t.handleMouseMove(c)},touchmove:function(c){return t.handleMouseMove(c)},mouseleave:function(c){return t.handleMouseUp(c)},touchleave:function(c){return t.handleMouseUp(c)},touchcancel:function(c){return t.handleMouseUp(c)}},this.options.customEventsHandler!=null){this.options.customEventsHandler.init({svgElement:this.svg,eventsListenerElement:this.options.eventsListenerElement,instance:this.getPublicInstance()});var h=this.options.customEventsHandler.haltEventListeners;if(h&&h.length)for(var v=h.length-1;v>=0;v--)this.eventListeners.hasOwnProperty(h[v])&&delete this.eventListeners[h[v]]}for(var d in this.eventListeners)(this.options.eventsListenerElement||this.svg).addEventListener(d,this.eventListeners[d],this.options.preventMouseEventsDefault?!1:C);this.options.mouseWheelZoomEnabled&&(this.options.mouseWheelZoomEnabled=!1,this.enableMouseWheelZoom())},a.prototype.enableMouseWheelZoom=function(){if(!this.options.mouseWheelZoomEnabled){var t=this;this.wheelListener=function(h){return t.handleMouseWheel(h)};var i=!this.options.preventMouseEventsDefault;u.on(this.options.eventsListenerElement||this.svg,this.wheelListener,i),this.options.mouseWheelZoomEnabled=!0}},a.prototype.disableMouseWheelZoom=function(){if(this.options.mouseWheelZoomEnabled){var t=!this.options.preventMouseEventsDefault;u.off(this.options.eventsListenerElement||this.svg,this.wheelListener,t),this.options.mouseWheelZoomEnabled=!1}},a.prototype.handleMouseWheel=function(t){if(!(!this.options.zoomEnabled||this.state!=="none")){this.options.preventMouseEventsDefault&&(t.preventDefault?t.preventDefault():t.returnValue=!1);var i=t.deltaY||1,h=Date.now()-this.lastMouseWheelEventTime,v=3+Math.max(0,30-h);
1this.lastMouseWheelEventTime=Date.now(),"deltaMode"in t&&t.deltaMode===0&&t.wheelDelta&&(i=t.deltaY===0?0:Math.abs(t.wheelDelta)/t.deltaY),i=-.3<i&&i<.3?i:(i>0?1:-1)*Math.log(Math.abs(i)+10)/v;var d=this.svg.getScreenCTM().inverse(),c=e.getEventPoint(t,this.svg).matrixTransform(d),b=Math.pow(1+this.options.zoomScaleSensitivity,-1*i);this.zoomAtPoint(b,c)}},a.prototype.zoomAtPoint=function(t,i,h){var v=this.viewport.getOriginalState();h?(t=Math.max(this.options.minZoom*v.zoom,Math.min(this.options.maxZoom*v.zoom,t)),t=t/this.getZoom()):this.getZoom()*t<this.options.minZoom*v.zoom?t=this.options.minZoom*v.zoom/this.getZoom():this.getZoom()*t>this.options.maxZoom*v.zoom&&(t=this.options.maxZoom*v.zoom/this.getZoom());var d=this.viewport.getCTM(),c=i.matrixTransform(d.inverse()),b=this.svg.createSVGMatrix().translate(c.x,c.y).scale(t).translate(-c.x,-c.y),x=d.multiply(b);x.a!==d.a&&this.viewport.setCTM(x)},a.prototype.zoom=function(t,i){this.zoomAtPoint(t,e.getSvgCenterPoint(this.svg,this.width,this.height),i)},a.prototype.publicZoom=function(t,i){i&&(t=this.computeFromRelativeZoom(t)),this.zoom(t,i)},a.prototype.publicZoomAtPoint=function(t,i,h){if(h&&(t=this.computeFromRelativeZoom(t)),o.getType(i)!=="SVGPoint")if("x"in i&&"y"in i)i=e.createSVGPoint(this.svg,i.x,i.y);else throw new Error("Given point is invalid");this.zoomAtPoint(t,i,h)},a.prototype.getZoom=function(){return this.viewport.getZoom()},a.prototype.getRelativeZoom=function(){return this.viewport.getRelativeZoom()},a.prototype.computeFromRelativeZoom=function(t){return t*this.viewport.getOriginalState().zoom},a.prototype.resetZoom=function(){var t=this.viewport.getOriginalState();this.zoom(t.zoom,!0)},a.prototype.resetPan=function(){this.pan(this.viewport.getOriginalState())},a.prototype.reset=function(){this.resetZoom(),this.resetPan()},a.prototype.handleDblClick=function(t){if(this.options.preventMouseEventsDefault&&(t.preventDefault?t.preventDefault():t.returnValue=!1),this.options.controlIconsEnabled){var i=t.target.getAttribute("class")||"";if(i.indexOf("svg-pan-zoom-control")>-1)return!1}var h;t.shiftKey?h=1/((1+this.options.zoomScaleSensitivity)*2):h=(1+this.options.zoomScaleSensitivity)*2;var v=e.getEventPoint(t,this.svg).matrixTransform(this.svg.getScreenCTM().inverse());this.zoomAtPoint(h,v)},a.prototype.handleMouseDown=function(t,i){this.options.preventMouseEventsDefault&&(t.preventDefault?t.preventDefault():t.returnValue=!1),o.mouseAndTouchNormalize(t,this.svg),this.options.dblClickZoomEnabled&&o.isDblClick(t,i)?this.handleDblClick(t):(this.state="pan",this.firstEventCTM=this.viewport.getCTM(),this.stateOrigin=e.getEventPoint(t,this.svg).matrixTransform(this.firstEventCTM.inverse()))},a.prototype.handleMouseMove=function(t){if(this.options.preventMouseEventsDefault&&(t.preventDefault?t.preventDefault():t.returnValue=!1),this.state==="pan"&&this.options.panEnabled){var i=e.getEventPoint(t,this.svg).matrixTransform(this.firstEventCTM.inverse()),h=this.firstEventCTM.translate(i.x-this.stateOrigin.x,i.y-this.stateOrigin.y);this.viewport.setCTM(h)}},a.prototype.handleMouseUp=function(t){this.options.preventMouseEventsDefault&&(t.preventDefault?t.preventDefault():t.returnValue=!1),this.state==="pan"&&(this.state="none")},a.prototype.fit=function(){var t=this.viewport.getViewBox(),i=Math.min(this.width/t.width,this.height/t.height);this.zoom(i,!0)},a.prototype.contain=function(){var t=this.viewport.getViewBox(),i=Math.max(this.width/t.width,this.height/t.height);this.zoom(i,!0)},a.prototype.center=function(){var t=this.viewport.getViewBox(),i=(this.width-(t.width+t.x*2)*this.getZoom())*.5,h=(this.height-(t.height+t.y*2)*this.getZoom())*.5;this.getPublicInstance().pan({x:i,y:h})},a.prototype.updateBBox=function(){this.viewport.simpleViewBoxCache()},a.prototype.pan=function(t){var i=this.viewport.getCTM();i.e=t.x,i.f=t.y,this.viewport.setCTM(i)},a.prototype.panBy=function(t){var i=this.viewport.getCTM();i.e+=t.x,i.f+=t.y,this.viewport.setCTM(i)},a.prototype.getPan=function(){var t=this.viewport.getState();return{x:t.x,y:t.y}},a.prototype.resize=function(){var t=e.getBoundingClientRectNormalized(this.svg);this.width=t.width,this.height=t.height;var i=this.viewport;i.options.width=this.width,i.options.height=this.height,i.processCTM(),this.options.controlIconsEnabled&&(this.getPublicInstance().disableControlIcons(),this.getPublicInstance().enableControlIcons())},a.prototype.destroy=function(){var t=this;this.beforeZoom=null,this.onZoom=null,this.beforePan=null,this.onPan=null,this.onUpdatedCTM=null,this.options.customEventsHandler!=null&&this.options.customEventsHandler.destroy({svgElement:this.svg,eventsListenerElement:this.options.eventsListenerElement,instance:this.getPublicInstance()});for(var i in this.eventListeners)(this.options.eventsListenerElement||this.svg).removeEventListener(i,this.eventListeners[i],this.options.preventMouseEventsDefault?!1:C);this.disableMouseWheelZoom(),this.getPublicInstance().disableControlIcons(),this.reset(),g=g.filter(function(h){return h.svg!==t.svg}),delete this.options,delete this.viewport,delete this.publicInstance,delete this.pi,this.getPublicInstance=function(){return null}},a.prototype.getPublicInstance=function(){var t=this;return this.publicInstance||(this.publicInstance=this.pi={enablePan:function(){return t.options.panEnabled=!0,t.pi},disablePan:function(){return t.options.panEnabled=!1,t.pi},isPanEnabled:function(){return!!t.options.panEnabled},pan:function(i){return t.pan(i),t.pi},panBy:function(i){return t.panBy(i),t.pi},getPan:function(){return t.getPan()},setBeforePan:function(i){return t.options.beforePan=i===null?null:o.proxy(i,t.publicInstance),t.pi},setOnPan:function(i){return t.options.onPan=i===null?null:o.proxy(i,t.publicInstance),t.pi},enableZoom:function(){return t.options.zoomEnabled=!0,t.pi},disableZoom:function(){return t.options.zoomEnabled=!1,t.pi},isZoomEnabled:function(){return!!t.options.zoomEnabled},enableControlIcons:function(){return t.options.controlIconsEnabled||(t.options.controlIconsEnabled=!0,n.enable(t)),t.pi},disableControlIcons:function(){return t.options.controlIconsEnabled&&(t.options.controlIconsEnabled=!1,n.disable(t)),t.pi},isControlIconsEnabled:function(){return!!t.options.controlIconsEnabled},enableDblClickZoom:function(){return t.options.dblClickZoomEnabled=!0,t.pi},disableDblClickZoom:function(){return t.options.dblClickZoomEnabled=!1,t.pi}
1,isDblClickZoomEnabled:function(){return!!t.options.dblClickZoomEnabled},enableMouseWheelZoom:function(){return t.enableMouseWheelZoom(),t.pi},disableMouseWheelZoom:function(){return t.disableMouseWheelZoom(),t.pi},isMouseWheelZoomEnabled:function(){return!!t.options.mouseWheelZoomEnabled},setZoomScaleSensitivity:function(i){return t.options.zoomScaleSensitivity=i,t.pi},setMinZoom:function(i){return t.options.minZoom=i,t.pi},setMaxZoom:function(i){return t.options.maxZoom=i,t.pi},setBeforeZoom:function(i){return t.options.beforeZoom=i===null?null:o.proxy(i,t.publicInstance),t.pi},setOnZoom:function(i){return t.options.onZoom=i===null?null:o.proxy(i,t.publicInstance),t.pi},zoom:function(i){return t.publicZoom(i,!0),t.pi},zoomBy:function(i){return t.publicZoom(i,!1),t.pi},zoomAtPoint:function(i,h){return t.publicZoomAtPoint(i,h,!0),t.pi},zoomAtPointBy:function(i,h){return t.publicZoomAtPoint(i,h,!1),t.pi},zoomIn:function(){return this.zoomBy(1+t.options.zoomScaleSensitivity),t.pi},zoomOut:function(){return this.zoomBy(1/(1+t.options.zoomScaleSensitivity)),t.pi},getZoom:function(){return t.getRelativeZoom()},setOnUpdatedCTM:function(i){return t.options.onUpdatedCTM=i===null?null:o.proxy(i,t.publicInstance),t.pi},resetZoom:function(){return t.resetZoom(),t.pi},resetPan:function(){return t.resetPan(),t.pi},reset:function(){return t.reset(),t.pi},fit:function(){return t.fit(),t.pi},contain:function(){return t.contain(),t.pi},center:function(){return t.center(),t.pi},updateBBox:function(){return t.updateBBox(),t.pi},resize:function(){return t.resize(),t.pi},getSizes:function(){return{width:t.width,height:t.height,realZoom:t.getZoom(),viewBox:t.viewport.getViewBox()}},destroy:function(){return t.destroy(),t.pi}}),this.publicInstance};var g=[],I=function(t,i){var h=o.getSvg(t);if(h===null)return null;for(var v=g.length-1;v>=0;v--)if(g[v].svg===h)return g[v].instance.getPublicInstance();return g.push({svg:h,instance:new a(h,i)}),g[g.length-1].instance.getPublicInstance()};return nt=I,nt}var de=fe();const Et=Ht(de),me={class:"svg-container"},ve={class:"svg-container"},ge=["viewBox"],we=["id"],be=["fill"],ye={class:"svg-pan-zoom_viewport"},xe=["width","height"],Se=["xlink:href","width","height"],Me={class:"shapes"},Ce=["points","onClick","onMouseenter","onMousemove","onMouseleave"],ze=["r","cx","cy","onClick","onMouseenter","onMouseleave"],Ze=["x","y","width","height","rx"],Ee=["x","y","width","height"],Pe=["viewBox"],Ie=["xlink:href","width","height"],Be={class:"shapes"},De=["points","onClick","onMouseenter","onMousemove","onMouseleave"],Ae=["r","cx","cy","onClick","onMouseenter","onMouseleave"],Ne=["x","y","width","height","rx"],_e=["x","y","width","height"],ke=["x","y","width","height"],Te=["width","height"],Ve={key:1,class:"wrap-controls"},Le=Yt({__name:"DSvg",props:{activeShapeId:{default:null},image:{default:()=>({})},ucParams:{default:()=>({})},shapes:{default:()=>[]},panZoomSettings:{default:()=>({})},fit:{type:Boolean,default:!1},showControls:{type:Boolean,default:!1},useThumbnail:{type:Boolean,default:!1}},emits:["shapeClicked","shapeMouseOver","shapeMouseMove","shapeMouseOut"],setup(u,{emit:n}){const{generateUrlFromMediaObject:o}=oe(),e=u,s=D(null),a=D(null),f=D(null),C=D(null),g=D(!1);D(!1);const I=D(!1),t=D(!1),i=D(null),h=D(null),v=D({x:0,y:0,width:0,height:0}),d=D(null),c=D(null),b=D(null),x=Jt();ne.usePageContext();const B=n;H(()=>c.value,r=>{if(r&&yt(r)){const l=Et(r,q.value);f.value=l,Ut(l)}},{deep:!0,immediate:!0}),H(()=>b.value,r=>{r&&yt(r)&&(C.value=Et(r,kt.value))},{deep:!0,immediate:!0});const Bt=A(()=>e.showControls),Dt=A(()=>e.useThumbnail),at=A(()=>Math.floor(Math.random()*999999)),At=A(()=>{const{topLeft:r,bottomLeft:l}=i.value||{};return[{offset:"0%","stop-color":`rgb(${r[0]}, ${r[1]}, ${r[2]})`,"stop-opacity":r[3]/255},{offset:"100%","stop-color":`rgb(${l[0]}, ${l[1]}, ${l[2]})`,"stop-opacity":l[3]/255}]}),Nt=A(()=>{var r,l;return o(e.image,e.ucParams,void 0,!!((l=(r=x.$app)==null?void 0:r.features)!=null&&l.useUploadCareRawUrl))}),_t=A(()=>{var y,S;const r=(y=s.value)==null?void 0:y.width,l=(S=d.value)==null?void 0:S.width;return!r||!l||!J(r)||!J(l)?null:l/r}),R=A(()=>{var l,y;const r=(y=(l=x.$app.screens)==null?void 0:l.siteMap)==null?void 0:y.unitDotRadius;return J(r)?r:30}),lt=A(()=>It(e.shapes,_t.value,R.value)),ut=r=>Pt(r,l=>`${l.x},${l.y}`).join(" "),U=A(()=>(J(R.value)?R.value:30)*2),N=A(()=>({width:T(U.value*1.75),height:T(U.value*.7),radius:T(U.value*.7/2)})),_=(r,l)=>{var p,Z;if(l){const m=+r-+R.value,M=(((p=N.value)==null?void 0:p.width)-U.value)/2;return m-M}const y=+r-+R.value,S=(U.value-((Z=N.value)==null?void 0:Z.height))/2;return y+S},q=A(()=>Kt({},e.panZoomSettings,{class:"svg-container",controlIconsEnabled:!1,fit:!0,center:!0,contain:!0,dblClickZoomEnabled:!1,preventMouseEventsDefault:!1,panEnabled:!0,zoomEnabled:!0,minZoom:1})),kt=A(()=>({zoomEnabled:!1,panEnabled:!1,controlIconsEnabled:!1,dblClickZoomEnabled:!1,preventMouseEventsDefault:!0,mou
1seWheelZoomEnabled:!1})),ct=A(()=>{const{initialZoomScale:r=1}=e.panZoomSettings||{};return r}),Tt=A(()=>{var r;return{"svg-primary":!0,grabbing:I.value,panEnabled:(r=q.value)==null?void 0:r.panEnabled,visible:g.value}});H(()=>Nt.value,r=>{const l=new Image;l.setAttribute("crossOrigin","anonymous"),l.onload=function(y){const S={width:y.target.naturalWidth,height:y.target.naturalHeight},p=it(l);h.value=le(p,null),i.value=ue(p),ie(s.value,S)||(s.value=S)},l.src=r},{immediate:!0});const Vt=async r=>{var Z,m;const l=se();if(!l)return{};const{originalImageInfo:y}=await l.get("mediaInfo",{params:{ids:r}}).then(M=>M.data[0]||{}).catch(M=>(console.error("Failed to get media info",M),{}));if(ee(y))return{width:y.width,height:y.height};const S=o(r,{},void 0,!!((m=(Z=x.$app)==null?void 0:Z.features)!=null&&m.useUploadCareRawUrl)),p=()=>new Promise((M,w)=>{const k=new Image;k.onload=()=>M({width:k.width,height:k.height}),k.onerror=w,k.src=S});try{const M=await p();return{width:M==null?void 0:M.width,height:M==null?void 0:M.height}}catch(M){console.error("Failed to get image dimensions",M)}return null},ht=r=>({...r.params.class&&{class:r.params.class},...r.params.style&&{style:r.params.style}});H(()=>e.image,async r=>{var l,y;if((l=r==null?void 0:r.meta)!=null&&l.size){d.value=(y=r==null?void 0:r.meta)==null?void 0:y.size;return}te(r)&&(d.value=await Vt(r))},{deep:!0,immediate:!0});const F=(r,l)=>{B("shapeClicked",r,l)},G=(r,l)=>{B("shapeMouseOver",r,l)},pt=(r,l)=>{B("shapeMouseMove",r,l)},X=(r,l)=>{B("shapeMouseOut")},ft=()=>{var p,Z,m;if(!e.useThumbnail){t.value=!1;return}const r=(p=f.value)==null?void 0:p.getPan(),l=(Z=f.value)==null?void 0:Z.getSizes(),y=l.realZoom,S=1;v.value={x:-r.x/y+S,y:-r.y/y+S,width:l.width/y-S*2,height:l.height/y-S*2},t.value=((m=v.value)==null?void 0:m.width)<=l.width*.97},dt=r=>{var k,vt,gt,wt;if(r.which==0&&r.button==0)return!1;const{clientX:l,clientY:y}=r,S=(k=f.value)==null?void 0:k.getSizes(),p=S==null?void 0:S.realZoom,Z=(vt=b.value)==null?void 0:vt.getBoundingClientRect(),m=(gt=C.value)==null?void 0:gt.getSizes(),M={posX:(l-Z.left)/m.width,posY:(y-Z.top)/m.height},w={x:-M.posX*S.width*p,y:-M.posY*S.height*p};(wt=f.value)==null||wt.pan(w)},Lt=({width:r,height:l})=>{a.value={width:r,height:l},Rt()},Rt=()=>{var r,l;f.value&&((r=f.value)==null||r.resize(),(l=f.value)==null||l.reset(),mt()),C.value&&(C.value.resize(),C.value.reset())},Ut=r=>{var y,S;(y=r.value)==null||y.setOnZoom(p=>{ft()}),(S=r.value)==null||S.setOnPan(p=>{ft()});const{initTarget:l}=(q==null?void 0:q.value)||{};l&&zoomAtPoint(l),g.value||setTimeout(()=>{mt(),g.value=!0},0)},mt=()=>{ct.value!==1&&qt(ct.value)},qt=r=>{var l;(l=f.value)==null||l.zoom(r)},Ot=()=>{var r;(r=f.value)==null||r.zoomIn()},Wt=()=>{var r;(r=f.value)==null||r.zoomOut()},$t=()=>{var r;(r=f.value)==null||r.reset()};return(r,l)=>{const y=bt("ResizeObserver"),S=bt("SvgIcon");return s.value?(z(),Qt(Ft,{key:0,active:r.fit,width:s.value.width,height:s.value.height},{default:jt(()=>[P("div",me,[Y(y,{onResize:Lt}),P("div",ve,[(z(),E("svg",{ref_key:"svgMainElement",ref:c,viewBox:`0 0 ${s.value.width} ${s.value.height}`,class:L(Tt.value),onMousedown:l[0]||(l[0]=p=>I.value=!0),onMouseup:l[1]||(l[1]=p=>I.value=!1)},[P("defs",null,[P("linearGradient",{id:at.value,x1:"0",x2:"0",y1:"0",y2:"1"},[(z(!0),E(V,null,O(At.value,p=>(z(),E("stop",K({key:p.offset,ref_for:!0},p),null,16))),128))],8,we)]),P("rect",{width:"100%",height:"100%",fill:`url(#${at.value})`},null,8,be),P("g",ye,[P("rect",{width:s.value.width,height:s.value.height,style:{opacity:"0"}},null,8,xe),P("image",{"xlink:href":h.value,width:s.value.width,height:s.value.height},null,8,Se),P("g",Me,[(z(!0),E(V,null,O(lt.value,(p,Z)=>(z(),E("g",K({key:p.id||Z,ref_for:!0},ht(p)),[(z(!0),E(V,null,O(p.params.shapes,(m,M)=>(z(),E(V,null,[m.type==="polygon"?(z(),E("polygon",{key:`polygon-${Z}-${M}`,class:L({active:e.activeShapeId===p.id}),points:ut(m.params.points),onClick:w=>F(w,p.id),onMouseenter:w=>G(w,p.id),onMousemove:w=>pt(w,p.id),onMouseleave:w=>X(w,p.id)},null,42,Ce)):m.type==="circle"?(z(),E("circle",{key:`circle-${Z}-${M}`,class:L({active:e.activeShapeId===p.id}),r:m.params.radius,cx:m.params.x,cy:m.params.y,onClick:w=>F(w,p.id),onMouseenter:w=>G(w,p.id),onMouseleave:w=>X(w,p.id)},null,42,ze)):m.type==="pill"?(z(),E("g",K({key:`pill-${Z}-${M}`,ref_for:!0},ht(m)),[P("rect",{x:_(m.params.x,!0),y:_(m.params.y,!1),width:N.value.width,height:N.value.height,rx:N.value.radius},null,8,Ze),(z(),E("foreignObject",{x:_(m.params.x,!0),y:_(m.params.y,!1),width:N.value.width,height:N.value.height},l[2]||(l[2]=[P("div",{xmlns:"http://www.w3.org/1999/xhtml",class:"pill-content"},[P("div",{class:"pill-label"}," TODO!!!! ")],-1)]),8,Ee))],16)):W("",!0)],64))),256))],16))),128))])])],42,ge))]),Dt.value?(z(),E("svg",{key:0,ref_key:"svgThumbnailElement",ref:b,class:L(["svg-thumbnail",{show:t.value}]),viewBox:`0 0 ${s.value.width} ${s.value.height}`,onMousedown:dt,onMousemove:dt},[P("image",{"xlink:href":h.value,width:s.value.width,height:s.value.height},null,8,Ie),P("g",Be,[(z(!0),E(V,null,O(lt.value,(p,Z)=>(z(),E("g",{key:p.id||Z},[(z(!0),E(V,null,O(p.params.shapes,(m,M)=>(z(),E(V,null,[m.type==="polygon"?(z(),E("polygon",{key:`polygon-${Z}-${M}`,class:L({active:e.activeShapeId===p.id}),points:ut(m.params.points),onClick:w=>F(w,p.id),onMouseenter:w=>G(w,p.id),onMousemove:w=>pt(w,p.id),onMouseleave:w=>X(w,p.id)},null,42,De)):m.type==="circle"?(z(),E("circle",{key:`circle-${Z}-${M}`,class:L({active:e.activeShapeId===p.id}),r:m.params.radius,cx:m.params.x,cy:m.params.y,onClick:w=>F(w,p.id),onMouseenter:w=>G(w,p.id),onMouseleave:w=>X(w,p.id)},null,42,Ae)):m.type==="pill"?(z(),E("g",{key:`pill-${Z}-${M}`},[P("rect",{x:_(m.params.x,!0),y:_(m.params.y,!1),width:N.value.width,height:N.value.height,rx:N.value.radius},null,8,Ne),(z(),E("foreignObject",{x:_(m.params.x,!0),y:_(m.params.y,!1),width:N.value.width,height:N.value.height},l[3]||(l[3]=[P("div",{xmlns:"http://www.w3.org/1999/xhtml",class:"pill-content"},[P("div",{class:"pill-label"}
1," TODO!!!! ")],-1)]),8,_e))])):W("",!0)],64))),256))]))),128))]),P("rect",{class:"previewRect",x:v.value.x,y:v.value.y,width:v.value.width,height:v.value.height},null,8,ke),P("rect",{width:s.value.width,height:s.value.height,style:{opacity:"0"}},null,8,Te)],42,Pe)):W("",!0),Bt.value?(z(),E("div",Ve,[Y(S,{"icon-url":Q(x).$svgIcons.plus,onClick:Ot},null,8,["icon-url"]),Y(S,{"icon-url":Q(x).$svgIcons.dash,onClick:Wt},null,8,["icon-url"]),Y(S,{"icon-url":Q(x).$svgIcons.target,onClick:$t},null,8,["icon-url"])])):W("",!0)])]),_:1},8,["active","width","height"])):W("",!0)}}}),$e=re(Le,[["__scopeId","data-v-ec83fd6a"]]);export{$e as default};
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.