From 6cd84e00211c90a875f20574a8ee944a33d00195 Mon Sep 17 00:00:00 2001 From: theluyuan <1162963624@qq.com> Date: Mon, 23 Sep 2024 10:58:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- es/upload/index.js | 2 +- lib/index.js | 2 +- src/component/upload/index.vue | 2 +- umd/index.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/es/upload/index.js b/es/upload/index.js index 23dbde5..5d0e0af 100644 --- a/es/upload/index.js +++ b/es/upload/index.js @@ -198,7 +198,7 @@ const _sfc_main = defineComponent({ const errorF = (errorText) => { let currentTimeStamp = new Date().valueOf(); let errorMsg = errorText ? errorText : defaultErrorMsg; - errorMsg = `layui-vue:${errorMsg}`; + errorMsg = `${errorMsg}`; console.warn(errorMsg); layer.msg(errorMsg, { icon: 2, time: 1e3 }, function(res) { }); diff --git a/lib/index.js b/lib/index.js index 975e84f..7b882da 100644 --- a/lib/index.js +++ b/lib/index.js @@ -48613,7 +48613,7 @@ const _sfc_main$7 = defineComponent({ const errorF = (errorText) => { let currentTimeStamp = new Date().valueOf(); let errorMsg = errorText ? errorText : defaultErrorMsg; - errorMsg = `layui-vue:${errorMsg}`; + errorMsg = `${errorMsg}`; console.warn(errorMsg); layer.msg(errorMsg, { icon: 2, time: 1e3 }, function(res) { }); diff --git a/src/component/upload/index.vue b/src/component/upload/index.vue index 52a8021..68006f6 100644 --- a/src/component/upload/index.vue +++ b/src/component/upload/index.vue @@ -264,7 +264,7 @@ const dataURLtoFile = (dataurl: string) => { const errorF = (errorText: string) => { let currentTimeStamp = new Date().valueOf(); let errorMsg = errorText ? errorText : defaultErrorMsg; - errorMsg = `layui-vue:${errorMsg}`; + errorMsg = `${errorMsg}`; console.warn(errorMsg); layer.msg(errorMsg, { icon: 2, time: 1000 }, function (res: unknown) {}); emit("error", Object.assign({ currentTimeStamp, msg: errorMsg })); diff --git a/umd/index.js b/umd/index.js index f2209ee..c9aae28 100644 --- a/umd/index.js +++ b/umd/index.js @@ -237,7 +237,7 @@ EOD`}return{to_workbook:i,to_sheet:N,from_sheet:z}}(),Qc=function(){function M(T * * Date: 2021-06-12T08:00:17.411Z */function $s(M,D){var N=Object.keys(M);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(M);D&&(i=i.filter(function(j){return Object.getOwnPropertyDescriptor(M,j).enumerable})),N.push.apply(N,i)}return N}function Ks(M){for(var D=1;DM.length)&&(D=M.length);for(var N=0,i=new Array(D);N
',tv=Number.isNaN||He.isNaN;function wN(M){return typeof M=="number"&&!tv(M)}var ly=function(D){return D>0&&D<1/0};function La(M){return typeof M=="undefined"}function Ki(M){return Zz(M)==="object"&&M!==null}var zv=Object.prototype.hasOwnProperty;function Sj(M){if(!Ki(M))return!1;try{var D=M.constructor,N=D.prototype;return D&&N&&zv.call(N,"isPrototypeOf")}catch{return!1}}function KD(M){return typeof M=="function"}var uv=Array.prototype.slice;function Iy(M){return Array.from?Array.from(M):uv.call(M)}function eD(M,D){return M&&KD(D)&&(Array.isArray(M)||wN(M.length)?Iy(M).forEach(function(N,i){D.call(M,N,i,M)}):Ki(M)&&Object.keys(M).forEach(function(N){D.call(M,M[N],N,M)})),M}var GN=Object.assign||function(D){for(var N=arguments.length,i=new Array(N>1?N-1:0),j=1;j0&&i.forEach(function(t){Ki(t)&&Object.keys(t).forEach(function(z){D[z]=t[z]})}),D},av=/\.\d*(?:0|9){12}\d*$/;function pj(M){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e11;return av.test(M)?Math.round(M*D)/D:M}var rv=/^width|height|left|top|marginLeft|marginTop$/;function Qi(M,D){var N=M.style;eD(D,function(i,j){rv.test(j)&&wN(i)&&(i="".concat(i,"px")),N[j]=i})}function gv(M,D){return M.classList?M.classList.contains(D):M.className.indexOf(D)>-1}function nD(M,D){if(!!D){if(wN(M.length)){eD(M,function(i){nD(i,D)});return}if(M.classList){M.classList.add(D);return}var N=M.className.trim();N?N.indexOf(D)<0&&(M.className="".concat(N," ").concat(D)):M.className=D}}function Ze(M,D){if(!!D){if(wN(M.length)){eD(M,function(N){Ze(N,D)});return}if(M.classList){M.classList.remove(D);return}M.className.indexOf(D)>=0&&(M.className=M.className.replace(D,""))}}function hj(M,D,N){if(!!D){if(wN(M.length)){eD(M,function(i){hj(i,D,N)});return}N?nD(M,D):Ze(M,D)}}var Tv=/([a-z\d])([A-Z])/g;function oa(M){return M.replace(Tv,"$1-$2").toLowerCase()}function la(M,D){return Ki(M[D])?M[D]:M.dataset?M.dataset[D]:M.getAttribute("data-".concat(oa(D)))}function kt(M,D,N){Ki(N)?M[D]=N:M.dataset?M.dataset[D]=N:M.setAttribute("data-".concat(oa(D)),N)}function nv(M,D){if(Ki(M[D]))try{delete M[D]}catch{M[D]=void 0}else if(M.dataset)try{delete M.dataset[D]}catch{M.dataset[D]=void 0}else M.removeAttribute("data-".concat(oa(D)))}var Oy=/\s\s*/,wy=function(){var M=!1;if(Xz){var D=!1,N=function(){},i=Object.defineProperty({},"once",{get:function(){return M=!0,D},set:function(t){D=t}});He.addEventListener("test",N,i),He.removeEventListener("test",N,i)}return M}();function pe(M,D,N){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},j=N;D.trim().split(Oy).forEach(function(t){if(!wy){var z=M.listeners;z&&z[t]&&z[t][N]&&(j=z[t][N],delete z[t][N],Object.keys(z[t]).length===0&&delete z[t],Object.keys(z).length===0&&delete M.listeners)}M.removeEventListener(t,j,i)})}function le(M,D,N){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},j=N;D.trim().split(Oy).forEach(function(t){if(i.once&&!wy){var z=M.listeners,u=z===void 0?{}:z;j=function(){delete u[t][N],M.removeEventListener(t,j,i);for(var r=arguments.length,g=new Array(r),T=0;TMath.abs(N)&&(N=n)})}),N}function Kz(M,D){var N=M.pageX,i=M.pageY,j={endX:N,endY:i};return D?j:Ks({startX:N,startY:i},j)}function yv(M){var D=0,N=0,i=0;return eD(M,function(j){var t=j.startX,z=j.startY;D+=t,N+=z,i+=1}),D/=i,N/=i,{pageX:D,pageY:N}}function Yi(M){var D=M.aspectRatio,N=M.height,i=M.width,j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"contain",t=ly(i),z=ly(N);if(t&&z){var u=N*D;j==="contain"&&u>i||j==="cover"&&u90?{width:a,height:u}:{width:u,height:a}}function ov(M,D,N,i){var j=D.aspectRatio,t=D.naturalWidth,z=D.naturalHeight,u=D.rotate,a=u===void 0?0:u,r=D.scaleX,g=r===void 0?1:r,T=D.scaleY,n=T===void 0?1:T,s=N.aspectRatio,y=N.naturalWidth,o=N.naturalHeight,I=i.fillColor,L=I===void 0?"transparent":I,O=i.imageSmoothingEnabled,w=O===void 0?!0:O,A=i.imageSmoothingQuality,k=A===void 0?"low":A,Q=i.maxWidth,x=Q===void 0?1/0:Q,f=i.maxHeight,C=f===void 0?1/0:f,W=i.minWidth,MM=W===void 0?0:W,NM=i.minHeight,jM=NM===void 0?0:NM,aM=document.createElement("canvas"),tM=aM.getContext("2d"),R=Yi({aspectRatio:s,width:x,height:C}),m=Yi({aspectRatio:s,width:MM,height:jM},"cover"),J=Math.min(R.width,Math.max(m.width,y)),K=Math.min(R.height,Math.max(m.height,o)),rM=Yi({aspectRatio:j,width:x,height:C}),IM=Yi({aspectRatio:j,width:MM,height:jM},"cover"),OM=Math.min(rM.width,Math.max(IM.width,t)),oM=Math.min(rM.height,Math.max(IM.height,z)),bM=[-OM/2,-oM/2,OM,oM];return aM.width=pj(J),aM.height=pj(K),tM.fillStyle=L,tM.fillRect(0,0,J,K),tM.save(),tM.translate(J/2,K/2),tM.rotate(a*Math.PI/180),tM.scale(g,n),tM.imageSmoothingEnabled=w,tM.imageSmoothingQuality=k,tM.drawImage.apply(tM,[M].concat(My(bM.map(function(eM){return Math.floor(pj(eM))})))),tM.restore(),aM}var Qy=String.fromCharCode;function lv(M,D,N){var i="";N+=D;for(var j=D;j0;)N.push(Qy.apply(null,Iy(j.subarray(0,i)))),j=j.subarray(i);return"data:".concat(D,";base64,").concat(btoa(N.join("")))}function Av(M){var D=new DataView(M),N;try{var i,j,t;if(D.getUint8(0)===255&&D.getUint8(1)===216)for(var z=D.byteLength,u=2;u+1=8&&(t=r+T)}}}if(t){var n=D.getUint16(t,i),s,y;for(y=0;y=0?t:yy),height:Math.max(i.offsetHeight,z>=0?z:Ly)};this.containerData=u,Qi(j,{width:u.width,height:u.height}),nD(D,$D),Ze(j,$D)},initCanvas:function(){var D=this.containerData,N=this.imageData,i=this.options.viewMode,j=Math.abs(N.rotate)%180===90,t=j?N.naturalHeight:N.naturalWidth,z=j?N.naturalWidth:N.naturalHeight,u=t/z,a=D.width,r=D.height;D.height*u>D.width?i===3?a=D.height*u:r=D.width/u:i===3?r=D.width/u:a=D.height*u;var g={aspectRatio:u,naturalWidth:t,naturalHeight:z,width:a,height:r};this.canvasData=g,this.limited=i===1||i===2,this.limitCanvas(!0,!0),g.width=Math.min(Math.max(g.width,g.minWidth),g.maxWidth),g.height=Math.min(Math.max(g.height,g.minHeight),g.maxHeight),g.left=(D.width-g.width)/2,g.top=(D.height-g.height)/2,g.oldLeft=g.left,g.oldTop=g.top,this.initialCanvasData=GN({},g)},limitCanvas:function(D,N){var i=this.options,j=this.containerData,t=this.canvasData,z=this.cropBoxData,u=i.viewMode,a=t.aspectRatio,r=this.cropped&&z;if(D){var g=Number(i.minCanvasWidth)||0,T=Number(i.minCanvasHeight)||0;u>1?(g=Math.max(g,j.width),T=Math.max(T,j.height),u===3&&(T*a>g?g=T*a:T=g/a)):u>0&&(g?g=Math.max(g,r?z.width:0):T?T=Math.max(T,r?z.height:0):r&&(g=z.width,T=z.height,T*a>g?g=T*a:T=g/a));var n=Yi({aspectRatio:a,width:g,height:T});g=n.width,T=n.height,t.minWidth=g,t.minHeight=T,t.maxWidth=1/0,t.maxHeight=1/0}if(N)if(u>(r?0:1)){var s=j.width-t.width,y=j.height-t.height;t.minLeft=Math.min(0,s),t.minTop=Math.min(0,y),t.maxLeft=Math.max(0,s),t.maxTop=Math.max(0,y),r&&this.limited&&(t.minLeft=Math.min(z.left,z.left+(z.width-t.width)),t.minTop=Math.min(z.top,z.top+(z.height-t.height)),t.maxLeft=z.left,t.maxTop=z.top,u===2&&(t.width>=j.width&&(t.minLeft=Math.min(0,s),t.maxLeft=Math.max(0,s)),t.height>=j.height&&(t.minTop=Math.min(0,y),t.maxTop=Math.max(0,y))))}else t.minLeft=-t.width,t.minTop=-t.height,t.maxLeft=j.width,t.maxTop=j.height},renderCanvas:function(D,N){var i=this.canvasData,j=this.imageData;if(N){var t=Lv({width:j.naturalWidth*Math.abs(j.scaleX||1),height:j.naturalHeight*Math.abs(j.scaleY||1),degree:j.rotate||0}),z=t.width,u=t.height,a=i.width*(z/i.naturalWidth),r=i.height*(u/i.naturalHeight);i.left-=(a-i.width)/2,i.top-=(r-i.height)/2,i.width=a,i.height=r,i.aspectRatio=z/u,i.naturalWidth=z,i.naturalHeight=u,this.limitCanvas(!0,!1)}(i.width>i.maxWidth||i.widthi.maxHeight||i.heightN.width?t.height=t.width/i:t.width=t.height*i),this.cropBoxData=t,this.limitCropBox(!0,!0),t.width=Math.min(Math.max(t.width,t.minWidth),t.maxWidth),t.height=Math.min(Math.max(t.height,t.minHeight),t.maxHeight),t.width=Math.max(t.minWidth,t.width*j),t.height=Math.max(t.minHeight,t.height*j),t.left=N.left+(N.width-t.width)/2,t.top=N.top+(N.height-t.height)/2,t.oldLeft=t.left,t.oldTop=t.top,this.initialCropBoxData=GN({},t)},limitCropBox:function(D,N){var i=this.options,j=this.containerData,t=this.canvasData,z=this.cropBoxData,u=this.limited,a=i.aspectRatio;if(D){var r=Number(i.minCropBoxWidth)||0,g=Number(i.minCropBoxHeight)||0,T=u?Math.min(j.width,t.width,t.width+t.left,j.width-t.left):j.width,n=u?Math.min(j.height,t.height,t.height+t.top,j.height-t.top):j.height;r=Math.min(r,j.width),g=Math.min(g,j.height),a&&(r&&g?g*a>r?g=r/a:r=g*a:r?g=r/a:g&&(r=g*a),n*a>T?n=T/a:T=n*a),z.minWidth=Math.min(r,T),z.minHeight=Math.min(g,n),z.maxWidth=T,z.maxHeight=n}N&&(u?(z.minLeft=Math.max(0,t.left),z.minTop=Math.max(0,t.top),z.maxLeft=Math.min(j.width,t.left+t.width)-z.width,z.maxTop=Math.min(j.height,t.top+t.height)-z.height):(z.minLeft=0,z.minTop=0,z.maxLeft=j.width-z.width,z.maxTop=j.height-z.height))},renderCropBox:function(){var D=this.options,N=this.containerData,i=this.cropBoxData;(i.width>i.maxWidth||i.widthi.maxHeight||i.height=N.width&&i.height>=N.height?Dy:ua),Qi(this.cropBox,GN({width:i.width,height:i.height},ft({translateX:i.left,translateY:i.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),mj(this.element,Ta,this.getData())}},Qv={initPreview:function(){var D=this.element,N=this.crossOrigin,i=this.options.preview,j=N?this.crossOriginUrl:this.url,t=D.alt||"The image to preview",z=document.createElement("img");if(N&&(z.crossOrigin=N),z.src=j,z.alt=t,this.viewBox.appendChild(z),this.viewBoxImage=z,!!i){var u=i;typeof i=="string"?u=D.ownerDocument.querySelectorAll(i):i.querySelector&&(u=[i]),this.previews=u,eD(u,function(a){var r=document.createElement("img");kt(a,$z,{width:a.offsetWidth,height:a.offsetHeight,html:a.innerHTML}),N&&(r.crossOrigin=N),r.src=j,r.alt=t,r.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',a.innerHTML="",a.appendChild(r)})}},resetPreview:function(){eD(this.previews,function(D){var N=la(D,$z);Qi(D,{width:N.width,height:N.height}),D.innerHTML=N.html,nv(D,$z)})},preview:function(){var D=this.imageData,N=this.canvasData,i=this.cropBoxData,j=i.width,t=i.height,z=D.width,u=D.height,a=i.left-N.left-D.left,r=i.top-N.top-D.top;!this.cropped||this.disabled||(Qi(this.viewBoxImage,GN({width:z,height:u},ft(GN({translateX:-a,translateY:-r},D)))),eD(this.previews,function(g){var T=la(g,$z),n=T.width,s=T.height,y=n,o=s,I=1;j&&(I=n/j,o=t*I),t&&o>s&&(I=s/t,y=j*I,o=s),Qi(g,{width:y,height:o}),Qi(g.getElementsByTagName("img")[0],GN({width:z*I,height:u*I},ft(GN({translateX:-a*I,translateY:-r*I},D))))}))}},Yv={bind:function(){var D=this.element,N=this.options,i=this.cropper;KD(N.cropstart)&&le(D,sa,N.cropstart),KD(N.cropmove)&&le(D,ca,N.cropmove),KD(N.cropend)&&le(D,na,N.cropend),KD(N.crop)&&le(D,Ta,N.crop),KD(N.zoom)&&le(D,ya,N.zoom),le(i,ay,this.onCropStart=this.cropStart.bind(this)),N.zoomable&&N.zoomOnWheel&&le(i,cy,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),N.toggleDragModeOnDblclick&&le(i,uy,this.onDblclick=this.dblclick.bind(this)),le(D.ownerDocument,ry,this.onCropMove=this.cropMove.bind(this)),le(D.ownerDocument,gy,this.onCropEnd=this.cropEnd.bind(this)),N.responsive&&le(window,ny,this.onResize=this.resize.bind(this))},unbind:function(){var D=this.element,N=this.options,i=this.cropper;KD(N.cropstart)&&pe(D,sa,N.cropstart),KD(N.cropmove)&&pe(D,ca,N.cropmove),KD(N.cropend)&&pe(D,na,N.cropend),KD(N.crop)&&pe(D,Ta,N.crop),KD(N.zoom)&&pe(D,ya,N.zoom),pe(i,ay,this.onCropStart),N.zoomable&&N.zoomOnWheel&&pe(i,cy,this.onWheel,{passive:!1,capture:!0}),N.toggleDragModeOnDblclick&&pe(i,uy,this.onDblclick),pe(D.ownerDocument,ry,this.onCropMove),pe(D.ownerDocument,gy,this.onCropEnd),N.responsive&&pe(window,ny,this.onResize)}},kv={resize:function(){if(!this.disabled){var D=this.options,N=this.container,i=this.containerData,j=N.offsetWidth/i.width,t=N.offsetHeight/i.height,z=Math.abs(j-1)>Math.abs(t-1)?j:t;if(z!==1){var u,a;D.restore&&(u=this.getCanvasData(),a=this.getCropBoxData()),this.render(),D.restore&&(this.setCanvasData(eD(u,function(r,g){u[g]=r*z})),this.setCropBoxData(eD(a,function(r,g){a[g]=r*z})))}}},dblclick:function(){this.disabled||this.options.dragMode===zy||this.setDragMode(gv(this.dragBox,aa)?ty:ga)},wheel:function(D){var N=this,i=Number(this.options.wheelZoomRatio)||.1,j=1;this.disabled||(D.preventDefault(),!this.wheeling&&(this.wheeling=!0,setTimeout(function(){N.wheeling=!1},50),D.deltaY?j=D.deltaY>0?1:-1:D.wheelDelta?j=-D.wheelDelta/120:D.detail&&(j=D.detail>0?1:-1),this.zoom(-j*i,D)))},cropStart:function(D){var N=D.buttons,i=D.button;if(!(this.disabled||(D.type==="mousedown"||D.type==="pointerdown"&&D.pointerType==="mouse")&&(wN(N)&&N!==1||wN(i)&&i!==0||D.ctrlKey))){var j=this.options,t=this.pointers,z;D.changedTouches?eD(D.changedTouches,function(u){t[u.identifier]=Kz(u)}):t[D.pointerId||0]=Kz(D),Object.keys(t).length>1&&j.zoomable&&j.zoomOnTouch?z=ey:z=la(D.target,Yt),!!Nv.test(z)&&mj(this.element,sa,{originalEvent:D,action:z})!==!1&&(D.preventDefault(),this.action=z,this.cropping=!1,z===Ny&&(this.cropping=!0,nD(this.dragBox,Jz)))}},cropMove:function(D){var N=this.action;if(!(this.disabled||!N)){var i=this.pointers;D.preventDefault(),mj(this.element,ca,{originalEvent:D,action:N})!==!1&&(D.changedTouches?eD(D.changedTouches,function(j){GN(i[j.identifier]||{},Kz(j,!0))}):GN(i[D.pointerId||0]||{},Kz(D,!0)),this.change(D))}},cropEnd:function(D){if(!this.disabled){var N=this.action,i=this.pointers;D.changedTouches?eD(D.changedTouches,function(j){delete i[j.identifier]}):delete i[D.pointerId||0],N&&(D.preventDefault(),Object.keys(i).length||(this.action=""),this.cropping&&(this.cropping=!1,hj(this.dragBox,Jz,this.cropped&&this.options.modal)),mj(this.element,na,{originalEvent:D,action:N}))}}},fv={change:function(D){var N=this.options,i=this.canvasData,j=this.containerData,t=this.cropBoxData,z=this.pointers,u=this.action,a=N.aspectRatio,r=t.left,g=t.top,T=t.width,n=t.height,s=r+T,y=g+n,o=0,I=0,L=j.width,O=j.height,w=!0,A;!a&&D.shiftKey&&(a=T&&n?T/n:1),this.limited&&(o=t.minLeft,I=t.minTop,L=o+Math.min(j.width,i.width,i.left+i.width),O=I+Math.min(j.height,i.height,i.top+i.height));var k=z[Object.keys(z)[0]],Q={x:k.endX-k.startX,y:k.endY-k.startY},x=function(C){switch(C){case Ji:s+Q.x>L&&(Q.x=L-s);break;case $i:r+Q.xO&&(Q.y=O-y);break}};switch(u){case ua:r+=Q.x,g+=Q.y;break;case Ji:if(Q.x>=0&&(s>=L||a&&(g<=I||y>=O))){w=!1;break}x(Ji),T+=Q.x,T<0&&(u=$i,T=-T,r-=T),a&&(n=T/a,g+=(t.height-n)/2);break;case xi:if(Q.y<=0&&(g<=I||a&&(r<=o||s>=L))){w=!1;break}x(xi),n-=Q.y,g+=Q.y,n<0&&(u=Uj,n=-n,g-=n),a&&(T=n*a,r+=(t.width-T)/2);break;case $i:if(Q.x<=0&&(r<=o||a&&(g<=I||y>=O))){w=!1;break}x($i),T-=Q.x,r+=Q.x,T<0&&(u=Ji,T=-T,r-=T),a&&(n=T/a,g+=(t.height-n)/2);break;case Uj:if(Q.y>=0&&(y>=O||a&&(r<=o||s>=L))){w=!1;break}x(Uj),n+=Q.y,n<0&&(u=xi,n=-n,g-=n),a&&(T=n*a,r+=(t.width-T)/2);break;case At:if(a){if(Q.y<=0&&(g<=I||s>=L)){w=!1;break}x(xi),n-=Q.y,g+=Q.y,T=n*a}else x(xi),x(Ji),Q.x>=0?sI&&(n-=Q.y,g+=Q.y):(n-=Q.y,g+=Q.y);T<0&&n<0?(u=Qt,n=-n,T=-T,g-=n,r-=T):T<0?(u=Et,T=-T,r-=T):n<0&&(u=xt,n=-n,g-=n);break;case Et:if(a){if(Q.y<=0&&(g<=I||r<=o)){w=!1;break}x(xi),n-=Q.y,g+=Q.y,T=n*a,r+=t.width-T}else x(xi),x($i),Q.x<=0?r>o?(T-=Q.x,r+=Q.x):Q.y<=0&&g<=I&&(w=!1):(T-=Q.x,r+=Q.x),Q.y<=0?g>I&&(n-=Q.y,g+=Q.y):(n-=Q.y,g+=Q.y);T<0&&n<0?(u=xt,n=-n,T=-T,g-=n,r-=T):T<0?(u=At,T=-T,r-=T):n<0&&(u=Qt,n=-n,g-=n);break;case Qt:if(a){if(Q.x<=0&&(r<=o||y>=O)){w=!1;break}x($i),T-=Q.x,r+=Q.x,n=T/a}else x(Uj),x($i),Q.x<=0?r>o?(T-=Q.x,r+=Q.x):Q.y>=0&&y>=O&&(w=!1):(T-=Q.x,r+=Q.x),Q.y>=0?y=0&&(s>=L||y>=O)){w=!1;break}x(Ji),T+=Q.x,n=T/a}else x(Uj),x(Ji),Q.x>=0?s=0&&y>=O&&(w=!1):T+=Q.x,Q.y>=0?y0?u=Q.y>0?xt:At:Q.x<0&&(r-=T,u=Q.y>0?Qt:Et),Q.y<0&&(g-=n),this.cropped||(Ze(this.cropBox,$D),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0));break}w&&(t.width=T,t.height=n,t.left=r,t.top=g,this.action=u,this.renderCropBox()),eD(z,function(f){f.startX=f.endX,f.startY=f.endY})}},dv={crop:function(){return this.ready&&!this.cropped&&!this.disabled&&(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&nD(this.dragBox,Jz),Ze(this.cropBox,$D),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=GN({},this.initialImageData),this.canvasData=GN({},this.initialCanvasData),this.cropBoxData=GN({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(GN(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),Ze(this.dragBox,Jz),nD(this.cropBox,$D)),this},replace:function(D){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!this.disabled&&D&&(this.isImg&&(this.element.src=D),N?(this.url=D,this.image.src=D,this.ready&&(this.viewBoxImage.src=D,eD(this.previews,function(i){i.getElementsByTagName("img")[0].src=D}))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(D))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,Ze(this.cropper,iy)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,nD(this.cropper,iy)),this},destroy:function(){var D=this.element;return D[RN]?(D[RN]=void 0,this.isImg&&this.replaced&&(D.src=this.originalUrl),this.uncreate(),this):this},move:function(D){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:D,i=this.canvasData,j=i.left,t=i.top;return this.moveTo(La(D)?D:j+Number(D),La(N)?N:t+Number(N))},moveTo:function(D){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:D,i=this.canvasData,j=!1;return D=Number(D),N=Number(N),this.ready&&!this.disabled&&this.options.movable&&(wN(D)&&(i.left=D,j=!0),wN(N)&&(i.top=N,j=!0),j&&this.renderCanvas(!0)),this},zoom:function(D,N){var i=this.canvasData;return D=Number(D),D<0?D=1/(1-D):D=1+D,this.zoomTo(i.width*D/i.naturalWidth,null,N)},zoomTo:function(D,N,i){var j=this.options,t=this.canvasData,z=t.width,u=t.height,a=t.naturalWidth,r=t.naturalHeight;if(D=Number(D),D>=0&&this.ready&&!this.disabled&&j.zoomable){var g=a*D,T=r*D;if(mj(this.element,ya,{ratio:D,oldRatio:z/a,originalEvent:i})===!1)return this;if(i){var n=this.pointers,s=Ay(this.cropper),y=n&&Object.keys(n).length?yv(n):{pageX:i.pageX,pageY:i.pageY};t.left-=(g-z)*((y.pageX-s.left-t.left)/z),t.top-=(T-u)*((y.pageY-s.top-t.top)/u)}else Sj(N)&&wN(N.x)&&wN(N.y)?(t.left-=(g-z)*((N.x-t.left)/z),t.top-=(T-u)*((N.y-t.top)/u)):(t.left-=(g-z)/2,t.top-=(T-u)/2);t.width=g,t.height=T,this.renderCanvas(!0)}return this},rotate:function(D){return this.rotateTo((this.imageData.rotate||0)+Number(D))},rotateTo:function(D){return D=Number(D),wN(D)&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=D%360,this.renderCanvas(!0,!0)),this},scaleX:function(D){var N=this.imageData.scaleY;return this.scale(D,wN(N)?N:1)},scaleY:function(D){var N=this.imageData.scaleX;return this.scale(wN(N)?N:1,D)},scale:function(D){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:D,i=this.imageData,j=!1;return D=Number(D),N=Number(N),this.ready&&!this.disabled&&this.options.scalable&&(wN(D)&&(i.scaleX=D,j=!0),wN(N)&&(i.scaleY=N,j=!0),j&&this.renderCanvas(!0,!0)),this},getData:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,N=this.options,i=this.imageData,j=this.canvasData,t=this.cropBoxData,z;if(this.ready&&this.cropped){z={x:t.left-j.left,y:t.top-j.top,width:t.width,height:t.height};var u=i.width/i.naturalWidth;if(eD(z,function(g,T){z[T]=g/u}),D){var a=Math.round(z.y+z.height),r=Math.round(z.x+z.width);z.x=Math.round(z.x),z.y=Math.round(z.y),z.width=r-z.x,z.height=a-z.y}}else z={x:0,y:0,width:0,height:0};return N.rotatable&&(z.rotate=i.rotate||0),N.scalable&&(z.scaleX=i.scaleX||1,z.scaleY=i.scaleY||1),z},setData:function(D){var N=this.options,i=this.imageData,j=this.canvasData,t={};if(this.ready&&!this.disabled&&Sj(D)){var z=!1;N.rotatable&&wN(D.rotate)&&D.rotate!==i.rotate&&(i.rotate=D.rotate,z=!0),N.scalable&&(wN(D.scaleX)&&D.scaleX!==i.scaleX&&(i.scaleX=D.scaleX,z=!0),wN(D.scaleY)&&D.scaleY!==i.scaleY&&(i.scaleY=D.scaleY,z=!0)),z&&this.renderCanvas(!0,!0);var u=i.width/i.naturalWidth;wN(D.x)&&(t.left=D.x*u+j.left),wN(D.y)&&(t.top=D.y*u+j.top),wN(D.width)&&(t.width=D.width*u),wN(D.height)&&(t.height=D.height*u),this.setCropBoxData(t)}return this},getContainerData:function(){return this.ready?GN({},this.containerData):{}},getImageData:function(){return this.sized?GN({},this.imageData):{}},getCanvasData:function(){var D=this.canvasData,N={};return this.ready&&eD(["left","top","width","height","naturalWidth","naturalHeight"],function(i){N[i]=D[i]}),N},setCanvasData:function(D){var N=this.canvasData,i=N.aspectRatio;return this.ready&&!this.disabled&&Sj(D)&&(wN(D.left)&&(N.left=D.left),wN(D.top)&&(N.top=D.top),wN(D.width)?(N.width=D.width,N.height=D.width/i):wN(D.height)&&(N.height=D.height,N.width=D.height*i),this.renderCanvas(!0)),this},getCropBoxData:function(){var D=this.cropBoxData,N;return this.ready&&this.cropped&&(N={left:D.left,top:D.top,width:D.width,height:D.height}),N||{}},setCropBoxData:function(D){var N=this.cropBoxData,i=this.options.aspectRatio,j,t;return this.ready&&this.cropped&&!this.disabled&&Sj(D)&&(wN(D.left)&&(N.left=D.left),wN(D.top)&&(N.top=D.top),wN(D.width)&&D.width!==N.width&&(j=!0,N.width=D.width),wN(D.height)&&D.height!==N.height&&(t=!0,N.height=D.height),i&&(j?N.height=N.width/i:t&&(N.width=N.height*i)),this.renderCropBox()),this},getCroppedCanvas:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var N=this.canvasData,i=ov(this.image,this.imageData,N,D);if(!this.cropped)return i;var j=this.getData(),t=j.x,z=j.y,u=j.width,a=j.height,r=i.width/Math.floor(N.naturalWidth);r!==1&&(t*=r,z*=r,u*=r,a*=r);var g=u/a,T=Yi({aspectRatio:g,width:D.maxWidth||1/0,height:D.maxHeight||1/0}),n=Yi({aspectRatio:g,width:D.minWidth||0,height:D.minHeight||0},"cover"),s=Yi({aspectRatio:g,width:D.width||(r!==1?i.width:u),height:D.height||(r!==1?i.height:a)}),y=s.width,o=s.height;y=Math.min(T.width,Math.max(n.width,y)),o=Math.min(T.height,Math.max(n.height,o));var I=document.createElement("canvas"),L=I.getContext("2d");I.width=pj(y),I.height=pj(o),L.fillStyle=D.fillColor||"transparent",L.fillRect(0,0,y,o);var O=D.imageSmoothingEnabled,w=O===void 0?!0:O,A=D.imageSmoothingQuality;L.imageSmoothingEnabled=w,A&&(L.imageSmoothingQuality=A);var k=i.width,Q=i.height,x=t,f=z,C,W,MM,NM,jM,aM;x<=-u||x>k?(x=0,C=0,MM=0,jM=0):x<=0?(MM=-x,x=0,C=Math.min(k,u+x),jM=C):x<=k&&(MM=0,C=Math.min(u,k-x),jM=C),C<=0||f<=-a||f>Q?(f=0,W=0,NM=0,aM=0):f<=0?(NM=-f,f=0,W=Math.min(Q,a+f),aM=W):f<=Q&&(NM=0,W=Math.min(a,Q-f),aM=W);var tM=[x,f,C,W];if(jM>0&&aM>0){var R=y/u;tM.push(MM*R,NM*R,jM*R,aM*R)}return L.drawImage.apply(L,[i].concat(My(tM.map(function(m){return Math.floor(pj(m))})))),I},setAspectRatio:function(D){var N=this.options;return!this.disabled&&!La(D)&&(N.aspectRatio=Math.max(0,D)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(D){var N=this.options,i=this.dragBox,j=this.face;if(this.ready&&!this.disabled){var t=D===ga,z=N.movable&&D===ty;D=t||z?D:zy,N.dragMode=D,kt(i,Yt,D),hj(i,aa,t),hj(i,ra,z),N.cropBoxMovable||(kt(j,Yt,D),hj(j,aa,t),hj(j,ra,z))}return this}},Cv=He.Cropper,Yy=function(){function M(D){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(Gb(this,M),!D||!iv.test(D.tagName))throw new Error("The first argument is required and must be an or element.");this.element=D,this.options=GN({},oy,Sj(N)&&N),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}return Wb(M,[{key:"init",value:function(){var N=this.element,i=N.tagName.toLowerCase(),j;if(!N[RN]){if(N[RN]=this,i==="img"){if(this.isImg=!0,j=N.getAttribute("src")||"",this.originalUrl=j,!j)return;j=N.src}else i==="canvas"&&window.HTMLCanvasElement&&(j=N.toDataURL());this.load(j)}}},{key:"load",value:function(N){var i=this;if(!!N){this.url=N,this.imageData={};var j=this.element,t=this.options;if(!t.rotatable&&!t.scalable&&(t.checkOrientation=!1),!t.checkOrientation||!window.ArrayBuffer){this.clone();return}if(Dv.test(N)){ev.test(N)?this.read(Ov(N)):this.clone();return}var z=new XMLHttpRequest,u=this.clone.bind(this);this.reloading=!0,this.xhr=z,z.onabort=u,z.onerror=u,z.ontimeout=u,z.onprogress=function(){z.getResponseHeader("content-type")!==sy&&z.abort()},z.onload=function(){i.read(z.response)},z.onloadend=function(){i.reloading=!1,i.xhr=null},t.checkCrossOrigin&&Ey(N)&&j.crossOrigin&&(N=xy(N)),z.open("GET",N,!0),z.responseType="arraybuffer",z.withCredentials=j.crossOrigin==="use-credentials",z.send()}}},{key:"read",value:function(N){var i=this.options,j=this.imageData,t=Av(N),z=0,u=1,a=1;if(t>1){this.url=wv(N,sy);var r=Ev(t);z=r.rotate,u=r.scaleX,a=r.scaleY}i.rotatable&&(j.rotate=z),i.scalable&&(j.scaleX=u,j.scaleY=a),this.clone()}},{key:"clone",value:function(){var N=this.element,i=this.url,j=N.crossOrigin,t=i;this.options.checkCrossOrigin&&Ey(i)&&(j||(j="anonymous"),t=xy(i)),this.crossOrigin=j,this.crossOriginUrl=t;var z=document.createElement("img");j&&(z.crossOrigin=j),z.src=t||i,z.alt=N.alt||"The image to crop",this.image=z,z.onload=this.start.bind(this),z.onerror=this.stop.bind(this),nD(z,jy),N.parentNode.insertBefore(z,N.nextSibling)}},{key:"start",value:function(){var N=this,i=this.image;i.onload=null,i.onerror=null,this.sizing=!0;var j=He.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(He.navigator.userAgent),t=function(r,g){GN(N.imageData,{naturalWidth:r,naturalHeight:g,aspectRatio:r/g}),N.initialImageData=GN({},N.imageData),N.sizing=!1,N.sized=!0,N.build()};if(i.naturalWidth&&!j){t(i.naturalWidth,i.naturalHeight);return}var z=document.createElement("img"),u=document.body||document.documentElement;this.sizingImage=z,z.onload=function(){t(z.width,z.height),j||u.removeChild(z)},z.src=i.src,j||(z.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",u.appendChild(z))}},{key:"stop",value:function(){var N=this.image;N.onload=null,N.onerror=null,N.parentNode.removeChild(N),this.image=null}},{key:"build",value:function(){if(!(!this.sized||this.ready)){var N=this.element,i=this.options,j=this.image,t=N.parentNode,z=document.createElement("div");z.innerHTML=jv;var u=z.querySelector(".".concat(RN,"-container")),a=u.querySelector(".".concat(RN,"-canvas")),r=u.querySelector(".".concat(RN,"-drag-box")),g=u.querySelector(".".concat(RN,"-crop-box")),T=g.querySelector(".".concat(RN,"-face"));this.container=t,this.cropper=u,this.canvas=a,this.dragBox=r,this.cropBox=g,this.viewBox=u.querySelector(".".concat(RN,"-view-box")),this.face=T,a.appendChild(j),nD(N,$D),t.insertBefore(u,N.nextSibling),this.isImg||Ze(j,jy),this.initPreview(),this.bind(),i.initialAspectRatio=Math.max(0,i.initialAspectRatio)||NaN,i.aspectRatio=Math.max(0,i.aspectRatio)||NaN,i.viewMode=Math.max(0,Math.min(3,Math.round(i.viewMode)))||0,nD(g,$D),i.guides||nD(g.getElementsByClassName("".concat(RN,"-dashed")),$D),i.center||nD(g.getElementsByClassName("".concat(RN,"-center")),$D),i.background&&nD(u,"".concat(RN,"-bg")),i.highlight||nD(T,$b),i.cropBoxMovable&&(nD(T,ra),kt(T,Yt,ua)),i.cropBoxResizable||(nD(g.getElementsByClassName("".concat(RN,"-line")),$D),nD(g.getElementsByClassName("".concat(RN,"-point")),$D)),this.render(),this.ready=!0,this.setDragMode(i.dragMode),i.autoCrop&&this.crop(),this.setData(i.data),KD(i.ready)&&le(N,Ty,i.ready,{once:!0}),mj(N,Ty)}}},{key:"unbuild",value:function(){!this.ready||(this.ready=!1,this.unbind(),this.resetPreview(),this.cropper.parentNode.removeChild(this.cropper),Ze(this.element,$D))}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}],[{key:"noConflict",value:function(){return window.Cropper=Cv,M}},{key:"setDefaults",value:function(N){GN(oy,Sj(N)&&N)}}]),M}();GN(Yy.prototype,xv,Qv,Yv,kv,fv,dv);const Uv=["name","field","multiple","accept","disabled"],Sv={key:0},pv=["onClick"],hv=["onClick"],mv=e.createElementVNode("i",{class:"layui-icon"},"\uE67C",-1),Bv=e.createElementVNode("div",{class:"layui-hide",id:"uploadDemoView"},[e.createElementVNode("hr"),e.createElementVNode("img",{src:"",alt:"\u4E0A\u4F20\u6210\u529F\u540E\u6E32\u67D3",style:{"max-width":"196px"}})],-1),bv=["src","id"],vv={name:"LayUpload"},Fv=e.defineComponent({...vv,props:{url:null,data:null,headers:null,acceptMime:{default:"MIME_type"},field:{default:"file"},size:{default:0},multiple:{type:Boolean,default:!1},number:{default:0},drag:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},disabledPreview:{type:Boolean,default:!1},cut:{type:Boolean,default:!1},cutOptions:{default:void 0},text:null,dragText:null,modelValue:{default:null},auto:{type:Boolean,default:!0},sizeOutMsg:null},emits:["choose","chooseAfter","before","done","error","cutdone","cutcancel","update:modelValue"],setup(M,{emit:D}){const N=M,i=()=>{if(MM){let d=MM.getCroppedCanvas().toDataURL('"image/png"'),G=new Date().valueOf(),v=f.value[0];D("cutdone",Object.assign({currentTimeStamp:G,cutResult:d,orginal:v}));let P=tM(d);if(!N.auto){D("update:modelValue",[P]),z();return}rM([P]),e.nextTick(()=>t())}else R(y.value)},j=()=>{let uM=new Date().valueOf();D("cutcancel",Object.assign({currentTimeStamp:uM})),e.nextTick(()=>t())},t=()=>{f.value=[],C.value=[],jM.value=!1,W.value.value="",MM=null},z=()=>{f.value=[],C.value=[],jM.value=!1,MM=null},{t:u}=De(),a=e.computed(()=>N.text?N.text:u("upload.text")),r=e.computed(()=>N.dragText?N.dragText:u("upload.dragText")),g=e.computed(()=>u("upload.defaultErrorMsg")),T=e.computed(()=>u("upload.urlErrorMsg")),n=e.computed(()=>u("upload.numberErrorMsg")),s=e.computed(()=>u("upload.occurFileSizeErrorMsg")),y=e.computed(()=>u("upload.cutInitErrorMsg")),o=e.computed(()=>u("upload.uploadSuccess")),I=e.computed(()=>u("upload.startUploadMsg")),L=e.computed(()=>u("upload.cannotSupportCutMsg")),O=e.computed(()=>u("upload.title")),w=e.computed(()=>u("upload.confirmBtn")),A=e.computed(()=>u("upload.cancelBtn"));let k=e.computed(()=>({type:"component",title:O.value,shade:!0,shadeClose:!0,area:["640px","640px"],btn:[{text:w.value,callback:i},{text:A.value,callback:j}]}));const Q=e.useSlots();Q.default&&Q.default(),e.getCurrentInstance(),e.watch(()=>N.modelValue,()=>{N.modelValue||t()});const x=e.ref(!1),f=e.ref([]),C=e.ref([]),W=dA("orgFileInput");let MM=null,NM;N.cutOptions&&N.cutOptions.layerOption?NM=e.computed(()=>Object.assign(k,N.cutOptions.layerOption)):NM=e.computed(()=>k.value);const jM=e.ref(!1),aM=uM=>{const{url:d,files:G}=uM;let v=new FormData;if(d.length<=5){R(T.value);return}if(Array.isArray(G)&&G.length>0)for(let p=0;p{m({url:d,formData:v},function(){clearTimeout(P)})},200)},tM=uM=>{let d=uM.split(","),G="";d.length>0&&(G=d[0].match(/:(.*?);/)[1]);let v=atob(d[1]),P=v.length,p=new Uint8Array(P);for(;P--;)p[P]=v.charCodeAt(P);return new Blob([p],{type:G})},R=uM=>{let d=new Date().valueOf(),G=uM||g;G=`layui-vue:${G}`,console.warn(G),oD.msg(G,{icon:2,time:1e3},function(v){}),D("error",Object.assign({currentTimeStamp:d,msg:G}))},m=(uM,d)=>{let G=new XMLHttpRequest,v=uM.url,P=uM.formData;const p=d;if(G.onreadystatechange=function(){let zM=new Date().valueOf();if(G.readyState===1){if(G.status>=200&&G.status<=300||G.status===304||G.status==0){let TM=I.value;D("before",Object.assign({currentTimeStamp:zM,msg:TM,...uM}))}}else if(G.readyState===4){let TM=G.responseText?G.responseText:o;if(G.status>=200&&G.status<=300||G.status===304||G.status==0){let DM=G.responseText;D("done",{currentTimeStamp:zM,msg:TM,data:DM})}}},G.open("post",v,!0),N.headers)for(let zM in N.headers)G.setRequestHeader(zM,N.headers[zM]);else G.setRequestHeader("Accept","application/json, text/javascript");let Z=new Date().valueOf();D("before",Object.assign(uM,Z)),G.send(P),p&&typeof p=="function"&&p(),t()},J=(uM,d)=>{const G=new FileReader;G.onloadend=function(v){d(v.target.result)},G.readAsDataURL(uM)},K=uM=>{uM.preventDefault();const d=[...uM.target.files||uM.dataTransfer.files];if(N.multiple&&N.number!=0&&N.numberN.size*1024){R(N.sizeOutMsg||s.value);return}}for(let P of d)f.value.push(P),J(P,function(p){C.value.push(p)});let G=N.cut&&N.acceptMime.indexOf("image")!=-1&&N.multiple==!1,v=N.cut&&N.acceptMime.indexOf("image")!=-1&&N.multiple==!0;if(G)jM.value=!0,setTimeout(()=>{let P=document.getElementsByClassName("_lay_upload_img");if(P&&P.length>0){let p=P[0];MM=new Yy(p,{aspectRatio:16/9})}else t()},200);else{if(v&&console.warn(L.value),!N.auto){D("update:modelValue",d);return}rM(d)}},rM=uM=>{let d=new Date().valueOf(),G=o;N.url?aM({url:N.url,files:uM}):(D("done",{currentTimeStamp:d,msg:G,data:uM}),t())},IM=()=>{let uM=W.value;uM&&uM.click()},OM=()=>{let uM=new Date().valueOf();D("choose",uM)},oM=e.ref();function bM(uM){uM.stopPropagation(),uM.preventDefault()}function eM(uM){uM.stopPropagation(),uM.preventDefault()}return e.onMounted(()=>{e.nextTick(()=>{oM.value&&(oM.value.addEventListener("dragenter",bM,!1),oM.value.addEventListener("dragover",eM,!1),oM.value.addEventListener("drop",K,!1))})}),e.onUnmounted(()=>{oM.value&&(oM.value.removeEventListener("dragenter"),oM.value.removeEventListener("dragover"),oM.value.removeEventListener("drop"))}),(uM,d)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["layui-upload layui-upload-wrap",M.disabledPreview?"layui-upload-file-disabled":""])},[e.createElementVNode("input",{type:"file",class:"layui-upload-file",ref_key:"orgFileInput",ref:W,name:M.field,field:M.field,multiple:M.multiple,accept:M.acceptMime,disabled:M.disabled,onClick:OM,onChange:K},null,40,Uv),M.drag?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"dragRef",ref:oM,class:e.normalizeClass(["layui-upload-drag",M.disabled?"layui-upload-drag-disable":x.value?"layui-upload-drag-draging":""]),onClick:e.withModifiers(IM,["stop"])},[mv,e.createElementVNode("p",null,e.toDisplayString(e.unref(r)),1),Bv],10,hv)):(e.openBlock(),e.createElementBlock("div",Sv,[e.createElementVNode("div",{class:"layui-upload-btn-box",onClick:e.withModifiers(IM,["stop"])},[e.unref(Q).default?e.renderSlot(uM.$slots,"default",{key:0,disabled:M.disabled}):(e.openBlock(),e.createBlock(gj,{key:1,type:"primary",disabled:M.disabled},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)),1)]),_:1},8,["disabled"]))],8,pv)])),e.createVNode(e.unref(Vt),{modelValue:jM.value,"onUpdate:modelValue":d[0]||(d[0]=G=>jM.value=G),title:e.unref(NM).title,move:e.unref(NM).move,resize:e.unref(NM).resize,shade:e.unref(NM).shade,shadeClose:e.unref(NM).shadeClose,shadeOpacity:e.unref(NM).shadeOpacity,zIndex:e.unref(NM).zIndex,btnAlign:e.unref(NM).btnAlign,area:e.unref(NM).area,anim:e.unref(NM).anim,isOutAnim:e.unref(NM).isOutAnim,btn:e.unref(NM).btn,onClose:t},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,(G,v)=>(e.openBlock(),e.createElementBlock("div",{class:"copper-container",key:`file${v}`},[e.createElementVNode("img",{src:G,id:`_lay_upload_img${v}`,class:"_lay_upload_img"},null,8,bv)]))),128))]),_:1},8,["modelValue","title","move","resize","shade","shadeClose","shadeOpacity","zIndex","btnAlign","area","anim","isOutAnim","btn"]),e.createElementVNode("div",{class:e.normalizeClass(["layui-upload-list",M.disabledPreview?"layui-upload-list-disabled":""])},[e.renderSlot(uM.$slots,"preview")],2)],2))}}),ky=JM(Fv);var w_=(()=>`.layui-water-ripples-container{position:relative;display:inline-block}.layui-water-ripples-container .layui-slot-container{position:relative;z-index:2}.layui-water-ripples-container .layui-out-ripples{position:absolute;left:0;top:0;height:100%;opacity:1;z-index:1;pointer-events:none}.layui-water-ripples-container .layui-animate-once--out{animation:ripple-effect 1s forwards}.layui-water-ripples-container .layui-animate-always--out{animation:ripple-effect 1s infinite}@keyframes ripple-effect{0%{box-shadow:0 0 0 0 var(--layui-ripple-color);opacity:.4}to{box-shadow:0 0 0 var(--layui-spread-width) var(--layui-ripple-color);opacity:0}}.layui-water-ripples-container .layui-inset-ripples{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);opacity:1;width:0px;height:0px;background:var(--layui-ripple-color);pointer-events:none}@keyframes size-effect{0%{width:0px;height:0px;opacity:.8}to{width:var(--layui-spread-size);height:var(--layui-spread-size);opacity:0}}.layui-water-ripples-container .layui-animate-once--inset{animation:size-effect 1s forwards}.layui-water-ripples-container .layui-animate-always--inset{animation:size-effect 1s infinite} +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Xz=typeof window!="undefined"&&typeof window.document!="undefined",He=Xz?window:{},ta=Xz&&He.document.documentElement?"ontouchstart"in He.document.documentElement:!1,za=Xz?"PointerEvent"in He:!1,RN="cropper",ua="all",Ny="crop",Dy="move",ey="zoom",Ji="e",$i="w",Uj="s",xi="n",At="ne",Et="nw",xt="se",Qt="sw",aa="".concat(RN,"-crop"),iy="".concat(RN,"-disabled"),$D="".concat(RN,"-hidden"),jy="".concat(RN,"-hide"),$b="".concat(RN,"-invisible"),Jz="".concat(RN,"-modal"),ra="".concat(RN,"-move"),Yt="".concat(RN,"Action"),$z="".concat(RN,"Preview"),ga="crop",ty="move",zy="none",Ta="crop",na="cropend",ca="cropmove",sa="cropstart",uy="dblclick",Kb=ta?"touchstart":"mousedown",qb=ta?"touchmove":"mousemove",Mv=ta?"touchend touchcancel":"mouseup",ay=za?"pointerdown":Kb,ry=za?"pointermove":qb,gy=za?"pointerup pointercancel":Mv,Ty="ready",ny="resize",cy="wheel",ya="zoom",sy="image/jpeg",Nv=/^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/,Dv=/^data:/,ev=/^data:image\/jpeg;base64,/,iv=/^img|canvas$/i,yy=200,Ly=100,oy={viewMode:0,dragMode:ga,initialAspectRatio:NaN,aspectRatio:NaN,data:null,preview:"",responsive:!0,restore:!0,checkCrossOrigin:!0,checkOrientation:!0,modal:!0,guides:!0,center:!0,highlight:!0,background:!0,autoCrop:!0,autoCropArea:.8,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,wheelZoomRatio:.1,cropBoxMovable:!0,cropBoxResizable:!0,toggleDragModeOnDblclick:!0,minCanvasWidth:0,minCanvasHeight:0,minCropBoxWidth:0,minCropBoxHeight:0,minContainerWidth:yy,minContainerHeight:Ly,ready:null,cropstart:null,cropmove:null,cropend:null,crop:null,zoom:null},jv='
',tv=Number.isNaN||He.isNaN;function wN(M){return typeof M=="number"&&!tv(M)}var ly=function(D){return D>0&&D<1/0};function La(M){return typeof M=="undefined"}function Ki(M){return Zz(M)==="object"&&M!==null}var zv=Object.prototype.hasOwnProperty;function Sj(M){if(!Ki(M))return!1;try{var D=M.constructor,N=D.prototype;return D&&N&&zv.call(N,"isPrototypeOf")}catch{return!1}}function KD(M){return typeof M=="function"}var uv=Array.prototype.slice;function Iy(M){return Array.from?Array.from(M):uv.call(M)}function eD(M,D){return M&&KD(D)&&(Array.isArray(M)||wN(M.length)?Iy(M).forEach(function(N,i){D.call(M,N,i,M)}):Ki(M)&&Object.keys(M).forEach(function(N){D.call(M,M[N],N,M)})),M}var GN=Object.assign||function(D){for(var N=arguments.length,i=new Array(N>1?N-1:0),j=1;j0&&i.forEach(function(t){Ki(t)&&Object.keys(t).forEach(function(z){D[z]=t[z]})}),D},av=/\.\d*(?:0|9){12}\d*$/;function pj(M){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e11;return av.test(M)?Math.round(M*D)/D:M}var rv=/^width|height|left|top|marginLeft|marginTop$/;function Qi(M,D){var N=M.style;eD(D,function(i,j){rv.test(j)&&wN(i)&&(i="".concat(i,"px")),N[j]=i})}function gv(M,D){return M.classList?M.classList.contains(D):M.className.indexOf(D)>-1}function nD(M,D){if(!!D){if(wN(M.length)){eD(M,function(i){nD(i,D)});return}if(M.classList){M.classList.add(D);return}var N=M.className.trim();N?N.indexOf(D)<0&&(M.className="".concat(N," ").concat(D)):M.className=D}}function Ze(M,D){if(!!D){if(wN(M.length)){eD(M,function(N){Ze(N,D)});return}if(M.classList){M.classList.remove(D);return}M.className.indexOf(D)>=0&&(M.className=M.className.replace(D,""))}}function hj(M,D,N){if(!!D){if(wN(M.length)){eD(M,function(i){hj(i,D,N)});return}N?nD(M,D):Ze(M,D)}}var Tv=/([a-z\d])([A-Z])/g;function oa(M){return M.replace(Tv,"$1-$2").toLowerCase()}function la(M,D){return Ki(M[D])?M[D]:M.dataset?M.dataset[D]:M.getAttribute("data-".concat(oa(D)))}function kt(M,D,N){Ki(N)?M[D]=N:M.dataset?M.dataset[D]=N:M.setAttribute("data-".concat(oa(D)),N)}function nv(M,D){if(Ki(M[D]))try{delete M[D]}catch{M[D]=void 0}else if(M.dataset)try{delete M.dataset[D]}catch{M.dataset[D]=void 0}else M.removeAttribute("data-".concat(oa(D)))}var Oy=/\s\s*/,wy=function(){var M=!1;if(Xz){var D=!1,N=function(){},i=Object.defineProperty({},"once",{get:function(){return M=!0,D},set:function(t){D=t}});He.addEventListener("test",N,i),He.removeEventListener("test",N,i)}return M}();function pe(M,D,N){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},j=N;D.trim().split(Oy).forEach(function(t){if(!wy){var z=M.listeners;z&&z[t]&&z[t][N]&&(j=z[t][N],delete z[t][N],Object.keys(z[t]).length===0&&delete z[t],Object.keys(z).length===0&&delete M.listeners)}M.removeEventListener(t,j,i)})}function le(M,D,N){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},j=N;D.trim().split(Oy).forEach(function(t){if(i.once&&!wy){var z=M.listeners,u=z===void 0?{}:z;j=function(){delete u[t][N],M.removeEventListener(t,j,i);for(var r=arguments.length,g=new Array(r),T=0;TMath.abs(N)&&(N=n)})}),N}function Kz(M,D){var N=M.pageX,i=M.pageY,j={endX:N,endY:i};return D?j:Ks({startX:N,startY:i},j)}function yv(M){var D=0,N=0,i=0;return eD(M,function(j){var t=j.startX,z=j.startY;D+=t,N+=z,i+=1}),D/=i,N/=i,{pageX:D,pageY:N}}function Yi(M){var D=M.aspectRatio,N=M.height,i=M.width,j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"contain",t=ly(i),z=ly(N);if(t&&z){var u=N*D;j==="contain"&&u>i||j==="cover"&&u90?{width:a,height:u}:{width:u,height:a}}function ov(M,D,N,i){var j=D.aspectRatio,t=D.naturalWidth,z=D.naturalHeight,u=D.rotate,a=u===void 0?0:u,r=D.scaleX,g=r===void 0?1:r,T=D.scaleY,n=T===void 0?1:T,s=N.aspectRatio,y=N.naturalWidth,o=N.naturalHeight,I=i.fillColor,L=I===void 0?"transparent":I,O=i.imageSmoothingEnabled,w=O===void 0?!0:O,A=i.imageSmoothingQuality,k=A===void 0?"low":A,Q=i.maxWidth,x=Q===void 0?1/0:Q,f=i.maxHeight,C=f===void 0?1/0:f,W=i.minWidth,MM=W===void 0?0:W,NM=i.minHeight,jM=NM===void 0?0:NM,aM=document.createElement("canvas"),tM=aM.getContext("2d"),R=Yi({aspectRatio:s,width:x,height:C}),m=Yi({aspectRatio:s,width:MM,height:jM},"cover"),J=Math.min(R.width,Math.max(m.width,y)),K=Math.min(R.height,Math.max(m.height,o)),rM=Yi({aspectRatio:j,width:x,height:C}),IM=Yi({aspectRatio:j,width:MM,height:jM},"cover"),OM=Math.min(rM.width,Math.max(IM.width,t)),oM=Math.min(rM.height,Math.max(IM.height,z)),bM=[-OM/2,-oM/2,OM,oM];return aM.width=pj(J),aM.height=pj(K),tM.fillStyle=L,tM.fillRect(0,0,J,K),tM.save(),tM.translate(J/2,K/2),tM.rotate(a*Math.PI/180),tM.scale(g,n),tM.imageSmoothingEnabled=w,tM.imageSmoothingQuality=k,tM.drawImage.apply(tM,[M].concat(My(bM.map(function(eM){return Math.floor(pj(eM))})))),tM.restore(),aM}var Qy=String.fromCharCode;function lv(M,D,N){var i="";N+=D;for(var j=D;j0;)N.push(Qy.apply(null,Iy(j.subarray(0,i)))),j=j.subarray(i);return"data:".concat(D,";base64,").concat(btoa(N.join("")))}function Av(M){var D=new DataView(M),N;try{var i,j,t;if(D.getUint8(0)===255&&D.getUint8(1)===216)for(var z=D.byteLength,u=2;u+1=8&&(t=r+T)}}}if(t){var n=D.getUint16(t,i),s,y;for(y=0;y=0?t:yy),height:Math.max(i.offsetHeight,z>=0?z:Ly)};this.containerData=u,Qi(j,{width:u.width,height:u.height}),nD(D,$D),Ze(j,$D)},initCanvas:function(){var D=this.containerData,N=this.imageData,i=this.options.viewMode,j=Math.abs(N.rotate)%180===90,t=j?N.naturalHeight:N.naturalWidth,z=j?N.naturalWidth:N.naturalHeight,u=t/z,a=D.width,r=D.height;D.height*u>D.width?i===3?a=D.height*u:r=D.width/u:i===3?r=D.width/u:a=D.height*u;var g={aspectRatio:u,naturalWidth:t,naturalHeight:z,width:a,height:r};this.canvasData=g,this.limited=i===1||i===2,this.limitCanvas(!0,!0),g.width=Math.min(Math.max(g.width,g.minWidth),g.maxWidth),g.height=Math.min(Math.max(g.height,g.minHeight),g.maxHeight),g.left=(D.width-g.width)/2,g.top=(D.height-g.height)/2,g.oldLeft=g.left,g.oldTop=g.top,this.initialCanvasData=GN({},g)},limitCanvas:function(D,N){var i=this.options,j=this.containerData,t=this.canvasData,z=this.cropBoxData,u=i.viewMode,a=t.aspectRatio,r=this.cropped&&z;if(D){var g=Number(i.minCanvasWidth)||0,T=Number(i.minCanvasHeight)||0;u>1?(g=Math.max(g,j.width),T=Math.max(T,j.height),u===3&&(T*a>g?g=T*a:T=g/a)):u>0&&(g?g=Math.max(g,r?z.width:0):T?T=Math.max(T,r?z.height:0):r&&(g=z.width,T=z.height,T*a>g?g=T*a:T=g/a));var n=Yi({aspectRatio:a,width:g,height:T});g=n.width,T=n.height,t.minWidth=g,t.minHeight=T,t.maxWidth=1/0,t.maxHeight=1/0}if(N)if(u>(r?0:1)){var s=j.width-t.width,y=j.height-t.height;t.minLeft=Math.min(0,s),t.minTop=Math.min(0,y),t.maxLeft=Math.max(0,s),t.maxTop=Math.max(0,y),r&&this.limited&&(t.minLeft=Math.min(z.left,z.left+(z.width-t.width)),t.minTop=Math.min(z.top,z.top+(z.height-t.height)),t.maxLeft=z.left,t.maxTop=z.top,u===2&&(t.width>=j.width&&(t.minLeft=Math.min(0,s),t.maxLeft=Math.max(0,s)),t.height>=j.height&&(t.minTop=Math.min(0,y),t.maxTop=Math.max(0,y))))}else t.minLeft=-t.width,t.minTop=-t.height,t.maxLeft=j.width,t.maxTop=j.height},renderCanvas:function(D,N){var i=this.canvasData,j=this.imageData;if(N){var t=Lv({width:j.naturalWidth*Math.abs(j.scaleX||1),height:j.naturalHeight*Math.abs(j.scaleY||1),degree:j.rotate||0}),z=t.width,u=t.height,a=i.width*(z/i.naturalWidth),r=i.height*(u/i.naturalHeight);i.left-=(a-i.width)/2,i.top-=(r-i.height)/2,i.width=a,i.height=r,i.aspectRatio=z/u,i.naturalWidth=z,i.naturalHeight=u,this.limitCanvas(!0,!1)}(i.width>i.maxWidth||i.widthi.maxHeight||i.heightN.width?t.height=t.width/i:t.width=t.height*i),this.cropBoxData=t,this.limitCropBox(!0,!0),t.width=Math.min(Math.max(t.width,t.minWidth),t.maxWidth),t.height=Math.min(Math.max(t.height,t.minHeight),t.maxHeight),t.width=Math.max(t.minWidth,t.width*j),t.height=Math.max(t.minHeight,t.height*j),t.left=N.left+(N.width-t.width)/2,t.top=N.top+(N.height-t.height)/2,t.oldLeft=t.left,t.oldTop=t.top,this.initialCropBoxData=GN({},t)},limitCropBox:function(D,N){var i=this.options,j=this.containerData,t=this.canvasData,z=this.cropBoxData,u=this.limited,a=i.aspectRatio;if(D){var r=Number(i.minCropBoxWidth)||0,g=Number(i.minCropBoxHeight)||0,T=u?Math.min(j.width,t.width,t.width+t.left,j.width-t.left):j.width,n=u?Math.min(j.height,t.height,t.height+t.top,j.height-t.top):j.height;r=Math.min(r,j.width),g=Math.min(g,j.height),a&&(r&&g?g*a>r?g=r/a:r=g*a:r?g=r/a:g&&(r=g*a),n*a>T?n=T/a:T=n*a),z.minWidth=Math.min(r,T),z.minHeight=Math.min(g,n),z.maxWidth=T,z.maxHeight=n}N&&(u?(z.minLeft=Math.max(0,t.left),z.minTop=Math.max(0,t.top),z.maxLeft=Math.min(j.width,t.left+t.width)-z.width,z.maxTop=Math.min(j.height,t.top+t.height)-z.height):(z.minLeft=0,z.minTop=0,z.maxLeft=j.width-z.width,z.maxTop=j.height-z.height))},renderCropBox:function(){var D=this.options,N=this.containerData,i=this.cropBoxData;(i.width>i.maxWidth||i.widthi.maxHeight||i.height=N.width&&i.height>=N.height?Dy:ua),Qi(this.cropBox,GN({width:i.width,height:i.height},ft({translateX:i.left,translateY:i.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),mj(this.element,Ta,this.getData())}},Qv={initPreview:function(){var D=this.element,N=this.crossOrigin,i=this.options.preview,j=N?this.crossOriginUrl:this.url,t=D.alt||"The image to preview",z=document.createElement("img");if(N&&(z.crossOrigin=N),z.src=j,z.alt=t,this.viewBox.appendChild(z),this.viewBoxImage=z,!!i){var u=i;typeof i=="string"?u=D.ownerDocument.querySelectorAll(i):i.querySelector&&(u=[i]),this.previews=u,eD(u,function(a){var r=document.createElement("img");kt(a,$z,{width:a.offsetWidth,height:a.offsetHeight,html:a.innerHTML}),N&&(r.crossOrigin=N),r.src=j,r.alt=t,r.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',a.innerHTML="",a.appendChild(r)})}},resetPreview:function(){eD(this.previews,function(D){var N=la(D,$z);Qi(D,{width:N.width,height:N.height}),D.innerHTML=N.html,nv(D,$z)})},preview:function(){var D=this.imageData,N=this.canvasData,i=this.cropBoxData,j=i.width,t=i.height,z=D.width,u=D.height,a=i.left-N.left-D.left,r=i.top-N.top-D.top;!this.cropped||this.disabled||(Qi(this.viewBoxImage,GN({width:z,height:u},ft(GN({translateX:-a,translateY:-r},D)))),eD(this.previews,function(g){var T=la(g,$z),n=T.width,s=T.height,y=n,o=s,I=1;j&&(I=n/j,o=t*I),t&&o>s&&(I=s/t,y=j*I,o=s),Qi(g,{width:y,height:o}),Qi(g.getElementsByTagName("img")[0],GN({width:z*I,height:u*I},ft(GN({translateX:-a*I,translateY:-r*I},D))))}))}},Yv={bind:function(){var D=this.element,N=this.options,i=this.cropper;KD(N.cropstart)&&le(D,sa,N.cropstart),KD(N.cropmove)&&le(D,ca,N.cropmove),KD(N.cropend)&&le(D,na,N.cropend),KD(N.crop)&&le(D,Ta,N.crop),KD(N.zoom)&&le(D,ya,N.zoom),le(i,ay,this.onCropStart=this.cropStart.bind(this)),N.zoomable&&N.zoomOnWheel&&le(i,cy,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),N.toggleDragModeOnDblclick&&le(i,uy,this.onDblclick=this.dblclick.bind(this)),le(D.ownerDocument,ry,this.onCropMove=this.cropMove.bind(this)),le(D.ownerDocument,gy,this.onCropEnd=this.cropEnd.bind(this)),N.responsive&&le(window,ny,this.onResize=this.resize.bind(this))},unbind:function(){var D=this.element,N=this.options,i=this.cropper;KD(N.cropstart)&&pe(D,sa,N.cropstart),KD(N.cropmove)&&pe(D,ca,N.cropmove),KD(N.cropend)&&pe(D,na,N.cropend),KD(N.crop)&&pe(D,Ta,N.crop),KD(N.zoom)&&pe(D,ya,N.zoom),pe(i,ay,this.onCropStart),N.zoomable&&N.zoomOnWheel&&pe(i,cy,this.onWheel,{passive:!1,capture:!0}),N.toggleDragModeOnDblclick&&pe(i,uy,this.onDblclick),pe(D.ownerDocument,ry,this.onCropMove),pe(D.ownerDocument,gy,this.onCropEnd),N.responsive&&pe(window,ny,this.onResize)}},kv={resize:function(){if(!this.disabled){var D=this.options,N=this.container,i=this.containerData,j=N.offsetWidth/i.width,t=N.offsetHeight/i.height,z=Math.abs(j-1)>Math.abs(t-1)?j:t;if(z!==1){var u,a;D.restore&&(u=this.getCanvasData(),a=this.getCropBoxData()),this.render(),D.restore&&(this.setCanvasData(eD(u,function(r,g){u[g]=r*z})),this.setCropBoxData(eD(a,function(r,g){a[g]=r*z})))}}},dblclick:function(){this.disabled||this.options.dragMode===zy||this.setDragMode(gv(this.dragBox,aa)?ty:ga)},wheel:function(D){var N=this,i=Number(this.options.wheelZoomRatio)||.1,j=1;this.disabled||(D.preventDefault(),!this.wheeling&&(this.wheeling=!0,setTimeout(function(){N.wheeling=!1},50),D.deltaY?j=D.deltaY>0?1:-1:D.wheelDelta?j=-D.wheelDelta/120:D.detail&&(j=D.detail>0?1:-1),this.zoom(-j*i,D)))},cropStart:function(D){var N=D.buttons,i=D.button;if(!(this.disabled||(D.type==="mousedown"||D.type==="pointerdown"&&D.pointerType==="mouse")&&(wN(N)&&N!==1||wN(i)&&i!==0||D.ctrlKey))){var j=this.options,t=this.pointers,z;D.changedTouches?eD(D.changedTouches,function(u){t[u.identifier]=Kz(u)}):t[D.pointerId||0]=Kz(D),Object.keys(t).length>1&&j.zoomable&&j.zoomOnTouch?z=ey:z=la(D.target,Yt),!!Nv.test(z)&&mj(this.element,sa,{originalEvent:D,action:z})!==!1&&(D.preventDefault(),this.action=z,this.cropping=!1,z===Ny&&(this.cropping=!0,nD(this.dragBox,Jz)))}},cropMove:function(D){var N=this.action;if(!(this.disabled||!N)){var i=this.pointers;D.preventDefault(),mj(this.element,ca,{originalEvent:D,action:N})!==!1&&(D.changedTouches?eD(D.changedTouches,function(j){GN(i[j.identifier]||{},Kz(j,!0))}):GN(i[D.pointerId||0]||{},Kz(D,!0)),this.change(D))}},cropEnd:function(D){if(!this.disabled){var N=this.action,i=this.pointers;D.changedTouches?eD(D.changedTouches,function(j){delete i[j.identifier]}):delete i[D.pointerId||0],N&&(D.preventDefault(),Object.keys(i).length||(this.action=""),this.cropping&&(this.cropping=!1,hj(this.dragBox,Jz,this.cropped&&this.options.modal)),mj(this.element,na,{originalEvent:D,action:N}))}}},fv={change:function(D){var N=this.options,i=this.canvasData,j=this.containerData,t=this.cropBoxData,z=this.pointers,u=this.action,a=N.aspectRatio,r=t.left,g=t.top,T=t.width,n=t.height,s=r+T,y=g+n,o=0,I=0,L=j.width,O=j.height,w=!0,A;!a&&D.shiftKey&&(a=T&&n?T/n:1),this.limited&&(o=t.minLeft,I=t.minTop,L=o+Math.min(j.width,i.width,i.left+i.width),O=I+Math.min(j.height,i.height,i.top+i.height));var k=z[Object.keys(z)[0]],Q={x:k.endX-k.startX,y:k.endY-k.startY},x=function(C){switch(C){case Ji:s+Q.x>L&&(Q.x=L-s);break;case $i:r+Q.xO&&(Q.y=O-y);break}};switch(u){case ua:r+=Q.x,g+=Q.y;break;case Ji:if(Q.x>=0&&(s>=L||a&&(g<=I||y>=O))){w=!1;break}x(Ji),T+=Q.x,T<0&&(u=$i,T=-T,r-=T),a&&(n=T/a,g+=(t.height-n)/2);break;case xi:if(Q.y<=0&&(g<=I||a&&(r<=o||s>=L))){w=!1;break}x(xi),n-=Q.y,g+=Q.y,n<0&&(u=Uj,n=-n,g-=n),a&&(T=n*a,r+=(t.width-T)/2);break;case $i:if(Q.x<=0&&(r<=o||a&&(g<=I||y>=O))){w=!1;break}x($i),T-=Q.x,r+=Q.x,T<0&&(u=Ji,T=-T,r-=T),a&&(n=T/a,g+=(t.height-n)/2);break;case Uj:if(Q.y>=0&&(y>=O||a&&(r<=o||s>=L))){w=!1;break}x(Uj),n+=Q.y,n<0&&(u=xi,n=-n,g-=n),a&&(T=n*a,r+=(t.width-T)/2);break;case At:if(a){if(Q.y<=0&&(g<=I||s>=L)){w=!1;break}x(xi),n-=Q.y,g+=Q.y,T=n*a}else x(xi),x(Ji),Q.x>=0?sI&&(n-=Q.y,g+=Q.y):(n-=Q.y,g+=Q.y);T<0&&n<0?(u=Qt,n=-n,T=-T,g-=n,r-=T):T<0?(u=Et,T=-T,r-=T):n<0&&(u=xt,n=-n,g-=n);break;case Et:if(a){if(Q.y<=0&&(g<=I||r<=o)){w=!1;break}x(xi),n-=Q.y,g+=Q.y,T=n*a,r+=t.width-T}else x(xi),x($i),Q.x<=0?r>o?(T-=Q.x,r+=Q.x):Q.y<=0&&g<=I&&(w=!1):(T-=Q.x,r+=Q.x),Q.y<=0?g>I&&(n-=Q.y,g+=Q.y):(n-=Q.y,g+=Q.y);T<0&&n<0?(u=xt,n=-n,T=-T,g-=n,r-=T):T<0?(u=At,T=-T,r-=T):n<0&&(u=Qt,n=-n,g-=n);break;case Qt:if(a){if(Q.x<=0&&(r<=o||y>=O)){w=!1;break}x($i),T-=Q.x,r+=Q.x,n=T/a}else x(Uj),x($i),Q.x<=0?r>o?(T-=Q.x,r+=Q.x):Q.y>=0&&y>=O&&(w=!1):(T-=Q.x,r+=Q.x),Q.y>=0?y=0&&(s>=L||y>=O)){w=!1;break}x(Ji),T+=Q.x,n=T/a}else x(Uj),x(Ji),Q.x>=0?s=0&&y>=O&&(w=!1):T+=Q.x,Q.y>=0?y0?u=Q.y>0?xt:At:Q.x<0&&(r-=T,u=Q.y>0?Qt:Et),Q.y<0&&(g-=n),this.cropped||(Ze(this.cropBox,$D),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0));break}w&&(t.width=T,t.height=n,t.left=r,t.top=g,this.action=u,this.renderCropBox()),eD(z,function(f){f.startX=f.endX,f.startY=f.endY})}},dv={crop:function(){return this.ready&&!this.cropped&&!this.disabled&&(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&nD(this.dragBox,Jz),Ze(this.cropBox,$D),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=GN({},this.initialImageData),this.canvasData=GN({},this.initialCanvasData),this.cropBoxData=GN({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(GN(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),Ze(this.dragBox,Jz),nD(this.cropBox,$D)),this},replace:function(D){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!this.disabled&&D&&(this.isImg&&(this.element.src=D),N?(this.url=D,this.image.src=D,this.ready&&(this.viewBoxImage.src=D,eD(this.previews,function(i){i.getElementsByTagName("img")[0].src=D}))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(D))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,Ze(this.cropper,iy)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,nD(this.cropper,iy)),this},destroy:function(){var D=this.element;return D[RN]?(D[RN]=void 0,this.isImg&&this.replaced&&(D.src=this.originalUrl),this.uncreate(),this):this},move:function(D){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:D,i=this.canvasData,j=i.left,t=i.top;return this.moveTo(La(D)?D:j+Number(D),La(N)?N:t+Number(N))},moveTo:function(D){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:D,i=this.canvasData,j=!1;return D=Number(D),N=Number(N),this.ready&&!this.disabled&&this.options.movable&&(wN(D)&&(i.left=D,j=!0),wN(N)&&(i.top=N,j=!0),j&&this.renderCanvas(!0)),this},zoom:function(D,N){var i=this.canvasData;return D=Number(D),D<0?D=1/(1-D):D=1+D,this.zoomTo(i.width*D/i.naturalWidth,null,N)},zoomTo:function(D,N,i){var j=this.options,t=this.canvasData,z=t.width,u=t.height,a=t.naturalWidth,r=t.naturalHeight;if(D=Number(D),D>=0&&this.ready&&!this.disabled&&j.zoomable){var g=a*D,T=r*D;if(mj(this.element,ya,{ratio:D,oldRatio:z/a,originalEvent:i})===!1)return this;if(i){var n=this.pointers,s=Ay(this.cropper),y=n&&Object.keys(n).length?yv(n):{pageX:i.pageX,pageY:i.pageY};t.left-=(g-z)*((y.pageX-s.left-t.left)/z),t.top-=(T-u)*((y.pageY-s.top-t.top)/u)}else Sj(N)&&wN(N.x)&&wN(N.y)?(t.left-=(g-z)*((N.x-t.left)/z),t.top-=(T-u)*((N.y-t.top)/u)):(t.left-=(g-z)/2,t.top-=(T-u)/2);t.width=g,t.height=T,this.renderCanvas(!0)}return this},rotate:function(D){return this.rotateTo((this.imageData.rotate||0)+Number(D))},rotateTo:function(D){return D=Number(D),wN(D)&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=D%360,this.renderCanvas(!0,!0)),this},scaleX:function(D){var N=this.imageData.scaleY;return this.scale(D,wN(N)?N:1)},scaleY:function(D){var N=this.imageData.scaleX;return this.scale(wN(N)?N:1,D)},scale:function(D){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:D,i=this.imageData,j=!1;return D=Number(D),N=Number(N),this.ready&&!this.disabled&&this.options.scalable&&(wN(D)&&(i.scaleX=D,j=!0),wN(N)&&(i.scaleY=N,j=!0),j&&this.renderCanvas(!0,!0)),this},getData:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,N=this.options,i=this.imageData,j=this.canvasData,t=this.cropBoxData,z;if(this.ready&&this.cropped){z={x:t.left-j.left,y:t.top-j.top,width:t.width,height:t.height};var u=i.width/i.naturalWidth;if(eD(z,function(g,T){z[T]=g/u}),D){var a=Math.round(z.y+z.height),r=Math.round(z.x+z.width);z.x=Math.round(z.x),z.y=Math.round(z.y),z.width=r-z.x,z.height=a-z.y}}else z={x:0,y:0,width:0,height:0};return N.rotatable&&(z.rotate=i.rotate||0),N.scalable&&(z.scaleX=i.scaleX||1,z.scaleY=i.scaleY||1),z},setData:function(D){var N=this.options,i=this.imageData,j=this.canvasData,t={};if(this.ready&&!this.disabled&&Sj(D)){var z=!1;N.rotatable&&wN(D.rotate)&&D.rotate!==i.rotate&&(i.rotate=D.rotate,z=!0),N.scalable&&(wN(D.scaleX)&&D.scaleX!==i.scaleX&&(i.scaleX=D.scaleX,z=!0),wN(D.scaleY)&&D.scaleY!==i.scaleY&&(i.scaleY=D.scaleY,z=!0)),z&&this.renderCanvas(!0,!0);var u=i.width/i.naturalWidth;wN(D.x)&&(t.left=D.x*u+j.left),wN(D.y)&&(t.top=D.y*u+j.top),wN(D.width)&&(t.width=D.width*u),wN(D.height)&&(t.height=D.height*u),this.setCropBoxData(t)}return this},getContainerData:function(){return this.ready?GN({},this.containerData):{}},getImageData:function(){return this.sized?GN({},this.imageData):{}},getCanvasData:function(){var D=this.canvasData,N={};return this.ready&&eD(["left","top","width","height","naturalWidth","naturalHeight"],function(i){N[i]=D[i]}),N},setCanvasData:function(D){var N=this.canvasData,i=N.aspectRatio;return this.ready&&!this.disabled&&Sj(D)&&(wN(D.left)&&(N.left=D.left),wN(D.top)&&(N.top=D.top),wN(D.width)?(N.width=D.width,N.height=D.width/i):wN(D.height)&&(N.height=D.height,N.width=D.height*i),this.renderCanvas(!0)),this},getCropBoxData:function(){var D=this.cropBoxData,N;return this.ready&&this.cropped&&(N={left:D.left,top:D.top,width:D.width,height:D.height}),N||{}},setCropBoxData:function(D){var N=this.cropBoxData,i=this.options.aspectRatio,j,t;return this.ready&&this.cropped&&!this.disabled&&Sj(D)&&(wN(D.left)&&(N.left=D.left),wN(D.top)&&(N.top=D.top),wN(D.width)&&D.width!==N.width&&(j=!0,N.width=D.width),wN(D.height)&&D.height!==N.height&&(t=!0,N.height=D.height),i&&(j?N.height=N.width/i:t&&(N.width=N.height*i)),this.renderCropBox()),this},getCroppedCanvas:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var N=this.canvasData,i=ov(this.image,this.imageData,N,D);if(!this.cropped)return i;var j=this.getData(),t=j.x,z=j.y,u=j.width,a=j.height,r=i.width/Math.floor(N.naturalWidth);r!==1&&(t*=r,z*=r,u*=r,a*=r);var g=u/a,T=Yi({aspectRatio:g,width:D.maxWidth||1/0,height:D.maxHeight||1/0}),n=Yi({aspectRatio:g,width:D.minWidth||0,height:D.minHeight||0},"cover"),s=Yi({aspectRatio:g,width:D.width||(r!==1?i.width:u),height:D.height||(r!==1?i.height:a)}),y=s.width,o=s.height;y=Math.min(T.width,Math.max(n.width,y)),o=Math.min(T.height,Math.max(n.height,o));var I=document.createElement("canvas"),L=I.getContext("2d");I.width=pj(y),I.height=pj(o),L.fillStyle=D.fillColor||"transparent",L.fillRect(0,0,y,o);var O=D.imageSmoothingEnabled,w=O===void 0?!0:O,A=D.imageSmoothingQuality;L.imageSmoothingEnabled=w,A&&(L.imageSmoothingQuality=A);var k=i.width,Q=i.height,x=t,f=z,C,W,MM,NM,jM,aM;x<=-u||x>k?(x=0,C=0,MM=0,jM=0):x<=0?(MM=-x,x=0,C=Math.min(k,u+x),jM=C):x<=k&&(MM=0,C=Math.min(u,k-x),jM=C),C<=0||f<=-a||f>Q?(f=0,W=0,NM=0,aM=0):f<=0?(NM=-f,f=0,W=Math.min(Q,a+f),aM=W):f<=Q&&(NM=0,W=Math.min(a,Q-f),aM=W);var tM=[x,f,C,W];if(jM>0&&aM>0){var R=y/u;tM.push(MM*R,NM*R,jM*R,aM*R)}return L.drawImage.apply(L,[i].concat(My(tM.map(function(m){return Math.floor(pj(m))})))),I},setAspectRatio:function(D){var N=this.options;return!this.disabled&&!La(D)&&(N.aspectRatio=Math.max(0,D)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(D){var N=this.options,i=this.dragBox,j=this.face;if(this.ready&&!this.disabled){var t=D===ga,z=N.movable&&D===ty;D=t||z?D:zy,N.dragMode=D,kt(i,Yt,D),hj(i,aa,t),hj(i,ra,z),N.cropBoxMovable||(kt(j,Yt,D),hj(j,aa,t),hj(j,ra,z))}return this}},Cv=He.Cropper,Yy=function(){function M(D){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(Gb(this,M),!D||!iv.test(D.tagName))throw new Error("The first argument is required and must be an or element.");this.element=D,this.options=GN({},oy,Sj(N)&&N),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}return Wb(M,[{key:"init",value:function(){var N=this.element,i=N.tagName.toLowerCase(),j;if(!N[RN]){if(N[RN]=this,i==="img"){if(this.isImg=!0,j=N.getAttribute("src")||"",this.originalUrl=j,!j)return;j=N.src}else i==="canvas"&&window.HTMLCanvasElement&&(j=N.toDataURL());this.load(j)}}},{key:"load",value:function(N){var i=this;if(!!N){this.url=N,this.imageData={};var j=this.element,t=this.options;if(!t.rotatable&&!t.scalable&&(t.checkOrientation=!1),!t.checkOrientation||!window.ArrayBuffer){this.clone();return}if(Dv.test(N)){ev.test(N)?this.read(Ov(N)):this.clone();return}var z=new XMLHttpRequest,u=this.clone.bind(this);this.reloading=!0,this.xhr=z,z.onabort=u,z.onerror=u,z.ontimeout=u,z.onprogress=function(){z.getResponseHeader("content-type")!==sy&&z.abort()},z.onload=function(){i.read(z.response)},z.onloadend=function(){i.reloading=!1,i.xhr=null},t.checkCrossOrigin&&Ey(N)&&j.crossOrigin&&(N=xy(N)),z.open("GET",N,!0),z.responseType="arraybuffer",z.withCredentials=j.crossOrigin==="use-credentials",z.send()}}},{key:"read",value:function(N){var i=this.options,j=this.imageData,t=Av(N),z=0,u=1,a=1;if(t>1){this.url=wv(N,sy);var r=Ev(t);z=r.rotate,u=r.scaleX,a=r.scaleY}i.rotatable&&(j.rotate=z),i.scalable&&(j.scaleX=u,j.scaleY=a),this.clone()}},{key:"clone",value:function(){var N=this.element,i=this.url,j=N.crossOrigin,t=i;this.options.checkCrossOrigin&&Ey(i)&&(j||(j="anonymous"),t=xy(i)),this.crossOrigin=j,this.crossOriginUrl=t;var z=document.createElement("img");j&&(z.crossOrigin=j),z.src=t||i,z.alt=N.alt||"The image to crop",this.image=z,z.onload=this.start.bind(this),z.onerror=this.stop.bind(this),nD(z,jy),N.parentNode.insertBefore(z,N.nextSibling)}},{key:"start",value:function(){var N=this,i=this.image;i.onload=null,i.onerror=null,this.sizing=!0;var j=He.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(He.navigator.userAgent),t=function(r,g){GN(N.imageData,{naturalWidth:r,naturalHeight:g,aspectRatio:r/g}),N.initialImageData=GN({},N.imageData),N.sizing=!1,N.sized=!0,N.build()};if(i.naturalWidth&&!j){t(i.naturalWidth,i.naturalHeight);return}var z=document.createElement("img"),u=document.body||document.documentElement;this.sizingImage=z,z.onload=function(){t(z.width,z.height),j||u.removeChild(z)},z.src=i.src,j||(z.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",u.appendChild(z))}},{key:"stop",value:function(){var N=this.image;N.onload=null,N.onerror=null,N.parentNode.removeChild(N),this.image=null}},{key:"build",value:function(){if(!(!this.sized||this.ready)){var N=this.element,i=this.options,j=this.image,t=N.parentNode,z=document.createElement("div");z.innerHTML=jv;var u=z.querySelector(".".concat(RN,"-container")),a=u.querySelector(".".concat(RN,"-canvas")),r=u.querySelector(".".concat(RN,"-drag-box")),g=u.querySelector(".".concat(RN,"-crop-box")),T=g.querySelector(".".concat(RN,"-face"));this.container=t,this.cropper=u,this.canvas=a,this.dragBox=r,this.cropBox=g,this.viewBox=u.querySelector(".".concat(RN,"-view-box")),this.face=T,a.appendChild(j),nD(N,$D),t.insertBefore(u,N.nextSibling),this.isImg||Ze(j,jy),this.initPreview(),this.bind(),i.initialAspectRatio=Math.max(0,i.initialAspectRatio)||NaN,i.aspectRatio=Math.max(0,i.aspectRatio)||NaN,i.viewMode=Math.max(0,Math.min(3,Math.round(i.viewMode)))||0,nD(g,$D),i.guides||nD(g.getElementsByClassName("".concat(RN,"-dashed")),$D),i.center||nD(g.getElementsByClassName("".concat(RN,"-center")),$D),i.background&&nD(u,"".concat(RN,"-bg")),i.highlight||nD(T,$b),i.cropBoxMovable&&(nD(T,ra),kt(T,Yt,ua)),i.cropBoxResizable||(nD(g.getElementsByClassName("".concat(RN,"-line")),$D),nD(g.getElementsByClassName("".concat(RN,"-point")),$D)),this.render(),this.ready=!0,this.setDragMode(i.dragMode),i.autoCrop&&this.crop(),this.setData(i.data),KD(i.ready)&&le(N,Ty,i.ready,{once:!0}),mj(N,Ty)}}},{key:"unbuild",value:function(){!this.ready||(this.ready=!1,this.unbind(),this.resetPreview(),this.cropper.parentNode.removeChild(this.cropper),Ze(this.element,$D))}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}],[{key:"noConflict",value:function(){return window.Cropper=Cv,M}},{key:"setDefaults",value:function(N){GN(oy,Sj(N)&&N)}}]),M}();GN(Yy.prototype,xv,Qv,Yv,kv,fv,dv);const Uv=["name","field","multiple","accept","disabled"],Sv={key:0},pv=["onClick"],hv=["onClick"],mv=e.createElementVNode("i",{class:"layui-icon"},"\uE67C",-1),Bv=e.createElementVNode("div",{class:"layui-hide",id:"uploadDemoView"},[e.createElementVNode("hr"),e.createElementVNode("img",{src:"",alt:"\u4E0A\u4F20\u6210\u529F\u540E\u6E32\u67D3",style:{"max-width":"196px"}})],-1),bv=["src","id"],vv={name:"LayUpload"},Fv=e.defineComponent({...vv,props:{url:null,data:null,headers:null,acceptMime:{default:"MIME_type"},field:{default:"file"},size:{default:0},multiple:{type:Boolean,default:!1},number:{default:0},drag:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},disabledPreview:{type:Boolean,default:!1},cut:{type:Boolean,default:!1},cutOptions:{default:void 0},text:null,dragText:null,modelValue:{default:null},auto:{type:Boolean,default:!0},sizeOutMsg:null},emits:["choose","chooseAfter","before","done","error","cutdone","cutcancel","update:modelValue"],setup(M,{emit:D}){const N=M,i=()=>{if(MM){let d=MM.getCroppedCanvas().toDataURL('"image/png"'),G=new Date().valueOf(),v=f.value[0];D("cutdone",Object.assign({currentTimeStamp:G,cutResult:d,orginal:v}));let P=tM(d);if(!N.auto){D("update:modelValue",[P]),z();return}rM([P]),e.nextTick(()=>t())}else R(y.value)},j=()=>{let uM=new Date().valueOf();D("cutcancel",Object.assign({currentTimeStamp:uM})),e.nextTick(()=>t())},t=()=>{f.value=[],C.value=[],jM.value=!1,W.value.value="",MM=null},z=()=>{f.value=[],C.value=[],jM.value=!1,MM=null},{t:u}=De(),a=e.computed(()=>N.text?N.text:u("upload.text")),r=e.computed(()=>N.dragText?N.dragText:u("upload.dragText")),g=e.computed(()=>u("upload.defaultErrorMsg")),T=e.computed(()=>u("upload.urlErrorMsg")),n=e.computed(()=>u("upload.numberErrorMsg")),s=e.computed(()=>u("upload.occurFileSizeErrorMsg")),y=e.computed(()=>u("upload.cutInitErrorMsg")),o=e.computed(()=>u("upload.uploadSuccess")),I=e.computed(()=>u("upload.startUploadMsg")),L=e.computed(()=>u("upload.cannotSupportCutMsg")),O=e.computed(()=>u("upload.title")),w=e.computed(()=>u("upload.confirmBtn")),A=e.computed(()=>u("upload.cancelBtn"));let k=e.computed(()=>({type:"component",title:O.value,shade:!0,shadeClose:!0,area:["640px","640px"],btn:[{text:w.value,callback:i},{text:A.value,callback:j}]}));const Q=e.useSlots();Q.default&&Q.default(),e.getCurrentInstance(),e.watch(()=>N.modelValue,()=>{N.modelValue||t()});const x=e.ref(!1),f=e.ref([]),C=e.ref([]),W=dA("orgFileInput");let MM=null,NM;N.cutOptions&&N.cutOptions.layerOption?NM=e.computed(()=>Object.assign(k,N.cutOptions.layerOption)):NM=e.computed(()=>k.value);const jM=e.ref(!1),aM=uM=>{const{url:d,files:G}=uM;let v=new FormData;if(d.length<=5){R(T.value);return}if(Array.isArray(G)&&G.length>0)for(let p=0;p{m({url:d,formData:v},function(){clearTimeout(P)})},200)},tM=uM=>{let d=uM.split(","),G="";d.length>0&&(G=d[0].match(/:(.*?);/)[1]);let v=atob(d[1]),P=v.length,p=new Uint8Array(P);for(;P--;)p[P]=v.charCodeAt(P);return new Blob([p],{type:G})},R=uM=>{let d=new Date().valueOf(),G=uM||g;G=`${G}`,console.warn(G),oD.msg(G,{icon:2,time:1e3},function(v){}),D("error",Object.assign({currentTimeStamp:d,msg:G}))},m=(uM,d)=>{let G=new XMLHttpRequest,v=uM.url,P=uM.formData;const p=d;if(G.onreadystatechange=function(){let zM=new Date().valueOf();if(G.readyState===1){if(G.status>=200&&G.status<=300||G.status===304||G.status==0){let TM=I.value;D("before",Object.assign({currentTimeStamp:zM,msg:TM,...uM}))}}else if(G.readyState===4){let TM=G.responseText?G.responseText:o;if(G.status>=200&&G.status<=300||G.status===304||G.status==0){let DM=G.responseText;D("done",{currentTimeStamp:zM,msg:TM,data:DM})}}},G.open("post",v,!0),N.headers)for(let zM in N.headers)G.setRequestHeader(zM,N.headers[zM]);else G.setRequestHeader("Accept","application/json, text/javascript");let Z=new Date().valueOf();D("before",Object.assign(uM,Z)),G.send(P),p&&typeof p=="function"&&p(),t()},J=(uM,d)=>{const G=new FileReader;G.onloadend=function(v){d(v.target.result)},G.readAsDataURL(uM)},K=uM=>{uM.preventDefault();const d=[...uM.target.files||uM.dataTransfer.files];if(N.multiple&&N.number!=0&&N.numberN.size*1024){R(N.sizeOutMsg||s.value);return}}for(let P of d)f.value.push(P),J(P,function(p){C.value.push(p)});let G=N.cut&&N.acceptMime.indexOf("image")!=-1&&N.multiple==!1,v=N.cut&&N.acceptMime.indexOf("image")!=-1&&N.multiple==!0;if(G)jM.value=!0,setTimeout(()=>{let P=document.getElementsByClassName("_lay_upload_img");if(P&&P.length>0){let p=P[0];MM=new Yy(p,{aspectRatio:16/9})}else t()},200);else{if(v&&console.warn(L.value),!N.auto){D("update:modelValue",d);return}rM(d)}},rM=uM=>{let d=new Date().valueOf(),G=o;N.url?aM({url:N.url,files:uM}):(D("done",{currentTimeStamp:d,msg:G,data:uM}),t())},IM=()=>{let uM=W.value;uM&&uM.click()},OM=()=>{let uM=new Date().valueOf();D("choose",uM)},oM=e.ref();function bM(uM){uM.stopPropagation(),uM.preventDefault()}function eM(uM){uM.stopPropagation(),uM.preventDefault()}return e.onMounted(()=>{e.nextTick(()=>{oM.value&&(oM.value.addEventListener("dragenter",bM,!1),oM.value.addEventListener("dragover",eM,!1),oM.value.addEventListener("drop",K,!1))})}),e.onUnmounted(()=>{oM.value&&(oM.value.removeEventListener("dragenter"),oM.value.removeEventListener("dragover"),oM.value.removeEventListener("drop"))}),(uM,d)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["layui-upload layui-upload-wrap",M.disabledPreview?"layui-upload-file-disabled":""])},[e.createElementVNode("input",{type:"file",class:"layui-upload-file",ref_key:"orgFileInput",ref:W,name:M.field,field:M.field,multiple:M.multiple,accept:M.acceptMime,disabled:M.disabled,onClick:OM,onChange:K},null,40,Uv),M.drag?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"dragRef",ref:oM,class:e.normalizeClass(["layui-upload-drag",M.disabled?"layui-upload-drag-disable":x.value?"layui-upload-drag-draging":""]),onClick:e.withModifiers(IM,["stop"])},[mv,e.createElementVNode("p",null,e.toDisplayString(e.unref(r)),1),Bv],10,hv)):(e.openBlock(),e.createElementBlock("div",Sv,[e.createElementVNode("div",{class:"layui-upload-btn-box",onClick:e.withModifiers(IM,["stop"])},[e.unref(Q).default?e.renderSlot(uM.$slots,"default",{key:0,disabled:M.disabled}):(e.openBlock(),e.createBlock(gj,{key:1,type:"primary",disabled:M.disabled},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)),1)]),_:1},8,["disabled"]))],8,pv)])),e.createVNode(e.unref(Vt),{modelValue:jM.value,"onUpdate:modelValue":d[0]||(d[0]=G=>jM.value=G),title:e.unref(NM).title,move:e.unref(NM).move,resize:e.unref(NM).resize,shade:e.unref(NM).shade,shadeClose:e.unref(NM).shadeClose,shadeOpacity:e.unref(NM).shadeOpacity,zIndex:e.unref(NM).zIndex,btnAlign:e.unref(NM).btnAlign,area:e.unref(NM).area,anim:e.unref(NM).anim,isOutAnim:e.unref(NM).isOutAnim,btn:e.unref(NM).btn,onClose:t},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,(G,v)=>(e.openBlock(),e.createElementBlock("div",{class:"copper-container",key:`file${v}`},[e.createElementVNode("img",{src:G,id:`_lay_upload_img${v}`,class:"_lay_upload_img"},null,8,bv)]))),128))]),_:1},8,["modelValue","title","move","resize","shade","shadeClose","shadeOpacity","zIndex","btnAlign","area","anim","isOutAnim","btn"]),e.createElementVNode("div",{class:e.normalizeClass(["layui-upload-list",M.disabledPreview?"layui-upload-list-disabled":""])},[e.renderSlot(uM.$slots,"preview")],2)],2))}}),ky=JM(Fv);var w_=(()=>`.layui-water-ripples-container{position:relative;display:inline-block}.layui-water-ripples-container .layui-slot-container{position:relative;z-index:2}.layui-water-ripples-container .layui-out-ripples{position:absolute;left:0;top:0;height:100%;opacity:1;z-index:1;pointer-events:none}.layui-water-ripples-container .layui-animate-once--out{animation:ripple-effect 1s forwards}.layui-water-ripples-container .layui-animate-always--out{animation:ripple-effect 1s infinite}@keyframes ripple-effect{0%{box-shadow:0 0 0 0 var(--layui-ripple-color);opacity:.4}to{box-shadow:0 0 0 var(--layui-spread-width) var(--layui-ripple-color);opacity:0}}.layui-water-ripples-container .layui-inset-ripples{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);opacity:1;width:0px;height:0px;background:var(--layui-ripple-color);pointer-events:none}@keyframes size-effect{0%{width:0px;height:0px;opacity:.8}to{width:var(--layui-spread-size);height:var(--layui-spread-size);opacity:0}}.layui-water-ripples-container .layui-animate-once--inset{animation:size-effect 1s forwards}.layui-water-ripples-container .layui-animate-always--inset{animation:size-effect 1s infinite} `)();const _v={name:"LayRipple"},Pv=e.defineComponent({..._v,props:{type:{default:"inset"},color:{default:"currentColor"},borderRadius:{default:"0"},spreadWidth:{default:"6px"},spreadSize:null,trigger:{default:"click"},center:{type:Boolean,default:!1}},setup(M){const D=M,N=e.ref(!1),i=e.ref("0px"),j=e.ref(null),t=e.ref(null),z=e.computed(()=>D.type==="out"),u=e.ref(void 0),a=e.ref(void 0),r=function(T){if(N.value=!0,D.type==="inset"&&!D.spreadSize&&!D.center){const s=T.currentTarget.getBoundingClientRect(),y=T.clientX-s.left,o=T.clientY-s.top,I=Math.max(y,s.width-y),L=Math.max(o,s.height-o);u.value=y+"px",a.value=o+"px",i.value=Math.sqrt(I**2+L**2)*2+"px"}},g=function(){let T=t.value,n=j.value;!T||!n||(D.type=="out"?n.style.width=T.clientWidth+"px":(T.style.overflow="hidden",!D.spreadSize||D.center?i.value=T.clientWidth*1.1+"px":i.value=D.spreadSize),n.addEventListener("animationend",()=>{N.value=!1},!1))};return e.onMounted(()=>{g()}),e.watch(()=>D.trigger,T=>N.value=T==="always",{immediate:!0}),(T,n)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:"layui-water-ripples-container",ref_key:"waterRipplesContainerRefEl",ref:t},{[e.toHandlerKey(M.trigger)]:r}),[e.createElementVNode("div",{ref_key:"ripplesRefEl",ref:j,class:e.normalizeClass({"layui-out-ripples":e.unref(z),"layui-inset-ripples":M.type=="inset","layui-animate-always--out":N.value&&M.trigger=="always"&&M.type=="out","layui-animate-once--out":N.value&&(M.trigger=="mouseenter"||M.trigger=="click")&&M.type=="out","layui-animate-always--inset":N.value&&M.trigger=="always"&&M.type=="inset","layui-animate-once--inset":N.value&&(M.trigger=="mouseenter"||M.trigger=="click")&&M.type=="inset"}),style:e.normalizeStyle({borderRadius:e.unref(z)?M.borderRadius:"50%",left:u.value,top:a.value,"--layui-ripple-color":M.color,"--layui-spread-width":M.spreadWidth,"--layui-spread-size":i.value})},null,6),e.renderSlot(T.$slots,"default")],16))}}),fy=JM(Pv);var A_=(()=>`.layui-carousel{position:relative;left:0;top:0;background-color:#f8f8f8}.layui-carousel>[carousel-item]{position:relative;width:100%;height:100%;overflow:hidden}.layui-carousel>[carousel-item]:before{position:absolute;content:"\\e63d";left:50%;top:50%;width:100px;line-height:20px;margin:-10px 0 0 -50px;text-align:center;color:var(--global-neutral-color-8);font-family:layui-icon!important;font-size:30px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.layui-carousel>[carousel-item]>*{position:absolute;left:0;top:0;width:100%;height:100%;background-color:#f8f8f8;transition-duration:.3s;-webkit-transition-duration:.3s;overflow:hidden;visibility:hidden}.layui-carousel-updown>*{-webkit-transition:.3s ease-in-out up;transition:.3s ease-in-out up}.layui-carousel-arrow{display:none\\ ;opacity:0;position:absolute;left:10px;top:50%;margin-top:-18px;width:36px;height:36px;line-height:36px;text-align:center;font-size:20px;border:0;border-radius:50%;background-color:#0003;color:#fff;-webkit-transition-duration:.3s;transition-duration:.3s;cursor:pointer}.layui-carousel-arrow[lay-type=add]{left:auto!important;right:10px}.layui-carousel:hover .layui-carousel-arrow[lay-type=add],.layui-carousel[lay-arrow=always] .layui-carousel-arrow[lay-type=add]{right:20px}.layui-carousel[lay-arrow=always] .layui-carousel-arrow{opacity:1;left:20px}.layui-carousel[lay-arrow=none] .layui-carousel-arrow{display:none}.layui-carousel-arrow:hover,.layui-carousel-ind ul:hover{background-color:#00000059}.layui-carousel:hover .layui-carousel-arrow{display:block\\ ;opacity:1;left:20px}.layui-carousel-ind{position:relative;top:-35px;width:100%;line-height:0!important;text-align:center;font-size:0}.layui-carousel[lay-indicator=outside]{margin-bottom:30px}.layui-carousel[lay-indicator=outside] .layui-carousel-ind{top:10px}.layui-carousel[lay-indicator=outside] .layui-carousel-ind ul{background-color:#00000080}.layui-carousel[lay-indicator=none] .layui-carousel-ind{display:none}.layui-carousel-ind ul{display:inline-block;padding:5px;background-color:#0003;border-radius:10px;-webkit-transition-duration:.3s;transition-duration:.3s}.layui-carousel-ind li{display:inline-block;width:10px;height:10px;margin:0 3px;font-size:14px;background-color:var(--global-neutral-color-3);background-color:#ffffff80;border-radius:50%;cursor:pointer;-webkit-transition-duration:.3s;transition-duration:.3s}.layui-carousel-ind li:hover{background-color:#ffffffb3}.layui-carousel-ind li.layui-this{background-color:#fff}.layui-carousel>[carousel-item]>.layui-carousel-next,.layui-carousel>[carousel-item]>.layui-carousel-prev,.layui-carousel>[carousel-item]>.layui-this{display:block}.layui-carousel>[carousel-item]>.layui-this{left:0}.layui-carousel>[carousel-item]>.layui-carousel-prev{left:-100%}.layui-carousel>[carousel-item]>.layui-carousel-next{left:100%}.layui-carousel>[carousel-item]>.layui-carousel-next.layui-carousel-left,.layui-carousel>[carousel-item]>.layui-carousel-prev.layui-carousel-right{left:0}.layui-carousel>[carousel-item]>.layui-this.layui-carousel-left{left:-100%}.layui-carousel>[carousel-item]>.layui-this.layui-carousel-right{left:100%}.layui-carousel[lay-anim=updown] .layui-carousel-arrow{left:50%!important;top:20px;margin:0 0 0 -18px}.layui-carousel[lay-anim=updown]>[carousel-item]>*,.layui-carousel[lay-anim=fade]>[carousel-item]>*{left:0!important}.layui-carousel[lay-anim=updown] .layui-carousel-arrow[lay-type=add]{top:auto!important;bottom:20px}.layui-carousel[lay-anim=updown] .layui-carousel-ind{position:absolute;top:50%;right:20px;width:auto;height:auto;transform:translateY(-50%)}.layui-carousel[lay-anim=updown] .layui-carousel-ind ul{padding:3px 5px}.layui-carousel[lay-anim=updown] .layui-carousel-ind li{display:block;margin:6px 0}.layui-carousel[lay-anim=updown]>[carousel-item]>.layui-this{top:0}.layui-carousel[lay-anim=updown]>[carousel-item]>.layui-carousel-prev{top:-100%}.layui-carousel[lay-anim=updown]>[carousel-item]>.layui-carousel-next{top:100%}.layui-carousel[lay-anim=updown]>[carousel-item]>.layui-carousel-next.layui-carousel-left,.layui-carousel[lay-anim=updown]>[carousel-item]>.layui-carousel-prev.layui-carousel-right{top:0}.layui-carousel[lay-anim=updown]>[carousel-item]>.layui-this.layui-carousel-left{top:-100%}.layui-carousel[lay-anim=updown]>[carousel-item]>.layui-this.layui-carousel-right{top:100%}.layui-carousel[lay-anim=fade]>[carousel-item]>.layui-carousel-next,.layui-carousel[lay-anim=fade]>[carousel-item]>.layui-carousel-prev{opacity:0}.layui-carousel[lay-anim=fade]>[carousel-item]>.layui-carousel-next.layui-carousel-left,.layui-carousel[lay-anim=fade]>[carousel-item]>.layui-carousel-prev.layui-carousel-right{opacity:1}.layui-carousel[lay-anim=fade]>[carousel-item]>.layui-this.layui-carousel-left,.layui-carousel[lay-anim=fade]>[carousel-item]>.layui-this.layui-carousel-right{opacity:0}.layui-notice-bar{padding:0 15px;border-radius:4px}.layui-notice-bar .layui-notice-bar-warp{display:flex;align-items:center;width:100%;height:inherit}.layui-notice-bar .layui-notice-bar-warp .layui-notice-bar-warp-text-box{flex:1;height:inherit;display:flex;align-items:center;overflow:hidden;position:relative}.layui-notice-bar .layui-notice-bar-warp .layui-notice-bar-warp-text-box .layui-notice-bar-warp-text{white-space:nowrap;position:absolute;left:0}@keyframes around1{0%{left:0}to{left:calc(0px - var(--textWidth--))}}@keyframes around2{0%{left:calc(var(--textWidth--))}to{left:0}}.layui-notice-bar .layui-notice-bar-warp .layui-notice-bar-warp-text-box .layui-notice-bar-warp-slot{width:100%;white-space:nowrap}.layui-notice-bar .layui-notice-bar-warp .layui-notice-bar-warp-text-box .layui-notice-bar-warp-slot .layui-carousel>[carousel-item] *{display:flex;align-items:center}.layui-notice-bar .layui-notice-bar-warp .layui-notice-bar-warp-left-icon{width:24px;font-size:inherit!important}.layui-notice-bar .layui-notice-bar-warp .layui-notice-bar-warp-right-icon{width:24px;text-align:right;font-size:inherit!important}.layui-notice-bar .layui-notice-bar-warp .layui-notice-bar-warp-right-icon:hover{cursor:pointer} `)();const Rv={key:1,class:"layui-notice-bar-warp-slot"},Gv={name:"LayNoticeBar"},Wv=e.defineComponent({...Gv,props:{mode:null,text:{default:""},textlist:{default:()=>[]},color:{default:()=>"var(--color-warning)"},background:{default:()=>"var(--color-warning-light-9)"},size:{default:14},height:{default:40},delay:{default:1},speed:{default:100},scrollable:{type:Boolean,default:!1},leftIcon:null,rightIcon:null},emits:["close","link"],setup(M,{emit:D}){var s;const N=M,i=e.ref(),j=e.ref(),t=e.ref((s=N.textlist[0])==null?void 0:s.id),z=e.reactive({order:1,oneTime:0,twoTime:0,warpOWidth:0,textOWidth:0,isMode:!1,height:40});var u;const a=()=>{e.nextTick(()=>{z.warpOWidth=i.value.offsetWidth,z.textOWidth=j.value.offsetWidth,r(),u=setTimeout(()=>{g()},N.delay*1e3)})};e.onUnmounted(()=>{clearInterval(u),u=null});const r=()=>{z.oneTime=z.textOWidth/N.speed,z.twoTime=(z.textOWidth+z.warpOWidth)/N.speed},g=()=>{z.order===1?(j.value.style.cssText=`animation: around1 ${z.oneTime}s linear; opactity: 1;`,z.order=2):(j.value.style.cssText=`animation: around2 ${z.twoTime}s linear ; opactity: 1;`,z.order=1)},T=()=>{j.value.addEventListener("animationend",()=>{g()},!1)},n=()=>{if(!N.mode)return!1;N.mode==="closeable"?(z.isMode=!0,D("close")):N.mode==="link"&&D("link")};return e.onMounted(()=>{if(N.scrollable)return!1;a(),T()}),(y,o)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:"layui-notice-bar",style:e.normalizeStyle({background:M.background,height:`${M.height}px`})},[e.createElementVNode("div",{class:"layui-notice-bar-warp",style:e.normalizeStyle({color:M.color,"font-size":`${M.size}px`})},[M.leftIcon?(e.openBlock(),e.createBlock(e.unref(iM),{key:0,class:"layui-notice-bar-warp-left-icon",type:M.leftIcon},null,8,["type"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"layui-notice-bar-warp-text-box",ref_key:"noticeBarWarpRef",ref:i,style:e.normalizeStyle("--textWidth--:"+M.text.length+"em")},[M.scrollable?(e.openBlock(),e.createElementBlock("div",Rv,[e.createVNode(ks,{modelValue:t.value,"onUpdate:modelValue":o[0]||(o[0]=I=>t.value=I),indicator:"none",anim:"updown",arrow:"none",style:{height:"40px"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(M.textlist,I=>(e.openBlock(),e.createBlock(q4,{key:I.id,id:I.id,class:"layui-anim layui-anim-up"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(I.text),1)]),_:2},1032,["id"]))),128))]),_:1},8,["modelValue"])])):(e.openBlock(),e.createElementBlock("div",{key:0,class:"layui-notice-bar-warp-text",ref_key:"noticeBarTextRef",ref:j},e.toDisplayString(M.text),513))],4),M.rightIcon?(e.openBlock(),e.createBlock(e.unref(iM),{key:1,type:M.rightIcon,class:"layui-notice-bar-warp-right-icon",onClick:n},null,8,["type"])):e.createCommentVNode("",!0)],4)],4)),[[e.vShow,!z.isMode]])}}),dy=JM(Wv);var E_=(()=>`.lay-page-header{display:flex;line-height:24px}.lay-page-header__left{display:flex;cursor:pointer;margin-right:40px;position:relative;color:var(--global-neutral-color-8)}.lay-page-header__left:after{content:"";position:absolute;width:1px;height:16px;right:-20px;top:50%;transform:translateY(-50%);background-color:var(--global-neutral-color-8)}.lay-page-header__left:hover .layui-icon-return,.lay-page-header__left:hover .lay-page-header__title{color:var(--global-checked-color)!important}.lay-page-header__left .layui-icon-return{font-size:14px;margin-right:6px;align-self:center}.lay-page-header__title{font-size:14px}.lay-page-header__content{font-size:18px;color:#393d49} `)();const Vv={class:"lay-page-header"},Hv={class:"lay-page-header__title"},Zv={class:"lay-page-header__content"},Xv={name:"LayPageHeader"},Jv=e.defineComponent({...Xv,props:{content:{default:""},backText:{default:"\u8FD4\u56DE"},backIcon:{default:"layui-icon-return"}},emits:["back"],setup(M,{emit:D}){const N=e.useSlots(),i=e.getCurrentInstance(),j=yI(i,"backIcon");return(t,z)=>(e.openBlock(),e.createElementBlock("div",Vv,[e.createElementVNode("div",{class:"lay-page-header__left",onClick:z[0]||(z[0]=u=>D("back"))},[e.renderSlot(t.$slots,e.unref(j),{},()=>[e.createElementVNode("i",{class:e.normalizeClass(["layui-icon",[M.backIcon]])},null,2)]),e.createElementVNode("div",Hv,e.toDisplayString(M.backText),1)]),e.createElementVNode("div",Zv,[e.unref(N).default?e.renderSlot(t.$slots,"default",{key:0}):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(M.content),1)],64))])]))}}),Cy=JM(Jv);var x_=(()=>`:root{--input-border-radius: var(--global-border-radius);--input-border-color: var(--global-neutral-color-3)}.layui-input{width:100%;height:38px;line-height:38px;border-width:1px;border-style:solid;border-color:var(--input-border-color);border-radius:var(--input-border-radius);display:inline-flex}.layui-input input{height:38px;line-height:38px;background-color:#fff;color:#000000d9;padding-left:10px;display:inline-block;border:none;height:100%;width:100%}.layui-input-append{background-color:#fafafa;border-left:1px solid var(--input-border-color);display:flex;padding:0 15px;flex:none;align-items:center}.layui-input-prepend{background-color:#fafafa;border-right:1px solid var(--input-border-color);display:flex;padding:0 15px;flex:none;align-items:center}.layui-input-wrapper{width:100%;display:inline-flex;border:none}.layui-input:hover,.layui-input:focus-within{border-color:#d2d2d2}.layui-input-clear,.layui-input-prefix,.layui-input-suffix,.layui-input-password{background-color:#fff}.layui-input-clear,.layui-input-password,.layui-input-prefix,.layui-input-suffix{display:flex;flex:none;align-items:center;padding:0 10px}.layui-input-has-prefix input{padding:0}.layui-input-clear,.layui-input-password{color:#00000073}.layui-input-clear:hover{opacity:.6}.layui-input input::-webkit-input-placeholder{line-height:1.3}.layui-input input::-ms-reveal{display:none}.layui-input-disabled{border-color:var(--input-border-color)!important}.layui-input-disabled{opacity:.6}.layui-input-disabled,.layui-input-disabled *{cursor:not-allowed!important}.layui-input[size=lg]{height:44px}.layui-input[size=lg] .layui-input{height:44px;line-height:44px}.layui-input[size=md]{height:38px}.layui-input[size=md] .layui-input{height:38px;line-height:38px}.layui-input[size=sm]{height:32px}.layui-input[size=sm] .layui-input{height:32px;line-height:32px}.layui-input[size=xs]{height:26px}.layui-input[size=xs] .layui-input{height:26px;line-height:26px}.layui-cascader{display:inline-block}.layui-cascader[size=lg]{height:44px;width:260px}.layui-cascader[size=lg] .layui-input{height:44px;line-height:44px}.layui-cascader[size=md]{height:38px;width:220px}.layui-cascader[size=md] .layui-input{height:38px;line-height:38px}.layui-cascader[size=sm]{height:32px;width:180px}.layui-cascader[size=sm] .layui-input{height:32px;line-height:32px}.layui-cascader[size=xs]{height:26px;width:140px}.layui-cascader[size=xs] .layui-input{height:26px;line-height:26px}.layui-cascader .layui-input-suffix{padding-right:10px}.layui-cascader .layui-icon-triangle-d{transition:all .3s ease-in-out;transform:rotate(0);color:var(--global-neutral-color-8)}.layui-cascader-opend .layui-icon-triangle-d{transform:rotate(180deg)}.layui-cascader .layui-cascader-panel{box-sizing:border-box;border-radius:2px;line-height:26px;color:#000c;font-size:14px;white-space:nowrap;display:inline-flex}.layui-cascader-menu{display:inline-block;border-right:1px solid var(--global-neutral-color-3)}.layui-cascader-menu:last-child{border-right:none}.layui-cascader-menu-item{min-width:130px;padding:5px 9px 5px 15px;box-sizing:border-box;transition:all .1s ease-in-out;display:flex;justify-content:space-between;align-items:center;min-height:35px}.layui-cascader-menu-item:hover,.layui-cascader-selected{background-color:var(--global-checked-color);color:#fff}.layui-cascader-menu-item .layui-icon-right{margin-left:10px}.layui-cascader-disabled,.layui-cascader-disabled *{cursor:not-allowed!important}