(function(X,u){typeof exports=="object"&&typeof module<"u"?u(exports,require("vue"),require("@big0range/utils"),require("element-plus")):typeof define=="function"&&define.amd?define(["exports","vue","@big0range/utils","element-plus"],u):(X=typeof globalThis<"u"?globalThis:X||self,u(X["big0range-ui"]={},X.Vue,X.utils,X.elementPlus))})(this,function(X,u,pt,P){"use strict";var Zh=Object.defineProperty;var Kh=(X,u,pt)=>u in X?Zh(X,u,{enumerable:!0,configurable:!0,writable:!0,value:pt}):X[u]=pt;var Kt=(X,u,pt)=>(Kh(X,typeof u!="symbol"?u+"":u,pt),pt);const Jh="",Da={class:"button"},Ma=u.defineComponent({__name:"button",props:{color:null},setup(s){return u.ref("aaaa"),(t,i)=>(u.openBlock(),u.createElementBlock("div",Da,"button组件"))}}),xr=pt.withInstall(Ma);/*! Element Plus Icons Vue v2.1.0 */var Lt=(s,t)=>{let i=s.__vccOpts||s;for(let[e,r]of t)i[e]=r;return i},Sa={name:"Delete"},Oa={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Na=u.createElementVNode("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z"},null,-1),Ra=[Na];function Ba(s,t,i,e,r,n){return u.openBlock(),u.createElementBlock("svg",Oa,Ra)}var br=Lt(Sa,[["render",Ba],["__file","delete.vue"]]),Aa={name:"Loading"},Pa={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},za=u.createElementVNode("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0zm-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"},null,-1),Va=[za];function Ia(s,t,i,e,r,n){return u.openBlock(),u.createElementBlock("svg",Pa,Va)}var Tr=Lt(Aa,[["render",Ia],["__file","loading.vue"]]),La={name:"Plus"},Fa={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},$a=u.createElementVNode("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64h352z"},null,-1),Wa=[$a];function Ha(s,t,i,e,r,n){return u.openBlock(),u.createElementBlock("svg",Fa,Wa)}var Cr=Lt(La,[["render",Ha],["__file","plus.vue"]]),Ya={name:"RefreshLeft"},Xa={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Ua=u.createElementVNode("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"},null,-1),qa=[Ua];function ja(s,t,i,e,r,n){return u.openBlock(),u.createElementBlock("svg",Xa,qa)}var kr=Lt(Ya,[["render",ja],["__file","refresh-left.vue"]]),Ga={name:"RefreshRight"},Qa={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Za=u.createElementVNode("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88z"},null,-1),Ka=[Za];function Ja(s,t,i,e,r,n){return u.openBlock(),u.createElementBlock("svg",Qa,Ka)}var Er=Lt(Ga,[["render",Ja],["__file","refresh-right.vue"]]),ts={name:"Refresh"},es={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},is=u.createElementVNode("path",{fill:"currentColor",d:"M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"},null,-1),rs=[is];function ns(s,t,i,e,r,n){return u.openBlock(),u.createElementBlock("svg",es,rs)}var Dr=Lt(ts,[["render",ns],["__file","refresh.vue"]]),as={name:"ZoomIn"},ss={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},os=u.createElementVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704zm-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96z"},null,-1),hs=[os];function ls(s,t,i,e,r,n){return u.openBlock(),u.createElementBlock("svg",ss,hs)}var Qe=Lt(as,[["render",ls],["__file","zoom-in.vue"]]),cs={name:"ZoomOut"},fs={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},us=u.createElementVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704zM352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64z"},null,-1),ds=[us];function ps(s,t,i,e,r,n){return u.openBlock(),u.createElementBlock("svg",fs,ds)}var Mr=Lt(cs,[["render",ps],["__file","zoom-out.vue"]]);const tl="",el="";/*! * Cropper.js v1.5.13 * https://fengyuanchen.github.io/cropperjs * * Copyright 2015-present Chen Fengyuan * Released under the MIT license * * Date: 2022-11-20T05:30:46.114Z */function Sr(s,t){var i=Object.keys(s);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(s);t&&(e=e.filter(function(r){return Object.getOwnPropertyDescriptor(s,r).enumerable})),i.push.apply(i,e)}return i}function Or(s){for(var t=1;ts.length)&&(t=s.length);for(var i=0,e=new Array(t);i
',Ns=Number.isNaN||Et.isNaN;function N(s){return typeof s=="number"&&!Ns(s)}var Zr=function(t){return t>0&&t<1/0};function Si(s){return typeof s>"u"}function ee(s){return gi(s)==="object"&&s!==null}var Rs=Object.prototype.hasOwnProperty;function ue(s){if(!ee(s))return!1;try{var t=s.constructor,i=t.prototype;return t&&i&&Rs.call(i,"isPrototypeOf")}catch{return!1}}function nt(s){return typeof s=="function"}var Bs=Array.prototype.slice;function Kr(s){return Array.from?Array.from(s):Bs.call(s)}function q(s,t){return s&&nt(t)&&(Array.isArray(s)||N(s.length)?Kr(s).forEach(function(i,e){t.call(s,i,e,s)}):ee(s)&&Object.keys(s).forEach(function(i){t.call(s,s[i],i,s)})),s}var $=Object.assign||function(t){for(var i=arguments.length,e=new Array(i>1?i-1:0),r=1;r0&&e.forEach(function(n){ee(n)&&Object.keys(n).forEach(function(a){t[a]=n[a]})}),t},As=/\.\d*(?:0|9){12}\d*$/;function de(s){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e11;return As.test(s)?Math.round(s*t)/t:s}var Ps=/^width|height|left|top|marginLeft|marginTop$/;function $t(s,t){var i=s.style;q(t,function(e,r){Ps.test(r)&&N(e)&&(e="".concat(e,"px")),i[r]=e})}function zs(s,t){return s.classList?s.classList.contains(t):s.className.indexOf(t)>-1}function Z(s,t){if(t){if(N(s.length)){q(s,function(e){Z(e,t)});return}if(s.classList){s.classList.add(t);return}var i=s.className.trim();i?i.indexOf(t)<0&&(s.className="".concat(i," ").concat(t)):s.className=t}}function Dt(s,t){if(t){if(N(s.length)){q(s,function(i){Dt(i,t)});return}if(s.classList){s.classList.remove(t);return}s.className.indexOf(t)>=0&&(s.className=s.className.replace(t,""))}}function pe(s,t,i){if(t){if(N(s.length)){q(s,function(e){pe(e,t,i)});return}i?Z(s,t):Dt(s,t)}}var Vs=/([a-z\d])([A-Z])/g;function Oi(s){return s.replace(Vs,"$1-$2").toLowerCase()}function Ni(s,t){return ee(s[t])?s[t]:s.dataset?s.dataset[t]:s.getAttribute("data-".concat(Oi(t)))}function Ae(s,t,i){ee(i)?s[t]=i:s.dataset?s.dataset[t]=i:s.setAttribute("data-".concat(Oi(t)),i)}function Is(s,t){if(ee(s[t]))try{delete s[t]}catch{s[t]=void 0}else if(s.dataset)try{delete s.dataset[t]}catch{s.dataset[t]=void 0}else s.removeAttribute("data-".concat(Oi(t)))}var Jr=/\s\s*/,tn=function(){var s=!1;if(Ze){var t=!1,i=function(){},e=Object.defineProperty({},"once",{get:function(){return s=!0,t},set:function(n){t=n}});Et.addEventListener("test",i,e),Et.removeEventListener("test",i,e)}return s}();function bt(s,t,i){var e=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},r=i;t.trim().split(Jr).forEach(function(n){if(!tn){var a=s.listeners;a&&a[n]&&a[n][i]&&(r=a[n][i],delete a[n][i],Object.keys(a[n]).length===0&&delete a[n],Object.keys(a).length===0&&delete s.listeners)}s.removeEventListener(n,r,e)})}function _t(s,t,i){var e=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},r=i;t.trim().split(Jr).forEach(function(n){if(e.once&&!tn){var a=s.listeners,o=a===void 0?{}:a;r=function(){delete o[n][i],s.removeEventListener(n,r,e);for(var l=arguments.length,c=new Array(l),f=0;fMath.abs(i)&&(i=d)})}),i}function ti(s,t){var i=s.pageX,e=s.pageY,r={endX:i,endY:e};return t?r:Or({startX:i,startY:e},r)}function $s(s){var t=0,i=0,e=0;return q(s,function(r){var n=r.startX,a=r.startY;t+=n,i+=a,e+=1}),t/=e,i/=e,{pageX:t,pageY:i}}function Wt(s){var t=s.aspectRatio,i=s.height,e=s.width,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"contain",n=Zr(e),a=Zr(i);if(n&&a){var o=i*t;r==="contain"&&o>e||r==="cover"&&o90?{width:h,height:o}:{width:o,height:h}}function Hs(s,t,i,e){var r=t.aspectRatio,n=t.naturalWidth,a=t.naturalHeight,o=t.rotate,h=o===void 0?0:o,l=t.scaleX,c=l===void 0?1:l,f=t.scaleY,d=f===void 0?1:f,_=i.aspectRatio,g=i.naturalWidth,p=i.naturalHeight,v=e.fillColor,x=v===void 0?"transparent":v,b=e.imageSmoothingEnabled,C=b===void 0?!0:b,E=e.imageSmoothingQuality,k=E===void 0?"low":E,m=e.maxWidth,y=m===void 0?1/0:m,w=e.maxHeight,T=w===void 0?1/0:w,D=e.minWidth,M=D===void 0?0:D,S=e.minHeight,B=S===void 0?0:S,A=document.createElement("canvas"),O=A.getContext("2d"),I=Wt({aspectRatio:_,width:y,height:T}),L=Wt({aspectRatio:_,width:M,height:B},"cover"),Q=Math.min(I.width,Math.max(L.width,g)),Ct=Math.min(I.height,Math.max(L.height,p)),Rt=Wt({aspectRatio:r,width:y,height:T}),Zt=Wt({aspectRatio:r,width:M,height:B},"cover"),Bt=Math.min(Rt.width,Math.max(Zt.width,n)),Ge=Math.min(Rt.height,Math.max(Zt.height,a)),kt=[-Bt/2,-Ge/2,Bt,Ge];return A.width=de(Q),A.height=de(Ct),O.fillStyle=x,O.fillRect(0,0,Q,Ct),O.save(),O.translate(Q/2,Ct/2),O.rotate(h*Math.PI/180),O.scale(c,d),O.imageSmoothingEnabled=C,O.imageSmoothingQuality=k,O.drawImage.apply(O,[s].concat(Rr(kt.map(function(It){return Math.floor(de(It))})))),O.restore(),A}var an=String.fromCharCode;function Ys(s,t,i){var e="";i+=t;for(var r=t;r0;)i.push(an.apply(null,Kr(r.subarray(0,e)))),r=r.subarray(e);return"data:".concat(t,";base64,").concat(btoa(i.join("")))}function js(s){var t=new DataView(s),i;try{var e,r,n;if(t.getUint8(0)===255&&t.getUint8(1)===216)for(var a=t.byteLength,o=2;o+1=8&&(n=l+f)}}}if(n){var d=t.getUint16(n,e),_,g;for(g=0;g=0?n:jr),height:Math.max(e.offsetHeight,a>=0?a:Gr)};this.containerData=o,$t(r,{width:o.width,height:o.height}),Z(t,rt),Dt(r,rt)},initCanvas:function(){var t=this.containerData,i=this.imageData,e=this.options.viewMode,r=Math.abs(i.rotate)%180===90,n=r?i.naturalHeight:i.naturalWidth,a=r?i.naturalWidth:i.naturalHeight,o=n/a,h=t.width,l=t.height;t.height*o>t.width?e===3?h=t.height*o:l=t.width/o:e===3?l=t.width/o:h=t.height*o;var c={aspectRatio:o,naturalWidth:n,naturalHeight:a,width:h,height:l};this.canvasData=c,this.limited=e===1||e===2,this.limitCanvas(!0,!0),c.width=Math.min(Math.max(c.width,c.minWidth),c.maxWidth),c.height=Math.min(Math.max(c.height,c.minHeight),c.maxHeight),c.left=(t.width-c.width)/2,c.top=(t.height-c.height)/2,c.oldLeft=c.left,c.oldTop=c.top,this.initialCanvasData=$({},c)},limitCanvas:function(t,i){var e=this.options,r=this.containerData,n=this.canvasData,a=this.cropBoxData,o=e.viewMode,h=n.aspectRatio,l=this.cropped&&a;if(t){var c=Number(e.minCanvasWidth)||0,f=Number(e.minCanvasHeight)||0;o>1?(c=Math.max(c,r.width),f=Math.max(f,r.height),o===3&&(f*h>c?c=f*h:f=c/h)):o>0&&(c?c=Math.max(c,l?a.width:0):f?f=Math.max(f,l?a.height:0):l&&(c=a.width,f=a.height,f*h>c?c=f*h:f=c/h));var d=Wt({aspectRatio:h,width:c,height:f});c=d.width,f=d.height,n.minWidth=c,n.minHeight=f,n.maxWidth=1/0,n.maxHeight=1/0}if(i)if(o>(l?0:1)){var _=r.width-n.width,g=r.height-n.height;n.minLeft=Math.min(0,_),n.minTop=Math.min(0,g),n.maxLeft=Math.max(0,_),n.maxTop=Math.max(0,g),l&&this.limited&&(n.minLeft=Math.min(a.left,a.left+(a.width-n.width)),n.minTop=Math.min(a.top,a.top+(a.height-n.height)),n.maxLeft=a.left,n.maxTop=a.top,o===2&&(n.width>=r.width&&(n.minLeft=Math.min(0,_),n.maxLeft=Math.max(0,_)),n.height>=r.height&&(n.minTop=Math.min(0,g),n.maxTop=Math.max(0,g))))}else n.minLeft=-n.width,n.minTop=-n.height,n.maxLeft=r.width,n.maxTop=r.height},renderCanvas:function(t,i){var e=this.canvasData,r=this.imageData;if(i){var n=Ws({width:r.naturalWidth*Math.abs(r.scaleX||1),height:r.naturalHeight*Math.abs(r.scaleY||1),degree:r.rotate||0}),a=n.width,o=n.height,h=e.width*(a/e.naturalWidth),l=e.height*(o/e.naturalHeight);e.left-=(h-e.width)/2,e.top-=(l-e.height)/2,e.width=h,e.height=l,e.aspectRatio=a/o,e.naturalWidth=a,e.naturalHeight=o,this.limitCanvas(!0,!1)}(e.width>e.maxWidth||e.widthe.maxHeight||e.heighti.width?n.height=n.width/e:n.width=n.height*e),this.cropBoxData=n,this.limitCropBox(!0,!0),n.width=Math.min(Math.max(n.width,n.minWidth),n.maxWidth),n.height=Math.min(Math.max(n.height,n.minHeight),n.maxHeight),n.width=Math.max(n.minWidth,n.width*r),n.height=Math.max(n.minHeight,n.height*r),n.left=i.left+(i.width-n.width)/2,n.top=i.top+(i.height-n.height)/2,n.oldLeft=n.left,n.oldTop=n.top,this.initialCropBoxData=$({},n)},limitCropBox:function(t,i){var e=this.options,r=this.containerData,n=this.canvasData,a=this.cropBoxData,o=this.limited,h=e.aspectRatio;if(t){var l=Number(e.minCropBoxWidth)||0,c=Number(e.minCropBoxHeight)||0,f=o?Math.min(r.width,n.width,n.width+n.left,r.width-n.left):r.width,d=o?Math.min(r.height,n.height,n.height+n.top,r.height-n.top):r.height;l=Math.min(l,r.width),c=Math.min(c,r.height),h&&(l&&c?c*h>l?c=l/h:l=c*h:l?c=l/h:c&&(l=c*h),d*h>f?d=f/h:f=d*h),a.minWidth=Math.min(l,f),a.minHeight=Math.min(c,d),a.maxWidth=f,a.maxHeight=d}i&&(o?(a.minLeft=Math.max(0,n.left),a.minTop=Math.max(0,n.top),a.maxLeft=Math.min(r.width,n.left+n.width)-a.width,a.maxTop=Math.min(r.height,n.top+n.height)-a.height):(a.minLeft=0,a.minTop=0,a.maxLeft=r.width-a.width,a.maxTop=r.height-a.height))},renderCropBox:function(){var t=this.options,i=this.containerData,e=this.cropBoxData;(e.width>e.maxWidth||e.widthe.maxHeight||e.height=i.width&&e.height>=i.height?Ar:wi),$t(this.cropBox,$({width:e.width,height:e.height},Pe({translateX:e.left,translateY:e.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),_e(this.element,Ci,this.getData())}},Zs={initPreview:function(){var t=this.element,i=this.crossOrigin,e=this.options.preview,r=i?this.crossOriginUrl:this.url,n=t.alt||"The image to preview",a=document.createElement("img");if(i&&(a.crossOrigin=i),a.src=r,a.alt=n,this.viewBox.appendChild(a),this.viewBoxImage=a,!!e){var o=e;typeof e=="string"?o=t.ownerDocument.querySelectorAll(e):e.querySelector&&(o=[e]),this.previews=o,q(o,function(h){var l=document.createElement("img");Ae(h,Je,{width:h.offsetWidth,height:h.offsetHeight,html:h.innerHTML}),i&&(l.crossOrigin=i),l.src=r,l.alt=n,l.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;"',h.innerHTML="",h.appendChild(l)})}},resetPreview:function(){q(this.previews,function(t){var i=Ni(t,Je);$t(t,{width:i.width,height:i.height}),t.innerHTML=i.html,Is(t,Je)})},preview:function(){var t=this.imageData,i=this.canvasData,e=this.cropBoxData,r=e.width,n=e.height,a=t.width,o=t.height,h=e.left-i.left-t.left,l=e.top-i.top-t.top;!this.cropped||this.disabled||($t(this.viewBoxImage,$({width:a,height:o},Pe($({translateX:-h,translateY:-l},t)))),q(this.previews,function(c){var f=Ni(c,Je),d=f.width,_=f.height,g=d,p=_,v=1;r&&(v=d/r,p=n*v),n&&p>_&&(v=_/n,g=r*v,p=_),$t(c,{width:g,height:p}),$t(c.getElementsByTagName("img")[0],$({width:a*v,height:o*v},Pe($({translateX:-h*v,translateY:-l*v},t))))}))}},Ks={bind:function(){var t=this.element,i=this.options,e=this.cropper;nt(i.cropstart)&&_t(t,Di,i.cropstart),nt(i.cropmove)&&_t(t,Ei,i.cropmove),nt(i.cropend)&&_t(t,ki,i.cropend),nt(i.crop)&&_t(t,Ci,i.crop),nt(i.zoom)&&_t(t,Mi,i.zoom),_t(e,$r,this.onCropStart=this.cropStart.bind(this)),i.zoomable&&i.zoomOnWheel&&_t(e,Ur,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),i.toggleDragModeOnDblclick&&_t(e,Fr,this.onDblclick=this.dblclick.bind(this)),_t(t.ownerDocument,Wr,this.onCropMove=this.cropMove.bind(this)),_t(t.ownerDocument,Hr,this.onCropEnd=this.cropEnd.bind(this)),i.responsive&&_t(window,Xr,this.onResize=this.resize.bind(this))},unbind:function(){var t=this.element,i=this.options,e=this.cropper;nt(i.cropstart)&&bt(t,Di,i.cropstart),nt(i.cropmove)&&bt(t,Ei,i.cropmove),nt(i.cropend)&&bt(t,ki,i.cropend),nt(i.crop)&&bt(t,Ci,i.crop),nt(i.zoom)&&bt(t,Mi,i.zoom),bt(e,$r,this.onCropStart),i.zoomable&&i.zoomOnWheel&&bt(e,Ur,this.onWheel,{passive:!1,capture:!0}),i.toggleDragModeOnDblclick&&bt(e,Fr,this.onDblclick),bt(t.ownerDocument,Wr,this.onCropMove),bt(t.ownerDocument,Hr,this.onCropEnd),i.responsive&&bt(window,Xr,this.onResize)}},Js={resize:function(){if(!this.disabled){var t=this.options,i=this.container,e=this.containerData,r=i.offsetWidth/e.width,n=i.offsetHeight/e.height,a=Math.abs(r-1)>Math.abs(n-1)?r:n;if(a!==1){var o,h;t.restore&&(o=this.getCanvasData(),h=this.getCropBoxData()),this.render(),t.restore&&(this.setCanvasData(q(o,function(l,c){o[c]=l*a})),this.setCropBoxData(q(h,function(l,c){h[c]=l*a})))}}},dblclick:function(){this.disabled||this.options.dragMode===Lr||this.setDragMode(zs(this.dragBox,xi)?Ir:Ti)},wheel:function(t){var i=this,e=Number(this.options.wheelZoomRatio)||.1,r=1;this.disabled||(t.preventDefault(),!this.wheeling&&(this.wheeling=!0,setTimeout(function(){i.wheeling=!1},50),t.deltaY?r=t.deltaY>0?1:-1:t.wheelDelta?r=-t.wheelDelta/120:t.detail&&(r=t.detail>0?1:-1),this.zoom(-r*e,t)))},cropStart:function(t){var i=t.buttons,e=t.button;if(!(this.disabled||(t.type==="mousedown"||t.type==="pointerdown"&&t.pointerType==="mouse")&&(N(i)&&i!==1||N(e)&&e!==0||t.ctrlKey))){var r=this.options,n=this.pointers,a;t.changedTouches?q(t.changedTouches,function(o){n[o.identifier]=ti(o)}):n[t.pointerId||0]=ti(t),Object.keys(n).length>1&&r.zoomable&&r.zoomOnTouch?a=Pr:a=Ni(t.target,Be),Es.test(a)&&_e(this.element,Di,{originalEvent:t,action:a})!==!1&&(t.preventDefault(),this.action=a,this.cropping=!1,a===Br&&(this.cropping=!0,Z(this.dragBox,Ke)))}},cropMove:function(t){var i=this.action;if(!(this.disabled||!i)){var e=this.pointers;t.preventDefault(),_e(this.element,Ei,{originalEvent:t,action:i})!==!1&&(t.changedTouches?q(t.changedTouches,function(r){$(e[r.identifier]||{},ti(r,!0))}):$(e[t.pointerId||0]||{},ti(t,!0)),this.change(t))}},cropEnd:function(t){if(!this.disabled){var i=this.action,e=this.pointers;t.changedTouches?q(t.changedTouches,function(r){delete e[r.identifier]}):delete e[t.pointerId||0],i&&(t.preventDefault(),Object.keys(e).length||(this.action=""),this.cropping&&(this.cropping=!1,pe(this.dragBox,Ke,this.cropped&&this.options.modal)),_e(this.element,ki,{originalEvent:t,action:i}))}}},to={change:function(t){var i=this.options,e=this.canvasData,r=this.containerData,n=this.cropBoxData,a=this.pointers,o=this.action,h=i.aspectRatio,l=n.left,c=n.top,f=n.width,d=n.height,_=l+f,g=c+d,p=0,v=0,x=r.width,b=r.height,C=!0,E;!h&&t.shiftKey&&(h=f&&d?f/d:1),this.limited&&(p=n.minLeft,v=n.minTop,x=p+Math.min(r.width,e.width,e.left+e.width),b=v+Math.min(r.height,e.height,e.top+e.height));var k=a[Object.keys(a)[0]],m={x:k.endX-k.startX,y:k.endY-k.startY},y=function(T){switch(T){case Jt:_+m.x>x&&(m.x=x-_);break;case te:l+m.xb&&(m.y=b-g);break}};switch(o){case wi:l+=m.x,c+=m.y;break;case Jt:if(m.x>=0&&(_>=x||h&&(c<=v||g>=b))){C=!1;break}y(Jt),f+=m.x,f<0&&(o=te,f=-f,l-=f),h&&(d=f/h,c+=(n.height-d)/2);break;case Ft:if(m.y<=0&&(c<=v||h&&(l<=p||_>=x))){C=!1;break}y(Ft),d-=m.y,c+=m.y,d<0&&(o=fe,d=-d,c-=d),h&&(f=d*h,l+=(n.width-f)/2);break;case te:if(m.x<=0&&(l<=p||h&&(c<=v||g>=b))){C=!1;break}y(te),f-=m.x,l+=m.x,f<0&&(o=Jt,f=-f,l-=f),h&&(d=f/h,c+=(n.height-d)/2);break;case fe:if(m.y>=0&&(g>=b||h&&(l<=p||_>=x))){C=!1;break}y(fe),d+=m.y,d<0&&(o=Ft,d=-d,c-=d),h&&(f=d*h,l+=(n.width-f)/2);break;case Se:if(h){if(m.y<=0&&(c<=v||_>=x)){C=!1;break}y(Ft),d-=m.y,c+=m.y,f=d*h}else y(Ft),y(Jt),m.x>=0?_v&&(d-=m.y,c+=m.y):(d-=m.y,c+=m.y);f<0&&d<0?(o=Re,d=-d,f=-f,c-=d,l-=f):f<0?(o=Oe,f=-f,l-=f):d<0&&(o=Ne,d=-d,c-=d);break;case Oe:if(h){if(m.y<=0&&(c<=v||l<=p)){C=!1;break}y(Ft),d-=m.y,c+=m.y,f=d*h,l+=n.width-f}else y(Ft),y(te),m.x<=0?l>p?(f-=m.x,l+=m.x):m.y<=0&&c<=v&&(C=!1):(f-=m.x,l+=m.x),m.y<=0?c>v&&(d-=m.y,c+=m.y):(d-=m.y,c+=m.y);f<0&&d<0?(o=Ne,d=-d,f=-f,c-=d,l-=f):f<0?(o=Se,f=-f,l-=f):d<0&&(o=Re,d=-d,c-=d);break;case Re:if(h){if(m.x<=0&&(l<=p||g>=b)){C=!1;break}y(te),f-=m.x,l+=m.x,d=f/h}else y(fe),y(te),m.x<=0?l>p?(f-=m.x,l+=m.x):m.y>=0&&g>=b&&(C=!1):(f-=m.x,l+=m.x),m.y>=0?g=0&&(_>=x||g>=b)){C=!1;break}y(Jt),f+=m.x,d=f/h}else y(fe),y(Jt),m.x>=0?_=0&&g>=b&&(C=!1):f+=m.x,m.y>=0?g0?o=m.y>0?Ne:Se:m.x<0&&(l-=f,o=m.y>0?Re:Oe),m.y<0&&(c-=d),this.cropped||(Dt(this.cropBox,rt),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0));break}C&&(n.width=f,n.height=d,n.left=l,n.top=c,this.action=o,this.renderCropBox()),q(a,function(w){w.startX=w.endX,w.startY=w.endY})}},eo={crop:function(){return this.ready&&!this.cropped&&!this.disabled&&(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&Z(this.dragBox,Ke),Dt(this.cropBox,rt),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=$({},this.initialImageData),this.canvasData=$({},this.initialCanvasData),this.cropBoxData=$({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&($(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),Dt(this.dragBox,Ke),Z(this.cropBox,rt)),this},replace:function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!this.disabled&&t&&(this.isImg&&(this.element.src=t),i?(this.url=t,this.image.src=t,this.ready&&(this.viewBoxImage.src=t,q(this.previews,function(e){e.getElementsByTagName("img")[0].src=t}))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(t))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,Dt(this.cropper,zr)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,Z(this.cropper,zr)),this},destroy:function(){var t=this.element;return t[F]?(t[F]=void 0,this.isImg&&this.replaced&&(t.src=this.originalUrl),this.uncreate(),this):this},move:function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,e=this.canvasData,r=e.left,n=e.top;return this.moveTo(Si(t)?t:r+Number(t),Si(i)?i:n+Number(i))},moveTo:function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,e=this.canvasData,r=!1;return t=Number(t),i=Number(i),this.ready&&!this.disabled&&this.options.movable&&(N(t)&&(e.left=t,r=!0),N(i)&&(e.top=i,r=!0),r&&this.renderCanvas(!0)),this},zoom:function(t,i){var e=this.canvasData;return t=Number(t),t<0?t=1/(1-t):t=1+t,this.zoomTo(e.width*t/e.naturalWidth,null,i)},zoomTo:function(t,i,e){var r=this.options,n=this.canvasData,a=n.width,o=n.height,h=n.naturalWidth,l=n.naturalHeight;if(t=Number(t),t>=0&&this.ready&&!this.disabled&&r.zoomable){var c=h*t,f=l*t;if(_e(this.element,Mi,{ratio:t,oldRatio:a/h,originalEvent:e})===!1)return this;if(e){var d=this.pointers,_=en(this.cropper),g=d&&Object.keys(d).length?$s(d):{pageX:e.pageX,pageY:e.pageY};n.left-=(c-a)*((g.pageX-_.left-n.left)/a),n.top-=(f-o)*((g.pageY-_.top-n.top)/o)}else ue(i)&&N(i.x)&&N(i.y)?(n.left-=(c-a)*((i.x-n.left)/a),n.top-=(f-o)*((i.y-n.top)/o)):(n.left-=(c-a)/2,n.top-=(f-o)/2);n.width=c,n.height=f,this.renderCanvas(!0)}return this},rotate:function(t){return this.rotateTo((this.imageData.rotate||0)+Number(t))},rotateTo:function(t){return t=Number(t),N(t)&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=t%360,this.renderCanvas(!0,!0)),this},scaleX:function(t){var i=this.imageData.scaleY;return this.scale(t,N(i)?i:1)},scaleY:function(t){var i=this.imageData.scaleX;return this.scale(N(i)?i:1,t)},scale:function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,e=this.imageData,r=!1;return t=Number(t),i=Number(i),this.ready&&!this.disabled&&this.options.scalable&&(N(t)&&(e.scaleX=t,r=!0),N(i)&&(e.scaleY=i,r=!0),r&&this.renderCanvas(!0,!0)),this},getData:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=this.options,e=this.imageData,r=this.canvasData,n=this.cropBoxData,a;if(this.ready&&this.cropped){a={x:n.left-r.left,y:n.top-r.top,width:n.width,height:n.height};var o=e.width/e.naturalWidth;if(q(a,function(c,f){a[f]=c/o}),t){var h=Math.round(a.y+a.height),l=Math.round(a.x+a.width);a.x=Math.round(a.x),a.y=Math.round(a.y),a.width=l-a.x,a.height=h-a.y}}else a={x:0,y:0,width:0,height:0};return i.rotatable&&(a.rotate=e.rotate||0),i.scalable&&(a.scaleX=e.scaleX||1,a.scaleY=e.scaleY||1),a},setData:function(t){var i=this.options,e=this.imageData,r=this.canvasData,n={};if(this.ready&&!this.disabled&&ue(t)){var a=!1;i.rotatable&&N(t.rotate)&&t.rotate!==e.rotate&&(e.rotate=t.rotate,a=!0),i.scalable&&(N(t.scaleX)&&t.scaleX!==e.scaleX&&(e.scaleX=t.scaleX,a=!0),N(t.scaleY)&&t.scaleY!==e.scaleY&&(e.scaleY=t.scaleY,a=!0)),a&&this.renderCanvas(!0,!0);var o=e.width/e.naturalWidth;N(t.x)&&(n.left=t.x*o+r.left),N(t.y)&&(n.top=t.y*o+r.top),N(t.width)&&(n.width=t.width*o),N(t.height)&&(n.height=t.height*o),this.setCropBoxData(n)}return this},getContainerData:function(){return this.ready?$({},this.containerData):{}},getImageData:function(){return this.sized?$({},this.imageData):{}},getCanvasData:function(){var t=this.canvasData,i={};return this.ready&&q(["left","top","width","height","naturalWidth","naturalHeight"],function(e){i[e]=t[e]}),i},setCanvasData:function(t){var i=this.canvasData,e=i.aspectRatio;return this.ready&&!this.disabled&&ue(t)&&(N(t.left)&&(i.left=t.left),N(t.top)&&(i.top=t.top),N(t.width)?(i.width=t.width,i.height=t.width/e):N(t.height)&&(i.height=t.height,i.width=t.height*e),this.renderCanvas(!0)),this},getCropBoxData:function(){var t=this.cropBoxData,i;return this.ready&&this.cropped&&(i={left:t.left,top:t.top,width:t.width,height:t.height}),i||{}},setCropBoxData:function(t){var i=this.cropBoxData,e=this.options.aspectRatio,r,n;return this.ready&&this.cropped&&!this.disabled&&ue(t)&&(N(t.left)&&(i.left=t.left),N(t.top)&&(i.top=t.top),N(t.width)&&t.width!==i.width&&(r=!0,i.width=t.width),N(t.height)&&t.height!==i.height&&(n=!0,i.height=t.height),e&&(r?i.height=i.width/e:n&&(i.width=i.height*e)),this.renderCropBox()),this},getCroppedCanvas:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var i=this.canvasData,e=Hs(this.image,this.imageData,i,t);if(!this.cropped)return e;var r=this.getData(),n=r.x,a=r.y,o=r.width,h=r.height,l=e.width/Math.floor(i.naturalWidth);l!==1&&(n*=l,a*=l,o*=l,h*=l);var c=o/h,f=Wt({aspectRatio:c,width:t.maxWidth||1/0,height:t.maxHeight||1/0}),d=Wt({aspectRatio:c,width:t.minWidth||0,height:t.minHeight||0},"cover"),_=Wt({aspectRatio:c,width:t.width||(l!==1?e.width:o),height:t.height||(l!==1?e.height:h)}),g=_.width,p=_.height;g=Math.min(f.width,Math.max(d.width,g)),p=Math.min(f.height,Math.max(d.height,p));var v=document.createElement("canvas"),x=v.getContext("2d");v.width=de(g),v.height=de(p),x.fillStyle=t.fillColor||"transparent",x.fillRect(0,0,g,p);var b=t.imageSmoothingEnabled,C=b===void 0?!0:b,E=t.imageSmoothingQuality;x.imageSmoothingEnabled=C,E&&(x.imageSmoothingQuality=E);var k=e.width,m=e.height,y=n,w=a,T,D,M,S,B,A;y<=-o||y>k?(y=0,T=0,M=0,B=0):y<=0?(M=-y,y=0,T=Math.min(k,o+y),B=T):y<=k&&(M=0,T=Math.min(o,k-y),B=T),T<=0||w<=-h||w>m?(w=0,D=0,S=0,A=0):w<=0?(S=-w,w=0,D=Math.min(m,h+w),A=D):w<=m&&(S=0,D=Math.min(h,m-w),A=D);var O=[y,w,T,D];if(B>0&&A>0){var I=g/o;O.push(M*I,S*I,B*I,A*I)}return x.drawImage.apply(x,[e].concat(Rr(O.map(function(L){return Math.floor(de(L))})))),v},setAspectRatio:function(t){var i=this.options;return!this.disabled&&!Si(t)&&(i.aspectRatio=Math.max(0,t)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(t){var i=this.options,e=this.dragBox,r=this.face;if(this.ready&&!this.disabled){var n=t===Ti,a=i.movable&&t===Ir;t=n||a?t:Lr,i.dragMode=t,Ae(e,Be,t),pe(e,xi,n),pe(e,bi,a),i.cropBoxMovable||(Ae(r,Be,t),pe(r,xi,n),pe(r,bi,a))}return this}},io=Et.Cropper,Bi=function(){function s(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(_s(this,s),!t||!Ss.test(t.tagName))throw new Error("The first argument is required and must be an or element.");this.element=t,this.options=$({},Qr,ue(i)&&i),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 gs(s,[{key:"init",value:function(){var i=this.element,e=i.tagName.toLowerCase(),r;if(!i[F]){if(i[F]=this,e==="img"){if(this.isImg=!0,r=i.getAttribute("src")||"",this.originalUrl=r,!r)return;r=i.src}else e==="canvas"&&window.HTMLCanvasElement&&(r=i.toDataURL());this.load(r)}}},{key:"load",value:function(i){var e=this;if(i){this.url=i,this.imageData={};var r=this.element,n=this.options;if(!n.rotatable&&!n.scalable&&(n.checkOrientation=!1),!n.checkOrientation||!window.ArrayBuffer){this.clone();return}if(Ds.test(i)){Ms.test(i)?this.read(Us(i)):this.clone();return}var a=new XMLHttpRequest,o=this.clone.bind(this);this.reloading=!0,this.xhr=a,a.onabort=o,a.onerror=o,a.ontimeout=o,a.onprogress=function(){a.getResponseHeader("content-type")!==qr&&a.abort()},a.onload=function(){e.read(a.response)},a.onloadend=function(){e.reloading=!1,e.xhr=null},n.checkCrossOrigin&&rn(i)&&r.crossOrigin&&(i=nn(i)),a.open("GET",i,!0),a.responseType="arraybuffer",a.withCredentials=r.crossOrigin==="use-credentials",a.send()}}},{key:"read",value:function(i){var e=this.options,r=this.imageData,n=js(i),a=0,o=1,h=1;if(n>1){this.url=qs(i,qr);var l=Gs(n);a=l.rotate,o=l.scaleX,h=l.scaleY}e.rotatable&&(r.rotate=a),e.scalable&&(r.scaleX=o,r.scaleY=h),this.clone()}},{key:"clone",value:function(){var i=this.element,e=this.url,r=i.crossOrigin,n=e;this.options.checkCrossOrigin&&rn(e)&&(r||(r="anonymous"),n=nn(e)),this.crossOrigin=r,this.crossOriginUrl=n;var a=document.createElement("img");r&&(a.crossOrigin=r),a.src=n||e,a.alt=i.alt||"The image to crop",this.image=a,a.onload=this.start.bind(this),a.onerror=this.stop.bind(this),Z(a,Vr),i.parentNode.insertBefore(a,i.nextSibling)}},{key:"start",value:function(){var i=this,e=this.image;e.onload=null,e.onerror=null,this.sizing=!0;var r=Et.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(Et.navigator.userAgent),n=function(l,c){$(i.imageData,{naturalWidth:l,naturalHeight:c,aspectRatio:l/c}),i.initialImageData=$({},i.imageData),i.sizing=!1,i.sized=!0,i.build()};if(e.naturalWidth&&!r){n(e.naturalWidth,e.naturalHeight);return}var a=document.createElement("img"),o=document.body||document.documentElement;this.sizingImage=a,a.onload=function(){n(a.width,a.height),r||o.removeChild(a)},a.src=e.src,r||(a.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;",o.appendChild(a))}},{key:"stop",value:function(){var i=this.image;i.onload=null,i.onerror=null,i.parentNode.removeChild(i),this.image=null}},{key:"build",value:function(){if(!(!this.sized||this.ready)){var i=this.element,e=this.options,r=this.image,n=i.parentNode,a=document.createElement("div");a.innerHTML=Os;var o=a.querySelector(".".concat(F,"-container")),h=o.querySelector(".".concat(F,"-canvas")),l=o.querySelector(".".concat(F,"-drag-box")),c=o.querySelector(".".concat(F,"-crop-box")),f=c.querySelector(".".concat(F,"-face"));this.container=n,this.cropper=o,this.canvas=h,this.dragBox=l,this.cropBox=c,this.viewBox=o.querySelector(".".concat(F,"-view-box")),this.face=f,h.appendChild(r),Z(i,rt),n.insertBefore(o,i.nextSibling),Dt(r,Vr),this.initPreview(),this.bind(),e.initialAspectRatio=Math.max(0,e.initialAspectRatio)||NaN,e.aspectRatio=Math.max(0,e.aspectRatio)||NaN,e.viewMode=Math.max(0,Math.min(3,Math.round(e.viewMode)))||0,Z(c,rt),e.guides||Z(c.getElementsByClassName("".concat(F,"-dashed")),rt),e.center||Z(c.getElementsByClassName("".concat(F,"-center")),rt),e.background&&Z(o,"".concat(F,"-bg")),e.highlight||Z(f,bs),e.cropBoxMovable&&(Z(f,bi),Ae(f,Be,wi)),e.cropBoxResizable||(Z(c.getElementsByClassName("".concat(F,"-line")),rt),Z(c.getElementsByClassName("".concat(F,"-point")),rt)),this.render(),this.ready=!0,this.setDragMode(e.dragMode),e.autoCrop&&this.crop(),this.setData(e.data),nt(e.ready)&&_t(i,Yr,e.ready,{once:!0}),_e(i,Yr)}}},{key:"unbuild",value:function(){if(this.ready){this.ready=!1,this.unbind(),this.resetPreview();var i=this.cropper.parentNode;i&&i.removeChild(this.cropper),Dt(this.element,rt)}}},{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=io,s}},{key:"setDefaults",value:function(i){$(Qr,ue(i)&&i)}}]),s}();$(Bi.prototype,Qs,Zs,Ks,Js,to,eo);const ro={class:"images"},no={key:0,class:"loading"},ao={key:1,class:"mask"},so={class:"left"},oo={class:"right"},ho={class:"bi-crop-container"},lo={class:"bi-crop-container-left"},co={class:"bi-crop-container-right"},fo=u.createElementVNode("div",{class:"previewText"},"预览",-1),uo={class:"dialog-footer"},po={class:"left"},_o=u.defineComponent({__name:"demo",props:{previewType:{default:()=>["default","round","circle"]},leftWidth:{default:500},leftHeight:{default:559},rightPreviewWH:{default:150},previewWidth:{default:150},previewHeight:{default:150},title:{default:"裁剪图片"},getDataIoptions:{default:()=>({fillColor:"#fff",imageSmoothingEnabled:!0,imageSmoothingQuality:"high",width:750,height:750})},type:{default:"image/jpeg"},quality:{default:1},max:{default:2},fit:{default:"fill"},uploadText:{default:"上传中"},beforeReady:null},emits:["onReady","onRemove"],setup(s,{expose:t,emit:i}){const e=s,r=u.ref([]),n=u.ref([]),a=y=>{console.log(y),document.querySelectorAll(".images .images-item .el-image__preview")[y].click()},o=y=>{r.value.splice(y,1)},h=u.ref(),l=u.ref(),c=u.ref(),f=u.ref(),d=u.ref(),_=u.ref(!1),g=()=>{h.value.click()};let p;function v(y){_.value=!0,p==null||p.destroy();let w=new FileReader;y.target.files[0]&&(w.readAsDataURL(y.target.files[0]),w.onload=T=>{let D=w.result;l.value.src=D;const M=[...new Set(e.previewType)],S=[];M.forEach(B=>{switch(B){case"default":S.push(c.value);break;case"round":S.push(f.value);break;case"circle":S.push(d.value);break}}),p=new Bi(l.value,{aspectRatio:1,viewMode:1,minContainerWidth:100,minContainerHeight:100,minCropBoxWidth:100,minCropBoxHeight:100,dragMode:"move",preview:S})}),h.value.value=""}async function x(){const y=p.getCroppedCanvas(e.getDataIoptions),w=[];w[0]=y.toDataURL(e.type,e.quality),await new Promise(D=>{y.toBlob(M=>{w[1]=M,D()},e.type,e.quality)});const T={key:Math.random(),url:w[0],blob:w[1]};r.value.push(T),_.value=!1,n.value[r.value.length-1]=!0;try{e.beforeReady&&await e.beforeReady(),i("onReady",w);for(let D=0;D(n.value[S]=!1,M.key!==T.key))}}const b=()=>{p.rotate(-90)},C=()=>{p.rotate(90)},E=()=>{p.reset()},k=()=>{p.zoom(.1)},m=()=>{p.zoom(-.1)};return t({getImageData:()=>r.value.map(y=>({url:y.url,blob:y.blob}))}),(y,w)=>(u.openBlock(),u.createElementBlock("div",{class:"bi-crop",style:u.normalizeStyle({"--left-width":`${s.leftWidth}px`,"--left-height":`${s.leftHeight}px`,"--righ-previewWH":`${s.rightPreviewWH}px`})},[u.createElementVNode("div",{class:"previewBox",ref_key:"previewBoxRef",ref:c},null,512),u.createElementVNode("div",{class:"previewBoxRound previewBox",ref_key:"previewBoxRoundRef",ref:f},null,512),u.createElementVNode("input",{type:"file",accept:"image/,.png,.jpg,.jpeg,",ref_key:"selectFileRef",ref:h,class:"bi-crop-input",onChange:v},null,544),u.createElementVNode("div",null,[u.createElementVNode("div",ro,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(r.value,(T,D)=>(u.openBlock(),u.createElementBlock("div",{class:"images-item",style:u.normalizeStyle({width:`${s.previewWidth}px`,height:`${s.previewHeight}px`})},[n.value[D]?(u.openBlock(),u.createElementBlock("div",no,[u.createTextVNode(u.toDisplayString(s.uploadText),1),u.createVNode(u.unref(P.ElIcon),{size:"16",class:"icon"},{default:u.withCtx(()=>[u.createVNode(u.unref(Tr))]),_:1})])):(u.openBlock(),u.createElementBlock("div",ao,[u.createElementVNode("div",so,[u.createVNode(u.unref(P.ElIcon),{color:"white",size:"25",style:{cursor:"pointer"},onClick:M=>a(D)},{default:u.withCtx(()=>[u.createVNode(u.unref(Qe))]),_:2},1032,["onClick"])]),u.createElementVNode("div",oo,[u.createVNode(u.unref(P.ElIcon),{color:"white",size:"25",style:{cursor:"pointer"},onClick:M=>o(D)},{default:u.withCtx(()=>[u.createVNode(u.unref(br))]),_:2},1032,["onClick"])])])),u.createVNode(u.unref(P.ElImage),{class:"preview",style:u.normalizeStyle({width:`${s.previewWidth}px`,height:`${s.previewHeight}px`}),src:T.url,"zoom-rate":1.2,"preview-src-list":r.value.map(M=>M.url),"initial-index":D,fit:"fill",ref_for:!0,ref:"imgRef"},null,8,["style","src","zoom-rate","preview-src-list","initial-index"])],4))),256)),s.max>r.value.length?(u.openBlock(),u.createElementBlock("div",{key:0,onClick:g,class:"images-item upload",style:u.normalizeStyle({width:`${s.previewWidth}px`,height:`${s.previewHeight}px`,fontSize:"16px"})},[u.createVNode(u.unref(P.ElIcon),{size:"28",color:"#909399"},{default:u.withCtx(()=>[u.createVNode(u.unref(Cr))]),_:1})],4)):u.createCommentVNode("",!0)])]),u.createVNode(u.unref(P.ElDialog),{width:"750",title:s.title,modelValue:_.value,"onUpdate:modelValue":w[0]||(w[0]=T=>_.value=T)},{footer:u.withCtx(()=>[u.createElementVNode("div",uo,[u.createElementVNode("div",po,[u.createVNode(u.unref(P.ElButtonGroup),{round:""},{default:u.withCtx(()=>[u.createVNode(u.unref(P.ElButton),{round:"",icon:u.unref(kr),onClick:b},null,8,["icon"]),u.createVNode(u.unref(P.ElButton),{round:"",icon:u.unref(Er),onClick:C},null,8,["icon"]),u.createVNode(u.unref(P.ElButton),{round:"",icon:u.unref(Qe),onClick:k},null,8,["icon"]),u.createVNode(u.unref(P.ElButton),{round:"",icon:u.unref(Mr),onClick:m},null,8,["icon"]),u.createVNode(u.unref(P.ElButton),{round:"",icon:u.unref(Dr),onClick:E},null,8,["icon"])]),_:1})]),u.createElementVNode("div",null,[u.createVNode(u.unref(P.ElButton),{onClick:x},{default:u.withCtx(()=>[u.createTextVNode("裁剪")]),_:1})])])]),default:u.withCtx(()=>[u.createElementVNode("div",ho,[u.createElementVNode("div",lo,[u.createElementVNode("img",{id:"cropImg",ref_key:"cropImgRef",ref:l},null,512)]),u.createElementVNode("div",co,[fo,u.withDirectives(u.createElementVNode("div",{class:"previewBox",ref_key:"previewBoxRef",ref:c},null,512),[[u.vShow,s.previewType.includes("default")]]),u.withDirectives(u.createElementVNode("div",{class:"previewBoxRound previewBox",ref_key:"previewBoxRoundRef",ref:f},null,512),[[u.vShow,s.previewType.includes("round")]]),u.withDirectives(u.createElementVNode("div",{class:"previewBoxCircle previewBox",ref_key:"previewBoxCircle",ref:d},null,512),[[u.vShow,s.previewType.includes("circle")]])])])]),_:1},8,["title","modelValue"])],4))}}),sn=pt.withInstall(_o),il="",go={class:"images"},mo={key:0,class:"loading"},vo={key:1,class:"mask"},yo={class:"left"},wo={class:"right"},xo={class:"bi-crop-container"},bo={class:"bi-crop-container-left"},To={class:"bi-crop-container-right"},Co=u.createElementVNode("div",{class:"previewText"},"预览",-1),ko={class:"dialog-footer"},Eo={class:"left"},Do=u.defineComponent({__name:"crop",props:{previewType:{default:()=>["default","round","circle"]},leftWidth:{default:500},leftHeight:{default:559},rightPreviewWH:{default:150},previewWidth:{default:150},previewHeight:{default:150},title:{default:"裁剪图片"},getDataIoptions:{default:()=>({fillColor:"#fff",imageSmoothingEnabled:!0,imageSmoothingQuality:"high",width:750,height:750})},type:{default:"image/jpeg"},quality:{default:1},max:{default:2},fit:{default:"fill"},uploadText:{default:"上传中"},beforeReady:null},emits:["onReady","onRemove"],setup(s,{expose:t,emit:i}){const e=s,r=u.ref([]),n=u.ref([]),a=y=>{console.log(y),document.querySelectorAll(".images .images-item .el-image__preview")[y].click()},o=y=>{r.value.splice(y,1)},h=u.ref(),l=u.ref(),c=u.ref(),f=u.ref(),d=u.ref(),_=u.ref(!1),g=()=>{h.value.click()};let p;function v(y){if(!["image/jpeg","image/webp","image/png","image/bmp","image/tiff","image/svg+xml"].includes(y.target.files[0].type))throw P.ElMessage.error("请上传图片格式"),new Error("请上传图片格式");_.value=!0,p==null||p.destroy();let w=new FileReader;y.target.files[0]&&(console.log("eve.target.files[0]",y.target.files[0].type),w.readAsDataURL(y.target.files[0]),w.onload=T=>{let D=w.result;l.value.src=D;const M=[...new Set(e.previewType)],S=[];M.forEach(B=>{switch(B){case"default":S.push(c.value);break;case"round":S.push(f.value);break;case"circle":S.push(d.value);break}}),p=new Bi(l.value,{aspectRatio:1,viewMode:1,minContainerWidth:100,minContainerHeight:100,minCropBoxWidth:100,minCropBoxHeight:100,dragMode:"move",preview:S})}),h.value.value=""}async function x(){const y=p.getCroppedCanvas(e.getDataIoptions),w=[];w[0]=y.toDataURL(e.type,e.quality),await new Promise(D=>{y.toBlob(M=>{w[1]=M,D()},e.type,e.quality)});const T={key:Math.random(),base64:w[0],blob:w[1]};r.value.push(T),_.value=!1,n.value[r.value.length-1]=!0;try{e.beforeReady&&await e.beforeReady(T.blob),i("onReady",T);for(let D=0;D(n.value[S]=!1,M.key!==T.key))}}const b=()=>{p.rotate(-90)},C=()=>{p.rotate(90)},E=()=>{p.reset()},k=()=>{p.zoom(.1)},m=()=>{p.zoom(-.1)};return t({getImageData:()=>r.value.map(y=>({base64:y.base64,blob:y.blob})),verify:()=>!(r.value.length===0||n.value.includes(!0))}),(y,w)=>(u.openBlock(),u.createElementBlock("div",{class:"bi-crop",style:u.normalizeStyle({"--left-width":`${s.leftWidth}px`,"--left-height":`${s.leftHeight}px`,"--righ-previewWH":`${s.rightPreviewWH}px`})},[u.createElementVNode("div",{class:"previewBox",ref_key:"previewBoxRef",ref:c},null,512),u.createElementVNode("div",{class:"previewBoxRound previewBox",ref_key:"previewBoxRoundRef",ref:f},null,512),u.createElementVNode("input",{type:"file",accept:"image/,.png,.jpg,.jpeg,",ref_key:"selectFileRef",ref:h,class:"bi-crop-input",onChange:v},null,544),u.createElementVNode("div",null,[u.createElementVNode("div",go,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(r.value,(T,D)=>(u.openBlock(),u.createElementBlock("div",{class:"images-item",style:u.normalizeStyle({width:`${s.previewWidth}px`,height:`${s.previewHeight}px`})},[n.value[D]?(u.openBlock(),u.createElementBlock("div",mo,[u.createTextVNode(u.toDisplayString(s.uploadText),1),u.createVNode(u.unref(P.ElIcon),{size:"16",class:"icon"},{default:u.withCtx(()=>[u.createVNode(u.unref(Tr))]),_:1})])):(u.openBlock(),u.createElementBlock("div",vo,[u.createElementVNode("div",yo,[u.createVNode(u.unref(P.ElIcon),{color:"white",size:"25",style:{cursor:"pointer"},onClick:M=>a(D)},{default:u.withCtx(()=>[u.createVNode(u.unref(Qe))]),_:2},1032,["onClick"])]),u.createElementVNode("div",wo,[u.createVNode(u.unref(P.ElIcon),{color:"white",size:"25",style:{cursor:"pointer"},onClick:M=>o(D)},{default:u.withCtx(()=>[u.createVNode(u.unref(br))]),_:2},1032,["onClick"])])])),u.createVNode(u.unref(P.ElImage),{class:"preview",style:u.normalizeStyle({width:`${s.previewWidth}px`,height:`${s.previewHeight}px`}),src:T.base64,"zoom-rate":1.2,"preview-src-list":r.value.map(M=>M.base64),"initial-index":D,fit:"fill",ref_for:!0,ref:"imgRef"},null,8,["style","src","zoom-rate","preview-src-list","initial-index"])],4))),256)),s.max>r.value.length?(u.openBlock(),u.createElementBlock("div",{key:0,onClick:g,class:"images-item upload",style:u.normalizeStyle({width:`${s.previewWidth}px`,height:`${s.previewHeight}px`,fontSize:"16px"})},[u.createVNode(u.unref(P.ElIcon),{size:"28",color:"#909399"},{default:u.withCtx(()=>[u.createVNode(u.unref(Cr))]),_:1})],4)):u.createCommentVNode("",!0)])]),u.createVNode(u.unref(P.ElDialog),{width:"750",title:s.title,modelValue:_.value,"onUpdate:modelValue":w[0]||(w[0]=T=>_.value=T)},{footer:u.withCtx(()=>[u.createElementVNode("div",ko,[u.createElementVNode("div",Eo,[u.createVNode(u.unref(P.ElButtonGroup),{round:""},{default:u.withCtx(()=>[u.createVNode(u.unref(P.ElButton),{round:"",icon:u.unref(kr),onClick:b},null,8,["icon"]),u.createVNode(u.unref(P.ElButton),{round:"",icon:u.unref(Er),onClick:C},null,8,["icon"]),u.createVNode(u.unref(P.ElButton),{round:"",icon:u.unref(Qe),onClick:k},null,8,["icon"]),u.createVNode(u.unref(P.ElButton),{round:"",icon:u.unref(Mr),onClick:m},null,8,["icon"]),u.createVNode(u.unref(P.ElButton),{round:"",icon:u.unref(Dr),onClick:E},null,8,["icon"])]),_:1})]),u.createElementVNode("div",null,[u.createVNode(u.unref(P.ElButton),{onClick:x},{default:u.withCtx(()=>[u.createTextVNode("裁剪")]),_:1})])])]),default:u.withCtx(()=>[u.createElementVNode("div",xo,[u.createElementVNode("div",bo,[u.createElementVNode("img",{id:"cropImg",ref_key:"cropImgRef",ref:l},null,512)]),u.createElementVNode("div",To,[Co,u.withDirectives(u.createElementVNode("div",{class:"previewBox",ref_key:"previewBoxRef",ref:c},null,512),[[u.vShow,s.previewType.includes("default")]]),u.withDirectives(u.createElementVNode("div",{class:"previewBoxRound previewBox",ref_key:"previewBoxRoundRef",ref:f},null,512),[[u.vShow,s.previewType.includes("round")]]),u.withDirectives(u.createElementVNode("div",{class:"previewBoxCircle previewBox",ref_key:"previewBoxCircle",ref:d},null,512),[[u.vShow,s.previewType.includes("circle")]])])])]),_:1},8,["title","modelValue"])],4))}}),on=pt.withInstall(Do);function At(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function hn(s,t){s.prototype=Object.create(t.prototype),s.prototype.constructor=s,s.__proto__=t}/*! * GSAP 3.11.5 * https://greensock.com * * @license Copyright 2008-2023, GreenSock. All rights reserved. * Subject to the terms at https://greensock.com/standard-license or for * Club GreenSock members, the agreement issued with that membership. * @author: Jack Doyle, jack@greensock.com */var ct={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},ge={duration:.5,overwrite:!1,delay:0},Ai,tt,j,gt=1e8,z=1/gt,Pi=Math.PI*2,Mo=Pi/4,So=0,ln=Math.sqrt,Oo=Math.cos,No=Math.sin,K=function(t){return typeof t=="string"},Y=function(t){return typeof t=="function"},Pt=function(t){return typeof t=="number"},zi=function(t){return typeof t>"u"},Mt=function(t){return typeof t=="object"},at=function(t){return t!==!1},Vi=function(){return typeof window<"u"},ei=function(t){return Y(t)||K(t)},cn=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},et=Array.isArray,Ii=/(?:-?\.?\d|\.)+/gi,fn=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,me=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Li=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,un=/[+-]=-?[.\d]+/,dn=/[^,'"\[\]\s]+/gi,Ro=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,W,mt,Fi,$i,ft={},ii={},pn,_n=function(t){return(ii=re(t,ft))&<},Wi=function(t,i){return console.warn("Invalid property",t,"set to",i,"Missing plugin? gsap.registerPlugin()")},ri=function(t,i){return!i&&console.warn(t)},gn=function(t,i){return t&&(ft[t]=i)&&ii&&(ii[t]=i)||ft},ze=function(){return 0},Bo={suppressEvents:!0,isStart:!0,kill:!1},ni={suppressEvents:!0,kill:!1},Ao={suppressEvents:!0},Hi={},Ht=[],Yi={},mn,ut={},Xi={},vn=30,ai=[],Ui="",qi=function(t){var i=t[0],e,r;if(Mt(i)||Y(i)||(t=[t]),!(e=(i._gsap||{}).harness)){for(r=ai.length;r--&&!ai[r].targetTest(i););e=ai[r]}for(r=t.length;r--;)t[r]&&(t[r]._gsap||(t[r]._gsap=new qn(t[r],e)))||t.splice(r,1);return t},ie=function(t){return t._gsap||qi(wt(t))[0]._gsap},yn=function(t,i,e){return(e=t[i])&&Y(e)?t[i]():zi(e)&&t.getAttribute&&t.getAttribute(i)||e},st=function(t,i){return(t=t.split(",")).forEach(i)||t},U=function(t){return Math.round(t*1e5)/1e5||0},J=function(t){return Math.round(t*1e7)/1e7||0},ve=function(t,i){var e=i.charAt(0),r=parseFloat(i.substr(2));return t=parseFloat(t),e==="+"?t+r:e==="-"?t-r:e==="*"?t*r:t/r},Po=function(t,i){for(var e=i.length,r=0;t.indexOf(i[r])<0&&++ro;)a=a._prev;return a?(i._next=a._next,a._next=i):(i._next=t[e],t[e]=i),i._next?i._next._prev=i:t[r]=i,i._prev=a,i.parent=i._dp=t,i},hi=function(t,i,e,r){e===void 0&&(e="_first"),r===void 0&&(r="_last");var n=i._prev,a=i._next;n?n._next=a:t[e]===i&&(t[e]=a),a?a._prev=n:t[r]===i&&(t[r]=n),i._next=i._prev=i.parent=null},Yt=function(t,i){t.parent&&(!i||t.parent.autoRemoveChildren)&&t.parent.remove(t),t._act=0},ne=function(t,i){if(t&&(!i||i._end>t._dur||i._start<0))for(var e=t;e;)e._dirty=1,e=e.parent;return t},Io=function(t){for(var i=t.parent;i&&i.parent;)i._dirty=1,i.totalDuration(),i=i.parent;return t},ji=function(t,i,e,r){return t._startAt&&(tt?t._startAt.revert(ni):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(i,!0,r))},Lo=function s(t){return!t||t._ts&&s(t.parent)},kn=function(t){return t._repeat?ye(t._tTime,t=t.duration()+t._rDelay)*t:0},ye=function(t,i){var e=Math.floor(t/=i);return t&&e===t?e-1:e},li=function(t,i){return(t-i._start)*i._ts+(i._ts>=0?0:i._dirty?i.totalDuration():i._tDur)},ci=function(t){return t._end=J(t._start+(t._tDur/Math.abs(t._ts||t._rts||z)||0))},fi=function(t,i){var e=t._dp;return e&&e.smoothChildTiming&&t._ts&&(t._start=J(e._time-(t._ts>0?i/t._ts:((t._dirty?t.totalDuration():t._tDur)-i)/-t._ts)),ci(t),e._dirty||ne(e,t)),t},En=function(t,i){var e;if((i._time||i._initted&&!i._dur)&&(e=li(t.rawTime(),i),(!i._dur||Le(0,i.totalDuration(),e)-i._tTime>z)&&i.render(e,!0)),ne(t,i)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur=0&&e.totalTime(e._tTime),e=e._dp;t._zTime=-z}},St=function(t,i,e,r){return i.parent&&Yt(i),i._start=J((Pt(e)?e:e||t!==W?yt(t,e,i):t._time)+i._delay),i._end=J(i._start+(i.totalDuration()/Math.abs(i.timeScale())||0)),Cn(t,i,"_first","_last",t._sort?"_start":0),Gi(i)||(t._recent=i),r||En(t,i),t._ts<0&&fi(t,t._tTime),t},Dn=function(t,i){return(ft.ScrollTrigger||Wi("scrollTrigger",i))&&ft.ScrollTrigger.create(i,t)},Mn=function(t,i,e,r,n){if(nr(t,i,n),!t._initted)return 1;if(!e&&t._pt&&!tt&&(t._dur&&t.vars.lazy!==!1||!t._dur&&t.vars.lazy)&&mn!==dt.frame)return Ht.push(t),t._lazy=[n,r],1},Fo=function s(t){var i=t.parent;return i&&i._ts&&i._initted&&!i._lock&&(i.rawTime()<0||s(i))},Gi=function(t){var i=t.data;return i==="isFromStart"||i==="isStart"},$o=function(t,i,e,r){var n=t.ratio,a=i<0||!i&&(!t._start&&Fo(t)&&!(!t._initted&&Gi(t))||(t._ts<0||t._dp._ts<0)&&!Gi(t))?0:1,o=t._rDelay,h=0,l,c,f;if(o&&t._repeat&&(h=Le(0,t._tDur,i),c=ye(h,o),t._yoyo&&c&1&&(a=1-a),c!==ye(t._tTime,o)&&(n=1-a,t.vars.repeatRefresh&&t._initted&&t.invalidate())),a!==n||tt||r||t._zTime===z||!i&&t._zTime){if(!t._initted&&Mn(t,i,r,e,h))return;for(f=t._zTime,t._zTime=i||(e?z:0),e||(e=i&&!f),t.ratio=a,t._from&&(a=1-a),t._time=0,t._tTime=h,l=t._pt;l;)l.r(a,l.d),l=l._next;i<0&&ji(t,i,e,!0),t._onUpdate&&!e&&xt(t,"onUpdate"),h&&t._repeat&&!e&&t.parent&&xt(t,"onRepeat"),(i>=t._tDur||i<0)&&t.ratio===a&&(a&&Yt(t,1),!e&&!tt&&(xt(t,a?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=i)},Wo=function(t,i,e){var r;if(e>i)for(r=t._first;r&&r._start<=e;){if(r.data==="isPause"&&r._start>i)return r;r=r._next}else for(r=t._last;r&&r._start>=e;){if(r.data==="isPause"&&r._start0&&!r&&fi(t,t._tTime=t._tDur*o),t.parent&&ci(t),e||ne(t.parent,t),t},Sn=function(t){return t instanceof ot?ne(t):we(t,t._dur)},Ho={_start:0,endTime:ze,totalDuration:ze},yt=function s(t,i,e){var r=t.labels,n=t._recent||Ho,a=t.duration()>=gt?n.endTime(!1):t._dur,o,h,l;return K(i)&&(isNaN(i)||i in r)?(h=i.charAt(0),l=i.substr(-1)==="%",o=i.indexOf("="),h==="<"||h===">"?(o>=0&&(i=i.replace(/=/,"")),(h==="<"?n._start:n.endTime(n._repeat>=0))+(parseFloat(i.substr(1))||0)*(l?(o<0?n:e).totalDuration()/100:1)):o<0?(i in r||(r[i]=a),r[i]):(h=parseFloat(i.charAt(o-1)+i.substr(o+1)),l&&e&&(h=h/100*(et(e)?e[0]:e).totalDuration()),o>1?s(t,i.substr(0,o-1),e)+h:a+h)):i==null?a:+i},Ie=function(t,i,e){var r=Pt(i[1]),n=(r?2:1)+(t<2?0:1),a=i[n],o,h;if(r&&(a.duration=i[1]),a.parent=e,t){for(o=a,h=e;h&&!("immediateRender"in o);)o=h.vars.defaults||{},h=at(h.vars.inherit)&&h.parent;a.immediateRender=at(o.immediateRender),t<2?a.runBackwards=1:a.startAt=i[n-1]}return new G(i[0],a,i[n+1])},Xt=function(t,i){return t||t===0?i(t):i},Le=function(t,i,e){return ei?i:e},it=function(t,i){return!K(t)||!(i=Ro.exec(t))?"":i[1]},Yo=function(t,i,e){return Xt(e,function(r){return Le(t,i,r)})},Qi=[].slice,On=function(t,i){return t&&Mt(t)&&"length"in t&&(!i&&!t.length||t.length-1 in t&&Mt(t[0]))&&!t.nodeType&&t!==mt},Xo=function(t,i,e){return e===void 0&&(e=[]),t.forEach(function(r){var n;return K(r)&&!i||On(r,1)?(n=e).push.apply(n,wt(r)):e.push(r)})||e},wt=function(t,i,e){return j&&!i&&j.selector?j.selector(t):K(t)&&!e&&(Fi||!be())?Qi.call((i||$i).querySelectorAll(t),0):et(t)?Xo(t,e):On(t)?Qi.call(t,0):t?[t]:[]},Zi=function(t){return t=wt(t)[0]||ri("Invalid scope")||{},function(i){var e=t.current||t.nativeElement||t;return wt(i,e.querySelectorAll?e:e===t?ri("Invalid scope")||$i.createElement("div"):t)}},Nn=function(t){return t.sort(function(){return .5-Math.random()})},Rn=function(t){if(Y(t))return t;var i=Mt(t)?t:{each:t},e=ae(i.ease),r=i.from||0,n=parseFloat(i.base)||0,a={},o=r>0&&r<1,h=isNaN(r)||o,l=i.axis,c=r,f=r;return K(r)?c=f={center:.5,edges:.5,end:1}[r]||0:!o&&h&&(c=r[0],f=r[1]),function(d,_,g){var p=(g||i).length,v=a[p],x,b,C,E,k,m,y,w,T;if(!v){if(T=i.grid==="auto"?0:(i.grid||[1,gt])[1],!T){for(y=-gt;y<(y=g[T++].getBoundingClientRect().left)&&Ty&&(y=k),kp?p-1:l?l==="y"?p/T:T:Math.max(T,p/T))||0)*(r==="edges"?-1:1),v.b=p<0?n-p:n,v.u=it(i.amount||i.each)||0,e=e&&p<0?Yn(e):e}return p=(v[d]-v.min)/v.max||0,J(v.b+(e?e(p):p)*v.v)+v.u}},Ki=function(t){var i=Math.pow(10,((t+"").split(".")[1]||"").length);return function(e){var r=J(Math.round(parseFloat(e)/t)*t*i);return(r-r%1)/i+(Pt(e)?0:it(e))}},Bn=function(t,i){var e=et(t),r,n;return!e&&Mt(t)&&(r=e=t.radius||gt,t.values?(t=wt(t.values),(n=!Pt(t[0]))&&(r*=r)):t=Ki(t.increment)),Xt(i,e?Y(t)?function(a){return n=t(a),Math.abs(n-a)<=r?n:a}:function(a){for(var o=parseFloat(n?a.x:a),h=parseFloat(n?a.y:0),l=gt,c=0,f=t.length,d,_;f--;)n?(d=t[f].x-o,_=t[f].y-h,d=d*d+_*_):d=Math.abs(t[f]-o),dr?n-a:a)})},Fe=function(t){for(var i=0,e="",r,n,a,o;~(r=t.indexOf("random(",i));)a=t.indexOf(")",r),o=t.charAt(r+7)==="[",n=t.substr(r+7,a-r-7).match(o?dn:Ii),e+=t.substr(i,r-i)+An(o?n:+n[0],o?0:+n[1],+n[2]||1e-5),i=a+1;return e+t.substr(i,t.length-i)},zn=function(t,i,e,r,n){var a=i-t,o=r-e;return Xt(n,function(h){return e+((h-t)/a*o||0)})},Zo=function s(t,i,e,r){var n=isNaN(t+i)?0:function(_){return(1-_)*t+_*i};if(!n){var a=K(t),o={},h,l,c,f,d;if(e===!0&&(r=1)&&(e=null),a)t={p:t},i={p:i};else if(et(t)&&!et(i)){for(c=[],f=t.length,d=f-2,l=1;l(o=Math.abs(o))&&(h=a,n=o);return h},xt=function(t,i,e){var r=t.vars,n=r[i],a=j,o=t._ctx,h,l,c;if(n)return h=r[i+"Params"],l=r.callbackScope||t,e&&Ht.length&&si(),o&&(j=o),c=h?n.apply(l,h):n.call(l),j=a,c},$e=function(t){return Yt(t),t.scrollTrigger&&t.scrollTrigger.kill(!!tt),t.progress()<1&&xt(t,"onInterrupt"),t},xe,In=[],Ln=function(t){if(!Vi()){In.push(t);return}t=!t.name&&t.default||t;var i=t.name,e=Y(t),r=i&&!e&&t.init?function(){this._props=[]}:t,n={init:ze,render:or,add:ir,kill:dh,modifier:uh,rawVars:0},a={targetTest:0,get:0,getSetter:sr,aliases:{},register:0};if(be(),t!==r){if(ut[i])return;vt(r,vt(oi(t,n),a)),re(r.prototype,re(n,oi(t,a))),ut[r.prop=i]=r,t.targetTest&&(ai.push(r),Hi[i]=1),i=(i==="css"?"CSS":i.charAt(0).toUpperCase()+i.substr(1))+"Plugin"}gn(i,r),t.register&&t.register(lt,r,ht)},V=255,We={aqua:[0,V,V],lime:[0,V,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,V],navy:[0,0,128],white:[V,V,V],olive:[128,128,0],yellow:[V,V,0],orange:[V,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[V,0,0],pink:[V,192,203],cyan:[0,V,V],transparent:[V,V,V,0]},Ji=function(t,i,e){return t+=t<0?1:t>1?-1:0,(t*6<1?i+(e-i)*t*6:t<.5?e:t*3<2?i+(e-i)*(2/3-t)*6:i)*V+.5|0},Fn=function(t,i,e){var r=t?Pt(t)?[t>>16,t>>8&V,t&V]:0:We.black,n,a,o,h,l,c,f,d,_,g;if(!r){if(t.substr(-1)===","&&(t=t.substr(0,t.length-1)),We[t])r=We[t];else if(t.charAt(0)==="#"){if(t.length<6&&(n=t.charAt(1),a=t.charAt(2),o=t.charAt(3),t="#"+n+n+a+a+o+o+(t.length===5?t.charAt(4)+t.charAt(4):"")),t.length===9)return r=parseInt(t.substr(1,6),16),[r>>16,r>>8&V,r&V,parseInt(t.substr(7),16)/255];t=parseInt(t.substr(1),16),r=[t>>16,t>>8&V,t&V]}else if(t.substr(0,3)==="hsl"){if(r=g=t.match(Ii),!i)h=+r[0]%360/360,l=+r[1]/100,c=+r[2]/100,a=c<=.5?c*(l+1):c+l-c*l,n=c*2-a,r.length>3&&(r[3]*=1),r[0]=Ji(h+1/3,n,a),r[1]=Ji(h,n,a),r[2]=Ji(h-1/3,n,a);else if(~t.indexOf("="))return r=t.match(fn),e&&r.length<4&&(r[3]=1),r}else r=t.match(Ii)||We.transparent;r=r.map(Number)}return i&&!g&&(n=r[0]/V,a=r[1]/V,o=r[2]/V,f=Math.max(n,a,o),d=Math.min(n,a,o),c=(f+d)/2,f===d?h=l=0:(_=f-d,l=c>.5?_/(2-f-d):_/(f+d),h=f===n?(a-o)/_+(at&&(e+=x-i),r+=x,k=r-e,C=k-a,(C>0||b)&&(m=++f.frame,d=k-f.time*1e3,f.time=k=k/1e3,a+=C+(C>=n?4:n-C),E=1),b||(h=l(p)),E)for(_=0;_=x&&_--},_listeners:o},f}(),be=function(){return!He&&dt.wake()},R={},Jo=/^[\d.\-M][\d.\-,\s]/,th=/["']/g,eh=function(t){for(var i={},e=t.substr(1,t.length-3).split(":"),r=e[0],n=1,a=e.length,o,h,l;n1&&e.config?e.config.apply(null,~t.indexOf("{")?[eh(i[1])]:ih(t).split(",").map(xn)):R._CE&&Jo.test(t)?R._CE("",t):e},Yn=function(t){return function(i){return 1-t(1-i)}},Xn=function s(t,i){for(var e=t._first,r;e;)e instanceof ot?s(e,i):e.vars.yoyoEase&&(!e._yoyo||!e._repeat)&&e._yoyo!==i&&(e.timeline?s(e.timeline,i):(r=e._ease,e._ease=e._yEase,e._yEase=r,e._yoyo=i)),e=e._next},ae=function(t,i){return t&&(Y(t)?t:R[t]||rh(t))||i},se=function(t,i,e,r){e===void 0&&(e=function(h){return 1-i(1-h)}),r===void 0&&(r=function(h){return h<.5?i(h*2)/2:1-i((1-h)*2)/2});var n={easeIn:i,easeOut:e,easeInOut:r},a;return st(t,function(o){R[o]=ft[o]=n,R[a=o.toLowerCase()]=e;for(var h in n)R[a+(h==="easeIn"?".in":h==="easeOut"?".out":".inOut")]=R[o+"."+h]=n[h]}),n},Un=function(t){return function(i){return i<.5?(1-t(1-i*2))/2:.5+t((i-.5)*2)/2}},tr=function s(t,i,e){var r=i>=1?i:1,n=(e||(t?.3:.45))/(i<1?i:1),a=n/Pi*(Math.asin(1/r)||0),o=function(c){return c===1?1:r*Math.pow(2,-10*c)*No((c-a)*n)+1},h=t==="out"?o:t==="in"?function(l){return 1-o(1-l)}:Un(o);return n=Pi/n,h.config=function(l,c){return s(t,l,c)},h},er=function s(t,i){i===void 0&&(i=1.70158);var e=function(a){return a?--a*a*((i+1)*a+i)+1:0},r=t==="out"?e:t==="in"?function(n){return 1-e(1-n)}:Un(e);return r.config=function(n){return s(t,n)},r};st("Linear,Quad,Cubic,Quart,Quint,Strong",function(s,t){var i=t<5?t+1:t;se(s+",Power"+(i-1),t?function(e){return Math.pow(e,i)}:function(e){return e},function(e){return 1-Math.pow(1-e,i)},function(e){return e<.5?Math.pow(e*2,i)/2:1-Math.pow((1-e)*2,i)/2})}),R.Linear.easeNone=R.none=R.Linear.easeIn,se("Elastic",tr("in"),tr("out"),tr()),function(s,t){var i=1/t,e=2*i,r=2.5*i,n=function(o){return o0?e+(e+this._rDelay)*this._repeat:e):this.totalDuration()&&this._dur},t.totalDuration=function(e){return arguments.length?(this._dirty=0,we(this,this._repeat<0?e:(e-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(e,r){if(be(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(fi(this,e),!n._dp||n.parent||En(n,this);n&&n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&e0||!this._tDur&&!e)&&St(this._dp,this,this._start-this._delay)}return(this._tTime!==e||!this._dur&&!r||this._initted&&Math.abs(this._zTime)===z||!e&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=e),wn(this,e,r)),this},t.time=function(e,r){return arguments.length?this.totalTime(Math.min(this.totalDuration(),e+kn(this))%(this._dur+this._rDelay)||(e?this._dur:0),r):this._time},t.totalProgress=function(e,r){return arguments.length?this.totalTime(this.totalDuration()*e,r):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.ratio},t.progress=function(e,r){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-e:e)+kn(this),r):this.duration()?Math.min(1,this._time/this._dur):this.ratio},t.iteration=function(e,r){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(e-1)*n,r):this._repeat?ye(this._tTime,n)+1:1},t.timeScale=function(e){if(!arguments.length)return this._rts===-z?0:this._rts;if(this._rts===e)return this;var r=this.parent&&this._ts?li(this.parent._time,this):this._tTime;return this._rts=+e||0,this._ts=this._ps||e===-z?0:this._rts,this.totalTime(Le(-Math.abs(this._delay),this._tDur,r),!0),ci(this),Io(this)},t.paused=function(e){return arguments.length?(this._ps!==e&&(this._ps=e,e?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(be(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==z&&(this._tTime-=z)))),this):this._ps},t.startTime=function(e){if(arguments.length){this._start=e;var r=this.parent||this._dp;return r&&(r._sort||!this.parent)&&St(r,this,e-this._delay),this}return this._start},t.endTime=function(e){return this._start+(at(e)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(e){var r=this.parent||this._dp;return r?e&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?li(r.rawTime(e),this):this._tTime:this._tTime},t.revert=function(e){e===void 0&&(e=Ao);var r=tt;return tt=e,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(e),this.totalTime(-.01,e.suppressEvents)),this.data!=="nested"&&e.kill!==!1&&this.kill(),tt=r,this},t.globalTime=function(e){for(var r=this,n=arguments.length?e:r.rawTime();r;)n=r._start+n/(r._ts||1),r=r._dp;return!this.parent&&this._sat?this._sat.vars.immediateRender?-1:this._sat.globalTime(e):n},t.repeat=function(e){return arguments.length?(this._repeat=e===1/0?-2:e,Sn(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(e){if(arguments.length){var r=this._time;return this._rDelay=e,Sn(this),r?this.time(r):this}return this._rDelay},t.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},t.seek=function(e,r){return this.totalTime(yt(this,e),at(r))},t.restart=function(e,r){return this.play().totalTime(e?-this._delay:0,at(r))},t.play=function(e,r){return e!=null&&this.seek(e,r),this.reversed(!1).paused(!1)},t.reverse=function(e,r){return e!=null&&this.seek(e||this.totalDuration(),r),this.reversed(!0).paused(!1)},t.pause=function(e,r){return e!=null&&this.seek(e,r),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(e){return arguments.length?(!!e!==this.reversed()&&this.timeScale(-this._rts||(e?-z:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-z,this},t.isActive=function(){var e=this.parent||this._dp,r=this._start,n;return!!(!e||this._ts&&this._initted&&e.isActive()&&(n=e.rawTime(!0))>=r&&n1?(r?(a[e]=r,n&&(a[e+"Params"]=n),e==="onUpdate"&&(this._onUpdate=r)):delete a[e],this):a[e]},t.then=function(e){var r=this;return new Promise(function(n){var a=Y(e)?e:bn,o=function(){var l=r.then;r.then=null,Y(a)&&(a=a(r))&&(a.then||a===r)&&(r.then=l),n(a),r.then=l};r._initted&&r.totalProgress()===1&&r._ts>=0||!r._tTime&&r._ts<0?o():r._prom=o})},t.kill=function(){$e(this)},s}();vt(Te.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-z,_prom:0,_ps:!1,_rts:1});var ot=function(s){hn(t,s);function t(e,r){var n;return e===void 0&&(e={}),n=s.call(this,e)||this,n.labels={},n.smoothChildTiming=!!e.smoothChildTiming,n.autoRemoveChildren=!!e.autoRemoveChildren,n._sort=at(e.sortChildren),W&&St(e.parent||W,At(n),r),e.reversed&&n.reverse(),e.paused&&n.paused(!0),e.scrollTrigger&&Dn(At(n),e.scrollTrigger),n}var i=t.prototype;return i.to=function(r,n,a){return Ie(0,arguments,this),this},i.from=function(r,n,a){return Ie(1,arguments,this),this},i.fromTo=function(r,n,a,o){return Ie(2,arguments,this),this},i.set=function(r,n,a){return n.duration=0,n.parent=this,Ve(n).repeatDelay||(n.repeat=0),n.immediateRender=!!n.immediateRender,new G(r,n,yt(this,a),1),this},i.call=function(r,n,a){return St(this,G.delayedCall(0,r,n),a)},i.staggerTo=function(r,n,a,o,h,l,c){return a.duration=n,a.stagger=a.stagger||o,a.onComplete=l,a.onCompleteParams=c,a.parent=this,new G(r,a,yt(this,h)),this},i.staggerFrom=function(r,n,a,o,h,l,c){return a.runBackwards=1,Ve(a).immediateRender=at(a.immediateRender),this.staggerTo(r,n,a,o,h,l,c)},i.staggerFromTo=function(r,n,a,o,h,l,c,f){return o.startAt=a,Ve(o).immediateRender=at(o.immediateRender),this.staggerTo(r,n,o,h,l,c,f)},i.render=function(r,n,a){var o=this._time,h=this._dirty?this.totalDuration():this._tDur,l=this._dur,c=r<=0?0:J(r),f=this._zTime<0!=r<0&&(this._initted||!l),d,_,g,p,v,x,b,C,E,k,m,y;if(this!==W&&c>h&&r>=0&&(c=h),c!==this._tTime||a||f){if(o!==this._time&&l&&(c+=this._time-o,r+=this._time-o),d=c,E=this._start,C=this._ts,x=!C,f&&(l||(o=this._zTime),(r||!n)&&(this._zTime=r)),this._repeat){if(m=this._yoyo,v=l+this._rDelay,this._repeat<-1&&r<0)return this.totalTime(v*100+r,n,a);if(d=J(c%v),c===h?(p=this._repeat,d=l):(p=~~(c/v),p&&p===c/v&&(d=l,p--),d>l&&(d=l)),k=ye(this._tTime,v),!o&&this._tTime&&k!==p&&this._tTime-k*v-this._dur<=0&&(k=p),m&&p&1&&(d=l-d,y=1),p!==k&&!this._lock){var w=m&&k&1,T=w===(m&&p&1);if(p=o&&r>=0)for(_=this._first;_;){if(g=_._next,(_._act||d>=_._start)&&_._ts&&b!==_){if(_.parent!==this)return this.render(r,n,a);if(_.render(_._ts>0?(d-_._start)*_._ts:(_._dirty?_.totalDuration():_._tDur)+(d-_._start)*_._ts,n,a),d!==this._time||!this._ts&&!x){b=0,g&&(c+=this._zTime=-z);break}}_=g}else{_=this._last;for(var D=r<0?r:d;_;){if(g=_._prev,(_._act||D<=_._end)&&_._ts&&b!==_){if(_.parent!==this)return this.render(r,n,a);if(_.render(_._ts>0?(D-_._start)*_._ts:(_._dirty?_.totalDuration():_._tDur)+(D-_._start)*_._ts,n,a||tt&&(_._initted||_._startAt)),d!==this._time||!this._ts&&!x){b=0,g&&(c+=this._zTime=D?-z:z);break}}_=g}}if(b&&!n&&(this.pause(),b.render(d>=o?0:-z)._zTime=d>=o?1:-1,this._ts))return this._start=E,ci(this),this.render(r,n,a);this._onUpdate&&!n&&xt(this,"onUpdate",!0),(c===h&&this._tTime>=this.totalDuration()||!c&&o)&&(E===this._start||Math.abs(C)!==Math.abs(this._ts))&&(this._lock||((r||!l)&&(c===h&&this._ts>0||!c&&this._ts<0)&&Yt(this,1),!n&&!(r<0&&!o)&&(c||o||!h)&&(xt(this,c===h&&r>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(c0)&&this._prom())))}return this},i.add=function(r,n){var a=this;if(Pt(n)||(n=yt(this,n,r)),!(r instanceof Te)){if(et(r))return r.forEach(function(o){return a.add(o,n)}),this;if(K(r))return this.addLabel(r,n);if(Y(r))r=G.delayedCall(0,r);else return this}return this!==r?St(this,r,n):this},i.getChildren=function(r,n,a,o){r===void 0&&(r=!0),n===void 0&&(n=!0),a===void 0&&(a=!0),o===void 0&&(o=-gt);for(var h=[],l=this._first;l;)l._start>=o&&(l instanceof G?n&&h.push(l):(a&&h.push(l),r&&h.push.apply(h,l.getChildren(!0,n,a)))),l=l._next;return h},i.getById=function(r){for(var n=this.getChildren(1,1,1),a=n.length;a--;)if(n[a].vars.id===r)return n[a]},i.remove=function(r){return K(r)?this.removeLabel(r):Y(r)?this.killTweensOf(r):(hi(this,r),r===this._recent&&(this._recent=this._last),ne(this))},i.totalTime=function(r,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=J(dt.time-(this._ts>0?r/this._ts:(this.totalDuration()-r)/-this._ts))),s.prototype.totalTime.call(this,r,n),this._forcing=0,this):this._tTime},i.addLabel=function(r,n){return this.labels[r]=yt(this,n),this},i.removeLabel=function(r){return delete this.labels[r],this},i.addPause=function(r,n,a){var o=G.delayedCall(0,n||ze,a);return o.data="isPause",this._hasPause=1,St(this,o,yt(this,r))},i.removePause=function(r){var n=this._first;for(r=yt(this,r);n;)n._start===r&&n.data==="isPause"&&Yt(n),n=n._next},i.killTweensOf=function(r,n,a){for(var o=this.getTweensOf(r,a),h=o.length;h--;)qt!==o[h]&&o[h].kill(r,n);return this},i.getTweensOf=function(r,n){for(var a=[],o=wt(r),h=this._first,l=Pt(n),c;h;)h instanceof G?Po(h._targets,o)&&(l?(!qt||h._initted&&h._ts)&&h.globalTime(0)<=n&&h.globalTime(h.totalDuration())>n:!n||h.isActive())&&a.push(h):(c=h.getTweensOf(o,n)).length&&a.push.apply(a,c),h=h._next;return a},i.tweenTo=function(r,n){n=n||{};var a=this,o=yt(a,r),h=n,l=h.startAt,c=h.onStart,f=h.onStartParams,d=h.immediateRender,_,g=G.to(a,vt({ease:n.ease||"none",lazy:!1,immediateRender:!1,time:o,overwrite:"auto",duration:n.duration||Math.abs((o-(l&&"time"in l?l.time:a._time))/a.timeScale())||z,onStart:function(){if(a.pause(),!_){var v=n.duration||Math.abs((o-(l&&"time"in l?l.time:a._time))/a.timeScale());g._dur!==v&&we(g,v,0,1).render(g._time,!0,!0),_=1}c&&c.apply(g,f||[])}},n));return d?g.render(0):g},i.tweenFromTo=function(r,n,a){return this.tweenTo(n,vt({startAt:{time:yt(this,r)}},a))},i.recent=function(){return this._recent},i.nextLabel=function(r){return r===void 0&&(r=this._time),Vn(this,yt(this,r))},i.previousLabel=function(r){return r===void 0&&(r=this._time),Vn(this,yt(this,r),1)},i.currentLabel=function(r){return arguments.length?this.seek(r,!0):this.previousLabel(this._time+z)},i.shiftChildren=function(r,n,a){a===void 0&&(a=0);for(var o=this._first,h=this.labels,l;o;)o._start>=a&&(o._start+=r,o._end+=r),o=o._next;if(n)for(l in h)h[l]>=a&&(h[l]+=r);return ne(this)},i.invalidate=function(r){var n=this._first;for(this._lock=0;n;)n.invalidate(r),n=n._next;return s.prototype.invalidate.call(this,r)},i.clear=function(r){r===void 0&&(r=!0);for(var n=this._first,a;n;)a=n._next,this.remove(n),n=a;return this._dp&&(this._time=this._tTime=this._pTime=0),r&&(this.labels={}),ne(this)},i.totalDuration=function(r){var n=0,a=this,o=a._last,h=gt,l,c,f;if(arguments.length)return a.timeScale((a._repeat<0?a.duration():a.totalDuration())/(a.reversed()?-r:r));if(a._dirty){for(f=a.parent;o;)l=o._prev,o._dirty&&o.totalDuration(),c=o._start,c>h&&a._sort&&o._ts&&!a._lock?(a._lock=1,St(a,o,c-o._delay,1)._lock=0):h=c,c<0&&o._ts&&(n-=c,(!f&&!a._dp||f&&f.smoothChildTiming)&&(a._start+=c/a._ts,a._time-=c,a._tTime-=c),a.shiftChildren(-c,!1,-1/0),h=0),o._end>n&&o._ts&&(n=o._end),o=l;we(a,a===W&&a._time>n?a._time:n,1,1),a._dirty=0}return a._tDur},t.updateRoot=function(r){if(W._ts&&(wn(W,li(r,W)),mn=dt.frame),dt.frame>=vn){vn+=ct.autoSleep||120;var n=W._first;if((!n||!n._ts)&&ct.autoSleep&&dt._listeners.length<2){for(;n&&!n._ts;)n=n._next;n||dt.sleep()}}},t}(Te);vt(ot.prototype,{_lock:0,_hasPause:0,_forcing:0});var nh=function(t,i,e,r,n,a,o){var h=new ht(this._pt,t,i,0,1,Jn,null,n),l=0,c=0,f,d,_,g,p,v,x,b;for(h.b=e,h.e=r,e+="",r+="",(x=~r.indexOf("random("))&&(r=Fe(r)),a&&(b=[e,r],a(b,t,i),e=b[0],r=b[1]),d=e.match(Li)||[];f=Li.exec(r);)g=f[0],p=r.substring(l,f.index),_?_=(_+1)%5:p.substr(-5)==="rgba("&&(_=1),g!==d[c++]&&(v=parseFloat(d[c-1])||0,h._pt={_next:h._pt,p:p||c===1?p:",",s:v,c:g.charAt(1)==="="?ve(v,g)-v:parseFloat(g)-v,m:_&&_<4?Math.round:0},l=Li.lastIndex);return h.c=l")}),E.duration();else{m={};for(w in g)w==="ease"||w==="easeEach"||hh(w,g[w],m,g.easeEach);for(w in m)for(B=m[w].sort(function(I,L){return I.t-L.t}),S=0,k=0;kh-z&&!c?h:rl&&(d=l)),x=this._yoyo&&g&1,x&&(E=this._yEase,d=l-d),v=ye(this._tTime,p),d===o&&!a&&this._initted)return this._tTime=f,this;g!==v&&(C&&this._yEase&&Xn(C,x),this.vars.repeatRefresh&&!x&&!this._lock&&(this._lock=a=1,this.render(J(p*g),!0).invalidate()._lock=0))}if(!this._initted){if(Mn(this,c?r:d,a,n,f))return this._tTime=0,this;if(o!==this._time)return this;if(l!==this._dur)return this.render(r,n,a)}if(this._tTime=f,this._time=d,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=b=(E||this._ease)(d/l),this._from&&(this.ratio=b=1-b),d&&!o&&!n&&!g&&(xt(this,"onStart"),this._tTime!==f))return this;for(_=this._pt;_;)_.r(b,_.d),_=_._next;C&&C.render(r<0?r:!d&&x?-z:C._dur*C._ease(d/this._dur),n,a)||this._startAt&&(this._zTime=r),this._onUpdate&&!n&&(c&&ji(this,r,n,a),xt(this,"onUpdate")),this._repeat&&g!==v&&this.vars.onRepeat&&!n&&this.parent&&xt(this,"onRepeat"),(f===this._tDur||!f)&&this._tTime===f&&(c&&!this._onUpdate&&ji(this,r,!0,!0),(r||!l)&&(f===this._tDur&&this._ts>0||!f&&this._ts<0)&&Yt(this,1),!n&&!(c&&!o)&&(f||o||x)&&(xt(this,f===h?"onComplete":"onReverseComplete",!0),this._prom&&!(f0)&&this._prom()))}return this},i.targets=function(){return this._targets},i.invalidate=function(r){return(!r||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(r),s.prototype.invalidate.call(this,r)},i.resetTo=function(r,n,a,o){He||dt.wake(),this._ts||this.play();var h=Math.min(this._dur,(this._dp._time-this._start)*this._ts),l;return this._initted||nr(this,h),l=this._ease(h/this._dur),sh(this,r,n,a,o,l,h)?this.resetTo(r,n,a,o):(fi(this,0),this.parent||Cn(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},i.kill=function(r,n){if(n===void 0&&(n="all"),!r&&(!n||n==="all"))return this._lazy=this._pt=0,this.parent?$e(this):this;if(this.timeline){var a=this.timeline.totalDuration();return this.timeline.killTweensOf(r,n,qt&&qt.vars.overwrite!==!0)._first||$e(this),this.parent&&a!==this.timeline.totalDuration()&&we(this,this._dur*this.timeline._tDur/a,0,1),this}var o=this._targets,h=r?wt(r):o,l=this._ptLookup,c=this._pt,f,d,_,g,p,v,x;if((!n||n==="all")&&Vo(o,h))return n==="all"&&(this._pt=0),$e(this);for(f=this._op=this._op||[],n!=="all"&&(K(n)&&(p={},st(n,function(b){return p[b]=1}),n=p),n=oh(o,n)),x=o.length;x--;)if(~h.indexOf(o[x])){d=l[x],n==="all"?(f[x]=n,g=d,_={}):(_=f[x]=f[x]||{},g=n);for(p in g)v=d&&d[p],v&&((!("kill"in v.d)||v.d.kill(p)===!0)&&hi(this,v,"_pt"),delete d[p]),_!=="all"&&(_[p]=1)}return this._initted&&!this._pt&&c&&$e(this),this},t.to=function(r,n){return new t(r,n,arguments[2])},t.from=function(r,n){return Ie(1,arguments)},t.delayedCall=function(r,n,a,o){return new t(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:r,onComplete:n,onReverseComplete:n,onCompleteParams:a,onReverseCompleteParams:a,callbackScope:o})},t.fromTo=function(r,n,a){return Ie(2,arguments)},t.set=function(r,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new t(r,n)},t.killTweensOf=function(r,n,a){return W.killTweensOf(r,n,a)},t}(Te);vt(G.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),st("staggerTo,staggerFrom,staggerFromTo",function(s){G[s]=function(){var t=new ot,i=Qi.call(arguments,0);return i.splice(s==="staggerFromTo"?5:4,0,0),t[s].apply(t,i)}});var ar=function(t,i,e){return t[i]=e},Zn=function(t,i,e){return t[i](e)},lh=function(t,i,e,r){return t[i](r.fp,e)},ch=function(t,i,e){return t.setAttribute(i,e)},sr=function(t,i){return Y(t[i])?Zn:zi(t[i])&&t.setAttribute?ch:ar},Kn=function(t,i){return i.set(i.t,i.p,Math.round((i.s+i.c*t)*1e6)/1e6,i)},fh=function(t,i){return i.set(i.t,i.p,!!(i.s+i.c*t),i)},Jn=function(t,i){var e=i._pt,r="";if(!t&&i.b)r=i.b;else if(t===1&&i.e)r=i.e;else{for(;e;)r=e.p+(e.m?e.m(e.s+e.c*t):Math.round((e.s+e.c*t)*1e4)/1e4)+r,e=e._next;r+=i.c}i.set(i.t,i.p,r,i)},or=function(t,i){for(var e=i._pt;e;)e.r(t,e.d),e=e._next},uh=function(t,i,e,r){for(var n=this._pt,a;n;)a=n._next,n.p===r&&n.modifier(t,i,e),n=a},dh=function(t){for(var i=this._pt,e,r;i;)r=i._next,i.p===t&&!i.op||i.op===t?hi(this,i,"_pt"):i.dep||(e=1),i=r;return!e},ph=function(t,i,e,r){r.mSet(t,i,r.m.call(r.tween,e,r.mt),r)},ta=function(t){for(var i=t._pt,e,r,n,a;i;){for(e=i._next,r=n;r&&r.pr>i.pr;)r=r._next;(i._prev=r?r._prev:a)?i._prev._next=i:n=i,(i._next=r)?r._prev=i:a=i,i=e}t._pt=n},ht=function(){function s(i,e,r,n,a,o,h,l,c){this.t=e,this.s=n,this.c=a,this.p=r,this.r=o||Kn,this.d=h||this,this.set=l||ar,this.pr=c||0,this._next=i,i&&(i._prev=this)}var t=s.prototype;return t.modifier=function(e,r,n){this.mSet=this.mSet||this.set,this.set=ph,this.m=e,this.mt=n,this.tween=r},s}();st(Ui+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(s){return Hi[s]=1}),ft.TweenMax=ft.TweenLite=G,ft.TimelineLite=ft.TimelineMax=ot,W=new ot({sortChildren:!1,defaults:ge,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),ct.stringFilter=Hn;var Ce=[],ui={},_h=[],ea=0,hr=function(t){return(ui[t]||_h).map(function(i){return i()})},lr=function(){var t=Date.now(),i=[];t-ea>2&&(hr("matchMediaInit"),Ce.forEach(function(e){var r=e.queries,n=e.conditions,a,o,h,l;for(o in r)a=mt.matchMedia(r[o]).matches,a&&(h=1),a!==n[o]&&(n[o]=a,l=1);l&&(e.revert(),h&&i.push(e))}),hr("matchMediaRevert"),i.forEach(function(e){return e.onMatch(e)}),ea=t,hr("matchMedia"))},ia=function(){function s(i,e){this.selector=e&&Zi(e),this.data=[],this._r=[],this.isReverted=!1,i&&this.add(i)}var t=s.prototype;return t.add=function(e,r,n){Y(e)&&(n=r,r=e,e=Y);var a=this,o=function(){var l=j,c=a.selector,f;return l&&l!==a&&l.data.push(a),n&&(a.selector=Zi(n)),j=a,f=r.apply(a,arguments),Y(f)&&a._r.push(f),j=l,a.selector=c,a.isReverted=!1,f};return a.last=o,e===Y?o(a):e?a[e]=o:o},t.ignore=function(e){var r=j;j=null,e(this),j=r},t.getTweens=function(){var e=[];return this.data.forEach(function(r){return r instanceof s?e.push.apply(e,r.getTweens()):r instanceof G&&!(r.parent&&r.parent.data==="nested")&&e.push(r)}),e},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(e,r){var n=this;if(e){var a=this.getTweens();this.data.forEach(function(h){h.data==="isFlip"&&(h.revert(),h.getChildren(!0,!0,!1).forEach(function(l){return a.splice(a.indexOf(l),1)}))}),a.map(function(h){return{g:h.globalTime(0),t:h}}).sort(function(h,l){return l.g-h.g||-1}).forEach(function(h){return h.t.revert(e)}),this.data.forEach(function(h){return!(h instanceof Te)&&h.revert&&h.revert(e)}),this._r.forEach(function(h){return h(e,n)}),this.isReverted=!0}else this.data.forEach(function(h){return h.kill&&h.kill()});if(this.clear(),r){var o=Ce.indexOf(this);~o&&Ce.splice(o,1)}},t.revert=function(e){this.kill(e||{})},s}(),gh=function(){function s(i){this.contexts=[],this.scope=i}var t=s.prototype;return t.add=function(e,r,n){Mt(e)||(e={matches:e});var a=new ia(0,n||this.scope),o=a.conditions={},h,l,c;this.contexts.push(a),r=a.add("onMatch",r),a.queries=e;for(l in e)l==="all"?c=1:(h=mt.matchMedia(e[l]),h&&(Ce.indexOf(a)<0&&Ce.push(a),(o[l]=h.matches)&&(c=1),h.addListener?h.addListener(lr):h.addEventListener("change",lr)));return c&&r(a),this},t.revert=function(e){this.kill(e||{})},t.kill=function(e){this.contexts.forEach(function(r){return r.kill(e,!0)})},s}(),di={registerPlugin:function(){for(var t=arguments.length,i=new Array(t),e=0;e1){var r=t.map(function(c){return lt.quickSetter(c,i,e)}),n=r.length;return function(c){for(var f=n;f--;)r[f](c)}}t=t[0]||{};var a=ut[i],o=ie(t),h=o.harness&&(o.harness.aliases||{})[i]||i,l=a?function(c){var f=new a;xe._pt=0,f.init(t,e?c+e:c,xe,0,[t]),f.render(1,f),xe._pt&&or(1,xe)}:o.set(t,h);return a?l:function(c){return l(t,h,e?c+e:c,o,1)}},quickTo:function(t,i,e){var r,n=lt.to(t,re((r={},r[i]="+=0.1",r.paused=!0,r),e||{})),a=function(h,l,c){return n.resetTo(i,h,l,c)};return a.tween=n,a},isTweening:function(t){return W.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=ae(t.ease,ge.ease)),Tn(ge,t||{})},config:function(t){return Tn(ct,t||{})},registerEffect:function(t){var i=t.name,e=t.effect,r=t.plugins,n=t.defaults,a=t.extendTimeline;(r||"").split(",").forEach(function(o){return o&&!ut[o]&&!ft[o]&&ri(i+" effect requires "+o+" plugin.")}),Xi[i]=function(o,h,l){return e(wt(o),vt(h||{},n),l)},a&&(ot.prototype[i]=function(o,h,l){return this.add(Xi[i](o,Mt(h)?h:(l=h)&&{},this),l)})},registerEase:function(t,i){R[t]=ae(i)},parseEase:function(t,i){return arguments.length?ae(t,i):R},getById:function(t){return W.getById(t)},exportRoot:function(t,i){t===void 0&&(t={});var e=new ot(t),r,n;for(e.smoothChildTiming=at(t.smoothChildTiming),W.remove(e),e._dp=0,e._time=e._tTime=W._time,r=W._first;r;)n=r._next,(i||!(!r._dur&&r instanceof G&&r.vars.onComplete===r._targets[0]))&&St(e,r,r._start-r._delay),r=n;return St(W,e,0),e},context:function(t,i){return t?new ia(t,i):j},matchMedia:function(t){return new gh(t)},matchMediaRefresh:function(){return Ce.forEach(function(t){var i=t.conditions,e,r;for(r in i)i[r]&&(i[r]=!1,e=1);e&&t.revert()})||lr()},addEventListener:function(t,i){var e=ui[t]||(ui[t]=[]);~e.indexOf(i)||e.push(i)},removeEventListener:function(t,i){var e=ui[t],r=e&&e.indexOf(i);r>=0&&e.splice(r,1)},utils:{wrap:Go,wrapYoyo:Qo,distribute:Rn,random:An,snap:Bn,normalize:jo,getUnit:it,clamp:Yo,splitColor:Fn,toArray:wt,selector:Zi,mapRange:zn,pipe:Uo,unitize:qo,interpolate:Zo,shuffle:Nn},install:_n,effects:Xi,ticker:dt,updateRoot:ot.updateRoot,plugins:ut,globalTimeline:W,core:{PropTween:ht,globals:gn,Tween:G,Timeline:ot,Animation:Te,getCache:ie,_removeLinkedListItem:hi,reverting:function(){return tt},context:function(t){return t&&j&&(j.data.push(t),t._ctx=j),j},suppressOverwrites:function(t){return Ai=t}}};st("to,from,fromTo,delayedCall,set,killTweensOf",function(s){return di[s]=G[s]}),dt.add(ot.updateRoot),xe=di.to({},{duration:0});var mh=function(t,i){for(var e=t._pt;e&&e.p!==i&&e.op!==i&&e.fp!==i;)e=e._next;return e},vh=function(t,i){var e=t._targets,r,n,a;for(r in i)for(n=e.length;n--;)a=t._ptLookup[n][r],a&&(a=a.d)&&(a._pt&&(a=mh(a,r)),a&&a.modifier&&a.modifier(i[r],t,e[n],r))},cr=function(t,i){return{name:t,rawVars:1,init:function(r,n,a){a._onInit=function(o){var h,l;if(K(n)&&(h={},st(n,function(c){return h[c]=1}),n=h),i){h={};for(l in n)h[l]=i(n[l]);n=h}vh(o,n)}}}},lt=di.registerPlugin({name:"attr",init:function(t,i,e,r,n){var a,o,h;this.tween=e;for(a in i)h=t.getAttribute(a)||"",o=this.add(t,"setAttribute",(h||0)+"",i[a],r,n,0,0,a),o.op=a,o.b=h,this._props.push(a)},render:function(t,i){for(var e=i._pt;e;)tt?e.set(e.t,e.p,e.b,e):e.r(t,e.d),e=e._next}},{name:"endArray",init:function(t,i){for(var e=i.length;e--;)this.add(t,e,t[e]||0,i[e],0,0,0,0,0,1)}},cr("roundProps",Ki),cr("modifiers"),cr("snap",Bn))||di;G.version=ot.version=lt.version="3.11.5",pn=1,Vi()&&be(),R.Power0,R.Power1,R.Power2,R.Power3,R.Power4,R.Linear,R.Quad,R.Cubic,R.Quart,R.Quint,R.Strong,R.Elastic,R.Back,R.SteppedEase,R.Bounce,R.Sine,R.Expo,R.Circ;/*! * CSSPlugin 3.11.5 * https://greensock.com * * Copyright 2008-2023, GreenSock. All rights reserved. * Subject to the terms at https://greensock.com/standard-license or for * Club GreenSock members, the agreement issued with that membership. * @author: Jack Doyle, jack@greensock.com */var ra,jt,ke,fr,oe,na,ur,yh=function(){return typeof window<"u"},zt={},he=180/Math.PI,Ee=Math.PI/180,De=Math.atan2,aa=1e8,dr=/([A-Z])/g,wh=/(left|right|width|margin|padding|x)/i,xh=/[\s,\(]\S/,Ot={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},pr=function(t,i){return i.set(i.t,i.p,Math.round((i.s+i.c*t)*1e4)/1e4+i.u,i)},bh=function(t,i){return i.set(i.t,i.p,t===1?i.e:Math.round((i.s+i.c*t)*1e4)/1e4+i.u,i)},Th=function(t,i){return i.set(i.t,i.p,t?Math.round((i.s+i.c*t)*1e4)/1e4+i.u:i.b,i)},Ch=function(t,i){var e=i.s+i.c*t;i.set(i.t,i.p,~~(e+(e<0?-.5:.5))+i.u,i)},sa=function(t,i){return i.set(i.t,i.p,t?i.e:i.b,i)},oa=function(t,i){return i.set(i.t,i.p,t!==1?i.b:i.e,i)},kh=function(t,i,e){return t.style[i]=e},Eh=function(t,i,e){return t.style.setProperty(i,e)},Dh=function(t,i,e){return t._gsap[i]=e},Mh=function(t,i,e){return t._gsap.scaleX=t._gsap.scaleY=e},Sh=function(t,i,e,r,n){var a=t._gsap;a.scaleX=a.scaleY=e,a.renderTransform(n,a)},Oh=function(t,i,e,r,n){var a=t._gsap;a[i]=e,a.renderTransform(n,a)},H="transform",Tt=H+"Origin",Nh=function s(t,i){var e=this,r=this.target,n=r.style;if(t in zt){if(this.tfm=this.tfm||{},t!=="transform")t=Ot[t]||t,~t.indexOf(",")?t.split(",").forEach(function(a){return e.tfm[a]=Vt(r,a)}):this.tfm[t]=r._gsap.x?r._gsap[t]:Vt(r,t);else return Ot.transform.split(",").forEach(function(a){return s.call(e,a,i)});if(this.props.indexOf(H)>=0)return;r._gsap.svg&&(this.svgo=r.getAttribute("data-svg-origin"),this.props.push(Tt,i,"")),t=H}(n||i)&&this.props.push(t,i,n[t])},ha=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},Rh=function(){var t=this.props,i=this.target,e=i.style,r=i._gsap,n,a;for(n=0;n=0?fa[a]:"")+t},gr=function(){yh()&&window.document&&(ra=window,jt=ra.document,ke=jt.documentElement,oe=_r("div")||{style:{}},_r("div"),H=Me(H),Tt=H+"Origin",oe.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",ca=!!Me("perspective"),ur=lt.core.reverting,fr=1)},mr=function s(t){var i=_r("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),e=this.parentNode,r=this.nextSibling,n=this.style.cssText,a;if(ke.appendChild(i),i.appendChild(this),this.style.display="block",t)try{a=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=s}catch{}else this._gsapBBox&&(a=this._gsapBBox());return e&&(r?e.insertBefore(this,r):e.appendChild(this)),ke.removeChild(i),this.style.cssText=n,a},ua=function(t,i){for(var e=i.length;e--;)if(t.hasAttribute(i[e]))return t.getAttribute(i[e])},da=function(t){var i;try{i=t.getBBox()}catch{i=mr.call(t,!0)}return i&&(i.width||i.height)||t.getBBox===mr||(i=mr.call(t,!0)),i&&!i.width&&!i.x&&!i.y?{x:+ua(t,["x","cx","x1"])||0,y:+ua(t,["y","cy","y1"])||0,width:0,height:0}:i},pa=function(t){return!!(t.getCTM&&(!t.parentNode||t.ownerSVGElement)&&da(t))},Xe=function(t,i){if(i){var e=t.style;i in zt&&i!==Tt&&(i=H),e.removeProperty?((i.substr(0,2)==="ms"||i.substr(0,6)==="webkit")&&(i="-"+i),e.removeProperty(i.replace(dr,"-$1").toLowerCase())):e.removeAttribute(i)}},Gt=function(t,i,e,r,n,a){var o=new ht(t._pt,i,e,0,1,a?oa:sa);return t._pt=o,o.b=r,o.e=n,t._props.push(e),o},_a={deg:1,rad:1,turn:1},Bh={grid:1,flex:1},Qt=function s(t,i,e,r){var n=parseFloat(e)||0,a=(e+"").trim().substr((n+"").length)||"px",o=oe.style,h=wh.test(i),l=t.tagName.toLowerCase()==="svg",c=(l?"client":"offset")+(h?"Width":"Height"),f=100,d=r==="px",_=r==="%",g,p,v,x;return r===a||!n||_a[r]||_a[a]?n:(a!=="px"&&!d&&(n=s(t,i,e,"px")),x=t.getCTM&&pa(t),(_||a==="%")&&(zt[i]||~i.indexOf("adius"))?(g=x?t.getBBox()[h?"width":"height"]:t[c],U(_?n/g*f:n/100*g)):(o[h?"width":"height"]=f+(d?a:r),p=~i.indexOf("adius")||r==="em"&&t.appendChild&&!l?t:t.parentNode,x&&(p=(t.ownerSVGElement||{}).parentNode),(!p||p===jt||!p.appendChild)&&(p=jt.body),v=p._gsap,v&&_&&v.width&&h&&v.time===dt.time&&!v.uncache?U(n/v.width*f):((_||a==="%")&&!Bh[Nt(p,"display")]&&(o.position=Nt(t,"position")),p===t&&(o.position="static"),p.appendChild(oe),g=oe[c],p.removeChild(oe),o.position="absolute",h&&_&&(v=ie(p),v.time=dt.time,v.width=p[c]),U(d?g*n/f:g&&n?f/g*n:0))))},Vt=function(t,i,e,r){var n;return fr||gr(),i in Ot&&i!=="transform"&&(i=Ot[i],~i.indexOf(",")&&(i=i.split(",")[0])),zt[i]&&i!=="transform"?(n=qe(t,r),n=i!=="transformOrigin"?n[i]:n.svg?n.origin:_i(Nt(t,Tt))+" "+n.zOrigin+"px"):(n=t.style[i],(!n||n==="auto"||r||~(n+"").indexOf("calc("))&&(n=pi[i]&&pi[i](t,i,e)||Nt(t,i)||yn(t,i)||(i==="opacity"?1:0))),e&&!~(n+"").trim().indexOf(" ")?Qt(t,i,n,e)+e:n},Ah=function(t,i,e,r){if(!e||e==="none"){var n=Me(i,t,1),a=n&&Nt(t,n,1);a&&a!==e?(i=n,e=a):i==="borderColor"&&(e=Nt(t,"borderTopColor"))}var o=new ht(this._pt,t.style,i,0,1,Jn),h=0,l=0,c,f,d,_,g,p,v,x,b,C,E,k;if(o.b=e,o.e=r,e+="",r+="",r==="auto"&&(t.style[i]=r,r=Nt(t,i)||r,t.style[i]=e),c=[e,r],Hn(c),e=c[0],r=c[1],d=e.match(me)||[],k=r.match(me)||[],k.length){for(;f=me.exec(r);)v=f[0],b=r.substring(h,f.index),g?g=(g+1)%5:(b.substr(-5)==="rgba("||b.substr(-5)==="hsla(")&&(g=1),v!==(p=d[l++]||"")&&(_=parseFloat(p)||0,E=p.substr((_+"").length),v.charAt(1)==="="&&(v=ve(_,v)+E),x=parseFloat(v),C=v.substr((x+"").length),h=me.lastIndex-C.length,C||(C=C||ct.units[i]||E,h===r.length&&(r+=C,o.e+=C)),E!==C&&(_=Qt(t,i,p,C)||0),o._pt={_next:o._pt,p:b||l===1?b:",",s:_,c:x-_,m:g&&g<4||i==="zIndex"?Math.round:0});o.c=h-1;)o=n[l],zt[o]&&(h=1,o=o==="transformOrigin"?Tt:H),Xe(e,o);h&&(Xe(e,H),a&&(a.svg&&e.removeAttribute("transform"),qe(e,1),a.uncache=1,ha(r)))}},pi={clearProps:function(t,i,e,r,n){if(n.data!=="isFromStart"){var a=t._pt=new ht(t._pt,i,e,0,0,zh);return a.u=r,a.pr=-10,a.tween=n,t._props.push(e),1}}},Ue=[1,0,0,1,0,0],ma={},va=function(t){return t==="matrix(1, 0, 0, 1, 0, 0)"||t==="none"||!t},ya=function(t){var i=Nt(t,H);return va(i)?Ue:i.substr(7).match(fn).map(U)},vr=function(t,i){var e=t._gsap||ie(t),r=t.style,n=ya(t),a,o,h,l;return e.svg&&t.getAttribute("transform")?(h=t.transform.baseVal.consolidate().matrix,n=[h.a,h.b,h.c,h.d,h.e,h.f],n.join(",")==="1,0,0,1,0,0"?Ue:n):(n===Ue&&!t.offsetParent&&t!==ke&&!e.svg&&(h=r.display,r.display="block",a=t.parentNode,(!a||!t.offsetParent)&&(l=1,o=t.nextElementSibling,ke.appendChild(t)),n=ya(t),h?r.display=h:Xe(t,"display"),l&&(o?a.insertBefore(t,o):a?a.appendChild(t):ke.removeChild(t))),i&&n.length>6?[n[0],n[1],n[4],n[5],n[12],n[13]]:n)},yr=function(t,i,e,r,n,a){var o=t._gsap,h=n||vr(t,!0),l=o.xOrigin||0,c=o.yOrigin||0,f=o.xOffset||0,d=o.yOffset||0,_=h[0],g=h[1],p=h[2],v=h[3],x=h[4],b=h[5],C=i.split(" "),E=parseFloat(C[0])||0,k=parseFloat(C[1])||0,m,y,w,T;e?h!==Ue&&(y=_*v-g*p)&&(w=E*(v/y)+k*(-p/y)+(p*b-v*x)/y,T=E*(-g/y)+k*(_/y)-(_*b-g*x)/y,E=w,k=T):(m=da(t),E=m.x+(~C[0].indexOf("%")?E/100*m.width:E),k=m.y+(~(C[1]||C[0]).indexOf("%")?k/100*m.height:k)),r||r!==!1&&o.smooth?(x=E-l,b=k-c,o.xOffset=f+(x*_+b*p)-x,o.yOffset=d+(x*g+b*v)-b):o.xOffset=o.yOffset=0,o.xOrigin=E,o.yOrigin=k,o.smooth=!!r,o.origin=i,o.originIsAbsolute=!!e,t.style[Tt]="0px 0px",a&&(Gt(a,o,"xOrigin",l,E),Gt(a,o,"yOrigin",c,k),Gt(a,o,"xOffset",f,o.xOffset),Gt(a,o,"yOffset",d,o.yOffset)),t.setAttribute("data-svg-origin",E+" "+k)},qe=function(t,i){var e=t._gsap||new qn(t);if("x"in e&&!i&&!e.uncache)return e;var r=t.style,n=e.scaleX<0,a="px",o="deg",h=getComputedStyle(t),l=Nt(t,Tt)||"0",c,f,d,_,g,p,v,x,b,C,E,k,m,y,w,T,D,M,S,B,A,O,I,L,Q,Ct,Rt,Zt,Bt,Ge,kt,It;return c=f=d=p=v=x=b=C=E=0,_=g=1,e.svg=!!(t.getCTM&&pa(t)),h.translate&&((h.translate!=="none"||h.scale!=="none"||h.rotate!=="none")&&(r[H]=(h.translate!=="none"?"translate3d("+(h.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(h.rotate!=="none"?"rotate("+h.rotate+") ":"")+(h.scale!=="none"?"scale("+h.scale.split(" ").join(",")+") ":"")+(h[H]!=="none"?h[H]:"")),r.scale=r.rotate=r.translate="none"),y=vr(t,e.svg),e.svg&&(e.uncache?(Q=t.getBBox(),l=e.xOrigin-Q.x+"px "+(e.yOrigin-Q.y)+"px",L=""):L=!i&&t.getAttribute("data-svg-origin"),yr(t,L||l,!!L||e.originIsAbsolute,e.smooth!==!1,y)),k=e.xOrigin||0,m=e.yOrigin||0,y!==Ue&&(M=y[0],S=y[1],B=y[2],A=y[3],c=O=y[4],f=I=y[5],y.length===6?(_=Math.sqrt(M*M+S*S),g=Math.sqrt(A*A+B*B),p=M||S?De(S,M)*he:0,b=B||A?De(B,A)*he+p:0,b&&(g*=Math.abs(Math.cos(b*Ee))),e.svg&&(c-=k-(k*M+m*B),f-=m-(k*S+m*A))):(It=y[6],Ge=y[7],Rt=y[8],Zt=y[9],Bt=y[10],kt=y[11],c=y[12],f=y[13],d=y[14],w=De(It,Bt),v=w*he,w&&(T=Math.cos(-w),D=Math.sin(-w),L=O*T+Rt*D,Q=I*T+Zt*D,Ct=It*T+Bt*D,Rt=O*-D+Rt*T,Zt=I*-D+Zt*T,Bt=It*-D+Bt*T,kt=Ge*-D+kt*T,O=L,I=Q,It=Ct),w=De(-B,Bt),x=w*he,w&&(T=Math.cos(-w),D=Math.sin(-w),L=M*T-Rt*D,Q=S*T-Zt*D,Ct=B*T-Bt*D,kt=A*D+kt*T,M=L,S=Q,B=Ct),w=De(S,M),p=w*he,w&&(T=Math.cos(w),D=Math.sin(w),L=M*T+S*D,Q=O*T+I*D,S=S*T-M*D,I=I*T-O*D,M=L,O=Q),v&&Math.abs(v)+Math.abs(p)>359.9&&(v=p=0,x=180-x),_=U(Math.sqrt(M*M+S*S+B*B)),g=U(Math.sqrt(I*I+It*It)),w=De(O,I),b=Math.abs(w)>2e-4?w*he:0,E=kt?1/(kt<0?-kt:kt):0),e.svg&&(L=t.getAttribute("transform"),e.forceCSS=t.setAttribute("transform","")||!va(Nt(t,H)),L&&t.setAttribute("transform",L))),Math.abs(b)>90&&Math.abs(b)<270&&(n?(_*=-1,b+=p<=0?180:-180,p+=p<=0?180:-180):(g*=-1,b+=b<=0?180:-180)),i=i||e.uncache,e.x=c-((e.xPercent=c&&(!i&&e.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-c)?-50:0)))?t.offsetWidth*e.xPercent/100:0)+a,e.y=f-((e.yPercent=f&&(!i&&e.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-f)?-50:0)))?t.offsetHeight*e.yPercent/100:0)+a,e.z=d+a,e.scaleX=U(_),e.scaleY=U(g),e.rotation=U(p)+o,e.rotationX=U(v)+o,e.rotationY=U(x)+o,e.skewX=b+o,e.skewY=C+o,e.transformPerspective=E+a,(e.zOrigin=parseFloat(l.split(" ")[2])||0)&&(r[Tt]=_i(l)),e.xOffset=e.yOffset=0,e.force3D=ct.force3D,e.renderTransform=e.svg?Ih:ca?wa:Vh,e.uncache=0,e},_i=function(t){return(t=t.split(" "))[0]+" "+t[1]},wr=function(t,i,e){var r=it(i);return U(parseFloat(i)+parseFloat(Qt(t,"x",e+"px",r)))+r},Vh=function(t,i){i.z="0px",i.rotationY=i.rotationX="0deg",i.force3D=0,wa(t,i)},le="0deg",je="0px",ce=") ",wa=function(t,i){var e=i||this,r=e.xPercent,n=e.yPercent,a=e.x,o=e.y,h=e.z,l=e.rotation,c=e.rotationY,f=e.rotationX,d=e.skewX,_=e.skewY,g=e.scaleX,p=e.scaleY,v=e.transformPerspective,x=e.force3D,b=e.target,C=e.zOrigin,E="",k=x==="auto"&&t&&t!==1||x===!0;if(C&&(f!==le||c!==le)){var m=parseFloat(c)*Ee,y=Math.sin(m),w=Math.cos(m),T;m=parseFloat(f)*Ee,T=Math.cos(m),a=wr(b,a,y*T*-C),o=wr(b,o,-Math.sin(m)*-C),h=wr(b,h,w*T*-C+C)}v!==je&&(E+="perspective("+v+ce),(r||n)&&(E+="translate("+r+"%, "+n+"%) "),(k||a!==je||o!==je||h!==je)&&(E+=h!==je||k?"translate3d("+a+", "+o+", "+h+") ":"translate("+a+", "+o+ce),l!==le&&(E+="rotate("+l+ce),c!==le&&(E+="rotateY("+c+ce),f!==le&&(E+="rotateX("+f+ce),(d!==le||_!==le)&&(E+="skew("+d+", "+_+ce),(g!==1||p!==1)&&(E+="scale("+g+", "+p+ce),b.style[H]=E||"translate(0, 0)"},Ih=function(t,i){var e=i||this,r=e.xPercent,n=e.yPercent,a=e.x,o=e.y,h=e.rotation,l=e.skewX,c=e.skewY,f=e.scaleX,d=e.scaleY,_=e.target,g=e.xOrigin,p=e.yOrigin,v=e.xOffset,x=e.yOffset,b=e.forceCSS,C=parseFloat(a),E=parseFloat(o),k,m,y,w,T;h=parseFloat(h),l=parseFloat(l),c=parseFloat(c),c&&(c=parseFloat(c),l+=c,h+=c),h||l?(h*=Ee,l*=Ee,k=Math.cos(h)*f,m=Math.sin(h)*f,y=Math.sin(h-l)*-d,w=Math.cos(h-l)*d,l&&(c*=Ee,T=Math.tan(l-c),T=Math.sqrt(1+T*T),y*=T,w*=T,c&&(T=Math.tan(c),T=Math.sqrt(1+T*T),k*=T,m*=T)),k=U(k),m=U(m),y=U(y),w=U(w)):(k=f,w=d,m=y=0),(C&&!~(a+"").indexOf("px")||E&&!~(o+"").indexOf("px"))&&(C=Qt(_,"x",a,"px"),E=Qt(_,"y",o,"px")),(g||p||v||x)&&(C=U(C+g-(g*k+p*y)+v),E=U(E+p-(g*m+p*w)+x)),(r||n)&&(T=_.getBBox(),C=U(C+r/100*T.width),E=U(E+n/100*T.height)),T="matrix("+k+","+m+","+y+","+w+","+C+","+E+")",_.setAttribute("transform",T),b&&(_.style[H]=T)},Lh=function(t,i,e,r,n){var a=360,o=K(n),h=parseFloat(n)*(o&&~n.indexOf("rad")?he:1),l=h-r,c=r+l+"deg",f,d;return o&&(f=n.split("_")[1],f==="short"&&(l%=a,l!==l%(a/2)&&(l+=l<0?a:-a)),f==="cw"&&l<0?l=(l+a*aa)%a-~~(l/a)*a:f==="ccw"&&l>0&&(l=(l-a*aa)%a-~~(l/a)*a)),t._pt=d=new ht(t._pt,i,e,r,l,bh),d.e=c,d.u="deg",t._props.push(e),d},xa=function(t,i){for(var e in i)t[e]=i[e];return t},Fh=function(t,i,e){var r=xa({},e._gsap),n="perspective,force3D,transformOrigin,svgOrigin",a=e.style,o,h,l,c,f,d,_,g;r.svg?(l=e.getAttribute("transform"),e.setAttribute("transform",""),a[H]=i,o=qe(e,1),Xe(e,H),e.setAttribute("transform",l)):(l=getComputedStyle(e)[H],a[H]=i,o=qe(e,1),a[H]=l);for(h in zt)l=r[h],c=o[h],l!==c&&n.indexOf(h)<0&&(_=it(l),g=it(c),f=_!==g?Qt(e,h,l,g):parseFloat(l),d=parseFloat(c),t._pt=new ht(t._pt,o,h,f,d-f,pr),t._pt.u=g||0,t._props.push(h));xa(o,r)};st("padding,margin,Width,Radius",function(s,t){var i="Top",e="Right",r="Bottom",n="Left",a=(t<3?[i,e,r,n]:[i+n,i+e,r+e,r+n]).map(function(o){return t<2?s+o:"border"+o+s});pi[t>1?"border"+s:s]=function(o,h,l,c,f){var d,_;if(arguments.length<4)return d=a.map(function(g){return Vt(o,g,l)}),_=d.join(" "),_.split(d[0]).length===5?d[0]:_;d=(c+"").split(" "),_={},a.forEach(function(g,p){return _[g]=d[p]=d[p]||d[(p-1)/2|0]}),o.init(h,_,f)}});var ba={name:"css",register:gr,targetTest:function(t){return t.style&&t.nodeType},init:function(t,i,e,r,n){var a=this._props,o=t.style,h=e.vars.startAt,l,c,f,d,_,g,p,v,x,b,C,E,k,m,y,w;fr||gr(),this.styles=this.styles||la(t),w=this.styles.props,this.tween=e;for(p in i)if(p!=="autoRound"&&(c=i[p],!(ut[p]&&jn(p,i,e,r,t,n)))){if(_=typeof c,g=pi[p],_==="function"&&(c=c.call(e,r,t,n),_=typeof c),_==="string"&&~c.indexOf("random(")&&(c=Fe(c)),g)g(this,t,p,c,e)&&(y=1);else if(p.substr(0,2)==="--")l=(getComputedStyle(t).getPropertyValue(p)+"").trim(),c+="",Ut.lastIndex=0,Ut.test(l)||(v=it(l),x=it(c)),x?v!==x&&(l=Qt(t,p,l,x)+x):v&&(c+=v),this.add(o,"setProperty",l,c,r,n,0,0,p),a.push(p),w.push(p,0,o[p]);else if(_!=="undefined"){if(h&&p in h?(l=typeof h[p]=="function"?h[p].call(e,r,t,n):h[p],K(l)&&~l.indexOf("random(")&&(l=Fe(l)),it(l+"")||(l+=ct.units[p]||it(Vt(t,p))||""),(l+"").charAt(1)==="="&&(l=Vt(t,p))):l=Vt(t,p),d=parseFloat(l),b=_==="string"&&c.charAt(1)==="="&&c.substr(0,2),b&&(c=c.substr(2)),f=parseFloat(c),p in Ot&&(p==="autoAlpha"&&(d===1&&Vt(t,"visibility")==="hidden"&&f&&(d=0),w.push("visibility",0,o.visibility),Gt(this,o,"visibility",d?"inherit":"hidden",f?"inherit":"hidden",!f)),p!=="scale"&&p!=="transform"&&(p=Ot[p],~p.indexOf(",")&&(p=p.split(",")[0]))),C=p in zt,C){if(this.styles.save(p),E||(k=t._gsap,k.renderTransform&&!i.parseTransform||qe(t,i.parseTransform),m=i.smoothOrigin!==!1&&k.smooth,E=this._pt=new ht(this._pt,o,H,0,1,k.renderTransform,k,0,-1),E.dep=1),p==="scale")this._pt=new ht(this._pt,k,"scaleY",k.scaleY,(b?ve(k.scaleY,b+f):f)-k.scaleY||0,pr),this._pt.u=0,a.push("scaleY",p),p+="X";else if(p==="transformOrigin"){w.push(Tt,0,o[Tt]),c=Ph(c),k.svg?yr(t,c,0,m,0,this):(x=parseFloat(c.split(" ")[2])||0,x!==k.zOrigin&&Gt(this,k,"zOrigin",k.zOrigin,x),Gt(this,o,p,_i(l),_i(c)));continue}else if(p==="svgOrigin"){yr(t,c,1,m,0,this);continue}else if(p in ma){Lh(this,k,p,d,b?ve(d,b+c):c);continue}else if(p==="smoothOrigin"){Gt(this,k,"smooth",k.smooth,c);continue}else if(p==="force3D"){k[p]=c;continue}else if(p==="transform"){Fh(this,c,t);continue}}else p in o||(p=Me(p)||p);if(C||(f||f===0)&&(d||d===0)&&!xh.test(c)&&p in o)v=(l+"").substr((d+"").length),f||(f=0),x=it(c)||(p in ct.units?ct.units[p]:v),v!==x&&(d=Qt(t,p,l,x)),this._pt=new ht(this._pt,C?k:o,p,d,(b?ve(d,b+f):f)-d,!C&&(x==="px"||p==="zIndex")&&i.autoRound!==!1?Ch:pr),this._pt.u=x||0,v!==x&&x!=="%"&&(this._pt.b=l,this._pt.r=Th);else if(p in o)Ah.call(this,t,p,l,b?b+c:c);else if(p in t)this.add(t,p,l||t[p],b?b+c:c,r,n);else if(p!=="parseTransform"){Wi(p,c);continue}C||(p in o?w.push(p,0,o[p]):w.push(p,1,l||t[p])),a.push(p)}}y&&ta(this)},render:function(t,i){if(i.tween._time||!ur())for(var e=i._pt;e;)e.r(t,e.d),e=e._next;else i.styles.revert()},get:Vt,aliases:Ot,getSetter:function(t,i,e){var r=Ot[i];return r&&r.indexOf(",")<0&&(i=r),i in zt&&i!==Tt&&(t._gsap.x||Vt(t,"x"))?e&&na===e?i==="scale"?Mh:Dh:(na=e||{})&&(i==="scale"?Sh:Oh):t.style&&!zi(t.style[i])?kh:~i.indexOf("-")?Eh:sr(t,i)},core:{_removeProperty:Xe,_getMatrix:vr}};lt.utils.checkPrefix=Me,lt.core.getStyleSaver=la,function(s,t,i,e){var r=st(s+","+t+","+i,function(n){zt[n]=1});st(t,function(n){ct.units[n]="deg",ma[n]=1}),Ot[r[13]]=s+","+t,st(e,function(n){var a=n.split(":");Ot[a[1]]=r[a[0]]})}("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY"),st("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(s){ct.units[s]="px"}),lt.registerPlugin(ba);var Ta=lt.registerPlugin(ba)||lt;Ta.core.Tween;const $h=u.defineComponent({name:"CountTo",props:{startVal:{type:Number,default:0},endVal:{type:Number,default:100},duration:{type:Number,default:1e3},decimals:{type:Number,default:2},separator:{type:String,default:","},prefix:{type:String,default:""},suffix:{type:String,default:""}},setup(s){const t=u.reactive({number:s.startVal});let i;const e=()=>{s.startVal!==s.endVal&&(t.number=s.startVal,i=Ta.to(t,{duration:s.duration/1e3,number:s.endVal}))};u.watch(()=>s.endVal,()=>{i==null||i.kill(),e()}),u.onMounted(()=>{console.log("start()"),e()});const r=a=>{const o=a.toFixed(s.decimals<0?0:s.decimals);if(a<1e3)return s.prefix+o+s.suffix;const[h,l=""]=o.split("."),c=h.length,f=h.split(""),d=Math.floor(c/3),_=c%3,g=[];g.push(...f.splice(0,_));for(let v=0;vt.number,a=>{n.value=r(a)}),{count:t,start:e,numberFormat:n}}}),Wh=(s,t)=>{const i=s.__vccOpts||s;for(const[e,r]of t)i[e]=r;return i};function Hh(s,t,i,e,r,n){return u.openBlock(),u.createElementBlock("span",null,u.toDisplayString(s.numberFormat),1)}const Yh=Wh($h,[["render",Hh]]),Ca=pt.withInstall(Yh);class Xh{constructor(t,i){Kt(this,"runTexts",[""]);Kt(this,"colorTextLength",5);Kt(this,"colors",["rgb(110,64,170)","rgb(150,61,179)","rgb(191,60,175)","rgb(228,65,157)","rgb(254,75,131)","rgb(255,94,99)","rgb(255,120,71)","rgb(251,150,51)","rgb(226,183,47)","rgb(198,214,60)","rgb(175,240,91)","rgb(127,246,88)","rgb(82,246,103)","rgb(48,239,130)","rgb(29,223,163)","rgb(26,199,194)","rgb(35,171,216)","rgb(54,140,225)","rgb(76,110,219)","rgb(96,84,200)"]);Kt(this,"config");Kt(this,"destroyed",!1);Kt(this,"continue",!1);Kt(this,"infinite0",!0);this.props=t,this.target=i,this.props=t,this.config={text:"",prefix:-(t.prefixString.length+this.colorTextLength),skillI:0,skillP:0,step:t.textWaitStep,direction:"forward",delay:t.paragraphWaitStep}}ngOnInit(){this.runTexts=[...this.props.texts],this.continue=this.props.defaultRun,this.infinite0=this.props.infinite,this.infinite0||this.runTexts.length>1&&console.warn("在设置infinite=false的情况下,仅第一个字符串生效,后续字符串不再显示。")}ngAfterViewInit(){this.init()}ngOnDestroy(){this.destroyed=!0}init(){let t=this.target;t&&this.loop(t)}loop(t){setTimeout(()=>{if(this.continue){if(this.destroyed)return;let i=this.config.skillI;if(this.props.texts.toString()!=this.runTexts.toString()){let e=this.runTexts[i],r=this.props.texts[i];r==null&&(r=this.props.texts[this.props.texts.length-1],this.config.skillI=this.props.texts.length-1),this.render(t,e,r),this.runTexts=[...this.props.texts]}else{let e=this.runTexts[i];this.render(t,e)}}this.infinite0?this.loop(t):this.config.skillPe;e++){let r=document.createElement("span");r.textContent=this.getNextChar(),r.style.color=this.getNextColor(),i.appendChild(r)}return i}render(t,i,e){if(this.config.step)this.config.step--;else if(this.config.step=this.props.textWaitStep,this.config.prefix=0&&(this.config.text+=this.props.prefixString[this.config.prefix]),this.config.prefix++;else switch(this.config.direction){case"forward":this.config.skillP0?(this.config.text=this.config.text.slice(0,-1),this.config.skillP--):(this.config.skillI=(this.config.skillI+1)%this.runTexts.length,this.config.direction="forward");break}e!=null&&(this.config.text=e.substring(0,this.config.skillP),this.config.skillP>e.length&&(this.config.skillP=e.length)),t.textContent=this.config.text;let r;this.config.prefix["Big0range"]},defaultRun:{type:Boolean,default:!0},infinite:{type:Boolean,default:!0},frameTime:{default:75},textWaitStep:{default:1},paragraphWaitStep:{default:2}},setup(s){const t=s,i=u.ref();let e;return u.onMounted(()=>{e=new Xh(t,i.value),e.ngOnInit(),e.ngAfterViewInit()}),u.onBeforeUnmount(()=>{e.ngOnDestroy()}),(r,n)=>(u.openBlock(),u.createElementBlock("div",{ref_key:"container",ref:i},null,512))}}),ka=pt.withInstall(Uh),nl="",qh=["onClick"],jh=["title","src","alt"],Gh=u.defineComponent({__name:"rotateMenu",props:{imgWidth:{default:20},imgHeight:{default:20},items:{default:()=>new Array(6).fill({url:"https://baijiahao.baidu.com/bjh/picproxy?param=DWnUSb9ggzjcg1O9dn%2BveurOMfokx%2BNdv%2BFpiKFJ2f%2F2y0QyEKZUroZnhy%2B4FFukFmVXHwch2mdBxd9%2F9zCHjTnaqLiT%2Bm59tzg9SMwLLUzloFXJW4PwukoDW7IU8RlJ",alt:""})}},emits:["change"],setup(s,{emit:t}){const i=u.ref(!1),e=u.ref(!1),r=n=>{e.value||(e.value=!0,i.value=!1,t("change",n),setTimeout(()=>{e.value=!1},1e3))};return(n,a)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(["bi-menu",{active:i.value}]),style:u.normalizeStyle({"--sum":s.items.length})},[u.createElementVNode("div",{class:"toggle",onClick:a[0]||(a[0]=o=>i.value=!i.value)},"+"),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(s.items,(o,h)=>(u.openBlock(),u.createElementBlock("li",{style:u.normalizeStyle({"--i":h})},[u.createElementVNode("a",{onClick:l=>r(h)},[u.createElementVNode("img",{style:u.normalizeStyle({width:`${s.imgWidth}px`,height:`${s.imgHeight}px`}),title:o.alt,src:o.url,alt:o.alt,srcset:""},null,12,jh)],8,qh)],4))),256))],6))}}),Ea=pt.withInstall(Gh),Qh=[xr,sn,Ca,on,ka,Ea];X.BiColorAnimateText=ka,X.BiCountTo=Ca,X.BiCrop=on,X.BiRotateMenu=Ea,X.Button=xr,X.Demo=sn,X.default=Qh,Object.defineProperties(X,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});