import{p as r}from"./panzoom.9e1878dd.js";import"./vue.dd1d82d0.js";import{aE as c,_ as m,a8 as u,aK as p}from"./@vue.359f7754.js";var a={name:"panZoom",props:{options:Object,selector:String},data:function(){return{panZoomInstance:null,panZoomInstanceId:null,instanceId:null,defaultOptions:{autocenter:!0,bounds:!0,transformOrigin:{x:.5,y:.5}}}},created:function(){this.instanceId=this.generateRandomId(20)},mounted:function(){if(this.scene){var n=Object.assign({},this.defaultOptions,this.options);this.panZoomInstance=this.$panZoom(this.scene,n),this.panZoomInstanceId=this.instanceId,this.attachEvents()}},computed:{scene:function(){var n,e=this.$el.querySelector(".vue-pan-zoom-scene");return this.selector?n=e.querySelector(this.selector):(n=e.querySelector("svg, object, embed"),n||(n=e.firstChild)),n}},methods:{generateRandomId:function(n){n=n||16;for(var e="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",o=e.length,s=[],i=0;i