1import{p as q,j as l,r as R,J as F,c as D,w as V,n as a9,o as O9,Z as N9,a6 as Z,T as A9,a7 as j9,a8 as I9}from"./main-fb4490b3.js";function k(e,r){r===void 0&&(r={});var i=r.insertAt;if(e&&typeof document!="undefined"){var n=document.head||document.getElementsByTagName("head")[0],v=document.createElement("style");v.type="text/css",i==="top"&&n.firstChild?n.insertBefore(v,n.firstChild):n.appendChild(v),v.styleSheet?v.styleSheet.cssText=e:v.appendChild(document.createTextNode(e))}}k(".vel-fade-enter-active,.vel-fade-leave-active{-webkit-transition:all .3s ease;transition:all .3s ease}.vel-fade-enter-from,.vel-fade-leave-to{opacity:0}.vel-img-swiper{display:block;position:relative}.vel-modal{background:rgba(0,0,0,.5);bottom:0;left:0;margin:0;position:fixed;right:0;top:0;z-index:9998}.vel-img-wrapper{left:50%;margin:0;position:absolute;top:50%;-webkit-transform:translate(-50% -50%);transform:translate(-50% -50%);-webkit-transition:.3s linear;transition:.3s linear;will-change:transform opacity}.vel-img,.vel-img-wrapper{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.vel-img{background-color:rgba(0,0,0,.7);-webkit-box-shadow:0 5px 20px 2px rgba(0,0,0,.7);box-shadow:0 5px 20px 2px rgba(0,0,0,.7);display:block;max-height:80vh;max-width:80vw;position:relative;-webkit-transition:-webkit-transform .3s ease-in-out;transition:-webkit-transform .3s ease-in-out;transition:transform .3s ease-in-out;transition:transform .3s ease-in-out,-webkit-transform .3s ease-in-out}@media (max-width:750px){.vel-img{max-height:95vh;max-width:85vw}}.vel-btns-wrapper .btn__close,.vel-btns-wrapper .btn__next,.vel-btns-wrapper .btn__prev{-webkit-tap-highlight-color:transparent;color:#fff;cursor:pointer;font-size:32px;opacity:.6;outline:none;position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);-webkit-transition:.15s linear;transition:.15s linear;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.vel-btns-wrapper .btn__close:hover,.vel-btns-wrapper .btn__next:hover,.vel-btns-wrapper .btn__prev:hover{opacity:1}.vel-btns-wrapper .btn__close.disable,.vel-btns-wrapper .btn__close.disable:hover,.vel-btns-wrapper .btn__next.disable,.vel-btns-wrapper .btn__next.disable:hover,.vel-btns-wrapper .btn__prev.disable,.vel-btns-wrapper .btn__prev.disable:hover{cursor:default;opacity:.2}.vel-btns-wrapper .btn__next{right:12px}.vel-btns-wrapper .btn__prev{left:12px}.vel-btns-wrapper .btn__close{right:10px;top:24px}@media (max-width:750px){.vel-btns-wrapper .btn__next,.vel-btns-wrapper .btn__prev{font-size:20px}.vel-btns-wrapper .btn__close{font-size:24px}.vel-btns-wrapper .btn__next{right:4px}.vel-btns-wrapper .btn__prev{left:4px}}.vel-modal.is-rtl .vel-btns-wrapper .btn__next{left:12px;right:auto}.vel-modal.is-rtl .vel-btns-wrapper .btn__prev{left:auto;right:12px}@media (max-width:750px){.vel-modal.is-rtl .vel-btns-wrapper .btn__next{left:4px;right:auto}.vel-modal.is-rtl .vel-btns-wrapper .btn__prev{left:auto;right:4px}}.vel-modal.is-rtl .vel-img-title{direction:rtl}");k('.vel-loading{left:50%;position:absolute;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.vel-loading .ring{display:inline-block;height:64px;width:64px}.vel-loading .ring:after{-webkit-animation:ring 1.2s linear infinite;animation:ring 1.2s linear infinite;border-color:hsla(0,0%,100%,.7) transparent;border-radius:50%;border-style:solid;border-width:5px;content:" ";display:block;height:46px;margin:1px;width:46px}@-webkit-keyframes ring{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes ring{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}');k(".vel-on-error{left:50%;position:absolute;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.vel-on-error .icon{color:#aaa;font-size:80px}");k(".vel-img-title{bottom:60px;color:#ccc;cursor:default;font-size:12px;left:50%;line-height:1;max-width:80%;opacity:.8;overflow:hidden;position:absolute;text-align:center;text-overflow:ellipsis;-webkit-transform:translate(-50%);transform:translate(-50%);-webkit-transition:opacity .15s;transition:opacity .15s;white-space:nowrap}.vel-img-title:hover{opacity:1}");k(".vel-icon{fill:currentColor;height:1em;overflow:hidden;vertical-align:-.15em;width:1em}");k(".vel-toolbar{border-radius:4px;bottom:8px;display:-webkit-box;display:-ms-flexbox;display:flex;left:50%;opacity:.9;overflow:hidden;padding:0;position:absolute;-webkit-transform:translate(-50%);transform:translate(-50%)}.vel-toolbar,.vel-toolbar .toolbar-btn{background-color:#2d2d2d;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.vel-toolbar .toolbar-btn{-ms-flex-negative:0;-webkit-tap-highlight-color:transparent;color:#fff;cursor:pointer;flex-shrink:0;font-size:20px;outline:none;padding:6px 10px}.vel-toolbar .toolbar-btn:active,.vel-toolbar .toolbar-btn:hover{background-color:#3d3d3d}"),function(){if(typeof window!="undefined"){var e=window,r='<svg><symbol id="icon-rotate-right" viewBox="0 0 1024 1024"><path d="M275.199914 450.496179v20.031994c0.384-38.079988 12.543996-67.423979 36.479989-87.967973 22.431993-20.351994 49.215985-30.55999 80.319975-30.55999 32.06399 0 59.295981 10.175997 81.759974 30.55999 22.815993 20.543994 34.591989 49.887984 35.359989 87.967973v123.935961c-0.768 37.887988-12.543996 67.135979-35.359989 87.679973-22.431993 20.351994-49.695984 30.75199-81.759974 31.10399a120.255962 120.255962 0 0 1-72.991978-24.895992c-21.503993-15.839995-35.359989-38.751988-41.567987-68.735979h60.831981c9.247997 23.007993 27.167992 34.495989 53.759983 34.49599 37.535988-0.384 56.863982-21.407993 57.983982-63.071981v-38.751988c-28.095991 8.863997-54.303983 13.119996-78.623975 12.735996a91.263971 91.263971 0 0 1-68.447979-27.711991c-18.847994-18.303994-28.095991-47.231985-27.711991-86.847973z m62.55998 24.863992c7.103998 24.799992 25.215992 37.343988 54.271983 37.663989 27.103992-0.288 44.703986-11.327996 52.831984-33.11999 3.135999-8.383997 2.655999-29.599991-1.28-38.559988-8.607997-19.615994-25.791992-29.695991-51.551984-30.20799-28.383991 0.576-46.303986 12.639996-53.759983 36.159988a58.719982 58.719982 0 0 0-0.512 28.063991z m390.335878 115.711964v-116.895963c-1.12-41.311987-20.447994-62.335981-57.983981-63.07198-37.727988 0.768-56.959982 21.791993-57.695982 63.07198v116.895963c0.768 41.663987 19.999994 62.68798 57.695982 63.071981 37.535988-0.384 56.863982-21.407993 57.983981-63.071981z m-174.815945 3.391999v-123.935961c0.384-38.079988 12.543996-67.423979 36.479989-87.967973 22.431993-20.351994 49.215985-30.55999 80.319975-30.55999 32.06399 0 59.295981 10.175997 81.759974 30.55999 22.815993 20.543994 34.591989 49.887984 35.359989 87.967973v123.935961c-0.768 37.887988-12.543996 67.135979-35.359989 87.679973-22.431993 20.351994-49.695984 30.75199-81.759974 31.10399-31.10399-0.384-57.887982-10.751997-80.319975-31.10399-23.935993-20.543994-36.127989-49.791984-36.479989-87.679973z m282.559912-479.07185A509.887841 509.887841 0 0 0 511.99984 0.00032C229.215928 0.00032 0 229.216248 0 512.00016s229.215928 511.99984 511.99984 511.99984 511.99984-229.215928 511.99984-511.99984c0-3.743999-0.032-7.455998-0.128-11.167997-1.631999-11.295996-8.159997-27.103992-31.87199-27.103991-27.487991 0-31.67999 21.247993-32.03199 32.06399l0.032 4.127999a30.62399 30.62399 0 0 0 0.16 2.079999H959.9997c0 247.423923-200.575937 447.99986-447.99986 447.99986S63.99998 759.424083 63.99998 512.00016 264.575917 64.0003 511.99984 64.0003a446.079861 446.079861 0 0 1 277.439913 96.22397l-94.91197 91.679971c-25.439992 24.607992-17.439995 44.991986 17.887994 45.599986l188.031942 3.295999a64.31998 64.31998 0 0 0 65.055979-62.84798l3.295999-188.127942C969.407697 15.040315 949.311703 5.792318 923.871711 30.368311l-87.999972 85.023973z" fill="" ></path></symbol><symbol id="icon-rotate-left" viewBox="0 0 1024 1024"><path d="M275.199914 450.496179v20.031994c0.384-38.079988 12.543996-67.423979 36.479989-87.967973 22.431993-20.351994 49.215985-30.55999 80.319975-30.55999 32.06399 0 59.295981 10.175997 81.759974 30.55999 22.815993 20.543994 34.591989 49.887984 35.359989 87.967973v123.935961c-0.768 37.887988-12.543996 67.135979-35.359989 87.679973-22.431993 20.351994-49.695984 30.75199-81.759974 31.10399a120.255962 120.255962 0 0 1-72.991978-24.895992c-21.503993-15.839995-35.359989-38.751988-41.567987-68.735979h60.831981c9.247997 23.007993 27.167992 34.495989 53.759983 34.49599 37.535988-0.384 56.863982-21.407993 57.983982-63.071981v-38.751988c-28.095991 8.863997-54.303983 13.119996-78.623975 12.735996a91.263971 91.263971 0 0 1-68.447979-27.711991c-18.847994-18.303994-28.095991-47.231985-27.711991-86.847973z m62.55998 24.863992c7.103998 24.799992 25.215992 37.343988 54.271983 37.663989 27.103992-0.288 44.703986-11.327996 52.831984-33.11999 3.135999-8.383997 2.655999-29.599991-1.28-38.559988-8.607997-19.615994-25.791992-29.695991-51.551984-30.20799-28.383991 0.576-46.303986 12.639996-53.759983 36.159988a58.719982 58.719982 0 0 0-0.512 28.063991z m390.335878 115.711964v-116.895963c-1.12-41.311987-20.447994-62.335981-57.983981-63.07198-37.727988 0.768-56.959982 21.791993-57.695982 63.07198v116.895963c0.768 41.663987 19.999994 62.68798 57.695982 63.071981 37.535988-0.384 56.863982-21.407993 57.983981-63.071981z m-174.815945 3.391999v-123.935961c0.384-38.079988 12.543996-67.423979 36.479989-87.967973 22.431993-20.351994 49.215985-30.55999 80.319975-30.55999 32.06399 0 59.295981 10.175997 81.759974 30.55999 22.815993 20.543994 34.591989 49.887984 35.359989 87.967973v123.935961c-0.768 37.887988-12.543996 67.135979-35.359989 87.679973-22.431993 20.351994-49.695984 30.75199-81.759974 31.10399-31.10399-0.384-57.887982-10.751997-80.319975-31.10399-23.935993-20.543994-36.127989-49.791984-36.479989-87.679973zM188.159941 115.392284A509.887841 509.887841 0 0 1 511.99984 0.00032c282.783912 0 511.99984 229.215928 511.99984 511.99984s-229.215928 511.99984-511.99984 511.99984S0 794.784072 0 512.00016c0-3.743999 0.032-7.455998 0.128-11.167997 1.631999-11.295996 8.159997-27.103992 31.87199-27.103991 27.487991 0 31.67999 21.247993 32.03199 32.06399L63.99998 509.920161a30.62399 30.62399 0 0 1-0.16 2.079999H63.99998c0 247.423923 200.575937 447.99986 447.99986 447.99986s447.99986-200.5
175937 447.99986-447.99986S759.423763 64.0003 511.99984 64.0003a446.079861 446.079861 0 0 0-277.439913 96.22397l94.91197 91.679971c25.439992 24.607992 17.439995 44.991986-17.887994 45.599986L123.551961 300.800226a64.31998 64.31998 0 0 1-65.055979-62.84798l-3.295999-188.127942C54.591983 15.040315 74.687977 5.792318 100.127969 30.368311l87.999972 85.023973z" fill="" ></path></symbol><symbol id="icon-resize" viewBox="0 0 1024 1024"><path d="M456.036919 791.8108 270.553461 791.8108 460.818829 601.572038l-39.593763-39.567157L231.314785 751.915162l0.873903-183.953615c0-15.465227-12.515035-27.981285-27.981285-27.981285s-27.981285 12.515035-27.981285 27.981285l0 251.829516c0 8.3072 3.415796 14.975063 8.826016 19.564591 5.082762 5.192256 12.132318 8.416693 19.947308 8.416693l251.036453 0c15.46625 0 27.981285-12.514012 27.981285-27.981285C484.018204 804.325835 471.504192 791.8108 456.036919 791.8108zM838.945819 184.644347c-5.082762-5.191232-12.132318-8.416693-19.947308-8.416693L567.961034 176.227654c-15.46625 0-27.981285 12.515035-27.981285 27.981285 0 15.46625 12.514012 27.981285 27.981285 27.981285l185.483458 0L563.206754 422.427962l39.567157 39.567157 189.910281-189.910281-0.873903 183.953615c0 15.46625 12.514012 27.981285 27.981285 27.981285s27.981285-12.514012 27.981285-27.981285L847.772858 204.208938C847.771835 195.902762 844.356039 189.234899 838.945819 184.644347zM847.771835 64.303538 176.227142 64.303538c-61.809741 0-111.924115 50.115398-111.924115 111.924115l0 671.544693c0 61.809741 50.114374 111.924115 111.924115 111.924115l671.544693 0c61.809741 0 111.924115-50.114374 111.924115-111.924115l0-671.544693C959.69595 114.418936 909.581576 64.303538 847.771835 64.303538zM903.733381 847.772346c0 30.878265-25.056676 55.962569-55.962569 55.962569L176.227142 903.734916c-30.90487 0-55.962569-25.084305-55.962569-55.962569l0-671.544693c0-30.9325 25.056676-55.962569 55.962569-55.962569l671.544693 0c30.90487 0 55.962569 25.03007 55.962569 55.962569L903.734404 847.772346z" ></path></symbol><symbol id="icon-img-broken" viewBox="0 0 1024 1024"><path d="M810.666667 128H213.333333c-46.933333 0-85.333333 38.4-85.333333 85.333333v597.333334c0 46.933333 38.4 85.333333 85.333333 85.333333h597.333334c46.933333 0 85.333333-38.4 85.333333-85.333333V213.333333c0-46.933333-38.4-85.333333-85.333333-85.333333z m0 682.666667H213.333333v-195.413334l42.24 42.24 170.666667-170.666666 170.666667 170.666666 170.666666-170.24L810.666667 530.346667V810.666667z m0-401.493334l-43.093334-43.093333-170.666666 171.093333-170.666667-170.666666-170.666667 170.666666-42.24-42.666666V213.333333h597.333334v195.84z" ></path></symbol><symbol id="icon-prev" viewBox="0 0 1024 1024"><path d="M784.652701 955.6957 346.601985 517.644983c-2.822492-2.822492-2.822492-7.902977 0-11.289967l439.179713-439.179713c6.77398-6.77398 10.725469-16.370452 10.725469-25.966924L796.507166 36.692393c0-20.32194-16.370452-36.692393-36.692393-36.692393l-4.515987 0c-9.596472 0-19.192944 3.951488-25.966924 10.725469L250.072767 489.420066c-12.418964 12.418964-12.418964 32.740904 0 45.159868l477.565601 477.565601c7.338479 7.338479 17.499449 11.854465 28.224917 11.854465l0 0c22.015436 0 40.079383-18.063947 40.079383-40.079383l0 0C796.507166 973.759647 791.99118 963.598677 784.652701 955.6957z" ></path></symbol><symbol id="icon-next" viewBox="0 0 1024 1024"><path d="M246.121279 955.6957l438.050717-438.050717c2.822492-2.822492 2.822492-7.902977 0-11.289967L244.992282 67.175303c-6.77398-6.77398-10.725469-16.370452-10.725469-25.966924L234.266814 36.692393C234.266814 16.370452 250.637266 0 270.959206 0l4.515987 0c9.596472 0 19.192944 3.951488 25.966924 10.725469l478.694598 478.694598c12.418964 12.418964 12.418964 32.740904 0 45.159868l-477.565601 477.565601c-7.338479 7.338479-17.499449 11.854465-28.224917 11.854465l0 0c-22.015436 0-40.079383-18.063947-40.079383-40.079383l0 0C234.266814 973.759647 238.7828 963.598677 246.121279 955.6957z" ></path></symbol><symbol id="icon-zoomin" viewBox="0 0 1024 1024"><path d="M725.504 652.864c46.4-61.44 71.744-136.448 71.744-218.752C797.248 230.464 632.768 64 430.656 64S64 230.464 64 434.112C64 639.36 228.48 805.76 430.656 805.76c86.656 0 164.48-30.144 227.52-81.088L889.984 960 960 891.264l-234.496-238.4z m-294.848 67.456c-155.776 0-282.624-128.896-282.624-286.208s126.848-286.208 282.624-286.208 282.624 128.896 282.624 286.208-126.912 286.208-282.624 286.208z" ></path><path d="M235.712 369.92h390.72v127.104H235.712z" ></path><path d="M367.488 238.144h127.104v390.72H367.488z" ></path></symbol><symbol id="icon-close" viewBox="0 0 1024 1024"><path d="M570.24 512l259.2 259.2-58.88 58.24L512 570.24l-261.12 261.12-58.24-58.24L453.76 512 194.56 252.8l58.24-58.24L512 453.76l261.12-261.12 58.24 58.24z" ></path></symbol><symbol id="icon-zoomout" viewBox="0 0 1024 1024"><path d="M725.504 652.864c46.4-61.44 71.744-136.448 71.744-218.752C797.248 230.464 632.768 64 430.656 64S64 230.464 64 434.112C64 639.36 228.48 805.76 430.656 805.76c86.656 0 164.48-30.144 227.52-81.088L889.984 960 960 891.264l-234.496-238.4z m-294.848 67.456c-155.776 0-282.624-128.896-282.624-286.208s126.848-286.208 282.624-286.208 282.624 128.896 282.624 286.208-126.912 286.208-282.624 286.208z" ></path><path d="M235.712 369.92h390.72v127.104H235.712z" ></path></symbol></svg>';(function(i){if(document.addEventListener)if(~["complete","loaded","interactive"].indexOf(document.readyState))setTimeout(i,0);else{var n=function(){document.removeEventListener("DOMContentLoaded",n,!1),i()};document.addEventListener("DOMContentLoaded",n,!1)}else document.attachEvent&&(b=i,h=e.document,u=!1,(_=function(){try{h.documentElement.doScroll("left")}catch{return void setTimeout(_,50)}v()})(),h.onreadystatechange=function(){h.readyState=="complete"&&(h.onreadystatechange=null,v())});function v(){u||(u=!0,b())}var b,h,u,_})(function(){var i,n,v,b,h,u;(i=document.createElement("div")).innerHTML=r,r=null,(n=i.getElementsByTagName("svg")[0])&&(n.setAttribute("aria-hidden","true"),n.style.position="absolute",n.style.width=0,n.style.height=0,n.style.overflow="hidden",v=n,(b=document.body).firstChild?(h=v,(u=b.firstChild).parentNode.insertBefore(h,u)):b.appendChild(v))})}}();const w=q({name:"SvgIcon",props:{type:{type:String,default:""}},setup:e=>()=>l("svg",{class:"vel-icon icon","aria-hidden":"true"},[l("use",{"xlink:href":`#icon-${e.type}`},null)])}),X=typeof window!="undefined",z=()=>{};let u9=!1;if(X)try{const e={};Object.defineProperty(e,"passive",{get(){u9=!0}}),window.addEventListener("test-passive",z,e)}catch{}const r9=function(e,r,i){let n=arguments.length>3&&arguments[3]!==void 0&&arguments[3];X&&e.addEventListener(r,i,!!u9&&{capture:!1,passive:n})}
1,i9=(e,r,i)=>{X&&e.removeEventListener(r,i)},H9=e=>{e.preventDefault()},R9=Object.prototype.toString,W=e=>r=>R9.call(r).slice(8,-1)===e,p9=e=>!!e&&W("String")(e);function F9(e){return e!=null}const V9=q({name:"Toolbar",props:{zoomIn:{type:Function,default:z},zoomOut:{type:Function,default:z},rotateLeft:{type:Function,default:z},rotateRight:{type:Function,default:z},resize:{type:Function,default:z}},setup:e=>()=>l("div",{class:"vel-toolbar"},[l("div",{role:"button","aria-label":"zoom in button",class:"toolbar-btn toolbar-btn__zoomin",onClick:e.zoomIn},[l(w,{type:"zoomin"},null)]),l("div",{role:"button","aria-label":"zoom out button",class:"toolbar-btn toolbar-btn__zoomout",onClick:e.zoomOut},[l(w,{type:"zoomout"},null)]),l("div",{role:"button","aria-label":"resize image button",class:"toolbar-btn toolbar-btn__resize",onClick:e.resize},[l(w,{type:"resize"},null)]),l("div",{role:"button","aria-label":"image rotate left button",class:"toolbar-btn toolbar-btn__rotate",onClick:e.rotateLeft},[l(w,{type:"rotate-left"},null)]),l("div",{role:"button","aria-label":"image rotate right button",class:"toolbar-btn toolbar-btn__rotate",onClick:e.rotateRight},[l(w,{type:"rotate-right"},null)])])}),Z9=()=>l("div",{class:"vel-loading"},[l("div",{class:"ring"},null)]),$9=()=>l("div",{class:"vel-on-error"},[l("div",{class:"ring"},null),l(w,{type:"img-broken"},null)]),P9=(e,r)=>{let{slots:i}=r;return l("div",{class:"vel-img-title"},[i.default?i.default():""])},T=X?window:global;let s9=Date.now();function U9(e){const r=Date.now(),i=Math.max(0,16-(r-s9)),n=setTimeout(e,i);return s9=r+i,n}function $(e){return(T.requestAnimationFrame||U9).call(T,e)}function c9(e){(T.cancelAnimationFrame||T.clearTimeout).call(T,e)}function d9(e,r){const i=e.clientX-r.clientX,n=e.clientY-r.clientY;return Math.sqrt(i*i+n*n)}function P(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!j9(e)}function q9(e){return(r=>!!r&&W("Object")(r))(e)&&p9(e.src)}var U=q({name:"VueEasyLightbox",props:{imgs:{type:[Array,String],default:()=>""},visible:{type:Boolean,default:!1},index:{type:Number,default:0},scrollDisabled:{type:Boolean,default:!0},escDisabled:{type:Boolean,default:!1},moveDisabled:{type:Boolean,default:!1},titleDisabled:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},teleport:{type:[String,Object],default:null},swipeTolerance:{type:Number,default:50},loop:{type:Boolean,default:!1},rtl:{type:Boolean,default:!1},zoomScale:{type:Number,default:.12},maxZoom:{type:Number,default:3},minZoom:{type:Number,default:.1}},emits:{hide:()=>!0,"on-error":e=>!0,"on-prev":(e,r)=>!0,"on-next":(e,r)=>!0,"on-prev-click":(e,r)=>!0,"on-next-click":(e,r)=>!0,"on-index-change":(e,r)=>!0,"on-rotate":e=>!0},setup(e,r){let{emit:i,slots:n}=r;const{imgRef:v,imgState:b,setImgSize:h}=(()=>{const t=R(),o=F({width:0,height:0,maxScale:1});return{imgRef:t,imgState:o,setImgSize:()=>{if(t.value){const{width:c,height:p,naturalWidth:g}=t.value;o.maxScale=g/c,o.width=c,o.height=p}}}})(),u=R(0),_=R(""),a=F({scale:1,lastScale:1,rotateDeg:0,top:0,left:0,initX:0,initY:0,lastX:0,lastY:0,touches:[]}),s=F({loadError:!1,loading:!1,dragging:!1,gesturing:!1,wheeling:!1}),m=D(()=>{return t=e.imgs,W("Array")(t)?e.imgs.map(o=>typeof o=="string"?{src:o}:q9(o)?o:void 0).filter(F9):p9(e.imgs)?[{src:e.imgs}]:[];var t}),J=D(()=>{var t;return(t=m.value[u.value])===null||t===void 0?void 0:t.src}),G=D(()=>{var t;return(t=m.value[u.value])===null||t===void 0?void 0:t.title}),v9=D(()=>{var t;return(t=m.value[u.value])===null||t===void 0?void 0:t.alt}),b9=D(()=>({cursor:s.loadError?"default":e.moveDisabled?s.dragging?"grabbing":"grab":"move",top:`calc(50% + ${a.top}px)`,left:`calc(50% + ${a.left}px)`,transition:s.dragging||s.gesturing?"none":"",transform:`translate(-50%, -50%) scale(${a.scale}) rotate(${a.rotateDeg}deg)`})),Y=()=>{i("hide")},K=()=>{a.scale=1,a.lastScale=1,a.rotateDeg=0,a.top=0,a.left=0,s.loadError=!1,s.dragging=!1,s.loading=!0},O=(t,o)=>{const c=u.value;K(),u.value=t,m.value[u.value]===m.value[t]&&a9(()=>{s.loading=!1}),e.visible&&c!==t&&(o&&o(c,t),i("on-index-change",c,t))},M=()=>{const t=u.value,o=e.loop?(t+1)%m.value.length:t+1;!e.loop&&o>m.value.length-1||O(o,(c,p)=>{i("on-next",c,p),i("on-next-click",c,p)})},S=()=>{const t=u.value;let o=t-1;
1if(t===0){if(!e.loop)return;o=m.value.length-1}O(o,(c,p)=>{i("on-prev",c,p),i("on-prev-click",c,p)})},Q=t=>{Math.abs(1-t)<.05?t=1:Math.abs(b.maxScale-t)<.05&&(t=b.maxScale),a.lastScale=a.scale,a.scale=t},E=()=>{const t=a.scale+e.zoomScale;t<b.maxScale*e.maxZoom&&Q(t)},B=()=>{const t=a.scale-e.zoomScale;t>e.minZoom&&Q(t)},e9=()=>{const t=a.rotateDeg%360;i("on-rotate",Math.abs(t<0?t+360:t))},L=()=>{a.rotateDeg-=90,e9()},N=()=>{a.rotateDeg+=90,e9()},A=()=>{a.scale=1,a.top=0,a.left=0},j=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return!e.moveDisabled&&t===0},{onMouseDown:m9,onMouseMove:g9,onMouseUp:f9}=((t,o,c)=>{let p,g=!1;return{onMouseDown:d=>{t.initX=t.lastX=d.clientX,t.initY=t.lastY=d.clientY,o.dragging=!0,g=!1,d.stopPropagation()},onMouseUp:d=>{c(d.button)&&c9(p),o.dragging=!1,g=!1},onMouseMove:d=>{if(o.dragging)if(c(d.button)){if(g)return;g=!0,p=$(()=>{const{top:x,left:f,lastY:I,lastX:H}=t;t.top=x-I+d.clientY,t.left=f-H+d.clientX,t.lastX=d.clientX,t.lastY=d.clientY,g=!1})}else t.lastX=d.clientX,t.lastY=d.clientY;d.stopPropagation()}}})(a,s,j),{onTouchStart:h9,onTouchMove:w9,onTouchEnd:y9}=((t,o,c,p)=>{let g,d=!1;return{onTouchStart:x=>{const{touches:f}=x;f.length>1?(c.gesturing=!0,o.touches=f):(o.initX=o.lastX=f[0].clientX,o.initY=o.lastY=f[0].clientY,c.dragging=!0),x.stopPropagation()},onTouchMove:x=>{if(d)return;const{touches:f}=x,{lastX:I,lastY:H,left:E9,top:B9,scale:X9}=o;if(!c.gesturing&&c.dragging){if(!f[0])return;const{clientX:C,clientY:y}=f[0];p()?g=$(()=>{o.lastX=C,o.lastY=y,o.top=B9-H+y,o.left=E9-I+C,d=!1}):(o.lastX=C,o.lastY=y)}else c.gesturing&&o.touches.length>1&&f.length>1&&(g=$(()=>{const C=(d9(o.touches[0],o.touches[1])-d9(f[0],f[1]))/t.width;o.touches=f;const y=X9-1.3*C;y>.5&&y<1.5*t.maxScale&&(o.scale=y),d=!1}))},onTouchEnd:()=>{c9(g),c.dragging=!1,c.gesturing=!1,d=!1}}})(b,a,s,j),x9=()=>{a.scale!==b.maxScale?(a.lastScale=a.scale,a.scale=b.maxScale):a.scale=a.lastScale},z9=t=>{s.loadError||s.gesturing||s.loading||s.dragging||s.wheeling||!e.scrollDisabled||(s.wheeling=!0,setTimeout(()=>{s.wheeling=!1},80),t.deltaY<0?E():B())},t9=t=>{const o=t;e.visible&&(!e.escDisabled&&o.key==="Escape"&&e.visible&&Y(),o.key==="ArrowLeft"&&(e.rtl?M():S()),o.key==="ArrowRight"&&(e.rtl?S():M()))},k9=()=>{e.maskClosable&&Y()},_9=()=>{h()},M9=()=>{s.loading=!1},S9=t=>{s.loading=!1,s.loadError=!0,i("on-error",t)},o9=()=>{e.visible&&h()};V(()=>e.index,t=>{t<0||t>=m.value.length||O(t)}),V(()=>s.dragging,(t,o)=>{const c=!t&&o;if(!j()&&c){const p=a.lastX-a.initX,g=a.lastY-a.initY,d=e.swipeTolerance;Math.abs(p)>Math.abs(g)&&(p<-1*d?M():p>d&&S())}}),V(()=>e.visible,t=>{if(t){K();const o=m.value.length;if(o===0)return u.value=0,s.loading=!1,void a9(()=>s.loadError=!0);u.value=e.index>=o?o-1:e.index<0?0:e.index,e.scrollDisabled&&L9()}else e.scrollDisabled&&l9()});const L9=()=>{document&&(_.value=document.body.style.overflowY,document.body.style.overflowY="hidden")},l9=()=>{document&&(document.body.style.overflowY=_.value)};O9(()=>{r9(document,"keydown",t9),r9(window,"resize",o9)}),N9(()=>{i9(document,"keydown",t9),i9(window,"resize",o9),l9()});const C9=()=>s.loading?n.loading?n.loading({key:"loading"}):l(Z9,{key:"img-loading"},null):s.loadError?n.onerror?n.onerror({key:"onerror"}):l($9,{key:"img-on-error"},null):l("div",{class:"vel-img-wrapper",style:b9.value,key:"img-wrapper"},[l("img",{alt:v9.value,ref:v,draggable:"false",class:"vel-img",src:J.value,onMousedown:m9,onMouseup:f9,onMousemove:g9,onTouchstart:h9,onTouchmove:w9,onTouchend:y9,onLoad:_9,onDblclick:x9,onDragstart:t=>{t.preventDefault()}},null)]),D9=()=>{if(n["prev-btn"])return n["prev-btn"]({prev:S});if(m.value.length<=1)return;const t=!e.loop&&u.value<=0;return l("div",{role:"button","aria-label":"previous image button",class:"btn__prev "+(t?"disable":""),onClick:S},[e.rtl?l(w,{type:"next"},null):l(w,{type:"prev"},null)])},T9=()=>{if(n["next-btn"])return n["next-btn"]({next:M});if(m.value.length<=1)return;const t=!e.loop&&u.value>=m.value.length-1;return l("div",{role:"button","aria-label":"next image button",class:"btn__next "+(t?"disable":""),onClick:M},[e.rtl?l(w,{type:"prev"},null):l(w,{type:"next"},null)])},Y9=()=>{if(G.value&&!e.titleDisabled&&!s.loading&&!s.loadError)return n.title?n.title():l(P9,null,{default:()=>[G.value]})},n9=()=>{let t;if(e.visible)return l("div",{onTouchmove:H9,class:["vel-modal",e.rtl?"is-rtl":""],onClick:I9(k9,["self"]),onWheel:z9},[l(Z,{name:"vel-fade",mode:"out-in"},P(t=C9())?t:{default:()=>[t]}),l("img",{style:"display:none;",src:J.value,onError:S9,onLoad:M9},null),l("div",{class:"vel-btns-wrapper"},[D9(),T9(),Y9(),n["close-btn"]?n["close-btn"]({close:Y}):l("div",{role:"button","aria-label":"close image preview button",class:"btn__close",onClick:Y},[l(w,{type:"close"},null)]),n.toolbar?n.toolbar({toolbarMethods:{zoomIn:E,zoomOut:B,rotate:L,rotateLeft:L,rotateRight:N,resize:A},zoomIn:E,zoomOut:B,rotate:L,rotateLeft:L,rotateRight:N,resize:A}):l(V9,{zoomIn:E,zoomOut:B,resize:A,rotateLeft:L,rotateRight:N},null)])])};return()=>{let t;if(e.teleport){let o;return l(A9,{to:e.teleport},{default:()=>[l(Z,{name:"vel-fade"},P(o=n9())?o:{default:()=>[o]})]})}return l(Z,{name:"vel-fade"},P(t=n9())?t:{default:()=>[t]})}}});const J9=Object.assign(U,{install:e=>{e.component(U.name,U)}});
1export{J9 as N};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.