import{KasR,oasW,casM,MasE,Nask,lasm,OasI,gasS,PasF,xasT,_asV,basj,ras$,zasq,dasO,fasy,easC,wasx,kasG,masA,LasZ,pasJ,qasK,sasQ}from"./index.0bad53d2.js";import{uas_}from"./user.283c3bee.js";constN={};N.getData=t=>newPromise((e,i)=>{lets={};tt(t).then(o=>{s.arrayBuffer=o,s.orientation=ot(o),e(s)}).catch(o=>{i(o)})});functiontt(t){lete=null;returnnewPromise((i,s)=>{if(t.src)if(/^data\:/i.test(t.src))e=it(t.src),i(e);elseif(/^blob\:/i.test(t.src)){varo=newFileReader;o.onload=function(h){e=h.target.result,i(e)},et(t.src,function(h){o.readAsArrayBuffer(h)})}else{varr=newXMLHttpRequest;r.onload=function(){if(this.status==200||this.status===0)e=r.response,i(e);elsethrow"Could not load image";r=null},r.open("GET",t.src,!0),r.responseType="arraybuffer",r.send(null)}elses("img error")})}functionet(t,e){vari=newXMLHttpRequest;i.open("GET",t,!0),i.responseType="blob",i.onload=function(s){(this.status==200||this.status===0)&&e(this.response)},i.send()}functionit(t){t=t.replace(/^data\:([^\;]+)\;base64,/gmi,"");for(vare=atob(t),i=e.length,s=newArrayBuffer(i),o=newUint8Array(s),r=0;r<i;r++)o[r]=e.charCodeAt(r);returns}functionst(t,e,i){vars="",o;for(o=e,i+=e;o<i;o++)s+=String.fromCharCode(t.getUint8(o));returns}functionot(t){vare=newDataView(t),i=e.byteLength,s,o,r,h,a,l,c,n,p,f;if(e.getUint8(0)===255&&e.getUint8(1)===216)for(p=2;p<i;){if(e.getUint8(p)===255&&e.getUint8(p+1)===225){c=p;break}p++}if(c&&(o=c+4,r=c+10,st(e,o,4)==="Exif"&&(l=e.getUint16(r),a=l===18761,(a||l===19789)&&e.getUint16(r+2,a)===42&&(h=e.getUint32(r+4,a),h>=8&&(n=r+h)))),n){for(i=e.getUint16(n,a),f=0;f<i;f++)if(p=n+f*12+2,e.getUint16(p,a)===274){p+=8,s=e.getUint16(p,a);break}}returns}varrt=(t,e)=>{consti=t.__vccOpts||t;for(const[s,o]ofe)i[s]=o;returni};constht=R({data:function(){return{w:0,h:0,scale:1,x:0,y:0,loading:!0,trueWidth:0,trueHeight:0,move:!0,moveX:0,moveY:0,crop:!1,cropping:!1,cropW:0,cropH:0,cropOldW:0,cropOldH:0,canChangeX:!1,canChangeY:!1,changeCropTypeX:1,changeCropTypeY:1,cropX:0,cropY:0,cropChangeX:0,cropChangeY:0,cropOffsertX:0,cropOffsertY:0,support:"",touches:[],touchNow:!1,rotate:0,isIos:!1,orientation:0,imgs:"",coe:.2,scaling:!1,scalingSet:"",coeStatus:"",isCanShow:!0}},props:{img:{type:[String,Blob,null,File],default:""},outputSize:{type:Number,default:1},outputType:{type:String,default:"jpeg"},info:{type:Boolean,default:!0},canScale:{type:Boolean,default:!0},autoCrop:{type:Boolean,default:!1},autoCropWidth:{type:[Number,String],default:0},autoCropHeight:{type:[Number,String],default:0},fixed:{type:Boolean,default:!1},fixedNumber:{type:Array,default:()=>[1,1]},fixedBox:{type:Boolean,default:!1},full:{type:Boolean,default:!1},canMove:{type:Boolean,default:!0},canMoveBox:{type:Boolean,default:!0},original:{type:Boolean,default:!1},centerBox:{type:Boolean,default:!1},high:{type:Boolean,default:!0},infoTrue:{type:Boolean,default:!1},maxImgSize:{type:[Number,String],default:2e3},enlarge:{type:[Number,String],default:1},preW:{type:[Number,String],default:0},mode:{type:String,default:"contain"},limitMinSize:{type:[Number,Array,String],default:()=>10}},computed:{cropInfo(){lett={};if(t.top=this.cropOffsertY>21?"-21px":"0px",t.width=this.cropW>0?this.cropW:0,t.height=this.cropH>0?this.cropH:0,this.infoTrue){lete=1;this.high&&!this.full&&(e=window.devicePixelRatio),this.enlarge!==1&!this.full&&(e=Math.abs(Number(this.enlarge))),t.width=t.width*e,t.height=t.height*e,this.full&&(t.width=t.width/this.scale,t.height=t.height/this.scale)}returnt.width=t.width.toFixed(0),t.height=t.height.toFixed(0),t},isIE(){return!!window.ActiveXObject||"ActiveXObject"inwindow},passive(){returnthis.isIE?null:{passive:!1}}},watch:{img(){this.checkedImg()},imgs(t){t!==""&&this.reload()},cropW(){this.showPreview()},cropH(){this.showPreview()},cropOffsertX(){this.showPreview()},cropOffsertY(){this.showPreview()},scale(t,e){this.showPreview()},x(){this.showPreview()},y(){this.showPreview()},autoCrop(t){t&&this.goAutoCrop()},autoCropWidth(){this.autoCrop&&this.goAutoCrop()},autoCropHeight(