@smartos-lib/components 2.0.9 → 2.0.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,9 +1,9 @@
1
- var Kn;(function(o){"use strict";/**
2
- * @vue/shared v3.4.27
1
+ var Gn;(function(a){"use strict";/**
2
+ * @vue/shared v3.4.29
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
- **/const Gn=()=>{},Zn=Object.prototype.hasOwnProperty,kt=(t,e)=>Zn.call(t,e),Jn=t=>typeof t=="function",St=t=>typeof t=="string",Et=t=>t!==null&&typeof t=="object";function Qn(t){for(var e=-1,n=t==null?0:t.length,i={};++e<n;){var r=t[e];i[r[0]]=r[1]}return i}const ei=t=>t===void 0,ti=t=>typeof t=="number",ni=t=>St(t)?!Number.isNaN(Number(t)):!1,_t=t=>Object.keys(t);function ii(t,e="px"){if(!t)return"";if(ti(t)||ni(t))return`${t}${e}`;if(St(t))return t}/*! Element Plus Icons Vue v2.3.1 */var ri=o.defineComponent({name:"Loading",__name:"loading",setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.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 0m-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"})]))}}),ai=ri;const Ct="__epPropKey",ie=t=>t,oi=t=>Et(t)&&!!t[Ct],At=(t,e)=>{if(!Et(t)||oi(t))return t;const{values:n,required:i,default:r,type:a,validator:s}=t,u={type:a,required:!!i,validator:n||s?f=>{let d=!1,c=[];if(n&&(c=Array.from(n),kt(t,"default")&&c.push(r),d||(d=c.includes(f))),s&&(d||(d=s(f))),!d&&c.length>0){const h=[...new Set(c)].map(g=>JSON.stringify(g)).join(", ");o.warn(`Invalid prop: validation failed${e?` for prop "${e}"`:""}. Expected one of [${h}], got value ${JSON.stringify(f)}.`)}return d}:void 0,[Ct]:!0};return kt(t,"default")&&(u.default=r),u},Te=t=>Qn(Object.entries(t).map(([e,n])=>[e,At(n,e)])),zt=ie([String,Object,Function]),Ge=(t,e)=>{if(t.install=n=>{for(const i of[t,...Object.values(e??{})])n.component(i.name,i)},e)for(const[n,i]of Object.entries(e))t[n]=i;return t},si=t=>(t.install=Gn,t),li=["","default","small","large"],ci=({from:t,replacement:e,scope:n,version:i,ref:r,type:a="API"},s)=>{o.watch(()=>o.unref(s),l=>{},{immediate:!0})},ui=Symbol("localeContextKey"),Ze="el",fi="is-",re=(t,e,n,i,r)=>{let a=`${t}-${e}`;return n&&(a+=`-${n}`),i&&(a+=`__${i}`),r&&(a+=`--${r}`),a},Tt=Symbol("namespaceContextKey"),di=t=>{const e=o.getCurrentInstance()?o.inject(Tt,o.ref(Ze)):o.ref(Ze);return o.computed(()=>o.unref(e)||Ze)},Oe=(t,e)=>{const n=di();return{namespace:n,b:(p="")=>re(n.value,t,p,"",""),e:p=>p?re(n.value,t,"",p,""):"",m:p=>p?re(n.value,t,"","",p):"",be:(p,v)=>p&&v?re(n.value,t,p,v,""):"",em:(p,v)=>p&&v?re(n.value,t,"",p,v):"",bm:(p,v)=>p&&v?re(n.value,t,p,"",v):"",bem:(p,v,b)=>p&&v&&b?re(n.value,t,p,v,b):"",is:(p,...v)=>{const b=v.length>=1?v[0]:!0;return p&&b?`${fi}${p}`:""},cssVar:p=>{const v={};for(const b in p)p[b]&&(v[`--${n.value}-${b}`]=p[b]);return v},cssVarName:p=>`--${n.value}-${p}`,cssVarBlock:p=>{const v={};for(const b in p)p[b]&&(v[`--${n.value}-${t}-${b}`]=p[b]);return v},cssVarBlockName:p=>`--${n.value}-${t}-${p}`}},Ot=t=>{const e=o.getCurrentInstance();return o.computed(()=>{var n,i;return(i=(n=e==null?void 0:e.proxy)==null?void 0:n.$props)==null?void 0:i[t]})};o.ref(0);const hi=Symbol("zIndexContextKey"),Nt=At({type:String,values:li,required:!1}),It=Symbol("size"),pi=()=>{const t=o.inject(It,{});return o.computed(()=>o.unref(t.size)||"")},gi=Te({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:t=>Jn(t)?!t():!t}}),Bt=Symbol(),Ne=o.ref();function Pt(t,e=void 0){const n=o.getCurrentInstance()?o.inject(Bt,Ne):Ne;return t?o.computed(()=>{var i,r;return(r=(i=n.value)==null?void 0:i[t])!=null?r:e}):n}const mi=(t,e,n=!1)=>{var i;const r=!!o.getCurrentInstance(),a=r?Pt():void 0,s=(i=void 0)!=null?i:r?o.provide:void 0;if(!s)return;const l=o.computed(()=>{const u=o.unref(t);return a!=null&&a.value?vi(a.value,u):u});return s(Bt,l),s(ui,o.computed(()=>l.value.locale)),s(Tt,o.computed(()=>l.value.namespace)),s(hi,o.computed(()=>l.value.zIndex)),s(It,{size:o.computed(()=>l.value.size||"")}),(n||!Ne.value)&&(Ne.value=l.value),l},vi=(t,e)=>{const n=[...new Set([..._t(t),..._t(e)])],i={};for(const r of n)i[r]=e[r]!==void 0?e[r]:t[r];return i},bi=Te({a11y:{type:Boolean,default:!0},locale:{type:ie(Object)},size:Nt,button:{type:ie(Object)},experimentalFeatures:{type:ie(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:ie(Object)},zIndex:Number,namespace:{type:String,default:"el"},...gi}),yi={},wi=o.defineComponent({name:"ElConfigProvider",props:bi,setup(t,{slots:e}){o.watch(()=>t.message,i=>{Object.assign(yi,i??{})},{immediate:!0,deep:!0});const n=mi(t);return()=>o.renderSlot(e,"default",{config:n==null?void 0:n.value})}}),xi=Ge(wi);var Je=(t,e)=>{const n=t.__vccOpts||t;for(const[i,r]of e)n[i]=r;return n};const ki=Te({size:{type:ie([Number,String])},color:{type:String}}),Si=o.defineComponent({name:"ElIcon",inheritAttrs:!1}),Ei=o.defineComponent({...Si,props:ki,setup(t){const e=t,n=Oe("icon"),i=o.computed(()=>{const{size:r,color:a}=e;return!r&&!a?{}:{fontSize:ei(r)?void 0:ii(r),"--color":a}});return(r,a)=>(o.openBlock(),o.createElementBlock("i",o.mergeProps({class:o.unref(n).b(),style:o.unref(i)},r.$attrs),[o.renderSlot(r.$slots,"default")],16))}});var _i=Je(Ei,[["__file","icon.vue"]]);const Rt=Ge(_i),Qe=Symbol("formContextKey"),Dt=Symbol("formItemContextKey"),Ci=(t,e={})=>{const n=o.ref(void 0),i=e.prop?n:Ot("size"),r=e.global?n:pi(),a=e.form?{size:void 0}:o.inject(Qe,void 0),s=e.formItem?{size:void 0}:o.inject(Dt,void 0);return o.computed(()=>i.value||o.unref(t)||(s==null?void 0:s.size)||(a==null?void 0:a.size)||r.value||"")},Mt=t=>{const e=Ot("disabled"),n=o.inject(Qe,void 0);return o.computed(()=>e.value||o.unref(t)||(n==null?void 0:n.disabled)||!1)},Ai=()=>{const t=o.inject(Qe,void 0),e=o.inject(Dt,void 0);return{form:t,formItem:e}},Lt=Symbol("buttonGroupContextKey"),zi=(t,e)=>{ci({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},o.computed(()=>t.type==="text"));const n=o.inject(Lt,void 0),i=Pt("button"),{form:r}=Ai(),a=Ci(o.computed(()=>n==null?void 0:n.size)),s=Mt(),l=o.ref(),u=o.useSlots(),f=o.computed(()=>t.type||(n==null?void 0:n.type)||""),d=o.computed(()=>{var m,p,v;return(v=(p=t.autoInsertSpace)!=null?p:(m=i.value)==null?void 0:m.autoInsertSpace)!=null?v:!1}),c=o.computed(()=>t.tag==="button"?{ariaDisabled:s.value||t.loading,disabled:s.value||t.loading,autofocus:t.autofocus,type:t.nativeType}:{}),h=o.computed(()=>{var m;const p=(m=u.default)==null?void 0:m.call(u);if(d.value&&(p==null?void 0:p.length)===1){const v=p[0];if((v==null?void 0:v.type)===o.Text){const b=v.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(b.trim())}}return!1});return{_disabled:s,_size:a,_type:f,_ref:l,_props:c,shouldAddSpace:h,handleClick:m=>{t.nativeType==="reset"&&(r==null||r.resetFields()),e("click",m)}}},et=Te({size:Nt,disabled:Boolean,type:{type:String,values:["default","primary","success","warning","info","danger","text",""],default:""},icon:{type:zt},nativeType:{type:String,values:["button","submit","reset"],default:"button"},loading:Boolean,loadingIcon:{type:zt,default:()=>ai},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:ie([String,Object]),default:"button"}}),Ti={click:t=>t instanceof MouseEvent};function F(t,e){Oi(t)&&(t="100%");var n=Ni(t);return t=e===360?t:Math.min(e,Math.max(0,parseFloat(t))),n&&(t=parseInt(String(t*e),10)/100),Math.abs(t-e)<1e-6?1:(e===360?t=(t<0?t%e+e:t%e)/parseFloat(String(e)):t=t%e/parseFloat(String(e)),t)}function Ie(t){return Math.min(1,Math.max(0,t))}function Oi(t){return typeof t=="string"&&t.indexOf(".")!==-1&&parseFloat(t)===1}function Ni(t){return typeof t=="string"&&t.indexOf("%")!==-1}function jt(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function Be(t){return t<=1?"".concat(Number(t)*100,"%"):t}function ae(t){return t.length===1?"0"+t:String(t)}function Ii(t,e,n){return{r:F(t,255)*255,g:F(e,255)*255,b:F(n,255)*255}}function Ft(t,e,n){t=F(t,255),e=F(e,255),n=F(n,255);var i=Math.max(t,e,n),r=Math.min(t,e,n),a=0,s=0,l=(i+r)/2;if(i===r)s=0,a=0;else{var u=i-r;switch(s=l>.5?u/(2-i-r):u/(i+r),i){case t:a=(e-n)/u+(e<n?6:0);break;case e:a=(n-t)/u+2;break;case n:a=(t-e)/u+4;break}a/=6}return{h:a,s,l}}function tt(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*(6*n):n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Bi(t,e,n){var i,r,a;if(t=F(t,360),e=F(e,100),n=F(n,100),e===0)r=n,a=n,i=n;else{var s=n<.5?n*(1+e):n+e-n*e,l=2*n-s;i=tt(l,s,t+1/3),r=tt(l,s,t),a=tt(l,s,t-1/3)}return{r:i*255,g:r*255,b:a*255}}function Vt(t,e,n){t=F(t,255),e=F(e,255),n=F(n,255);var i=Math.max(t,e,n),r=Math.min(t,e,n),a=0,s=i,l=i-r,u=i===0?0:l/i;if(i===r)a=0;else{switch(i){case t:a=(e-n)/l+(e<n?6:0);break;case e:a=(n-t)/l+2;break;case n:a=(t-e)/l+4;break}a/=6}return{h:a,s:u,v:s}}function Pi(t,e,n){t=F(t,360)*6,e=F(e,100),n=F(n,100);var i=Math.floor(t),r=t-i,a=n*(1-e),s=n*(1-r*e),l=n*(1-(1-r)*e),u=i%6,f=[n,s,a,a,l,n][u],d=[l,n,n,s,a,a][u],c=[a,a,l,n,n,s][u];return{r:f*255,g:d*255,b:c*255}}function $t(t,e,n,i){var r=[ae(Math.round(t).toString(16)),ae(Math.round(e).toString(16)),ae(Math.round(n).toString(16))];return i&&r[0].startsWith(r[0].charAt(1))&&r[1].startsWith(r[1].charAt(1))&&r[2].startsWith(r[2].charAt(1))?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function Ri(t,e,n,i,r){var a=[ae(Math.round(t).toString(16)),ae(Math.round(e).toString(16)),ae(Math.round(n).toString(16)),ae(Di(i))];return r&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function Di(t){return Math.round(parseFloat(t)*255).toString(16)}function Ht(t){return V(t)/255}function V(t){return parseInt(t,16)}function Mi(t){return{r:t>>16,g:(t&65280)>>8,b:t&255}}var nt={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Li(t){var e={r:0,g:0,b:0},n=1,i=null,r=null,a=null,s=!1,l=!1;return typeof t=="string"&&(t=Vi(t)),typeof t=="object"&&(K(t.r)&&K(t.g)&&K(t.b)?(e=Ii(t.r,t.g,t.b),s=!0,l=String(t.r).substr(-1)==="%"?"prgb":"rgb"):K(t.h)&&K(t.s)&&K(t.v)?(i=Be(t.s),r=Be(t.v),e=Pi(t.h,i,r),s=!0,l="hsv"):K(t.h)&&K(t.s)&&K(t.l)&&(i=Be(t.s),a=Be(t.l),e=Bi(t.h,i,a),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(t,"a")&&(n=t.a)),n=jt(n),{ok:s,format:t.format||l,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:n}}var ji="[-\\+]?\\d+%?",Fi="[-\\+]?\\d*\\.\\d+%?",J="(?:".concat(Fi,")|(?:").concat(ji,")"),it="[\\s|\\(]+(".concat(J,")[,|\\s]+(").concat(J,")[,|\\s]+(").concat(J,")\\s*\\)?"),rt="[\\s|\\(]+(".concat(J,")[,|\\s]+(").concat(J,")[,|\\s]+(").concat(J,")[,|\\s]+(").concat(J,")\\s*\\)?"),q={CSS_UNIT:new RegExp(J),rgb:new RegExp("rgb"+it),rgba:new RegExp("rgba"+rt),hsl:new RegExp("hsl"+it),hsla:new RegExp("hsla"+rt),hsv:new RegExp("hsv"+it),hsva:new RegExp("hsva"+rt),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Vi(t){if(t=t.trim().toLowerCase(),t.length===0)return!1;var e=!1;if(nt[t])t=nt[t],e=!0;else if(t==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=q.rgb.exec(t);return n?{r:n[1],g:n[2],b:n[3]}:(n=q.rgba.exec(t),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=q.hsl.exec(t),n?{h:n[1],s:n[2],l:n[3]}:(n=q.hsla.exec(t),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=q.hsv.exec(t),n?{h:n[1],s:n[2],v:n[3]}:(n=q.hsva.exec(t),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=q.hex8.exec(t),n?{r:V(n[1]),g:V(n[2]),b:V(n[3]),a:Ht(n[4]),format:e?"name":"hex8"}:(n=q.hex6.exec(t),n?{r:V(n[1]),g:V(n[2]),b:V(n[3]),format:e?"name":"hex"}:(n=q.hex4.exec(t),n?{r:V(n[1]+n[1]),g:V(n[2]+n[2]),b:V(n[3]+n[3]),a:Ht(n[4]+n[4]),format:e?"name":"hex8"}:(n=q.hex3.exec(t),n?{r:V(n[1]+n[1]),g:V(n[2]+n[2]),b:V(n[3]+n[3]),format:e?"name":"hex"}:!1)))))))))}function K(t){return!!q.CSS_UNIT.exec(String(t))}var $i=function(){function t(e,n){e===void 0&&(e=""),n===void 0&&(n={});var i;if(e instanceof t)return e;typeof e=="number"&&(e=Mi(e)),this.originalInput=e;var r=Li(e);this.originalInput=e,this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this.roundA=Math.round(100*this.a)/100,this.format=(i=n.format)!==null&&i!==void 0?i:r.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=r.ok}return t.prototype.isDark=function(){return this.getBrightness()<128},t.prototype.isLight=function(){return!this.isDark()},t.prototype.getBrightness=function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},t.prototype.getLuminance=function(){var e=this.toRgb(),n,i,r,a=e.r/255,s=e.g/255,l=e.b/255;return a<=.03928?n=a/12.92:n=Math.pow((a+.055)/1.055,2.4),s<=.03928?i=s/12.92:i=Math.pow((s+.055)/1.055,2.4),l<=.03928?r=l/12.92:r=Math.pow((l+.055)/1.055,2.4),.2126*n+.7152*i+.0722*r},t.prototype.getAlpha=function(){return this.a},t.prototype.setAlpha=function(e){return this.a=jt(e),this.roundA=Math.round(100*this.a)/100,this},t.prototype.isMonochrome=function(){var e=this.toHsl().s;return e===0},t.prototype.toHsv=function(){var e=Vt(this.r,this.g,this.b);return{h:e.h*360,s:e.s,v:e.v,a:this.a}},t.prototype.toHsvString=function(){var e=Vt(this.r,this.g,this.b),n=Math.round(e.h*360),i=Math.round(e.s*100),r=Math.round(e.v*100);return this.a===1?"hsv(".concat(n,", ").concat(i,"%, ").concat(r,"%)"):"hsva(".concat(n,", ").concat(i,"%, ").concat(r,"%, ").concat(this.roundA,")")},t.prototype.toHsl=function(){var e=Ft(this.r,this.g,this.b);return{h:e.h*360,s:e.s,l:e.l,a:this.a}},t.prototype.toHslString=function(){var e=Ft(this.r,this.g,this.b),n=Math.round(e.h*360),i=Math.round(e.s*100),r=Math.round(e.l*100);return this.a===1?"hsl(".concat(n,", ").concat(i,"%, ").concat(r,"%)"):"hsla(".concat(n,", ").concat(i,"%, ").concat(r,"%, ").concat(this.roundA,")")},t.prototype.toHex=function(e){return e===void 0&&(e=!1),$t(this.r,this.g,this.b,e)},t.prototype.toHexString=function(e){return e===void 0&&(e=!1),"#"+this.toHex(e)},t.prototype.toHex8=function(e){return e===void 0&&(e=!1),Ri(this.r,this.g,this.b,this.a,e)},t.prototype.toHex8String=function(e){return e===void 0&&(e=!1),"#"+this.toHex8(e)},t.prototype.toHexShortString=function(e){return e===void 0&&(e=!1),this.a===1?this.toHexString(e):this.toHex8String(e)},t.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},t.prototype.toRgbString=function(){var e=Math.round(this.r),n=Math.round(this.g),i=Math.round(this.b);return this.a===1?"rgb(".concat(e,", ").concat(n,", ").concat(i,")"):"rgba(".concat(e,", ").concat(n,", ").concat(i,", ").concat(this.roundA,")")},t.prototype.toPercentageRgb=function(){var e=function(n){return"".concat(Math.round(F(n,255)*100),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},t.prototype.toPercentageRgbString=function(){var e=function(n){return Math.round(F(n,255)*100)};return this.a===1?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},t.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var e="#"+$t(this.r,this.g,this.b,!1),n=0,i=Object.entries(nt);n<i.length;n++){var r=i[n],a=r[0],s=r[1];if(e===s)return a}return!1},t.prototype.toString=function(e){var n=!!e;e=e??this.format;var i=!1,r=this.a<1&&this.a>=0,a=!n&&r&&(e.startsWith("hex")||e==="name");return a?e==="name"&&this.a===0?this.toName():this.toRgbString():(e==="rgb"&&(i=this.toRgbString()),e==="prgb"&&(i=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(i=this.toHexString()),e==="hex3"&&(i=this.toHexString(!0)),e==="hex4"&&(i=this.toHex8String(!0)),e==="hex8"&&(i=this.toHex8String()),e==="name"&&(i=this.toName()),e==="hsl"&&(i=this.toHslString()),e==="hsv"&&(i=this.toHsvString()),i||this.toHexString())},t.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},t.prototype.clone=function(){return new t(this.toString())},t.prototype.lighten=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.l+=e/100,n.l=Ie(n.l),new t(n)},t.prototype.brighten=function(e){e===void 0&&(e=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(e/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(e/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(e/100)))),new t(n)},t.prototype.darken=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.l-=e/100,n.l=Ie(n.l),new t(n)},t.prototype.tint=function(e){return e===void 0&&(e=10),this.mix("white",e)},t.prototype.shade=function(e){return e===void 0&&(e=10),this.mix("black",e)},t.prototype.desaturate=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.s-=e/100,n.s=Ie(n.s),new t(n)},t.prototype.saturate=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.s+=e/100,n.s=Ie(n.s),new t(n)},t.prototype.greyscale=function(){return this.desaturate(100)},t.prototype.spin=function(e){var n=this.toHsl(),i=(n.h+e)%360;return n.h=i<0?360+i:i,new t(n)},t.prototype.mix=function(e,n){n===void 0&&(n=50);var i=this.toRgb(),r=new t(e).toRgb(),a=n/100,s={r:(r.r-i.r)*a+i.r,g:(r.g-i.g)*a+i.g,b:(r.b-i.b)*a+i.b,a:(r.a-i.a)*a+i.a};return new t(s)},t.prototype.analogous=function(e,n){e===void 0&&(e=6),n===void 0&&(n=30);var i=this.toHsl(),r=360/n,a=[this];for(i.h=(i.h-(r*e>>1)+720)%360;--e;)i.h=(i.h+r)%360,a.push(new t(i));return a},t.prototype.complement=function(){var e=this.toHsl();return e.h=(e.h+180)%360,new t(e)},t.prototype.monochromatic=function(e){e===void 0&&(e=6);for(var n=this.toHsv(),i=n.h,r=n.s,a=n.v,s=[],l=1/e;e--;)s.push(new t({h:i,s:r,v:a})),a=(a+l)%1;return s},t.prototype.splitcomplement=function(){var e=this.toHsl(),n=e.h;return[this,new t({h:(n+72)%360,s:e.s,l:e.l}),new t({h:(n+216)%360,s:e.s,l:e.l})]},t.prototype.onBackground=function(e){var n=this.toRgb(),i=new t(e).toRgb(),r=n.a+i.a*(1-n.a);return new t({r:(n.r*n.a+i.r*i.a*(1-n.a))/r,g:(n.g*n.a+i.g*i.a*(1-n.a))/r,b:(n.b*n.a+i.b*i.a*(1-n.a))/r,a:r})},t.prototype.triad=function(){return this.polyad(3)},t.prototype.tetrad=function(){return this.polyad(4)},t.prototype.polyad=function(e){for(var n=this.toHsl(),i=n.h,r=[this],a=360/e,s=1;s<e;s++)r.push(new t({h:(i+s*a)%360,s:n.s,l:n.l}));return r},t.prototype.equals=function(e){return this.toRgbString()===new t(e).toRgbString()},t}();function Q(t,e=20){return t.mix("#141414",e).toString()}function Hi(t){const e=Mt(),n=Oe("button");return o.computed(()=>{let i={};const r=t.color;if(r){const a=new $i(r),s=t.dark?a.tint(20).toString():Q(a,20);if(t.plain)i=n.cssVarBlock({"bg-color":t.dark?Q(a,90):a.tint(90).toString(),"text-color":r,"border-color":t.dark?Q(a,50):a.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":r,"hover-border-color":r,"active-bg-color":s,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":s}),e.value&&(i[n.cssVarBlockName("disabled-bg-color")]=t.dark?Q(a,90):a.tint(90).toString(),i[n.cssVarBlockName("disabled-text-color")]=t.dark?Q(a,50):a.tint(50).toString(),i[n.cssVarBlockName("disabled-border-color")]=t.dark?Q(a,80):a.tint(80).toString());else{const l=t.dark?Q(a,30):a.tint(30).toString(),u=a.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(i=n.cssVarBlock({"bg-color":r,"text-color":u,"border-color":r,"hover-bg-color":l,"hover-text-color":u,"hover-border-color":l,"active-bg-color":s,"active-border-color":s}),e.value){const f=t.dark?Q(a,50):a.tint(50).toString();i[n.cssVarBlockName("disabled-bg-color")]=f,i[n.cssVarBlockName("disabled-text-color")]=t.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,i[n.cssVarBlockName("disabled-border-color")]=f}}}return i})}const Wi=o.defineComponent({name:"ElButton"}),qi=o.defineComponent({...Wi,props:et,emits:Ti,setup(t,{expose:e,emit:n}){const i=t,r=Hi(i),a=Oe("button"),{_ref:s,_size:l,_type:u,_disabled:f,_props:d,shouldAddSpace:c,handleClick:h}=zi(i,n),g=o.computed(()=>[a.b(),a.m(u.value),a.m(l.value),a.is("disabled",f.value),a.is("loading",i.loading),a.is("plain",i.plain),a.is("round",i.round),a.is("circle",i.circle),a.is("text",i.text),a.is("link",i.link),a.is("has-bg",i.bg)]);return e({ref:s,size:l,type:u,disabled:f,shouldAddSpace:c}),(m,p)=>(o.openBlock(),o.createBlock(o.resolveDynamicComponent(m.tag),o.mergeProps({ref_key:"_ref",ref:s},o.unref(d),{class:o.unref(g),style:o.unref(r),onClick:o.unref(h)}),{default:o.withCtx(()=>[m.loading?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[m.$slots.loading?o.renderSlot(m.$slots,"loading",{key:0}):(o.openBlock(),o.createBlock(o.unref(Rt),{key:1,class:o.normalizeClass(o.unref(a).is("loading"))},{default:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(m.loadingIcon)))]),_:1},8,["class"]))],64)):m.icon||m.$slots.icon?(o.openBlock(),o.createBlock(o.unref(Rt),{key:1},{default:o.withCtx(()=>[m.icon?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(m.icon),{key:0})):o.renderSlot(m.$slots,"icon",{key:1})]),_:3})):o.createCommentVNode("v-if",!0),m.$slots.default?(o.openBlock(),o.createElementBlock("span",{key:2,class:o.normalizeClass({[o.unref(a).em("text","expand")]:o.unref(c)})},[o.renderSlot(m.$slots,"default")],2)):o.createCommentVNode("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var Ui=Je(qi,[["__file","button.vue"]]);const Xi={size:et.size,type:et.type},Yi=o.defineComponent({name:"ElButtonGroup"}),Ki=o.defineComponent({...Yi,props:Xi,setup(t){const e=t;o.provide(Lt,o.reactive({size:o.toRef(e,"size"),type:o.toRef(e,"type")}));const n=Oe("button");return(i,r)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(`${o.unref(n).b("group")}`)},[o.renderSlot(i.$slots,"default")],2))}});var Wt=Je(Ki,[["__file","button-group.vue"]]);const Gi=Ge(Ui,{ButtonGroup:Wt});si(Wt);const Zi={jpg:"image",jpeg:"image",png:"image",bmp:"image",gif:"image",svg:"image",webp:"image",mp4:"video",avi:"video",mov:"video",wmv:"video",flv:"video",mkv:"video",webm:"video",pdf:"pdf"},qt=o.ref(),Ji={viewBox:"0 0 16 16",width:"1em",height:"1em"},Qi=[o.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M7.56 1h.88l6.54 12.26l-.44.74H1.44L1 13.26zM8 2.28L2.28 13H13.7zM8.625 12v-1h-1.25v1zm-1.25-2V6h1.25v4z","clip-rule":"evenodd"},null,-1)];function er(t,e){return o.openBlock(),o.createElementBlock("svg",Ji,[...Qi])}const tr={name:"codicon-warning",render:er},nr={viewBox:"0 0 24 24",width:"1em",height:"1em"},ir=[o.createStaticVNode('<rect width="10" height="10" x="1" y="1" fill="currentColor" rx="1"><animate id="svgSpinnersBlocksShuffle30" fill="freeze" attributeName="x" begin="0;svgSpinnersBlocksShuffle3b.end" dur="0.2s" values="1;13"></animate><animate id="svgSpinnersBlocksShuffle31" fill="freeze" attributeName="y" begin="svgSpinnersBlocksShuffle38.end" dur="0.2s" values="1;13"></animate><animate id="svgSpinnersBlocksShuffle32" fill="freeze" attributeName="x" begin="svgSpinnersBlocksShuffle39.end" dur="0.2s" values="13;1"></animate><animate id="svgSpinnersBlocksShuffle33" fill="freeze" attributeName="y" begin="svgSpinnersBlocksShuffle3a.end" dur="0.2s" values="13;1"></animate></rect><rect width="10" height="10" x="1" y="13" fill="currentColor" rx="1"><animate id="svgSpinnersBlocksShuffle34" fill="freeze" attributeName="y" begin="svgSpinnersBlocksShuffle30.end" dur="0.2s" values="13;1"></animate><animate id="svgSpinnersBlocksShuffle35" fill="freeze" attributeName="x" begin="svgSpinnersBlocksShuffle31.end" dur="0.2s" values="1;13"></animate><animate id="svgSpinnersBlocksShuffle36" fill="freeze" attributeName="y" begin="svgSpinnersBlocksShuffle32.end" dur="0.2s" values="1;13"></animate><animate id="svgSpinnersBlocksShuffle37" fill="freeze" attributeName="x" begin="svgSpinnersBlocksShuffle33.end" dur="0.2s" values="13;1"></animate></rect><rect width="10" height="10" x="13" y="13" fill="currentColor" rx="1"><animate id="svgSpinnersBlocksShuffle38" fill="freeze" attributeName="x" begin="svgSpinnersBlocksShuffle34.end" dur="0.2s" values="13;1"></animate><animate id="svgSpinnersBlocksShuffle39" fill="freeze" attributeName="y" begin="svgSpinnersBlocksShuffle35.end" dur="0.2s" values="13;1"></animate><animate id="svgSpinnersBlocksShuffle3a" fill="freeze" attributeName="x" begin="svgSpinnersBlocksShuffle36.end" dur="0.2s" values="1;13"></animate><animate id="svgSpinnersBlocksShuffle3b" fill="freeze" attributeName="y" begin="svgSpinnersBlocksShuffle37.end" dur="0.2s" values="1;13"></animate></rect>',3)];function rr(t,e){return o.openBlock(),o.createElementBlock("svg",nr,[...ir])}const ar={name:"svg-spinners-blocks-shuffle3",render:rr};function or(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ut(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function Xt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ut(Object(n),!0).forEach(function(i){or(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ut(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function sr(t,e){if(t==null)return{};var n={},i=Object.keys(t),r,a;for(a=0;a<i.length;a++)r=i[a],!(e.indexOf(r)>=0)&&(n[r]=t[r]);return n}function lr(t,e){if(t==null)return{};var n=sr(t,e),i,r;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)i=a[r],!(e.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(t,i)&&(n[i]=t[i])}return n}function cr(t,e){return ur(t)||fr(t,e)||dr(t,e)||hr()}function ur(t){if(Array.isArray(t))return t}function fr(t,e){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(t)))){var n=[],i=!0,r=!1,a=void 0;try{for(var s=t[Symbol.iterator](),l;!(i=(l=s.next()).done)&&(n.push(l.value),!(e&&n.length===e));i=!0);}catch(u){r=!0,a=u}finally{try{!i&&s.return!=null&&s.return()}finally{if(r)throw a}}return n}}function dr(t,e){if(t){if(typeof t=="string")return Yt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Yt(t,e)}}function Yt(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function hr(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
6
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Kt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function Gt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Kt(Object(n),!0).forEach(function(i){pr(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Kt(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function gr(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(i){return e.reduceRight(function(r,a){return a(r)},i)}}function we(t){return function e(){for(var n=this,i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];return r.length>=t.length?t.apply(this,r):function(){for(var s=arguments.length,l=new Array(s),u=0;u<s;u++)l[u]=arguments[u];return e.apply(n,[].concat(r,l))}}}function Pe(t){return{}.toString.call(t).includes("Object")}function mr(t){return!Object.keys(t).length}function xe(t){return typeof t=="function"}function vr(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function br(t,e){return Pe(e)||ee("changeType"),Object.keys(e).some(function(n){return!vr(t,n)})&&ee("changeField"),e}function yr(t){xe(t)||ee("selectorType")}function wr(t){xe(t)||Pe(t)||ee("handlerType"),Pe(t)&&Object.values(t).some(function(e){return!xe(e)})&&ee("handlersType")}function xr(t){t||ee("initialIsRequired"),Pe(t)||ee("initialType"),mr(t)&&ee("initialContent")}function kr(t,e){throw new Error(t[e]||t.default)}var Sr={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},ee=we(kr)(Sr),Re={changes:br,selector:yr,handler:wr,initial:xr};function Er(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Re.initial(t),Re.handler(e);var n={current:t},i=we(Ar)(n,e),r=we(Cr)(n),a=we(Re.changes)(t),s=we(_r)(n);function l(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(d){return d};return Re.selector(f),f(n.current)}function u(f){gr(i,r,a,s)(f)}return[l,u]}function _r(t,e){return xe(e)?e(t.current):e}function Cr(t,e){return t.current=Gt(Gt({},t.current),e),e}function Ar(t,e,n){return xe(e)?e(t.current):Object.keys(n).forEach(function(i){var r;return(r=e[i])===null||r===void 0?void 0:r.call(e,t.current[i])}),n}var zr={create:Er},Tr={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs"}};function Or(t){return function e(){for(var n=this,i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];return r.length>=t.length?t.apply(this,r):function(){for(var s=arguments.length,l=new Array(s),u=0;u<s;u++)l[u]=arguments[u];return e.apply(n,[].concat(r,l))}}}function Nr(t){return{}.toString.call(t).includes("Object")}function Ir(t){return t||Jt("configIsRequired"),Nr(t)||Jt("configType"),t.urls?(Br(),{paths:{vs:t.urls.monacoBase}}):t}function Br(){console.warn(Zt.deprecation)}function Pr(t,e){throw new Error(t[e]||t.default)}var Zt={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
5
+ **/const Zn=()=>{},Jn=Object.prototype.hasOwnProperty,kt=(t,e)=>Jn.call(t,e),Qn=t=>typeof t=="function",St=t=>typeof t=="string",Et=t=>t!==null&&typeof t=="object";function ei(t){for(var e=-1,n=t==null?0:t.length,i={};++e<n;){var r=t[e];i[r[0]]=r[1]}return i}const ti=t=>t===void 0,ni=t=>typeof t=="number",ii=t=>St(t)?!Number.isNaN(Number(t)):!1,_t=t=>Object.keys(t);function ri(t,e="px"){if(!t)return"";if(ni(t)||ii(t))return`${t}${e}`;if(St(t))return t}/*! Element Plus Icons Vue v2.3.1 */var oi=a.defineComponent({name:"Loading",__name:"loading",setup(t){return(e,n)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.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 0m-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"})]))}}),ai=oi;const Ct="__epPropKey",ie=t=>t,si=t=>Et(t)&&!!t[Ct],At=(t,e)=>{if(!Et(t)||si(t))return t;const{values:n,required:i,default:r,type:o,validator:s}=t,u={type:o,required:!!i,validator:n||s?f=>{let d=!1,c=[];if(n&&(c=Array.from(n),kt(t,"default")&&c.push(r),d||(d=c.includes(f))),s&&(d||(d=s(f))),!d&&c.length>0){const h=[...new Set(c)].map(g=>JSON.stringify(g)).join(", ");a.warn(`Invalid prop: validation failed${e?` for prop "${e}"`:""}. Expected one of [${h}], got value ${JSON.stringify(f)}.`)}return d}:void 0,[Ct]:!0};return kt(t,"default")&&(u.default=r),u},Te=t=>ei(Object.entries(t).map(([e,n])=>[e,At(n,e)])),zt=ie([String,Object,Function]),Ge=(t,e)=>{if(t.install=n=>{for(const i of[t,...Object.values(e??{})])n.component(i.name,i)},e)for(const[n,i]of Object.entries(e))t[n]=i;return t},li=t=>(t.install=Zn,t),ci=["","default","small","large"],ui=({from:t,replacement:e,scope:n,version:i,ref:r,type:o="API"},s)=>{a.watch(()=>a.unref(s),l=>{},{immediate:!0})},fi=Symbol("localeContextKey"),Ze="el",di="is-",re=(t,e,n,i,r)=>{let o=`${t}-${e}`;return n&&(o+=`-${n}`),i&&(o+=`__${i}`),r&&(o+=`--${r}`),o},Tt=Symbol("namespaceContextKey"),hi=t=>{const e=a.getCurrentInstance()?a.inject(Tt,a.ref(Ze)):a.ref(Ze);return a.computed(()=>a.unref(e)||Ze)},Oe=(t,e)=>{const n=hi();return{namespace:n,b:(p="")=>re(n.value,t,p,"",""),e:p=>p?re(n.value,t,"",p,""):"",m:p=>p?re(n.value,t,"","",p):"",be:(p,v)=>p&&v?re(n.value,t,p,v,""):"",em:(p,v)=>p&&v?re(n.value,t,"",p,v):"",bm:(p,v)=>p&&v?re(n.value,t,p,"",v):"",bem:(p,v,b)=>p&&v&&b?re(n.value,t,p,v,b):"",is:(p,...v)=>{const b=v.length>=1?v[0]:!0;return p&&b?`${di}${p}`:""},cssVar:p=>{const v={};for(const b in p)p[b]&&(v[`--${n.value}-${b}`]=p[b]);return v},cssVarName:p=>`--${n.value}-${p}`,cssVarBlock:p=>{const v={};for(const b in p)p[b]&&(v[`--${n.value}-${t}-${b}`]=p[b]);return v},cssVarBlockName:p=>`--${n.value}-${t}-${p}`}},Ot=t=>{const e=a.getCurrentInstance();return a.computed(()=>{var n,i;return(i=(n=e==null?void 0:e.proxy)==null?void 0:n.$props)==null?void 0:i[t]})};a.ref(0);const pi=Symbol("zIndexContextKey"),Nt=At({type:String,values:ci,required:!1}),It=Symbol("size"),gi=()=>{const t=a.inject(It,{});return a.computed(()=>a.unref(t.size)||"")},mi=Te({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:t=>Qn(t)?!t():!t}}),Bt=Symbol(),Ne=a.ref();function Rt(t,e=void 0){const n=a.getCurrentInstance()?a.inject(Bt,Ne):Ne;return t?a.computed(()=>{var i,r;return(r=(i=n.value)==null?void 0:i[t])!=null?r:e}):n}const vi=(t,e,n=!1)=>{var i;const r=!!a.getCurrentInstance(),o=r?Rt():void 0,s=(i=void 0)!=null?i:r?a.provide:void 0;if(!s)return;const l=a.computed(()=>{const u=a.unref(t);return o!=null&&o.value?bi(o.value,u):u});return s(Bt,l),s(fi,a.computed(()=>l.value.locale)),s(Tt,a.computed(()=>l.value.namespace)),s(pi,a.computed(()=>l.value.zIndex)),s(It,{size:a.computed(()=>l.value.size||"")}),(n||!Ne.value)&&(Ne.value=l.value),l},bi=(t,e)=>{const n=[...new Set([..._t(t),..._t(e)])],i={};for(const r of n)i[r]=e[r]!==void 0?e[r]:t[r];return i},yi=Te({a11y:{type:Boolean,default:!0},locale:{type:ie(Object)},size:Nt,button:{type:ie(Object)},experimentalFeatures:{type:ie(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:ie(Object)},zIndex:Number,namespace:{type:String,default:"el"},...mi}),wi={},xi=a.defineComponent({name:"ElConfigProvider",props:yi,setup(t,{slots:e}){a.watch(()=>t.message,i=>{Object.assign(wi,i??{})},{immediate:!0,deep:!0});const n=vi(t);return()=>a.renderSlot(e,"default",{config:n==null?void 0:n.value})}}),ki=Ge(xi);var Je=(t,e)=>{const n=t.__vccOpts||t;for(const[i,r]of e)n[i]=r;return n};const Si=Te({size:{type:ie([Number,String])},color:{type:String}}),Ei=a.defineComponent({name:"ElIcon",inheritAttrs:!1}),_i=a.defineComponent({...Ei,props:Si,setup(t){const e=t,n=Oe("icon"),i=a.computed(()=>{const{size:r,color:o}=e;return!r&&!o?{}:{fontSize:ti(r)?void 0:ri(r),"--color":o}});return(r,o)=>(a.openBlock(),a.createElementBlock("i",a.mergeProps({class:a.unref(n).b(),style:a.unref(i)},r.$attrs),[a.renderSlot(r.$slots,"default")],16))}});var Ci=Je(_i,[["__file","icon.vue"]]);const Pt=Ge(Ci),Qe=Symbol("formContextKey"),Dt=Symbol("formItemContextKey"),Ai=(t,e={})=>{const n=a.ref(void 0),i=e.prop?n:Ot("size"),r=e.global?n:gi(),o=e.form?{size:void 0}:a.inject(Qe,void 0),s=e.formItem?{size:void 0}:a.inject(Dt,void 0);return a.computed(()=>i.value||a.unref(t)||(s==null?void 0:s.size)||(o==null?void 0:o.size)||r.value||"")},Mt=t=>{const e=Ot("disabled"),n=a.inject(Qe,void 0);return a.computed(()=>e.value||a.unref(t)||(n==null?void 0:n.disabled)||!1)},zi=()=>{const t=a.inject(Qe,void 0),e=a.inject(Dt,void 0);return{form:t,formItem:e}},Lt=Symbol("buttonGroupContextKey"),Ti=(t,e)=>{ui({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},a.computed(()=>t.type==="text"));const n=a.inject(Lt,void 0),i=Rt("button"),{form:r}=zi(),o=Ai(a.computed(()=>n==null?void 0:n.size)),s=Mt(),l=a.ref(),u=a.useSlots(),f=a.computed(()=>t.type||(n==null?void 0:n.type)||""),d=a.computed(()=>{var m,p,v;return(v=(p=t.autoInsertSpace)!=null?p:(m=i.value)==null?void 0:m.autoInsertSpace)!=null?v:!1}),c=a.computed(()=>t.tag==="button"?{ariaDisabled:s.value||t.loading,disabled:s.value||t.loading,autofocus:t.autofocus,type:t.nativeType}:{}),h=a.computed(()=>{var m;const p=(m=u.default)==null?void 0:m.call(u);if(d.value&&(p==null?void 0:p.length)===1){const v=p[0];if((v==null?void 0:v.type)===a.Text){const b=v.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(b.trim())}}return!1});return{_disabled:s,_size:o,_type:f,_ref:l,_props:c,shouldAddSpace:h,handleClick:m=>{t.nativeType==="reset"&&(r==null||r.resetFields()),e("click",m)}}},et=Te({size:Nt,disabled:Boolean,type:{type:String,values:["default","primary","success","warning","info","danger","text",""],default:""},icon:{type:zt},nativeType:{type:String,values:["button","submit","reset"],default:"button"},loading:Boolean,loadingIcon:{type:zt,default:()=>ai},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:ie([String,Object]),default:"button"}}),Oi={click:t=>t instanceof MouseEvent};function V(t,e){Ni(t)&&(t="100%");var n=Ii(t);return t=e===360?t:Math.min(e,Math.max(0,parseFloat(t))),n&&(t=parseInt(String(t*e),10)/100),Math.abs(t-e)<1e-6?1:(e===360?t=(t<0?t%e+e:t%e)/parseFloat(String(e)):t=t%e/parseFloat(String(e)),t)}function Ie(t){return Math.min(1,Math.max(0,t))}function Ni(t){return typeof t=="string"&&t.indexOf(".")!==-1&&parseFloat(t)===1}function Ii(t){return typeof t=="string"&&t.indexOf("%")!==-1}function jt(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function Be(t){return t<=1?"".concat(Number(t)*100,"%"):t}function oe(t){return t.length===1?"0"+t:String(t)}function Bi(t,e,n){return{r:V(t,255)*255,g:V(e,255)*255,b:V(n,255)*255}}function Vt(t,e,n){t=V(t,255),e=V(e,255),n=V(n,255);var i=Math.max(t,e,n),r=Math.min(t,e,n),o=0,s=0,l=(i+r)/2;if(i===r)s=0,o=0;else{var u=i-r;switch(s=l>.5?u/(2-i-r):u/(i+r),i){case t:o=(e-n)/u+(e<n?6:0);break;case e:o=(n-t)/u+2;break;case n:o=(t-e)/u+4;break}o/=6}return{h:o,s,l}}function tt(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*(6*n):n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Ri(t,e,n){var i,r,o;if(t=V(t,360),e=V(e,100),n=V(n,100),e===0)r=n,o=n,i=n;else{var s=n<.5?n*(1+e):n+e-n*e,l=2*n-s;i=tt(l,s,t+1/3),r=tt(l,s,t),o=tt(l,s,t-1/3)}return{r:i*255,g:r*255,b:o*255}}function Ft(t,e,n){t=V(t,255),e=V(e,255),n=V(n,255);var i=Math.max(t,e,n),r=Math.min(t,e,n),o=0,s=i,l=i-r,u=i===0?0:l/i;if(i===r)o=0;else{switch(i){case t:o=(e-n)/l+(e<n?6:0);break;case e:o=(n-t)/l+2;break;case n:o=(t-e)/l+4;break}o/=6}return{h:o,s:u,v:s}}function Pi(t,e,n){t=V(t,360)*6,e=V(e,100),n=V(n,100);var i=Math.floor(t),r=t-i,o=n*(1-e),s=n*(1-r*e),l=n*(1-(1-r)*e),u=i%6,f=[n,s,o,o,l,n][u],d=[l,n,n,s,o,o][u],c=[o,o,l,n,n,s][u];return{r:f*255,g:d*255,b:c*255}}function $t(t,e,n,i){var r=[oe(Math.round(t).toString(16)),oe(Math.round(e).toString(16)),oe(Math.round(n).toString(16))];return i&&r[0].startsWith(r[0].charAt(1))&&r[1].startsWith(r[1].charAt(1))&&r[2].startsWith(r[2].charAt(1))?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function Di(t,e,n,i,r){var o=[oe(Math.round(t).toString(16)),oe(Math.round(e).toString(16)),oe(Math.round(n).toString(16)),oe(Mi(i))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))&&o[3].startsWith(o[3].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function Mi(t){return Math.round(parseFloat(t)*255).toString(16)}function Ht(t){return F(t)/255}function F(t){return parseInt(t,16)}function Li(t){return{r:t>>16,g:(t&65280)>>8,b:t&255}}var nt={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function ji(t){var e={r:0,g:0,b:0},n=1,i=null,r=null,o=null,s=!1,l=!1;return typeof t=="string"&&(t=$i(t)),typeof t=="object"&&(K(t.r)&&K(t.g)&&K(t.b)?(e=Bi(t.r,t.g,t.b),s=!0,l=String(t.r).substr(-1)==="%"?"prgb":"rgb"):K(t.h)&&K(t.s)&&K(t.v)?(i=Be(t.s),r=Be(t.v),e=Pi(t.h,i,r),s=!0,l="hsv"):K(t.h)&&K(t.s)&&K(t.l)&&(i=Be(t.s),o=Be(t.l),e=Ri(t.h,i,o),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(t,"a")&&(n=t.a)),n=jt(n),{ok:s,format:t.format||l,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:n}}var Vi="[-\\+]?\\d+%?",Fi="[-\\+]?\\d*\\.\\d+%?",J="(?:".concat(Fi,")|(?:").concat(Vi,")"),it="[\\s|\\(]+(".concat(J,")[,|\\s]+(").concat(J,")[,|\\s]+(").concat(J,")\\s*\\)?"),rt="[\\s|\\(]+(".concat(J,")[,|\\s]+(").concat(J,")[,|\\s]+(").concat(J,")[,|\\s]+(").concat(J,")\\s*\\)?"),q={CSS_UNIT:new RegExp(J),rgb:new RegExp("rgb"+it),rgba:new RegExp("rgba"+rt),hsl:new RegExp("hsl"+it),hsla:new RegExp("hsla"+rt),hsv:new RegExp("hsv"+it),hsva:new RegExp("hsva"+rt),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function $i(t){if(t=t.trim().toLowerCase(),t.length===0)return!1;var e=!1;if(nt[t])t=nt[t],e=!0;else if(t==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=q.rgb.exec(t);return n?{r:n[1],g:n[2],b:n[3]}:(n=q.rgba.exec(t),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=q.hsl.exec(t),n?{h:n[1],s:n[2],l:n[3]}:(n=q.hsla.exec(t),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=q.hsv.exec(t),n?{h:n[1],s:n[2],v:n[3]}:(n=q.hsva.exec(t),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=q.hex8.exec(t),n?{r:F(n[1]),g:F(n[2]),b:F(n[3]),a:Ht(n[4]),format:e?"name":"hex8"}:(n=q.hex6.exec(t),n?{r:F(n[1]),g:F(n[2]),b:F(n[3]),format:e?"name":"hex"}:(n=q.hex4.exec(t),n?{r:F(n[1]+n[1]),g:F(n[2]+n[2]),b:F(n[3]+n[3]),a:Ht(n[4]+n[4]),format:e?"name":"hex8"}:(n=q.hex3.exec(t),n?{r:F(n[1]+n[1]),g:F(n[2]+n[2]),b:F(n[3]+n[3]),format:e?"name":"hex"}:!1)))))))))}function K(t){return!!q.CSS_UNIT.exec(String(t))}var Hi=function(){function t(e,n){e===void 0&&(e=""),n===void 0&&(n={});var i;if(e instanceof t)return e;typeof e=="number"&&(e=Li(e)),this.originalInput=e;var r=ji(e);this.originalInput=e,this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this.roundA=Math.round(100*this.a)/100,this.format=(i=n.format)!==null&&i!==void 0?i:r.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=r.ok}return t.prototype.isDark=function(){return this.getBrightness()<128},t.prototype.isLight=function(){return!this.isDark()},t.prototype.getBrightness=function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},t.prototype.getLuminance=function(){var e=this.toRgb(),n,i,r,o=e.r/255,s=e.g/255,l=e.b/255;return o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),s<=.03928?i=s/12.92:i=Math.pow((s+.055)/1.055,2.4),l<=.03928?r=l/12.92:r=Math.pow((l+.055)/1.055,2.4),.2126*n+.7152*i+.0722*r},t.prototype.getAlpha=function(){return this.a},t.prototype.setAlpha=function(e){return this.a=jt(e),this.roundA=Math.round(100*this.a)/100,this},t.prototype.isMonochrome=function(){var e=this.toHsl().s;return e===0},t.prototype.toHsv=function(){var e=Ft(this.r,this.g,this.b);return{h:e.h*360,s:e.s,v:e.v,a:this.a}},t.prototype.toHsvString=function(){var e=Ft(this.r,this.g,this.b),n=Math.round(e.h*360),i=Math.round(e.s*100),r=Math.round(e.v*100);return this.a===1?"hsv(".concat(n,", ").concat(i,"%, ").concat(r,"%)"):"hsva(".concat(n,", ").concat(i,"%, ").concat(r,"%, ").concat(this.roundA,")")},t.prototype.toHsl=function(){var e=Vt(this.r,this.g,this.b);return{h:e.h*360,s:e.s,l:e.l,a:this.a}},t.prototype.toHslString=function(){var e=Vt(this.r,this.g,this.b),n=Math.round(e.h*360),i=Math.round(e.s*100),r=Math.round(e.l*100);return this.a===1?"hsl(".concat(n,", ").concat(i,"%, ").concat(r,"%)"):"hsla(".concat(n,", ").concat(i,"%, ").concat(r,"%, ").concat(this.roundA,")")},t.prototype.toHex=function(e){return e===void 0&&(e=!1),$t(this.r,this.g,this.b,e)},t.prototype.toHexString=function(e){return e===void 0&&(e=!1),"#"+this.toHex(e)},t.prototype.toHex8=function(e){return e===void 0&&(e=!1),Di(this.r,this.g,this.b,this.a,e)},t.prototype.toHex8String=function(e){return e===void 0&&(e=!1),"#"+this.toHex8(e)},t.prototype.toHexShortString=function(e){return e===void 0&&(e=!1),this.a===1?this.toHexString(e):this.toHex8String(e)},t.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},t.prototype.toRgbString=function(){var e=Math.round(this.r),n=Math.round(this.g),i=Math.round(this.b);return this.a===1?"rgb(".concat(e,", ").concat(n,", ").concat(i,")"):"rgba(".concat(e,", ").concat(n,", ").concat(i,", ").concat(this.roundA,")")},t.prototype.toPercentageRgb=function(){var e=function(n){return"".concat(Math.round(V(n,255)*100),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},t.prototype.toPercentageRgbString=function(){var e=function(n){return Math.round(V(n,255)*100)};return this.a===1?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},t.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var e="#"+$t(this.r,this.g,this.b,!1),n=0,i=Object.entries(nt);n<i.length;n++){var r=i[n],o=r[0],s=r[1];if(e===s)return o}return!1},t.prototype.toString=function(e){var n=!!e;e=e??this.format;var i=!1,r=this.a<1&&this.a>=0,o=!n&&r&&(e.startsWith("hex")||e==="name");return o?e==="name"&&this.a===0?this.toName():this.toRgbString():(e==="rgb"&&(i=this.toRgbString()),e==="prgb"&&(i=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(i=this.toHexString()),e==="hex3"&&(i=this.toHexString(!0)),e==="hex4"&&(i=this.toHex8String(!0)),e==="hex8"&&(i=this.toHex8String()),e==="name"&&(i=this.toName()),e==="hsl"&&(i=this.toHslString()),e==="hsv"&&(i=this.toHsvString()),i||this.toHexString())},t.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},t.prototype.clone=function(){return new t(this.toString())},t.prototype.lighten=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.l+=e/100,n.l=Ie(n.l),new t(n)},t.prototype.brighten=function(e){e===void 0&&(e=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(e/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(e/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(e/100)))),new t(n)},t.prototype.darken=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.l-=e/100,n.l=Ie(n.l),new t(n)},t.prototype.tint=function(e){return e===void 0&&(e=10),this.mix("white",e)},t.prototype.shade=function(e){return e===void 0&&(e=10),this.mix("black",e)},t.prototype.desaturate=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.s-=e/100,n.s=Ie(n.s),new t(n)},t.prototype.saturate=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.s+=e/100,n.s=Ie(n.s),new t(n)},t.prototype.greyscale=function(){return this.desaturate(100)},t.prototype.spin=function(e){var n=this.toHsl(),i=(n.h+e)%360;return n.h=i<0?360+i:i,new t(n)},t.prototype.mix=function(e,n){n===void 0&&(n=50);var i=this.toRgb(),r=new t(e).toRgb(),o=n/100,s={r:(r.r-i.r)*o+i.r,g:(r.g-i.g)*o+i.g,b:(r.b-i.b)*o+i.b,a:(r.a-i.a)*o+i.a};return new t(s)},t.prototype.analogous=function(e,n){e===void 0&&(e=6),n===void 0&&(n=30);var i=this.toHsl(),r=360/n,o=[this];for(i.h=(i.h-(r*e>>1)+720)%360;--e;)i.h=(i.h+r)%360,o.push(new t(i));return o},t.prototype.complement=function(){var e=this.toHsl();return e.h=(e.h+180)%360,new t(e)},t.prototype.monochromatic=function(e){e===void 0&&(e=6);for(var n=this.toHsv(),i=n.h,r=n.s,o=n.v,s=[],l=1/e;e--;)s.push(new t({h:i,s:r,v:o})),o=(o+l)%1;return s},t.prototype.splitcomplement=function(){var e=this.toHsl(),n=e.h;return[this,new t({h:(n+72)%360,s:e.s,l:e.l}),new t({h:(n+216)%360,s:e.s,l:e.l})]},t.prototype.onBackground=function(e){var n=this.toRgb(),i=new t(e).toRgb(),r=n.a+i.a*(1-n.a);return new t({r:(n.r*n.a+i.r*i.a*(1-n.a))/r,g:(n.g*n.a+i.g*i.a*(1-n.a))/r,b:(n.b*n.a+i.b*i.a*(1-n.a))/r,a:r})},t.prototype.triad=function(){return this.polyad(3)},t.prototype.tetrad=function(){return this.polyad(4)},t.prototype.polyad=function(e){for(var n=this.toHsl(),i=n.h,r=[this],o=360/e,s=1;s<e;s++)r.push(new t({h:(i+s*o)%360,s:n.s,l:n.l}));return r},t.prototype.equals=function(e){return this.toRgbString()===new t(e).toRgbString()},t}();function Q(t,e=20){return t.mix("#141414",e).toString()}function Wi(t){const e=Mt(),n=Oe("button");return a.computed(()=>{let i={};const r=t.color;if(r){const o=new Hi(r),s=t.dark?o.tint(20).toString():Q(o,20);if(t.plain)i=n.cssVarBlock({"bg-color":t.dark?Q(o,90):o.tint(90).toString(),"text-color":r,"border-color":t.dark?Q(o,50):o.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":r,"hover-border-color":r,"active-bg-color":s,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":s}),e.value&&(i[n.cssVarBlockName("disabled-bg-color")]=t.dark?Q(o,90):o.tint(90).toString(),i[n.cssVarBlockName("disabled-text-color")]=t.dark?Q(o,50):o.tint(50).toString(),i[n.cssVarBlockName("disabled-border-color")]=t.dark?Q(o,80):o.tint(80).toString());else{const l=t.dark?Q(o,30):o.tint(30).toString(),u=o.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(i=n.cssVarBlock({"bg-color":r,"text-color":u,"border-color":r,"hover-bg-color":l,"hover-text-color":u,"hover-border-color":l,"active-bg-color":s,"active-border-color":s}),e.value){const f=t.dark?Q(o,50):o.tint(50).toString();i[n.cssVarBlockName("disabled-bg-color")]=f,i[n.cssVarBlockName("disabled-text-color")]=t.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,i[n.cssVarBlockName("disabled-border-color")]=f}}}return i})}const qi=a.defineComponent({name:"ElButton"}),Ui=a.defineComponent({...qi,props:et,emits:Oi,setup(t,{expose:e,emit:n}){const i=t,r=Wi(i),o=Oe("button"),{_ref:s,_size:l,_type:u,_disabled:f,_props:d,shouldAddSpace:c,handleClick:h}=Ti(i,n),g=a.computed(()=>[o.b(),o.m(u.value),o.m(l.value),o.is("disabled",f.value),o.is("loading",i.loading),o.is("plain",i.plain),o.is("round",i.round),o.is("circle",i.circle),o.is("text",i.text),o.is("link",i.link),o.is("has-bg",i.bg)]);return e({ref:s,size:l,type:u,disabled:f,shouldAddSpace:c}),(m,p)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(m.tag),a.mergeProps({ref_key:"_ref",ref:s},a.unref(d),{class:a.unref(g),style:a.unref(r),onClick:a.unref(h)}),{default:a.withCtx(()=>[m.loading?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[m.$slots.loading?a.renderSlot(m.$slots,"loading",{key:0}):(a.openBlock(),a.createBlock(a.unref(Pt),{key:1,class:a.normalizeClass(a.unref(o).is("loading"))},{default:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(m.loadingIcon)))]),_:1},8,["class"]))],64)):m.icon||m.$slots.icon?(a.openBlock(),a.createBlock(a.unref(Pt),{key:1},{default:a.withCtx(()=>[m.icon?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(m.icon),{key:0})):a.renderSlot(m.$slots,"icon",{key:1})]),_:3})):a.createCommentVNode("v-if",!0),m.$slots.default?(a.openBlock(),a.createElementBlock("span",{key:2,class:a.normalizeClass({[a.unref(o).em("text","expand")]:a.unref(c)})},[a.renderSlot(m.$slots,"default")],2)):a.createCommentVNode("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var Xi=Je(Ui,[["__file","button.vue"]]);const Yi={size:et.size,type:et.type},Ki=a.defineComponent({name:"ElButtonGroup"}),Gi=a.defineComponent({...Ki,props:Yi,setup(t){const e=t;a.provide(Lt,a.reactive({size:a.toRef(e,"size"),type:a.toRef(e,"type")}));const n=Oe("button");return(i,r)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(`${a.unref(n).b("group")}`)},[a.renderSlot(i.$slots,"default")],2))}});var Wt=Je(Gi,[["__file","button-group.vue"]]);const Zi=Ge(Xi,{ButtonGroup:Wt});li(Wt);const Ji={jpg:"image",jpeg:"image",png:"image",bmp:"image",gif:"image",svg:"image",webp:"image",mp4:"video",avi:"video",mov:"video",wmv:"video",flv:"video",mkv:"video",webm:"video",pdf:"pdf"},qt=a.ref(),Qi={viewBox:"0 0 16 16",width:"1em",height:"1em"},er=[a.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M7.56 1h.88l6.54 12.26l-.44.74H1.44L1 13.26zM8 2.28L2.28 13H13.7zM8.625 12v-1h-1.25v1zm-1.25-2V6h1.25v4z","clip-rule":"evenodd"},null,-1)];function tr(t,e){return a.openBlock(),a.createElementBlock("svg",Qi,[...er])}const nr={name:"codicon-warning",render:tr},ir={viewBox:"0 0 24 24",width:"1em",height:"1em"},rr=[a.createStaticVNode('<rect width="10" height="10" x="1" y="1" fill="currentColor" rx="1"><animate id="svgSpinnersBlocksShuffle30" fill="freeze" attributeName="x" begin="0;svgSpinnersBlocksShuffle3b.end" dur="0.2s" values="1;13"></animate><animate id="svgSpinnersBlocksShuffle31" fill="freeze" attributeName="y" begin="svgSpinnersBlocksShuffle38.end" dur="0.2s" values="1;13"></animate><animate id="svgSpinnersBlocksShuffle32" fill="freeze" attributeName="x" begin="svgSpinnersBlocksShuffle39.end" dur="0.2s" values="13;1"></animate><animate id="svgSpinnersBlocksShuffle33" fill="freeze" attributeName="y" begin="svgSpinnersBlocksShuffle3a.end" dur="0.2s" values="13;1"></animate></rect><rect width="10" height="10" x="1" y="13" fill="currentColor" rx="1"><animate id="svgSpinnersBlocksShuffle34" fill="freeze" attributeName="y" begin="svgSpinnersBlocksShuffle30.end" dur="0.2s" values="13;1"></animate><animate id="svgSpinnersBlocksShuffle35" fill="freeze" attributeName="x" begin="svgSpinnersBlocksShuffle31.end" dur="0.2s" values="1;13"></animate><animate id="svgSpinnersBlocksShuffle36" fill="freeze" attributeName="y" begin="svgSpinnersBlocksShuffle32.end" dur="0.2s" values="1;13"></animate><animate id="svgSpinnersBlocksShuffle37" fill="freeze" attributeName="x" begin="svgSpinnersBlocksShuffle33.end" dur="0.2s" values="13;1"></animate></rect><rect width="10" height="10" x="13" y="13" fill="currentColor" rx="1"><animate id="svgSpinnersBlocksShuffle38" fill="freeze" attributeName="x" begin="svgSpinnersBlocksShuffle34.end" dur="0.2s" values="13;1"></animate><animate id="svgSpinnersBlocksShuffle39" fill="freeze" attributeName="y" begin="svgSpinnersBlocksShuffle35.end" dur="0.2s" values="13;1"></animate><animate id="svgSpinnersBlocksShuffle3a" fill="freeze" attributeName="x" begin="svgSpinnersBlocksShuffle36.end" dur="0.2s" values="1;13"></animate><animate id="svgSpinnersBlocksShuffle3b" fill="freeze" attributeName="y" begin="svgSpinnersBlocksShuffle37.end" dur="0.2s" values="1;13"></animate></rect>',3)];function or(t,e){return a.openBlock(),a.createElementBlock("svg",ir,[...rr])}const ar={name:"svg-spinners-blocks-shuffle3",render:or};function sr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ut(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function Xt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ut(Object(n),!0).forEach(function(i){sr(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ut(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function lr(t,e){if(t==null)return{};var n={},i=Object.keys(t),r,o;for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&(n[r]=t[r]);return n}function cr(t,e){if(t==null)return{};var n=lr(t,e),i,r;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)i=o[r],!(e.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(t,i)&&(n[i]=t[i])}return n}function ur(t,e){return fr(t)||dr(t,e)||hr(t,e)||pr()}function fr(t){if(Array.isArray(t))return t}function dr(t,e){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(t)))){var n=[],i=!0,r=!1,o=void 0;try{for(var s=t[Symbol.iterator](),l;!(i=(l=s.next()).done)&&(n.push(l.value),!(e&&n.length===e));i=!0);}catch(u){r=!0,o=u}finally{try{!i&&s.return!=null&&s.return()}finally{if(r)throw o}}return n}}function hr(t,e){if(t){if(typeof t=="string")return Yt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Yt(t,e)}}function Yt(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function pr(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
6
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Kt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function Gt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Kt(Object(n),!0).forEach(function(i){gr(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Kt(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function mr(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(i){return e.reduceRight(function(r,o){return o(r)},i)}}function we(t){return function e(){for(var n=this,i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return r.length>=t.length?t.apply(this,r):function(){for(var s=arguments.length,l=new Array(s),u=0;u<s;u++)l[u]=arguments[u];return e.apply(n,[].concat(r,l))}}}function Re(t){return{}.toString.call(t).includes("Object")}function vr(t){return!Object.keys(t).length}function xe(t){return typeof t=="function"}function br(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function yr(t,e){return Re(e)||ee("changeType"),Object.keys(e).some(function(n){return!br(t,n)})&&ee("changeField"),e}function wr(t){xe(t)||ee("selectorType")}function xr(t){xe(t)||Re(t)||ee("handlerType"),Re(t)&&Object.values(t).some(function(e){return!xe(e)})&&ee("handlersType")}function kr(t){t||ee("initialIsRequired"),Re(t)||ee("initialType"),vr(t)&&ee("initialContent")}function Sr(t,e){throw new Error(t[e]||t.default)}var Er={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},ee=we(Sr)(Er),Pe={changes:yr,selector:wr,handler:xr,initial:kr};function _r(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Pe.initial(t),Pe.handler(e);var n={current:t},i=we(zr)(n,e),r=we(Ar)(n),o=we(Pe.changes)(t),s=we(Cr)(n);function l(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(d){return d};return Pe.selector(f),f(n.current)}function u(f){mr(i,r,o,s)(f)}return[l,u]}function Cr(t,e){return xe(e)?e(t.current):e}function Ar(t,e){return t.current=Gt(Gt({},t.current),e),e}function zr(t,e,n){return xe(e)?e(t.current):Object.keys(n).forEach(function(i){var r;return(r=e[i])===null||r===void 0?void 0:r.call(e,t.current[i])}),n}var Tr={create:_r},Or={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs"}};function Nr(t){return function e(){for(var n=this,i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return r.length>=t.length?t.apply(this,r):function(){for(var s=arguments.length,l=new Array(s),u=0;u<s;u++)l[u]=arguments[u];return e.apply(n,[].concat(r,l))}}}function Ir(t){return{}.toString.call(t).includes("Object")}function Br(t){return t||Jt("configIsRequired"),Ir(t)||Jt("configType"),t.urls?(Rr(),{paths:{vs:t.urls.monacoBase}}):t}function Rr(){console.warn(Zt.deprecation)}function Pr(t,e){throw new Error(t[e]||t.default)}var Zt={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
7
7
  You are using deprecated way of configuration.
8
8
 
9
9
  Instead of using
@@ -12,7 +12,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
12
12
  monaco.config({ paths: { vs: '...' } })
13
13
 
14
14
  For more please check the link https://github.com/suren-atoyan/monaco-loader#config
15
- `},Jt=Or(Pr)(Zt),Rr={config:Ir},Dr=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return function(r){return n.reduceRight(function(a,s){return s(a)},r)}};function Qt(t,e){return Object.keys(e).forEach(function(n){e[n]instanceof Object&&t[n]&&Object.assign(e[n],Qt(t[n],e[n]))}),Xt(Xt({},t),e)}var Mr={type:"cancelation",msg:"operation is manually canceled"};function at(t){var e=!1,n=new Promise(function(i,r){t.then(function(a){return e?r(Mr):i(a)}),t.catch(r)});return n.cancel=function(){return e=!0},n}var Lr=zr.create({config:Tr,isInitialized:!1,resolve:null,reject:null,monaco:null}),en=cr(Lr,2),ke=en[0],De=en[1];function jr(t){var e=Rr.config(t),n=e.monaco,i=lr(e,["monaco"]);De(function(r){return{config:Qt(r.config,i),monaco:n}})}function Fr(){var t=ke(function(e){var n=e.monaco,i=e.isInitialized,r=e.resolve;return{monaco:n,isInitialized:i,resolve:r}});if(!t.isInitialized){if(De({isInitialized:!0}),t.monaco)return t.resolve(t.monaco),at(ot);if(window.monaco&&window.monaco.editor)return tn(window.monaco),t.resolve(window.monaco),at(ot);Dr(Vr,Hr)(Wr)}return at(ot)}function Vr(t){return document.body.appendChild(t)}function $r(t){var e=document.createElement("script");return t&&(e.src=t),e}function Hr(t){var e=ke(function(i){var r=i.config,a=i.reject;return{config:r,reject:a}}),n=$r("".concat(e.config.paths.vs,"/loader.js"));return n.onload=function(){return t()},n.onerror=e.reject,n}function Wr(){var t=ke(function(n){var i=n.config,r=n.resolve,a=n.reject;return{config:i,resolve:r,reject:a}}),e=window.require;e.config(t.config),e(["vs/editor/editor.main"],function(n){tn(n),t.resolve(n)},function(n){t.reject(n)})}function tn(t){ke().monaco||De({monaco:t})}function qr(){return ke(function(t){var e=t.monaco;return e})}var ot=new Promise(function(t,e){return De({resolve:t,reject:e})}),nn={config:jr,init:Fr,__getMonacoInstance:qr};const Ur="https://unpkg.com",Xr="https://cdn.jsdelivr.net/npm",Yr="https://esm.sh",Kr="https://cdnjs.cloudflare.com/ajax/libs",rn="https://cdn.bootcdn.net/ajax/libs",an="https://lib.baomitu.com",on="https://cdn.staticfile.org";async function Gr(t,e){const{version:n,file:i}=e??{},r=[],a=`${t}${n?`@${n}`:""}`,s=i||"/package.json",l=`${Ur}/${a}`,u=`${Xr}/${a}`,f=`${Yr}/${a}`;if(r.push([l,`${l}${s}`],[u,`${u}${s}`],[f,`${f}${s}`]),n){const g=`${t}/${n}`,m=`${Kr}/${g}`,p=`${rn}/${g}`,v=`${an}/${g}`,b=`${on}/${g}`;r.push([m,`${m}${i||""}`],[p,`${p}${i||""}`],[v,`${v}${i||""}`],[b,`${b}${i||""}`])}const d=new AbortController,c={method:"get",signal:d.signal},h=await Promise.any(r.map(async([g,m])=>fetch(m,c).then(async p=>{if(p.ok){if(g.startsWith(rn)||g.startsWith(an)||g.startsWith(on)){const v=await p.text();if(v.length<15&&v.endsWith("Not Found"))throw new Error(g)}return g}throw new Error(g)})));return d.abort(),h}const Zr={"@floating-ui/vue":"^1.0.6","@formkit/auto-animate":"^0.8.2","@iconify/json":"^2.2.208","@mixte/snippets":"1.11.0","@mixte/use":"1.11.0","@monaco-editor/loader":"^1.4.0","@moomfe/eslint-config":"^3.0.0","@types/fs-extra":"^11.0.4","@types/lodash-es":"^4.17.12","@types/node":"^20.12.11","@types/react":"^18.3.2","@types/spark-md5":"^3.0.4","@unplugin-vue-ce/sub-style":"1.0.0-beta.21","@vitejs/plugin-react":"^4.2.1","@vitejs/plugin-vue":"^5.0.4","@vitejs/plugin-vue-jsx":"^3.1.0","@vitest/coverage-v8":"^1.6.0","@vitest/ui":"^1.6.0","@vue/compiler-sfc":"^3.4.27","@vueuse/core":"^10.9.0","@vueuse/math":"^10.9.0",axios:"^1.6.8",chalk:"^5.3.0","element-plus":"^2.7.2",eslint:"^9.2.0","fast-glob":"^3.3.2","fs-extra":"^11.2.0",jsdom:"^24.0.0","lint-staged":"^15.2.2","lodash-es":"^4.17.21","magic-string":"^0.30.10",mixte:"1.11.0","monaco-editor":"^0.48.0","naive-ui":"^2.38.2",pnpm:"^9.1.1","pretty-bytes":"^6.1.1",react:"^18.3.1","react-dom":"^18.3.1",rollup:"^4.17.2","rollup-plugin-dts":"^6.1.0",sass:"^1.77.1",shiki:"^1.5.1","simple-git-hooks":"^2.11.1",slate:"^0.103.0","slate-history":"^0.100.0","slate-react":"^0.102.0","spark-md5":"^3.0.2",tsx:"^4.10.1","type-fest":"^4.18.2",typescript:"^5.4.5",unocss:"^0.60.2","unocss-preset-extra":"^0.5.3","unocss-preset-scrollbar":"^0.3.1","unplugin-auto-import":"^0.17.6","unplugin-icons":"^0.19.0","unplugin-vue-components":"^0.27.0",veaury:"^2.3.18",viewerjs:"^1.11.6",vite:"5.2.11",vitepress:"1.1.4",vitest:"^1.6.0",vue:"^3.4.27","vue-demi":"^0.14.7"};function Jr(t,e){let n,i,r;const a=o.ref(!0),s=()=>{a.value=!0,r()};o.watch(t,s,{flush:"sync"});const l=typeof e=="function"?e:e.get,u=typeof e=="function"?void 0:e.set,f=o.customRef((d,c)=>(i=d,r=c,{get(){return a.value&&(n=l(),a.value=!1),i(),n},set(h){u==null||u(h)}}));return Object.isExtensible(f)&&(f.trigger=s),f}function oe(t){return o.getCurrentScope()?(o.onScopeDispose(t),!0):!1}function Me(){const t=new Set,e=r=>{t.delete(r)};return{on:r=>{t.add(r);const a=()=>e(r);return oe(a),{off:a}},off:e,trigger:(...r)=>Promise.all(Array.from(t).map(a=>a(...r)))}}function A(t){return typeof t=="function"?t():o.unref(t)}function Qr(t){if(!o.isRef(t))return o.reactive(t);const e=new Proxy({},{get(n,i,r){return o.unref(Reflect.get(t.value,i,r))},set(n,i,r){return o.isRef(t.value[i])&&!o.isRef(r)?t.value[i].value=r:t.value[i]=r,!0},deleteProperty(n,i){return Reflect.deleteProperty(t.value,i)},has(n,i){return Reflect.has(t.value,i)},ownKeys(){return Object.keys(t.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return o.reactive(e)}const sn=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ea=t=>t!=null,ta=Object.prototype.toString,ln=t=>ta.call(t)==="[object Object]",na=()=>{};function ia(t,e){function n(...i){return new Promise((r,a)=>{Promise.resolve(t(()=>e.apply(this,i),{fn:e,thisArg:this,args:i})).then(r).catch(a)})}return n}const ra=t=>t();function cn(t,e=!1,n="Timeout"){return new Promise((i,r)=>{setTimeout(e?()=>r(n):i,t)})}function aa(t){return o.getCurrentInstance()}function oa(t,e=!0,n){aa()?o.onMounted(t,n):e?t():o.nextTick(t)}function st(t,e=!1){function n(c,{flush:h="sync",deep:g=!1,timeout:m,throwOnTimeout:p}={}){let v=null;const E=[new Promise(x=>{v=o.watch(t,_=>{c(_)!==e&&(v==null||v(),x(_))},{flush:h,deep:g,immediate:!0})})];return m!=null&&E.push(cn(m,p).then(()=>A(t)).finally(()=>v==null?void 0:v())),Promise.race(E)}function i(c,h){if(!o.isRef(c))return n(_=>_===c,h);const{flush:g="sync",deep:m=!1,timeout:p,throwOnTimeout:v}=h??{};let b=null;const x=[new Promise(_=>{b=o.watch([t,c],([D,M])=>{e!==(D===M)&&(b==null||b(),_(D))},{flush:g,deep:m,immediate:!0})})];return p!=null&&x.push(cn(p,v).then(()=>A(t)).finally(()=>(b==null||b(),A(t)))),Promise.race(x)}function r(c){return n(h=>!!h,c)}function a(c){return i(null,c)}function s(c){return i(void 0,c)}function l(c){return n(Number.isNaN,c)}function u(c,h){return n(g=>{const m=Array.from(g);return m.includes(c)||m.includes(A(c))},h)}function f(c){return d(1,c)}function d(c=1,h){let g=-1;return n(()=>(g+=1,g>=c),h)}return Array.isArray(A(t))?{toMatch:n,toContains:u,changed:f,changedTimes:d,get not(){return st(t,!e)}}:{toMatch:n,toBe:i,toBeTruthy:r,toBeNull:a,toBeNaN:l,toBeUndefined:s,changed:f,changedTimes:d,get not(){return st(t,!e)}}}function sa(t){return st(t)}function la(t,e,n){return o.watch(t,e,{...n,deep:!0})}function un(t,e,n={}){const{eventFilter:i=ra,...r}=n,a=ia(i,e);let s,l,u;if(r.flush==="sync"){const f=o.ref(!1);l=()=>{},s=d=>{f.value=!0,d(),f.value=!1},u=o.watch(t,(...d)=>{f.value||a(...d)},r)}else{const f=[],d=o.ref(0),c=o.ref(0);l=()=>{d.value=c.value},f.push(o.watch(t,()=>{c.value++},{...r,flush:"sync"})),s=h=>{const g=c.value;h(),d.value+=c.value-g},f.push(o.watch(t,(...h)=>{const g=d.value>0&&d.value===c.value;d.value=0,c.value=0,!g&&a(...h)},r)),u=()=>{f.forEach(h=>h())}}return{stop:u,ignoreUpdates:s,ignorePrevAsyncUpdates:l}}function te(t){var e;const n=A(t);return(e=n==null?void 0:n.$el)!=null?e:n}const Le=sn?window:void 0,ca=sn?window.document:void 0;function L(...t){let e,n,i,r;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,i,r]=t,e=Le):[e,n,i,r]=t,!e)return na;Array.isArray(n)||(n=[n]),Array.isArray(i)||(i=[i]);const a=[],s=()=>{a.forEach(d=>d()),a.length=0},l=(d,c,h,g)=>(d.addEventListener(c,h,g),()=>d.removeEventListener(c,h,g)),u=o.watch(()=>[te(e),A(r)],([d,c])=>{if(s(),!d)return;const h=ln(c)?{...c}:c;a.push(...n.flatMap(g=>i.map(m=>l(d,g,m,h))))},{immediate:!0,flush:"post"}),f=()=>{u(),s()};return oe(f),f}function ua(){const t=o.ref(!1),e=o.getCurrentInstance();return e&&o.onMounted(()=>{t.value=!0},e),t}function fn(t){const e=ua();return o.computed(()=>(e.value,!!t()))}function dn(t,e,n={}){const{window:i=Le,...r}=n;let a;const s=fn(()=>i&&"MutationObserver"in i),l=()=>{a&&(a.disconnect(),a=void 0)},u=o.computed(()=>{const h=A(t),g=(Array.isArray(h)?h:[h]).map(te).filter(ea);return new Set(g)}),f=o.watch(()=>u.value,h=>{l(),s.value&&i&&h.size&&(a=new MutationObserver(e),h.forEach(g=>a.observe(g,r)))},{immediate:!0,flush:"post"}),d=()=>a==null?void 0:a.takeRecords(),c=()=>{l(),f()};return oe(c),{isSupported:s,stop:c,takeRecords:d}}function lt(t){const e=o.getCurrentInstance(),n=Jr(()=>null,()=>e.proxy.$el);return o.onUpdated(n.trigger),o.onMounted(n.trigger),n}function fa(t,e,n={}){const{window:i=Le,...r}=n;let a;const s=fn(()=>i&&"ResizeObserver"in i),l=()=>{a&&(a.disconnect(),a=void 0)},u=o.computed(()=>Array.isArray(t)?t.map(c=>te(c)):[te(t)]),f=o.watch(u,c=>{if(l(),s.value&&i){a=new ResizeObserver(e);for(const h of c)h&&a.observe(h,r)}},{immediate:!0,flush:"post"}),d=()=>{l(),f()};return oe(d),{isSupported:s,stop:d}}function da(t,e={width:0,height:0},n={}){const{window:i=Le,box:r="content-box"}=n,a=o.computed(()=>{var c,h;return(h=(c=te(t))==null?void 0:c.namespaceURI)==null?void 0:h.includes("svg")}),s=o.ref(e.width),l=o.ref(e.height),{stop:u}=fa(t,([c])=>{const h=r==="border-box"?c.borderBoxSize:r==="content-box"?c.contentBoxSize:c.devicePixelContentBoxSize;if(i&&a.value){const g=te(t);if(g){const m=i.getComputedStyle(g);s.value=Number.parseFloat(m.width),l.value=Number.parseFloat(m.height)}}else if(h){const g=Array.isArray(h)?h:[h];s.value=g.reduce((m,{inlineSize:p})=>m+p,0),l.value=g.reduce((m,{blockSize:p})=>m+p,0)}else s.value=c.contentRect.width,l.value=c.contentRect.height},n);oa(()=>{const c=te(t);c&&(s.value="offsetWidth"in c?c.offsetWidth:e.width,l.value="offsetHeight"in c?c.offsetHeight:e.height)});const f=o.watch(()=>te(t),c=>{s.value=c?e.width:0,l.value=c?e.height:0});function d(){u(),f()}return{width:s,height:l,stop:d}}function ct(t,e){A(t)&&e(A(t))}function ha(t){let e=[];for(let n=0;n<t.length;++n)e=[...e,[t.start(n),t.end(n)]];return e}function ut(t){return Array.from(t).map(({label:e,kind:n,language:i,mode:r,activeCues:a,cues:s,inBandMetadataTrackDispatchType:l},u)=>({id:u,label:e,kind:n,language:i,mode:r,activeCues:a,cues:s,inBandMetadataTrackDispatchType:l}))}const pa={src:"",tracks:[]};function ga(t,e={}){e={...pa,...e};const{document:n=ca}=e,i=o.ref(0),r=o.ref(0),a=o.ref(!1),s=o.ref(1),l=o.ref(!1),u=o.ref(!1),f=o.ref(!1),d=o.ref(1),c=o.ref(!1),h=o.ref([]),g=o.ref([]),m=o.ref(-1),p=o.ref(!1),v=o.ref(!1),b=n&&"pictureInPictureEnabled"in n,E=Me(),x=y=>{ct(t,z=>{if(y){const j=typeof y=="number"?y:y.id;z.textTracks[j].mode="disabled"}else for(let j=0;j<z.textTracks.length;++j)z.textTracks[j].mode="disabled";m.value=-1})},_=(y,z=!0)=>{ct(t,j=>{const Z=typeof y=="number"?y:y.id;z&&x(),j.textTracks[Z].mode="showing",m.value=Z})},D=()=>new Promise((y,z)=>{ct(t,async j=>{b&&(p.value?n.exitPictureInPicture().then(y).catch(z):j.requestPictureInPicture().then(y).catch(z))})});o.watchEffect(()=>{if(!n)return;const y=A(t);if(!y)return;const z=A(e.src);let j=[];z&&(typeof z=="string"?j=[{src:z}]:Array.isArray(z)?j=z:ln(z)&&(j=[z]),y.querySelectorAll("source").forEach(Z=>{Z.removeEventListener("error",E.trigger),Z.remove()}),j.forEach(({src:Z,type:xt})=>{const ye=n.createElement("source");ye.setAttribute("src",Z),ye.setAttribute("type",xt||""),ye.addEventListener("error",E.trigger),y.appendChild(ye)}),y.load())}),oe(()=>{const y=A(t);y&&y.querySelectorAll("source").forEach(z=>z.removeEventListener("error",E.trigger))}),o.watch([t,s],()=>{const y=A(t);y&&(y.volume=s.value)}),o.watch([t,v],()=>{const y=A(t);y&&(y.muted=v.value)}),o.watch([t,d],()=>{const y=A(t);y&&(y.playbackRate=d.value)}),o.watchEffect(()=>{if(!n)return;const y=A(e.tracks),z=A(t);!y||!y.length||!z||(z.querySelectorAll("track").forEach(j=>j.remove()),y.forEach(({default:j,kind:Z,label:xt,src:ye,srcLang:ko},So)=>{const ce=n.createElement("track");ce.default=j||!1,ce.kind=Z,ce.label=xt,ce.src=ye,ce.srclang=ko,ce.default&&(m.value=So),z.appendChild(ce)}))});const{ignoreUpdates:M}=un(i,y=>{const z=A(t);z&&(z.currentTime=y)}),{ignoreUpdates:I}=un(f,y=>{const z=A(t);z&&(y?z.play():z.pause())});L(t,"timeupdate",()=>M(()=>i.value=A(t).currentTime)),L(t,"durationchange",()=>r.value=A(t).duration),L(t,"progress",()=>h.value=ha(A(t).buffered)),L(t,"seeking",()=>a.value=!0),L(t,"seeked",()=>a.value=!1),L(t,["waiting","loadstart"],()=>{l.value=!0,I(()=>f.value=!1)}),L(t,"loadeddata",()=>l.value=!1),L(t,"playing",()=>{l.value=!1,u.value=!1,I(()=>f.value=!0)}),L(t,"ratechange",()=>d.value=A(t).playbackRate),L(t,"stalled",()=>c.value=!0),L(t,"ended",()=>u.value=!0),L(t,"pause",()=>I(()=>f.value=!1)),L(t,"play",()=>I(()=>f.value=!0)),L(t,"enterpictureinpicture",()=>p.value=!0),L(t,"leavepictureinpicture",()=>p.value=!1),L(t,"volumechange",()=>{const y=A(t);y&&(s.value=y.volume,v.value=y.muted)});const Y=[],ne=o.watch([t],()=>{const y=A(t);y&&(ne(),Y[0]=L(y.textTracks,"addtrack",()=>g.value=ut(y.textTracks)),Y[1]=L(y.textTracks,"removetrack",()=>g.value=ut(y.textTracks)),Y[2]=L(y.textTracks,"change",()=>g.value=ut(y.textTracks)))});return oe(()=>Y.forEach(y=>y())),{currentTime:i,duration:r,waiting:l,seeking:a,ended:u,stalled:c,buffered:h,playing:f,rate:d,volume:s,muted:v,tracks:g,selectedTrack:m,enableTrack:_,disableTrack:x,supportsPictureInPicture:b,togglePictureInPicture:D,isPictureInPicture:p,onSourceError:E.on}}function ft(t){const e=o.ref(),n=()=>{e.value&&URL.revokeObjectURL(e.value),e.value=void 0};return o.watch(()=>A(t),i=>{n(),i&&(e.value=URL.createObjectURL(i))},{immediate:!0}),oe(n),o.readonly(e)}function je(t,e){return Math.floor(Math.random()*(e-t+1)+t)}function ma(){return String.fromCharCode(je(97,122))}function va(){return String.fromCharCode(je(65,90))}function hn(t=12,e={}){const{lowercase:n=!0,uppercase:i=!1,number:r=!1}=e,a=[];let s;if(n&&a.push("l"),i&&a.push("u"),r&&a.push("n"),!(s=a.length))throw new Error("???");let l="";for(;t-- >0;){const u=s>1?je(0,s-1):0,f=a[u];f==="l"?l+=ma():f==="u"?l+=va():f==="n"&&(l+=je(0,9))}return l}function ba(){return hn(1,{uppercase:!0})+hn(17,{uppercase:!0,number:!0})}const ya=typeof window<"u";function wa(t,e,n){let i;const r=()=>{i==null||i.stop(),i=void 0},a=o.watch(t,(s,l,u)=>{s?(i&&r(),i=o.effectScope(),i.run(()=>e(s,l,u))):r()},n);return()=>{r(),a()}}function Fe(t,e,n){return wa(t,e,{...n,immediate:!0})}function xa(t,e={}){const{initialData:n,immediate:i=!1,shallow:r=!1}=e,a=Me(),s=Me(),l=Me(),u=o.shallowRef(),f=(r?o.shallowRef:o.ref)(),d=o.shallowRef(),c=o.ref(!1),h=o.ref(!1),g=o.ref(!1),m=o.ref(!1),p=o.ref(0);function v(){p.value=0}let b=0;async function E(...D){const M=++b;c.value=!0,h.value=!0,g.value=!1,m.value=!1,(A(e.resetOnExecute)??!0)&&(u.value=void 0,f.value=A(n),d.value=void 0);try{const I=await t(...D);return M!==b||(u.value=I,f.value=I==null?void 0:I.data,h.value=!1,g.value=!0,m.value=!0,p.value++,a.trigger(I),l.trigger()),I}catch(I){throw M!==b||(h.value=!1,g.value=!0,m.value=!1,d.value=I,s.trigger(I),l.trigger()),I}}f.value=A(n),i&&E();const x={response:u,data:f,error:d,isExecuted:c,isLoading:h,isFinished:g,isSuccess:m,successCount:p,clearSuccessCount:v,execute:E,onSuccess:a.on,onError:s.on,onFinally:l.on},_=Qr(o.computed(()=>({...x,response:o.computed(()=>o.shallowRef(u.value)),data:o.computed(()=>o.shallowRef(f.value)),error:o.computed(()=>o.shallowRef(d.value))})));return{...x,reactive:_}}function ka(t,e={}){return xa(t,e).reactive}const Sa={"size-full":"",flex:"~ justify-center items-center",pos:"absolute top-0 left-0","c-neutral":"","bg-dark":""},Ea={key:0,flex:"~ col gap-2 items-center"},_a={key:0,"text-sm":""},Ca={flex:"~ col justify-center items-center gap-3","c-gray":""},Aa=o.defineComponent({__name:"Code",props:{file:{type:null},fileExt:{type:String}},setup(t){const e=t,n=o.ref(),{width:i,height:r}=da(n),a=o.ref(!1),s=o.ref(!1),l=o.ref(!1),u=o.shallowRef(),f=o.shallowRef(),d=o.shallowRef(),c=o.ref(),h=o.ref(),g=o.ref(0),m=ka(()=>Gr("monaco-editor",{version:Zr["monaco-editor"].replace(/^\^/g,""),file:"/min/vs/basic-languages/css/css.js"}),{immediate:!0});async function p(){var b,E;(b=f.value)==null||b.dispose(),s.value=!0,l.value=!1,await sa(()=>m.isSuccess).toBeTruthy(),nn.config({"vs/nls":{availableLanguages:{"*":"zh-cn"}},paths:{vs:`${m.response}/min/vs`}});try{u.value=await nn.init(),d.value??(d.value=u.value.languages.getLanguages()),c.value=(E=d.value.find(x=>{var _;return(_=x.extensions)==null?void 0:_.includes(`.${e.fileExt}`)}))==null?void 0:E.id,s.value=!1,(l.value=!c.value)||v()}catch{s.value=!1}}async function v(){l.value=!1,await o.nextTick(),f.value=u.value.editor.create(n.value,{value:h.value,language:c.value||"plaintext",tabSize:2,multiCursorModifier:"ctrlCmd",minimap:{showSlider:"always"},padding:{top:10},wordWrap:"on",theme:"vs-dark",readOnly:!0})}return Fe(()=>e.file,(b,E,x)=>{a.value=!0;const _=new FileReader;_.onprogress=D=>{g.value=Math.round(D.loaded/D.total*100)},_.onload=async D=>{var M;a.value=!1,h.value=(M=D.target)==null?void 0:M.result,p()},_.readAsText(b),x(()=>{_.abort()})}),Fe(qt,b=>{const E='[data-name^="vs/editor"]';function x(){b.querySelectorAll(E).forEach(_=>{b.removeChild(_)}),Array.from(document.querySelectorAll(E)).forEach(_=>{b.appendChild(_.cloneNode(!0))})}dn(document.head,x,{childList:!0}),x()}),la(()=>({width:i.value,height:r.value}),b=>{var E;(E=f.value)==null||E.layout(b)}),o.onUnmounted(()=>{var b;(b=f.value)==null||b.dispose()}),(b,E)=>{const x=ar,_=tr,D=Gi;return o.openBlock(),o.createElementBlock("div",Sa,[o.createCommentVNode(" 加载中 "),o.unref(a)||o.unref(s)?(o.openBlock(),o.createElementBlock("div",Ea,[o.createVNode(x),o.unref(a)?(o.openBlock(),o.createElementBlock("div",_a,"文件读取中, 当前进度 "+o.toDisplayString(o.unref(g))+"%",1)):o.createCommentVNode("v-if",!0)])):o.unref(l)?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createCommentVNode(" 不支持的文件 "),o.createElementVNode("div",Ca,[o.createVNode(_,{class:"text-5xl text-yellow"}),o.createTextVNode(" 此文件类型暂不支持预览 "),o.createVNode(D,{class:"rounded-sm",color:"#3177d3",onClick:E[0]||(E[0]=M=>v())},{default:o.withCtx(()=>[o.createTextVNode("仍然打开")]),_:1})])],2112)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[o.createCommentVNode(" 编辑器 "),o.createElementVNode("div",{ref_key:"editorRef",ref:n,"size-full":""},null,512)],2112))])}}}),za='[data-v-a632488a],[data-v-a632488a]:before,[data-v-a632488a]:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }[data-v-a632488a]::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.absolute[data-v-a632488a],[pos~=absolute][data-v-a632488a]{position:absolute}.left-0[data-v-a632488a],[pos~=left-0][data-v-a632488a]{left:0}.top-0[data-v-a632488a],[pos~=top-0][data-v-a632488a]{top:0}[flex~="~"][data-v-a632488a]{display:flex}[flex~=col][data-v-a632488a]{flex-direction:column}.items-center[data-v-a632488a],[flex~=items-center][data-v-a632488a]{align-items:center}.justify-center[data-v-a632488a],[flex~=justify-center][data-v-a632488a]{justify-content:center}.gap-2[data-v-a632488a],[flex~=gap-2][data-v-a632488a]{gap:.5rem}.gap-3[data-v-a632488a],[flex~=gap-3][data-v-a632488a]{gap:.75rem}.rounded-sm[data-v-a632488a]{border-radius:.125rem}[bg-dark=""][data-v-a632488a]{--un-bg-opacity:1;background-color:rgb(34 34 34 / var(--un-bg-opacity))}.text-5xl[data-v-a632488a]{font-size:3rem;line-height:1}[text-sm=""][data-v-a632488a]{font-size:.875rem;line-height:1.25rem}.text-yellow[data-v-a632488a]{--un-text-opacity:1;color:rgb(250 204 21 / var(--un-text-opacity))}.c-neutral[data-v-a632488a],[c-neutral=""][data-v-a632488a]{--un-text-opacity:1;color:rgb(163 163 163 / var(--un-text-opacity))}[c-gray=""][data-v-a632488a]{--un-text-opacity:1;color:rgb(156 163 175 / var(--un-text-opacity))}[color~="#3177d3"][data-v-a632488a]{--un-text-opacity:1;color:rgb(49 119 211 / var(--un-text-opacity))}.size-full[data-v-a632488a],[size-full=""][data-v-a632488a]{width:100%;height:100%}',Se=(t,e)=>{const n=t.__vccOpts||t;for(const[i,r]of e)n[i]=r;return n},Ta=Se(Aa,[["styles",[za]],["__scopeId","data-v-a632488a"]]);/*!
15
+ `},Jt=Nr(Pr)(Zt),Dr={config:Br},Mr=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return function(r){return n.reduceRight(function(o,s){return s(o)},r)}};function Qt(t,e){return Object.keys(e).forEach(function(n){e[n]instanceof Object&&t[n]&&Object.assign(e[n],Qt(t[n],e[n]))}),Xt(Xt({},t),e)}var Lr={type:"cancelation",msg:"operation is manually canceled"};function ot(t){var e=!1,n=new Promise(function(i,r){t.then(function(o){return e?r(Lr):i(o)}),t.catch(r)});return n.cancel=function(){return e=!0},n}var jr=Tr.create({config:Or,isInitialized:!1,resolve:null,reject:null,monaco:null}),en=ur(jr,2),ke=en[0],De=en[1];function Vr(t){var e=Dr.config(t),n=e.monaco,i=cr(e,["monaco"]);De(function(r){return{config:Qt(r.config,i),monaco:n}})}function Fr(){var t=ke(function(e){var n=e.monaco,i=e.isInitialized,r=e.resolve;return{monaco:n,isInitialized:i,resolve:r}});if(!t.isInitialized){if(De({isInitialized:!0}),t.monaco)return t.resolve(t.monaco),ot(at);if(window.monaco&&window.monaco.editor)return tn(window.monaco),t.resolve(window.monaco),ot(at);Mr($r,Wr)(qr)}return ot(at)}function $r(t){return document.body.appendChild(t)}function Hr(t){var e=document.createElement("script");return t&&(e.src=t),e}function Wr(t){var e=ke(function(i){var r=i.config,o=i.reject;return{config:r,reject:o}}),n=Hr("".concat(e.config.paths.vs,"/loader.js"));return n.onload=function(){return t()},n.onerror=e.reject,n}function qr(){var t=ke(function(n){var i=n.config,r=n.resolve,o=n.reject;return{config:i,resolve:r,reject:o}}),e=window.require;e.config(t.config),e(["vs/editor/editor.main"],function(n){tn(n),t.resolve(n)},function(n){t.reject(n)})}function tn(t){ke().monaco||De({monaco:t})}function Ur(){return ke(function(t){var e=t.monaco;return e})}var at=new Promise(function(t,e){return De({resolve:t,reject:e})}),nn={config:Vr,init:Fr,__getMonacoInstance:Ur};const Xr="https://unpkg.com",Yr="https://cdn.jsdelivr.net/npm",Kr="https://esm.sh",Gr="https://cdnjs.cloudflare.com/ajax/libs",rn="https://cdn.bootcdn.net/ajax/libs",on="https://lib.baomitu.com",an="https://cdn.staticfile.org";async function Zr(t,e){const{version:n,file:i}=e??{},r=[],o=`${t}${n?`@${n}`:""}`,s=i||"/package.json",l=`${Xr}/${o}`,u=`${Yr}/${o}`,f=`${Kr}/${o}`;if(r.push([l,`${l}${s}`],[u,`${u}${s}`],[f,`${f}${s}`]),n){const g=`${t}/${n}`,m=`${Gr}/${g}`,p=`${rn}/${g}`,v=`${on}/${g}`,b=`${an}/${g}`;r.push([m,`${m}${i||""}`],[p,`${p}${i||""}`],[v,`${v}${i||""}`],[b,`${b}${i||""}`])}const d=new AbortController,c={method:"get",signal:d.signal},h=await Promise.any(r.map(async([g,m])=>fetch(m,c).then(async p=>{if(p.ok){if(g.startsWith(rn)||g.startsWith(on)||g.startsWith(an)){const v=await p.text();if(v.length<15&&v.endsWith("Not Found"))throw new Error(g)}return g}throw new Error(g)})));return d.abort(),h}const Jr={"@floating-ui/vue":"^1.0.6","@formkit/auto-animate":"^0.8.2","@iconify/json":"^2.2.221","@mixte/snippets":"1.13.2","@mixte/use":"1.13.2","@monaco-editor/loader":"^1.4.0","@moomfe/eslint-config":"^3.0.0","@types/fs-extra":"^11.0.4","@types/lodash-es":"^4.17.12","@types/node":"^20.14.7","@types/react":"^18.3.3","@types/spark-md5":"^3.0.4","@unplugin-vue-ce/sub-style":"1.0.0-beta.21","@vitejs/plugin-react":"^4.3.1","@vitejs/plugin-vue":"^5.0.5","@vitejs/plugin-vue-jsx":"^3.1.0","@vitest/coverage-v8":"^1.6.0","@vitest/ui":"^1.6.0","@vue/compiler-sfc":"^3.4.29","@vueuse/core":"^10.11.0","@vueuse/math":"^10.11.0",axios:"^1.7.2",chalk:"^5.3.0","element-plus":"^2.7.5",eslint:"^9.5.0","fast-glob":"^3.3.2","fs-extra":"^11.2.0",jsdom:"^24.1.0","lint-staged":"^15.2.7","lodash-es":"^4.17.21","magic-string":"^0.30.10",mixte:"1.13.2","monaco-editor":"^0.50.0","naive-ui":"^2.38.2",pnpm:"^9.4.0","pretty-bytes":"^6.1.1",react:"^18.3.1","react-dom":"^18.3.1",rollup:"^4.18.0","rollup-plugin-dts":"^6.1.1",sass:"^1.77.6",shiki:"^1.7.0","simple-git-hooks":"^2.11.1",slate:"^0.103.0","slate-history":"^0.100.0","slate-react":"^0.105.0","spark-md5":"^3.0.2",tsx:"^4.15.7","type-fest":"^4.20.1",typescript:"^5.5.2",unocss:"^0.61.0","unocss-preset-extra":"^0.5.3","unocss-preset-scrollbar":"^0.3.1","unplugin-auto-import":"^0.17.6","unplugin-icons":"^0.19.0","unplugin-vue-components":"^0.27.0",veaury:"^2.4.0",viewerjs:"^1.11.6",vite:"5.3.1",vitepress:"1.2.3",vitest:"^1.6.0",vue:"^3.4.29","vue-demi":"^0.14.8"};function Qr(t,e){let n,i,r;const o=a.ref(!0),s=()=>{o.value=!0,r()};a.watch(t,s,{flush:"sync"});const l=typeof e=="function"?e:e.get,u=typeof e=="function"?void 0:e.set,f=a.customRef((d,c)=>(i=d,r=c,{get(){return o.value&&(n=l(),o.value=!1),i(),n},set(h){u==null||u(h)}}));return Object.isExtensible(f)&&(f.trigger=s),f}function ae(t){return a.getCurrentScope()?(a.onScopeDispose(t),!0):!1}function Me(){const t=new Set,e=r=>{t.delete(r)};return{on:r=>{t.add(r);const o=()=>e(r);return ae(o),{off:o}},off:e,trigger:(...r)=>Promise.all(Array.from(t).map(o=>o(...r)))}}function A(t){return typeof t=="function"?t():a.unref(t)}function eo(t){if(!a.isRef(t))return a.reactive(t);const e=new Proxy({},{get(n,i,r){return a.unref(Reflect.get(t.value,i,r))},set(n,i,r){return a.isRef(t.value[i])&&!a.isRef(r)?t.value[i].value=r:t.value[i]=r,!0},deleteProperty(n,i){return Reflect.deleteProperty(t.value,i)},has(n,i){return Reflect.has(t.value,i)},ownKeys(){return Object.keys(t.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return a.reactive(e)}const sn=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const to=t=>t!=null,no=Object.prototype.toString,ln=t=>no.call(t)==="[object Object]",cn=()=>{};function io(t,e){function n(...i){return new Promise((r,o)=>{Promise.resolve(t(()=>e.apply(this,i),{fn:e,thisArg:this,args:i})).then(r).catch(o)})}return n}const ro=t=>t();function un(t,e=!1,n="Timeout"){return new Promise((i,r)=>{setTimeout(e?()=>r(n):i,t)})}function oo(t){return a.getCurrentInstance()}function ao(...t){if(t.length!==1)return a.toRef(...t);const e=t[0];return typeof e=="function"?a.readonly(a.customRef(()=>({get:e,set:cn}))):a.ref(e)}function so(t,e=!0,n){oo()?a.onMounted(t,n):e?t():a.nextTick(t)}function st(t,e=!1){function n(c,{flush:h="sync",deep:g=!1,timeout:m,throwOnTimeout:p}={}){let v=null;const E=[new Promise(x=>{v=a.watch(t,_=>{c(_)!==e&&(v==null||v(),x(_))},{flush:h,deep:g,immediate:!0})})];return m!=null&&E.push(un(m,p).then(()=>A(t)).finally(()=>v==null?void 0:v())),Promise.race(E)}function i(c,h){if(!a.isRef(c))return n(_=>_===c,h);const{flush:g="sync",deep:m=!1,timeout:p,throwOnTimeout:v}=h??{};let b=null;const x=[new Promise(_=>{b=a.watch([t,c],([D,M])=>{e!==(D===M)&&(b==null||b(),_(D))},{flush:g,deep:m,immediate:!0})})];return p!=null&&x.push(un(p,v).then(()=>A(t)).finally(()=>(b==null||b(),A(t)))),Promise.race(x)}function r(c){return n(h=>!!h,c)}function o(c){return i(null,c)}function s(c){return i(void 0,c)}function l(c){return n(Number.isNaN,c)}function u(c,h){return n(g=>{const m=Array.from(g);return m.includes(c)||m.includes(A(c))},h)}function f(c){return d(1,c)}function d(c=1,h){let g=-1;return n(()=>(g+=1,g>=c),h)}return Array.isArray(A(t))?{toMatch:n,toContains:u,changed:f,changedTimes:d,get not(){return st(t,!e)}}:{toMatch:n,toBe:i,toBeTruthy:r,toBeNull:o,toBeNaN:l,toBeUndefined:s,changed:f,changedTimes:d,get not(){return st(t,!e)}}}function lo(t){return st(t)}function co(t,e,n){return a.watch(t,e,{...n,deep:!0})}function fn(t,e,n={}){const{eventFilter:i=ro,...r}=n,o=io(i,e);let s,l,u;if(r.flush==="sync"){const f=a.ref(!1);l=()=>{},s=d=>{f.value=!0,d(),f.value=!1},u=a.watch(t,(...d)=>{f.value||o(...d)},r)}else{const f=[],d=a.ref(0),c=a.ref(0);l=()=>{d.value=c.value},f.push(a.watch(t,()=>{c.value++},{...r,flush:"sync"})),s=h=>{const g=c.value;h(),d.value+=c.value-g},f.push(a.watch(t,(...h)=>{const g=d.value>0&&d.value===c.value;d.value=0,c.value=0,!g&&o(...h)},r)),u=()=>{f.forEach(h=>h())}}return{stop:u,ignoreUpdates:s,ignorePrevAsyncUpdates:l}}function te(t){var e;const n=A(t);return(e=n==null?void 0:n.$el)!=null?e:n}const Le=sn?window:void 0,uo=sn?window.document:void 0;function L(...t){let e,n,i,r;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,i,r]=t,e=Le):[e,n,i,r]=t,!e)return cn;Array.isArray(n)||(n=[n]),Array.isArray(i)||(i=[i]);const o=[],s=()=>{o.forEach(d=>d()),o.length=0},l=(d,c,h,g)=>(d.addEventListener(c,h,g),()=>d.removeEventListener(c,h,g)),u=a.watch(()=>[te(e),A(r)],([d,c])=>{if(s(),!d)return;const h=ln(c)?{...c}:c;o.push(...n.flatMap(g=>i.map(m=>l(d,g,m,h))))},{immediate:!0,flush:"post"}),f=()=>{u(),s()};return ae(f),f}function fo(){const t=a.ref(!1),e=a.getCurrentInstance();return e&&a.onMounted(()=>{t.value=!0},e),t}function dn(t){const e=fo();return a.computed(()=>(e.value,!!t()))}function hn(t,e,n={}){const{window:i=Le,...r}=n;let o;const s=dn(()=>i&&"MutationObserver"in i),l=()=>{o&&(o.disconnect(),o=void 0)},u=a.computed(()=>{const h=A(t),g=(Array.isArray(h)?h:[h]).map(te).filter(to);return new Set(g)}),f=a.watch(()=>u.value,h=>{l(),s.value&&h.size&&(o=new MutationObserver(e),h.forEach(g=>o.observe(g,r)))},{immediate:!0,flush:"post"}),d=()=>o==null?void 0:o.takeRecords(),c=()=>{l(),f()};return ae(c),{isSupported:s,stop:c,takeRecords:d}}function lt(t){const e=a.getCurrentInstance(),n=Qr(()=>null,()=>e.proxy.$el);return a.onUpdated(n.trigger),a.onMounted(n.trigger),n}function ho(t,e,n={}){const{window:i=Le,...r}=n;let o;const s=dn(()=>i&&"ResizeObserver"in i),l=()=>{o&&(o.disconnect(),o=void 0)},u=a.computed(()=>Array.isArray(t)?t.map(c=>te(c)):[te(t)]),f=a.watch(u,c=>{if(l(),s.value&&i){o=new ResizeObserver(e);for(const h of c)h&&o.observe(h,r)}},{immediate:!0,flush:"post"}),d=()=>{l(),f()};return ae(d),{isSupported:s,stop:d}}function po(t,e={width:0,height:0},n={}){const{window:i=Le,box:r="content-box"}=n,o=a.computed(()=>{var c,h;return(h=(c=te(t))==null?void 0:c.namespaceURI)==null?void 0:h.includes("svg")}),s=a.ref(e.width),l=a.ref(e.height),{stop:u}=ho(t,([c])=>{const h=r==="border-box"?c.borderBoxSize:r==="content-box"?c.contentBoxSize:c.devicePixelContentBoxSize;if(i&&o.value){const g=te(t);if(g){const m=g.getBoundingClientRect();s.value=m.width,l.value=m.height}}else if(h){const g=Array.isArray(h)?h:[h];s.value=g.reduce((m,{inlineSize:p})=>m+p,0),l.value=g.reduce((m,{blockSize:p})=>m+p,0)}else s.value=c.contentRect.width,l.value=c.contentRect.height},n);so(()=>{const c=te(t);c&&(s.value="offsetWidth"in c?c.offsetWidth:e.width,l.value="offsetHeight"in c?c.offsetHeight:e.height)});const f=a.watch(()=>te(t),c=>{s.value=c?e.width:0,l.value=c?e.height:0});function d(){u(),f()}return{width:s,height:l,stop:d}}function ct(t,e){A(t)&&e(A(t))}function go(t){let e=[];for(let n=0;n<t.length;++n)e=[...e,[t.start(n),t.end(n)]];return e}function ut(t){return Array.from(t).map(({label:e,kind:n,language:i,mode:r,activeCues:o,cues:s,inBandMetadataTrackDispatchType:l},u)=>({id:u,label:e,kind:n,language:i,mode:r,activeCues:o,cues:s,inBandMetadataTrackDispatchType:l}))}const mo={src:"",tracks:[]};function vo(t,e={}){t=ao(t),e={...mo,...e};const{document:n=uo}=e,i=a.ref(0),r=a.ref(0),o=a.ref(!1),s=a.ref(1),l=a.ref(!1),u=a.ref(!1),f=a.ref(!1),d=a.ref(1),c=a.ref(!1),h=a.ref([]),g=a.ref([]),m=a.ref(-1),p=a.ref(!1),v=a.ref(!1),b=n&&"pictureInPictureEnabled"in n,E=Me(),x=y=>{ct(t,z=>{if(y){const j=typeof y=="number"?y:y.id;z.textTracks[j].mode="disabled"}else for(let j=0;j<z.textTracks.length;++j)z.textTracks[j].mode="disabled";m.value=-1})},_=(y,z=!0)=>{ct(t,j=>{const Z=typeof y=="number"?y:y.id;z&&x(),j.textTracks[Z].mode="showing",m.value=Z})},D=()=>new Promise((y,z)=>{ct(t,async j=>{b&&(p.value?n.exitPictureInPicture().then(y).catch(z):j.requestPictureInPicture().then(y).catch(z))})});a.watchEffect(()=>{if(!n)return;const y=A(t);if(!y)return;const z=A(e.src);let j=[];z&&(typeof z=="string"?j=[{src:z}]:Array.isArray(z)?j=z:ln(z)&&(j=[z]),y.querySelectorAll("source").forEach(Z=>{Z.removeEventListener("error",E.trigger),Z.remove()}),j.forEach(({src:Z,type:xt})=>{const ye=n.createElement("source");ye.setAttribute("src",Z),ye.setAttribute("type",xt||""),ye.addEventListener("error",E.trigger),y.appendChild(ye)}),y.load())}),ae(()=>{const y=A(t);y&&y.querySelectorAll("source").forEach(z=>z.removeEventListener("error",E.trigger))}),a.watch([t,s],()=>{const y=A(t);y&&(y.volume=s.value)}),a.watch([t,v],()=>{const y=A(t);y&&(y.muted=v.value)}),a.watch([t,d],()=>{const y=A(t);y&&(y.playbackRate=d.value)}),a.watchEffect(()=>{if(!n)return;const y=A(e.tracks),z=A(t);!y||!y.length||!z||(z.querySelectorAll("track").forEach(j=>j.remove()),y.forEach(({default:j,kind:Z,label:xt,src:ye,srcLang:Sa},Ea)=>{const ce=n.createElement("track");ce.default=j||!1,ce.kind=Z,ce.label=xt,ce.src=ye,ce.srclang=Sa,ce.default&&(m.value=Ea),z.appendChild(ce)}))});const{ignoreUpdates:M}=fn(i,y=>{const z=A(t);z&&(z.currentTime=y)}),{ignoreUpdates:I}=fn(f,y=>{const z=A(t);z&&(y?z.play():z.pause())});L(t,"timeupdate",()=>M(()=>i.value=A(t).currentTime)),L(t,"durationchange",()=>r.value=A(t).duration),L(t,"progress",()=>h.value=go(A(t).buffered)),L(t,"seeking",()=>o.value=!0),L(t,"seeked",()=>o.value=!1),L(t,["waiting","loadstart"],()=>{l.value=!0,I(()=>f.value=!1)}),L(t,"loadeddata",()=>l.value=!1),L(t,"playing",()=>{l.value=!1,u.value=!1,I(()=>f.value=!0)}),L(t,"ratechange",()=>d.value=A(t).playbackRate),L(t,"stalled",()=>c.value=!0),L(t,"ended",()=>u.value=!0),L(t,"pause",()=>I(()=>f.value=!1)),L(t,"play",()=>I(()=>f.value=!0)),L(t,"enterpictureinpicture",()=>p.value=!0),L(t,"leavepictureinpicture",()=>p.value=!1),L(t,"volumechange",()=>{const y=A(t);y&&(s.value=y.volume,v.value=y.muted)});const Y=[],ne=a.watch([t],()=>{const y=A(t);y&&(ne(),Y[0]=L(y.textTracks,"addtrack",()=>g.value=ut(y.textTracks)),Y[1]=L(y.textTracks,"removetrack",()=>g.value=ut(y.textTracks)),Y[2]=L(y.textTracks,"change",()=>g.value=ut(y.textTracks)))});return ae(()=>Y.forEach(y=>y())),{currentTime:i,duration:r,waiting:l,seeking:o,ended:u,stalled:c,buffered:h,playing:f,rate:d,volume:s,muted:v,tracks:g,selectedTrack:m,enableTrack:_,disableTrack:x,supportsPictureInPicture:b,togglePictureInPicture:D,isPictureInPicture:p,onSourceError:E.on}}function ft(t){const e=a.ref(),n=()=>{e.value&&URL.revokeObjectURL(e.value),e.value=void 0};return a.watch(()=>A(t),i=>{n(),i&&(e.value=URL.createObjectURL(i))},{immediate:!0}),ae(n),a.readonly(e)}function je(t,e){return Math.floor(Math.random()*(e-t+1)+t)}function bo(){return String.fromCharCode(je(97,122))}function yo(){return String.fromCharCode(je(65,90))}function pn(t=12,e={}){const{lowercase:n=!0,uppercase:i=!1,number:r=!1}=e,o=[];let s;if(n&&o.push("l"),i&&o.push("u"),r&&o.push("n"),!(s=o.length))throw new Error("???");let l="";for(;t-- >0;){const u=s>1?je(0,s-1):0,f=o[u];f==="l"?l+=bo():f==="u"?l+=yo():f==="n"&&(l+=je(0,9))}return l}function wo(){return pn(1,{uppercase:!0})+pn(17,{uppercase:!0,number:!0})}const xo=typeof window<"u";function ko(t,e,n){let i;const r=()=>{i==null||i.stop(),i=void 0},o=a.watch(t,(s,l,u)=>{s?(i&&r(),i=a.effectScope(),i.run(()=>e(s,l,u))):r()},n);return()=>{r(),o()}}function Ve(t,e,n){return ko(t,e,{...n,immediate:!0})}function So(t,e={}){const{initialData:n,immediate:i=!1,shallow:r=!1}=e,o=Me(),s=Me(),l=Me(),u=a.shallowRef(),f=(r?a.shallowRef:a.ref)(),d=a.shallowRef(),c=a.ref(!1),h=a.ref(!1),g=a.ref(!1),m=a.ref(!1),p=a.ref(0);function v(){p.value=0}let b=0;async function E(...D){const M=++b;c.value=!0,h.value=!0,g.value=!1,m.value=!1,(A(e.resetOnExecute)??!0)&&(u.value=void 0,f.value=A(n),d.value=void 0);try{const I=await t(...D);return M!==b||(u.value=I,f.value=I==null?void 0:I.data,h.value=!1,g.value=!0,m.value=!0,p.value++,o.trigger(I),l.trigger()),I}catch(I){throw M!==b||(h.value=!1,g.value=!0,m.value=!1,d.value=I,s.trigger(I),l.trigger()),I}}f.value=A(n),i&&E();const x={response:u,data:f,error:d,isExecuted:c,isLoading:h,isFinished:g,isSuccess:m,successCount:p,clearSuccessCount:v,execute:E,onSuccess:o.on,onError:s.on,onFinally:l.on},_=eo(a.computed(()=>({...x,response:a.computed(()=>a.shallowRef(u.value)),data:a.computed(()=>a.shallowRef(f.value)),error:a.computed(()=>a.shallowRef(d.value))})));return{...x,reactive:_}}function Eo(t,e={}){return So(t,e).reactive}const _o={"size-full":"",flex:"~ justify-center items-center",pos:"absolute top-0 left-0","c-neutral":"","bg-dark":""},Co={key:0,flex:"~ col gap-2 items-center"},Ao={key:0,"text-sm":""},zo={flex:"~ col justify-center items-center gap-3","c-gray":""},To=a.defineComponent({__name:"Code",props:{file:{type:null},fileExt:{type:String}},setup(t){const e=t,n=a.ref(),{width:i,height:r}=po(n),o=a.ref(!1),s=a.ref(!1),l=a.ref(!1),u=a.shallowRef(),f=a.shallowRef(),d=a.shallowRef(),c=a.ref(),h=a.ref(),g=a.ref(0),m=Eo(()=>Zr("monaco-editor",{version:Jr["monaco-editor"].replace(/^\^/g,""),file:"/min/vs/basic-languages/css/css.js"}),{immediate:!0});async function p(){var b,E;(b=f.value)==null||b.dispose(),s.value=!0,l.value=!1,await lo(()=>m.isSuccess).toBeTruthy(),nn.config({"vs/nls":{availableLanguages:{"*":"zh-cn"}},paths:{vs:`${m.response}/min/vs`}});try{u.value=await nn.init(),d.value??(d.value=u.value.languages.getLanguages()),c.value=(E=d.value.find(x=>{var _;return(_=x.extensions)==null?void 0:_.includes(`.${e.fileExt}`)}))==null?void 0:E.id,s.value=!1,(l.value=!c.value)||v()}catch{s.value=!1}}async function v(){l.value=!1,await a.nextTick(),f.value=u.value.editor.create(n.value,{value:h.value,language:c.value||"plaintext",tabSize:2,multiCursorModifier:"ctrlCmd",minimap:{showSlider:"always"},padding:{top:10},wordWrap:"on",theme:"vs-dark",readOnly:!0})}return Ve(()=>e.file,(b,E,x)=>{o.value=!0;const _=new FileReader;_.onprogress=D=>{g.value=Math.round(D.loaded/D.total*100)},_.onload=async D=>{var M;o.value=!1,h.value=(M=D.target)==null?void 0:M.result,p()},_.readAsText(b),x(()=>{_.abort()})}),Ve(qt,b=>{const E='[data-name^="vs/editor"]';function x(){b.querySelectorAll(E).forEach(_=>{b.removeChild(_)}),Array.from(document.querySelectorAll(E)).forEach(_=>{b.appendChild(_.cloneNode(!0))})}hn(document.head,x,{childList:!0}),x()}),co(()=>({width:i.value,height:r.value}),b=>{var E;(E=f.value)==null||E.layout(b)}),a.onUnmounted(()=>{var b;(b=f.value)==null||b.dispose()}),(b,E)=>{const x=ar,_=nr,D=Zi;return a.openBlock(),a.createElementBlock("div",_o,[a.createCommentVNode(" 加载中 "),a.unref(o)||a.unref(s)?(a.openBlock(),a.createElementBlock("div",Co,[a.createVNode(x),a.unref(o)?(a.openBlock(),a.createElementBlock("div",Ao,"文件读取中, 当前进度 "+a.toDisplayString(a.unref(g))+"%",1)):a.createCommentVNode("v-if",!0)])):a.unref(l)?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createCommentVNode(" 不支持的文件 "),a.createElementVNode("div",zo,[a.createVNode(_,{class:"text-5xl text-yellow"}),a.createTextVNode(" 此文件类型暂不支持预览 "),a.createVNode(D,{class:"rounded-sm",color:"#3177d3",onClick:E[0]||(E[0]=M=>v())},{default:a.withCtx(()=>[a.createTextVNode("仍然打开")]),_:1})])],2112)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:2},[a.createCommentVNode(" 编辑器 "),a.createElementVNode("div",{ref_key:"editorRef",ref:n,"size-full":""},null,512)],2112))])}}}),Oo='[data-v-a632488a],[data-v-a632488a]:before,[data-v-a632488a]:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }[data-v-a632488a]::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.absolute[data-v-a632488a],[pos~=absolute][data-v-a632488a]{position:absolute}.left-0[data-v-a632488a],[pos~=left-0][data-v-a632488a]{left:0}.top-0[data-v-a632488a],[pos~=top-0][data-v-a632488a]{top:0}[flex~="~"][data-v-a632488a]{display:flex}[flex~=col][data-v-a632488a]{flex-direction:column}.items-center[data-v-a632488a],[flex~=items-center][data-v-a632488a]{align-items:center}.justify-center[data-v-a632488a],[flex~=justify-center][data-v-a632488a]{justify-content:center}.gap-2[data-v-a632488a],[flex~=gap-2][data-v-a632488a]{gap:.5rem}.gap-3[data-v-a632488a],[flex~=gap-3][data-v-a632488a]{gap:.75rem}.rounded-sm[data-v-a632488a]{border-radius:.125rem}[bg-dark=""][data-v-a632488a]{--un-bg-opacity:1;background-color:rgb(34 34 34 / var(--un-bg-opacity))}.text-5xl[data-v-a632488a]{font-size:3rem;line-height:1}[text-sm=""][data-v-a632488a]{font-size:.875rem;line-height:1.25rem}.text-yellow[data-v-a632488a]{--un-text-opacity:1;color:rgb(250 204 21 / var(--un-text-opacity))}.c-neutral[data-v-a632488a],[c-neutral=""][data-v-a632488a]{--un-text-opacity:1;color:rgb(163 163 163 / var(--un-text-opacity))}[c-gray=""][data-v-a632488a]{--un-text-opacity:1;color:rgb(156 163 175 / var(--un-text-opacity))}[color~="#3177d3"][data-v-a632488a]{--un-text-opacity:1;color:rgb(49 119 211 / var(--un-text-opacity))}.size-full[data-v-a632488a],[size-full=""][data-v-a632488a]{width:100%;height:100%}',Se=(t,e)=>{const n=t.__vccOpts||t;for(const[i,r]of e)n[i]=r;return n},No=Se(To,[["styles",[Oo]],["__scopeId","data-v-a632488a"]]);/*!
16
16
  * Viewer.js v1.11.6
17
17
  * https://fengyuanchen.github.io/viewerjs
18
18
  *
@@ -20,7 +20,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
20
20
  * Released under the MIT license
21
21
  *
22
22
  * Date: 2023-09-17T03:16:38.052Z
23
- */function pn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function dt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?pn(Object(n),!0).forEach(function(i){Ia(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):pn(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function ht(t){"@babel/helpers - typeof";return ht=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ht(t)}function Oa(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function gn(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,mn(i.key),i)}}function Na(t,e,n){return e&&gn(t.prototype,e),n&&gn(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ia(t,e,n){return e=mn(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ba(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function mn(t){var e=Ba(t,"string");return typeof e=="symbol"?e:String(e)}var vn={backdrop:!0,button:!0,navbar:!0,title:!0,toolbar:!0,className:"",container:"body",filter:null,fullscreen:!0,inheritedAttributes:["crossOrigin","decoding","isMap","loading","referrerPolicy","sizes","srcset","useMap"],initialCoverage:.9,initialViewIndex:0,inline:!1,interval:5e3,keyboard:!0,focus:!0,loading:!0,loop:!0,minWidth:200,minHeight:100,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,slideOnTouch:!0,toggleOnDblclick:!0,tooltip:!0,transition:!0,zIndex:2015,zIndexInline:0,zoomRatio:.1,minZoomRatio:.01,maxZoomRatio:100,url:"src",ready:null,show:null,shown:null,hide:null,hidden:null,view:null,viewed:null,move:null,moved:null,rotate:null,rotated:null,scale:null,scaled:null,zoom:null,zoomed:null,play:null,stop:null},Pa='<div class="viewer-container" tabindex="-1" touch-action="none"><div class="viewer-canvas"></div><div class="viewer-footer"><div class="viewer-title"></div><div class="viewer-toolbar"></div><div class="viewer-navbar"><ul class="viewer-list" role="navigation"></ul></div></div><div class="viewer-tooltip" role="alert" aria-hidden="true"></div><div class="viewer-button" data-viewer-action="mix" role="button"></div><div class="viewer-player"></div></div>',Ve=typeof window<"u"&&typeof window.document<"u",G=Ve?window:{},ue=Ve&&G.document.documentElement?"ontouchstart"in G.document.documentElement:!1,pt=Ve?"PointerEvent"in G:!1,S="viewer",$e="move",bn="switch",Ee="zoom",He="".concat(S,"-active"),Ra="".concat(S,"-close"),We="".concat(S,"-fade"),gt="".concat(S,"-fixed"),Da="".concat(S,"-fullscreen"),yn="".concat(S,"-fullscreen-exit"),se="".concat(S,"-hide"),Ma="".concat(S,"-hide-md-down"),La="".concat(S,"-hide-sm-down"),ja="".concat(S,"-hide-xs-down"),H="".concat(S,"-in"),_e="".concat(S,"-invisible"),fe="".concat(S,"-loading"),Fa="".concat(S,"-move"),wn="".concat(S,"-open"),de="".concat(S,"-show"),P="".concat(S,"-transition"),he="click",mt="dblclick",xn="dragstart",kn="focusin",Sn="keydown",W="load",le="error",Va=ue?"touchend touchcancel":"mouseup",$a=ue?"touchmove":"mousemove",Ha=ue?"touchstart":"mousedown",En=pt?"pointerdown":Ha,_n=pt?"pointermove":$a,Cn=pt?"pointerup pointercancel":Va,An="resize",U="transitionend",zn="wheel",Tn="ready",On="show",Nn="shown",In="hide",Bn="hidden",Pn="view",Ce="viewed",Rn="move",Dn="moved",Mn="rotate",Ln="rotated",jn="scale",Fn="scaled",Vn="zoom",$n="zoomed",Hn="play",Wn="stop",qe="".concat(S,"Action"),vt=/\s\s*/,Ue=["zoom-in","zoom-out","one-to-one","reset","prev","play","next","rotate-left","rotate-right","flip-horizontal","flip-vertical"];function Ae(t){return typeof t=="string"}var Wa=Number.isNaN||G.isNaN;function B(t){return typeof t=="number"&&!Wa(t)}function pe(t){return typeof t>"u"}function ge(t){return ht(t)==="object"&&t!==null}var qa=Object.prototype.hasOwnProperty;function me(t){if(!ge(t))return!1;try{var e=t.constructor,n=e.prototype;return e&&n&&qa.call(n,"isPrototypeOf")}catch{return!1}}function T(t){return typeof t=="function"}function N(t,e){if(t&&T(e))if(Array.isArray(t)||B(t.length)){var n=t.length,i;for(i=0;i<n&&e.call(t,t[i],i,t)!==!1;i+=1);}else ge(t)&&Object.keys(t).forEach(function(r){e.call(t,t[r],r,t)});return t}var $=Object.assign||function(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return ge(e)&&i.length>0&&i.forEach(function(a){ge(a)&&Object.keys(a).forEach(function(s){e[s]=a[s]})}),e},Ua=/^(?:width|height|left|top|marginLeft|marginTop)$/;function X(t,e){var n=t.style;N(e,function(i,r){Ua.test(r)&&B(i)&&(i+="px"),n[r]=i})}function Xa(t){return Ae(t)?t.replace(/&(?!amp;|quot;|#39;|lt;|gt;)/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;"):t}function ve(t,e){return!t||!e?!1:t.classList?t.classList.contains(e):t.className.indexOf(e)>-1}function w(t,e){if(!(!t||!e)){if(B(t.length)){N(t,function(i){w(i,e)});return}if(t.classList){t.classList.add(e);return}var n=t.className.trim();n?n.indexOf(e)<0&&(t.className="".concat(n," ").concat(e)):t.className=e}}function C(t,e){if(!(!t||!e)){if(B(t.length)){N(t,function(n){C(n,e)});return}if(t.classList){t.classList.remove(e);return}t.className.indexOf(e)>=0&&(t.className=t.className.replace(e,""))}}function ze(t,e,n){if(e){if(B(t.length)){N(t,function(i){ze(i,e,n)});return}n?w(t,e):C(t,e)}}var Ya=/([a-z\d])([A-Z])/g;function bt(t){return t.replace(Ya,"$1-$2").toLowerCase()}function be(t,e){return ge(t[e])?t[e]:t.dataset?t.dataset[e]:t.getAttribute("data-".concat(bt(e)))}function yt(t,e,n){ge(n)?t[e]=n:t.dataset?t.dataset[e]=n:t.setAttribute("data-".concat(bt(e)),n)}var qn=function(){var t=!1;if(Ve){var e=!1,n=function(){},i=Object.defineProperty({},"once",{get:function(){return t=!0,e},set:function(a){e=a}});G.addEventListener("test",n,i),G.removeEventListener("test",n,i)}return t}();function O(t,e,n){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},r=n;e.trim().split(vt).forEach(function(a){if(!qn){var s=t.listeners;s&&s[a]&&s[a][n]&&(r=s[a][n],delete s[a][n],Object.keys(s[a]).length===0&&delete s[a],Object.keys(s).length===0&&delete t.listeners)}t.removeEventListener(a,r,i)})}function k(t,e,n){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},r=n;e.trim().split(vt).forEach(function(a){if(i.once&&!qn){var s=t.listeners,l=s===void 0?{}:s;r=function(){delete l[a][n],t.removeEventListener(a,r,i);for(var f=arguments.length,d=new Array(f),c=0;c<f;c++)d[c]=arguments[c];n.apply(t,d)},l[a]||(l[a]={}),l[a][n]&&t.removeEventListener(a,l[a][n],i),l[a][n]=r,t.listeners=l}t.addEventListener(a,r,i)})}function R(t,e,n,i){var r;return T(Event)&&T(CustomEvent)?r=new CustomEvent(e,dt({bubbles:!0,cancelable:!0,detail:n},i)):(r=document.createEvent("CustomEvent"),r.initCustomEvent(e,!0,!0,n)),t.dispatchEvent(r)}function Ka(t){var e=t.getBoundingClientRect();return{left:e.left+(window.pageXOffset-document.documentElement.clientLeft),top:e.top+(window.pageYOffset-document.documentElement.clientTop)}}function Xe(t){var e=t.rotate,n=t.scaleX,i=t.scaleY,r=t.translateX,a=t.translateY,s=[];B(r)&&r!==0&&s.push("translateX(".concat(r,"px)")),B(a)&&a!==0&&s.push("translateY(".concat(a,"px)")),B(e)&&e!==0&&s.push("rotate(".concat(e,"deg)")),B(n)&&n!==1&&s.push("scaleX(".concat(n,")")),B(i)&&i!==1&&s.push("scaleY(".concat(i,")"));var l=s.length?s.join(" "):"none";return{WebkitTransform:l,msTransform:l,transform:l}}function Ga(t){return Ae(t)?decodeURIComponent(t.replace(/^.*\//,"").replace(/[?&#].*$/,"")):""}var wt=G.navigator&&/Version\/\d+(\.\d+)+?\s+Safari/i.test(G.navigator.userAgent);function Un(t,e,n){var i=document.createElement("img");if(t.naturalWidth&&!wt)return n(t.naturalWidth,t.naturalHeight),i;var r=document.body||document.documentElement;return i.onload=function(){n(i.width,i.height),wt||r.removeChild(i)},N(e.inheritedAttributes,function(a){var s=t.getAttribute(a);s!==null&&i.setAttribute(a,s)}),i.src=t.src,wt||(i.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;",r.appendChild(i)),i}function Ye(t){switch(t){case 2:return ja;case 3:return La;case 4:return Ma;default:return""}}function Za(t){var e=dt({},t),n=[];return N(t,function(i,r){delete e[r],N(e,function(a){var s=Math.abs(i.startX-a.startX),l=Math.abs(i.startY-a.startY),u=Math.abs(i.endX-a.endX),f=Math.abs(i.endY-a.endY),d=Math.sqrt(s*s+l*l),c=Math.sqrt(u*u+f*f),h=(c-d)/d;n.push(h)})}),n.sort(function(i,r){return Math.abs(i)<Math.abs(r)}),n[0]}function Ke(t,e){var n=t.pageX,i=t.pageY,r={endX:n,endY:i};return e?r:dt({timeStamp:Date.now(),startX:n,startY:i},r)}function Ja(t){var e=0,n=0,i=0;return N(t,function(r){var a=r.startX,s=r.startY;e+=a,n+=s,i+=1}),e/=i,n/=i,{pageX:e,pageY:n}}var Qa={render:function(){this.initContainer(),this.initViewer(),this.initList(),this.renderViewer()},initBody:function(){var e=this.element.ownerDocument,n=e.body||e.documentElement;this.body=n,this.scrollbarWidth=window.innerWidth-e.documentElement.clientWidth,this.initialBodyPaddingRight=n.style.paddingRight,this.initialBodyComputedPaddingRight=window.getComputedStyle(n).paddingRight},initContainer:function(){this.containerData={width:window.innerWidth,height:window.innerHeight}},initViewer:function(){var e=this.options,n=this.parent,i;e.inline&&(i={width:Math.max(n.offsetWidth,e.minWidth),height:Math.max(n.offsetHeight,e.minHeight)},this.parentData=i),(this.fulled||!i)&&(i=this.containerData),this.viewerData=$({},i)},renderViewer:function(){this.options.inline&&!this.fulled&&X(this.viewer,this.viewerData)},initList:function(){var e=this,n=this.element,i=this.options,r=this.list,a=[];r.innerHTML="",N(this.images,function(s,l){var u=s.src,f=s.alt||Ga(u),d=e.getImageURL(s);if(u||d){var c=document.createElement("li"),h=document.createElement("img");N(i.inheritedAttributes,function(g){var m=s.getAttribute(g);m!==null&&h.setAttribute(g,m)}),i.navbar&&(h.src=u||d),h.alt=f,h.setAttribute("data-original-url",d||u),c.setAttribute("data-index",l),c.setAttribute("data-viewer-action","view"),c.setAttribute("role","button"),i.keyboard&&c.setAttribute("tabindex",0),c.appendChild(h),r.appendChild(c),a.push(c)}}),this.items=a,N(a,function(s){var l=s.firstElementChild,u,f;yt(l,"filled",!0),i.loading&&w(s,fe),k(l,W,u=function(c){O(l,le,f),i.loading&&C(s,fe),e.loadImage(c)},{once:!0}),k(l,le,f=function(){O(l,W,u),i.loading&&C(s,fe)},{once:!0})}),i.transition&&k(n,Ce,function(){w(r,P)},{once:!0})},renderList:function(){var e=this.index,n=this.items[e];if(n){var i=n.nextElementSibling,r=parseInt(window.getComputedStyle(i||n).marginLeft,10),a=n.offsetWidth,s=a+r;X(this.list,$({width:s*this.length-r},Xe({translateX:(this.viewerData.width-a)/2-s*e})))}},resetList:function(){var e=this.list;e.innerHTML="",C(e,P),X(e,Xe({translateX:0}))},initImage:function(e){var n=this,i=this.options,r=this.image,a=this.viewerData,s=this.footer.offsetHeight,l=a.width,u=Math.max(a.height-s,s),f=this.imageData||{},d;this.imageInitializing={abort:function(){d.onload=null}},d=Un(r,i,function(c,h){var g=c/h,m=Math.max(0,Math.min(1,i.initialCoverage)),p=l,v=u;n.imageInitializing=!1,u*g>l?v=l/g:p=u*g,m=B(m)?m:.9,p=Math.min(p*m,c),v=Math.min(v*m,h);var b=(l-p)/2,E=(u-v)/2,x={left:b,top:E,x:b,y:E,width:p,height:v,oldRatio:1,ratio:p/c,aspectRatio:g,naturalWidth:c,naturalHeight:h},_=$({},x);i.rotatable&&(x.rotate=f.rotate||0,_.rotate=0),i.scalable&&(x.scaleX=f.scaleX||1,x.scaleY=f.scaleY||1,_.scaleX=1,_.scaleY=1),n.imageData=x,n.initialImageData=_,e&&e()})},renderImage:function(e){var n=this,i=this.image,r=this.imageData;if(X(i,$({width:r.width,height:r.height,marginLeft:r.x,marginTop:r.y},Xe(r))),e)if((this.viewing||this.moving||this.rotating||this.scaling||this.zooming)&&this.options.transition&&ve(i,P)){var a=function(){n.imageRendering=!1,e()};this.imageRendering={abort:function(){O(i,U,a)}},k(i,U,a,{once:!0})}else e()},resetImage:function(){var e=this.image;e&&(this.viewing&&this.viewing.abort(),e.parentNode.removeChild(e),this.image=null,this.title.innerHTML="")}},eo={bind:function(){var e=this.options,n=this.viewer,i=this.canvas,r=this.element.ownerDocument;k(n,he,this.onClick=this.click.bind(this)),k(n,xn,this.onDragStart=this.dragstart.bind(this)),k(i,En,this.onPointerDown=this.pointerdown.bind(this)),k(r,_n,this.onPointerMove=this.pointermove.bind(this)),k(r,Cn,this.onPointerUp=this.pointerup.bind(this)),k(r,Sn,this.onKeyDown=this.keydown.bind(this)),k(window,An,this.onResize=this.resize.bind(this)),e.zoomable&&e.zoomOnWheel&&k(n,zn,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),e.toggleOnDblclick&&k(i,mt,this.onDblclick=this.dblclick.bind(this))},unbind:function(){var e=this.options,n=this.viewer,i=this.canvas,r=this.element.ownerDocument;O(n,he,this.onClick),O(n,xn,this.onDragStart),O(i,En,this.onPointerDown),O(r,_n,this.onPointerMove),O(r,Cn,this.onPointerUp),O(r,Sn,this.onKeyDown),O(window,An,this.onResize),e.zoomable&&e.zoomOnWheel&&O(n,zn,this.onWheel,{passive:!1,capture:!0}),e.toggleOnDblclick&&O(i,mt,this.onDblclick)}},to={click:function(e){var n=this.options,i=this.imageData,r=e.target,a=be(r,qe);switch(!a&&r.localName==="img"&&r.parentElement.localName==="li"&&(r=r.parentElement,a=be(r,qe)),ue&&e.isTrusted&&r===this.canvas&&clearTimeout(this.clickCanvasTimeout),a){case"mix":this.played?this.stop():n.inline?this.fulled?this.exit():this.full():this.hide();break;case"hide":this.pointerMoved||this.hide();break;case"view":this.view(be(r,"index"));break;case"zoom-in":this.zoom(.1,!0);break;case"zoom-out":this.zoom(-.1,!0);break;case"one-to-one":this.toggle();break;case"reset":this.reset();break;case"prev":this.prev(n.loop);break;case"play":this.play(n.fullscreen);break;case"next":this.next(n.loop);break;case"rotate-left":this.rotate(-90);break;case"rotate-right":this.rotate(90);break;case"flip-horizontal":this.scaleX(-i.scaleX||-1);break;case"flip-vertical":this.scaleY(-i.scaleY||-1);break;default:this.played&&this.stop()}},dblclick:function(e){e.preventDefault(),this.viewed&&e.target===this.image&&(ue&&e.isTrusted&&clearTimeout(this.doubleClickImageTimeout),this.toggle(e.isTrusted?e:e.detail&&e.detail.originalEvent))},load:function(){var e=this;this.timeout&&(clearTimeout(this.timeout),this.timeout=!1);var n=this.element,i=this.options,r=this.image,a=this.index,s=this.viewerData;C(r,_e),i.loading&&C(this.canvas,fe),r.style.cssText="height:0;"+"margin-left:".concat(s.width/2,"px;")+"margin-top:".concat(s.height/2,"px;")+"max-width:none!important;position:relative;width:0;",this.initImage(function(){ze(r,Fa,i.movable),ze(r,P,i.transition),e.renderImage(function(){e.viewed=!0,e.viewing=!1,T(i.viewed)&&k(n,Ce,i.viewed,{once:!0}),R(n,Ce,{originalImage:e.images[a],index:a,image:r},{cancelable:!1})})})},loadImage:function(e){var n=e.target,i=n.parentNode,r=i.offsetWidth||30,a=i.offsetHeight||50,s=!!be(n,"filled");Un(n,this.options,function(l,u){var f=l/u,d=r,c=a;a*f>r?s?d=a*f:c=r/f:s?c=r/f:d=a*f,X(n,$({width:d,height:c},Xe({translateX:(r-d)/2,translateY:(a-c)/2})))})},keydown:function(e){var n=this.options;if(n.keyboard){var i=e.keyCode||e.which||e.charCode;switch(i){case 13:this.viewer.contains(e.target)&&this.click(e);break}if(this.fulled)switch(i){case 27:this.played?this.stop():n.inline?this.fulled&&this.exit():this.hide();break;case 32:this.played&&this.stop();break;case 37:this.played&&this.playing?this.playing.prev():this.prev(n.loop);break;case 38:e.preventDefault(),this.zoom(n.zoomRatio,!0);break;case 39:this.played&&this.playing?this.playing.next():this.next(n.loop);break;case 40:e.preventDefault(),this.zoom(-n.zoomRatio,!0);break;case 48:case 49:e.ctrlKey&&(e.preventDefault(),this.toggle());break}}},dragstart:function(e){e.target.localName==="img"&&e.preventDefault()},pointerdown:function(e){var n=this.options,i=this.pointers,r=e.buttons,a=e.button;if(this.pointerMoved=!1,!(!this.viewed||this.showing||this.viewing||this.hiding||(e.type==="mousedown"||e.type==="pointerdown"&&e.pointerType==="mouse")&&(B(r)&&r!==1||B(a)&&a!==0||e.ctrlKey))){e.preventDefault(),e.changedTouches?N(e.changedTouches,function(l){i[l.identifier]=Ke(l)}):i[e.pointerId||0]=Ke(e);var s=n.movable?$e:!1;n.zoomOnTouch&&n.zoomable&&Object.keys(i).length>1?s=Ee:n.slideOnTouch&&(e.pointerType==="touch"||e.type==="touchstart")&&this.isSwitchable()&&(s=bn),n.transition&&(s===$e||s===Ee)&&C(this.image,P),this.action=s}},pointermove:function(e){var n=this.pointers,i=this.action;!this.viewed||!i||(e.preventDefault(),e.changedTouches?N(e.changedTouches,function(r){$(n[r.identifier]||{},Ke(r,!0))}):$(n[e.pointerId||0]||{},Ke(e,!0)),this.change(e))},pointerup:function(e){var n=this,i=this.options,r=this.action,a=this.pointers,s;e.changedTouches?N(e.changedTouches,function(l){s=a[l.identifier],delete a[l.identifier]}):(s=a[e.pointerId||0],delete a[e.pointerId||0]),r&&(e.preventDefault(),i.transition&&(r===$e||r===Ee)&&w(this.image,P),this.action=!1,ue&&r!==Ee&&s&&Date.now()-s.timeStamp<500&&(clearTimeout(this.clickCanvasTimeout),clearTimeout(this.doubleClickImageTimeout),i.toggleOnDblclick&&this.viewed&&e.target===this.image?this.imageClicked?(this.imageClicked=!1,this.doubleClickImageTimeout=setTimeout(function(){R(n.image,mt,{originalEvent:e})},50)):(this.imageClicked=!0,this.doubleClickImageTimeout=setTimeout(function(){n.imageClicked=!1},500)):(this.imageClicked=!1,i.backdrop&&i.backdrop!=="static"&&e.target===this.canvas&&(this.clickCanvasTimeout=setTimeout(function(){R(n.canvas,he,{originalEvent:e})},50)))))},resize:function(){var e=this;if(!(!this.isShown||this.hiding)&&(this.fulled&&(this.close(),this.initBody(),this.open()),this.initContainer(),this.initViewer(),this.renderViewer(),this.renderList(),this.viewed&&this.initImage(function(){e.renderImage()}),this.played)){if(this.options.fullscreen&&this.fulled&&!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement)){this.stop();return}N(this.player.getElementsByTagName("img"),function(n){k(n,W,e.loadImage.bind(e),{once:!0}),R(n,W)})}},wheel:function(e){var n=this;if(this.viewed&&(e.preventDefault(),!this.wheeling)){this.wheeling=!0,setTimeout(function(){n.wheeling=!1},50);var i=Number(this.options.zoomRatio)||.1,r=1;e.deltaY?r=e.deltaY>0?1:-1:e.wheelDelta?r=-e.wheelDelta/120:e.detail&&(r=e.detail>0?1:-1),this.zoom(-r*i,!0,null,e)}}},no={show:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n=this.element,i=this.options;if(i.inline||this.showing||this.isShown||this.showing)return this;if(!this.ready)return this.build(),this.ready&&this.show(e),this;if(T(i.show)&&k(n,On,i.show,{once:!0}),R(n,On)===!1||!this.ready)return this;this.hiding&&this.transitioning.abort(),this.showing=!0,this.open();var r=this.viewer;if(C(r,se),r.setAttribute("role","dialog"),r.setAttribute("aria-labelledby",this.title.id),r.setAttribute("aria-modal",!0),r.removeAttribute("aria-hidden"),i.transition&&!e){var a=this.shown.bind(this);this.transitioning={abort:function(){O(r,U,a),C(r,H)}},w(r,P),r.initialOffsetWidth=r.offsetWidth,k(r,U,a,{once:!0}),w(r,H)}else w(r,H),this.shown();return this},hide:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=this.element,r=this.options;if(r.inline||this.hiding||!(this.isShown||this.showing))return this;if(T(r.hide)&&k(i,In,r.hide,{once:!0}),R(i,In)===!1)return this;this.showing&&this.transitioning.abort(),this.hiding=!0,this.played?this.stop():this.viewing&&this.viewing.abort();var a=this.viewer,s=this.image,l=function(){C(a,H),e.hidden()};if(r.transition&&!n){var u=function d(c){c&&c.target===a&&(O(a,U,d),e.hidden())},f=function(){ve(a,P)?(k(a,U,u),C(a,H)):l()};this.transitioning={abort:function(){e.viewed&&ve(s,P)?O(s,U,f):ve(a,P)&&O(a,U,u)}},this.viewed&&ve(s,P)?(k(s,U,f,{once:!0}),this.zoomTo(0,!1,null,null,!0)):f()}else l();return this},view:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.initialViewIndex;if(n=Number(n)||0,this.hiding||this.played||n<0||n>=this.length||this.viewed&&n===this.index)return this;if(!this.isShown)return this.index=n,this.show();this.viewing&&this.viewing.abort();var i=this.element,r=this.options,a=this.title,s=this.canvas,l=this.items[n],u=l.querySelector("img"),f=be(u,"originalUrl"),d=u.getAttribute("alt"),c=document.createElement("img");if(N(r.inheritedAttributes,function(v){var b=u.getAttribute(v);b!==null&&c.setAttribute(v,b)}),c.src=f,c.alt=d,T(r.view)&&k(i,Pn,r.view,{once:!0}),R(i,Pn,{originalImage:this.images[n],index:n,image:c})===!1||!this.isShown||this.hiding||this.played)return this;var h=this.items[this.index];h&&(C(h,He),h.removeAttribute("aria-selected")),w(l,He),l.setAttribute("aria-selected",!0),r.focus&&l.focus(),this.image=c,this.viewed=!1,this.index=n,this.imageData={},w(c,_e),r.loading&&w(s,fe),s.innerHTML="",s.appendChild(c),this.renderList(),a.innerHTML="";var g=function(){var b=e.imageData,E=Array.isArray(r.title)?r.title[1]:r.title;a.innerHTML=Xa(T(E)?E.call(e,c,b):"".concat(d," (").concat(b.naturalWidth," × ").concat(b.naturalHeight,")"))},m,p;return k(i,Ce,g,{once:!0}),this.viewing={abort:function(){O(i,Ce,g),c.complete?e.imageRendering?e.imageRendering.abort():e.imageInitializing&&e.imageInitializing.abort():(c.src="",O(c,W,m),e.timeout&&clearTimeout(e.timeout))}},c.complete?this.load():(k(c,W,m=function(){O(c,le,p),e.load()},{once:!0}),k(c,le,p=function(){O(c,W,m),e.timeout&&(clearTimeout(e.timeout),e.timeout=!1),C(c,_e),r.loading&&C(e.canvas,fe)},{once:!0}),this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(function(){C(c,_e),e.timeout=!1},1e3)),this},prev:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n=this.index-1;return n<0&&(n=e?this.length-1:0),this.view(n),this},next:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n=this.length-1,i=this.index+1;return i>n&&(i=e?0:n),this.view(i),this},move:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,i=this.imageData;return this.moveTo(pe(e)?e:i.x+Number(e),pe(n)?n:i.y+Number(n)),this},moveTo:function(e){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,a=this.element,s=this.options,l=this.imageData;if(e=Number(e),i=Number(i),this.viewed&&!this.played&&s.movable){var u=l.x,f=l.y,d=!1;if(B(e)?d=!0:e=u,B(i)?d=!0:i=f,d){if(T(s.move)&&k(a,Rn,s.move,{once:!0}),R(a,Rn,{x:e,y:i,oldX:u,oldY:f,originalEvent:r})===!1)return this;l.x=e,l.y=i,l.left=e,l.top=i,this.moving=!0,this.renderImage(function(){n.moving=!1,T(s.moved)&&k(a,Dn,s.moved,{once:!0}),R(a,Dn,{x:e,y:i,oldX:u,oldY:f,originalEvent:r},{cancelable:!1})})}}return this},rotate:function(e){return this.rotateTo((this.imageData.rotate||0)+Number(e)),this},rotateTo:function(e){var n=this,i=this.element,r=this.options,a=this.imageData;if(e=Number(e),B(e)&&this.viewed&&!this.played&&r.rotatable){var s=a.rotate;if(T(r.rotate)&&k(i,Mn,r.rotate,{once:!0}),R(i,Mn,{degree:e,oldDegree:s})===!1)return this;a.rotate=e,this.rotating=!0,this.renderImage(function(){n.rotating=!1,T(r.rotated)&&k(i,Ln,r.rotated,{once:!0}),R(i,Ln,{degree:e,oldDegree:s},{cancelable:!1})})}return this},scaleX:function(e){return this.scale(e,this.imageData.scaleY),this},scaleY:function(e){return this.scale(this.imageData.scaleX,e),this},scale:function(e){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,r=this.element,a=this.options,s=this.imageData;if(e=Number(e),i=Number(i),this.viewed&&!this.played&&a.scalable){var l=s.scaleX,u=s.scaleY,f=!1;if(B(e)?f=!0:e=l,B(i)?f=!0:i=u,f){if(T(a.scale)&&k(r,jn,a.scale,{once:!0}),R(r,jn,{scaleX:e,scaleY:i,oldScaleX:l,oldScaleY:u})===!1)return this;s.scaleX=e,s.scaleY=i,this.scaling=!0,this.renderImage(function(){n.scaling=!1,T(a.scaled)&&k(r,Fn,a.scaled,{once:!0}),R(r,Fn,{scaleX:e,scaleY:i,oldScaleX:l,oldScaleY:u},{cancelable:!1})})}}return this},zoom:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,a=this.imageData;return e=Number(e),e<0?e=1/(1-e):e=1+e,this.zoomTo(a.width*e/a.naturalWidth,n,i,r),this},zoomTo:function(e){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,l=this.element,u=this.options,f=this.pointers,d=this.imageData,c=d.x,h=d.y,g=d.width,m=d.height,p=d.naturalWidth,v=d.naturalHeight;if(e=Math.max(0,e),B(e)&&this.viewed&&!this.played&&(s||u.zoomable)){if(!s){var b=Math.max(.01,u.minZoomRatio),E=Math.min(100,u.maxZoomRatio);e=Math.min(Math.max(e,b),E)}if(a)switch(a.type){case"wheel":u.zoomRatio>=.055&&e>.95&&e<1.05&&(e=1);break;case"pointermove":case"touchmove":case"mousemove":e>.99&&e<1.01&&(e=1);break}var x=p*e,_=v*e,D=x-g,M=_-m,I=d.ratio;if(T(u.zoom)&&k(l,Vn,u.zoom,{once:!0}),R(l,Vn,{ratio:e,oldRatio:I,originalEvent:a})===!1)return this;if(this.zooming=!0,a){var Y=Ka(this.viewer),ne=f&&Object.keys(f).length>0?Ja(f):{pageX:a.pageX,pageY:a.pageY};d.x-=D*((ne.pageX-Y.left-c)/g),d.y-=M*((ne.pageY-Y.top-h)/m)}else me(r)&&B(r.x)&&B(r.y)?(d.x-=D*((r.x-c)/g),d.y-=M*((r.y-h)/m)):(d.x-=D/2,d.y-=M/2);d.left=d.x,d.top=d.y,d.width=x,d.height=_,d.oldRatio=I,d.ratio=e,this.renderImage(function(){n.zooming=!1,T(u.zoomed)&&k(l,$n,u.zoomed,{once:!0}),R(l,$n,{ratio:e,oldRatio:I,originalEvent:a},{cancelable:!1})}),i&&this.tooltip()}return this},play:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!this.isShown||this.played)return this;var i=this.element,r=this.options;if(T(r.play)&&k(i,Hn,r.play,{once:!0}),R(i,Hn)===!1)return this;var a=this.player,s=this.loadImage.bind(this),l=[],u=0,f=0;if(this.played=!0,this.onLoadWhenPlay=s,n&&this.requestFullscreen(n),w(a,de),N(this.items,function(h,g){var m=h.querySelector("img"),p=document.createElement("img");p.src=be(m,"originalUrl"),p.alt=m.getAttribute("alt"),p.referrerPolicy=m.referrerPolicy,u+=1,w(p,We),ze(p,P,r.transition),ve(h,He)&&(w(p,H),f=g),l.push(p),k(p,W,s,{once:!0}),a.appendChild(p)}),B(r.interval)&&r.interval>0){var d=function h(){clearTimeout(e.playing.timeout),C(l[f],H),f-=1,f=f>=0?f:u-1,w(l[f],H),e.playing.timeout=setTimeout(h,r.interval)},c=function h(){clearTimeout(e.playing.timeout),C(l[f],H),f+=1,f=f<u?f:0,w(l[f],H),e.playing.timeout=setTimeout(h,r.interval)};u>1&&(this.playing={prev:d,next:c,timeout:setTimeout(c,r.interval)})}return this},stop:function(){var e=this;if(!this.played)return this;var n=this.element,i=this.options;if(T(i.stop)&&k(n,Wn,i.stop,{once:!0}),R(n,Wn)===!1)return this;var r=this.player;return clearTimeout(this.playing.timeout),this.playing=!1,this.played=!1,N(r.getElementsByTagName("img"),function(a){O(a,W,e.onLoadWhenPlay)}),C(r,de),r.innerHTML="",this.exitFullscreen(),this},full:function(){var e=this,n=this.options,i=this.viewer,r=this.image,a=this.list;return!this.isShown||this.played||this.fulled||!n.inline?this:(this.fulled=!0,this.open(),w(this.button,yn),n.transition&&(C(a,P),this.viewed&&C(r,P)),w(i,gt),i.setAttribute("role","dialog"),i.setAttribute("aria-labelledby",this.title.id),i.setAttribute("aria-modal",!0),i.removeAttribute("style"),X(i,{zIndex:n.zIndex}),n.focus&&this.enforceFocus(),this.initContainer(),this.viewerData=$({},this.containerData),this.renderList(),this.viewed&&this.initImage(function(){e.renderImage(function(){n.transition&&setTimeout(function(){w(r,P),w(a,P)},0)})}),this)},exit:function(){var e=this,n=this.options,i=this.viewer,r=this.image,a=this.list;return!this.isShown||this.played||!this.fulled||!n.inline?this:(this.fulled=!1,this.close(),C(this.button,yn),n.transition&&(C(a,P),this.viewed&&C(r,P)),n.focus&&this.clearEnforceFocus(),i.removeAttribute("role"),i.removeAttribute("aria-labelledby"),i.removeAttribute("aria-modal"),C(i,gt),X(i,{zIndex:n.zIndexInline}),this.viewerData=$({},this.parentData),this.renderViewer(),this.renderList(),this.viewed&&this.initImage(function(){e.renderImage(function(){n.transition&&setTimeout(function(){w(r,P),w(a,P)},0)})}),this)},tooltip:function(){var e=this,n=this.options,i=this.tooltipBox,r=this.imageData;return!this.viewed||this.played||!n.tooltip?this:(i.textContent="".concat(Math.round(r.ratio*100),"%"),this.tooltipping?clearTimeout(this.tooltipping):n.transition?(this.fading&&R(i,U),w(i,de),w(i,We),w(i,P),i.removeAttribute("aria-hidden"),i.initialOffsetWidth=i.offsetWidth,w(i,H)):(w(i,de),i.removeAttribute("aria-hidden")),this.tooltipping=setTimeout(function(){n.transition?(k(i,U,function(){C(i,de),C(i,We),C(i,P),i.setAttribute("aria-hidden",!0),e.fading=!1},{once:!0}),C(i,H),e.fading=!0):(C(i,de),i.setAttribute("aria-hidden",!0)),e.tooltipping=!1},1e3),this)},toggle:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return this.imageData.ratio===1?this.zoomTo(this.imageData.oldRatio,!0,null,e):this.zoomTo(1,!0,null,e),this},reset:function(){return this.viewed&&!this.played&&(this.imageData=$({},this.initialImageData),this.renderImage()),this},update:function(){var e=this,n=this.element,i=this.options,r=this.isImg;if(r&&!n.parentNode)return this.destroy();var a=[];if(N(r?[n]:n.querySelectorAll("img"),function(f){T(i.filter)?i.filter.call(e,f)&&a.push(f):e.getImageURL(f)&&a.push(f)}),!a.length)return this;if(this.images=a,this.length=a.length,this.ready){var s=[];if(N(this.items,function(f,d){var c=f.querySelector("img"),h=a[d];h&&c?(h.src!==c.src||h.alt!==c.alt)&&s.push(d):s.push(d)}),X(this.list,{width:"auto"}),this.initList(),this.isShown)if(this.length){if(this.viewed){var l=s.indexOf(this.index);if(l>=0)this.viewed=!1,this.view(Math.max(Math.min(this.index-l,this.length-1),0));else{var u=this.items[this.index];w(u,He),u.setAttribute("aria-selected",!0)}}}else this.image=null,this.viewed=!1,this.index=0,this.imageData={},this.canvas.innerHTML="",this.title.innerHTML=""}else this.build();return this},destroy:function(){var e=this.element,n=this.options;return e[S]?(this.destroyed=!0,this.ready?(this.played&&this.stop(),n.inline?(this.fulled&&this.exit(),this.unbind()):this.isShown?(this.viewing&&(this.imageRendering?this.imageRendering.abort():this.imageInitializing&&this.imageInitializing.abort()),this.hiding&&this.transitioning.abort(),this.hidden()):this.showing&&(this.transitioning.abort(),this.hidden()),this.ready=!1,this.viewer.parentNode.removeChild(this.viewer)):n.inline&&(this.delaying?this.delaying.abort():this.initializing&&this.initializing.abort()),n.inline||O(e,he,this.onStart),e[S]=void 0,this):this}},io={getImageURL:function(e){var n=this.options.url;return Ae(n)?n=e.getAttribute(n):T(n)?n=n.call(this,e):n="",n},enforceFocus:function(){var e=this;this.clearEnforceFocus(),k(document,kn,this.onFocusin=function(n){var i=e.viewer,r=n.target;if(!(r===document||r===i||i.contains(r))){for(;r;){if(r.getAttribute("tabindex")!==null||r.getAttribute("aria-modal")==="true")return;r=r.parentElement}i.focus()}})},clearEnforceFocus:function(){this.onFocusin&&(O(document,kn,this.onFocusin),this.onFocusin=null)},open:function(){var e=this.body;w(e,wn),this.scrollbarWidth>0&&(e.style.paddingRight="".concat(this.scrollbarWidth+(parseFloat(this.initialBodyComputedPaddingRight)||0),"px"))},close:function(){var e=this.body;C(e,wn),this.scrollbarWidth>0&&(e.style.paddingRight=this.initialBodyPaddingRight)},shown:function(){var e=this.element,n=this.options,i=this.viewer;this.fulled=!0,this.isShown=!0,this.render(),this.bind(),this.showing=!1,n.focus&&(i.focus(),this.enforceFocus()),T(n.shown)&&k(e,Nn,n.shown,{once:!0}),R(e,Nn)!==!1&&this.ready&&this.isShown&&!this.hiding&&this.view(this.index)},hidden:function(){var e=this.element,n=this.options,i=this.viewer;n.fucus&&this.clearEnforceFocus(),this.close(),this.unbind(),w(i,se),i.removeAttribute("role"),i.removeAttribute("aria-labelledby"),i.removeAttribute("aria-modal"),i.setAttribute("aria-hidden",!0),this.resetList(),this.resetImage(),this.fulled=!1,this.viewed=!1,this.isShown=!1,this.hiding=!1,this.destroyed||(T(n.hidden)&&k(e,Bn,n.hidden,{once:!0}),R(e,Bn,null,{cancelable:!1}))},requestFullscreen:function(e){var n=this.element.ownerDocument;if(this.fulled&&!(n.fullscreenElement||n.webkitFullscreenElement||n.mozFullScreenElement||n.msFullscreenElement)){var i=n.documentElement;i.requestFullscreen?me(e)?i.requestFullscreen(e):i.requestFullscreen():i.webkitRequestFullscreen?i.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):i.mozRequestFullScreen?i.mozRequestFullScreen():i.msRequestFullscreen&&i.msRequestFullscreen()}},exitFullscreen:function(){var e=this.element.ownerDocument;this.fulled&&(e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement)&&(e.exitFullscreen?e.exitFullscreen():e.webkitExitFullscreen?e.webkitExitFullscreen():e.mozCancelFullScreen?e.mozCancelFullScreen():e.msExitFullscreen&&e.msExitFullscreen())},change:function(e){var n=this.options,i=this.pointers,r=i[Object.keys(i)[0]];if(r){var a=r.endX-r.startX,s=r.endY-r.startY;switch(this.action){case $e:(a!==0||s!==0)&&(this.pointerMoved=!0,this.move(a,s,e));break;case Ee:this.zoom(Za(i),!1,null,e);break;case bn:{this.action="switched";var l=Math.abs(a);l>1&&l>Math.abs(s)&&(this.pointers={},a>1?this.prev(n.loop):a<-1&&this.next(n.loop));break}}N(i,function(u){u.startX=u.endX,u.startY=u.endY})}},isSwitchable:function(){var e=this.imageData,n=this.viewerData;return this.length>1&&e.x>=0&&e.y>=0&&e.width<=n.width&&e.height<=n.height}},ro=G.Viewer,ao=function(t){return function(){return t+=1,t}}(-1),Xn=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(Oa(this,t),!e||e.nodeType!==1)throw new Error("The first argument is required and must be an element.");this.element=e,this.options=$({},vn,me(n)&&n),this.action=!1,this.fading=!1,this.fulled=!1,this.hiding=!1,this.imageClicked=!1,this.imageData={},this.index=this.options.initialViewIndex,this.isImg=!1,this.isShown=!1,this.length=0,this.moving=!1,this.played=!1,this.playing=!1,this.pointers={},this.ready=!1,this.rotating=!1,this.scaling=!1,this.showing=!1,this.timeout=!1,this.tooltipping=!1,this.viewed=!1,this.viewing=!1,this.wheeling=!1,this.zooming=!1,this.pointerMoved=!1,this.id=ao(),this.init()}return Na(t,[{key:"init",value:function(){var n=this,i=this.element,r=this.options;if(!i[S]){i[S]=this,r.focus&&!r.keyboard&&(r.focus=!1);var a=i.localName==="img",s=[];if(N(a?[i]:i.querySelectorAll("img"),function(f){T(r.filter)?r.filter.call(n,f)&&s.push(f):n.getImageURL(f)&&s.push(f)}),this.isImg=a,this.length=s.length,this.images=s,this.initBody(),pe(document.createElement(S).style.transition)&&(r.transition=!1),r.inline){var l=0,u=function(){if(l+=1,l===n.length){var d;n.initializing=!1,n.delaying={abort:function(){clearTimeout(d)}},d=setTimeout(function(){n.delaying=!1,n.build()},0)}};this.initializing={abort:function(){N(s,function(d){d.complete||(O(d,W,u),O(d,le,u))})}},N(s,function(f){if(f.complete)u();else{var d,c;k(f,W,d=function(){O(f,le,c),u()},{once:!0}),k(f,le,c=function(){O(f,W,d),u()},{once:!0})}})}else k(i,he,this.onStart=function(f){var d=f.target;d.localName==="img"&&(!T(r.filter)||r.filter.call(n,d))&&n.view(n.images.indexOf(d))})}}},{key:"build",value:function(){if(!this.ready){var n=this.element,i=this.options,r=n.parentNode,a=document.createElement("div");a.innerHTML=Pa;var s=a.querySelector(".".concat(S,"-container")),l=s.querySelector(".".concat(S,"-title")),u=s.querySelector(".".concat(S,"-toolbar")),f=s.querySelector(".".concat(S,"-navbar")),d=s.querySelector(".".concat(S,"-button")),c=s.querySelector(".".concat(S,"-canvas"));if(this.parent=r,this.viewer=s,this.title=l,this.toolbar=u,this.navbar=f,this.button=d,this.canvas=c,this.footer=s.querySelector(".".concat(S,"-footer")),this.tooltipBox=s.querySelector(".".concat(S,"-tooltip")),this.player=s.querySelector(".".concat(S,"-player")),this.list=s.querySelector(".".concat(S,"-list")),s.id="".concat(S).concat(this.id),l.id="".concat(S,"Title").concat(this.id),w(l,i.title?Ye(Array.isArray(i.title)?i.title[0]:i.title):se),w(f,i.navbar?Ye(i.navbar):se),ze(d,se,!i.button),i.keyboard&&d.setAttribute("tabindex",0),i.backdrop&&(w(s,"".concat(S,"-backdrop")),!i.inline&&i.backdrop!=="static"&&yt(c,qe,"hide")),Ae(i.className)&&i.className&&i.className.split(vt).forEach(function(x){w(s,x)}),i.toolbar){var h=document.createElement("ul"),g=me(i.toolbar),m=Ue.slice(0,3),p=Ue.slice(7,9),v=Ue.slice(9);g||w(u,Ye(i.toolbar)),N(g?i.toolbar:Ue,function(x,_){var D=g&&me(x),M=g?bt(_):x,I=D&&!pe(x.show)?x.show:x;if(!(!I||!i.zoomable&&m.indexOf(M)!==-1||!i.rotatable&&p.indexOf(M)!==-1||!i.scalable&&v.indexOf(M)!==-1)){var Y=D&&!pe(x.size)?x.size:x,ne=D&&!pe(x.click)?x.click:x,y=document.createElement("li");i.keyboard&&y.setAttribute("tabindex",0),y.setAttribute("role","button"),w(y,"".concat(S,"-").concat(M)),T(ne)||yt(y,qe,M),B(I)&&w(y,Ye(I)),["small","large"].indexOf(Y)!==-1?w(y,"".concat(S,"-").concat(Y)):M==="play"&&w(y,"".concat(S,"-large")),T(ne)&&k(y,he,ne),h.appendChild(y)}}),u.appendChild(h)}else w(u,se);if(!i.rotatable){var b=u.querySelectorAll('li[class*="rotate"]');w(b,_e),N(b,function(x){u.appendChild(x)})}if(i.inline)w(d,Da),X(s,{zIndex:i.zIndexInline}),window.getComputedStyle(r).position==="static"&&X(r,{position:"relative"}),r.insertBefore(s,n.nextSibling);else{w(d,Ra),w(s,gt),w(s,We),w(s,se),X(s,{zIndex:i.zIndex});var E=i.container;Ae(E)&&(E=n.ownerDocument.querySelector(E)),E||(E=this.body),E.appendChild(s)}if(i.inline&&(this.render(),this.bind(),this.isShown=!0),this.ready=!0,T(i.ready)&&k(n,Tn,i.ready,{once:!0}),R(n,Tn)===!1){this.ready=!1;return}this.ready&&i.inline&&this.view(this.index)}}}],[{key:"noConflict",value:function(){return window.Viewer=ro,t}},{key:"setDefaults",value:function(n){$(vn,me(n)&&n)}}]),t}();$(Xn.prototype,Qa,eo,to,no,io);const oo={"size-full":""},so=["src"],lo=Se(o.defineComponent({__name:"Image",props:{file:{type:null}},setup(t){const e=t,n=o.ref(),i=ft(()=>e.file);return Fe(()=>n.value&&i.value,(r,a,s)=>{const l=new Xn(n.value,{inline:!0,navbar:!1,title:!1,transition:!1,toolbar:{reset:!0,rotateLeft:!0,rotateRight:!0,zoomIn:!0,zoomOut:!0,flipHorizontal:!0,flipVertical:!0}});s(()=>{l.destroy()})}),(r,a)=>(o.openBlock(),o.createElementBlock("div",oo,[o.createElementVNode("div",{ref_key:"rootRef",ref:n,"size-full":""},[o.unref(i)?(o.openBlock(),o.createElementBlock("img",{key:0,src:o.unref(i),hidden:""},null,8,so)):o.createCommentVNode("v-if",!0)],512)]))}}),[["styles",[`/*!
23
+ */function gn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function dt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?gn(Object(n),!0).forEach(function(i){Ro(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):gn(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function ht(t){"@babel/helpers - typeof";return ht=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ht(t)}function Io(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function mn(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,vn(i.key),i)}}function Bo(t,e,n){return e&&mn(t.prototype,e),n&&mn(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ro(t,e,n){return e=vn(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Po(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function vn(t){var e=Po(t,"string");return typeof e=="symbol"?e:String(e)}var bn={backdrop:!0,button:!0,navbar:!0,title:!0,toolbar:!0,className:"",container:"body",filter:null,fullscreen:!0,inheritedAttributes:["crossOrigin","decoding","isMap","loading","referrerPolicy","sizes","srcset","useMap"],initialCoverage:.9,initialViewIndex:0,inline:!1,interval:5e3,keyboard:!0,focus:!0,loading:!0,loop:!0,minWidth:200,minHeight:100,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,slideOnTouch:!0,toggleOnDblclick:!0,tooltip:!0,transition:!0,zIndex:2015,zIndexInline:0,zoomRatio:.1,minZoomRatio:.01,maxZoomRatio:100,url:"src",ready:null,show:null,shown:null,hide:null,hidden:null,view:null,viewed:null,move:null,moved:null,rotate:null,rotated:null,scale:null,scaled:null,zoom:null,zoomed:null,play:null,stop:null},Do='<div class="viewer-container" tabindex="-1" touch-action="none"><div class="viewer-canvas"></div><div class="viewer-footer"><div class="viewer-title"></div><div class="viewer-toolbar"></div><div class="viewer-navbar"><ul class="viewer-list" role="navigation"></ul></div></div><div class="viewer-tooltip" role="alert" aria-hidden="true"></div><div class="viewer-button" data-viewer-action="mix" role="button"></div><div class="viewer-player"></div></div>',Fe=typeof window<"u"&&typeof window.document<"u",G=Fe?window:{},ue=Fe&&G.document.documentElement?"ontouchstart"in G.document.documentElement:!1,pt=Fe?"PointerEvent"in G:!1,S="viewer",$e="move",yn="switch",Ee="zoom",He="".concat(S,"-active"),Mo="".concat(S,"-close"),We="".concat(S,"-fade"),gt="".concat(S,"-fixed"),Lo="".concat(S,"-fullscreen"),wn="".concat(S,"-fullscreen-exit"),se="".concat(S,"-hide"),jo="".concat(S,"-hide-md-down"),Vo="".concat(S,"-hide-sm-down"),Fo="".concat(S,"-hide-xs-down"),H="".concat(S,"-in"),_e="".concat(S,"-invisible"),fe="".concat(S,"-loading"),$o="".concat(S,"-move"),xn="".concat(S,"-open"),de="".concat(S,"-show"),R="".concat(S,"-transition"),he="click",mt="dblclick",kn="dragstart",Sn="focusin",En="keydown",W="load",le="error",Ho=ue?"touchend touchcancel":"mouseup",Wo=ue?"touchmove":"mousemove",qo=ue?"touchstart":"mousedown",_n=pt?"pointerdown":qo,Cn=pt?"pointermove":Wo,An=pt?"pointerup pointercancel":Ho,zn="resize",U="transitionend",Tn="wheel",On="ready",Nn="show",In="shown",Bn="hide",Rn="hidden",Pn="view",Ce="viewed",Dn="move",Mn="moved",Ln="rotate",jn="rotated",Vn="scale",Fn="scaled",$n="zoom",Hn="zoomed",Wn="play",qn="stop",qe="".concat(S,"Action"),vt=/\s\s*/,Ue=["zoom-in","zoom-out","one-to-one","reset","prev","play","next","rotate-left","rotate-right","flip-horizontal","flip-vertical"];function Ae(t){return typeof t=="string"}var Uo=Number.isNaN||G.isNaN;function B(t){return typeof t=="number"&&!Uo(t)}function pe(t){return typeof t>"u"}function ge(t){return ht(t)==="object"&&t!==null}var Xo=Object.prototype.hasOwnProperty;function me(t){if(!ge(t))return!1;try{var e=t.constructor,n=e.prototype;return e&&n&&Xo.call(n,"isPrototypeOf")}catch{return!1}}function T(t){return typeof t=="function"}function N(t,e){if(t&&T(e))if(Array.isArray(t)||B(t.length)){var n=t.length,i;for(i=0;i<n&&e.call(t,t[i],i,t)!==!1;i+=1);}else ge(t)&&Object.keys(t).forEach(function(r){e.call(t,t[r],r,t)});return t}var $=Object.assign||function(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return ge(e)&&i.length>0&&i.forEach(function(o){ge(o)&&Object.keys(o).forEach(function(s){e[s]=o[s]})}),e},Yo=/^(?:width|height|left|top|marginLeft|marginTop)$/;function X(t,e){var n=t.style;N(e,function(i,r){Yo.test(r)&&B(i)&&(i+="px"),n[r]=i})}function Ko(t){return Ae(t)?t.replace(/&(?!amp;|quot;|#39;|lt;|gt;)/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;"):t}function ve(t,e){return!t||!e?!1:t.classList?t.classList.contains(e):t.className.indexOf(e)>-1}function w(t,e){if(!(!t||!e)){if(B(t.length)){N(t,function(i){w(i,e)});return}if(t.classList){t.classList.add(e);return}var n=t.className.trim();n?n.indexOf(e)<0&&(t.className="".concat(n," ").concat(e)):t.className=e}}function C(t,e){if(!(!t||!e)){if(B(t.length)){N(t,function(n){C(n,e)});return}if(t.classList){t.classList.remove(e);return}t.className.indexOf(e)>=0&&(t.className=t.className.replace(e,""))}}function ze(t,e,n){if(e){if(B(t.length)){N(t,function(i){ze(i,e,n)});return}n?w(t,e):C(t,e)}}var Go=/([a-z\d])([A-Z])/g;function bt(t){return t.replace(Go,"$1-$2").toLowerCase()}function be(t,e){return ge(t[e])?t[e]:t.dataset?t.dataset[e]:t.getAttribute("data-".concat(bt(e)))}function yt(t,e,n){ge(n)?t[e]=n:t.dataset?t.dataset[e]=n:t.setAttribute("data-".concat(bt(e)),n)}var Un=function(){var t=!1;if(Fe){var e=!1,n=function(){},i=Object.defineProperty({},"once",{get:function(){return t=!0,e},set:function(o){e=o}});G.addEventListener("test",n,i),G.removeEventListener("test",n,i)}return t}();function O(t,e,n){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},r=n;e.trim().split(vt).forEach(function(o){if(!Un){var s=t.listeners;s&&s[o]&&s[o][n]&&(r=s[o][n],delete s[o][n],Object.keys(s[o]).length===0&&delete s[o],Object.keys(s).length===0&&delete t.listeners)}t.removeEventListener(o,r,i)})}function k(t,e,n){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},r=n;e.trim().split(vt).forEach(function(o){if(i.once&&!Un){var s=t.listeners,l=s===void 0?{}:s;r=function(){delete l[o][n],t.removeEventListener(o,r,i);for(var f=arguments.length,d=new Array(f),c=0;c<f;c++)d[c]=arguments[c];n.apply(t,d)},l[o]||(l[o]={}),l[o][n]&&t.removeEventListener(o,l[o][n],i),l[o][n]=r,t.listeners=l}t.addEventListener(o,r,i)})}function P(t,e,n,i){var r;return T(Event)&&T(CustomEvent)?r=new CustomEvent(e,dt({bubbles:!0,cancelable:!0,detail:n},i)):(r=document.createEvent("CustomEvent"),r.initCustomEvent(e,!0,!0,n)),t.dispatchEvent(r)}function Zo(t){var e=t.getBoundingClientRect();return{left:e.left+(window.pageXOffset-document.documentElement.clientLeft),top:e.top+(window.pageYOffset-document.documentElement.clientTop)}}function Xe(t){var e=t.rotate,n=t.scaleX,i=t.scaleY,r=t.translateX,o=t.translateY,s=[];B(r)&&r!==0&&s.push("translateX(".concat(r,"px)")),B(o)&&o!==0&&s.push("translateY(".concat(o,"px)")),B(e)&&e!==0&&s.push("rotate(".concat(e,"deg)")),B(n)&&n!==1&&s.push("scaleX(".concat(n,")")),B(i)&&i!==1&&s.push("scaleY(".concat(i,")"));var l=s.length?s.join(" "):"none";return{WebkitTransform:l,msTransform:l,transform:l}}function Jo(t){return Ae(t)?decodeURIComponent(t.replace(/^.*\//,"").replace(/[?&#].*$/,"")):""}var wt=G.navigator&&/Version\/\d+(\.\d+)+?\s+Safari/i.test(G.navigator.userAgent);function Xn(t,e,n){var i=document.createElement("img");if(t.naturalWidth&&!wt)return n(t.naturalWidth,t.naturalHeight),i;var r=document.body||document.documentElement;return i.onload=function(){n(i.width,i.height),wt||r.removeChild(i)},N(e.inheritedAttributes,function(o){var s=t.getAttribute(o);s!==null&&i.setAttribute(o,s)}),i.src=t.src,wt||(i.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;",r.appendChild(i)),i}function Ye(t){switch(t){case 2:return Fo;case 3:return Vo;case 4:return jo;default:return""}}function Qo(t){var e=dt({},t),n=[];return N(t,function(i,r){delete e[r],N(e,function(o){var s=Math.abs(i.startX-o.startX),l=Math.abs(i.startY-o.startY),u=Math.abs(i.endX-o.endX),f=Math.abs(i.endY-o.endY),d=Math.sqrt(s*s+l*l),c=Math.sqrt(u*u+f*f),h=(c-d)/d;n.push(h)})}),n.sort(function(i,r){return Math.abs(i)<Math.abs(r)}),n[0]}function Ke(t,e){var n=t.pageX,i=t.pageY,r={endX:n,endY:i};return e?r:dt({timeStamp:Date.now(),startX:n,startY:i},r)}function ea(t){var e=0,n=0,i=0;return N(t,function(r){var o=r.startX,s=r.startY;e+=o,n+=s,i+=1}),e/=i,n/=i,{pageX:e,pageY:n}}var ta={render:function(){this.initContainer(),this.initViewer(),this.initList(),this.renderViewer()},initBody:function(){var e=this.element.ownerDocument,n=e.body||e.documentElement;this.body=n,this.scrollbarWidth=window.innerWidth-e.documentElement.clientWidth,this.initialBodyPaddingRight=n.style.paddingRight,this.initialBodyComputedPaddingRight=window.getComputedStyle(n).paddingRight},initContainer:function(){this.containerData={width:window.innerWidth,height:window.innerHeight}},initViewer:function(){var e=this.options,n=this.parent,i;e.inline&&(i={width:Math.max(n.offsetWidth,e.minWidth),height:Math.max(n.offsetHeight,e.minHeight)},this.parentData=i),(this.fulled||!i)&&(i=this.containerData),this.viewerData=$({},i)},renderViewer:function(){this.options.inline&&!this.fulled&&X(this.viewer,this.viewerData)},initList:function(){var e=this,n=this.element,i=this.options,r=this.list,o=[];r.innerHTML="",N(this.images,function(s,l){var u=s.src,f=s.alt||Jo(u),d=e.getImageURL(s);if(u||d){var c=document.createElement("li"),h=document.createElement("img");N(i.inheritedAttributes,function(g){var m=s.getAttribute(g);m!==null&&h.setAttribute(g,m)}),i.navbar&&(h.src=u||d),h.alt=f,h.setAttribute("data-original-url",d||u),c.setAttribute("data-index",l),c.setAttribute("data-viewer-action","view"),c.setAttribute("role","button"),i.keyboard&&c.setAttribute("tabindex",0),c.appendChild(h),r.appendChild(c),o.push(c)}}),this.items=o,N(o,function(s){var l=s.firstElementChild,u,f;yt(l,"filled",!0),i.loading&&w(s,fe),k(l,W,u=function(c){O(l,le,f),i.loading&&C(s,fe),e.loadImage(c)},{once:!0}),k(l,le,f=function(){O(l,W,u),i.loading&&C(s,fe)},{once:!0})}),i.transition&&k(n,Ce,function(){w(r,R)},{once:!0})},renderList:function(){var e=this.index,n=this.items[e];if(n){var i=n.nextElementSibling,r=parseInt(window.getComputedStyle(i||n).marginLeft,10),o=n.offsetWidth,s=o+r;X(this.list,$({width:s*this.length-r},Xe({translateX:(this.viewerData.width-o)/2-s*e})))}},resetList:function(){var e=this.list;e.innerHTML="",C(e,R),X(e,Xe({translateX:0}))},initImage:function(e){var n=this,i=this.options,r=this.image,o=this.viewerData,s=this.footer.offsetHeight,l=o.width,u=Math.max(o.height-s,s),f=this.imageData||{},d;this.imageInitializing={abort:function(){d.onload=null}},d=Xn(r,i,function(c,h){var g=c/h,m=Math.max(0,Math.min(1,i.initialCoverage)),p=l,v=u;n.imageInitializing=!1,u*g>l?v=l/g:p=u*g,m=B(m)?m:.9,p=Math.min(p*m,c),v=Math.min(v*m,h);var b=(l-p)/2,E=(u-v)/2,x={left:b,top:E,x:b,y:E,width:p,height:v,oldRatio:1,ratio:p/c,aspectRatio:g,naturalWidth:c,naturalHeight:h},_=$({},x);i.rotatable&&(x.rotate=f.rotate||0,_.rotate=0),i.scalable&&(x.scaleX=f.scaleX||1,x.scaleY=f.scaleY||1,_.scaleX=1,_.scaleY=1),n.imageData=x,n.initialImageData=_,e&&e()})},renderImage:function(e){var n=this,i=this.image,r=this.imageData;if(X(i,$({width:r.width,height:r.height,marginLeft:r.x,marginTop:r.y},Xe(r))),e)if((this.viewing||this.moving||this.rotating||this.scaling||this.zooming)&&this.options.transition&&ve(i,R)){var o=function(){n.imageRendering=!1,e()};this.imageRendering={abort:function(){O(i,U,o)}},k(i,U,o,{once:!0})}else e()},resetImage:function(){var e=this.image;e&&(this.viewing&&this.viewing.abort(),e.parentNode.removeChild(e),this.image=null,this.title.innerHTML="")}},na={bind:function(){var e=this.options,n=this.viewer,i=this.canvas,r=this.element.ownerDocument;k(n,he,this.onClick=this.click.bind(this)),k(n,kn,this.onDragStart=this.dragstart.bind(this)),k(i,_n,this.onPointerDown=this.pointerdown.bind(this)),k(r,Cn,this.onPointerMove=this.pointermove.bind(this)),k(r,An,this.onPointerUp=this.pointerup.bind(this)),k(r,En,this.onKeyDown=this.keydown.bind(this)),k(window,zn,this.onResize=this.resize.bind(this)),e.zoomable&&e.zoomOnWheel&&k(n,Tn,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),e.toggleOnDblclick&&k(i,mt,this.onDblclick=this.dblclick.bind(this))},unbind:function(){var e=this.options,n=this.viewer,i=this.canvas,r=this.element.ownerDocument;O(n,he,this.onClick),O(n,kn,this.onDragStart),O(i,_n,this.onPointerDown),O(r,Cn,this.onPointerMove),O(r,An,this.onPointerUp),O(r,En,this.onKeyDown),O(window,zn,this.onResize),e.zoomable&&e.zoomOnWheel&&O(n,Tn,this.onWheel,{passive:!1,capture:!0}),e.toggleOnDblclick&&O(i,mt,this.onDblclick)}},ia={click:function(e){var n=this.options,i=this.imageData,r=e.target,o=be(r,qe);switch(!o&&r.localName==="img"&&r.parentElement.localName==="li"&&(r=r.parentElement,o=be(r,qe)),ue&&e.isTrusted&&r===this.canvas&&clearTimeout(this.clickCanvasTimeout),o){case"mix":this.played?this.stop():n.inline?this.fulled?this.exit():this.full():this.hide();break;case"hide":this.pointerMoved||this.hide();break;case"view":this.view(be(r,"index"));break;case"zoom-in":this.zoom(.1,!0);break;case"zoom-out":this.zoom(-.1,!0);break;case"one-to-one":this.toggle();break;case"reset":this.reset();break;case"prev":this.prev(n.loop);break;case"play":this.play(n.fullscreen);break;case"next":this.next(n.loop);break;case"rotate-left":this.rotate(-90);break;case"rotate-right":this.rotate(90);break;case"flip-horizontal":this.scaleX(-i.scaleX||-1);break;case"flip-vertical":this.scaleY(-i.scaleY||-1);break;default:this.played&&this.stop()}},dblclick:function(e){e.preventDefault(),this.viewed&&e.target===this.image&&(ue&&e.isTrusted&&clearTimeout(this.doubleClickImageTimeout),this.toggle(e.isTrusted?e:e.detail&&e.detail.originalEvent))},load:function(){var e=this;this.timeout&&(clearTimeout(this.timeout),this.timeout=!1);var n=this.element,i=this.options,r=this.image,o=this.index,s=this.viewerData;C(r,_e),i.loading&&C(this.canvas,fe),r.style.cssText="height:0;"+"margin-left:".concat(s.width/2,"px;")+"margin-top:".concat(s.height/2,"px;")+"max-width:none!important;position:relative;width:0;",this.initImage(function(){ze(r,$o,i.movable),ze(r,R,i.transition),e.renderImage(function(){e.viewed=!0,e.viewing=!1,T(i.viewed)&&k(n,Ce,i.viewed,{once:!0}),P(n,Ce,{originalImage:e.images[o],index:o,image:r},{cancelable:!1})})})},loadImage:function(e){var n=e.target,i=n.parentNode,r=i.offsetWidth||30,o=i.offsetHeight||50,s=!!be(n,"filled");Xn(n,this.options,function(l,u){var f=l/u,d=r,c=o;o*f>r?s?d=o*f:c=r/f:s?c=r/f:d=o*f,X(n,$({width:d,height:c},Xe({translateX:(r-d)/2,translateY:(o-c)/2})))})},keydown:function(e){var n=this.options;if(n.keyboard){var i=e.keyCode||e.which||e.charCode;switch(i){case 13:this.viewer.contains(e.target)&&this.click(e);break}if(this.fulled)switch(i){case 27:this.played?this.stop():n.inline?this.fulled&&this.exit():this.hide();break;case 32:this.played&&this.stop();break;case 37:this.played&&this.playing?this.playing.prev():this.prev(n.loop);break;case 38:e.preventDefault(),this.zoom(n.zoomRatio,!0);break;case 39:this.played&&this.playing?this.playing.next():this.next(n.loop);break;case 40:e.preventDefault(),this.zoom(-n.zoomRatio,!0);break;case 48:case 49:e.ctrlKey&&(e.preventDefault(),this.toggle());break}}},dragstart:function(e){e.target.localName==="img"&&e.preventDefault()},pointerdown:function(e){var n=this.options,i=this.pointers,r=e.buttons,o=e.button;if(this.pointerMoved=!1,!(!this.viewed||this.showing||this.viewing||this.hiding||(e.type==="mousedown"||e.type==="pointerdown"&&e.pointerType==="mouse")&&(B(r)&&r!==1||B(o)&&o!==0||e.ctrlKey))){e.preventDefault(),e.changedTouches?N(e.changedTouches,function(l){i[l.identifier]=Ke(l)}):i[e.pointerId||0]=Ke(e);var s=n.movable?$e:!1;n.zoomOnTouch&&n.zoomable&&Object.keys(i).length>1?s=Ee:n.slideOnTouch&&(e.pointerType==="touch"||e.type==="touchstart")&&this.isSwitchable()&&(s=yn),n.transition&&(s===$e||s===Ee)&&C(this.image,R),this.action=s}},pointermove:function(e){var n=this.pointers,i=this.action;!this.viewed||!i||(e.preventDefault(),e.changedTouches?N(e.changedTouches,function(r){$(n[r.identifier]||{},Ke(r,!0))}):$(n[e.pointerId||0]||{},Ke(e,!0)),this.change(e))},pointerup:function(e){var n=this,i=this.options,r=this.action,o=this.pointers,s;e.changedTouches?N(e.changedTouches,function(l){s=o[l.identifier],delete o[l.identifier]}):(s=o[e.pointerId||0],delete o[e.pointerId||0]),r&&(e.preventDefault(),i.transition&&(r===$e||r===Ee)&&w(this.image,R),this.action=!1,ue&&r!==Ee&&s&&Date.now()-s.timeStamp<500&&(clearTimeout(this.clickCanvasTimeout),clearTimeout(this.doubleClickImageTimeout),i.toggleOnDblclick&&this.viewed&&e.target===this.image?this.imageClicked?(this.imageClicked=!1,this.doubleClickImageTimeout=setTimeout(function(){P(n.image,mt,{originalEvent:e})},50)):(this.imageClicked=!0,this.doubleClickImageTimeout=setTimeout(function(){n.imageClicked=!1},500)):(this.imageClicked=!1,i.backdrop&&i.backdrop!=="static"&&e.target===this.canvas&&(this.clickCanvasTimeout=setTimeout(function(){P(n.canvas,he,{originalEvent:e})},50)))))},resize:function(){var e=this;if(!(!this.isShown||this.hiding)&&(this.fulled&&(this.close(),this.initBody(),this.open()),this.initContainer(),this.initViewer(),this.renderViewer(),this.renderList(),this.viewed&&this.initImage(function(){e.renderImage()}),this.played)){if(this.options.fullscreen&&this.fulled&&!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement)){this.stop();return}N(this.player.getElementsByTagName("img"),function(n){k(n,W,e.loadImage.bind(e),{once:!0}),P(n,W)})}},wheel:function(e){var n=this;if(this.viewed&&(e.preventDefault(),!this.wheeling)){this.wheeling=!0,setTimeout(function(){n.wheeling=!1},50);var i=Number(this.options.zoomRatio)||.1,r=1;e.deltaY?r=e.deltaY>0?1:-1:e.wheelDelta?r=-e.wheelDelta/120:e.detail&&(r=e.detail>0?1:-1),this.zoom(-r*i,!0,null,e)}}},ra={show:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n=this.element,i=this.options;if(i.inline||this.showing||this.isShown||this.showing)return this;if(!this.ready)return this.build(),this.ready&&this.show(e),this;if(T(i.show)&&k(n,Nn,i.show,{once:!0}),P(n,Nn)===!1||!this.ready)return this;this.hiding&&this.transitioning.abort(),this.showing=!0,this.open();var r=this.viewer;if(C(r,se),r.setAttribute("role","dialog"),r.setAttribute("aria-labelledby",this.title.id),r.setAttribute("aria-modal",!0),r.removeAttribute("aria-hidden"),i.transition&&!e){var o=this.shown.bind(this);this.transitioning={abort:function(){O(r,U,o),C(r,H)}},w(r,R),r.initialOffsetWidth=r.offsetWidth,k(r,U,o,{once:!0}),w(r,H)}else w(r,H),this.shown();return this},hide:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=this.element,r=this.options;if(r.inline||this.hiding||!(this.isShown||this.showing))return this;if(T(r.hide)&&k(i,Bn,r.hide,{once:!0}),P(i,Bn)===!1)return this;this.showing&&this.transitioning.abort(),this.hiding=!0,this.played?this.stop():this.viewing&&this.viewing.abort();var o=this.viewer,s=this.image,l=function(){C(o,H),e.hidden()};if(r.transition&&!n){var u=function d(c){c&&c.target===o&&(O(o,U,d),e.hidden())},f=function(){ve(o,R)?(k(o,U,u),C(o,H)):l()};this.transitioning={abort:function(){e.viewed&&ve(s,R)?O(s,U,f):ve(o,R)&&O(o,U,u)}},this.viewed&&ve(s,R)?(k(s,U,f,{once:!0}),this.zoomTo(0,!1,null,null,!0)):f()}else l();return this},view:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.initialViewIndex;if(n=Number(n)||0,this.hiding||this.played||n<0||n>=this.length||this.viewed&&n===this.index)return this;if(!this.isShown)return this.index=n,this.show();this.viewing&&this.viewing.abort();var i=this.element,r=this.options,o=this.title,s=this.canvas,l=this.items[n],u=l.querySelector("img"),f=be(u,"originalUrl"),d=u.getAttribute("alt"),c=document.createElement("img");if(N(r.inheritedAttributes,function(v){var b=u.getAttribute(v);b!==null&&c.setAttribute(v,b)}),c.src=f,c.alt=d,T(r.view)&&k(i,Pn,r.view,{once:!0}),P(i,Pn,{originalImage:this.images[n],index:n,image:c})===!1||!this.isShown||this.hiding||this.played)return this;var h=this.items[this.index];h&&(C(h,He),h.removeAttribute("aria-selected")),w(l,He),l.setAttribute("aria-selected",!0),r.focus&&l.focus(),this.image=c,this.viewed=!1,this.index=n,this.imageData={},w(c,_e),r.loading&&w(s,fe),s.innerHTML="",s.appendChild(c),this.renderList(),o.innerHTML="";var g=function(){var b=e.imageData,E=Array.isArray(r.title)?r.title[1]:r.title;o.innerHTML=Ko(T(E)?E.call(e,c,b):"".concat(d," (").concat(b.naturalWidth," × ").concat(b.naturalHeight,")"))},m,p;return k(i,Ce,g,{once:!0}),this.viewing={abort:function(){O(i,Ce,g),c.complete?e.imageRendering?e.imageRendering.abort():e.imageInitializing&&e.imageInitializing.abort():(c.src="",O(c,W,m),e.timeout&&clearTimeout(e.timeout))}},c.complete?this.load():(k(c,W,m=function(){O(c,le,p),e.load()},{once:!0}),k(c,le,p=function(){O(c,W,m),e.timeout&&(clearTimeout(e.timeout),e.timeout=!1),C(c,_e),r.loading&&C(e.canvas,fe)},{once:!0}),this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(function(){C(c,_e),e.timeout=!1},1e3)),this},prev:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n=this.index-1;return n<0&&(n=e?this.length-1:0),this.view(n),this},next:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n=this.length-1,i=this.index+1;return i>n&&(i=e?0:n),this.view(i),this},move:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,i=this.imageData;return this.moveTo(pe(e)?e:i.x+Number(e),pe(n)?n:i.y+Number(n)),this},moveTo:function(e){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,o=this.element,s=this.options,l=this.imageData;if(e=Number(e),i=Number(i),this.viewed&&!this.played&&s.movable){var u=l.x,f=l.y,d=!1;if(B(e)?d=!0:e=u,B(i)?d=!0:i=f,d){if(T(s.move)&&k(o,Dn,s.move,{once:!0}),P(o,Dn,{x:e,y:i,oldX:u,oldY:f,originalEvent:r})===!1)return this;l.x=e,l.y=i,l.left=e,l.top=i,this.moving=!0,this.renderImage(function(){n.moving=!1,T(s.moved)&&k(o,Mn,s.moved,{once:!0}),P(o,Mn,{x:e,y:i,oldX:u,oldY:f,originalEvent:r},{cancelable:!1})})}}return this},rotate:function(e){return this.rotateTo((this.imageData.rotate||0)+Number(e)),this},rotateTo:function(e){var n=this,i=this.element,r=this.options,o=this.imageData;if(e=Number(e),B(e)&&this.viewed&&!this.played&&r.rotatable){var s=o.rotate;if(T(r.rotate)&&k(i,Ln,r.rotate,{once:!0}),P(i,Ln,{degree:e,oldDegree:s})===!1)return this;o.rotate=e,this.rotating=!0,this.renderImage(function(){n.rotating=!1,T(r.rotated)&&k(i,jn,r.rotated,{once:!0}),P(i,jn,{degree:e,oldDegree:s},{cancelable:!1})})}return this},scaleX:function(e){return this.scale(e,this.imageData.scaleY),this},scaleY:function(e){return this.scale(this.imageData.scaleX,e),this},scale:function(e){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,r=this.element,o=this.options,s=this.imageData;if(e=Number(e),i=Number(i),this.viewed&&!this.played&&o.scalable){var l=s.scaleX,u=s.scaleY,f=!1;if(B(e)?f=!0:e=l,B(i)?f=!0:i=u,f){if(T(o.scale)&&k(r,Vn,o.scale,{once:!0}),P(r,Vn,{scaleX:e,scaleY:i,oldScaleX:l,oldScaleY:u})===!1)return this;s.scaleX=e,s.scaleY=i,this.scaling=!0,this.renderImage(function(){n.scaling=!1,T(o.scaled)&&k(r,Fn,o.scaled,{once:!0}),P(r,Fn,{scaleX:e,scaleY:i,oldScaleX:l,oldScaleY:u},{cancelable:!1})})}}return this},zoom:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,o=this.imageData;return e=Number(e),e<0?e=1/(1-e):e=1+e,this.zoomTo(o.width*e/o.naturalWidth,n,i,r),this},zoomTo:function(e){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,l=this.element,u=this.options,f=this.pointers,d=this.imageData,c=d.x,h=d.y,g=d.width,m=d.height,p=d.naturalWidth,v=d.naturalHeight;if(e=Math.max(0,e),B(e)&&this.viewed&&!this.played&&(s||u.zoomable)){if(!s){var b=Math.max(.01,u.minZoomRatio),E=Math.min(100,u.maxZoomRatio);e=Math.min(Math.max(e,b),E)}if(o)switch(o.type){case"wheel":u.zoomRatio>=.055&&e>.95&&e<1.05&&(e=1);break;case"pointermove":case"touchmove":case"mousemove":e>.99&&e<1.01&&(e=1);break}var x=p*e,_=v*e,D=x-g,M=_-m,I=d.ratio;if(T(u.zoom)&&k(l,$n,u.zoom,{once:!0}),P(l,$n,{ratio:e,oldRatio:I,originalEvent:o})===!1)return this;if(this.zooming=!0,o){var Y=Zo(this.viewer),ne=f&&Object.keys(f).length>0?ea(f):{pageX:o.pageX,pageY:o.pageY};d.x-=D*((ne.pageX-Y.left-c)/g),d.y-=M*((ne.pageY-Y.top-h)/m)}else me(r)&&B(r.x)&&B(r.y)?(d.x-=D*((r.x-c)/g),d.y-=M*((r.y-h)/m)):(d.x-=D/2,d.y-=M/2);d.left=d.x,d.top=d.y,d.width=x,d.height=_,d.oldRatio=I,d.ratio=e,this.renderImage(function(){n.zooming=!1,T(u.zoomed)&&k(l,Hn,u.zoomed,{once:!0}),P(l,Hn,{ratio:e,oldRatio:I,originalEvent:o},{cancelable:!1})}),i&&this.tooltip()}return this},play:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!this.isShown||this.played)return this;var i=this.element,r=this.options;if(T(r.play)&&k(i,Wn,r.play,{once:!0}),P(i,Wn)===!1)return this;var o=this.player,s=this.loadImage.bind(this),l=[],u=0,f=0;if(this.played=!0,this.onLoadWhenPlay=s,n&&this.requestFullscreen(n),w(o,de),N(this.items,function(h,g){var m=h.querySelector("img"),p=document.createElement("img");p.src=be(m,"originalUrl"),p.alt=m.getAttribute("alt"),p.referrerPolicy=m.referrerPolicy,u+=1,w(p,We),ze(p,R,r.transition),ve(h,He)&&(w(p,H),f=g),l.push(p),k(p,W,s,{once:!0}),o.appendChild(p)}),B(r.interval)&&r.interval>0){var d=function h(){clearTimeout(e.playing.timeout),C(l[f],H),f-=1,f=f>=0?f:u-1,w(l[f],H),e.playing.timeout=setTimeout(h,r.interval)},c=function h(){clearTimeout(e.playing.timeout),C(l[f],H),f+=1,f=f<u?f:0,w(l[f],H),e.playing.timeout=setTimeout(h,r.interval)};u>1&&(this.playing={prev:d,next:c,timeout:setTimeout(c,r.interval)})}return this},stop:function(){var e=this;if(!this.played)return this;var n=this.element,i=this.options;if(T(i.stop)&&k(n,qn,i.stop,{once:!0}),P(n,qn)===!1)return this;var r=this.player;return clearTimeout(this.playing.timeout),this.playing=!1,this.played=!1,N(r.getElementsByTagName("img"),function(o){O(o,W,e.onLoadWhenPlay)}),C(r,de),r.innerHTML="",this.exitFullscreen(),this},full:function(){var e=this,n=this.options,i=this.viewer,r=this.image,o=this.list;return!this.isShown||this.played||this.fulled||!n.inline?this:(this.fulled=!0,this.open(),w(this.button,wn),n.transition&&(C(o,R),this.viewed&&C(r,R)),w(i,gt),i.setAttribute("role","dialog"),i.setAttribute("aria-labelledby",this.title.id),i.setAttribute("aria-modal",!0),i.removeAttribute("style"),X(i,{zIndex:n.zIndex}),n.focus&&this.enforceFocus(),this.initContainer(),this.viewerData=$({},this.containerData),this.renderList(),this.viewed&&this.initImage(function(){e.renderImage(function(){n.transition&&setTimeout(function(){w(r,R),w(o,R)},0)})}),this)},exit:function(){var e=this,n=this.options,i=this.viewer,r=this.image,o=this.list;return!this.isShown||this.played||!this.fulled||!n.inline?this:(this.fulled=!1,this.close(),C(this.button,wn),n.transition&&(C(o,R),this.viewed&&C(r,R)),n.focus&&this.clearEnforceFocus(),i.removeAttribute("role"),i.removeAttribute("aria-labelledby"),i.removeAttribute("aria-modal"),C(i,gt),X(i,{zIndex:n.zIndexInline}),this.viewerData=$({},this.parentData),this.renderViewer(),this.renderList(),this.viewed&&this.initImage(function(){e.renderImage(function(){n.transition&&setTimeout(function(){w(r,R),w(o,R)},0)})}),this)},tooltip:function(){var e=this,n=this.options,i=this.tooltipBox,r=this.imageData;return!this.viewed||this.played||!n.tooltip?this:(i.textContent="".concat(Math.round(r.ratio*100),"%"),this.tooltipping?clearTimeout(this.tooltipping):n.transition?(this.fading&&P(i,U),w(i,de),w(i,We),w(i,R),i.removeAttribute("aria-hidden"),i.initialOffsetWidth=i.offsetWidth,w(i,H)):(w(i,de),i.removeAttribute("aria-hidden")),this.tooltipping=setTimeout(function(){n.transition?(k(i,U,function(){C(i,de),C(i,We),C(i,R),i.setAttribute("aria-hidden",!0),e.fading=!1},{once:!0}),C(i,H),e.fading=!0):(C(i,de),i.setAttribute("aria-hidden",!0)),e.tooltipping=!1},1e3),this)},toggle:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return this.imageData.ratio===1?this.zoomTo(this.imageData.oldRatio,!0,null,e):this.zoomTo(1,!0,null,e),this},reset:function(){return this.viewed&&!this.played&&(this.imageData=$({},this.initialImageData),this.renderImage()),this},update:function(){var e=this,n=this.element,i=this.options,r=this.isImg;if(r&&!n.parentNode)return this.destroy();var o=[];if(N(r?[n]:n.querySelectorAll("img"),function(f){T(i.filter)?i.filter.call(e,f)&&o.push(f):e.getImageURL(f)&&o.push(f)}),!o.length)return this;if(this.images=o,this.length=o.length,this.ready){var s=[];if(N(this.items,function(f,d){var c=f.querySelector("img"),h=o[d];h&&c?(h.src!==c.src||h.alt!==c.alt)&&s.push(d):s.push(d)}),X(this.list,{width:"auto"}),this.initList(),this.isShown)if(this.length){if(this.viewed){var l=s.indexOf(this.index);if(l>=0)this.viewed=!1,this.view(Math.max(Math.min(this.index-l,this.length-1),0));else{var u=this.items[this.index];w(u,He),u.setAttribute("aria-selected",!0)}}}else this.image=null,this.viewed=!1,this.index=0,this.imageData={},this.canvas.innerHTML="",this.title.innerHTML=""}else this.build();return this},destroy:function(){var e=this.element,n=this.options;return e[S]?(this.destroyed=!0,this.ready?(this.played&&this.stop(),n.inline?(this.fulled&&this.exit(),this.unbind()):this.isShown?(this.viewing&&(this.imageRendering?this.imageRendering.abort():this.imageInitializing&&this.imageInitializing.abort()),this.hiding&&this.transitioning.abort(),this.hidden()):this.showing&&(this.transitioning.abort(),this.hidden()),this.ready=!1,this.viewer.parentNode.removeChild(this.viewer)):n.inline&&(this.delaying?this.delaying.abort():this.initializing&&this.initializing.abort()),n.inline||O(e,he,this.onStart),e[S]=void 0,this):this}},oa={getImageURL:function(e){var n=this.options.url;return Ae(n)?n=e.getAttribute(n):T(n)?n=n.call(this,e):n="",n},enforceFocus:function(){var e=this;this.clearEnforceFocus(),k(document,Sn,this.onFocusin=function(n){var i=e.viewer,r=n.target;if(!(r===document||r===i||i.contains(r))){for(;r;){if(r.getAttribute("tabindex")!==null||r.getAttribute("aria-modal")==="true")return;r=r.parentElement}i.focus()}})},clearEnforceFocus:function(){this.onFocusin&&(O(document,Sn,this.onFocusin),this.onFocusin=null)},open:function(){var e=this.body;w(e,xn),this.scrollbarWidth>0&&(e.style.paddingRight="".concat(this.scrollbarWidth+(parseFloat(this.initialBodyComputedPaddingRight)||0),"px"))},close:function(){var e=this.body;C(e,xn),this.scrollbarWidth>0&&(e.style.paddingRight=this.initialBodyPaddingRight)},shown:function(){var e=this.element,n=this.options,i=this.viewer;this.fulled=!0,this.isShown=!0,this.render(),this.bind(),this.showing=!1,n.focus&&(i.focus(),this.enforceFocus()),T(n.shown)&&k(e,In,n.shown,{once:!0}),P(e,In)!==!1&&this.ready&&this.isShown&&!this.hiding&&this.view(this.index)},hidden:function(){var e=this.element,n=this.options,i=this.viewer;n.fucus&&this.clearEnforceFocus(),this.close(),this.unbind(),w(i,se),i.removeAttribute("role"),i.removeAttribute("aria-labelledby"),i.removeAttribute("aria-modal"),i.setAttribute("aria-hidden",!0),this.resetList(),this.resetImage(),this.fulled=!1,this.viewed=!1,this.isShown=!1,this.hiding=!1,this.destroyed||(T(n.hidden)&&k(e,Rn,n.hidden,{once:!0}),P(e,Rn,null,{cancelable:!1}))},requestFullscreen:function(e){var n=this.element.ownerDocument;if(this.fulled&&!(n.fullscreenElement||n.webkitFullscreenElement||n.mozFullScreenElement||n.msFullscreenElement)){var i=n.documentElement;i.requestFullscreen?me(e)?i.requestFullscreen(e):i.requestFullscreen():i.webkitRequestFullscreen?i.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):i.mozRequestFullScreen?i.mozRequestFullScreen():i.msRequestFullscreen&&i.msRequestFullscreen()}},exitFullscreen:function(){var e=this.element.ownerDocument;this.fulled&&(e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement)&&(e.exitFullscreen?e.exitFullscreen():e.webkitExitFullscreen?e.webkitExitFullscreen():e.mozCancelFullScreen?e.mozCancelFullScreen():e.msExitFullscreen&&e.msExitFullscreen())},change:function(e){var n=this.options,i=this.pointers,r=i[Object.keys(i)[0]];if(r){var o=r.endX-r.startX,s=r.endY-r.startY;switch(this.action){case $e:(o!==0||s!==0)&&(this.pointerMoved=!0,this.move(o,s,e));break;case Ee:this.zoom(Qo(i),!1,null,e);break;case yn:{this.action="switched";var l=Math.abs(o);l>1&&l>Math.abs(s)&&(this.pointers={},o>1?this.prev(n.loop):o<-1&&this.next(n.loop));break}}N(i,function(u){u.startX=u.endX,u.startY=u.endY})}},isSwitchable:function(){var e=this.imageData,n=this.viewerData;return this.length>1&&e.x>=0&&e.y>=0&&e.width<=n.width&&e.height<=n.height}},aa=G.Viewer,sa=function(t){return function(){return t+=1,t}}(-1),Yn=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(Io(this,t),!e||e.nodeType!==1)throw new Error("The first argument is required and must be an element.");this.element=e,this.options=$({},bn,me(n)&&n),this.action=!1,this.fading=!1,this.fulled=!1,this.hiding=!1,this.imageClicked=!1,this.imageData={},this.index=this.options.initialViewIndex,this.isImg=!1,this.isShown=!1,this.length=0,this.moving=!1,this.played=!1,this.playing=!1,this.pointers={},this.ready=!1,this.rotating=!1,this.scaling=!1,this.showing=!1,this.timeout=!1,this.tooltipping=!1,this.viewed=!1,this.viewing=!1,this.wheeling=!1,this.zooming=!1,this.pointerMoved=!1,this.id=sa(),this.init()}return Bo(t,[{key:"init",value:function(){var n=this,i=this.element,r=this.options;if(!i[S]){i[S]=this,r.focus&&!r.keyboard&&(r.focus=!1);var o=i.localName==="img",s=[];if(N(o?[i]:i.querySelectorAll("img"),function(f){T(r.filter)?r.filter.call(n,f)&&s.push(f):n.getImageURL(f)&&s.push(f)}),this.isImg=o,this.length=s.length,this.images=s,this.initBody(),pe(document.createElement(S).style.transition)&&(r.transition=!1),r.inline){var l=0,u=function(){if(l+=1,l===n.length){var d;n.initializing=!1,n.delaying={abort:function(){clearTimeout(d)}},d=setTimeout(function(){n.delaying=!1,n.build()},0)}};this.initializing={abort:function(){N(s,function(d){d.complete||(O(d,W,u),O(d,le,u))})}},N(s,function(f){if(f.complete)u();else{var d,c;k(f,W,d=function(){O(f,le,c),u()},{once:!0}),k(f,le,c=function(){O(f,W,d),u()},{once:!0})}})}else k(i,he,this.onStart=function(f){var d=f.target;d.localName==="img"&&(!T(r.filter)||r.filter.call(n,d))&&n.view(n.images.indexOf(d))})}}},{key:"build",value:function(){if(!this.ready){var n=this.element,i=this.options,r=n.parentNode,o=document.createElement("div");o.innerHTML=Do;var s=o.querySelector(".".concat(S,"-container")),l=s.querySelector(".".concat(S,"-title")),u=s.querySelector(".".concat(S,"-toolbar")),f=s.querySelector(".".concat(S,"-navbar")),d=s.querySelector(".".concat(S,"-button")),c=s.querySelector(".".concat(S,"-canvas"));if(this.parent=r,this.viewer=s,this.title=l,this.toolbar=u,this.navbar=f,this.button=d,this.canvas=c,this.footer=s.querySelector(".".concat(S,"-footer")),this.tooltipBox=s.querySelector(".".concat(S,"-tooltip")),this.player=s.querySelector(".".concat(S,"-player")),this.list=s.querySelector(".".concat(S,"-list")),s.id="".concat(S).concat(this.id),l.id="".concat(S,"Title").concat(this.id),w(l,i.title?Ye(Array.isArray(i.title)?i.title[0]:i.title):se),w(f,i.navbar?Ye(i.navbar):se),ze(d,se,!i.button),i.keyboard&&d.setAttribute("tabindex",0),i.backdrop&&(w(s,"".concat(S,"-backdrop")),!i.inline&&i.backdrop!=="static"&&yt(c,qe,"hide")),Ae(i.className)&&i.className&&i.className.split(vt).forEach(function(x){w(s,x)}),i.toolbar){var h=document.createElement("ul"),g=me(i.toolbar),m=Ue.slice(0,3),p=Ue.slice(7,9),v=Ue.slice(9);g||w(u,Ye(i.toolbar)),N(g?i.toolbar:Ue,function(x,_){var D=g&&me(x),M=g?bt(_):x,I=D&&!pe(x.show)?x.show:x;if(!(!I||!i.zoomable&&m.indexOf(M)!==-1||!i.rotatable&&p.indexOf(M)!==-1||!i.scalable&&v.indexOf(M)!==-1)){var Y=D&&!pe(x.size)?x.size:x,ne=D&&!pe(x.click)?x.click:x,y=document.createElement("li");i.keyboard&&y.setAttribute("tabindex",0),y.setAttribute("role","button"),w(y,"".concat(S,"-").concat(M)),T(ne)||yt(y,qe,M),B(I)&&w(y,Ye(I)),["small","large"].indexOf(Y)!==-1?w(y,"".concat(S,"-").concat(Y)):M==="play"&&w(y,"".concat(S,"-large")),T(ne)&&k(y,he,ne),h.appendChild(y)}}),u.appendChild(h)}else w(u,se);if(!i.rotatable){var b=u.querySelectorAll('li[class*="rotate"]');w(b,_e),N(b,function(x){u.appendChild(x)})}if(i.inline)w(d,Lo),X(s,{zIndex:i.zIndexInline}),window.getComputedStyle(r).position==="static"&&X(r,{position:"relative"}),r.insertBefore(s,n.nextSibling);else{w(d,Mo),w(s,gt),w(s,We),w(s,se),X(s,{zIndex:i.zIndex});var E=i.container;Ae(E)&&(E=n.ownerDocument.querySelector(E)),E||(E=this.body),E.appendChild(s)}if(i.inline&&(this.render(),this.bind(),this.isShown=!0),this.ready=!0,T(i.ready)&&k(n,On,i.ready,{once:!0}),P(n,On)===!1){this.ready=!1;return}this.ready&&i.inline&&this.view(this.index)}}}],[{key:"noConflict",value:function(){return window.Viewer=aa,t}},{key:"setDefaults",value:function(n){$(bn,me(n)&&n)}}]),t}();$(Yn.prototype,ta,na,ia,ra,oa);const la={"size-full":""},ca=["src"],ua=Se(a.defineComponent({__name:"Image",props:{file:{type:null}},setup(t){const e=t,n=a.ref(),i=ft(()=>e.file);return Ve(()=>n.value&&i.value,(r,o,s)=>{const l=new Yn(n.value,{inline:!0,navbar:!1,title:!1,transition:!1,toolbar:{reset:!0,rotateLeft:!0,rotateRight:!0,zoomIn:!0,zoomOut:!0,flipHorizontal:!0,flipVertical:!0}});s(()=>{l.destroy()})}),(r,o)=>(a.openBlock(),a.createElementBlock("div",la,[a.createElementVNode("div",{ref_key:"rootRef",ref:n,"size-full":""},[a.unref(i)?(a.openBlock(),a.createElementBlock("img",{key:0,src:a.unref(i),hidden:""},null,8,ca)):a.createCommentVNode("v-if",!0)],512)]))}}),[["styles",[`/*!
24
24
  * Viewer.js v1.11.6
25
25
  * https://fengyuanchen.github.io/viewerjs
26
26
  *
@@ -28,4 +28,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
28
28
  * Released under the MIT license
29
29
  *
30
30
  * Date: 2023-09-17T03:16:35.830Z
31
- */.viewer-zoom-in:before,.viewer-zoom-out:before,.viewer-one-to-one:before,.viewer-reset:before,.viewer-prev:before,.viewer-play:before,.viewer-next:before,.viewer-rotate-left:before,.viewer-rotate-right:before,.viewer-flip-horizontal:before,.viewer-flip-vertical:before,.viewer-fullscreen:before,.viewer-fullscreen-exit:before,.viewer-close:before{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARgAAAAUCAYAAABWOyJDAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAQPSURBVHic7Zs/iFxVFMa/0U2UaJGksUgnIVhYxVhpjDbZCBmLdAYECxsRFBTUamcXUiSNncgKQbSxsxH8gzAP3FU2jY0kKKJNiiiIghFlccnP4p3nPCdv3p9778vsLOcHB2bfveeb7955c3jvvNkBIMdxnD64a94GHMfZu3iBcRynN7zAOI7TG15gHCeeNUkr8zaxG2lbYDYsdgMbktBsP03jdQwljSXdtBhLOmtjowC9Mg9L+knSlcD8TNKpSA9lBpK2JF2VdDSR5n5J64m0qli399hNFMUlpshQii5jbXTbHGviB0nLNeNDSd9VO4A2UdB2fp+x0eCnaXxWXGA2X0au/3HgN9P4LFCjIANOJdrLr0zzZ+BEpNYDwKbpnQMeAw4m8HjQtM6Z9qa917zPQwFr3M5KgA6J5rTJCdFZJj9/lyvGhsDvwFNVuV2MhhjrK6b9bFiE+j1r87eBl4HDwCF7/U/k+ofAX5b/EXBv5JoLMuILzf3Ap6Z3EzgdqHMCuF7hcQf4HDgeoHnccncqdK/TvSDWffFXI/exICY/xZyqc6XLWF1UFZna4gJ7q8BsRvgd2/xXpo6P+D9dfT7PpECtA3cnWPM0GXGFZh/wgWltA+cDNC7X+AP4GzjZQe+k5dRxuYPeiuXU7e1qwLpDz7dFjXKRaSwuMLvAlG8zZlG+YmiK1HoFqT7wP2z+4Q45TfEGcMt01xLoNZEBTwRqD4BLpnMLeC1A41UmVxsXgXeBayV/Wx20rpTyrpnWRft7p6O/FdqzGrDukPNtkaMoMo3FBdBSQMOnYBCReyf05s126fU9ytfX98+mY54Kxnp7S9K3kj6U9KYdG0h6UdLbkh7poFXMfUnSOyVvL0h6VtIXHbS6nOP+s/Zm9mvyXW1uuC9ohZ72E9uDmXWLJOB1GxsH+DxPftsB8B6wlGDN02TAkxG6+4D3TWsbeC5CS8CDFce+AW500LhhOW2020TRjK3b21HEmgti9m0RonxbdMZeVzV+/4tF3cBpP7E9mKHNL5q8h5g0eYsCMQz0epq8gQrwMXAgcs0FGXGFRcB9wCemF9PkbYqM/Bas7fxLwNeJPdTdpo4itQti8lPMqTpXuozVRVXPpbHI3KkNTB1NfkL81j2mvhDp91HgV9MKuRIqrykj3WPq4rHyL+axj8/qGPmTqi6F9YDlHOvJU6oYcTsh/TYSzWmTE6JT19CtLTJt32D6CmHe0eQn1O8z5AXgT4sx4Vcu0/EQecMydB8z0hUWkTd2t4CrwNEePqMBcAR4mrBbwyXLPWJa8zrXmmLEhNBmfpkuY2102xxrih+pb+ieAb6vGhuA97UcJ5KR8gZ77K+99xxeYBzH6Q3/Z0fHcXrDC4zjOL3hBcZxnN74F+zlvXFWXF9PAAAAAElFTkSuQmCC);background-repeat:no-repeat;background-size:280px;color:transparent;display:block;font-size:0;height:20px;line-height:0;width:20px}.viewer-zoom-in:before{background-position:0 0;content:"Zoom In"}.viewer-zoom-out:before{background-position:-20px 0;content:"Zoom Out"}.viewer-one-to-one:before{background-position:-40px 0;content:"One to One"}.viewer-reset:before{background-position:-60px 0;content:"Reset"}.viewer-prev:before{background-position:-80px 0;content:"Previous"}.viewer-play:before{background-position:-100px 0;content:"Play"}.viewer-next:before{background-position:-120px 0;content:"Next"}.viewer-rotate-left:before{background-position:-140px 0;content:"Rotate Left"}.viewer-rotate-right:before{background-position:-160px 0;content:"Rotate Right"}.viewer-flip-horizontal:before{background-position:-180px 0;content:"Flip Horizontal"}.viewer-flip-vertical:before{background-position:-200px 0;content:"Flip Vertical"}.viewer-fullscreen:before{background-position:-220px 0;content:"Enter Full Screen"}.viewer-fullscreen-exit:before{background-position:-240px 0;content:"Exit Full Screen"}.viewer-close:before{background-position:-260px 0;content:"Close"}.viewer-container{bottom:0;direction:ltr;font-size:0;left:0;line-height:0;overflow:hidden;position:absolute;right:0;-webkit-tap-highlight-color:transparent;top:0;-ms-touch-action:none;touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.viewer-container::-moz-selection,.viewer-container *::-moz-selection{background-color:transparent}.viewer-container::selection,.viewer-container *::selection{background-color:transparent}.viewer-container:focus{outline:0}.viewer-container img{display:block;height:auto;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;width:100%}.viewer-canvas{bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:0}.viewer-canvas>img{height:auto;margin:15px auto;max-width:90%!important;width:auto}.viewer-footer{bottom:0;left:0;overflow:hidden;position:absolute;right:0;text-align:center}.viewer-navbar{background-color:#00000080;overflow:hidden}.viewer-list{box-sizing:content-box;height:50px;margin:0;overflow:hidden;padding:1px 0}.viewer-list>li{color:transparent;cursor:pointer;float:left;font-size:0;height:50px;line-height:0;opacity:.5;overflow:hidden;transition:opacity .15s;width:30px}.viewer-list>li:focus,.viewer-list>li:hover{opacity:.75}.viewer-list>li:focus{outline:0}.viewer-list>li+li{margin-left:1px}.viewer-list>.viewer-loading{position:relative}.viewer-list>.viewer-loading:after{border-width:2px;height:20px;margin-left:-10px;margin-top:-10px;width:20px}.viewer-list>.viewer-active,.viewer-list>.viewer-active:focus,.viewer-list>.viewer-active:hover{opacity:1}.viewer-player{background-color:#000;bottom:0;cursor:none;display:none;left:0;position:absolute;right:0;top:0;z-index:1}.viewer-player>img{left:0;position:absolute;top:0}.viewer-toolbar>ul{display:inline-block;margin:0 auto 5px;overflow:hidden;padding:6px 3px}.viewer-toolbar>ul>li{background-color:#00000080;border-radius:50%;cursor:pointer;float:left;height:24px;overflow:hidden;transition:background-color .15s;width:24px}.viewer-toolbar>ul>li:focus,.viewer-toolbar>ul>li:hover{background-color:#000c}.viewer-toolbar>ul>li:focus{box-shadow:0 0 3px #fff;outline:0;position:relative;z-index:1}.viewer-toolbar>ul>li:before{margin:2px}.viewer-toolbar>ul>li+li{margin-left:1px}.viewer-toolbar>ul>.viewer-small{height:18px;margin-bottom:3px;margin-top:3px;width:18px}.viewer-toolbar>ul>.viewer-small:before{margin:-1px}.viewer-toolbar>ul>.viewer-large{height:30px;margin-bottom:-3px;margin-top:-3px;width:30px}.viewer-toolbar>ul>.viewer-large:before{margin:5px}.viewer-tooltip{background-color:#000c;border-radius:10px;color:#fff;display:none;font-size:12px;height:20px;left:50%;line-height:20px;margin-left:-25px;margin-top:-10px;position:absolute;text-align:center;top:50%;width:50px}.viewer-title{color:#ccc;display:inline-block;font-size:12px;line-height:1.2;margin:5px 5%;max-width:90%;min-height:14px;opacity:.8;overflow:hidden;text-overflow:ellipsis;transition:opacity .15s;white-space:nowrap}.viewer-title:hover{opacity:1}.viewer-button{-webkit-app-region:no-drag;background-color:#00000080;border-radius:50%;cursor:pointer;height:80px;overflow:hidden;position:absolute;right:-40px;top:-40px;transition:background-color .15s;width:80px}.viewer-button:focus,.viewer-button:hover{background-color:#000c}.viewer-button:focus{box-shadow:0 0 3px #fff;outline:0}.viewer-button:before{bottom:15px;left:15px;position:absolute}.viewer-fixed{position:fixed}.viewer-open{overflow:hidden}.viewer-show{display:block}.viewer-hide{display:none}.viewer-backdrop{background-color:#00000080}.viewer-invisible{visibility:hidden}.viewer-move{cursor:move;cursor:grab}.viewer-fade{opacity:0}.viewer-in{opacity:1}.viewer-transition{transition:all .3s}@keyframes viewer-spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.viewer-loading:after{animation:viewer-spinner 1s linear infinite;border:4px solid rgba(255,255,255,.1);border-left-color:#ffffff80;border-radius:50%;content:"";display:inline-block;height:40px;left:50%;margin-left:-20px;margin-top:-20px;position:absolute;top:50%;width:40px;z-index:1}@media (max-width: 767px){.viewer-hide-xs-down{display:none}}@media (max-width: 991px){.viewer-hide-sm-down{display:none}}@media (max-width: 1199px){.viewer-hide-md-down{display:none}}.viewer-button.viewer-fullscreen{display:none}`,'[data-v-de658cb7],[data-v-de658cb7]:before,[data-v-de658cb7]:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }[data-v-de658cb7]::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.inline[data-v-de658cb7]{display:inline}.transition[data-v-de658cb7]{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}[size-full=""][data-v-de658cb7]{width:100%;height:100%}[hidden=""][data-v-de658cb7]{display:none}']],["__scopeId","data-v-de658cb7"]]),co=["src"],uo=Se(o.defineComponent({__name:"Pdf",props:{file:{type:null}},setup(t){const e=t,n=ft(()=>e.file);return(i,r)=>(o.openBlock(),o.createElementBlock("iframe",{"size-full":"",frameborder:"0",src:o.unref(n)},null,8,co))}}),[["styles",['[data-v-a8464349],[data-v-a8464349]:before,[data-v-a8464349]:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }[data-v-a8464349]::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.size-full[data-v-a8464349],[size-full=""][data-v-a8464349]{width:100%;height:100%}']],["__scopeId","data-v-a8464349"]]),fo=Se(o.defineComponent({__name:"Video",props:{file:{type:null}},setup(t){const e=t,n=o.ref(),i=ft(()=>e.file);return Fe(i,()=>{const{playing:r}=ga(n,{src:()=>i.value});o.nextTick(()=>{r.value=!0})}),(r,a)=>(o.openBlock(),o.createElementBlock("video",{ref_key:"videoRef",ref:n,class:"size-full absolute top-0 left-0",controls:""},null,512))}}),[["styles",["[data-v-9e308ade],[data-v-9e308ade]:before,[data-v-9e308ade]:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }[data-v-9e308ade]::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.absolute[data-v-9e308ade]{position:absolute}.left-0[data-v-9e308ade]{left:0}.top-0[data-v-9e308ade]{top:0}.size-full[data-v-9e308ade]{width:100%;height:100%}"]],["__scopeId","data-v-9e308ade"]]);function ho(t){const e=t.split(".");return{name:e.length>1?e.slice(0,-1).join("."):t,ext:e.length>1?e.reverse()[0].toLowerCase():""}}const po="2.0.9";function go(t=ba()){const e=lt(),n=`style[cssr-id^="${t}-"]`;return o.onMounted(()=>{function i(){const r=e.value.parentNode;r.querySelectorAll(n).forEach(a=>{r.removeChild(a)}),Array.from(document.querySelectorAll(n)).forEach(a=>{r.appendChild(a.cloneNode()).textContent=a.textContent})}dn(document.head,i,{childList:!0}),i()}),t}function mo(){const t=lt();return o.onMounted(()=>{var r;const e=t.value.parentNode,{tailwindResetStyle:n,elementPlusStyle:i}=((r=globalThis.SmartCore)==null?void 0:r[po])??{};if(n&&(e.appendChild(document.createElement("style")).textContent=n),i){const a=document.createElement("style");a.setAttribute("namespace","smart"),e.appendChild(a).textContent=i,document.querySelector('style[namespace="smart"]')||(document.head.appendChild(a.cloneNode()).textContent=i)}}),{classPrefix:go()}}const vo={"size-full":"",relative:""},bo=Se(o.defineComponent({__name:"index",setup(t,{expose:e}){const n=o.useAttrs(),i=o.shallowRef(),r=o.ref(),a=o.ref(),s=o.computed(()=>Zi[a.value]),l={image:lo,pdf:uo,video:fo},u=(f,d)=>{const{name:c,ext:h}=ho(f);i.value=d,r.value=c,a.value=h};return mo(),o.onMounted(()=>{const f=lt();qt.value=f.value.parentNode}),e({previewFile:u}),(f,d)=>{const c=xi;return o.openBlock(),o.createBlock(c,{namespace:"smart"},{default:o.withCtx(()=>[o.createElementVNode("div",vo,[o.createCommentVNode(" File / Blob 文件打开 "),o.unref(i)?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(l[o.unref(s)]||Ta),o.mergeProps({key:0,file:o.unref(i),"file-name":o.unref(r),"file-ext":o.unref(a)},o.unref(n)),null,16,["file","file-name","file-ext"])):o.createCommentVNode("v-if",!0)])]),_:1})}}}),[["styles",['[data-v-576658dd],[data-v-576658dd]:before,[data-v-576658dd]:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }[data-v-576658dd]::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }[relative=""][data-v-576658dd]{position:relative}.size-full[data-v-576658dd],[size-full=""][data-v-576658dd]{width:100%;height:100%}']],["__scopeId","data-v-576658dd"]]),yo="smart-file-preview";function wo(t,e){var n;ya&&!customElements.get(t)&&customElements.define(t,(n=e.prototype)!=null&&n.connectedCallback?e:o.defineCustomElement(e))}function xo(t,e){return t._instance.exposed[e]}const Yn=o.defineCustomElement(bo);Object.assign(Yn.prototype,{previewFile(...t){return xo(this,"previewFile")(...t)}}),wo(yo,Yn)})((Kn=SmartCore["2.0.9"])==null?void 0:Kn.Vue);
31
+ */.viewer-zoom-in:before,.viewer-zoom-out:before,.viewer-one-to-one:before,.viewer-reset:before,.viewer-prev:before,.viewer-play:before,.viewer-next:before,.viewer-rotate-left:before,.viewer-rotate-right:before,.viewer-flip-horizontal:before,.viewer-flip-vertical:before,.viewer-fullscreen:before,.viewer-fullscreen-exit:before,.viewer-close:before{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARgAAAAUCAYAAABWOyJDAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAQPSURBVHic7Zs/iFxVFMa/0U2UaJGksUgnIVhYxVhpjDbZCBmLdAYECxsRFBTUamcXUiSNncgKQbSxsxH8gzAP3FU2jY0kKKJNiiiIghFlccnP4p3nPCdv3p9778vsLOcHB2bfveeb7955c3jvvNkBIMdxnD64a94GHMfZu3iBcRynN7zAOI7TG15gHCeeNUkr8zaxG2lbYDYsdgMbktBsP03jdQwljSXdtBhLOmtjowC9Mg9L+knSlcD8TNKpSA9lBpK2JF2VdDSR5n5J64m0qli399hNFMUlpshQii5jbXTbHGviB0nLNeNDSd9VO4A2UdB2fp+x0eCnaXxWXGA2X0au/3HgN9P4LFCjIANOJdrLr0zzZ+BEpNYDwKbpnQMeAw4m8HjQtM6Z9qa917zPQwFr3M5KgA6J5rTJCdFZJj9/lyvGhsDvwFNVuV2MhhjrK6b9bFiE+j1r87eBl4HDwCF7/U/k+ofAX5b/EXBv5JoLMuILzf3Ap6Z3EzgdqHMCuF7hcQf4HDgeoHnccncqdK/TvSDWffFXI/exICY/xZyqc6XLWF1UFZna4gJ7q8BsRvgd2/xXpo6P+D9dfT7PpECtA3cnWPM0GXGFZh/wgWltA+cDNC7X+AP4GzjZQe+k5dRxuYPeiuXU7e1qwLpDz7dFjXKRaSwuMLvAlG8zZlG+YmiK1HoFqT7wP2z+4Q45TfEGcMt01xLoNZEBTwRqD4BLpnMLeC1A41UmVxsXgXeBayV/Wx20rpTyrpnWRft7p6O/FdqzGrDukPNtkaMoMo3FBdBSQMOnYBCReyf05s126fU9ytfX98+mY54Kxnp7S9K3kj6U9KYdG0h6UdLbkh7poFXMfUnSOyVvL0h6VtIXHbS6nOP+s/Zm9mvyXW1uuC9ohZ72E9uDmXWLJOB1GxsH+DxPftsB8B6wlGDN02TAkxG6+4D3TWsbeC5CS8CDFce+AW500LhhOW2020TRjK3b21HEmgti9m0RonxbdMZeVzV+/4tF3cBpP7E9mKHNL5q8h5g0eYsCMQz0epq8gQrwMXAgcs0FGXGFRcB9wCemF9PkbYqM/Bas7fxLwNeJPdTdpo4itQti8lPMqTpXuozVRVXPpbHI3KkNTB1NfkL81j2mvhDp91HgV9MKuRIqrykj3WPq4rHyL+axj8/qGPmTqi6F9YDlHOvJU6oYcTsh/TYSzWmTE6JT19CtLTJt32D6CmHe0eQn1O8z5AXgT4sx4Vcu0/EQecMydB8z0hUWkTd2t4CrwNEePqMBcAR4mrBbwyXLPWJa8zrXmmLEhNBmfpkuY2102xxrih+pb+ieAb6vGhuA97UcJ5KR8gZ77K+99xxeYBzH6Q3/Z0fHcXrDC4zjOL3hBcZxnN74F+zlvXFWXF9PAAAAAElFTkSuQmCC);background-repeat:no-repeat;background-size:280px;color:transparent;display:block;font-size:0;height:20px;line-height:0;width:20px}.viewer-zoom-in:before{background-position:0 0;content:"Zoom In"}.viewer-zoom-out:before{background-position:-20px 0;content:"Zoom Out"}.viewer-one-to-one:before{background-position:-40px 0;content:"One to One"}.viewer-reset:before{background-position:-60px 0;content:"Reset"}.viewer-prev:before{background-position:-80px 0;content:"Previous"}.viewer-play:before{background-position:-100px 0;content:"Play"}.viewer-next:before{background-position:-120px 0;content:"Next"}.viewer-rotate-left:before{background-position:-140px 0;content:"Rotate Left"}.viewer-rotate-right:before{background-position:-160px 0;content:"Rotate Right"}.viewer-flip-horizontal:before{background-position:-180px 0;content:"Flip Horizontal"}.viewer-flip-vertical:before{background-position:-200px 0;content:"Flip Vertical"}.viewer-fullscreen:before{background-position:-220px 0;content:"Enter Full Screen"}.viewer-fullscreen-exit:before{background-position:-240px 0;content:"Exit Full Screen"}.viewer-close:before{background-position:-260px 0;content:"Close"}.viewer-container{bottom:0;direction:ltr;font-size:0;left:0;line-height:0;overflow:hidden;position:absolute;right:0;-webkit-tap-highlight-color:transparent;top:0;-ms-touch-action:none;touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.viewer-container::-moz-selection,.viewer-container *::-moz-selection{background-color:transparent}.viewer-container::selection,.viewer-container *::selection{background-color:transparent}.viewer-container:focus{outline:0}.viewer-container img{display:block;height:auto;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;width:100%}.viewer-canvas{bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:0}.viewer-canvas>img{height:auto;margin:15px auto;max-width:90%!important;width:auto}.viewer-footer{bottom:0;left:0;overflow:hidden;position:absolute;right:0;text-align:center}.viewer-navbar{background-color:#00000080;overflow:hidden}.viewer-list{box-sizing:content-box;height:50px;margin:0;overflow:hidden;padding:1px 0}.viewer-list>li{color:transparent;cursor:pointer;float:left;font-size:0;height:50px;line-height:0;opacity:.5;overflow:hidden;transition:opacity .15s;width:30px}.viewer-list>li:focus,.viewer-list>li:hover{opacity:.75}.viewer-list>li:focus{outline:0}.viewer-list>li+li{margin-left:1px}.viewer-list>.viewer-loading{position:relative}.viewer-list>.viewer-loading:after{border-width:2px;height:20px;margin-left:-10px;margin-top:-10px;width:20px}.viewer-list>.viewer-active,.viewer-list>.viewer-active:focus,.viewer-list>.viewer-active:hover{opacity:1}.viewer-player{background-color:#000;bottom:0;cursor:none;display:none;left:0;position:absolute;right:0;top:0;z-index:1}.viewer-player>img{left:0;position:absolute;top:0}.viewer-toolbar>ul{display:inline-block;margin:0 auto 5px;overflow:hidden;padding:6px 3px}.viewer-toolbar>ul>li{background-color:#00000080;border-radius:50%;cursor:pointer;float:left;height:24px;overflow:hidden;transition:background-color .15s;width:24px}.viewer-toolbar>ul>li:focus,.viewer-toolbar>ul>li:hover{background-color:#000c}.viewer-toolbar>ul>li:focus{box-shadow:0 0 3px #fff;outline:0;position:relative;z-index:1}.viewer-toolbar>ul>li:before{margin:2px}.viewer-toolbar>ul>li+li{margin-left:1px}.viewer-toolbar>ul>.viewer-small{height:18px;margin-bottom:3px;margin-top:3px;width:18px}.viewer-toolbar>ul>.viewer-small:before{margin:-1px}.viewer-toolbar>ul>.viewer-large{height:30px;margin-bottom:-3px;margin-top:-3px;width:30px}.viewer-toolbar>ul>.viewer-large:before{margin:5px}.viewer-tooltip{background-color:#000c;border-radius:10px;color:#fff;display:none;font-size:12px;height:20px;left:50%;line-height:20px;margin-left:-25px;margin-top:-10px;position:absolute;text-align:center;top:50%;width:50px}.viewer-title{color:#ccc;display:inline-block;font-size:12px;line-height:1.2;margin:5px 5%;max-width:90%;min-height:14px;opacity:.8;overflow:hidden;text-overflow:ellipsis;transition:opacity .15s;white-space:nowrap}.viewer-title:hover{opacity:1}.viewer-button{-webkit-app-region:no-drag;background-color:#00000080;border-radius:50%;cursor:pointer;height:80px;overflow:hidden;position:absolute;right:-40px;top:-40px;transition:background-color .15s;width:80px}.viewer-button:focus,.viewer-button:hover{background-color:#000c}.viewer-button:focus{box-shadow:0 0 3px #fff;outline:0}.viewer-button:before{bottom:15px;left:15px;position:absolute}.viewer-fixed{position:fixed}.viewer-open{overflow:hidden}.viewer-show{display:block}.viewer-hide{display:none}.viewer-backdrop{background-color:#00000080}.viewer-invisible{visibility:hidden}.viewer-move{cursor:move;cursor:grab}.viewer-fade{opacity:0}.viewer-in{opacity:1}.viewer-transition{transition:all .3s}@keyframes viewer-spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.viewer-loading:after{animation:viewer-spinner 1s linear infinite;border:4px solid rgba(255,255,255,.1);border-left-color:#ffffff80;border-radius:50%;content:"";display:inline-block;height:40px;left:50%;margin-left:-20px;margin-top:-20px;position:absolute;top:50%;width:40px;z-index:1}@media (max-width: 767px){.viewer-hide-xs-down{display:none}}@media (max-width: 991px){.viewer-hide-sm-down{display:none}}@media (max-width: 1199px){.viewer-hide-md-down{display:none}}.viewer-button.viewer-fullscreen{display:none}`,'[data-v-de658cb7],[data-v-de658cb7]:before,[data-v-de658cb7]:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }[data-v-de658cb7]::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.inline[data-v-de658cb7]{display:inline}.transition[data-v-de658cb7]{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}[size-full=""][data-v-de658cb7]{width:100%;height:100%}[hidden=""][data-v-de658cb7]{display:none}']],["__scopeId","data-v-de658cb7"]]),fa=["src"],da=Se(a.defineComponent({__name:"Pdf",props:{file:{type:null}},setup(t){const e=t,n=ft(()=>e.file);return(i,r)=>(a.openBlock(),a.createElementBlock("iframe",{"size-full":"",frameborder:"0",src:a.unref(n)},null,8,fa))}}),[["styles",['[data-v-a8464349],[data-v-a8464349]:before,[data-v-a8464349]:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }[data-v-a8464349]::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.size-full[data-v-a8464349],[size-full=""][data-v-a8464349]{width:100%;height:100%}']],["__scopeId","data-v-a8464349"]]),ha=Se(a.defineComponent({__name:"Video",props:{file:{type:null}},setup(t){const e=t,n=a.ref(),i=ft(()=>e.file);return Ve(i,()=>{const{playing:r}=vo(n,{src:()=>i.value});a.nextTick(()=>{r.value=!0})}),(r,o)=>(a.openBlock(),a.createElementBlock("video",{ref_key:"videoRef",ref:n,class:"size-full absolute top-0 left-0",controls:""},null,512))}}),[["styles",["[data-v-9e308ade],[data-v-9e308ade]:before,[data-v-9e308ade]:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }[data-v-9e308ade]::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.absolute[data-v-9e308ade]{position:absolute}.left-0[data-v-9e308ade]{left:0}.top-0[data-v-9e308ade]{top:0}.size-full[data-v-9e308ade]{width:100%;height:100%}"]],["__scopeId","data-v-9e308ade"]]);function pa(t){const e=t.split(".");return{name:e.length>1?e.slice(0,-1).join("."):t,ext:e.length>1?e.reverse()[0].toLowerCase():""}}const ga="2.0.11";function ma(t=wo()){const e=lt(),n=`style[cssr-id^="${t}-"]`;return a.onMounted(()=>{function i(){const r=e.value.parentNode;r.querySelectorAll(n).forEach(o=>{r.removeChild(o)}),Array.from(document.querySelectorAll(n)).forEach(o=>{r.appendChild(o.cloneNode()).textContent=o.textContent})}hn(document.head,i,{childList:!0}),i()}),t}function va(){const t=lt();return a.onMounted(()=>{var r;const e=t.value.parentNode,{tailwindResetStyle:n,elementPlusStyle:i}=((r=globalThis.SmartCore)==null?void 0:r[ga])??{};if(n&&(e.appendChild(document.createElement("style")).textContent=n),i){const o=document.createElement("style");o.setAttribute("namespace","smart"),e.appendChild(o).textContent=i,document.querySelector('style[namespace="smart"]')||(document.head.appendChild(o.cloneNode()).textContent=i)}}),{classPrefix:ma()}}const ba={"size-full":"",relative:""},ya=Se(a.defineComponent({__name:"index",setup(t,{expose:e}){const n=a.useAttrs(),i=a.shallowRef(),r=a.ref(),o=a.ref(),s=a.computed(()=>Ji[o.value]),l={image:ua,pdf:da,video:ha},u=(f,d)=>{const{name:c,ext:h}=pa(f);i.value=d,r.value=c,o.value=h};return va(),a.onMounted(()=>{const f=lt();qt.value=f.value.parentNode}),e({previewFile:u}),(f,d)=>{const c=ki;return a.openBlock(),a.createBlock(c,{namespace:"smart"},{default:a.withCtx(()=>[a.createElementVNode("div",ba,[a.createCommentVNode(" File / Blob 文件打开 "),a.unref(i)?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(l[a.unref(s)]||No),a.mergeProps({key:0,file:a.unref(i),"file-name":a.unref(r),"file-ext":a.unref(o)},a.unref(n)),null,16,["file","file-name","file-ext"])):a.createCommentVNode("v-if",!0)])]),_:1})}}}),[["styles",['[data-v-576658dd],[data-v-576658dd]:before,[data-v-576658dd]:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }[data-v-576658dd]::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }[relative=""][data-v-576658dd]{position:relative}.size-full[data-v-576658dd],[size-full=""][data-v-576658dd]{width:100%;height:100%}']],["__scopeId","data-v-576658dd"]]),wa="smart-file-preview";function xa(t,e){var n;xo&&!customElements.get(t)&&customElements.define(t,(n=e.prototype)!=null&&n.connectedCallback?e:a.defineCustomElement(e))}function ka(t,e){return t._instance.exposed[e]}const Kn=a.defineCustomElement(ya);Object.assign(Kn.prototype,{previewFile(...t){return ka(this,"previewFile")(...t)}}),xa(wa,Kn)})((Gn=SmartCore["2.0.11"])==null?void 0:Gn.Vue);