@gkd-kit/docs 0.0.1721996752045 → 0.0.1721998138427
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.vitepress/dist/404.html +4 -4
- package/.vitepress/dist/api/index.html +8 -8
- package/.vitepress/dist/api/interfaces/RawApp.html +8 -8
- package/.vitepress/dist/api/interfaces/RawAppGroup.html +9 -9
- package/.vitepress/dist/api/interfaces/RawAppRule.html +9 -9
- package/.vitepress/dist/api/interfaces/RawAppRuleProps.html +8 -8
- package/.vitepress/dist/api/interfaces/RawCategory.html +8 -8
- package/.vitepress/dist/api/interfaces/RawCommonProps.html +9 -9
- package/.vitepress/dist/api/interfaces/RawGlobalApp.html +8 -8
- package/.vitepress/dist/api/interfaces/RawGlobalGroup.html +9 -9
- package/.vitepress/dist/api/interfaces/RawGlobalRule.html +9 -9
- package/.vitepress/dist/api/interfaces/RawGlobalRuleProps.html +8 -8
- package/.vitepress/dist/api/interfaces/RawGroupProps.html +9 -9
- package/.vitepress/dist/api/interfaces/RawRuleProps.html +9 -9
- package/.vitepress/dist/api/interfaces/RawSubscription.html +9 -9
- package/.vitepress/dist/api/type-aliases/IArray.html +9 -9
- package/.vitepress/dist/api/type-aliases/Integer.html +9 -9
- package/.vitepress/dist/api/type-aliases/Position.html +9 -9
- package/.vitepress/dist/assets/{app.Ds7k-mzn.js → app.DubH5AY-.js} +1 -1
- package/.vitepress/dist/assets/chunks/@localSearchIndexroot.ClPdZmJK.js +1 -0
- package/.vitepress/dist/assets/chunks/{VPLocalSearchBox.Bk7ibVxh.js → VPLocalSearchBox.qFPuP_47.js} +2 -2
- package/.vitepress/dist/assets/chunks/index.DDSresYc.js +257 -0
- package/.vitepress/dist/assets/chunks/{theme.C-O25Cww.js → theme.DTfrLpO-.js} +1 -1
- package/.vitepress/dist/assets/{guide_example.md.DGcC1Bi0.js → guide_example.md.D7SWeJoD.js} +1 -1
- package/.vitepress/dist/assets/{guide_example.md.DGcC1Bi0.lean.js → guide_example.md.D7SWeJoD.lean.js} +1 -1
- package/.vitepress/dist/assets/{guide_faq.md.B_JaUqzL.js → guide_faq.md.eRGR7KZ1.js} +1 -1
- package/.vitepress/dist/assets/{guide_faq.md.B_JaUqzL.lean.js → guide_faq.md.eRGR7KZ1.lean.js} +1 -1
- package/.vitepress/dist/assets/{guide_index.md.DEBRqUTN.js → guide_index.md.BLS1PBdW.js} +1 -1
- package/.vitepress/dist/assets/{guide_index.md.DEBRqUTN.lean.js → guide_index.md.BLS1PBdW.lean.js} +1 -1
- package/.vitepress/dist/assets/{guide_node.md.BUqy6oYw.js → guide_node.md.cdwGzGYc.js} +1 -1
- package/.vitepress/dist/assets/{guide_node.md.BUqy6oYw.lean.js → guide_node.md.cdwGzGYc.lean.js} +1 -1
- package/.vitepress/dist/assets/{guide_optimize.md.Y2BSPgKk.js → guide_optimize.md.DD1ttd57.js} +1 -1
- package/.vitepress/dist/assets/{guide_optimize.md.Y2BSPgKk.lean.js → guide_optimize.md.DD1ttd57.lean.js} +1 -1
- package/.vitepress/dist/assets/{guide_selector.md.DHRkwwnW.js → guide_selector.md.B2AFKrqW.js} +1 -1
- package/.vitepress/dist/assets/{guide_selector.md.DHRkwwnW.lean.js → guide_selector.md.B2AFKrqW.lean.js} +1 -1
- package/.vitepress/dist/assets/guide_snapshot.md.DYUdrrKo.js +1 -0
- package/.vitepress/dist/assets/guide_snapshot.md.DYUdrrKo.lean.js +1 -0
- package/.vitepress/dist/assets/{guide_subscription.md.B-Vuphse.js → guide_subscription.md.CmKDXm3I.js} +1 -1
- package/.vitepress/dist/assets/{guide_subscription.md.B-Vuphse.lean.js → guide_subscription.md.CmKDXm3I.lean.js} +1 -1
- package/.vitepress/dist/assets/{guide_what-is-gkd.md.fMcPCl1v.js → guide_what-is-gkd.md.DmflRhgg.js} +1 -1
- package/.vitepress/dist/assets/{guide_what-is-gkd.md.fMcPCl1v.lean.js → guide_what-is-gkd.md.DmflRhgg.lean.js} +1 -1
- package/.vitepress/dist/assets/{index.md.Bgax_V36.js → index.md.BI4042HM.js} +1 -1
- package/.vitepress/dist/assets/{index.md.Bgax_V36.lean.js → index.md.BI4042HM.lean.js} +1 -1
- package/.vitepress/dist/assets/{style.DU-YwcM_.css → style.DkMAJtHG.css} +1 -1
- package/.vitepress/dist/guide/example.html +8 -8
- package/.vitepress/dist/guide/faq.html +8 -8
- package/.vitepress/dist/guide/index.html +8 -8
- package/.vitepress/dist/guide/node.html +8 -8
- package/.vitepress/dist/guide/optimize.html +8 -8
- package/.vitepress/dist/guide/selector.html +9 -9
- package/.vitepress/dist/guide/snapshot.html +8 -8
- package/.vitepress/dist/guide/subscription.html +9 -9
- package/.vitepress/dist/guide/what-is-gkd.html +8 -8
- package/.vitepress/dist/hashmap.json +1 -1
- package/.vitepress/dist/index.html +8 -8
- package/package.json +1 -1
- package/.vitepress/dist/assets/chunks/@localSearchIndexroot.DN0kjX-C.js +0 -1
- package/.vitepress/dist/assets/chunks/index.B6slXCSj.js +0 -257
- package/.vitepress/dist/assets/guide_snapshot.md.Bov46Vv_.js +0 -1
- package/.vitepress/dist/assets/guide_snapshot.md.Bov46Vv_.lean.js +0 -1
|
@@ -1,257 +0,0 @@
|
|
|
1
|
-
import{a as Bo,F as Ae,am as Jn,an as ua,d as ie,s as z,V as Dn,v as Se,h as k,y as ze,a1 as Te,N as oe,Z as Ve,ao as Qn,a6 as ut,ap as ge,a4 as w,aq as ca,R as da,r as fa,ar as ha,as as va,at as er,G as pa,x as qe,T as at,M as Io,au as Do,av as ga,aw as ma,P as ba}from"./framework.DAuRlsJR.js";const wa=typeof document<"u"&&typeof window<"u",ya=wa&&"loading"in document.createElement("img");function xa(e,t=[],n){const r={};return t.forEach(o=>{r[o]=e[o]}),Object.assign(r,n)}function Ln(e,t=!0,n=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&n.push(Bo(String(r)));return}if(Array.isArray(r)){Ln(r,t,n);return}if(r.type===Ae){if(r.children===null)return;Array.isArray(r.children)&&Ln(r.children,t,n)}else{if(r.type===Jn&&t)return;n.push(r)}}}),n}function St(e,...t){if(Array.isArray(e))e.forEach(n=>St(n,...t));else return e(...t)}function Tr(e,t){console.error(`[naive/${e}]: ${t}`)}function Ca(e,t){throw new Error(`[naive/${e}]: ${t}`)}function Or(e,t="default",n=void 0){const r=e[t];if(!r)return Tr("getFirstSlotVNode",`slot[${t}] is empty`),null;const o=Ln(r(n));return o.length===1?o[0]:(Tr("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function tr(e){return e.some(t=>ua(t)?!(t.type===Jn||t.type===Ae&&!tr(t.children)):!0)?e:null}function wn(e,t){const n=e&&tr(e());return t(n||null)}function Mr(e){return!(e&&tr(e()))}const Pr=ie({render(){var e,t;return(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)}}),Sa=/^(\d|\.)+$/,Er=/(\d|\.)+/;function yn(e,{c:t=1,offset:n=0,attachPx:r=!0}={}){if(typeof e=="number"){const o=(e+n)*t;return o===0?"0":`${o}px`}else if(typeof e=="string")if(Sa.test(e)){const o=(Number(e)+n)*t;return r?o===0?"0":`${o}px`:`${o}`}else{const o=Er.exec(e);return o?e.replace(Er,String((Number(o[0])+n)*t)):e}return e}let Qt=[];const Lo=new WeakMap;function $a(){Qt.forEach(e=>e(...Lo.get(e))),Qt=[]}function Ho(e,...t){Lo.set(e,t),!Qt.includes(e)&&Qt.push(e)===1&&requestAnimationFrame($a)}function en(e){return e.composedPath()[0]||null}function Ar(e){return typeof e=="string"?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function Ta(e,t){const n=e.trim().split(/\s+/g),r={top:n[0]};switch(n.length){case 1:r.right=n[0],r.bottom=n[0],r.left=n[0];break;case 2:r.right=n[1],r.left=n[1],r.bottom=n[0];break;case 3:r.right=n[1],r.bottom=n[2],r.left=n[1];break;case 4:r.right=n[1],r.bottom=n[2],r.left=n[3];break;default:throw new Error("[seemly/getMargin]:"+e+" is not a valid value.")}return t===void 0?r:r[t]}const zr={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"},ft="^\\s*",ht="\\s*$",We="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",je="([0-9A-Fa-f])",Ne="([0-9A-Fa-f]{2})",Oa=new RegExp(`${ft}rgb\\s*\\(${We},${We},${We}\\)${ht}`),Ma=new RegExp(`${ft}rgba\\s*\\(${We},${We},${We},${We}\\)${ht}`),Pa=new RegExp(`${ft}#${je}${je}${je}${ht}`),Ea=new RegExp(`${ft}#${Ne}${Ne}${Ne}${ht}`),Aa=new RegExp(`${ft}#${je}${je}${je}${je}${ht}`),za=new RegExp(`${ft}#${Ne}${Ne}${Ne}${Ne}${ht}`);function de(e){return parseInt(e,16)}function ct(e){try{let t;if(t=Ea.exec(e))return[de(t[1]),de(t[2]),de(t[3]),1];if(t=Oa.exec(e))return[le(t[1]),le(t[5]),le(t[9]),1];if(t=Ma.exec(e))return[le(t[1]),le(t[5]),le(t[9]),$t(t[13])];if(t=Pa.exec(e))return[de(t[1]+t[1]),de(t[2]+t[2]),de(t[3]+t[3]),1];if(t=za.exec(e))return[de(t[1]),de(t[2]),de(t[3]),$t(de(t[4])/255)];if(t=Aa.exec(e))return[de(t[1]+t[1]),de(t[2]+t[2]),de(t[3]+t[3]),$t(de(t[4]+t[4])/255)];if(e in zr)return ct(zr[e]);throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function _a(e){return e>1?1:e<0?0:e}function Ra(e,t,n,r){return`rgba(${le(e)}, ${le(t)}, ${le(n)}, ${_a(r)})`}function xn(e,t,n,r,o){return le((e*t*(1-r)+n*r)/o)}function Fo(e,t){Array.isArray(e)||(e=ct(e)),Array.isArray(t)||(t=ct(t));const n=e[3],r=t[3],o=$t(n+r-n*r);return Ra(xn(e[0],n,t[0],r,o),xn(e[1],n,t[1],r,o),xn(e[2],n,t[2],r,o),o)}function Ft(e,t){const[n,r,o,i=1]=Array.isArray(e)?e:ct(e),{lightness:a=1,alpha:s=1}=t;return Ba([n*a,r*a,o*a,i*s])}function $t(e){const t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function le(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function Ba(e){const[t,n,r]=e;return 3 in e?`rgba(${le(t)}, ${le(n)}, ${le(r)}, ${$t(e[3])})`:`rgba(${le(t)}, ${le(n)}, ${le(r)}, 1)`}function ko(e=8){return Math.random().toString(16).slice(2,2+e)}function Ia(e){const{left:t,right:n,top:r,bottom:o}=Ta(e);return`${r} ${n} ${o} ${t}`}function Da(e){let t=0;for(let n=0;n<e.length;++n)e[n]==="&"&&++t;return t}const Wo=/\s*,(?![^(]*\))\s*/g,La=/\s+/g;function Ha(e,t){const n=[];return t.split(Wo).forEach(r=>{let o=Da(r);if(o){if(o===1){e.forEach(a=>{n.push(r.replace("&",a))});return}}else{e.forEach(a=>{n.push((a&&a+" ")+r)});return}let i=[r];for(;o--;){const a=[];i.forEach(s=>{e.forEach(l=>{a.push(s.replace("&",l))})}),i=a}i.forEach(a=>n.push(a))}),n}function Fa(e,t){const n=[];return t.split(Wo).forEach(r=>{e.forEach(o=>{n.push((o&&o+" ")+r)})}),n}function ka(e){let t=[""];return e.forEach(n=>{n=n&&n.trim(),n&&(n.includes("&")?t=Ha(t,n):t=Fa(t,n))}),t.join(", ").replace(La," ")}function _r(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function sn(e,t){return(t??document.head).querySelector(`style[cssr-id="${e}"]`)}function Wa(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function kt(e){return e?/^\s*@(s|m)/.test(e):!1}const ja=/[A-Z]/g;function jo(e){return e.replace(ja,t=>"-"+t.toLowerCase())}function Na(e,t=" "){return typeof e=="object"&&e!==null?` {
|
|
2
|
-
`+Object.entries(e).map(n=>t+` ${jo(n[0])}: ${n[1]};`).join(`
|
|
3
|
-
`)+`
|
|
4
|
-
`+t+"}":`: ${e};`}function Ua(e,t,n){return typeof e=="function"?e({context:t.context,props:n}):e}function Rr(e,t,n,r){if(!t)return"";const o=Ua(t,n,r);if(!o)return"";if(typeof o=="string")return`${e} {
|
|
5
|
-
${o}
|
|
6
|
-
}`;const i=Object.keys(o);if(i.length===0)return n.config.keepEmptyBlock?e+` {
|
|
7
|
-
}`:"";const a=e?[e+" {"]:[];return i.forEach(s=>{const l=o[s];if(s==="raw"){a.push(`
|
|
8
|
-
`+l+`
|
|
9
|
-
`);return}s=jo(s),l!=null&&a.push(` ${s}${Na(l)}`)}),e&&a.push("}"),a.join(`
|
|
10
|
-
`)}function Hn(e,t,n){e&&e.forEach(r=>{if(Array.isArray(r))Hn(r,t,n);else if(typeof r=="function"){const o=r(t);Array.isArray(o)?Hn(o,t,n):o&&n(o)}else r&&n(r)})}function No(e,t,n,r,o){const i=e.$;let a="";if(!i||typeof i=="string")kt(i)?a=i:t.push(i);else if(typeof i=="function"){const u=i({context:r.context,props:o});kt(u)?a=u:t.push(u)}else if(i.before&&i.before(r.context),!i.$||typeof i.$=="string")kt(i.$)?a=i.$:t.push(i.$);else if(i.$){const u=i.$({context:r.context,props:o});kt(u)?a=u:t.push(u)}const s=ka(t),l=Rr(s,e.props,r,o);a?n.push(`${a} {`):l.length&&n.push(l),e.children&&Hn(e.children,{context:r.context,props:o},u=>{if(typeof u=="string"){const c=Rr(s,{raw:u},r,o);n.push(c)}else No(u,t,n,r,o)}),t.pop(),a&&n.push("}"),i&&i.after&&i.after(r.context)}function Va(e,t,n){const r=[];return No(e,[],r,t,n),r.join(`
|
|
11
|
-
|
|
12
|
-
`)}function Fn(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}typeof window<"u"&&(window.__cssrContext={});function Xa(e,t,n,r){const{els:o}=t;if(n===void 0)o.forEach(_r),t.els=[];else{const i=sn(n,r);i&&o.includes(i)&&(_r(i),t.els=o.filter(a=>a!==i))}}function Br(e,t){e.push(t)}function Ya(e,t,n,r,o,i,a,s,l){let u;if(n===void 0&&(u=t.render(r),n=Fn(u)),l){l.adapter(n,u??t.render(r));return}s===void 0&&(s=document.head);const c=sn(n,s);if(c!==null&&!i)return c;const h=c??Wa(n);if(u===void 0&&(u=t.render(r)),h.textContent=u,c!==null)return c;if(a){const v=s.querySelector(`meta[name="${a}"]`);if(v)return s.insertBefore(h,v),Br(t.els,h),h}return o?s.insertBefore(h,s.querySelector("style, link")):s.appendChild(h),Br(t.els,h),h}function Za(e){return Va(this,this.instance,e)}function qa(e={}){const{id:t,ssr:n,props:r,head:o=!1,force:i=!1,anchorMetaName:a,parent:s}=e;return Ya(this.instance,this,t,r,o,i,a,s,n)}function Ga(e={}){const{id:t,parent:n}=e;Xa(this.instance,this,t,n)}const Wt=function(e,t,n,r){return{instance:e,$:t,props:n,children:r,els:[],render:Za,mount:qa,unmount:Ga}},Ka=function(e,t,n,r){return Array.isArray(t)?Wt(e,{$:null},null,t):Array.isArray(n)?Wt(e,t,null,n):Array.isArray(r)?Wt(e,t,n,r):Wt(e,t,n,null)};function Uo(e={}){const t={c:(...n)=>Ka(t,...n),use:(n,...r)=>n.install(t,...r),find:sn,context:{},config:e};return t}function Ja(e,t){if(e===void 0)return!1;if(t){const{context:{ids:n}}=t;return n.has(e)}return sn(e)!==null}function Qa(e){let t=".",n="__",r="--",o;if(e){let d=e.blockPrefix;d&&(t=d),d=e.elementPrefix,d&&(n=d),d=e.modifierPrefix,d&&(r=d)}const i={install(d){o=d.c;const b=d.context;b.bem={},b.bem.b=null,b.bem.els=null}};function a(d){let b,g;return{before(f){b=f.bem.b,g=f.bem.els,f.bem.els=null},after(f){f.bem.b=b,f.bem.els=g},$({context:f,props:$}){return d=typeof d=="string"?d:d({context:f,props:$}),f.bem.b=d,`${($==null?void 0:$.bPrefix)||t}${f.bem.b}`}}}function s(d){let b;return{before(g){b=g.bem.els},after(g){g.bem.els=b},$({context:g,props:f}){return d=typeof d=="string"?d:d({context:g,props:f}),g.bem.els=d.split(",").map($=>$.trim()),g.bem.els.map($=>`${(f==null?void 0:f.bPrefix)||t}${g.bem.b}${n}${$}`).join(", ")}}}function l(d){return{$({context:b,props:g}){d=typeof d=="string"?d:d({context:b,props:g});const f=d.split(",").map(L=>L.trim());function $(L){return f.map(N=>`&${(g==null?void 0:g.bPrefix)||t}${b.bem.b}${L!==void 0?`${n}${L}`:""}${r}${N}`).join(", ")}const D=b.bem.els;return D!==null?$(D[0]):$()}}}function u(d){return{$({context:b,props:g}){d=typeof d=="string"?d:d({context:b,props:g});const f=b.bem.els;return`&:not(${(g==null?void 0:g.bPrefix)||t}${b.bem.b}${f!==null&&f.length>0?`${n}${f[0]}`:""}${r}${d})`}}}return Object.assign(i,{cB:(...d)=>o(a(d[0]),d[1],d[2]),cE:(...d)=>o(s(d[0]),d[1],d[2]),cM:(...d)=>o(l(d[0]),d[1],d[2]),cNotM:(...d)=>o(u(d[0]),d[1],d[2])}),i}const es="n",ts=`.${es}-`,ns="__",rs="--",Vo=Uo(),Xo=Qa({blockPrefix:ts,elementPrefix:ns,modifierPrefix:rs});Vo.use(Xo);const{c:H,find:Cp}=Vo,{cB:G,cE:Ue,cM:Xe,cNotM:Gt}=Xo,os=(...e)=>H(">",[G(...e)]);let Cn;function is(){return Cn===void 0&&(Cn=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),Cn}function as(e){const t=z(!!e.value);if(t.value)return Dn(t);const n=Se(e,r=>{r&&(t.value=!0,n())});return Dn(t)}function Pt(e){const t=k(e),n=z(t.value);return Se(t,r=>{n.value=r}),typeof e=="function"?n:{__v_isRef:!0,get value(){return n.value},set value(r){e.set(r)}}}const ss=typeof window<"u";let st,Tt;const ls=()=>{var e,t;st=ss?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,Tt=!1,st!==void 0?st.then(()=>{Tt=!0}):Tt=!0};ls();function us(e){if(Tt)return;let t=!1;ze(()=>{Tt||st==null||st.then(()=>{t||e()})}),Te(()=>{t=!0})}function Kt(e){return e.composedPath()[0]}const cs={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function ds(e,t,n){if(e==="mousemoveoutside"){const r=o=>{t.contains(Kt(o))||n(o)};return{mousemove:r,touchstart:r}}else if(e==="clickoutside"){let r=!1;const o=a=>{r=!t.contains(Kt(a))},i=a=>{r&&(t.contains(Kt(a))||n(a))};return{mousedown:o,mouseup:i,touchstart:o,touchend:i}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}function Yo(e,t,n){const r=cs[e];let o=r.get(t);o===void 0&&r.set(t,o=new WeakMap);let i=o.get(n);return i===void 0&&o.set(n,i=ds(e,t,n)),i}function fs(e,t,n,r){if(e==="mousemoveoutside"||e==="clickoutside"){const o=Yo(e,t,n);return Object.keys(o).forEach(i=>{ne(i,document,o[i],r)}),!0}return!1}function hs(e,t,n,r){if(e==="mousemoveoutside"||e==="clickoutside"){const o=Yo(e,t,n);return Object.keys(o).forEach(i=>{K(i,document,o[i],r)}),!0}return!1}function vs(){if(typeof window>"u")return{on:()=>{},off:()=>{}};const e=new WeakMap,t=new WeakMap;function n(){e.set(this,!0)}function r(){e.set(this,!0),t.set(this,!0)}function o(p,m,O){const T=p[m];return p[m]=function(){return O.apply(p,arguments),T.apply(p,arguments)},p}function i(p,m){p[m]=Event.prototype[m]}const a=new WeakMap,s=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function l(){var p;return(p=a.get(this))!==null&&p!==void 0?p:null}function u(p,m){s!==void 0&&Object.defineProperty(p,"currentTarget",{configurable:!0,enumerable:!0,get:m??s.get})}const c={bubble:{},capture:{}},h={};function v(){const p=function(m){const{type:O,eventPhase:T,bubbles:B}=m,F=Kt(m);if(T===2)return;const R=T===1?"capture":"bubble";let W=F;const S=[];for(;W===null&&(W=window),S.push(W),W!==window;)W=W.parentNode||null;const I=c.capture[O],V=c.bubble[O];if(o(m,"stopPropagation",n),o(m,"stopImmediatePropagation",r),u(m,l),R==="capture"){if(I===void 0)return;for(let J=S.length-1;J>=0&&!e.has(m);--J){const re=S[J],Q=I.get(re);if(Q!==void 0){a.set(m,re);for(const fe of Q){if(t.has(m))break;fe(m)}}if(J===0&&!B&&V!==void 0){const fe=V.get(re);if(fe!==void 0)for(const et of fe){if(t.has(m))break;et(m)}}}}else if(R==="bubble"){if(V===void 0)return;for(let J=0;J<S.length&&!e.has(m);++J){const re=S[J],Q=V.get(re);if(Q!==void 0){a.set(m,re);for(const fe of Q){if(t.has(m))break;fe(m)}}}}i(m,"stopPropagation"),i(m,"stopImmediatePropagation"),u(m)};return p.displayName="evtdUnifiedHandler",p}function y(){const p=function(m){const{type:O,eventPhase:T}=m;if(T!==2)return;const B=h[O];B!==void 0&&B.forEach(F=>F(m))};return p.displayName="evtdUnifiedWindowEventHandler",p}const d=v(),b=y();function g(p,m){const O=c[p];return O[m]===void 0&&(O[m]=new Map,window.addEventListener(m,d,p==="capture")),O[m]}function f(p){return h[p]===void 0&&(h[p]=new Set,window.addEventListener(p,b)),h[p]}function $(p,m){let O=p.get(m);return O===void 0&&p.set(m,O=new Set),O}function D(p,m,O,T){const B=c[m][O];if(B!==void 0){const F=B.get(p);if(F!==void 0&&F.has(T))return!0}return!1}function L(p,m){const O=h[p];return!!(O!==void 0&&O.has(m))}function N(p,m,O,T){let B;if(typeof T=="object"&&T.once===!0?B=I=>{j(p,m,B,T),O(I)}:B=O,fs(p,m,B,T))return;const R=T===!0||typeof T=="object"&&T.capture===!0?"capture":"bubble",W=g(R,p),S=$(W,m);if(S.has(B)||S.add(B),m===window){const I=f(p);I.has(B)||I.add(B)}}function j(p,m,O,T){if(hs(p,m,O,T))return;const F=T===!0||typeof T=="object"&&T.capture===!0,R=F?"capture":"bubble",W=g(R,p),S=$(W,m);if(m===window&&!D(m,F?"bubble":"capture",p,O)&&L(p,O)){const V=h[p];V.delete(O),V.size===0&&(window.removeEventListener(p,b),h[p]=void 0)}S.has(O)&&S.delete(O),S.size===0&&W.delete(m),W.size===0&&(window.removeEventListener(p,d,R==="capture"),c[R][p]=void 0)}return{on:N,off:j}}const{on:ne,off:K}=vs();function ps(e,t){return Se(e,n=>{n!==void 0&&(t.value=n)}),k(()=>e.value===void 0?t.value:e.value)}function nr(){const e=z(!1);return ze(()=>{e.value=!0}),Dn(e)}function gs(e,t){return k(()=>{for(const n of t)if(e[n]!==void 0)return e[n];return e[t[t.length-1]]})}const ms=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function bs(){return ms}const ws="n-internal-select-menu-body",Zo="n-modal-body",qo="n-drawer-body",Go="n-popover-body",Ko="__disabled__";function dt(e){const t=oe(Zo,null),n=oe(qo,null),r=oe(Go,null),o=oe(ws,null),i=z();if(typeof document<"u"){i.value=document.fullscreenElement;const a=()=>{i.value=document.fullscreenElement};ze(()=>{ne("fullscreenchange",document,a)}),Te(()=>{K("fullscreenchange",document,a)})}return Pt(()=>{var a;const{to:s}=e;return s!==void 0?s===!1?Ko:s===!0?i.value||"body":s:t!=null&&t.value?(a=t.value.$el)!==null&&a!==void 0?a:t.value:n!=null&&n.value?n.value:r!=null&&r.value?r.value:o!=null&&o.value?o.value:s??(i.value||"body")})}dt.tdkey=Ko;dt.propTo={type:[String,Object,Boolean],default:void 0};function kn(e,t,n="default"){const r=t[n];if(r===void 0)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);return r()}function Wn(e,t=!0,n=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&n.push(Bo(String(r)));return}if(Array.isArray(r)){Wn(r,t,n);return}if(r.type===Ae){if(r.children===null)return;Array.isArray(r.children)&&Wn(r.children,t,n)}else r.type!==Jn&&n.push(r)}}),n}function Ir(e,t,n="default"){const r=t[n];if(r===void 0)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);const o=Wn(r());if(o.length===1)return o[0];throw new Error(`[vueuc/${e}]: slot[${n}] should have exactly one child.`)}let Ie=null;function Jo(){if(Ie===null&&(Ie=document.getElementById("v-binder-view-measurer"),Ie===null)){Ie=document.createElement("div"),Ie.id="v-binder-view-measurer";const{style:e}=Ie;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(Ie)}return Ie.getBoundingClientRect()}function ys(e,t){const n=Jo();return{top:t,left:e,height:0,width:0,right:n.width-e,bottom:n.height-t}}function Sn(e){const t=e.getBoundingClientRect(),n=Jo();return{left:t.left-n.left,top:t.top-n.top,bottom:n.height+n.top-t.bottom,right:n.width+n.left-t.right,width:t.width,height:t.height}}function xs(e){return e.nodeType===9?null:e.parentNode}function Qo(e){if(e===null)return null;const t=xs(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:n,overflowX:r,overflowY:o}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(n+o+r))return t}return Qo(t)}const Cs=ie({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;Ve("VBinder",(t=Qn())===null||t===void 0?void 0:t.proxy);const n=oe("VBinder",null),r=z(null),o=f=>{r.value=f,n&&e.syncTargetWithParent&&n.setTargetRef(f)};let i=[];const a=()=>{let f=r.value;for(;f=Qo(f),f!==null;)i.push(f);for(const $ of i)ne("scroll",$,h,!0)},s=()=>{for(const f of i)K("scroll",f,h,!0);i=[]},l=new Set,u=f=>{l.size===0&&a(),l.has(f)||l.add(f)},c=f=>{l.has(f)&&l.delete(f),l.size===0&&s()},h=()=>{Ho(v)},v=()=>{l.forEach(f=>f())},y=new Set,d=f=>{y.size===0&&ne("resize",window,g),y.has(f)||y.add(f)},b=f=>{y.has(f)&&y.delete(f),y.size===0&&K("resize",window,g)},g=()=>{y.forEach(f=>f())};return Te(()=>{K("resize",window,g),s()}),{targetRef:r,setTargetRef:o,addScrollListener:u,removeScrollListener:c,addResizeListener:d,removeResizeListener:b}},render(){return kn("binder",this.$slots)}}),Ss=Cs,$s=ie({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=oe("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?ut(Ir("follower",this.$slots),[[t]]):Ir("follower",this.$slots)}}),nt="@@mmoContext",Ts={mounted(e,{value:t}){e[nt]={handler:void 0},typeof t=="function"&&(e[nt].handler=t,ne("mousemoveoutside",e,t))},updated(e,{value:t}){const n=e[nt];typeof t=="function"?n.handler?n.handler!==t&&(K("mousemoveoutside",e,n.handler),n.handler=t,ne("mousemoveoutside",e,t)):(e[nt].handler=t,ne("mousemoveoutside",e,t)):n.handler&&(K("mousemoveoutside",e,n.handler),n.handler=void 0)},unmounted(e){const{handler:t}=e[nt];t&&K("mousemoveoutside",e,t),e[nt].handler=void 0}},Os=Ts,rt="@@coContext",Ms={mounted(e,{value:t,modifiers:n}){e[rt]={handler:void 0},typeof t=="function"&&(e[rt].handler=t,ne("clickoutside",e,t,{capture:n.capture}))},updated(e,{value:t,modifiers:n}){const r=e[rt];typeof t=="function"?r.handler?r.handler!==t&&(K("clickoutside",e,r.handler,{capture:n.capture}),r.handler=t,ne("clickoutside",e,t,{capture:n.capture})):(e[rt].handler=t,ne("clickoutside",e,t,{capture:n.capture})):r.handler&&(K("clickoutside",e,r.handler,{capture:n.capture}),r.handler=void 0)},unmounted(e,{modifiers:t}){const{handler:n}=e[rt];n&&K("clickoutside",e,n,{capture:t.capture}),e[rt].handler=void 0}},Dr=Ms;function Ps(e,t){console.error(`[vdirs/${e}]: ${t}`)}class Es{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(t,n){const{elementZIndex:r}=this;if(n!==void 0){t.style.zIndex=`${n}`,r.delete(t);return}const{nextZIndex:o}=this;r.has(t)&&r.get(t)+1===this.nextZIndex||(t.style.zIndex=`${o}`,r.set(t,o),this.nextZIndex=o+1,this.squashState())}unregister(t,n){const{elementZIndex:r}=this;r.has(t)?r.delete(t):n===void 0&&Ps("z-index-manager/unregister-element","Element not found when unregistering."),this.squashState()}squashState(){const{elementCount:t}=this;t||(this.nextZIndex=2e3),this.nextZIndex-t>2500&&this.rearrange()}rearrange(){const t=Array.from(this.elementZIndex.entries());t.sort((n,r)=>n[1]-r[1]),this.nextZIndex=2e3,t.forEach(n=>{const r=n[0],o=this.nextZIndex++;`${o}`!==r.style.zIndex&&(r.style.zIndex=`${o}`)})}}const $n=new Es,ot="@@ziContext",As={mounted(e,t){const{value:n={}}=t,{zIndex:r,enabled:o}=n;e[ot]={enabled:!!o,initialized:!1},o&&($n.ensureZIndex(e,r),e[ot].initialized=!0)},updated(e,t){const{value:n={}}=t,{zIndex:r,enabled:o}=n,i=e[ot].enabled;o&&!i&&($n.ensureZIndex(e,r),e[ot].initialized=!0),e[ot].enabled=!!o},unmounted(e,t){if(!e[ot].initialized)return;const{value:n={}}=t,{zIndex:r}=n;$n.unregister(e,r)}},rr=As,zs="@css-render/vue3-ssr";function _s(e,t){return`<style cssr-id="${e}">
|
|
13
|
-
${t}
|
|
14
|
-
</style>`}function Rs(e,t,n){const{styles:r,ids:o}=n;o.has(e)||r!==null&&(o.add(e),r.push(_s(e,t)))}const Bs=typeof document<"u";function Rt(){if(Bs)return;const e=oe(zs,null);if(e!==null)return{adapter:(t,n)=>Rs(t,n,e),context:e}}function Lr(e,t){console.error(`[vueuc/${e}]: ${t}`)}const{c:jt}=Uo(),Is="vueuc-style";function Hr(e){return typeof e=="string"?document.querySelector(e):e()}const ei=ie({name:"LazyTeleport",props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup(e){return{showTeleport:as(ge(e,"show")),mergedTo:k(()=>{const{to:t}=e;return t??"body"})}},render(){return this.showTeleport?this.disabled?kn("lazy-teleport",this.$slots):w(ca,{disabled:this.disabled,to:this.mergedTo},kn("lazy-teleport",this.$slots)):null}}),Nt={top:"bottom",bottom:"top",left:"right",right:"left"},Fr={start:"end",center:"center",end:"start"},Tn={top:"height",bottom:"height",left:"width",right:"width"},Ds={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},Ls={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},Hs={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},kr={top:!0,bottom:!1,left:!0,right:!1},Wr={top:"end",bottom:"start",left:"end",right:"start"};function Fs(e,t,n,r,o,i){if(!o||i)return{placement:e,top:0,left:0};const[a,s]=e.split("-");let l=s??"center",u={top:0,left:0};const c=(y,d,b)=>{let g=0,f=0;const $=n[y]-t[d]-t[y];return $>0&&r&&(b?f=kr[d]?$:-$:g=kr[d]?$:-$),{left:g,top:f}},h=a==="left"||a==="right";if(l!=="center"){const y=Hs[e],d=Nt[y],b=Tn[y];if(n[b]>t[b]){if(t[y]+t[b]<n[b]){const g=(n[b]-t[b])/2;t[y]<g||t[d]<g?t[y]<t[d]?(l=Fr[s],u=c(b,d,h)):u=c(b,y,h):l="center"}}else n[b]<t[b]&&t[d]<0&&t[y]>t[d]&&(l=Fr[s])}else{const y=a==="bottom"||a==="top"?"left":"top",d=Nt[y],b=Tn[y],g=(n[b]-t[b])/2;(t[y]<g||t[d]<g)&&(t[y]>t[d]?(l=Wr[y],u=c(b,y,h)):(l=Wr[d],u=c(b,d,h)))}let v=a;return t[a]<n[Tn[a]]&&t[a]<t[Nt[a]]&&(v=Nt[a]),{placement:l!=="center"?`${v}-${l}`:v,left:u.left,top:u.top}}function ks(e,t){return t?Ls[e]:Ds[e]}function Ws(e,t,n,r,o,i){if(i)switch(e){case"bottom-start":return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left)}px`,transform:"translateY(-100%)"};case"bottom-end":return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:"translateX(-100%) translateY(-100%)"};case"top-start":return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left)}px`,transform:""};case"top-end":return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:"translateX(-100%)"};case"right-start":return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:"translateX(-100%)"};case"right-end":return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:"translateX(-100%) translateY(-100%)"};case"left-start":return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left)}px`,transform:""};case"left-end":return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left)}px`,transform:"translateY(-100%)"};case"top":return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left+n.width/2)}px`,transform:"translateX(-50%)"};case"right":return{top:`${Math.round(n.top-t.top+n.height/2)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:"translateX(-100%) translateY(-50%)"};case"left":return{top:`${Math.round(n.top-t.top+n.height/2)}px`,left:`${Math.round(n.left-t.left)}px`,transform:"translateY(-50%)"};case"bottom":default:return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left+n.width/2)}px`,transform:"translateX(-50%) translateY(-100%)"}}switch(e){case"bottom-start":return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+o)}px`,transform:""};case"bottom-end":return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+n.width+o)}px`,transform:"translateX(-100%)"};case"top-start":return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+o)}px`,transform:"translateY(-100%)"};case"top-end":return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+n.width+o)}px`,transform:"translateX(-100%) translateY(-100%)"};case"right-start":return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+n.width+o)}px`,transform:""};case"right-end":return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+n.width+o)}px`,transform:"translateY(-100%)"};case"left-start":return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+o)}px`,transform:"translateX(-100%)"};case"left-end":return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+o)}px`,transform:"translateX(-100%) translateY(-100%)"};case"top":return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+n.width/2+o)}px`,transform:"translateY(-100%) translateX(-50%)"};case"right":return{top:`${Math.round(n.top-t.top+n.height/2+r)}px`,left:`${Math.round(n.left-t.left+n.width+o)}px`,transform:"translateY(-50%)"};case"left":return{top:`${Math.round(n.top-t.top+n.height/2+r)}px`,left:`${Math.round(n.left-t.left+o)}px`,transform:"translateY(-50%) translateX(-100%)"};case"bottom":default:return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+n.width/2+o)}px`,transform:"translateX(-50%)"}}}const js=jt([jt(".v-binder-follower-container",{position:"absolute",left:"0",right:"0",top:"0",height:"0",pointerEvents:"none",zIndex:"auto"}),jt(".v-binder-follower-content",{position:"absolute",zIndex:"auto"},[jt("> *",{pointerEvents:"all"})])]),Ns=ie({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){const t=oe("VBinder"),n=Pt(()=>e.enabled!==void 0?e.enabled:e.show),r=z(null),o=z(null),i=()=>{const{syncTrigger:v}=e;v.includes("scroll")&&t.addScrollListener(l),v.includes("resize")&&t.addResizeListener(l)},a=()=>{t.removeScrollListener(l),t.removeResizeListener(l)};ze(()=>{n.value&&(l(),i())});const s=Rt();js.mount({id:"vueuc/binder",head:!0,anchorMetaName:Is,ssr:s}),Te(()=>{a()}),us(()=>{n.value&&l()});const l=()=>{if(!n.value)return;const v=r.value;if(v===null)return;const y=t.targetRef,{x:d,y:b,overlap:g}=e,f=d!==void 0&&b!==void 0?ys(d,b):Sn(y);v.style.setProperty("--v-target-width",`${Math.round(f.width)}px`),v.style.setProperty("--v-target-height",`${Math.round(f.height)}px`);const{width:$,minWidth:D,placement:L,internalShift:N,flip:j}=e;v.setAttribute("v-placement",L),g?v.setAttribute("v-overlap",""):v.removeAttribute("v-overlap");const{style:p}=v;$==="target"?p.width=`${f.width}px`:$!==void 0?p.width=$:p.width="",D==="target"?p.minWidth=`${f.width}px`:D!==void 0?p.minWidth=D:p.minWidth="";const m=Sn(v),O=Sn(o.value),{left:T,top:B,placement:F}=Fs(L,f,m,N,j,g),R=ks(F,g),{left:W,top:S,transform:I}=Ws(F,O,f,B,T,g);v.setAttribute("v-placement",F),v.style.setProperty("--v-offset-left",`${Math.round(T)}px`),v.style.setProperty("--v-offset-top",`${Math.round(B)}px`),v.style.transform=`translateX(${W}) translateY(${S}) ${I}`,v.style.setProperty("--v-transform-origin",R),v.style.transformOrigin=R};Se(n,v=>{v?(i(),u()):a()});const u=()=>{da().then(l).catch(v=>console.error(v))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(v=>{Se(ge(e,v),l)}),["teleportDisabled"].forEach(v=>{Se(ge(e,v),u)}),Se(ge(e,"syncTrigger"),v=>{v.includes("resize")?t.addResizeListener(l):t.removeResizeListener(l),v.includes("scroll")?t.addScrollListener(l):t.removeScrollListener(l)});const c=nr(),h=Pt(()=>{const{to:v}=e;if(v!==void 0)return v;c.value});return{VBinder:t,mergedEnabled:n,offsetContainerRef:o,followerRef:r,mergedTo:h,syncPosition:l}},render(){return w(ei,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const n=w("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[w("div",{class:"v-binder-follower-content",ref:"followerRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))]);return this.zindexable?ut(n,[[rr,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):n}})}});var Ye=[],Us=function(){return Ye.some(function(e){return e.activeTargets.length>0})},Vs=function(){return Ye.some(function(e){return e.skippedTargets.length>0})},jr="ResizeObserver loop completed with undelivered notifications.",Xs=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:jr}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=jr),window.dispatchEvent(e)},Et;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Et||(Et={}));var Ze=function(e){return Object.freeze(e)},Ys=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,Ze(this)}return e}(),ti=function(){function e(t,n,r,o){return this.x=t,this.y=n,this.width=r,this.height=o,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Ze(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,o=t.top,i=t.right,a=t.bottom,s=t.left,l=t.width,u=t.height;return{x:n,y:r,top:o,right:i,bottom:a,left:s,width:l,height:u}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),or=function(e){return e instanceof SVGElement&&"getBBox"in e},ni=function(e){if(or(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var o=e,i=o.offsetWidth,a=o.offsetHeight;return!(i||a||e.getClientRects().length)},Nr=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},Zs=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Ot=typeof window<"u"?window:{},Ut=new WeakMap,Ur=/auto|scroll/,qs=/^tb|vertical/,Gs=/msie|trident/i.test(Ot.navigator&&Ot.navigator.userAgent),Ce=function(e){return parseFloat(e||"0")},lt=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new Ys((n?t:e)||0,(n?e:t)||0)},Vr=Ze({devicePixelContentBoxSize:lt(),borderBoxSize:lt(),contentBoxSize:lt(),contentRect:new ti(0,0,0,0)}),ri=function(e,t){if(t===void 0&&(t=!1),Ut.has(e)&&!t)return Ut.get(e);if(ni(e))return Ut.set(e,Vr),Vr;var n=getComputedStyle(e),r=or(e)&&e.ownerSVGElement&&e.getBBox(),o=!Gs&&n.boxSizing==="border-box",i=qs.test(n.writingMode||""),a=!r&&Ur.test(n.overflowY||""),s=!r&&Ur.test(n.overflowX||""),l=r?0:Ce(n.paddingTop),u=r?0:Ce(n.paddingRight),c=r?0:Ce(n.paddingBottom),h=r?0:Ce(n.paddingLeft),v=r?0:Ce(n.borderTopWidth),y=r?0:Ce(n.borderRightWidth),d=r?0:Ce(n.borderBottomWidth),b=r?0:Ce(n.borderLeftWidth),g=h+u,f=l+c,$=b+y,D=v+d,L=s?e.offsetHeight-D-e.clientHeight:0,N=a?e.offsetWidth-$-e.clientWidth:0,j=o?g+$:0,p=o?f+D:0,m=r?r.width:Ce(n.width)-j-N,O=r?r.height:Ce(n.height)-p-L,T=m+g+N+$,B=O+f+L+D,F=Ze({devicePixelContentBoxSize:lt(Math.round(m*devicePixelRatio),Math.round(O*devicePixelRatio),i),borderBoxSize:lt(T,B,i),contentBoxSize:lt(m,O,i),contentRect:new ti(h,l,m,O)});return Ut.set(e,F),F},oi=function(e,t,n){var r=ri(e,n),o=r.borderBoxSize,i=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case Et.DEVICE_PIXEL_CONTENT_BOX:return a;case Et.BORDER_BOX:return o;default:return i}},Ks=function(){function e(t){var n=ri(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=Ze([n.borderBoxSize]),this.contentBoxSize=Ze([n.contentBoxSize]),this.devicePixelContentBoxSize=Ze([n.devicePixelContentBoxSize])}return e}(),ii=function(e){if(ni(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},Js=function(){var e=1/0,t=[];Ye.forEach(function(a){if(a.activeTargets.length!==0){var s=[];a.activeTargets.forEach(function(u){var c=new Ks(u.target),h=ii(u.target);s.push(c),u.lastReportedSize=oi(u.target,u.observedBox),h<e&&(e=h)}),t.push(function(){a.callback.call(a.observer,s,a.observer)}),a.activeTargets.splice(0,a.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var o=r[n];o()}return e},Xr=function(e){Ye.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(o){o.isActive()&&(ii(o.target)>e?n.activeTargets.push(o):n.skippedTargets.push(o))})})},Qs=function(){var e=0;for(Xr(e);Us();)e=Js(),Xr(e);return Vs()&&Xs(),e>0},On,ai=[],el=function(){return ai.splice(0).forEach(function(e){return e()})},tl=function(e){if(!On){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return el()}).observe(n,r),On=function(){n.textContent="".concat(t?t--:t++)}}ai.push(e),On()},nl=function(e){tl(function(){requestAnimationFrame(e)})},Jt=0,rl=function(){return!!Jt},ol=250,il={attributes:!0,characterData:!0,childList:!0,subtree:!0},Yr=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Zr=function(e){return e===void 0&&(e=0),Date.now()+e},Mn=!1,al=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=ol),!Mn){Mn=!0;var r=Zr(t);nl(function(){var o=!1;try{o=Qs()}finally{if(Mn=!1,t=r-Zr(),!rl())return;o?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,il)};document.body?n():Ot.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Yr.forEach(function(n){return Ot.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Yr.forEach(function(n){return Ot.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),jn=new al,qr=function(e){!Jt&&e>0&&jn.start(),Jt+=e,!Jt&&jn.stop()},sl=function(e){return!or(e)&&!Zs(e)&&getComputedStyle(e).display==="inline"},ll=function(){function e(t,n){this.target=t,this.observedBox=n||Et.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=oi(this.target,this.observedBox,!0);return sl(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),ul=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),Vt=new WeakMap,Gr=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},Xt=function(){function e(){}return e.connect=function(t,n){var r=new ul(t,n);Vt.set(t,r)},e.observe=function(t,n,r){var o=Vt.get(t),i=o.observationTargets.length===0;Gr(o.observationTargets,n)<0&&(i&&Ye.push(o),o.observationTargets.push(new ll(n,r&&r.box)),qr(1),jn.schedule())},e.unobserve=function(t,n){var r=Vt.get(t),o=Gr(r.observationTargets,n),i=r.observationTargets.length===1;o>=0&&(i&&Ye.splice(Ye.indexOf(r),1),r.observationTargets.splice(o,1),qr(-1))},e.disconnect=function(t){var n=this,r=Vt.get(t);r.observationTargets.slice().forEach(function(o){return n.unobserve(t,o.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),cl=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Xt.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Nr(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Xt.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Nr(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Xt.unobserve(this,t)},e.prototype.disconnect=function(){Xt.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class dl{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||cl)(this.handleResize),this.elHandlersMap=new Map}handleResize(t){for(const n of t){const r=this.elHandlersMap.get(n.target);r!==void 0&&r(n)}}registerHandler(t,n){this.elHandlersMap.set(t,n),this.observer.observe(t)}unregisterHandler(t){this.elHandlersMap.has(t)&&(this.elHandlersMap.delete(t),this.observer.unobserve(t))}}const Kr=new dl,Jr=ie({name:"ResizeObserver",props:{onResize:Function},setup(e){let t=!1;const n=Qn().proxy;function r(o){const{onResize:i}=e;i!==void 0&&i(o)}ze(()=>{const o=n.$el;if(o===void 0){Lr("resize-observer","$el does not exist.");return}if(o.nextElementSibling!==o.nextSibling&&o.nodeType===3&&o.nodeValue!==""){Lr("resize-observer","$el can not be observed (it may be a text node).");return}o.nextElementSibling!==null&&(Kr.registerHandler(o.nextElementSibling,r),t=!0)}),Te(()=>{t&&Kr.unregisterHandler(n.$el.nextElementSibling)})},render(){return fa(this.$slots,"default")}});function si(e){return e instanceof HTMLElement}function li(e){for(let t=0;t<e.childNodes.length;t++){const n=e.childNodes[t];if(si(n)&&(ci(n)||li(n)))return!0}return!1}function ui(e){for(let t=e.childNodes.length-1;t>=0;t--){const n=e.childNodes[t];if(si(n)&&(ci(n)||ui(n)))return!0}return!1}function ci(e){if(!fl(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function fl(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.getAttribute("disabled"))return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return e.type!=="hidden"&&e.type!=="file";case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}let wt=[];const hl=ie({name:"FocusTrap",props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:String,finalFocusTo:String,returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(e){const t=ko(),n=z(null),r=z(null);let o=!1,i=!1;const a=typeof document>"u"?null:document.activeElement;function s(){return wt[wt.length-1]===t}function l(g){var f;g.code==="Escape"&&s()&&((f=e.onEsc)===null||f===void 0||f.call(e,g))}ze(()=>{Se(()=>e.active,g=>{g?(h(),ne("keydown",document,l)):(K("keydown",document,l),o&&v())},{immediate:!0})}),Te(()=>{K("keydown",document,l),o&&v()});function u(g){if(!i&&s()){const f=c();if(f===null||f.contains(en(g)))return;y("first")}}function c(){const g=n.value;if(g===null)return null;let f=g;for(;f=f.nextSibling,!(f===null||f instanceof Element&&f.tagName==="DIV"););return f}function h(){var g;if(!e.disabled){if(wt.push(t),e.autoFocus){const{initialFocusTo:f}=e;f===void 0?y("first"):(g=Hr(f))===null||g===void 0||g.focus({preventScroll:!0})}o=!0,document.addEventListener("focus",u,!0)}}function v(){var g;if(e.disabled||(document.removeEventListener("focus",u,!0),wt=wt.filter($=>$!==t),s()))return;const{finalFocusTo:f}=e;f!==void 0?(g=Hr(f))===null||g===void 0||g.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&a instanceof HTMLElement&&(i=!0,a.focus({preventScroll:!0}),i=!1)}function y(g){if(s()&&e.active){const f=n.value,$=r.value;if(f!==null&&$!==null){const D=c();if(D==null||D===$){i=!0,f.focus({preventScroll:!0}),i=!1;return}i=!0;const L=g==="first"?li(D):ui(D);i=!1,L||(i=!0,f.focus({preventScroll:!0}),i=!1)}}}function d(g){if(i)return;const f=c();f!==null&&(g.relatedTarget!==null&&f.contains(g.relatedTarget)?y("last"):y("first"))}function b(g){i||(g.relatedTarget!==null&&g.relatedTarget===n.value?y("last"):y("first"))}return{focusableStartRef:n,focusableEndRef:r,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:d,handleEndFocus:b}},render(){const{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();const{active:t,focusableStyle:n}=this;return w(Ae,null,[w("div",{"aria-hidden":"true",tabindex:t?"0":"-1",ref:"focusableStartRef",style:n,onFocus:this.handleStartFocus}),e(),w("div",{"aria-hidden":"true",style:n,ref:"focusableEndRef",tabindex:t?"0":"-1",onFocus:this.handleEndFocus})])}});function vl(e){const t={isDeactivated:!1};let n=!1;return ha(()=>{if(t.isDeactivated=!1,!n){n=!0;return}e()}),va(()=>{t.isDeactivated=!0,n||(n=!0)}),t}const pl=(e,t)=>{if(!e)return;const n=document.createElement("a");n.href=e,t!==void 0&&(n.download=t),document.body.appendChild(n),n.click(),document.body.removeChild(n)};var di=typeof global=="object"&&global&&global.Object===Object&&global,gl=typeof self=="object"&&self&&self.Object===Object&&self,Oe=di||gl||Function("return this")(),De=Oe.Symbol,fi=Object.prototype,ml=fi.hasOwnProperty,bl=fi.toString,yt=De?De.toStringTag:void 0;function wl(e){var t=ml.call(e,yt),n=e[yt];try{e[yt]=void 0;var r=!0}catch{}var o=bl.call(e);return r&&(t?e[yt]=n:delete e[yt]),o}var yl=Object.prototype,xl=yl.toString;function Cl(e){return xl.call(e)}var Sl="[object Null]",$l="[object Undefined]",Qr=De?De.toStringTag:void 0;function Ke(e){return e==null?e===void 0?$l:Sl:Qr&&Qr in Object(e)?wl(e):Cl(e)}function Le(e){return e!=null&&typeof e=="object"}var Tl="[object Symbol]";function ir(e){return typeof e=="symbol"||Le(e)&&Ke(e)==Tl}function hi(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var me=Array.isArray,Ol=1/0,eo=De?De.prototype:void 0,to=eo?eo.toString:void 0;function vi(e){if(typeof e=="string")return e;if(me(e))return hi(e,vi)+"";if(ir(e))return to?to.call(e):"";var t=e+"";return t=="0"&&1/e==-Ol?"-0":t}function He(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function ar(e){return e}var Ml="[object AsyncFunction]",Pl="[object Function]",El="[object GeneratorFunction]",Al="[object Proxy]";function sr(e){if(!He(e))return!1;var t=Ke(e);return t==Pl||t==El||t==Ml||t==Al}var Pn=Oe["__core-js_shared__"],no=function(){var e=/[^.]+$/.exec(Pn&&Pn.keys&&Pn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function zl(e){return!!no&&no in e}var _l=Function.prototype,Rl=_l.toString;function Je(e){if(e!=null){try{return Rl.call(e)}catch{}try{return e+""}catch{}}return""}var Bl=/[\\^$.*+?()[\]{}|]/g,Il=/^\[object .+?Constructor\]$/,Dl=Function.prototype,Ll=Object.prototype,Hl=Dl.toString,Fl=Ll.hasOwnProperty,kl=RegExp("^"+Hl.call(Fl).replace(Bl,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Wl(e){if(!He(e)||zl(e))return!1;var t=sr(e)?kl:Il;return t.test(Je(e))}function jl(e,t){return e==null?void 0:e[t]}function Qe(e,t){var n=jl(e,t);return Wl(n)?n:void 0}var Nn=Qe(Oe,"WeakMap"),ro=Object.create,Nl=function(){function e(){}return function(t){if(!He(t))return{};if(ro)return ro(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Ul(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Vl(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var Xl=800,Yl=16,Zl=Date.now;function ql(e){var t=0,n=0;return function(){var r=Zl(),o=Yl-(r-n);if(n=r,o>0){if(++t>=Xl)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Gl(e){return function(){return e}}var tn=function(){try{var e=Qe(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Kl=tn?function(e,t){return tn(e,"toString",{configurable:!0,enumerable:!1,value:Gl(t),writable:!0})}:ar;const Jl=Kl;var Ql=ql(Jl),eu=9007199254740991,tu=/^(?:0|[1-9]\d*)$/;function lr(e,t){var n=typeof e;return t=t??eu,!!t&&(n=="number"||n!="symbol"&&tu.test(e))&&e>-1&&e%1==0&&e<t}function ur(e,t,n){t=="__proto__"&&tn?tn(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Bt(e,t){return e===t||e!==e&&t!==t}var nu=Object.prototype,ru=nu.hasOwnProperty;function ou(e,t,n){var r=e[t];(!(ru.call(e,t)&&Bt(r,n))||n===void 0&&!(t in e))&&ur(e,t,n)}function iu(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],l=r?r(n[s],e[s],s,n,e):void 0;l===void 0&&(l=e[s]),o?ur(n,s,l):ou(n,s,l)}return n}var oo=Math.max;function au(e,t,n){return t=oo(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=oo(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(a),Ul(e,this,s)}}function su(e,t){return Ql(au(e,t,ar),e+"")}var lu=9007199254740991;function cr(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=lu}function vt(e){return e!=null&&cr(e.length)&&!sr(e)}function uu(e,t,n){if(!He(n))return!1;var r=typeof t;return(r=="number"?vt(n)&&lr(t,n.length):r=="string"&&t in n)?Bt(n[t],e):!1}function cu(e){return su(function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,a&&uu(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r<o;){var s=n[r];s&&e(t,s,r,i)}return t})}var du=Object.prototype;function dr(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||du;return e===n}function fu(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var hu="[object Arguments]";function io(e){return Le(e)&&Ke(e)==hu}var pi=Object.prototype,vu=pi.hasOwnProperty,pu=pi.propertyIsEnumerable,nn=io(function(){return arguments}())?io:function(e){return Le(e)&&vu.call(e,"callee")&&!pu.call(e,"callee")};function gu(){return!1}var gi=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ao=gi&&typeof module=="object"&&module&&!module.nodeType&&module,mu=ao&&ao.exports===gi,so=mu?Oe.Buffer:void 0,bu=so?so.isBuffer:void 0,rn=bu||gu,wu="[object Arguments]",yu="[object Array]",xu="[object Boolean]",Cu="[object Date]",Su="[object Error]",$u="[object Function]",Tu="[object Map]",Ou="[object Number]",Mu="[object Object]",Pu="[object RegExp]",Eu="[object Set]",Au="[object String]",zu="[object WeakMap]",_u="[object ArrayBuffer]",Ru="[object DataView]",Bu="[object Float32Array]",Iu="[object Float64Array]",Du="[object Int8Array]",Lu="[object Int16Array]",Hu="[object Int32Array]",Fu="[object Uint8Array]",ku="[object Uint8ClampedArray]",Wu="[object Uint16Array]",ju="[object Uint32Array]",Z={};Z[Bu]=Z[Iu]=Z[Du]=Z[Lu]=Z[Hu]=Z[Fu]=Z[ku]=Z[Wu]=Z[ju]=!0;Z[wu]=Z[yu]=Z[_u]=Z[xu]=Z[Ru]=Z[Cu]=Z[Su]=Z[$u]=Z[Tu]=Z[Ou]=Z[Mu]=Z[Pu]=Z[Eu]=Z[Au]=Z[zu]=!1;function Nu(e){return Le(e)&&cr(e.length)&&!!Z[Ke(e)]}function Uu(e){return function(t){return e(t)}}var mi=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Mt=mi&&typeof module=="object"&&module&&!module.nodeType&&module,Vu=Mt&&Mt.exports===mi,En=Vu&&di.process,lo=function(){try{var e=Mt&&Mt.require&&Mt.require("util").types;return e||En&&En.binding&&En.binding("util")}catch{}}(),uo=lo&&lo.isTypedArray,fr=uo?Uu(uo):Nu,Xu=Object.prototype,Yu=Xu.hasOwnProperty;function bi(e,t){var n=me(e),r=!n&&nn(e),o=!n&&!r&&rn(e),i=!n&&!r&&!o&&fr(e),a=n||r||o||i,s=a?fu(e.length,String):[],l=s.length;for(var u in e)(t||Yu.call(e,u))&&!(a&&(u=="length"||o&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||lr(u,l)))&&s.push(u);return s}function wi(e,t){return function(n){return e(t(n))}}var Zu=wi(Object.keys,Object),qu=Object.prototype,Gu=qu.hasOwnProperty;function Ku(e){if(!dr(e))return Zu(e);var t=[];for(var n in Object(e))Gu.call(e,n)&&n!="constructor"&&t.push(n);return t}function hr(e){return vt(e)?bi(e):Ku(e)}function Ju(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Qu=Object.prototype,ec=Qu.hasOwnProperty;function tc(e){if(!He(e))return Ju(e);var t=dr(e),n=[];for(var r in e)r=="constructor"&&(t||!ec.call(e,r))||n.push(r);return n}function yi(e){return vt(e)?bi(e,!0):tc(e)}var nc=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rc=/^\w*$/;function vr(e,t){if(me(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||ir(e)?!0:rc.test(e)||!nc.test(e)||t!=null&&e in Object(t)}var At=Qe(Object,"create");function oc(){this.__data__=At?At(null):{},this.size=0}function ic(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var ac="__lodash_hash_undefined__",sc=Object.prototype,lc=sc.hasOwnProperty;function uc(e){var t=this.__data__;if(At){var n=t[e];return n===ac?void 0:n}return lc.call(t,e)?t[e]:void 0}var cc=Object.prototype,dc=cc.hasOwnProperty;function fc(e){var t=this.__data__;return At?t[e]!==void 0:dc.call(t,e)}var hc="__lodash_hash_undefined__";function vc(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=At&&t===void 0?hc:t,this}function Ge(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ge.prototype.clear=oc;Ge.prototype.delete=ic;Ge.prototype.get=uc;Ge.prototype.has=fc;Ge.prototype.set=vc;function pc(){this.__data__=[],this.size=0}function ln(e,t){for(var n=e.length;n--;)if(Bt(e[n][0],t))return n;return-1}var gc=Array.prototype,mc=gc.splice;function bc(e){var t=this.__data__,n=ln(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():mc.call(t,n,1),--this.size,!0}function wc(e){var t=this.__data__,n=ln(t,e);return n<0?void 0:t[n][1]}function yc(e){return ln(this.__data__,e)>-1}function xc(e,t){var n=this.__data__,r=ln(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function _e(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}_e.prototype.clear=pc;_e.prototype.delete=bc;_e.prototype.get=wc;_e.prototype.has=yc;_e.prototype.set=xc;var zt=Qe(Oe,"Map");function Cc(){this.size=0,this.__data__={hash:new Ge,map:new(zt||_e),string:new Ge}}function Sc(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function un(e,t){var n=e.__data__;return Sc(t)?n[typeof t=="string"?"string":"hash"]:n.map}function $c(e){var t=un(this,e).delete(e);return this.size-=t?1:0,t}function Tc(e){return un(this,e).get(e)}function Oc(e){return un(this,e).has(e)}function Mc(e,t){var n=un(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Re(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Re.prototype.clear=Cc;Re.prototype.delete=$c;Re.prototype.get=Tc;Re.prototype.has=Oc;Re.prototype.set=Mc;var Pc="Expected a function";function pr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Pc);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(pr.Cache||Re),n}pr.Cache=Re;var Ec=500;function Ac(e){var t=pr(e,function(r){return n.size===Ec&&n.clear(),r}),n=t.cache;return t}var zc=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_c=/\\(\\)?/g,Rc=Ac(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(zc,function(n,r,o,i){t.push(o?i.replace(_c,"$1"):r||n)}),t});function cn(e){return e==null?"":vi(e)}function xi(e,t){return me(e)?e:vr(e,t)?[e]:Rc(cn(e))}var Bc=1/0;function dn(e){if(typeof e=="string"||ir(e))return e;var t=e+"";return t=="0"&&1/e==-Bc?"-0":t}function Ci(e,t){t=xi(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[dn(t[n++])];return n&&n==r?e:void 0}function Ic(e,t,n){var r=e==null?void 0:Ci(e,t);return r===void 0?n:r}function Dc(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var Si=wi(Object.getPrototypeOf,Object),Lc="[object Object]",Hc=Function.prototype,Fc=Object.prototype,$i=Hc.toString,kc=Fc.hasOwnProperty,Wc=$i.call(Object);function jc(e){if(!Le(e)||Ke(e)!=Lc)return!1;var t=Si(e);if(t===null)return!0;var n=kc.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&$i.call(n)==Wc}function Nc(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}function Uc(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:Nc(e,t,n)}var Vc="\\ud800-\\udfff",Xc="\\u0300-\\u036f",Yc="\\ufe20-\\ufe2f",Zc="\\u20d0-\\u20ff",qc=Xc+Yc+Zc,Gc="\\ufe0e\\ufe0f",Kc="\\u200d",Jc=RegExp("["+Kc+Vc+qc+Gc+"]");function Ti(e){return Jc.test(e)}function Qc(e){return e.split("")}var Oi="\\ud800-\\udfff",ed="\\u0300-\\u036f",td="\\ufe20-\\ufe2f",nd="\\u20d0-\\u20ff",rd=ed+td+nd,od="\\ufe0e\\ufe0f",id="["+Oi+"]",Un="["+rd+"]",Vn="\\ud83c[\\udffb-\\udfff]",ad="(?:"+Un+"|"+Vn+")",Mi="[^"+Oi+"]",Pi="(?:\\ud83c[\\udde6-\\uddff]){2}",Ei="[\\ud800-\\udbff][\\udc00-\\udfff]",sd="\\u200d",Ai=ad+"?",zi="["+od+"]?",ld="(?:"+sd+"(?:"+[Mi,Pi,Ei].join("|")+")"+zi+Ai+")*",ud=zi+Ai+ld,cd="(?:"+[Mi+Un+"?",Un,Pi,Ei,id].join("|")+")",dd=RegExp(Vn+"(?="+Vn+")|"+cd+ud,"g");function fd(e){return e.match(dd)||[]}function hd(e){return Ti(e)?fd(e):Qc(e)}function vd(e){return function(t){t=cn(t);var n=Ti(t)?hd(t):void 0,r=n?n[0]:t.charAt(0),o=n?Uc(n,1).join(""):t.slice(1);return r[e]()+o}}var pd=vd("toUpperCase");function gd(e,t,n,r){var o=-1,i=e==null?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function md(e){return function(t){return e==null?void 0:e[t]}}var bd={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},wd=md(bd);const yd=wd;var xd=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Cd="\\u0300-\\u036f",Sd="\\ufe20-\\ufe2f",$d="\\u20d0-\\u20ff",Td=Cd+Sd+$d,Od="["+Td+"]",Md=RegExp(Od,"g");function Pd(e){return e=cn(e),e&&e.replace(xd,yd).replace(Md,"")}var Ed=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Ad(e){return e.match(Ed)||[]}var zd=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function _d(e){return zd.test(e)}var _i="\\ud800-\\udfff",Rd="\\u0300-\\u036f",Bd="\\ufe20-\\ufe2f",Id="\\u20d0-\\u20ff",Dd=Rd+Bd+Id,Ri="\\u2700-\\u27bf",Bi="a-z\\xdf-\\xf6\\xf8-\\xff",Ld="\\xac\\xb1\\xd7\\xf7",Hd="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Fd="\\u2000-\\u206f",kd=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ii="A-Z\\xc0-\\xd6\\xd8-\\xde",Wd="\\ufe0e\\ufe0f",Di=Ld+Hd+Fd+kd,Li="['’]",co="["+Di+"]",jd="["+Dd+"]",Hi="\\d+",Nd="["+Ri+"]",Fi="["+Bi+"]",ki="[^"+_i+Di+Hi+Ri+Bi+Ii+"]",Ud="\\ud83c[\\udffb-\\udfff]",Vd="(?:"+jd+"|"+Ud+")",Xd="[^"+_i+"]",Wi="(?:\\ud83c[\\udde6-\\uddff]){2}",ji="[\\ud800-\\udbff][\\udc00-\\udfff]",it="["+Ii+"]",Yd="\\u200d",fo="(?:"+Fi+"|"+ki+")",Zd="(?:"+it+"|"+ki+")",ho="(?:"+Li+"(?:d|ll|m|re|s|t|ve))?",vo="(?:"+Li+"(?:D|LL|M|RE|S|T|VE))?",Ni=Vd+"?",Ui="["+Wd+"]?",qd="(?:"+Yd+"(?:"+[Xd,Wi,ji].join("|")+")"+Ui+Ni+")*",Gd="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Kd="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Jd=Ui+Ni+qd,Qd="(?:"+[Nd,Wi,ji].join("|")+")"+Jd,ef=RegExp([it+"?"+Fi+"+"+ho+"(?="+[co,it,"$"].join("|")+")",Zd+"+"+vo+"(?="+[co,it+fo,"$"].join("|")+")",it+"?"+fo+"+"+ho,it+"+"+vo,Kd,Gd,Hi,Qd].join("|"),"g");function tf(e){return e.match(ef)||[]}function nf(e,t,n){return e=cn(e),t=n?void 0:t,t===void 0?_d(e)?tf(e):Ad(e):e.match(t)||[]}var rf="['’]",of=RegExp(rf,"g");function af(e){return function(t){return gd(nf(Pd(t).replace(of,"")),e,"")}}function sf(){this.__data__=new _e,this.size=0}function lf(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function uf(e){return this.__data__.get(e)}function cf(e){return this.__data__.has(e)}var df=200;function ff(e,t){var n=this.__data__;if(n instanceof _e){var r=n.__data__;if(!zt||r.length<df-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Re(r)}return n.set(e,t),this.size=n.size,this}function $e(e){var t=this.__data__=new _e(e);this.size=t.size}$e.prototype.clear=sf;$e.prototype.delete=lf;$e.prototype.get=uf;$e.prototype.has=cf;$e.prototype.set=ff;var Vi=typeof exports=="object"&&exports&&!exports.nodeType&&exports,po=Vi&&typeof module=="object"&&module&&!module.nodeType&&module,hf=po&&po.exports===Vi,go=hf?Oe.Buffer:void 0,mo=go?go.allocUnsafe:void 0;function vf(e,t){if(t)return e.slice();var n=e.length,r=mo?mo(n):new e.constructor(n);return e.copy(r),r}function pf(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function gf(){return[]}var mf=Object.prototype,bf=mf.propertyIsEnumerable,bo=Object.getOwnPropertySymbols,wf=bo?function(e){return e==null?[]:(e=Object(e),pf(bo(e),function(t){return bf.call(e,t)}))}:gf;const yf=wf;function xf(e,t,n){var r=t(e);return me(e)?r:Dc(r,n(e))}function wo(e){return xf(e,hr,yf)}var Xn=Qe(Oe,"DataView"),Yn=Qe(Oe,"Promise"),Zn=Qe(Oe,"Set"),yo="[object Map]",Cf="[object Object]",xo="[object Promise]",Co="[object Set]",So="[object WeakMap]",$o="[object DataView]",Sf=Je(Xn),$f=Je(zt),Tf=Je(Yn),Of=Je(Zn),Mf=Je(Nn),ke=Ke;(Xn&&ke(new Xn(new ArrayBuffer(1)))!=$o||zt&&ke(new zt)!=yo||Yn&&ke(Yn.resolve())!=xo||Zn&&ke(new Zn)!=Co||Nn&&ke(new Nn)!=So)&&(ke=function(e){var t=Ke(e),n=t==Cf?e.constructor:void 0,r=n?Je(n):"";if(r)switch(r){case Sf:return $o;case $f:return yo;case Tf:return xo;case Of:return Co;case Mf:return So}return t});const To=ke;var Pf=Oe.Uint8Array;const on=Pf;function Ef(e){var t=new e.constructor(e.byteLength);return new on(t).set(new on(e)),t}function Af(e,t){var n=t?Ef(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function zf(e){return typeof e.constructor=="function"&&!dr(e)?Nl(Si(e)):{}}var _f="__lodash_hash_undefined__";function Rf(e){return this.__data__.set(e,_f),this}function Bf(e){return this.__data__.has(e)}function an(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Re;++t<n;)this.add(e[t])}an.prototype.add=an.prototype.push=Rf;an.prototype.has=Bf;function If(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function Df(e,t){return e.has(t)}var Lf=1,Hf=2;function Xi(e,t,n,r,o,i){var a=n&Lf,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var h=-1,v=!0,y=n&Hf?new an:void 0;for(i.set(e,t),i.set(t,e);++h<s;){var d=e[h],b=t[h];if(r)var g=a?r(b,d,h,t,e,i):r(d,b,h,e,t,i);if(g!==void 0){if(g)continue;v=!1;break}if(y){if(!If(t,function(f,$){if(!Df(y,$)&&(d===f||o(d,f,n,r,i)))return y.push($)})){v=!1;break}}else if(!(d===b||o(d,b,n,r,i))){v=!1;break}}return i.delete(e),i.delete(t),v}function Ff(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}function kf(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Wf=1,jf=2,Nf="[object Boolean]",Uf="[object Date]",Vf="[object Error]",Xf="[object Map]",Yf="[object Number]",Zf="[object RegExp]",qf="[object Set]",Gf="[object String]",Kf="[object Symbol]",Jf="[object ArrayBuffer]",Qf="[object DataView]",Oo=De?De.prototype:void 0,An=Oo?Oo.valueOf:void 0;function eh(e,t,n,r,o,i,a){switch(n){case Qf:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Jf:return!(e.byteLength!=t.byteLength||!i(new on(e),new on(t)));case Nf:case Uf:case Yf:return Bt(+e,+t);case Vf:return e.name==t.name&&e.message==t.message;case Zf:case Gf:return e==t+"";case Xf:var s=Ff;case qf:var l=r&Wf;if(s||(s=kf),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;r|=jf,a.set(e,t);var c=Xi(s(e),s(t),r,o,i,a);return a.delete(e),c;case Kf:if(An)return An.call(e)==An.call(t)}return!1}var th=1,nh=Object.prototype,rh=nh.hasOwnProperty;function oh(e,t,n,r,o,i){var a=n&th,s=wo(e),l=s.length,u=wo(t),c=u.length;if(l!=c&&!a)return!1;for(var h=l;h--;){var v=s[h];if(!(a?v in t:rh.call(t,v)))return!1}var y=i.get(e),d=i.get(t);if(y&&d)return y==t&&d==e;var b=!0;i.set(e,t),i.set(t,e);for(var g=a;++h<l;){v=s[h];var f=e[v],$=t[v];if(r)var D=a?r($,f,v,t,e,i):r(f,$,v,e,t,i);if(!(D===void 0?f===$||o(f,$,n,r,i):D)){b=!1;break}g||(g=v=="constructor")}if(b&&!g){var L=e.constructor,N=t.constructor;L!=N&&"constructor"in e&&"constructor"in t&&!(typeof L=="function"&&L instanceof L&&typeof N=="function"&&N instanceof N)&&(b=!1)}return i.delete(e),i.delete(t),b}var ih=1,Mo="[object Arguments]",Po="[object Array]",Yt="[object Object]",ah=Object.prototype,Eo=ah.hasOwnProperty;function sh(e,t,n,r,o,i){var a=me(e),s=me(t),l=a?Po:To(e),u=s?Po:To(t);l=l==Mo?Yt:l,u=u==Mo?Yt:u;var c=l==Yt,h=u==Yt,v=l==u;if(v&&rn(e)){if(!rn(t))return!1;a=!0,c=!1}if(v&&!c)return i||(i=new $e),a||fr(e)?Xi(e,t,n,r,o,i):eh(e,t,l,n,r,o,i);if(!(n&ih)){var y=c&&Eo.call(e,"__wrapped__"),d=h&&Eo.call(t,"__wrapped__");if(y||d){var b=y?e.value():e,g=d?t.value():t;return i||(i=new $e),o(b,g,n,r,i)}}return v?(i||(i=new $e),oh(e,t,n,r,o,i)):!1}function gr(e,t,n,r,o){return e===t?!0:e==null||t==null||!Le(e)&&!Le(t)?e!==e&&t!==t:sh(e,t,n,r,gr,o)}var lh=1,uh=2;function ch(e,t,n,r){var o=n.length,i=o,a=!r;if(e==null)return!i;for(e=Object(e);o--;){var s=n[o];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<i;){s=n[o];var l=s[0],u=e[l],c=s[1];if(a&&s[2]){if(u===void 0&&!(l in e))return!1}else{var h=new $e;if(r)var v=r(u,c,l,e,t,h);if(!(v===void 0?gr(c,u,lh|uh,r,h):v))return!1}}return!0}function Yi(e){return e===e&&!He(e)}function dh(e){for(var t=hr(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Yi(o)]}return t}function Zi(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function fh(e){var t=dh(e);return t.length==1&&t[0][2]?Zi(t[0][0],t[0][1]):function(n){return n===e||ch(n,e,t)}}function hh(e,t){return e!=null&&t in Object(e)}function vh(e,t,n){t=xi(t,e);for(var r=-1,o=t.length,i=!1;++r<o;){var a=dn(t[r]);if(!(i=e!=null&&n(e,a)))break;e=e[a]}return i||++r!=o?i:(o=e==null?0:e.length,!!o&&cr(o)&&lr(a,o)&&(me(e)||nn(e)))}function ph(e,t){return e!=null&&vh(e,t,hh)}var gh=1,mh=2;function bh(e,t){return vr(e)&&Yi(t)?Zi(dn(e),t):function(n){var r=Ic(n,e);return r===void 0&&r===t?ph(n,e):gr(t,r,gh|mh)}}function wh(e){return function(t){return t==null?void 0:t[e]}}function yh(e){return function(t){return Ci(t,e)}}function xh(e){return vr(e)?wh(dn(e)):yh(e)}function Ch(e){return typeof e=="function"?e:e==null?ar:typeof e=="object"?me(e)?bh(e[0],e[1]):fh(e):xh(e)}function Sh(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(n(i[l],l,i)===!1)break}return t}}var qi=Sh();function $h(e,t){return e&&qi(e,t,hr)}function Th(e,t){return function(n,r){if(n==null)return n;if(!vt(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Object(n);(t?i--:++i<o)&&r(a[i],i,a)!==!1;);return n}}var Oh=Th($h);function qn(e,t,n){(n!==void 0&&!Bt(e[t],n)||n===void 0&&!(t in e))&&ur(e,t,n)}function Mh(e){return Le(e)&&vt(e)}function Gn(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function Ph(e){return iu(e,yi(e))}function Eh(e,t,n,r,o,i,a){var s=Gn(e,n),l=Gn(t,n),u=a.get(l);if(u){qn(e,n,u);return}var c=i?i(s,l,n+"",e,t,a):void 0,h=c===void 0;if(h){var v=me(l),y=!v&&rn(l),d=!v&&!y&&fr(l);c=l,v||y||d?me(s)?c=s:Mh(s)?c=Vl(s):y?(h=!1,c=vf(l,!0)):d?(h=!1,c=Af(l,!0)):c=[]:jc(l)||nn(l)?(c=s,nn(s)?c=Ph(s):(!He(s)||sr(s))&&(c=zf(l))):h=!1}h&&(a.set(l,c),o(c,l,r,i,a),a.delete(l)),qn(e,n,c)}function Gi(e,t,n,r,o){e!==t&&qi(t,function(i,a){if(o||(o=new $e),He(i))Eh(e,t,a,n,Gi,r,o);else{var s=r?r(Gn(e,a),i,a+"",e,t,o):void 0;s===void 0&&(s=i),qn(e,a,s)}},yi)}function Ah(e,t){var n=-1,r=vt(e)?Array(e.length):[];return Oh(e,function(o,i,a){r[++n]=t(o,i,a)}),r}function zh(e,t){var n=me(e)?hi:Ah;return n(e,Ch(t))}var _h=af(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Zt=cu(function(e,t,n){Gi(e,t,n)});const fn={fontFamily:'v-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontFamilyMono:"v-mono, SFMono-Regular, Menlo, Consolas, Courier, monospace",fontWeight:"400",fontWeightStrong:"500",cubicBezierEaseInOut:"cubic-bezier(.4, 0, .2, 1)",cubicBezierEaseOut:"cubic-bezier(0, 0, .2, 1)",cubicBezierEaseIn:"cubic-bezier(.4, 0, 1, 1)",borderRadius:"3px",borderRadiusSmall:"2px",fontSize:"14px",fontSizeMini:"12px",fontSizeTiny:"12px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",lineHeight:"1.6",heightMini:"16px",heightTiny:"22px",heightSmall:"28px",heightMedium:"34px",heightLarge:"40px",heightHuge:"46px"},{fontSize:Rh,fontFamily:Bh,lineHeight:Ih}=fn,Ki=H("body",`
|
|
15
|
-
margin: 0;
|
|
16
|
-
font-size: ${Rh};
|
|
17
|
-
font-family: ${Bh};
|
|
18
|
-
line-height: ${Ih};
|
|
19
|
-
-webkit-text-size-adjust: 100%;
|
|
20
|
-
-webkit-tap-highlight-color: transparent;
|
|
21
|
-
`,[H("input",`
|
|
22
|
-
font-family: inherit;
|
|
23
|
-
font-size: inherit;
|
|
24
|
-
`)]),pt="n-config-provider",_t="naive-ui-style";function Me(e,t,n,r,o,i){const a=Rt(),s=oe(pt,null);if(n){const u=()=>{const c=i==null?void 0:i.value;n.mount({id:c===void 0?t:c+t,head:!0,props:{bPrefix:c?`.${c}-`:void 0},anchorMetaName:_t,ssr:a}),s!=null&&s.preflightStyleDisabled||Ki.mount({id:"n-global",head:!0,anchorMetaName:_t,ssr:a})};a?u():er(u)}return k(()=>{var u;const{theme:{common:c,self:h,peers:v={}}={},themeOverrides:y={},builtinThemeOverrides:d={}}=o,{common:b,peers:g}=y,{common:f=void 0,[e]:{common:$=void 0,self:D=void 0,peers:L={}}={}}=(s==null?void 0:s.mergedThemeRef.value)||{},{common:N=void 0,[e]:j={}}=(s==null?void 0:s.mergedThemeOverridesRef.value)||{},{common:p,peers:m={}}=j,O=Zt({},c||$||f||r.common,N,p,b),T=Zt((u=h||D||r.self)===null||u===void 0?void 0:u(O),d,j,y);return{common:O,self:T,peers:Zt({},r.peers,L,v),peerOverrides:Zt({},d.peers,m,g)}})}Me.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const Dh="n";function gt(e={},t={defaultBordered:!0}){const n=oe(pt,null);return{inlineThemeDisabled:n==null?void 0:n.inlineThemeDisabled,mergedRtlRef:n==null?void 0:n.mergedRtlRef,mergedComponentPropsRef:n==null?void 0:n.mergedComponentPropsRef,mergedBreakpointsRef:n==null?void 0:n.mergedBreakpointsRef,mergedBorderedRef:k(()=>{var r,o;const{bordered:i}=e;return i!==void 0?i:(o=(r=n==null?void 0:n.mergedBorderedRef.value)!==null&&r!==void 0?r:t.defaultBordered)!==null&&o!==void 0?o:!0}),mergedClsPrefixRef:n?n.mergedClsPrefixRef:pa(Dh),namespaceRef:k(()=>n==null?void 0:n.mergedNamespaceRef.value)}}const Lh={name:"en-US",global:{undo:"Undo",redo:"Redo",confirm:"Confirm",clear:"Clear"},Popconfirm:{positiveText:"Confirm",negativeText:"Cancel"},Cascader:{placeholder:"Please Select",loading:"Loading",loadingRequiredMessage:e=>`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",weekFormat:"yyyy-w",clear:"Clear",now:"Now",confirm:"Confirm",selectTime:"Select Time",selectDate:"Select Date",datePlaceholder:"Select Date",datetimePlaceholder:"Select Date and Time",monthPlaceholder:"Select Month",yearPlaceholder:"Select Year",quarterPlaceholder:"Select Quarter",weekPlaceholder:"Select Week",startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",startDatetimePlaceholder:"Start Date and Time",endDatetimePlaceholder:"End Date and Time",startMonthPlaceholder:"Start Month",endMonthPlaceholder:"End Month",monthBeforeYear:!0,firstDayOfWeek:6,today:"Today"},DataTable:{checkTableAll:"Select all in the table",uncheckTableAll:"Unselect all in the table",confirm:"Confirm",clear:"Clear"},LegacyTransfer:{sourceTitle:"Source",targetTitle:"Target"},Transfer:{selectAll:"Select all",unselectAll:"Unselect all",clearAll:"Clear",total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now",clear:"Clear"},Pagination:{goto:"Goto",selectionSuffix:"page"},DynamicTags:{add:"Add"},Log:{loading:"Loading"},Input:{placeholder:"Please Input"},InputNumber:{placeholder:"Please Input"},DynamicInput:{create:"Create"},ThemeEditor:{title:"Theme Editor",clearAllVars:"Clear All Variables",clearSearch:"Clear Search",filterCompName:"Filter Component Name",filterVarName:"Filter Variable Name",import:"Import",export:"Export",restore:"Reset to Default"},Image:{tipPrevious:"Previous picture (←)",tipNext:"Next picture (→)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Clockwise",tipZoomOut:"Zoom out",tipZoomIn:"Zoom in",tipDownload:"Download",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"}},Hh=Lh;function zn(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}function xt(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",o;if(r==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,a=n!=null&&n.width?String(n.width):i;o=e.formattingValues[a]||e.formattingValues[i]}else{var s=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[l]||e.values[s]}var u=e.argumentCallback?e.argumentCallback(t):t;return o[u]}}function Ct(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a=i[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?kh(s,function(h){return h.test(a)}):Fh(s,function(h){return h.test(a)}),u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;var c=t.slice(a.length);return{value:u,rest:c}}}function Fh(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function kh(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function Wh(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var o=r[0],i=t.match(e.parsePattern);if(!i)return null;var a=e.valueCallback?e.valueCallback(i[0]):i[0];a=n.valueCallback?n.valueCallback(a):a;var s=t.slice(o.length);return{value:a,rest:s}}}var jh={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Nh=function(t,n,r){var o,i=jh[t];return typeof i=="string"?o=i:n===1?o=i.one:o=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+o:o+" ago":o};const Uh=Nh;var Vh={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Xh={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Yh={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Zh={date:zn({formats:Vh,defaultWidth:"full"}),time:zn({formats:Xh,defaultWidth:"full"}),dateTime:zn({formats:Yh,defaultWidth:"full"})};const qh=Zh;var Gh={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Kh=function(t,n,r,o){return Gh[t]};const Jh=Kh;var Qh={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},ev={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},tv={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},nv={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},rv={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},ov={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},iv=function(t,n){var r=Number(t),o=r%100;if(o>20||o<10)switch(o%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},av={ordinalNumber:iv,era:xt({values:Qh,defaultWidth:"wide"}),quarter:xt({values:ev,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:xt({values:tv,defaultWidth:"wide"}),day:xt({values:nv,defaultWidth:"wide"}),dayPeriod:xt({values:rv,defaultWidth:"wide",formattingValues:ov,defaultFormattingWidth:"wide"})};const sv=av;var lv=/^(\d+)(th|st|nd|rd)?/i,uv=/\d+/i,cv={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},dv={any:[/^b/i,/^(a|c)/i]},fv={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},hv={any:[/1/i,/2/i,/3/i,/4/i]},vv={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},pv={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},gv={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},mv={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},bv={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},wv={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},yv={ordinalNumber:Wh({matchPattern:lv,parsePattern:uv,valueCallback:function(t){return parseInt(t,10)}}),era:Ct({matchPatterns:cv,defaultMatchWidth:"wide",parsePatterns:dv,defaultParseWidth:"any"}),quarter:Ct({matchPatterns:fv,defaultMatchWidth:"wide",parsePatterns:hv,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Ct({matchPatterns:vv,defaultMatchWidth:"wide",parsePatterns:pv,defaultParseWidth:"any"}),day:Ct({matchPatterns:gv,defaultMatchWidth:"wide",parsePatterns:mv,defaultParseWidth:"any"}),dayPeriod:Ct({matchPatterns:bv,defaultMatchWidth:"any",parsePatterns:wv,defaultParseWidth:"any"})};const xv=yv;var Cv={code:"en-US",formatDistance:Uh,formatLong:qh,formatRelative:Jh,localize:sv,match:xv,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Sv=Cv,$v={name:"en-US",locale:Sv},Tv=$v;function Ov(e){const{mergedLocaleRef:t,mergedDateLocaleRef:n}=oe(pt,null)||{},r=k(()=>{var i,a;return(a=(i=t==null?void 0:t.value)===null||i===void 0?void 0:i[e])!==null&&a!==void 0?a:Hh[e]});return{dateLocaleRef:k(()=>{var i;return(i=n==null?void 0:n.value)!==null&&i!==void 0?i:Tv}),localeRef:r}}function Mv(e,t,n){if(!t)return;const r=Rt(),o=oe(pt,null),i=()=>{const a=n.value;t.mount({id:a===void 0?e:a+e,head:!0,anchorMetaName:_t,props:{bPrefix:a?`.${a}-`:void 0},ssr:r}),o!=null&&o.preflightStyleDisabled||Ki.mount({id:"n-global",head:!0,anchorMetaName:_t,ssr:r})};r?i():er(i)}function mr(e,t,n,r){var o;n||Ca("useThemeClass","cssVarsRef is not passed");const i=(o=oe(pt,null))===null||o===void 0?void 0:o.mergedThemeHashRef,a=z(""),s=Rt();let l;const u=`__${e}`,c=()=>{let h=u;const v=t?t.value:void 0,y=i==null?void 0:i.value;y&&(h+="-"+y),v&&(h+="-"+v);const{themeOverrides:d,builtinThemeOverrides:b}=r;d&&(h+="-"+Fn(JSON.stringify(d))),b&&(h+="-"+Fn(JSON.stringify(b))),a.value=h,l=()=>{const g=n.value;let f="";for(const $ in g)f+=`${$}: ${g[$]};`;H(`.${h}`,f).mount({id:h,ssr:s}),l=void 0}};return qe(()=>{c()}),{themeClass:a,onRender:()=>{l==null||l()}}}function Pv(e,t,n){if(!t)return;const r=Rt(),o=k(()=>{const{value:a}=t;if(!a)return;const s=a[e];if(s)return s}),i=()=>{qe(()=>{const{value:a}=n,s=`${a}${e}Rtl`;if(Ja(s,r))return;const{value:l}=o;l&&l.style.mount({id:s,head:!0,anchorMetaName:_t,props:{bPrefix:a?`.${a}-`:void 0},ssr:r})})};return r?i():er(i),o}const br=Object.assign(Object.assign({},Me.props),{onPreviewPrev:Function,onPreviewNext:Function,showToolbar:{type:Boolean,default:!0},showToolbarTooltip:Boolean,renderToolbar:Function}),Ji="n-image",Ev=(e={})=>{var t;const{root:n=null}=e;return{hash:`${e.rootMargin||"0px 0px 0px 0px"}-${Array.isArray(e.threshold)?e.threshold.join(","):(t=e.threshold)!==null&&t!==void 0?t:"0"}`,options:Object.assign(Object.assign({},e),{root:(typeof n=="string"?document.querySelector(n):n)||document.documentElement})}},_n=new WeakMap,Rn=new WeakMap,Bn=new WeakMap,Av=(e,t,n)=>{if(!e)return()=>{};const r=Ev(t),{root:o}=r.options;let i;const a=_n.get(o);a?i=a:(i=new Map,_n.set(o,i));let s,l;i.has(r.hash)?(l=i.get(r.hash),l[1].has(e)||(s=l[0],l[1].add(e),s.observe(e))):(s=new IntersectionObserver(h=>{h.forEach(v=>{if(v.isIntersecting){const y=Rn.get(v.target),d=Bn.get(v.target);y&&y(),d&&(d.value=!0)}})},r.options),s.observe(e),l=[s,new Set([e])],i.set(r.hash,l));let u=!1;const c=()=>{u||(Rn.delete(e),Bn.delete(e),u=!0,l[1].has(e)&&(l[0].unobserve(e),l[1].delete(e)),l[1].size<=0&&i.delete(r.hash),i.size||_n.delete(o))};return Rn.set(e,c),Bn.set(e,n),c};function It(e,t){return ie({name:pd(e),setup(){var n;const r=(n=oe(pt,null))===null||n===void 0?void 0:n.mergedIconsRef;return()=>{var o;const i=(o=r==null?void 0:r.value)===null||o===void 0?void 0:o[e];return i?i():t}}})}const zv=It("download",w("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},w("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},w("g",{fill:"currentColor","fill-rule":"nonzero"},w("path",{d:"M3.5,13 L12.5,13 C12.7761424,13 13,13.2238576 13,13.5 C13,13.7454599 12.8231248,13.9496084 12.5898756,13.9919443 L12.5,14 L3.5,14 C3.22385763,14 3,13.7761424 3,13.5 C3,13.2545401 3.17687516,13.0503916 3.41012437,13.0080557 L3.5,13 L12.5,13 L3.5,13 Z M7.91012437,1.00805567 L8,1 C8.24545989,1 8.44960837,1.17687516 8.49194433,1.41012437 L8.5,1.5 L8.5,10.292 L11.1819805,7.6109127 C11.3555469,7.43734635 11.6249713,7.4180612 11.8198394,7.55305725 L11.8890873,7.6109127 C12.0626536,7.78447906 12.0819388,8.05390346 11.9469427,8.2487716 L11.8890873,8.31801948 L8.35355339,11.8535534 C8.17998704,12.0271197 7.91056264,12.0464049 7.7156945,11.9114088 L7.64644661,11.8535534 L4.1109127,8.31801948 C3.91565056,8.12275734 3.91565056,7.80617485 4.1109127,7.6109127 C4.28447906,7.43734635 4.55390346,7.4180612 4.7487716,7.55305725 L4.81801948,7.6109127 L7.5,10.292 L7.5,1.5 C7.5,1.25454011 7.67687516,1.05039163 7.91012437,1.00805567 L8,1 L7.91012437,1.00805567 Z"}))))),_v=It("rotateClockwise",w("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w("path",{d:"M3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 12.7916 15.3658 15.2026 13 16.3265V14.5C13 14.2239 12.7761 14 12.5 14C12.2239 14 12 14.2239 12 14.5V17.5C12 17.7761 12.2239 18 12.5 18H15.5C15.7761 18 16 17.7761 16 17.5C16 17.2239 15.7761 17 15.5 17H13.8758C16.3346 15.6357 18 13.0128 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 10.2761 2.22386 10.5 2.5 10.5C2.77614 10.5 3 10.2761 3 10Z",fill:"currentColor"}),w("path",{d:"M10 12C11.1046 12 12 11.1046 12 10C12 8.89543 11.1046 8 10 8C8.89543 8 8 8.89543 8 10C8 11.1046 8.89543 12 10 12ZM10 11C9.44772 11 9 10.5523 9 10C9 9.44772 9.44772 9 10 9C10.5523 9 11 9.44772 11 10C11 10.5523 10.5523 11 10 11Z",fill:"currentColor"}))),Rv=It("rotateClockwise",w("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w("path",{d:"M17 10C17 6.13401 13.866 3 10 3C6.13401 3 3 6.13401 3 10C3 12.7916 4.63419 15.2026 7 16.3265V14.5C7 14.2239 7.22386 14 7.5 14C7.77614 14 8 14.2239 8 14.5V17.5C8 17.7761 7.77614 18 7.5 18H4.5C4.22386 18 4 17.7761 4 17.5C4 17.2239 4.22386 17 4.5 17H6.12422C3.66539 15.6357 2 13.0128 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10C18 10.2761 17.7761 10.5 17.5 10.5C17.2239 10.5 17 10.2761 17 10Z",fill:"currentColor"}),w("path",{d:"M10 12C8.89543 12 8 11.1046 8 10C8 8.89543 8.89543 8 10 8C11.1046 8 12 8.89543 12 10C12 11.1046 11.1046 12 10 12ZM10 11C10.5523 11 11 10.5523 11 10C11 9.44772 10.5523 9 10 9C9.44772 9 9 9.44772 9 10C9 10.5523 9.44772 11 10 11Z",fill:"currentColor"}))),Bv=It("zoomIn",w("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w("path",{d:"M11.5 8.5C11.5 8.22386 11.2761 8 11 8H9V6C9 5.72386 8.77614 5.5 8.5 5.5C8.22386 5.5 8 5.72386 8 6V8H6C5.72386 8 5.5 8.22386 5.5 8.5C5.5 8.77614 5.72386 9 6 9H8V11C8 11.2761 8.22386 11.5 8.5 11.5C8.77614 11.5 9 11.2761 9 11V9H11C11.2761 9 11.5 8.77614 11.5 8.5Z",fill:"currentColor"}),w("path",{d:"M8.5 3C11.5376 3 14 5.46243 14 8.5C14 9.83879 13.5217 11.0659 12.7266 12.0196L16.8536 16.1464C17.0488 16.3417 17.0488 16.6583 16.8536 16.8536C16.68 17.0271 16.4106 17.0464 16.2157 16.9114L16.1464 16.8536L12.0196 12.7266C11.0659 13.5217 9.83879 14 8.5 14C5.46243 14 3 11.5376 3 8.5C3 5.46243 5.46243 3 8.5 3ZM8.5 4C6.01472 4 4 6.01472 4 8.5C4 10.9853 6.01472 13 8.5 13C10.9853 13 13 10.9853 13 8.5C13 6.01472 10.9853 4 8.5 4Z",fill:"currentColor"}))),Iv=It("zoomOut",w("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w("path",{d:"M11 8C11.2761 8 11.5 8.22386 11.5 8.5C11.5 8.77614 11.2761 9 11 9H6C5.72386 9 5.5 8.77614 5.5 8.5C5.5 8.22386 5.72386 8 6 8H11Z",fill:"currentColor"}),w("path",{d:"M14 8.5C14 5.46243 11.5376 3 8.5 3C5.46243 3 3 5.46243 3 8.5C3 11.5376 5.46243 14 8.5 14C9.83879 14 11.0659 13.5217 12.0196 12.7266L16.1464 16.8536L16.2157 16.9114C16.4106 17.0464 16.68 17.0271 16.8536 16.8536C17.0488 16.6583 17.0488 16.3417 16.8536 16.1464L12.7266 12.0196C13.5217 11.0659 14 9.83879 14 8.5ZM4 8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5C13 10.9853 10.9853 13 8.5 13C6.01472 13 4 10.9853 4 8.5Z",fill:"currentColor"}))),Dv=ie({name:"ResizeSmall",render(){return w("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},w("g",{fill:"none"},w("path",{d:"M5.5 4A1.5 1.5 0 0 0 4 5.5v1a.5.5 0 0 1-1 0v-1A2.5 2.5 0 0 1 5.5 3h1a.5.5 0 0 1 0 1h-1zM16 5.5A1.5 1.5 0 0 0 14.5 4h-1a.5.5 0 0 1 0-1h1A2.5 2.5 0 0 1 17 5.5v1a.5.5 0 0 1-1 0v-1zm0 9a1.5 1.5 0 0 1-1.5 1.5h-1a.5.5 0 0 0 0 1h1a2.5 2.5 0 0 0 2.5-2.5v-1a.5.5 0 0 0-1 0v1zm-12 0A1.5 1.5 0 0 0 5.5 16h1.25a.5.5 0 0 1 0 1H5.5A2.5 2.5 0 0 1 3 14.5v-1.25a.5.5 0 0 1 1 0v1.25zM8.5 7A1.5 1.5 0 0 0 7 8.5v3A1.5 1.5 0 0 0 8.5 13h3a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 11.5 7h-3zM8 8.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-3z",fill:"currentColor"})))}}),Lv=G("base-icon",`
|
|
25
|
-
height: 1em;
|
|
26
|
-
width: 1em;
|
|
27
|
-
line-height: 1em;
|
|
28
|
-
text-align: center;
|
|
29
|
-
display: inline-block;
|
|
30
|
-
position: relative;
|
|
31
|
-
fill: currentColor;
|
|
32
|
-
transform: translateZ(0);
|
|
33
|
-
`,[H("svg",`
|
|
34
|
-
height: 1em;
|
|
35
|
-
width: 1em;
|
|
36
|
-
`)]),Pe=ie({name:"BaseIcon",props:{role:String,ariaLabel:String,ariaDisabled:{type:Boolean,default:void 0},ariaHidden:{type:Boolean,default:void 0},clsPrefix:{type:String,required:!0},onClick:Function,onMousedown:Function,onMouseup:Function},setup(e){Mv("-base-icon",Lv,ge(e,"clsPrefix"))},render(){return w("i",{class:`${this.clsPrefix}-base-icon`,onClick:this.onClick,onMousedown:this.onMousedown,onMouseup:this.onMouseup,role:this.role,"aria-label":this.ariaLabel,"aria-hidden":this.ariaHidden,"aria-disabled":this.ariaDisabled},this.$slots)}}),E={neutralBase:"#FFF",neutralInvertBase:"#000",neutralTextBase:"#000",neutralPopover:"#fff",neutralCard:"#fff",neutralModal:"#fff",neutralBody:"#fff",alpha1:"0.82",alpha2:"0.72",alpha3:"0.38",alpha4:"0.24",alpha5:"0.18",alphaClose:"0.6",alphaDisabled:"0.5",alphaDisabledInput:"0.02",alphaPending:"0.05",alphaTablePending:"0.02",alphaPressed:"0.07",alphaAvatar:"0.2",alphaRail:"0.14",alphaProgressRail:".08",alphaBorder:"0.12",alphaDivider:"0.06",alphaInput:"0",alphaAction:"0.02",alphaTab:"0.04",alphaScrollbar:"0.25",alphaScrollbarHover:"0.4",alphaCode:"0.05",alphaTag:"0.02",primaryHover:"#36ad6a",primaryDefault:"#18a058",primaryActive:"#0c7a43",primarySuppl:"#36ad6a",infoHover:"#4098fc",infoDefault:"#2080f0",infoActive:"#1060c9",infoSuppl:"#4098fc",errorHover:"#de576d",errorDefault:"#d03050",errorActive:"#ab1f3f",errorSuppl:"#de576d",warningHover:"#fcb040",warningDefault:"#f0a020",warningActive:"#c97c10",warningSuppl:"#fcb040",successHover:"#36ad6a",successDefault:"#18a058",successActive:"#0c7a43",successSuppl:"#36ad6a"},Hv=ct(E.neutralBase),Qi=ct(E.neutralInvertBase),Fv="rgba("+Qi.slice(0,3).join(", ")+", ";function Ao(e){return Fv+String(e)+")"}function se(e){const t=Array.from(Qi);return t[3]=Number(e),Fo(Hv,t)}const kv=Object.assign(Object.assign({name:"common"},fn),{baseColor:E.neutralBase,primaryColor:E.primaryDefault,primaryColorHover:E.primaryHover,primaryColorPressed:E.primaryActive,primaryColorSuppl:E.primarySuppl,infoColor:E.infoDefault,infoColorHover:E.infoHover,infoColorPressed:E.infoActive,infoColorSuppl:E.infoSuppl,successColor:E.successDefault,successColorHover:E.successHover,successColorPressed:E.successActive,successColorSuppl:E.successSuppl,warningColor:E.warningDefault,warningColorHover:E.warningHover,warningColorPressed:E.warningActive,warningColorSuppl:E.warningSuppl,errorColor:E.errorDefault,errorColorHover:E.errorHover,errorColorPressed:E.errorActive,errorColorSuppl:E.errorSuppl,textColorBase:E.neutralTextBase,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:se(E.alpha4),placeholderColor:se(E.alpha4),placeholderColorDisabled:se(E.alpha5),iconColor:se(E.alpha4),iconColorHover:Ft(se(E.alpha4),{lightness:.75}),iconColorPressed:Ft(se(E.alpha4),{lightness:.9}),iconColorDisabled:se(E.alpha5),opacity1:E.alpha1,opacity2:E.alpha2,opacity3:E.alpha3,opacity4:E.alpha4,opacity5:E.alpha5,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeIconColor:se(Number(E.alphaClose)),closeIconColorHover:se(Number(E.alphaClose)),closeIconColorPressed:se(Number(E.alphaClose)),closeColorHover:"rgba(0, 0, 0, .09)",closeColorPressed:"rgba(0, 0, 0, .13)",clearColor:se(E.alpha4),clearColorHover:Ft(se(E.alpha4),{lightness:.75}),clearColorPressed:Ft(se(E.alpha4),{lightness:.9}),scrollbarColor:Ao(E.alphaScrollbar),scrollbarColorHover:Ao(E.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:se(E.alphaProgressRail),railColor:"rgb(219, 219, 223)",popoverColor:E.neutralPopover,tableColor:E.neutralCard,cardColor:E.neutralCard,modalColor:E.neutralModal,bodyColor:E.neutralBody,tagColor:"#eee",avatarColor:se(E.alphaAvatar),invertedColor:"rgb(0, 20, 40)",inputColor:se(E.alphaInput),codeColor:"rgb(244, 244, 248)",tabColor:"rgb(247, 247, 250)",actionColor:"rgb(250, 250, 252)",tableHeaderColor:"rgb(250, 250, 252)",hoverColor:"rgb(243, 243, 245)",tableColorHover:"rgba(0, 0, 100, 0.03)",tableColorStriped:"rgba(0, 0, 100, 0.02)",pressedColor:"rgb(237, 237, 239)",opacityDisabled:E.alphaDisabled,inputColorDisabled:"rgb(250, 250, 252)",buttonColor2:"rgba(46, 51, 56, .05)",buttonColor2Hover:"rgba(46, 51, 56, .09)",buttonColor2Pressed:"rgba(46, 51, 56, .13)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),hn=kv,Wv={railInsetHorizontal:"auto 2px 4px 2px",railInsetVertical:"2px 4px 2px auto",railColor:"transparent"},jv=e=>{const{scrollbarColor:t,scrollbarColorHover:n,scrollbarHeight:r,scrollbarWidth:o,scrollbarBorderRadius:i}=e;return Object.assign(Object.assign({},Wv),{height:r,width:o,borderRadius:i,color:t,colorHover:n})},Nv={name:"Scrollbar",common:hn,self:jv},Uv=Nv,{cubicBezierEaseInOut:zo}=fn;function Kn({name:e="fade-in",enterDuration:t="0.2s",leaveDuration:n="0.2s",enterCubicBezier:r=zo,leaveCubicBezier:o=zo}={}){return[H(`&.${e}-transition-enter-active`,{transition:`all ${t} ${r}!important`}),H(`&.${e}-transition-leave-active`,{transition:`all ${n} ${o}!important`}),H(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),H(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}const Vv=G("scrollbar",`
|
|
37
|
-
overflow: hidden;
|
|
38
|
-
position: relative;
|
|
39
|
-
z-index: auto;
|
|
40
|
-
height: 100%;
|
|
41
|
-
width: 100%;
|
|
42
|
-
`,[H(">",[G("scrollbar-container",`
|
|
43
|
-
width: 100%;
|
|
44
|
-
overflow: scroll;
|
|
45
|
-
height: 100%;
|
|
46
|
-
min-height: inherit;
|
|
47
|
-
max-height: inherit;
|
|
48
|
-
scrollbar-width: none;
|
|
49
|
-
`,[H("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",`
|
|
50
|
-
width: 0;
|
|
51
|
-
height: 0;
|
|
52
|
-
display: none;
|
|
53
|
-
`),H(">",[G("scrollbar-content",`
|
|
54
|
-
box-sizing: border-box;
|
|
55
|
-
min-width: 100%;
|
|
56
|
-
`)])])]),H(">, +",[G("scrollbar-rail",`
|
|
57
|
-
position: absolute;
|
|
58
|
-
pointer-events: none;
|
|
59
|
-
user-select: none;
|
|
60
|
-
background: var(--n-scrollbar-rail-color);
|
|
61
|
-
-webkit-user-select: none;
|
|
62
|
-
`,[Xe("horizontal",`
|
|
63
|
-
inset: var(--n-scrollbar-rail-inset-horizontal);
|
|
64
|
-
height: var(--n-scrollbar-height);
|
|
65
|
-
`,[H(">",[Ue("scrollbar",`
|
|
66
|
-
height: var(--n-scrollbar-height);
|
|
67
|
-
border-radius: var(--n-scrollbar-border-radius);
|
|
68
|
-
right: 0;
|
|
69
|
-
`)])]),Xe("vertical",`
|
|
70
|
-
inset: var(--n-scrollbar-rail-inset-vertical);
|
|
71
|
-
width: var(--n-scrollbar-width);
|
|
72
|
-
`,[H(">",[Ue("scrollbar",`
|
|
73
|
-
width: var(--n-scrollbar-width);
|
|
74
|
-
border-radius: var(--n-scrollbar-border-radius);
|
|
75
|
-
bottom: 0;
|
|
76
|
-
`)])]),Xe("disabled",[H(">",[Ue("scrollbar","pointer-events: none;")])]),H(">",[Ue("scrollbar",`
|
|
77
|
-
z-index: 1;
|
|
78
|
-
position: absolute;
|
|
79
|
-
cursor: pointer;
|
|
80
|
-
pointer-events: all;
|
|
81
|
-
background-color: var(--n-scrollbar-color);
|
|
82
|
-
transition: background-color .2s var(--n-scrollbar-bezier);
|
|
83
|
-
`,[Kn(),H("&:hover","background-color: var(--n-scrollbar-color-hover);")])])])])]),Xv=Object.assign(Object.assign({},Me.props),{duration:{type:Number,default:0},scrollable:{type:Boolean,default:!0},xScrollable:Boolean,trigger:{type:String,default:"hover"},useUnifiedContainer:Boolean,triggerDisplayManually:Boolean,container:Function,content:Function,containerClass:String,containerStyle:[String,Object],contentClass:[String,Array],contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function,internalHoistYRail:Boolean}),Yv=ie({name:"Scrollbar",props:Xv,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=gt(e),o=Pv("Scrollbar",r,t),i=z(null),a=z(null),s=z(null),l=z(null),u=z(null),c=z(null),h=z(null),v=z(null),y=z(null),d=z(null),b=z(null),g=z(0),f=z(0),$=z(!1),D=z(!1);let L=!1,N=!1,j,p,m=0,O=0,T=0,B=0;const F=bs(),R=Me("Scrollbar","-scrollbar",Vv,Uv,e,t),W=k(()=>{const{value:x}=v,{value:P}=c,{value:_}=d;return x===null||P===null||_===null?0:Math.min(x,_*x/P+Ar(R.value.self.width)*1.5)}),S=k(()=>`${W.value}px`),I=k(()=>{const{value:x}=y,{value:P}=h,{value:_}=b;return x===null||P===null||_===null?0:_*x/P+Ar(R.value.self.height)*1.5}),V=k(()=>`${I.value}px`),J=k(()=>{const{value:x}=v,{value:P}=g,{value:_}=c,{value:Y}=d;if(x===null||_===null||Y===null)return 0;{const ee=_-x;return ee?P/ee*(Y-W.value):0}}),re=k(()=>`${J.value}px`),Q=k(()=>{const{value:x}=y,{value:P}=f,{value:_}=h,{value:Y}=b;if(x===null||_===null||Y===null)return 0;{const ee=_-x;return ee?P/ee*(Y-I.value):0}}),fe=k(()=>`${Q.value}px`),et=k(()=>{const{value:x}=v,{value:P}=c;return x!==null&&P!==null&&P>x}),Dt=k(()=>{const{value:x}=y,{value:P}=h;return x!==null&&P!==null&&P>x}),vn=k(()=>{const{trigger:x}=e;return x==="none"||$.value}),he=k(()=>{const{trigger:x}=e;return x==="none"||D.value}),ye=k(()=>{const{container:x}=e;return x?x():a.value}),pn=k(()=>{const{content:x}=e;return x?x():s.value}),Lt=vl(()=>{e.container||mt({top:g.value,left:f.value})}),gn=()=>{Lt.isDeactivated||Fe()},Ht=x=>{if(Lt.isDeactivated)return;const{onResize:P}=e;P&&P(x),Fe()},mt=(x,P)=>{if(!e.scrollable)return;if(typeof x=="number"){C(x,P??0,0,!1,"auto");return}const{left:_,top:Y,index:ee,elSize:ce,position:be,behavior:q,el:we,debounce:bt=!0}=x;(_!==void 0||Y!==void 0)&&C(_??0,Y??0,0,!1,q),we!==void 0?C(0,we.offsetTop,we.offsetHeight,bt,q):ee!==void 0&&ce!==void 0?C(0,ee*ce,ce,bt,q):be==="bottom"?C(0,Number.MAX_SAFE_INTEGER,0,!1,q):be==="top"&&C(0,0,0,!1,q)},Be=(x,P)=>{if(!e.scrollable)return;const{value:_}=ye;_&&(typeof x=="object"?_.scrollBy(x):_.scrollBy(x,P||0))};function C(x,P,_,Y,ee){const{value:ce}=ye;if(ce){if(Y){const{scrollTop:be,offsetHeight:q}=ce;if(P>be){P+_<=be+q||ce.scrollTo({left:x,top:P+_-q,behavior:ee});return}}ce.scrollTo({left:x,top:P,behavior:ee})}}function A(){ue(),ve(),Fe()}function M(){U()}function U(){X(),ae()}function X(){p!==void 0&&window.clearTimeout(p),p=window.setTimeout(()=>{D.value=!1},e.duration)}function ae(){j!==void 0&&window.clearTimeout(j),j=window.setTimeout(()=>{$.value=!1},e.duration)}function ue(){j!==void 0&&window.clearTimeout(j),$.value=!0}function ve(){p!==void 0&&window.clearTimeout(p),D.value=!0}function xe(x){const{onScroll:P}=e;P&&P(x),wr()}function wr(){const{value:x}=ye;x&&(g.value=x.scrollTop,f.value=x.scrollLeft*(o!=null&&o.value?-1:1))}function aa(){const{value:x}=pn;x&&(c.value=x.offsetHeight,h.value=x.offsetWidth);const{value:P}=ye;P&&(v.value=P.offsetHeight,y.value=P.offsetWidth);const{value:_}=u,{value:Y}=l;_&&(b.value=_.offsetWidth),Y&&(d.value=Y.offsetHeight)}function yr(){const{value:x}=ye;x&&(g.value=x.scrollTop,f.value=x.scrollLeft*(o!=null&&o.value?-1:1),v.value=x.offsetHeight,y.value=x.offsetWidth,c.value=x.scrollHeight,h.value=x.scrollWidth);const{value:P}=u,{value:_}=l;P&&(b.value=P.offsetWidth),_&&(d.value=_.offsetHeight)}function Fe(){e.scrollable&&(e.useUnifiedContainer?yr():(aa(),wr()))}function xr(x){var P;return!(!((P=i.value)===null||P===void 0)&&P.contains(en(x)))}function sa(x){x.preventDefault(),x.stopPropagation(),N=!0,ne("mousemove",window,Cr,!0),ne("mouseup",window,Sr,!0),O=f.value,T=o!=null&&o.value?window.innerWidth-x.clientX:x.clientX}function Cr(x){if(!N)return;j!==void 0&&window.clearTimeout(j),p!==void 0&&window.clearTimeout(p);const{value:P}=y,{value:_}=h,{value:Y}=I;if(P===null||_===null)return;const ce=(o!=null&&o.value?window.innerWidth-x.clientX-T:x.clientX-T)*(_-P)/(P-Y),be=_-P;let q=O+ce;q=Math.min(be,q),q=Math.max(q,0);const{value:we}=ye;if(we){we.scrollLeft=q*(o!=null&&o.value?-1:1);const{internalOnUpdateScrollLeft:bt}=e;bt&&bt(q)}}function Sr(x){x.preventDefault(),x.stopPropagation(),K("mousemove",window,Cr,!0),K("mouseup",window,Sr,!0),N=!1,Fe(),xr(x)&&U()}function la(x){x.preventDefault(),x.stopPropagation(),L=!0,ne("mousemove",window,mn,!0),ne("mouseup",window,bn,!0),m=g.value,B=x.clientY}function mn(x){if(!L)return;j!==void 0&&window.clearTimeout(j),p!==void 0&&window.clearTimeout(p);const{value:P}=v,{value:_}=c,{value:Y}=W;if(P===null||_===null)return;const ce=(x.clientY-B)*(_-P)/(P-Y),be=_-P;let q=m+ce;q=Math.min(be,q),q=Math.max(q,0);const{value:we}=ye;we&&(we.scrollTop=q)}function bn(x){x.preventDefault(),x.stopPropagation(),K("mousemove",window,mn,!0),K("mouseup",window,bn,!0),L=!1,Fe(),xr(x)&&U()}qe(()=>{const{value:x}=Dt,{value:P}=et,{value:_}=t,{value:Y}=u,{value:ee}=l;Y&&(x?Y.classList.remove(`${_}-scrollbar-rail--disabled`):Y.classList.add(`${_}-scrollbar-rail--disabled`)),ee&&(P?ee.classList.remove(`${_}-scrollbar-rail--disabled`):ee.classList.add(`${_}-scrollbar-rail--disabled`))}),ze(()=>{e.container||Fe()}),Te(()=>{j!==void 0&&window.clearTimeout(j),p!==void 0&&window.clearTimeout(p),K("mousemove",window,mn,!0),K("mouseup",window,bn,!0)});const $r=k(()=>{const{common:{cubicBezierEaseInOut:x},self:{color:P,colorHover:_,height:Y,width:ee,borderRadius:ce,railInsetHorizontal:be,railInsetVertical:q,railColor:we}}=R.value;return{"--n-scrollbar-bezier":x,"--n-scrollbar-color":P,"--n-scrollbar-color-hover":_,"--n-scrollbar-border-radius":ce,"--n-scrollbar-width":ee,"--n-scrollbar-height":Y,"--n-scrollbar-rail-inset-horizontal":be,"--n-scrollbar-rail-inset-vertical":o!=null&&o.value?Ia(q):q,"--n-scrollbar-rail-color":we}}),tt=n?mr("scrollbar",void 0,$r,e):void 0;return Object.assign(Object.assign({},{scrollTo:mt,scrollBy:Be,sync:Fe,syncUnifiedContainer:yr,handleMouseEnterWrapper:A,handleMouseLeaveWrapper:M}),{mergedClsPrefix:t,rtlEnabled:o,containerScrollTop:g,wrapperRef:i,containerRef:a,contentRef:s,yRailRef:l,xRailRef:u,needYBar:et,needXBar:Dt,yBarSizePx:S,xBarSizePx:V,yBarTopPx:re,xBarLeftPx:fe,isShowXBar:vn,isShowYBar:he,isIos:F,handleScroll:xe,handleContentResize:gn,handleContainerResize:Ht,handleYScrollMouseDown:la,handleXScrollMouseDown:sa,cssVars:n?void 0:$r,themeClass:tt==null?void 0:tt.themeClass,onRender:tt==null?void 0:tt.onRender})},render(){var e;const{$slots:t,mergedClsPrefix:n,triggerDisplayManually:r,rtlEnabled:o,internalHoistYRail:i}=this;if(!this.scrollable)return(e=t.default)===null||e===void 0?void 0:e.call(t);const a=this.trigger==="none",s=(c,h)=>w("div",{ref:"yRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--vertical`,c],"data-scrollbar-rail":!0,style:[h||"",this.verticalRailStyle],"aria-hidden":!0},w(a?Pr:at,a?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?w("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),l=()=>{var c,h;return(c=this.onRender)===null||c===void 0||c.call(this),w("div",Io(this.$attrs,{role:"none",ref:"wrapperRef",class:[`${n}-scrollbar`,this.themeClass,o&&`${n}-scrollbar--rtl`],style:this.cssVars,onMouseenter:r?void 0:this.handleMouseEnterWrapper,onMouseleave:r?void 0:this.handleMouseLeaveWrapper}),[this.container?(h=t.default)===null||h===void 0?void 0:h.call(t):w("div",{role:"none",ref:"containerRef",class:[`${n}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},w(Jr,{onResize:this.handleContentResize},{default:()=>w("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${n}-scrollbar-content`,this.contentClass]},t)})),i?null:s(void 0,void 0),this.xScrollable&&w("div",{ref:"xRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--horizontal`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},w(a?Pr:at,a?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?w("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,right:o?this.xBarLeftPx:void 0,left:o?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},u=this.container?l():w(Jr,{onResize:this.handleContainerResize},{default:l});return i?w(Ae,null,u,s(this.themeClass,this.cssVars)):u}}),Zv=Yv,{cubicBezierEaseIn:_o,cubicBezierEaseOut:Ro}=fn;function qv({transformOrigin:e="inherit",duration:t=".2s",enterScale:n=".9",originalTransform:r="",originalTransition:o=""}={}){return[H("&.fade-in-scale-up-transition-leave-active",{transformOrigin:e,transition:`opacity ${t} ${_o}, transform ${t} ${_o} ${o&&","+o}`}),H("&.fade-in-scale-up-transition-enter-active",{transformOrigin:e,transition:`opacity ${t} ${Ro}, transform ${t} ${Ro} ${o&&","+o}`}),H("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to",{opacity:0,transform:`${r} scale(${n})`}),H("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to",{opacity:1,transform:`${r} scale(1)`})]}const Gv={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"},Kv=e=>{const{boxShadow2:t,popoverColor:n,textColor2:r,borderRadius:o,fontSize:i,dividerColor:a}=e;return Object.assign(Object.assign({},Gv),{fontSize:i,borderRadius:o,color:n,dividerColor:a,textColor:r,boxShadow:t})},Jv={name:"Popover",common:hn,self:Kv},ea=Jv,In={top:"bottom",bottom:"top",left:"right",right:"left"},te="var(--n-arrow-height) * 1.414",Qv=H([G("popover",`
|
|
84
|
-
transition:
|
|
85
|
-
box-shadow .3s var(--n-bezier),
|
|
86
|
-
background-color .3s var(--n-bezier),
|
|
87
|
-
color .3s var(--n-bezier);
|
|
88
|
-
position: relative;
|
|
89
|
-
font-size: var(--n-font-size);
|
|
90
|
-
color: var(--n-text-color);
|
|
91
|
-
box-shadow: var(--n-box-shadow);
|
|
92
|
-
word-break: break-word;
|
|
93
|
-
`,[H(">",[G("scrollbar",`
|
|
94
|
-
height: inherit;
|
|
95
|
-
max-height: inherit;
|
|
96
|
-
`)]),Gt("raw",`
|
|
97
|
-
background-color: var(--n-color);
|
|
98
|
-
border-radius: var(--n-border-radius);
|
|
99
|
-
`,[Gt("scrollable",[Gt("show-header-or-footer","padding: var(--n-padding);")])]),Ue("header",`
|
|
100
|
-
padding: var(--n-padding);
|
|
101
|
-
border-bottom: 1px solid var(--n-divider-color);
|
|
102
|
-
transition: border-color .3s var(--n-bezier);
|
|
103
|
-
`),Ue("footer",`
|
|
104
|
-
padding: var(--n-padding);
|
|
105
|
-
border-top: 1px solid var(--n-divider-color);
|
|
106
|
-
transition: border-color .3s var(--n-bezier);
|
|
107
|
-
`),Xe("scrollable, show-header-or-footer",[Ue("content",`
|
|
108
|
-
padding: var(--n-padding);
|
|
109
|
-
`)])]),G("popover-shared",`
|
|
110
|
-
transform-origin: inherit;
|
|
111
|
-
`,[G("popover-arrow-wrapper",`
|
|
112
|
-
position: absolute;
|
|
113
|
-
overflow: hidden;
|
|
114
|
-
pointer-events: none;
|
|
115
|
-
`,[G("popover-arrow",`
|
|
116
|
-
transition: background-color .3s var(--n-bezier);
|
|
117
|
-
position: absolute;
|
|
118
|
-
display: block;
|
|
119
|
-
width: calc(${te});
|
|
120
|
-
height: calc(${te});
|
|
121
|
-
box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12);
|
|
122
|
-
transform: rotate(45deg);
|
|
123
|
-
background-color: var(--n-color);
|
|
124
|
-
pointer-events: all;
|
|
125
|
-
`)]),H("&.popover-transition-enter-from, &.popover-transition-leave-to",`
|
|
126
|
-
opacity: 0;
|
|
127
|
-
transform: scale(.85);
|
|
128
|
-
`),H("&.popover-transition-enter-to, &.popover-transition-leave-from",`
|
|
129
|
-
transform: scale(1);
|
|
130
|
-
opacity: 1;
|
|
131
|
-
`),H("&.popover-transition-enter-active",`
|
|
132
|
-
transition:
|
|
133
|
-
box-shadow .3s var(--n-bezier),
|
|
134
|
-
background-color .3s var(--n-bezier),
|
|
135
|
-
color .3s var(--n-bezier),
|
|
136
|
-
opacity .15s var(--n-bezier-ease-out),
|
|
137
|
-
transform .15s var(--n-bezier-ease-out);
|
|
138
|
-
`),H("&.popover-transition-leave-active",`
|
|
139
|
-
transition:
|
|
140
|
-
box-shadow .3s var(--n-bezier),
|
|
141
|
-
background-color .3s var(--n-bezier),
|
|
142
|
-
color .3s var(--n-bezier),
|
|
143
|
-
opacity .15s var(--n-bezier-ease-in),
|
|
144
|
-
transform .15s var(--n-bezier-ease-in);
|
|
145
|
-
`)]),pe("top-start",`
|
|
146
|
-
top: calc(${te} / -2);
|
|
147
|
-
left: calc(${Ee("top-start")} - var(--v-offset-left));
|
|
148
|
-
`),pe("top",`
|
|
149
|
-
top: calc(${te} / -2);
|
|
150
|
-
transform: translateX(calc(${te} / -2)) rotate(45deg);
|
|
151
|
-
left: 50%;
|
|
152
|
-
`),pe("top-end",`
|
|
153
|
-
top: calc(${te} / -2);
|
|
154
|
-
right: calc(${Ee("top-end")} + var(--v-offset-left));
|
|
155
|
-
`),pe("bottom-start",`
|
|
156
|
-
bottom: calc(${te} / -2);
|
|
157
|
-
left: calc(${Ee("bottom-start")} - var(--v-offset-left));
|
|
158
|
-
`),pe("bottom",`
|
|
159
|
-
bottom: calc(${te} / -2);
|
|
160
|
-
transform: translateX(calc(${te} / -2)) rotate(45deg);
|
|
161
|
-
left: 50%;
|
|
162
|
-
`),pe("bottom-end",`
|
|
163
|
-
bottom: calc(${te} / -2);
|
|
164
|
-
right: calc(${Ee("bottom-end")} + var(--v-offset-left));
|
|
165
|
-
`),pe("left-start",`
|
|
166
|
-
left: calc(${te} / -2);
|
|
167
|
-
top: calc(${Ee("left-start")} - var(--v-offset-top));
|
|
168
|
-
`),pe("left",`
|
|
169
|
-
left: calc(${te} / -2);
|
|
170
|
-
transform: translateY(calc(${te} / -2)) rotate(45deg);
|
|
171
|
-
top: 50%;
|
|
172
|
-
`),pe("left-end",`
|
|
173
|
-
left: calc(${te} / -2);
|
|
174
|
-
bottom: calc(${Ee("left-end")} + var(--v-offset-top));
|
|
175
|
-
`),pe("right-start",`
|
|
176
|
-
right: calc(${te} / -2);
|
|
177
|
-
top: calc(${Ee("right-start")} - var(--v-offset-top));
|
|
178
|
-
`),pe("right",`
|
|
179
|
-
right: calc(${te} / -2);
|
|
180
|
-
transform: translateY(calc(${te} / -2)) rotate(45deg);
|
|
181
|
-
top: 50%;
|
|
182
|
-
`),pe("right-end",`
|
|
183
|
-
right: calc(${te} / -2);
|
|
184
|
-
bottom: calc(${Ee("right-end")} + var(--v-offset-top));
|
|
185
|
-
`),...zh({top:["right-start","left-start"],right:["top-end","bottom-end"],bottom:["right-end","left-end"],left:["top-start","bottom-start"]},(e,t)=>{const n=["right","left"].includes(t),r=n?"width":"height";return e.map(o=>{const i=o.split("-")[1]==="end",s=`calc((${`var(--v-target-${r}, 0px)`} - ${te}) / 2)`,l=Ee(o);return H(`[v-placement="${o}"] >`,[G("popover-shared",[Xe("center-arrow",[G("popover-arrow",`${t}: calc(max(${s}, ${l}) ${i?"+":"-"} var(--v-offset-${n?"left":"top"}));`)])])])})})]);function Ee(e){return["top","bottom"].includes(e.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function pe(e,t){const n=e.split("-")[0],r=["top","bottom"].includes(n)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return H(`[v-placement="${e}"] >`,[G("popover-shared",`
|
|
186
|
-
margin-${In[n]}: var(--n-space);
|
|
187
|
-
`,[Xe("show-arrow",`
|
|
188
|
-
margin-${In[n]}: var(--n-space-arrow);
|
|
189
|
-
`),Xe("overlap",`
|
|
190
|
-
margin: 0;
|
|
191
|
-
`),os("popover-arrow-wrapper",`
|
|
192
|
-
right: 0;
|
|
193
|
-
left: 0;
|
|
194
|
-
top: 0;
|
|
195
|
-
bottom: 0;
|
|
196
|
-
${n}: 100%;
|
|
197
|
-
${In[n]}: auto;
|
|
198
|
-
${r}
|
|
199
|
-
`,[G("popover-arrow",t)])])])}const ta=Object.assign(Object.assign({},Me.props),{to:dt.propTo,show:Boolean,trigger:String,showArrow:Boolean,delay:Number,duration:Number,raw:Boolean,arrowPointToCenter:Boolean,arrowClass:String,arrowStyle:[String,Object],arrowWrapperClass:String,arrowWrapperStyle:[String,Object],displayDirective:String,x:Number,y:Number,flip:Boolean,overlap:Boolean,placement:String,width:[Number,String],keepAliveOnHover:Boolean,scrollable:Boolean,contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],internalDeactivateImmediately:Boolean,animated:Boolean,onClickoutside:Function,internalTrapFocus:Boolean,internalOnAfterLeave:Function,minWidth:Number,maxWidth:Number}),ep=({arrowClass:e,arrowStyle:t,arrowWrapperClass:n,arrowWrapperStyle:r,clsPrefix:o})=>w("div",{key:"__popover-arrow__",style:r,class:[`${o}-popover-arrow-wrapper`,n]},w("div",{class:[`${o}-popover-arrow`,e],style:t})),tp=ie({name:"PopoverBody",inheritAttrs:!1,props:ta,setup(e,{slots:t,attrs:n}){const{namespaceRef:r,mergedClsPrefixRef:o,inlineThemeDisabled:i}=gt(e),a=Me("Popover","-popover",Qv,ea,e,o),s=z(null),l=oe("NPopover"),u=z(null),c=z(e.show),h=z(!1);qe(()=>{const{show:p}=e;p&&!is()&&!e.internalDeactivateImmediately&&(h.value=!0)});const v=k(()=>{const{trigger:p,onClickoutside:m}=e,O=[],{positionManuallyRef:{value:T}}=l;return T||(p==="click"&&!m&&O.push([Dr,L,void 0,{capture:!0}]),p==="hover"&&O.push([Os,D])),m&&O.push([Dr,L,void 0,{capture:!0}]),(e.displayDirective==="show"||e.animated&&h.value)&&O.push([Do,e.show]),O}),y=k(()=>{const p=e.width==="trigger"?void 0:yn(e.width),m=[];p&&m.push({width:p});const{maxWidth:O,minWidth:T}=e;return O&&m.push({maxWidth:yn(O)}),T&&m.push({maxWidth:yn(T)}),i||m.push(d.value),m}),d=k(()=>{const{common:{cubicBezierEaseInOut:p,cubicBezierEaseIn:m,cubicBezierEaseOut:O},self:{space:T,spaceArrow:B,padding:F,fontSize:R,textColor:W,dividerColor:S,color:I,boxShadow:V,borderRadius:J,arrowHeight:re,arrowOffset:Q,arrowOffsetVertical:fe}}=a.value;return{"--n-box-shadow":V,"--n-bezier":p,"--n-bezier-ease-in":m,"--n-bezier-ease-out":O,"--n-font-size":R,"--n-text-color":W,"--n-color":I,"--n-divider-color":S,"--n-border-radius":J,"--n-arrow-height":re,"--n-arrow-offset":Q,"--n-arrow-offset-vertical":fe,"--n-padding":F,"--n-space":T,"--n-space-arrow":B}}),b=i?mr("popover",void 0,d,e):void 0;l.setBodyInstance({syncPosition:g}),Te(()=>{l.setBodyInstance(null)}),Se(ge(e,"show"),p=>{e.animated||(p?c.value=!0:c.value=!1)});function g(){var p;(p=s.value)===null||p===void 0||p.syncPosition()}function f(p){e.trigger==="hover"&&e.keepAliveOnHover&&e.show&&l.handleMouseEnter(p)}function $(p){e.trigger==="hover"&&e.keepAliveOnHover&&l.handleMouseLeave(p)}function D(p){e.trigger==="hover"&&!N().contains(en(p))&&l.handleMouseMoveOutside(p)}function L(p){(e.trigger==="click"&&!N().contains(en(p))||e.onClickoutside)&&l.handleClickOutside(p)}function N(){return l.getTriggerElement()}Ve(Go,u),Ve(qo,null),Ve(Zo,null);function j(){if(b==null||b.onRender(),!(e.displayDirective==="show"||e.show||e.animated&&h.value))return null;let m;const O=l.internalRenderBodyRef.value,{value:T}=o;if(O)m=O([`${T}-popover-shared`,b==null?void 0:b.themeClass.value,e.overlap&&`${T}-popover-shared--overlap`,e.showArrow&&`${T}-popover-shared--show-arrow`,e.arrowPointToCenter&&`${T}-popover-shared--center-arrow`],u,y.value,f,$);else{const{value:B}=l.extraClassRef,{internalTrapFocus:F}=e,R=!Mr(t.header)||!Mr(t.footer),W=()=>{var S,I;const V=R?w(Ae,null,wn(t.header,Q=>Q?w("div",{class:[`${T}-popover__header`,e.headerClass],style:e.headerStyle},Q):null),wn(t.default,Q=>Q?w("div",{class:[`${T}-popover__content`,e.contentClass],style:e.contentStyle},t):null),wn(t.footer,Q=>Q?w("div",{class:[`${T}-popover__footer`,e.footerClass],style:e.footerStyle},Q):null)):e.scrollable?(S=t.default)===null||S===void 0?void 0:S.call(t):w("div",{class:[`${T}-popover__content`,e.contentClass],style:e.contentStyle},t),J=e.scrollable?w(Zv,{contentClass:R?void 0:`${T}-popover__content ${(I=e.contentClass)!==null&&I!==void 0?I:""}`,contentStyle:R?void 0:e.contentStyle},{default:()=>V}):V,re=e.showArrow?ep({arrowClass:e.arrowClass,arrowStyle:e.arrowStyle,arrowWrapperClass:e.arrowWrapperClass,arrowWrapperStyle:e.arrowWrapperStyle,clsPrefix:T}):null;return[J,re]};m=w("div",Io({class:[`${T}-popover`,`${T}-popover-shared`,b==null?void 0:b.themeClass.value,B.map(S=>`${T}-${S}`),{[`${T}-popover--scrollable`]:e.scrollable,[`${T}-popover--show-header-or-footer`]:R,[`${T}-popover--raw`]:e.raw,[`${T}-popover-shared--overlap`]:e.overlap,[`${T}-popover-shared--show-arrow`]:e.showArrow,[`${T}-popover-shared--center-arrow`]:e.arrowPointToCenter}],ref:u,style:y.value,onKeydown:l.handleKeydown,onMouseenter:f,onMouseleave:$},n),F?w(hl,{active:e.show,autoFocus:!0},{default:W}):W())}return ut(m,v.value)}return{displayed:h,namespace:r,isMounted:l.isMountedRef,zIndex:l.zIndexRef,followerRef:s,adjustedTo:dt(e),followerEnabled:c,renderContentNode:j}},render(){return w(Ns,{ref:"followerRef",zIndex:this.zIndex,show:this.show,enabled:this.followerEnabled,to:this.adjustedTo,x:this.x,y:this.y,flip:this.flip,placement:this.placement,containerClass:this.namespace,overlap:this.overlap,width:this.width==="trigger"?"target":void 0,teleportDisabled:this.adjustedTo===dt.tdkey},{default:()=>this.animated?w(at,{name:"popover-transition",appear:this.isMounted,onEnter:()=>{this.followerEnabled=!0},onAfterLeave:()=>{var e;(e=this.internalOnAfterLeave)===null||e===void 0||e.call(this),this.followerEnabled=!1,this.displayed=!1}},{default:this.renderContentNode}):this.renderContentNode()})}}),np=Object.keys(ta),rp={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function op(e,t,n){rp[t].forEach(r=>{e.props?e.props=Object.assign({},e.props):e.props={};const o=e.props[r],i=n[r];o?e.props[r]=(...a)=>{o(...a),i(...a)}:e.props[r]=i})}const na={show:{type:Boolean,default:void 0},defaultShow:Boolean,showArrow:{type:Boolean,default:!0},trigger:{type:String,default:"hover"},delay:{type:Number,default:100},duration:{type:Number,default:100},raw:Boolean,placement:{type:String,default:"top"},x:Number,y:Number,arrowPointToCenter:Boolean,disabled:Boolean,getDisabled:Function,displayDirective:{type:String,default:"if"},arrowClass:String,arrowStyle:[String,Object],arrowWrapperClass:String,arrowWrapperStyle:[String,Object],flip:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:{type:[Number,String],default:void 0},overlap:Boolean,keepAliveOnHover:{type:Boolean,default:!0},zIndex:Number,to:dt.propTo,scrollable:Boolean,contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],onClickoutside:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],internalDeactivateImmediately:Boolean,internalSyncTargetWithParent:Boolean,internalInheritedEventHandlers:{type:Array,default:()=>[]},internalTrapFocus:Boolean,internalExtraClass:{type:Array,default:()=>[]},onShow:[Function,Array],onHide:[Function,Array],arrow:{type:Boolean,default:void 0},minWidth:Number,maxWidth:Number},ip=Object.assign(Object.assign(Object.assign({},Me.props),na),{internalOnAfterLeave:Function,internalRenderBody:Function}),ap=ie({name:"Popover",inheritAttrs:!1,props:ip,__popover__:!0,setup(e){const t=nr(),n=z(null),r=k(()=>e.show),o=z(e.defaultShow),i=ps(r,o),a=Pt(()=>e.disabled?!1:i.value),s=()=>{if(e.disabled)return!0;const{getDisabled:S}=e;return!!(S!=null&&S())},l=()=>s()?!1:i.value,u=gs(e,["arrow","showArrow"]),c=k(()=>e.overlap?!1:u.value);let h=null;const v=z(null),y=z(null),d=Pt(()=>e.x!==void 0&&e.y!==void 0);function b(S){const{"onUpdate:show":I,onUpdateShow:V,onShow:J,onHide:re}=e;o.value=S,I&&St(I,S),V&&St(V,S),S&&J&&St(J,!0),S&&re&&St(re,!1)}function g(){h&&h.syncPosition()}function f(){const{value:S}=v;S&&(window.clearTimeout(S),v.value=null)}function $(){const{value:S}=y;S&&(window.clearTimeout(S),y.value=null)}function D(){const S=s();if(e.trigger==="focus"&&!S){if(l())return;b(!0)}}function L(){const S=s();if(e.trigger==="focus"&&!S){if(!l())return;b(!1)}}function N(){const S=s();if(e.trigger==="hover"&&!S){if($(),v.value!==null||l())return;const I=()=>{b(!0),v.value=null},{delay:V}=e;V===0?I():v.value=window.setTimeout(I,V)}}function j(){const S=s();if(e.trigger==="hover"&&!S){if(f(),y.value!==null||!l())return;const I=()=>{b(!1),y.value=null},{duration:V}=e;V===0?I():y.value=window.setTimeout(I,V)}}function p(){j()}function m(S){var I;l()&&(e.trigger==="click"&&(f(),$(),b(!1)),(I=e.onClickoutside)===null||I===void 0||I.call(e,S))}function O(){if(e.trigger==="click"&&!s()){f(),$();const S=!l();b(S)}}function T(S){e.internalTrapFocus&&S.key==="Escape"&&(f(),$(),b(!1))}function B(S){o.value=S}function F(){var S;return(S=n.value)===null||S===void 0?void 0:S.targetRef}function R(S){h=S}return Ve("NPopover",{getTriggerElement:F,handleKeydown:T,handleMouseEnter:N,handleMouseLeave:j,handleClickOutside:m,handleMouseMoveOutside:p,setBodyInstance:R,positionManuallyRef:d,isMountedRef:t,zIndexRef:ge(e,"zIndex"),extraClassRef:ge(e,"internalExtraClass"),internalRenderBodyRef:ge(e,"internalRenderBody")}),qe(()=>{i.value&&s()&&b(!1)}),{binderInstRef:n,positionManually:d,mergedShowConsideringDisabledProp:a,uncontrolledShow:o,mergedShowArrow:c,getMergedShow:l,setShow:B,handleClick:O,handleMouseEnter:N,handleMouseLeave:j,handleFocus:D,handleBlur:L,syncPosition:g}},render(){var e;const{positionManually:t,$slots:n}=this;let r,o=!1;if(!t&&(n.activator?r=Or(n,"activator"):r=Or(n,"trigger"),r)){r=ga(r),r=r.type===ma?w("span",[r]):r;const i={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(!((e=r.type)===null||e===void 0)&&e.__popover__)o=!0,r.props||(r.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),r.props.internalSyncTargetWithParent=!0,r.props.internalInheritedEventHandlers?r.props.internalInheritedEventHandlers=[i,...r.props.internalInheritedEventHandlers]:r.props.internalInheritedEventHandlers=[i];else{const{internalInheritedEventHandlers:a}=this,s=[i,...a],l={onBlur:u=>{s.forEach(c=>{c.onBlur(u)})},onFocus:u=>{s.forEach(c=>{c.onFocus(u)})},onClick:u=>{s.forEach(c=>{c.onClick(u)})},onMouseenter:u=>{s.forEach(c=>{c.onMouseenter(u)})},onMouseleave:u=>{s.forEach(c=>{c.onMouseleave(u)})}};op(r,a?"nested":t?"manual":this.trigger,l)}}return w(Ss,{ref:"binderInstRef",syncTarget:!o,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const i=this.getMergedShow();return[this.internalTrapFocus&&i?ut(w("div",{style:{position:"fixed",inset:0}}),[[rr,{enabled:i,zIndex:this.zIndex}]]):null,t?null:w($s,null,{default:()=>r}),w(tp,xa(this.$props,np,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:i})),{default:()=>{var a,s;return(s=(a=this.$slots).default)===null||s===void 0?void 0:s.call(a)},header:()=>{var a,s;return(s=(a=this.$slots).header)===null||s===void 0?void 0:s.call(a)},footer:()=>{var a,s;return(s=(a=this.$slots).footer)===null||s===void 0?void 0:s.call(a)}})]}})}}),sp={padding:"8px 14px"},lp=e=>{const{borderRadius:t,boxShadow2:n,baseColor:r}=e;return Object.assign(Object.assign({},sp),{borderRadius:t,boxShadow:n,color:Fo(r,"rgba(0, 0, 0, .85)"),textColor:r})},up={name:"Tooltip",common:hn,peers:{Popover:ea},self:lp},ra=up,cp=Object.assign(Object.assign({},na),Me.props),dp=ie({name:"Tooltip",props:cp,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=gt(e),n=Me("Tooltip","-tooltip",void 0,ra,e,t),r=z(null);return Object.assign(Object.assign({},{syncPosition(){r.value.syncPosition()},setShow(i){r.value.setShow(i)}}),{popoverRef:r,mergedTheme:n,popoverThemeOverrides:k(()=>n.value.self)})},render(){const{mergedTheme:e,internalExtraClass:t}=this;return w(ap,Object.assign(Object.assign({},this.$props),{theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:t.concat("tooltip"),ref:"popoverRef"}),this.$slots)}});function fp(){return{toolbarIconColor:"rgba(255, 255, 255, .9)",toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}const hp={name:"Image",common:hn,peers:{Tooltip:ra},self:fp},vp=w("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w("path",{d:"M6 5C5.75454 5 5.55039 5.17688 5.50806 5.41012L5.5 5.5V14.5C5.5 14.7761 5.72386 15 6 15C6.24546 15 6.44961 14.8231 6.49194 14.5899L6.5 14.5V5.5C6.5 5.22386 6.27614 5 6 5ZM13.8536 5.14645C13.68 4.97288 13.4106 4.9536 13.2157 5.08859L13.1464 5.14645L8.64645 9.64645C8.47288 9.82001 8.4536 10.0894 8.58859 10.2843L8.64645 10.3536L13.1464 14.8536C13.3417 15.0488 13.6583 15.0488 13.8536 14.8536C14.0271 14.68 14.0464 14.4106 13.9114 14.2157L13.8536 14.1464L9.70711 10L13.8536 5.85355C14.0488 5.65829 14.0488 5.34171 13.8536 5.14645Z",fill:"currentColor"})),pp=w("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w("path",{d:"M13.5 5C13.7455 5 13.9496 5.17688 13.9919 5.41012L14 5.5V14.5C14 14.7761 13.7761 15 13.5 15C13.2545 15 13.0504 14.8231 13.0081 14.5899L13 14.5V5.5C13 5.22386 13.2239 5 13.5 5ZM5.64645 5.14645C5.82001 4.97288 6.08944 4.9536 6.28431 5.08859L6.35355 5.14645L10.8536 9.64645C11.0271 9.82001 11.0464 10.0894 10.9114 10.2843L10.8536 10.3536L6.35355 14.8536C6.15829 15.0488 5.84171 15.0488 5.64645 14.8536C5.47288 14.68 5.4536 14.4106 5.58859 14.2157L5.64645 14.1464L9.79289 10L5.64645 5.85355C5.45118 5.65829 5.45118 5.34171 5.64645 5.14645Z",fill:"currentColor"})),gp=w("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w("path",{d:"M4.089 4.216l.057-.07a.5.5 0 0 1 .638-.057l.07.057L10 9.293l5.146-5.147a.5.5 0 0 1 .638-.057l.07.057a.5.5 0 0 1 .057.638l-.057.07L10.707 10l5.147 5.146a.5.5 0 0 1 .057.638l-.057.07a.5.5 0 0 1-.638.057l-.07-.057L10 10.707l-5.146 5.147a.5.5 0 0 1-.638.057l-.07-.057a.5.5 0 0 1-.057-.638l.057-.07L9.293 10L4.146 4.854a.5.5 0 0 1-.057-.638l.057-.07l-.057.07z",fill:"currentColor"})),mp=H([H("body >",[G("image-container","position: fixed;")]),G("image-preview-container",`
|
|
200
|
-
position: fixed;
|
|
201
|
-
left: 0;
|
|
202
|
-
right: 0;
|
|
203
|
-
top: 0;
|
|
204
|
-
bottom: 0;
|
|
205
|
-
display: flex;
|
|
206
|
-
`),G("image-preview-overlay",`
|
|
207
|
-
z-index: -1;
|
|
208
|
-
position: absolute;
|
|
209
|
-
left: 0;
|
|
210
|
-
right: 0;
|
|
211
|
-
top: 0;
|
|
212
|
-
bottom: 0;
|
|
213
|
-
background: rgba(0, 0, 0, .3);
|
|
214
|
-
`,[Kn()]),G("image-preview-toolbar",`
|
|
215
|
-
z-index: 1;
|
|
216
|
-
position: absolute;
|
|
217
|
-
left: 50%;
|
|
218
|
-
transform: translateX(-50%);
|
|
219
|
-
border-radius: var(--n-toolbar-border-radius);
|
|
220
|
-
height: 48px;
|
|
221
|
-
bottom: 40px;
|
|
222
|
-
padding: 0 12px;
|
|
223
|
-
background: var(--n-toolbar-color);
|
|
224
|
-
box-shadow: var(--n-toolbar-box-shadow);
|
|
225
|
-
color: var(--n-toolbar-icon-color);
|
|
226
|
-
transition: color .3s var(--n-bezier);
|
|
227
|
-
display: flex;
|
|
228
|
-
align-items: center;
|
|
229
|
-
`,[G("base-icon",`
|
|
230
|
-
padding: 0 8px;
|
|
231
|
-
font-size: 28px;
|
|
232
|
-
cursor: pointer;
|
|
233
|
-
`),Kn()]),G("image-preview-wrapper",`
|
|
234
|
-
position: absolute;
|
|
235
|
-
left: 0;
|
|
236
|
-
right: 0;
|
|
237
|
-
top: 0;
|
|
238
|
-
bottom: 0;
|
|
239
|
-
display: flex;
|
|
240
|
-
pointer-events: none;
|
|
241
|
-
`,[qv()]),G("image-preview",`
|
|
242
|
-
user-select: none;
|
|
243
|
-
-webkit-user-select: none;
|
|
244
|
-
pointer-events: all;
|
|
245
|
-
margin: auto;
|
|
246
|
-
max-height: calc(100vh - 32px);
|
|
247
|
-
max-width: calc(100vw - 32px);
|
|
248
|
-
transition: transform .3s var(--n-bezier);
|
|
249
|
-
`),G("image",`
|
|
250
|
-
display: inline-flex;
|
|
251
|
-
max-height: 100%;
|
|
252
|
-
max-width: 100%;
|
|
253
|
-
`,[Gt("preview-disabled",`
|
|
254
|
-
cursor: pointer;
|
|
255
|
-
`),H("img",`
|
|
256
|
-
border-radius: inherit;
|
|
257
|
-
`)])]),qt=32,oa=ie({name:"ImagePreview",props:Object.assign(Object.assign({},br),{onNext:Function,onPrev:Function,clsPrefix:{type:String,required:!0}}),setup(e){const t=Me("Image","-image",mp,hp,e,ge(e,"clsPrefix"));let n=null;const r=z(null),o=z(null),i=z(void 0),a=z(!1),s=z(!1),{localeRef:l}=Ov("Image");function u(){const{value:C}=o;if(!n||!C)return;const{style:A}=C,M=n.getBoundingClientRect(),U=M.left+M.width/2,X=M.top+M.height/2;A.transformOrigin=`${U}px ${X}px`}function c(C){var A,M;switch(C.key){case" ":C.preventDefault();break;case"ArrowLeft":(A=e.onPrev)===null||A===void 0||A.call(e);break;case"ArrowRight":(M=e.onNext)===null||M===void 0||M.call(e);break;case"Escape":ye();break}}Se(a,C=>{C?ne("keydown",document,c):K("keydown",document,c)}),Te(()=>{K("keydown",document,c)});let h=0,v=0,y=0,d=0,b=0,g=0,f=0,$=0,D=!1;function L(C){const{clientX:A,clientY:M}=C;y=A-h,d=M-v,Ho(he)}function N(C){const{mouseUpClientX:A,mouseUpClientY:M,mouseDownClientX:U,mouseDownClientY:X}=C,ae=U-A,ue=X-M,ve=`vertical${ue>0?"Top":"Bottom"}`,xe=`horizontal${ae>0?"Left":"Right"}`;return{moveVerticalDirection:ve,moveHorizontalDirection:xe,deltaHorizontal:ae,deltaVertical:ue}}function j(C){const{value:A}=r;if(!A)return{offsetX:0,offsetY:0};const M=A.getBoundingClientRect(),{moveVerticalDirection:U,moveHorizontalDirection:X,deltaHorizontal:ae,deltaVertical:ue}=C||{};let ve=0,xe=0;return M.width<=window.innerWidth?ve=0:M.left>0?ve=(M.width-window.innerWidth)/2:M.right<window.innerWidth?ve=-(M.width-window.innerWidth)/2:X==="horizontalRight"?ve=Math.min((M.width-window.innerWidth)/2,b-(ae??0)):ve=Math.max(-((M.width-window.innerWidth)/2),b-(ae??0)),M.height<=window.innerHeight?xe=0:M.top>0?xe=(M.height-window.innerHeight)/2:M.bottom<window.innerHeight?xe=-(M.height-window.innerHeight)/2:U==="verticalBottom"?xe=Math.min((M.height-window.innerHeight)/2,g-(ue??0)):xe=Math.max(-((M.height-window.innerHeight)/2),g-(ue??0)),{offsetX:ve,offsetY:xe}}function p(C){K("mousemove",document,L),K("mouseup",document,p);const{clientX:A,clientY:M}=C;D=!1;const U=N({mouseUpClientX:A,mouseUpClientY:M,mouseDownClientX:f,mouseDownClientY:$}),X=j(U);y=X.offsetX,d=X.offsetY,he()}const m=oe(Ji,null);function O(C){var A,M;if((M=(A=m==null?void 0:m.previewedImgPropsRef.value)===null||A===void 0?void 0:A.onMousedown)===null||M===void 0||M.call(A,C),C.button!==0)return;const{clientX:U,clientY:X}=C;D=!0,h=U-y,v=X-d,b=y,g=d,f=U,$=X,he(),ne("mousemove",document,L),ne("mouseup",document,p)}function T(C){var A,M;(M=(A=m==null?void 0:m.previewedImgPropsRef.value)===null||A===void 0?void 0:A.onDblclick)===null||M===void 0||M.call(A,C);const U=fe();R=R===U?1:U,he()}const B=1.5;let F=0,R=1,W=0;function S(){R=1,F=0}function I(){var C;S(),W=0,(C=e.onPrev)===null||C===void 0||C.call(e)}function V(){var C;S(),W=0,(C=e.onNext)===null||C===void 0||C.call(e)}function J(){W-=90,he()}function re(){W+=90,he()}function Q(){const{value:C}=r;if(!C)return 1;const{innerWidth:A,innerHeight:M}=window,U=Math.max(1,C.naturalHeight/(M-qt)),X=Math.max(1,C.naturalWidth/(A-qt));return Math.max(3,U*2,X*2)}function fe(){const{value:C}=r;if(!C)return 1;const{innerWidth:A,innerHeight:M}=window,U=C.naturalHeight/(M-qt),X=C.naturalWidth/(A-qt);return U<1&&X<1?1:Math.max(U,X)}function et(){const C=Q();R<C&&(F+=1,R=Math.min(C,Math.pow(B,F)),he())}function Dt(){if(R>.5){const C=R;F-=1,R=Math.max(.5,Math.pow(B,F));const A=C-R;he(!1);const M=j();R+=A,he(!1),R-=A,y=M.offsetX,d=M.offsetY,he()}}function vn(){const C=i.value;C&&pl(C,void 0)}function he(C=!0){var A;const{value:M}=r;if(!M)return;const{style:U}=M,X=ba((A=m==null?void 0:m.previewedImgPropsRef.value)===null||A===void 0?void 0:A.style);let ae="";if(typeof X=="string")ae=X+";";else for(const ve in X)ae+=`${_h(ve)}: ${X[ve]};`;const ue=`transform-origin: center; transform: translateX(${y}px) translateY(${d}px) rotate(${W}deg) scale(${R});`;D?U.cssText=ae+"cursor: grabbing; transition: none;"+ue:U.cssText=ae+"cursor: grab;"+ue+(C?"":"transition: none;"),C||M.offsetHeight}function ye(){a.value=!a.value,s.value=!0}function pn(){R=fe(),F=Math.ceil(Math.log(R)/Math.log(B)),y=0,d=0,he()}const Lt={setPreviewSrc:C=>{i.value=C},setThumbnailEl:C=>{n=C},toggleShow:ye};function gn(C,A){if(e.showToolbarTooltip){const{value:M}=t;return w(dp,{to:!1,theme:M.peers.Tooltip,themeOverrides:M.peerOverrides.Tooltip,keepAliveOnHover:!1},{default:()=>l.value[A],trigger:()=>C})}else return C}const Ht=k(()=>{const{common:{cubicBezierEaseInOut:C},self:{toolbarIconColor:A,toolbarBorderRadius:M,toolbarBoxShadow:U,toolbarColor:X}}=t.value;return{"--n-bezier":C,"--n-toolbar-icon-color":A,"--n-toolbar-color":X,"--n-toolbar-border-radius":M,"--n-toolbar-box-shadow":U}}),{inlineThemeDisabled:mt}=gt(),Be=mt?mr("image-preview",void 0,Ht,e):void 0;return Object.assign({previewRef:r,previewWrapperRef:o,previewSrc:i,show:a,appear:nr(),displayed:s,previewedImgProps:m==null?void 0:m.previewedImgPropsRef,handleWheel(C){C.preventDefault()},handlePreviewMousedown:O,handlePreviewDblclick:T,syncTransformOrigin:u,handleAfterLeave:()=>{S(),W=0,s.value=!1},handleDragStart:C=>{var A,M;(M=(A=m==null?void 0:m.previewedImgPropsRef.value)===null||A===void 0?void 0:A.onDragstart)===null||M===void 0||M.call(A,C),C.preventDefault()},zoomIn:et,zoomOut:Dt,handleDownloadClick:vn,rotateCounterclockwise:J,rotateClockwise:re,handleSwitchPrev:I,handleSwitchNext:V,withTooltip:gn,resizeToOrignalImageSize:pn,cssVars:mt?void 0:Ht,themeClass:Be==null?void 0:Be.themeClass,onRender:Be==null?void 0:Be.onRender},Lt)},render(){var e,t;const{clsPrefix:n,renderToolbar:r,withTooltip:o}=this,i=o(w(Pe,{clsPrefix:n,onClick:this.handleSwitchPrev},{default:()=>vp}),"tipPrevious"),a=o(w(Pe,{clsPrefix:n,onClick:this.handleSwitchNext},{default:()=>pp}),"tipNext"),s=o(w(Pe,{clsPrefix:n,onClick:this.rotateCounterclockwise},{default:()=>w(Rv,null)}),"tipCounterclockwise"),l=o(w(Pe,{clsPrefix:n,onClick:this.rotateClockwise},{default:()=>w(_v,null)}),"tipClockwise"),u=o(w(Pe,{clsPrefix:n,onClick:this.resizeToOrignalImageSize},{default:()=>w(Dv,null)}),"tipOriginalSize"),c=o(w(Pe,{clsPrefix:n,onClick:this.zoomOut},{default:()=>w(Iv,null)}),"tipZoomOut"),h=o(w(Pe,{clsPrefix:n,onClick:this.handleDownloadClick},{default:()=>w(zv,null)}),"tipDownload"),v=o(w(Pe,{clsPrefix:n,onClick:this.toggleShow},{default:()=>gp}),"tipClose"),y=o(w(Pe,{clsPrefix:n,onClick:this.zoomIn},{default:()=>w(Bv,null)}),"tipZoomIn");return w(Ae,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),w(ei,{show:this.show},{default:()=>{var d;return this.show||this.displayed?((d=this.onRender)===null||d===void 0||d.call(this),ut(w("div",{class:[`${n}-image-preview-container`,this.themeClass],style:this.cssVars,onWheel:this.handleWheel},w(at,{name:"fade-in-transition",appear:this.appear},{default:()=>this.show?w("div",{class:`${n}-image-preview-overlay`,onClick:this.toggleShow}):null}),this.showToolbar?w(at,{name:"fade-in-transition",appear:this.appear},{default:()=>this.show?w("div",{class:`${n}-image-preview-toolbar`},r?r({nodes:{prev:i,next:a,rotateCounterclockwise:s,rotateClockwise:l,resizeToOriginalSize:u,zoomOut:c,zoomIn:y,download:h,close:v}}):w(Ae,null,this.onPrev?w(Ae,null,i,a):null,s,l,u,c,y,h,v)):null}):null,w(at,{name:"fade-in-scale-up-transition",onAfterLeave:this.handleAfterLeave,appear:this.appear,onEnter:this.syncTransformOrigin,onBeforeLeave:this.syncTransformOrigin},{default:()=>{const{previewedImgProps:b={}}=this;return ut(w("div",{class:`${n}-image-preview-wrapper`,ref:"previewWrapperRef"},w("img",Object.assign({},b,{draggable:!1,onMousedown:this.handlePreviewMousedown,onDblclick:this.handlePreviewDblclick,class:[`${n}-image-preview`,b.class],key:this.previewSrc,src:this.previewSrc,ref:"previewRef",onDragstart:this.handleDragStart}))),[[Do,this.show]])}})),[[rr,{enabled:this.show}]])):null}}))}}),ia="n-image-group",bp=br,Sp=ie({name:"ImageGroup",props:bp,setup(e){let t;const{mergedClsPrefixRef:n}=gt(e),r=`c${ko()}`,o=Qn(),i=l=>{var u;t=l,(u=s.value)===null||u===void 0||u.setPreviewSrc(l)};function a(l){var u,c;if(!(o!=null&&o.proxy))return;const v=o.proxy.$el.parentElement.querySelectorAll(`[data-group-id=${r}]:not([data-error=true])`);if(!v.length)return;const y=Array.from(v).findIndex(d=>d.dataset.previewSrc===t);~y?i(v[(y+l+v.length)%v.length].dataset.previewSrc):i(v[0].dataset.previewSrc),l===1?(u=e.onPreviewNext)===null||u===void 0||u.call(e):(c=e.onPreviewPrev)===null||c===void 0||c.call(e)}Ve(ia,{mergedClsPrefixRef:n,setPreviewSrc:i,setThumbnailEl:l=>{var u;(u=s.value)===null||u===void 0||u.setThumbnailEl(l)},toggleShow:()=>{var l;(l=s.value)===null||l===void 0||l.toggleShow()},groupId:r,renderToolbarRef:ge(e,"renderToolbar")});const s=z(null);return{mergedClsPrefix:n,previewInstRef:s,next:()=>{a(1)},prev:()=>{a(-1)}}},render(){return w(oa,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:this.mergedClsPrefix,ref:"previewInstRef",onPrev:this.prev,onNext:this.next,showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip,renderToolbar:this.renderToolbar},this.$slots)}}),wp=Object.assign({alt:String,height:[String,Number],imgProps:Object,previewedImgProps:Object,lazy:Boolean,intersectionObserverOptions:Object,objectFit:{type:String,default:"fill"},previewSrc:String,fallbackSrc:String,width:[String,Number],src:String,previewDisabled:Boolean,loadDescription:String,onError:Function,onLoad:Function},br),$p=ie({name:"Image",props:wp,inheritAttrs:!1,setup(e){const t=z(null),n=z(!1),r=z(null),o=oe(ia,null),{mergedClsPrefixRef:i}=o||gt(e),a={click:()=>{if(e.previewDisabled||n.value)return;const u=e.previewSrc||e.src;if(o){o.setPreviewSrc(u),o.setThumbnailEl(t.value),o.toggleShow();return}const{value:c}=r;c&&(c.setPreviewSrc(u),c.setThumbnailEl(t.value),c.toggleShow())}},s=z(!e.lazy);ze(()=>{var u;(u=t.value)===null||u===void 0||u.setAttribute("data-group-id",(o==null?void 0:o.groupId)||"")}),ze(()=>{if(e.lazy&&e.intersectionObserverOptions){let u;const c=qe(()=>{u==null||u(),u=void 0,u=Av(t.value,e.intersectionObserverOptions,s)});Te(()=>{c(),u==null||u()})}}),qe(()=>{var u;e.src||((u=e.imgProps)===null||u===void 0||u.src),n.value=!1});const l=z(!1);return Ve(Ji,{previewedImgPropsRef:ge(e,"previewedImgProps")}),Object.assign({mergedClsPrefix:i,groupId:o==null?void 0:o.groupId,previewInstRef:r,imageRef:t,showError:n,shouldStartLoading:s,loaded:l,mergedOnClick:u=>{var c,h;a.click(),(h=(c=e.imgProps)===null||c===void 0?void 0:c.onClick)===null||h===void 0||h.call(c,u)},mergedOnError:u=>{if(!s.value)return;n.value=!0;const{onError:c,imgProps:{onError:h}={}}=e;c==null||c(u),h==null||h(u)},mergedOnLoad:u=>{const{onLoad:c,imgProps:{onLoad:h}={}}=e;c==null||c(u),h==null||h(u),l.value=!0}},a)},render(){var e,t;const{mergedClsPrefix:n,imgProps:r={},loaded:o,$attrs:i,lazy:a}=this,s=(t=(e=this.$slots).placeholder)===null||t===void 0?void 0:t.call(e),l=this.src||r.src,u=w("img",Object.assign(Object.assign({},r),{ref:"imageRef",width:this.width||r.width,height:this.height||r.height,src:this.showError?this.fallbackSrc:a&&this.intersectionObserverOptions?this.shouldStartLoading?l:void 0:l,alt:this.alt||r.alt,"aria-label":this.alt||r.alt,onClick:this.mergedOnClick,onError:this.mergedOnError,onLoad:this.mergedOnLoad,loading:ya&&a&&!this.intersectionObserverOptions?"lazy":"eager",style:[r.style||"",s&&!o?{height:"0",width:"0",visibility:"hidden"}:"",{objectFit:this.objectFit}],"data-error":this.showError,"data-preview-src":this.previewSrc||this.src}));return w("div",Object.assign({},i,{role:"none",class:[i.class,`${n}-image`,(this.previewDisabled||this.showError)&&`${n}-image--preview-disabled`]}),this.groupId?u:w(oa,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:n,ref:"previewInstRef",showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip,renderToolbar:this.renderToolbar},{default:()=>u,toolbar:()=>{var c,h;return(h=(c=this.$slots).toolbar)===null||h===void 0?void 0:h.call(c)}}),!o&&s)}});export{$p as NImage,Sp as NImageGroup,bp as imageGroupProps,wp as imageProps};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as e,c as a,o as t,a8 as i}from"./chunks/framework.DAuRlsJR.js";const m=JSON.parse('{"title":"快照审查","description":"","frontmatter":{},"headers":[],"relativePath":"guide/snapshot.md","filePath":"guide/snapshot.md","lastUpdated":1721996725000}'),o={name:"guide/snapshot.md"},s=i('<h1 id="title" tabindex="-1">快照审查 <a class="header-anchor" href="#title" aria-label="Permalink to "快照审查 {#title}""></a></h1><p>关于快照的一些知识</p><h2 id="what-is-snapshot" tabindex="-1">什么是快照 <a class="header-anchor" href="#what-is-snapshot" aria-label="Permalink to "什么是快照 {#what-is-snapshot}""></a></h2><p>快照是一个 zip 文件, 保存了设备在某个时间点的状态, 包含以下内容</p><ul><li>截图</li><li>设备信息</li><li>界面信息</li><li>无障碍节点信息</li></ul><p>以前开发者和用户必须下载指定应用然后到指定界面使用类似 autojs 之类的界面才能审查界面</p><p>有了快照之后, 用户只需要在指定页面抓取快照分享给开发者即可</p><p>另外对于某些出现频率极低的界面, 快照也能直接保留这些界面的状态, 无需每次等待出现</p><h2 id="capture-snapshot" tabindex="-1">抓取快照 <a class="header-anchor" href="#capture-snapshot" aria-label="Permalink to "抓取快照 {#capture-snapshot}""></a></h2><p>在 GKD 内可以通过多种方式抓取快照, 需要一些前置条件</p><p>抓取快照时必须<strong>开启无障碍权限</strong>, 否则无法获取 界面信息 和 无障碍节点信息</p><p>如果你的设备满足 Android>=11, GKD 可以通过 无障碍权限 获取截图, 否则需要额外开启截屏服务</p><p>到 <code>主页-设置-高级模式-截屏服务</code> 开启即可</p><p>当 Android<=10 且不开启截屏服务时 GKD 会使用 同尺寸透明图片 作为截图保存到快照里</p><p>以下是抓取快照的方式</p><h3 id="by-button" tabindex="-1">通过悬浮窗按钮 <a class="header-anchor" href="#by-button" aria-label="Permalink to "通过悬浮窗按钮 {#by-button}""></a></h3><p>打开 <code>主页-设置-高级模式-悬浮窗服务</code> 后界面会出现一个可拖动的按钮, 在任意界面点击这个按钮即可抓取快照</p><h3 id="by-tile" tabindex="-1">通过快捷开关 <a class="header-anchor" href="#by-tile" aria-label="Permalink to "通过快捷开关 {#by-tile}""></a></h3><p>下拉打开状态栏, 左右滑动切换到有图标的界面, 点击添加或编辑, 在应用快捷开关找到 <code>捕获快照</code>, 图标和上面介绍的悬浮窗按钮一样</p><p>添加这个快捷开关到状态栏界面, 添加完毕后在任意界面下拉状态栏点击这个图标即可抓取快照</p><h3 id="by-volume" tabindex="-1">通过音量快照 <a class="header-anchor" href="#by-volume" aria-label="Permalink to "通过音量快照 {#by-volume}""></a></h3><p>打开 <code>主页-设置-高级模式-音量快照</code>, 当音量变化时会抓取当前快照</p><h3 id="by-screenshot" tabindex="-1">通过截屏快照 <a class="header-anchor" href="#by-screenshot" aria-label="Permalink to "通过截屏快照 {#by-screenshot}""></a></h3><p>打开 <code>主页-设置-高级模式-截屏快照</code>, 某些手机截屏时会发出特殊的事件, GKD 可以抓取这些事件后触发抓取快照</p><h3 id="by-inspect" tabindex="-1">通过审查工具 <a class="header-anchor" href="#by-inspect" aria-label="Permalink to "通过审查工具 {#by-inspect}""></a></h3><p>首先打开 <code>主页-设置-高级模式-HTTP服务</code>, 在 <a href="https://i.gkd.li/device" target="_blank" rel="noreferrer">连接设备</a> 输入刚刚出现的地址后连接</p><p>连接成功后点击右侧的 <code>快照</code> 按钮即可抓取快照</p><h3 id="by-invoke-service" tabindex="-1">通过调用服务 <a class="header-anchor" href="#by-invoke-service" aria-label="Permalink to "通过调用服务 {#by-invoke-service}""></a></h3><p>GKD 内部暴露了一个服务, 外部应用(某些快捷手势应用)可以启动这个服务, 启动后将抓取当前界面的快照, 它的路径是</p><div class="language-text vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">text</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span>li.songe.gkd.SnapshotActionService</span></span></code></pre></div><h2 id="share-snapshot" tabindex="-1">分享快照 <a class="header-anchor" href="#share-snapshot" aria-label="Permalink to "分享快照 {#share-snapshot}""></a></h2><p>快照的一个好处在于可以分享并在线打开, 这可以更好地展示你的问题来获取别人的帮助</p><p>GKD 没有自己的文件存储服务器, 所有的快照都借助 Github 存储</p><p>例如快照 <a href="https://i.gkd.li/i/16235400" target="_blank" rel="noreferrer">https://i.gkd.li/i/16235400</a> 中的 <code>16235400</code> 实际指向了 Github 上的一个文件, 它的链接如下</p><div class="language-txt vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">txt</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span>https://github.com/user-attachments/files/16235400/file.zip</span></span></code></pre></div><p>当你使用审查工具生成快照时, 审查工具会自动帮你上传文件到 Github 后得到链接, 相当于自动化以下行为</p><ul><li>从审查工具下载快照为 file.zip 文件到电脑上</li><li>登录 Github 并转到任意能上传文件或者评论的公开页面</li><li>将刚刚的文件拖动进输入框, 文件链接会自动生成</li></ul><p>其中使用到的工具库为</p><ul><li><a href="https://github.com/gkd-kit/network-extension" target="_blank" rel="noreferrer">network-extension</a></li><li><a href="https://github.com/lisonge/user-attachments" target="_blank" rel="noreferrer">user-attachments</a></li></ul><h2 id="rm-privacy-info" tabindex="-1">去除快照中的隐私信息 <a class="header-anchor" href="#rm-privacy-info" aria-label="Permalink to "去除快照中的隐私信息 {#rm-privacy-info}""></a></h2><p>当抓取快照时, 图片中可能含有人的名字等敏感信息, 可能需要去除这些信息</p><p>在 GKD 的快照记录界面, 你可以先将快照图片保存到相册, 然后在相册做打马赛克之类的编辑, 之后回到记录界面替换截图即可</p><p>如果敏感信息是文字保留在快照里的节点信息上, 你需要将快照 zip 文件解压缩, 内部有一个 json 文件</p><p>节点信息就在 nodes 数组字段上, 可以直接使用文本替换为等价数量的 <code>*</code>, 修改文件后重新压缩为 zip 重新导入快照即可</p>',44),r=[s];function n(p,l,h,c,d,u){return t(),a("div",null,r)}const k=e(o,[["render",n]]);export{m as __pageData,k as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as e,c as a,o as t,a8 as i}from"./chunks/framework.DAuRlsJR.js";const m=JSON.parse('{"title":"快照审查","description":"","frontmatter":{},"headers":[],"relativePath":"guide/snapshot.md","filePath":"guide/snapshot.md","lastUpdated":1721996725000}'),o={name:"guide/snapshot.md"},s=i("",44),r=[s];function n(p,l,h,c,d,u){return t(),a("div",null,r)}const k=e(o,[["render",n]]);export{m as __pageData,k as default};
|