mirror of
https://github.com/vastxie/99AI.git
synced 2025-09-25 21:06:37 +08:00
2362 lines
1.0 MiB
2362 lines
1.0 MiB
var m6=Object.defineProperty;var v6=(e,t,r)=>t in e?m6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Xm=(e,t,r)=>(v6(e,typeof t!="symbol"?t+"":t,r),r);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}})();/**
|
||
* @vue/shared v3.4.21
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/function ad(e,t){const r=new Set(e.split(","));return t?n=>r.has(n.toLowerCase()):n=>r.has(n)}const Vt={},Ba=[],tn=()=>{},b6=()=>!1,sd=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),jp=e=>e.startsWith("onUpdate:"),pr=Object.assign,Wp=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},x6=Object.prototype.hasOwnProperty,bt=(e,t)=>x6.call(e,t),Xe=Array.isArray,Da=e=>ld(e)==="[object Map]",nw=e=>ld(e)==="[object Set]",rt=e=>typeof e=="function",ar=e=>typeof e=="string",fs=e=>typeof e=="symbol",Ht=e=>e!==null&&typeof e=="object",ow=e=>(Ht(e)||rt(e))&&rt(e.then)&&rt(e.catch),iw=Object.prototype.toString,ld=e=>iw.call(e),y6=e=>ld(e).slice(8,-1),aw=e=>ld(e)==="[object Object]",Up=e=>ar(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,qs=ad(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),cd=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},C6=/-(\w)/g,Qn=cd(e=>e.replace(C6,(t,r)=>r?r.toUpperCase():"")),w6=/\B([A-Z])/g,Gi=cd(e=>e.replace(w6,"-$1").toLowerCase()),ud=cd(e=>e.charAt(0).toUpperCase()+e.slice(1)),bf=cd(e=>e?`on${ud(e)}`:""),Xo=(e,t)=>!Object.is(e,t),tu=(e,t)=>{for(let r=0;r<e.length;r++)e[r](t)},_u=(e,t,r)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})},lh=e=>{const t=parseFloat(e);return isNaN(t)?e:t},S6=e=>{const t=ar(e)?Number(e):NaN;return isNaN(t)?e:t};let Zm;const sw=()=>Zm||(Zm=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Bn(e){if(Xe(e)){const t={};for(let r=0;r<e.length;r++){const n=e[r],o=ar(n)?k6(n):Bn(n);if(o)for(const i in o)t[i]=o[i]}return t}else if(ar(e)||Ht(e))return e}const _6=/;(?![^(]*\))/g,E6=/:([^]+)/,T6=/\/\*[^]*?\*\//g;function k6(e){const t={};return e.replace(T6,"").split(_6).forEach(r=>{if(r){const n=r.split(E6);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Jt(e){let t="";if(ar(e))t=e;else if(Xe(e))for(let r=0;r<e.length;r++){const n=Jt(e[r]);n&&(t+=n+" ")}else if(Ht(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}const A6="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",P6=ad(A6),$6="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",I6=ad($6);function lw(e){return!!e||e===""}const Qt=e=>ar(e)?e:e==null?"":Xe(e)||Ht(e)&&(e.toString===iw||!rt(e.toString))?JSON.stringify(e,cw,2):String(e),cw=(e,t)=>t&&t.__v_isRef?cw(e,t.value):Da(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,o],i)=>(r[xf(n,i)+" =>"]=o,r),{})}:nw(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>xf(r))}:fs(t)?xf(t):Ht(t)&&!Xe(t)&&!aw(t)?String(t):t,xf=(e,t="")=>{var r;return fs(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};/**
|
||
* @vue/reactivity v3.4.21
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/let en;class uw{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=en,!t&&en&&(this.index=(en.scopes||(en.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const r=en;try{return en=this,t()}finally{en=r}}}on(){en=this}off(){en=this.parent}stop(t){if(this._active){let r,n;for(r=0,n=this.effects.length;r<n;r++)this.effects[r].stop();for(r=0,n=this.cleanups.length;r<n;r++)this.cleanups[r]();if(this.scopes)for(r=0,n=this.scopes.length;r<n;r++)this.scopes[r].stop(!0);if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0,this._active=!1}}}function Vp(e){return new uw(e)}function B6(e,t=en){t&&t.active&&t.effects.push(e)}function dd(){return en}function qp(e){en&&en.cleanups.push(e)}let Oi;class Gp{constructor(t,r,n,o){this.fn=t,this.trigger=r,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,B6(this,o)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,Yi();for(let t=0;t<this._depsLength;t++){const r=this.deps[t];if(r.computed&&(D6(r.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Ki()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=qo,r=Oi;try{return qo=!0,Oi=this,this._runnings++,Qm(this),this.fn()}finally{Jm(this),this._runnings--,Oi=r,qo=t}}stop(){var t;this.active&&(Qm(this),Jm(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function D6(e){return e.value}function Qm(e){e._trackId++,e._depsLength=0}function Jm(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)dw(e.deps[t],e);e.deps.length=e._depsLength}}function dw(e,t){const r=e.get(t);r!==void 0&&t._trackId!==r&&(e.delete(t),e.size===0&&e.cleanup())}let qo=!0,ch=0;const fw=[];function Yi(){fw.push(qo),qo=!1}function Ki(){const e=fw.pop();qo=e===void 0?!0:e}function Yp(){ch++}function Kp(){for(ch--;!ch&&uh.length;)uh.shift()()}function hw(e,t,r){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&dw(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}const uh=[];function pw(e,t,r){Yp();for(const n of e.keys()){let o;n._dirtyLevel<t&&(o??(o=e.get(n)===n._trackId))&&(n._shouldSchedule||(n._shouldSchedule=n._dirtyLevel===0),n._dirtyLevel=t),n._shouldSchedule&&(o??(o=e.get(n)===n._trackId))&&(n.trigger(),(!n._runnings||n.allowRecurse)&&n._dirtyLevel!==2&&(n._shouldSchedule=!1,n.scheduler&&uh.push(n.scheduler)))}Kp()}const gw=(e,t)=>{const r=new Map;return r.cleanup=e,r.computed=t,r},Eu=new WeakMap,Ri=Symbol(""),dh=Symbol("");function Kr(e,t,r){if(qo&&Oi){let n=Eu.get(e);n||Eu.set(e,n=new Map);let o=n.get(r);o||n.set(r,o=gw(()=>n.delete(r))),hw(Oi,o)}}function ho(e,t,r,n,o,i){const a=Eu.get(e);if(!a)return;let s=[];if(t==="clear")s=[...a.values()];else if(r==="length"&&Xe(e)){const l=Number(n);a.forEach((c,u)=>{(u==="length"||!fs(u)&&u>=l)&&s.push(c)})}else switch(r!==void 0&&s.push(a.get(r)),t){case"add":Xe(e)?Up(r)&&s.push(a.get("length")):(s.push(a.get(Ri)),Da(e)&&s.push(a.get(dh)));break;case"delete":Xe(e)||(s.push(a.get(Ri)),Da(e)&&s.push(a.get(dh)));break;case"set":Da(e)&&s.push(a.get(Ri));break}Yp();for(const l of s)l&&pw(l,4);Kp()}function O6(e,t){var r;return(r=Eu.get(e))==null?void 0:r.get(t)}const R6=ad("__proto__,__v_isRef,__isVue"),mw=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(fs)),ev=L6();function L6(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...r){const n=ft(this);for(let i=0,a=this.length;i<a;i++)Kr(n,"get",i+"");const o=n[t](...r);return o===-1||o===!1?n[t](...r.map(ft)):o}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...r){Yi(),Yp();const n=ft(this)[t].apply(this,r);return Kp(),Ki(),n}}),e}function F6(e){const t=ft(this);return Kr(t,"has",e),t.hasOwnProperty(e)}class vw{constructor(t=!1,r=!1){this._isReadonly=t,this._isShallow=r}get(t,r,n){const o=this._isReadonly,i=this._isShallow;if(r==="__v_isReactive")return!o;if(r==="__v_isReadonly")return o;if(r==="__v_isShallow")return i;if(r==="__v_raw")return n===(o?i?X6:Cw:i?yw:xw).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const a=Xe(t);if(!o){if(a&&bt(ev,r))return Reflect.get(ev,r,n);if(r==="hasOwnProperty")return F6}const s=Reflect.get(t,r,n);return(fs(r)?mw.has(r):R6(r))||(o||Kr(t,"get",r),i)?s:sr(s)?a&&Up(r)?s:s.value:Ht(s)?o?vn(s):Cn(s):s}}class bw extends vw{constructor(t=!1){super(!1,t)}set(t,r,n,o){let i=t[r];if(!this._isShallow){const l=ja(i);if(!Tu(n)&&!ja(n)&&(i=ft(i),n=ft(n)),!Xe(t)&&sr(i)&&!sr(n))return l?!1:(i.value=n,!0)}const a=Xe(t)&&Up(r)?Number(r)<t.length:bt(t,r),s=Reflect.set(t,r,n,o);return t===ft(o)&&(a?Xo(n,i)&&ho(t,"set",r,n):ho(t,"add",r,n)),s}deleteProperty(t,r){const n=bt(t,r);t[r];const o=Reflect.deleteProperty(t,r);return o&&n&&ho(t,"delete",r,void 0),o}has(t,r){const n=Reflect.has(t,r);return(!fs(r)||!mw.has(r))&&Kr(t,"has",r),n}ownKeys(t){return Kr(t,"iterate",Xe(t)?"length":Ri),Reflect.ownKeys(t)}}class M6 extends vw{constructor(t=!1){super(!0,t)}set(t,r){return!0}deleteProperty(t,r){return!0}}const z6=new bw,N6=new M6,H6=new bw(!0),Xp=e=>e,fd=e=>Reflect.getPrototypeOf(e);function mc(e,t,r=!1,n=!1){e=e.__v_raw;const o=ft(e),i=ft(t);r||(Xo(t,i)&&Kr(o,"get",t),Kr(o,"get",i));const{has:a}=fd(o),s=n?Xp:r?Jp:gl;if(a.call(o,t))return s(e.get(t));if(a.call(o,i))return s(e.get(i));e!==o&&e.get(t)}function vc(e,t=!1){const r=this.__v_raw,n=ft(r),o=ft(e);return t||(Xo(e,o)&&Kr(n,"has",e),Kr(n,"has",o)),e===o?r.has(e):r.has(e)||r.has(o)}function bc(e,t=!1){return e=e.__v_raw,!t&&Kr(ft(e),"iterate",Ri),Reflect.get(e,"size",e)}function tv(e){e=ft(e);const t=ft(this);return fd(t).has.call(t,e)||(t.add(e),ho(t,"add",e,e)),this}function rv(e,t){t=ft(t);const r=ft(this),{has:n,get:o}=fd(r);let i=n.call(r,e);i||(e=ft(e),i=n.call(r,e));const a=o.call(r,e);return r.set(e,t),i?Xo(t,a)&&ho(r,"set",e,t):ho(r,"add",e,t),this}function nv(e){const t=ft(this),{has:r,get:n}=fd(t);let o=r.call(t,e);o||(e=ft(e),o=r.call(t,e)),n&&n.call(t,e);const i=t.delete(e);return o&&ho(t,"delete",e,void 0),i}function ov(){const e=ft(this),t=e.size!==0,r=e.clear();return t&&ho(e,"clear",void 0,void 0),r}function xc(e,t){return function(n,o){const i=this,a=i.__v_raw,s=ft(a),l=t?Xp:e?Jp:gl;return!e&&Kr(s,"iterate",Ri),a.forEach((c,u)=>n.call(o,l(c),l(u),i))}}function yc(e,t,r){return function(...n){const o=this.__v_raw,i=ft(o),a=Da(i),s=e==="entries"||e===Symbol.iterator&&a,l=e==="keys"&&a,c=o[e](...n),u=r?Xp:t?Jp:gl;return!t&&Kr(i,"iterate",l?dh:Ri),{next(){const{value:d,done:f}=c.next();return f?{value:d,done:f}:{value:s?[u(d[0]),u(d[1])]:u(d),done:f}},[Symbol.iterator](){return this}}}}function Ao(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function j6(){const e={get(i){return mc(this,i)},get size(){return bc(this)},has:vc,add:tv,set:rv,delete:nv,clear:ov,forEach:xc(!1,!1)},t={get(i){return mc(this,i,!1,!0)},get size(){return bc(this)},has:vc,add:tv,set:rv,delete:nv,clear:ov,forEach:xc(!1,!0)},r={get(i){return mc(this,i,!0)},get size(){return bc(this,!0)},has(i){return vc.call(this,i,!0)},add:Ao("add"),set:Ao("set"),delete:Ao("delete"),clear:Ao("clear"),forEach:xc(!0,!1)},n={get(i){return mc(this,i,!0,!0)},get size(){return bc(this,!0)},has(i){return vc.call(this,i,!0)},add:Ao("add"),set:Ao("set"),delete:Ao("delete"),clear:Ao("clear"),forEach:xc(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=yc(i,!1,!1),r[i]=yc(i,!0,!1),t[i]=yc(i,!1,!0),n[i]=yc(i,!0,!0)}),[e,r,t,n]}const[W6,U6,V6,q6]=j6();function Zp(e,t){const r=t?e?q6:V6:e?U6:W6;return(n,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?n:Reflect.get(bt(r,o)&&o in n?r:n,o,i)}const G6={get:Zp(!1,!1)},Y6={get:Zp(!1,!0)},K6={get:Zp(!0,!1)},xw=new WeakMap,yw=new WeakMap,Cw=new WeakMap,X6=new WeakMap;function Z6(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Q6(e){return e.__v_skip||!Object.isExtensible(e)?0:Z6(y6(e))}function Cn(e){return ja(e)?e:Qp(e,!1,z6,G6,xw)}function ww(e){return Qp(e,!1,H6,Y6,yw)}function vn(e){return Qp(e,!0,N6,K6,Cw)}function Qp(e,t,r,n,o){if(!Ht(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=o.get(e);if(i)return i;const a=Q6(e);if(a===0)return e;const s=new Proxy(e,a===2?n:r);return o.set(e,s),s}function Go(e){return ja(e)?Go(e.__v_raw):!!(e&&e.__v_isReactive)}function ja(e){return!!(e&&e.__v_isReadonly)}function Tu(e){return!!(e&&e.__v_isShallow)}function Sw(e){return Go(e)||ja(e)}function ft(e){const t=e&&e.__v_raw;return t?ft(t):e}function Wa(e){return Object.isExtensible(e)&&_u(e,"__v_skip",!0),e}const gl=e=>Ht(e)?Cn(e):e,Jp=e=>Ht(e)?vn(e):e;class _w{constructor(t,r,n,o){this.getter=t,this._setter=r,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Gp(()=>t(this._value),()=>Gs(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=n}get value(){const t=ft(this);return(!t._cacheable||t.effect.dirty)&&Xo(t._value,t._value=t.effect.run())&&Gs(t,4),eg(t),t.effect._dirtyLevel>=2&&Gs(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function J6(e,t,r=!1){let n,o;const i=rt(e);return i?(n=e,o=tn):(n=e.get,o=e.set),new _w(n,o,i||!o,r)}function eg(e){var t;qo&&Oi&&(e=ft(e),hw(Oi,(t=e.dep)!=null?t:e.dep=gw(()=>e.dep=void 0,e instanceof _w?e:void 0)))}function Gs(e,t=4,r){e=ft(e);const n=e.dep;n&&pw(n,t)}function sr(e){return!!(e&&e.__v_isRef===!0)}function z(e){return Ew(e,!1)}function vo(e){return Ew(e,!0)}function Ew(e,t){return sr(e)?e:new eT(e,t)}class eT{constructor(t,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?t:ft(t),this._value=r?t:gl(t)}get value(){return eg(this),this._value}set value(t){const r=this.__v_isShallow||Tu(t)||ja(t);t=r?t:ft(t),Xo(t,this._rawValue)&&(this._rawValue=t,this._value=r?t:gl(t),Gs(this,4))}}function W(e){return sr(e)?e.value:e}const tT={get:(e,t,r)=>W(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const o=e[t];return sr(o)&&!sr(r)?(o.value=r,!0):Reflect.set(e,t,r,n)}};function Tw(e){return Go(e)?e:new Proxy(e,tT)}class rT{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:r,set:n}=t(()=>eg(this),()=>Gs(this));this._get=r,this._set=n}get value(){return this._get()}set value(t){this._set(t)}}function nT(e){return new rT(e)}function oT(e){const t=Xe(e)?new Array(e.length):{};for(const r in e)t[r]=kw(e,r);return t}class iT{constructor(t,r,n){this._object=t,this._key=r,this._defaultValue=n,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return O6(ft(this._object),this._key)}}class aT{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function nt(e,t,r){return sr(e)?e:rt(e)?new aT(e):Ht(e)&&arguments.length>1?kw(e,t,r):z(e)}function kw(e,t,r){const n=e[t];return sr(n)?n:new iT(e,t,r)}/**
|
||
* @vue/runtime-core v3.4.21
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/function Yo(e,t,r,n){try{return n?e(...n):e()}catch(o){Gl(o,t,r)}}function gn(e,t,r,n){if(rt(e)){const i=Yo(e,t,r,n);return i&&ow(i)&&i.catch(a=>{Gl(a,t,r)}),i}const o=[];for(let i=0;i<e.length;i++)o.push(gn(e[i],t,r,n));return o}function Gl(e,t,r,n=!0){const o=t?t.vnode:null;if(t){let i=t.parent;const a=t.proxy,s=`https://vuejs.org/error-reference/#runtime-${r}`;for(;i;){const c=i.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](e,a,s)===!1)return}i=i.parent}const l=t.appContext.config.errorHandler;if(l){Yo(l,null,10,[e,a,s]);return}}sT(e,r,o,n)}function sT(e,t,r,n=!0){console.error(e)}let ml=!1,fh=!1;const Or=[];let Vn=0;const Oa=[];let Mo=null,Si=0;const Aw=Promise.resolve();let tg=null;function zt(e){const t=tg||Aw;return e?t.then(this?e.bind(this):e):t}function lT(e){let t=Vn+1,r=Or.length;for(;t<r;){const n=t+r>>>1,o=Or[n],i=vl(o);i<e||i===e&&o.pre?t=n+1:r=n}return t}function hd(e){(!Or.length||!Or.includes(e,ml&&e.allowRecurse?Vn+1:Vn))&&(e.id==null?Or.push(e):Or.splice(lT(e.id),0,e),Pw())}function Pw(){!ml&&!fh&&(fh=!0,tg=Aw.then(Iw))}function cT(e){const t=Or.indexOf(e);t>Vn&&Or.splice(t,1)}function uT(e){Xe(e)?Oa.push(...e):(!Mo||!Mo.includes(e,e.allowRecurse?Si+1:Si))&&Oa.push(e),Pw()}function iv(e,t,r=ml?Vn+1:0){for(;r<Or.length;r++){const n=Or[r];if(n&&n.pre){if(e&&n.id!==e.uid)continue;Or.splice(r,1),r--,n()}}}function $w(e){if(Oa.length){const t=[...new Set(Oa)].sort((r,n)=>vl(r)-vl(n));if(Oa.length=0,Mo){Mo.push(...t);return}for(Mo=t,Si=0;Si<Mo.length;Si++)Mo[Si]();Mo=null,Si=0}}const vl=e=>e.id==null?1/0:e.id,dT=(e,t)=>{const r=vl(e)-vl(t);if(r===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return r};function Iw(e){fh=!1,ml=!0,Or.sort(dT);const t=tn;try{for(Vn=0;Vn<Or.length;Vn++){const r=Or[Vn];r&&r.active!==!1&&Yo(r,null,14)}}finally{Vn=0,Or.length=0,$w(),ml=!1,tg=null,(Or.length||Oa.length)&&Iw()}}function fT(e,t,...r){if(e.isUnmounted)return;const n=e.vnode.props||Vt;let o=r;const i=t.startsWith("update:"),a=i&&t.slice(7);if(a&&a in n){const u=`${a==="modelValue"?"model":a}Modifiers`,{number:d,trim:f}=n[u]||Vt;f&&(o=r.map(p=>ar(p)?p.trim():p)),d&&(o=r.map(lh))}let s,l=n[s=bf(t)]||n[s=bf(Qn(t))];!l&&i&&(l=n[s=bf(Gi(t))]),l&&gn(l,e,6,o);const c=n[s+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,gn(c,e,6,o)}}function Bw(e,t,r=!1){const n=t.emitsCache,o=n.get(e);if(o!==void 0)return o;const i=e.emits;let a={},s=!1;if(!rt(e)){const l=c=>{const u=Bw(c,t,!0);u&&(s=!0,pr(a,u))};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!s?(Ht(e)&&n.set(e,null),null):(Xe(i)?i.forEach(l=>a[l]=null):pr(a,i),Ht(e)&&n.set(e,a),a)}function pd(e,t){return!e||!sd(t)?!1:(t=t.slice(2).replace(/Once$/,""),bt(e,t[0].toLowerCase()+t.slice(1))||bt(e,Gi(t))||bt(e,t))}let hr=null,gd=null;function ku(e){const t=hr;return hr=e,gd=e&&e.type.__scopeId||null,t}function Bde(e){gd=e}function Dde(){gd=null}function de(e,t=hr,r){if(!t||e._n)return e;const n=(...o)=>{n._d&&xv(-1);const i=ku(t);let a;try{a=e(...o)}finally{ku(i),n._d&&xv(1)}return a};return n._n=!0,n._c=!0,n._d=!0,n}function yf(e){const{type:t,vnode:r,proxy:n,withProxy:o,props:i,propsOptions:[a],slots:s,attrs:l,emit:c,render:u,renderCache:d,data:f,setupState:p,ctx:h,inheritAttrs:g}=e;let v,m;const b=ku(e);try{if(r.shapeFlag&4){const y=o||n,w=y;v=Wn(u.call(w,y,d,i,p,f,h)),m=l}else{const y=t;v=Wn(y.length>1?y(i,{attrs:l,slots:s,emit:c}):y(i,null)),m=t.props?l:hT(l)}}catch(y){Zs.length=0,Gl(y,e,1),v=te(Lr)}let x=v;if(m&&g!==!1){const y=Object.keys(m),{shapeFlag:w}=x;y.length&&w&7&&(a&&y.some(jp)&&(m=pT(m,a)),x=on(x,m))}return r.dirs&&(x=on(x),x.dirs=x.dirs?x.dirs.concat(r.dirs):r.dirs),r.transition&&(x.transition=r.transition),v=x,ku(b),v}const hT=e=>{let t;for(const r in e)(r==="class"||r==="style"||sd(r))&&((t||(t={}))[r]=e[r]);return t},pT=(e,t)=>{const r={};for(const n in e)(!jp(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function gT(e,t,r){const{props:n,children:o,component:i}=e,{props:a,children:s,patchFlag:l}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&l>=0){if(l&1024)return!0;if(l&16)return n?av(n,a,c):!!a;if(l&8){const u=t.dynamicProps;for(let d=0;d<u.length;d++){const f=u[d];if(a[f]!==n[f]&&!pd(c,f))return!0}}}else return(o||s)&&(!s||!s.$stable)?!0:n===a?!1:n?a?av(n,a,c):!0:!!a;return!1}function av(e,t,r){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let o=0;o<n.length;o++){const i=n[o];if(t[i]!==e[i]&&!pd(r,i))return!0}return!1}function mT({vnode:e,parent:t},r){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.el=e.el),n===e)(e=t.vnode).el=r,t=t.parent;else break}}const rg="components",vT="directives";function Au(e,t){return ng(rg,e,!0,t)||e}const Dw=Symbol.for("v-ndc");function Ow(e){return ar(e)?ng(rg,e,!1)||e:e||Dw}function bT(e){return ng(vT,e)}function ng(e,t,r=!0,n=!1){const o=hr||xr;if(o){const i=o.type;if(e===rg){const s=dk(i,!1);if(s&&(s===t||s===Qn(t)||s===ud(Qn(t))))return i}const a=sv(o[e]||i[e],t)||sv(o.appContext[e],t);return!a&&n?i:a}}function sv(e,t){return e&&(e[t]||e[Qn(t)]||e[ud(Qn(t))])}const xT=e=>e.__isSuspense;function yT(e,t){t&&t.pendingBranch?Xe(e)?t.effects.push(...e):t.effects.push(e):uT(e)}const CT=Symbol.for("v-scx"),wT=()=>Me(CT);function $r(e,t){return og(e,null,t)}const Cc={};function Ye(e,t,r){return og(e,t,r)}function og(e,t,{immediate:r,deep:n,flush:o,once:i,onTrack:a,onTrigger:s}=Vt){if(t&&i){const C=t;t=(...S)=>{C(...S),w()}}const l=xr,c=C=>n===!0?C:ki(C,n===!1?1:void 0);let u,d=!1,f=!1;if(sr(e)?(u=()=>e.value,d=Tu(e)):Go(e)?(u=()=>c(e),d=!0):Xe(e)?(f=!0,d=e.some(C=>Go(C)||Tu(C)),u=()=>e.map(C=>{if(sr(C))return C.value;if(Go(C))return c(C);if(rt(C))return Yo(C,l,2)})):rt(e)?t?u=()=>Yo(e,l,2):u=()=>(p&&p(),gn(e,l,3,[h])):u=tn,t&&n){const C=u;u=()=>ki(C())}let p,h=C=>{p=x.onStop=()=>{Yo(C,l,4),p=x.onStop=void 0}},g;if(Xl)if(h=tn,t?r&&gn(t,l,3,[u(),f?[]:void 0,h]):u(),o==="sync"){const C=wT();g=C.__watcherHandles||(C.__watcherHandles=[])}else return tn;let v=f?new Array(e.length).fill(Cc):Cc;const m=()=>{if(!(!x.active||!x.dirty))if(t){const C=x.run();(n||d||(f?C.some((S,T)=>Xo(S,v[T])):Xo(C,v)))&&(p&&p(),gn(t,l,3,[C,v===Cc?void 0:f&&v[0]===Cc?[]:v,h]),v=C)}else x.run()};m.allowRecurse=!!t;let b;o==="sync"?b=m:o==="post"?b=()=>qr(m,l&&l.suspense):(m.pre=!0,l&&(m.id=l.uid),b=()=>hd(m));const x=new Gp(u,tn,b),y=dd(),w=()=>{x.stop(),y&&Wp(y.effects,x)};return t?r?m():v=x.run():o==="post"?qr(x.run.bind(x),l&&l.suspense):x.run(),g&&g.push(w),w}function ST(e,t,r){const n=this.proxy,o=ar(e)?e.includes(".")?Rw(n,e):()=>n[e]:e.bind(n,n);let i;rt(t)?i=t:(i=t.handler,r=t);const a=Kl(this),s=og(o,i.bind(n),r);return a(),s}function Rw(e,t){const r=t.split(".");return()=>{let n=e;for(let o=0;o<r.length&&n;o++)n=n[r[o]];return n}}function ki(e,t,r=0,n){if(!Ht(e)||e.__v_skip)return e;if(t&&t>0){if(r>=t)return e;r++}if(n=n||new Set,n.has(e))return e;if(n.add(e),sr(e))ki(e.value,t,r,n);else if(Xe(e))for(let o=0;o<e.length;o++)ki(e[o],t,r,n);else if(nw(e)||Da(e))e.forEach(o=>{ki(o,t,r,n)});else if(aw(e))for(const o in e)ki(e[o],t,r,n);return e}function bn(e,t){if(hr===null)return e;const r=xd(hr)||hr.proxy,n=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[i,a,s,l=Vt]=t[o];i&&(rt(i)&&(i={mounted:i,updated:i}),i.deep&&ki(a),n.push({dir:i,instance:r,value:a,oldValue:void 0,arg:s,modifiers:l}))}return e}function pi(e,t,r,n){const o=e.dirs,i=t&&t.dirs;for(let a=0;a<o.length;a++){const s=o[a];i&&(s.oldValue=i[a].value);let l=s.dir[n];l&&(Yi(),gn(l,r,8,[e.el,s,e,t]),Ki())}}const zo=Symbol("_leaveCb"),wc=Symbol("_enterCb");function Lw(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return St(()=>{e.isMounted=!0}),Kt(()=>{e.isUnmounting=!0}),e}const cn=[Function,Array],Fw={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:cn,onEnter:cn,onAfterEnter:cn,onEnterCancelled:cn,onBeforeLeave:cn,onLeave:cn,onAfterLeave:cn,onLeaveCancelled:cn,onBeforeAppear:cn,onAppear:cn,onAfterAppear:cn,onAppearCancelled:cn},_T={name:"BaseTransition",props:Fw,setup(e,{slots:t}){const r=Er(),n=Lw();return()=>{const o=t.default&&ig(t.default(),!0);if(!o||!o.length)return;let i=o[0];if(o.length>1){for(const f of o)if(f.type!==Lr){i=f;break}}const a=ft(e),{mode:s}=a;if(n.isLeaving)return Cf(i);const l=lv(i);if(!l)return Cf(i);const c=bl(l,a,n,r);xl(l,c);const u=r.subTree,d=u&&lv(u);if(d&&d.type!==Lr&&!_i(l,d)){const f=bl(d,a,n,r);if(xl(d,f),s==="out-in")return n.isLeaving=!0,f.afterLeave=()=>{n.isLeaving=!1,r.update.active!==!1&&(r.effect.dirty=!0,r.update())},Cf(i);s==="in-out"&&l.type!==Lr&&(f.delayLeave=(p,h,g)=>{const v=Mw(n,d);v[String(d.key)]=d,p[zo]=()=>{h(),p[zo]=void 0,delete c.delayedLeave},c.delayedLeave=g})}return i}}},ET=_T;function Mw(e,t){const{leavingVNodes:r}=e;let n=r.get(t.type);return n||(n=Object.create(null),r.set(t.type,n)),n}function bl(e,t,r,n){const{appear:o,mode:i,persisted:a=!1,onBeforeEnter:s,onEnter:l,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:d,onLeave:f,onAfterLeave:p,onLeaveCancelled:h,onBeforeAppear:g,onAppear:v,onAfterAppear:m,onAppearCancelled:b}=t,x=String(e.key),y=Mw(r,e),w=(T,P)=>{T&&gn(T,n,9,P)},C=(T,P)=>{const A=P[1];w(T,P),Xe(T)?T.every(I=>I.length<=1)&&A():T.length<=1&&A()},S={mode:i,persisted:a,beforeEnter(T){let P=s;if(!r.isMounted)if(o)P=g||s;else return;T[zo]&&T[zo](!0);const A=y[x];A&&_i(e,A)&&A.el[zo]&&A.el[zo](),w(P,[T])},enter(T){let P=l,A=c,I=u;if(!r.isMounted)if(o)P=v||l,A=m||c,I=b||u;else return;let B=!1;const D=T[wc]=U=>{B||(B=!0,U?w(I,[T]):w(A,[T]),S.delayedLeave&&S.delayedLeave(),T[wc]=void 0)};P?C(P,[T,D]):D()},leave(T,P){const A=String(e.key);if(T[wc]&&T[wc](!0),r.isUnmounting)return P();w(d,[T]);let I=!1;const B=T[zo]=D=>{I||(I=!0,P(),D?w(h,[T]):w(p,[T]),T[zo]=void 0,y[A]===e&&delete y[A])};y[A]=e,f?C(f,[T,B]):B()},clone(T){return bl(T,t,r,n)}};return S}function Cf(e){if(Yl(e))return e=on(e),e.children=null,e}function lv(e){return Yl(e)?e.children?e.children[0]:void 0:e}function xl(e,t){e.shapeFlag&6&&e.component?xl(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ig(e,t=!1,r){let n=[],o=0;for(let i=0;i<e.length;i++){let a=e[i];const s=r==null?a.key:String(r)+String(a.key!=null?a.key:i);a.type===st?(a.patchFlag&128&&o++,n=n.concat(ig(a.children,t,s))):(t||a.type!==Lr)&&n.push(s!=null?on(a,{key:s}):a)}if(o>1)for(let i=0;i<n.length;i++)n[i].patchFlag=-2;return n}/*! #__NO_SIDE_EFFECTS__ */function me(e,t){return rt(e)?(()=>pr({name:e.name},t,{setup:e}))():e}const Ys=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function TT(e){rt(e)&&(e={loader:e});const{loader:t,loadingComponent:r,errorComponent:n,delay:o=200,timeout:i,suspensible:a=!0,onError:s}=e;let l=null,c,u=0;const d=()=>(u++,l=null,f()),f=()=>{let p;return l||(p=l=t().catch(h=>{if(h=h instanceof Error?h:new Error(String(h)),s)return new Promise((g,v)=>{s(h,()=>g(d()),()=>v(h),u+1)});throw h}).then(h=>p!==l&&l?l:(h&&(h.__esModule||h[Symbol.toStringTag]==="Module")&&(h=h.default),c=h,h)))};return me({name:"AsyncComponentWrapper",__asyncLoader:f,get __asyncResolved(){return c},setup(){const p=xr;if(c)return()=>wf(c,p);const h=b=>{l=null,Gl(b,p,13,!n)};if(a&&p.suspense||Xl)return f().then(b=>()=>wf(b,p)).catch(b=>(h(b),()=>n?te(n,{error:b}):null));const g=z(!1),v=z(),m=z(!!o);return o&&setTimeout(()=>{m.value=!1},o),i!=null&&setTimeout(()=>{if(!g.value&&!v.value){const b=new Error(`Async component timed out after ${i}ms.`);h(b),v.value=b}},i),f().then(()=>{g.value=!0,p.parent&&Yl(p.parent.vnode)&&(p.parent.effect.dirty=!0,hd(p.parent.update))}).catch(b=>{h(b),v.value=b}),()=>{if(g.value&&c)return wf(c,p);if(v.value&&n)return te(n,{error:v.value});if(r&&!m.value)return te(r)}}})}function wf(e,t){const{ref:r,props:n,children:o,ce:i}=t.vnode,a=te(e,n,o);return a.ref=r,a.ce=i,delete t.vnode.ce,a}const Yl=e=>e.type.__isKeepAlive;function zw(e,t){Hw(e,"a",t)}function Nw(e,t){Hw(e,"da",t)}function Hw(e,t,r=xr){const n=e.__wdc||(e.__wdc=()=>{let o=r;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(md(t,n,r),r){let o=r.parent;for(;o&&o.parent;)Yl(o.parent.vnode)&&kT(n,t,r,o),o=o.parent}}function kT(e,t,r,n){const o=md(t,e,n,!0);Xi(()=>{Wp(n[t],o)},r)}function md(e,t,r=xr,n=!1){if(r){const o=r[e]||(r[e]=[]),i=t.__weh||(t.__weh=(...a)=>{if(r.isUnmounted)return;Yi();const s=Kl(r),l=gn(t,r,e,a);return s(),Ki(),l});return n?o.unshift(i):o.push(i),i}}const Co=e=>(t,r=xr)=>(!Xl||e==="sp")&&md(e,(...n)=>t(...n),r),Rn=Co("bm"),St=Co("m"),AT=Co("bu"),ag=Co("u"),Kt=Co("bum"),Xi=Co("um"),PT=Co("sp"),$T=Co("rtg"),IT=Co("rtc");function BT(e,t=xr){md("ec",e,t)}function yl(e,t,r,n){let o;const i=r&&r[n];if(Xe(e)||ar(e)){o=new Array(e.length);for(let a=0,s=e.length;a<s;a++)o[a]=t(e[a],a,void 0,i&&i[a])}else if(typeof e=="number"){o=new Array(e);for(let a=0;a<e;a++)o[a]=t(a+1,a,void 0,i&&i[a])}else if(Ht(e))if(e[Symbol.iterator])o=Array.from(e,(a,s)=>t(a,s,void 0,i&&i[s]));else{const a=Object.keys(e);o=new Array(a.length);for(let s=0,l=a.length;s<l;s++){const c=a[s];o[s]=t(e[c],c,s,i&&i[s])}}else o=[];return r&&(r[n]=o),o}function Ua(e,t,r={},n,o){if(hr.isCE||hr.parent&&Ys(hr.parent)&&hr.parent.isCE)return t!=="default"&&(r.name=t),te("slot",r,n&&n());let i=e[t];i&&i._c&&(i._d=!1),ge();const a=i&&jw(i(r)),s=We(st,{key:r.key||a&&a.key||`_${t}`},a||(n?n():[]),a&&e._===1?64:-2);return!o&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),i&&i._c&&(i._d=!0),s}function jw(e){return e.some(t=>wl(t)?!(t.type===Lr||t.type===st&&!jw(t.children)):!0)?e:null}const hh=e=>e?t2(e)?xd(e)||e.proxy:hh(e.parent):null,Ks=pr(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>hh(e.parent),$root:e=>hh(e.root),$emit:e=>e.emit,$options:e=>sg(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,hd(e.update)}),$nextTick:e=>e.n||(e.n=zt.bind(e.proxy)),$watch:e=>ST.bind(e)}),Sf=(e,t)=>e!==Vt&&!e.__isScriptSetup&&bt(e,t),DT={get({_:e},t){const{ctx:r,setupState:n,data:o,props:i,accessCache:a,type:s,appContext:l}=e;let c;if(t[0]!=="$"){const p=a[t];if(p!==void 0)switch(p){case 1:return n[t];case 2:return o[t];case 4:return r[t];case 3:return i[t]}else{if(Sf(n,t))return a[t]=1,n[t];if(o!==Vt&&bt(o,t))return a[t]=2,o[t];if((c=e.propsOptions[0])&&bt(c,t))return a[t]=3,i[t];if(r!==Vt&&bt(r,t))return a[t]=4,r[t];ph&&(a[t]=0)}}const u=Ks[t];let d,f;if(u)return t==="$attrs"&&Kr(e,"get",t),u(e);if((d=s.__cssModules)&&(d=d[t]))return d;if(r!==Vt&&bt(r,t))return a[t]=4,r[t];if(f=l.config.globalProperties,bt(f,t))return f[t]},set({_:e},t,r){const{data:n,setupState:o,ctx:i}=e;return Sf(o,t)?(o[t]=r,!0):n!==Vt&&bt(n,t)?(n[t]=r,!0):bt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:n,appContext:o,propsOptions:i}},a){let s;return!!r[a]||e!==Vt&&bt(e,a)||Sf(t,a)||(s=i[0])&&bt(s,a)||bt(n,a)||bt(Ks,a)||bt(o.config.globalProperties,a)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:bt(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function OT(){return Ww().slots}function RT(){return Ww().attrs}function Ww(){const e=Er();return e.setupContext||(e.setupContext=n2(e))}function cv(e){return Xe(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}let ph=!0;function LT(e){const t=sg(e),r=e.proxy,n=e.ctx;ph=!1,t.beforeCreate&&uv(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:a,watch:s,provide:l,inject:c,created:u,beforeMount:d,mounted:f,beforeUpdate:p,updated:h,activated:g,deactivated:v,beforeDestroy:m,beforeUnmount:b,destroyed:x,unmounted:y,render:w,renderTracked:C,renderTriggered:S,errorCaptured:T,serverPrefetch:P,expose:A,inheritAttrs:I,components:B,directives:D,filters:U}=t;if(c&&FT(c,n,null),a)for(const K in a){const ae=a[K];rt(ae)&&(n[K]=ae.bind(r))}if(o){const K=o.call(r,r);Ht(K)&&(e.data=Cn(K))}if(ph=!0,i)for(const K in i){const ae=i[K],we=rt(ae)?ae.bind(r,r):rt(ae.get)?ae.get.bind(r,r):tn,Ce=!rt(ae)&&rt(ae.set)?ae.set.bind(r):tn,X=R({get:we,set:Ce});Object.defineProperty(n,K,{enumerable:!0,configurable:!0,get:()=>X.value,set:re=>X.value=re})}if(s)for(const K in s)Uw(s[K],n,r,K);if(l){const K=rt(l)?l.call(r):l;Reflect.ownKeys(K).forEach(ae=>{dt(ae,K[ae])})}u&&uv(u,e,"c");function j(K,ae){Xe(ae)?ae.forEach(we=>K(we.bind(r))):ae&&K(ae.bind(r))}if(j(Rn,d),j(St,f),j(AT,p),j(ag,h),j(zw,g),j(Nw,v),j(BT,T),j(IT,C),j($T,S),j(Kt,b),j(Xi,y),j(PT,P),Xe(A))if(A.length){const K=e.exposed||(e.exposed={});A.forEach(ae=>{Object.defineProperty(K,ae,{get:()=>r[ae],set:we=>r[ae]=we})})}else e.exposed||(e.exposed={});w&&e.render===tn&&(e.render=w),I!=null&&(e.inheritAttrs=I),B&&(e.components=B),D&&(e.directives=D)}function FT(e,t,r=tn){Xe(e)&&(e=gh(e));for(const n in e){const o=e[n];let i;Ht(o)?"default"in o?i=Me(o.from||n,o.default,!0):i=Me(o.from||n):i=Me(o),sr(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:a=>i.value=a}):t[n]=i}}function uv(e,t,r){gn(Xe(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function Uw(e,t,r,n){const o=n.includes(".")?Rw(r,n):()=>r[n];if(ar(e)){const i=t[e];rt(i)&&Ye(o,i)}else if(rt(e))Ye(o,e.bind(r));else if(Ht(e))if(Xe(e))e.forEach(i=>Uw(i,t,r,n));else{const i=rt(e.handler)?e.handler.bind(r):t[e.handler];rt(i)&&Ye(o,i,e)}}function sg(e){const t=e.type,{mixins:r,extends:n}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,s=i.get(t);let l;return s?l=s:!o.length&&!r&&!n?l=t:(l={},o.length&&o.forEach(c=>Pu(l,c,a,!0)),Pu(l,t,a)),Ht(t)&&i.set(t,l),l}function Pu(e,t,r,n=!1){const{mixins:o,extends:i}=t;i&&Pu(e,i,r,!0),o&&o.forEach(a=>Pu(e,a,r,!0));for(const a in t)if(!(n&&a==="expose")){const s=MT[a]||r&&r[a];e[a]=s?s(e[a],t[a]):t[a]}return e}const MT={data:dv,props:fv,emits:fv,methods:js,computed:js,beforeCreate:zr,created:zr,beforeMount:zr,mounted:zr,beforeUpdate:zr,updated:zr,beforeDestroy:zr,beforeUnmount:zr,destroyed:zr,unmounted:zr,activated:zr,deactivated:zr,errorCaptured:zr,serverPrefetch:zr,components:js,directives:js,watch:NT,provide:dv,inject:zT};function dv(e,t){return t?e?function(){return pr(rt(e)?e.call(this,this):e,rt(t)?t.call(this,this):t)}:t:e}function zT(e,t){return js(gh(e),gh(t))}function gh(e){if(Xe(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function zr(e,t){return e?[...new Set([].concat(e,t))]:t}function js(e,t){return e?pr(Object.create(null),e,t):t}function fv(e,t){return e?Xe(e)&&Xe(t)?[...new Set([...e,...t])]:pr(Object.create(null),cv(e),cv(t??{})):t}function NT(e,t){if(!e)return t;if(!t)return e;const r=pr(Object.create(null),e);for(const n in t)r[n]=zr(e[n],t[n]);return r}function Vw(){return{app:null,config:{isNativeTag:b6,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let HT=0;function jT(e,t){return function(n,o=null){rt(n)||(n=pr({},n)),o!=null&&!Ht(o)&&(o=null);const i=Vw(),a=new WeakSet;let s=!1;const l=i.app={_uid:HT++,_component:n,_props:o,_container:null,_context:i,_instance:null,version:hk,get config(){return i.config},set config(c){},use(c,...u){return a.has(c)||(c&&rt(c.install)?(a.add(c),c.install(l,...u)):rt(c)&&(a.add(c),c(l,...u))),l},mixin(c){return i.mixins.includes(c)||i.mixins.push(c),l},component(c,u){return u?(i.components[c]=u,l):i.components[c]},directive(c,u){return u?(i.directives[c]=u,l):i.directives[c]},mount(c,u,d){if(!s){const f=te(n,o);return f.appContext=i,d===!0?d="svg":d===!1&&(d=void 0),u&&t?t(f,c):e(f,c,d),s=!0,l._container=c,c.__vue_app__=l,xd(f.component)||f.component.proxy}},unmount(){s&&(e(null,l._container),delete l._container.__vue_app__)},provide(c,u){return i.provides[c]=u,l},runWithContext(c){const u=Ra;Ra=l;try{return c()}finally{Ra=u}}};return l}}let Ra=null;function dt(e,t){if(xr){let r=xr.provides;const n=xr.parent&&xr.parent.provides;n===r&&(r=xr.provides=Object.create(n)),r[e]=t}}function Me(e,t,r=!1){const n=xr||hr;if(n||Ra){const o=n?n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:Ra._context.provides;if(o&&e in o)return o[e];if(arguments.length>1)return r&&rt(t)?t.call(n&&n.proxy):t}}function WT(){return!!(xr||hr||Ra)}function UT(e,t,r,n=!1){const o={},i={};_u(i,bd,1),e.propsDefaults=Object.create(null),qw(e,t,o,i);for(const a in e.propsOptions[0])a in o||(o[a]=void 0);r?e.props=n?o:ww(o):e.type.props?e.props=o:e.props=i,e.attrs=i}function VT(e,t,r,n){const{props:o,attrs:i,vnode:{patchFlag:a}}=e,s=ft(o),[l]=e.propsOptions;let c=!1;if((n||a>0)&&!(a&16)){if(a&8){const u=e.vnode.dynamicProps;for(let d=0;d<u.length;d++){let f=u[d];if(pd(e.emitsOptions,f))continue;const p=t[f];if(l)if(bt(i,f))p!==i[f]&&(i[f]=p,c=!0);else{const h=Qn(f);o[h]=mh(l,s,h,p,e,!1)}else p!==i[f]&&(i[f]=p,c=!0)}}}else{qw(e,t,o,i)&&(c=!0);let u;for(const d in s)(!t||!bt(t,d)&&((u=Gi(d))===d||!bt(t,u)))&&(l?r&&(r[d]!==void 0||r[u]!==void 0)&&(o[d]=mh(l,s,d,void 0,e,!0)):delete o[d]);if(i!==s)for(const d in i)(!t||!bt(t,d))&&(delete i[d],c=!0)}c&&ho(e,"set","$attrs")}function qw(e,t,r,n){const[o,i]=e.propsOptions;let a=!1,s;if(t)for(let l in t){if(qs(l))continue;const c=t[l];let u;o&&bt(o,u=Qn(l))?!i||!i.includes(u)?r[u]=c:(s||(s={}))[u]=c:pd(e.emitsOptions,l)||(!(l in n)||c!==n[l])&&(n[l]=c,a=!0)}if(i){const l=ft(r),c=s||Vt;for(let u=0;u<i.length;u++){const d=i[u];r[d]=mh(o,l,d,c[d],e,!bt(c,d))}}return a}function mh(e,t,r,n,o,i){const a=e[r];if(a!=null){const s=bt(a,"default");if(s&&n===void 0){const l=a.default;if(a.type!==Function&&!a.skipFactory&&rt(l)){const{propsDefaults:c}=o;if(r in c)n=c[r];else{const u=Kl(o);n=c[r]=l.call(null,t),u()}}else n=l}a[0]&&(i&&!s?n=!1:a[1]&&(n===""||n===Gi(r))&&(n=!0))}return n}function Gw(e,t,r=!1){const n=t.propsCache,o=n.get(e);if(o)return o;const i=e.props,a={},s=[];let l=!1;if(!rt(e)){const u=d=>{l=!0;const[f,p]=Gw(d,t,!0);pr(a,f),p&&s.push(...p)};!r&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!l)return Ht(e)&&n.set(e,Ba),Ba;if(Xe(i))for(let u=0;u<i.length;u++){const d=Qn(i[u]);hv(d)&&(a[d]=Vt)}else if(i)for(const u in i){const d=Qn(u);if(hv(d)){const f=i[u],p=a[d]=Xe(f)||rt(f)?{type:f}:pr({},f);if(p){const h=mv(Boolean,p.type),g=mv(String,p.type);p[0]=h>-1,p[1]=g<0||h<g,(h>-1||bt(p,"default"))&&s.push(d)}}}const c=[a,s];return Ht(e)&&n.set(e,c),c}function hv(e){return e[0]!=="$"&&!qs(e)}function pv(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function gv(e,t){return pv(e)===pv(t)}function mv(e,t){return Xe(t)?t.findIndex(r=>gv(r,e)):rt(t)&&gv(t,e)?0:-1}const Yw=e=>e[0]==="_"||e==="$stable",lg=e=>Xe(e)?e.map(Wn):[Wn(e)],qT=(e,t,r)=>{if(t._n)return t;const n=de((...o)=>lg(t(...o)),r);return n._c=!1,n},Kw=(e,t,r)=>{const n=e._ctx;for(const o in e){if(Yw(o))continue;const i=e[o];if(rt(i))t[o]=qT(o,i,n);else if(i!=null){const a=lg(i);t[o]=()=>a}}},Xw=(e,t)=>{const r=lg(t);e.slots.default=()=>r},GT=(e,t)=>{if(e.vnode.shapeFlag&32){const r=t._;r?(e.slots=ft(t),_u(t,"_",r)):Kw(t,e.slots={})}else e.slots={},t&&Xw(e,t);_u(e.slots,bd,1)},YT=(e,t,r)=>{const{vnode:n,slots:o}=e;let i=!0,a=Vt;if(n.shapeFlag&32){const s=t._;s?r&&s===1?i=!1:(pr(o,t),!r&&s===1&&delete o._):(i=!t.$stable,Kw(t,o)),a=t}else t&&(Xw(e,t),a={default:1});if(i)for(const s in o)!Yw(s)&&a[s]==null&&delete o[s]};function vh(e,t,r,n,o=!1){if(Xe(e)){e.forEach((f,p)=>vh(f,t&&(Xe(t)?t[p]:t),r,n,o));return}if(Ys(n)&&!o)return;const i=n.shapeFlag&4?xd(n.component)||n.component.proxy:n.el,a=o?null:i,{i:s,r:l}=e,c=t&&t.r,u=s.refs===Vt?s.refs={}:s.refs,d=s.setupState;if(c!=null&&c!==l&&(ar(c)?(u[c]=null,bt(d,c)&&(d[c]=null)):sr(c)&&(c.value=null)),rt(l))Yo(l,s,12,[a,u]);else{const f=ar(l),p=sr(l);if(f||p){const h=()=>{if(e.f){const g=f?bt(d,l)?d[l]:u[l]:l.value;o?Xe(g)&&Wp(g,i):Xe(g)?g.includes(i)||g.push(i):f?(u[l]=[i],bt(d,l)&&(d[l]=u[l])):(l.value=[i],e.k&&(u[e.k]=l.value))}else f?(u[l]=a,bt(d,l)&&(d[l]=a)):p&&(l.value=a,e.k&&(u[e.k]=a))};a?(h.id=-1,qr(h,r)):h()}}}const qr=yT;function KT(e){return XT(e)}function XT(e,t){const r=sw();r.__VUE__=!0;const{insert:n,remove:o,patchProp:i,createElement:a,createText:s,createComment:l,setText:c,setElementText:u,parentNode:d,nextSibling:f,setScopeId:p=tn,insertStaticContent:h}=e,g=(_,E,$,L=null,M=null,J=null,oe=void 0,O=null,H=!!E.dynamicChildren)=>{if(_===E)return;_&&!_i(_,E)&&(L=ee(_),re(_,M,J,!0),_=null),E.patchFlag===-2&&(H=!1,E.dynamicChildren=null);const{type:V,ref:ue,shapeFlag:_e}=E;switch(V){case hs:v(_,E,$,L);break;case Lr:m(_,E,$,L);break;case ru:_==null&&b(E,$,L,oe);break;case st:B(_,E,$,L,M,J,oe,O,H);break;default:_e&1?w(_,E,$,L,M,J,oe,O,H):_e&6?D(_,E,$,L,M,J,oe,O,H):(_e&64||_e&128)&&V.process(_,E,$,L,M,J,oe,O,H,xe)}ue!=null&&M&&vh(ue,_&&_.ref,J,E||_,!E)},v=(_,E,$,L)=>{if(_==null)n(E.el=s(E.children),$,L);else{const M=E.el=_.el;E.children!==_.children&&c(M,E.children)}},m=(_,E,$,L)=>{_==null?n(E.el=l(E.children||""),$,L):E.el=_.el},b=(_,E,$,L)=>{[_.el,_.anchor]=h(_.children,E,$,L,_.el,_.anchor)},x=({el:_,anchor:E},$,L)=>{let M;for(;_&&_!==E;)M=f(_),n(_,$,L),_=M;n(E,$,L)},y=({el:_,anchor:E})=>{let $;for(;_&&_!==E;)$=f(_),o(_),_=$;o(E)},w=(_,E,$,L,M,J,oe,O,H)=>{E.type==="svg"?oe="svg":E.type==="math"&&(oe="mathml"),_==null?C(E,$,L,M,J,oe,O,H):P(_,E,M,J,oe,O,H)},C=(_,E,$,L,M,J,oe,O)=>{let H,V;const{props:ue,shapeFlag:_e,transition:Ee,dirs:G}=_;if(H=_.el=a(_.type,J,ue&&ue.is,ue),_e&8?u(H,_.children):_e&16&&T(_.children,H,null,L,M,_f(_,J),oe,O),G&&pi(_,null,L,"created"),S(H,_,_.scopeId,oe,L),ue){for(const Re in ue)Re!=="value"&&!qs(Re)&&i(H,Re,null,ue[Re],J,_.children,L,M,Se);"value"in ue&&i(H,"value",null,ue.value,J),(V=ue.onVnodeBeforeMount)&&Mn(V,L,_)}G&&pi(_,null,L,"beforeMount");const ie=ZT(M,Ee);ie&&Ee.beforeEnter(H),n(H,E,$),((V=ue&&ue.onVnodeMounted)||ie||G)&&qr(()=>{V&&Mn(V,L,_),ie&&Ee.enter(H),G&&pi(_,null,L,"mounted")},M)},S=(_,E,$,L,M)=>{if($&&p(_,$),L)for(let J=0;J<L.length;J++)p(_,L[J]);if(M){let J=M.subTree;if(E===J){const oe=M.vnode;S(_,oe,oe.scopeId,oe.slotScopeIds,M.parent)}}},T=(_,E,$,L,M,J,oe,O,H=0)=>{for(let V=H;V<_.length;V++){const ue=_[V]=O?No(_[V]):Wn(_[V]);g(null,ue,E,$,L,M,J,oe,O)}},P=(_,E,$,L,M,J,oe)=>{const O=E.el=_.el;let{patchFlag:H,dynamicChildren:V,dirs:ue}=E;H|=_.patchFlag&16;const _e=_.props||Vt,Ee=E.props||Vt;let G;if($&&gi($,!1),(G=Ee.onVnodeBeforeUpdate)&&Mn(G,$,E,_),ue&&pi(E,_,$,"beforeUpdate"),$&&gi($,!0),V?A(_.dynamicChildren,V,O,$,L,_f(E,M),J):oe||ae(_,E,O,null,$,L,_f(E,M),J,!1),H>0){if(H&16)I(O,E,_e,Ee,$,L,M);else if(H&2&&_e.class!==Ee.class&&i(O,"class",null,Ee.class,M),H&4&&i(O,"style",_e.style,Ee.style,M),H&8){const ie=E.dynamicProps;for(let Re=0;Re<ie.length;Re++){const Ne=ie[Re],lt=_e[Ne],yt=Ee[Ne];(yt!==lt||Ne==="value")&&i(O,Ne,lt,yt,M,_.children,$,L,Se)}}H&1&&_.children!==E.children&&u(O,E.children)}else!oe&&V==null&&I(O,E,_e,Ee,$,L,M);((G=Ee.onVnodeUpdated)||ue)&&qr(()=>{G&&Mn(G,$,E,_),ue&&pi(E,_,$,"updated")},L)},A=(_,E,$,L,M,J,oe)=>{for(let O=0;O<E.length;O++){const H=_[O],V=E[O],ue=H.el&&(H.type===st||!_i(H,V)||H.shapeFlag&70)?d(H.el):$;g(H,V,ue,null,L,M,J,oe,!0)}},I=(_,E,$,L,M,J,oe)=>{if($!==L){if($!==Vt)for(const O in $)!qs(O)&&!(O in L)&&i(_,O,$[O],null,oe,E.children,M,J,Se);for(const O in L){if(qs(O))continue;const H=L[O],V=$[O];H!==V&&O!=="value"&&i(_,O,V,H,oe,E.children,M,J,Se)}"value"in L&&i(_,"value",$.value,L.value,oe)}},B=(_,E,$,L,M,J,oe,O,H)=>{const V=E.el=_?_.el:s(""),ue=E.anchor=_?_.anchor:s("");let{patchFlag:_e,dynamicChildren:Ee,slotScopeIds:G}=E;G&&(O=O?O.concat(G):G),_==null?(n(V,$,L),n(ue,$,L),T(E.children||[],$,ue,M,J,oe,O,H)):_e>0&&_e&64&&Ee&&_.dynamicChildren?(A(_.dynamicChildren,Ee,$,M,J,oe,O),(E.key!=null||M&&E===M.subTree)&&cg(_,E,!0)):ae(_,E,$,ue,M,J,oe,O,H)},D=(_,E,$,L,M,J,oe,O,H)=>{E.slotScopeIds=O,_==null?E.shapeFlag&512?M.ctx.activate(E,$,L,oe,H):U(E,$,L,M,J,oe,H):F(_,E,H)},U=(_,E,$,L,M,J,oe)=>{const O=_.component=sk(_,L,M);if(Yl(_)&&(O.ctx.renderer=xe),lk(O),O.asyncDep){if(M&&M.registerDep(O,j),!_.el){const H=O.subTree=te(Lr);m(null,H,E,$)}}else j(O,_,E,$,M,J,oe)},F=(_,E,$)=>{const L=E.component=_.component;if(gT(_,E,$))if(L.asyncDep&&!L.asyncResolved){K(L,E,$);return}else L.next=E,cT(L.update),L.effect.dirty=!0,L.update();else E.el=_.el,L.vnode=E},j=(_,E,$,L,M,J,oe)=>{const O=()=>{if(_.isMounted){let{next:ue,bu:_e,u:Ee,parent:G,vnode:ie}=_;{const jt=Zw(_);if(jt){ue&&(ue.el=ie.el,K(_,ue,oe)),jt.asyncDep.then(()=>{_.isUnmounted||O()});return}}let Re=ue,Ne;gi(_,!1),ue?(ue.el=ie.el,K(_,ue,oe)):ue=ie,_e&&tu(_e),(Ne=ue.props&&ue.props.onVnodeBeforeUpdate)&&Mn(Ne,G,ue,ie),gi(_,!0);const lt=yf(_),yt=_.subTree;_.subTree=lt,g(yt,lt,d(yt.el),ee(yt),_,M,J),ue.el=lt.el,Re===null&&mT(_,lt.el),Ee&&qr(Ee,M),(Ne=ue.props&&ue.props.onVnodeUpdated)&&qr(()=>Mn(Ne,G,ue,ie),M)}else{let ue;const{el:_e,props:Ee}=E,{bm:G,m:ie,parent:Re}=_,Ne=Ys(E);if(gi(_,!1),G&&tu(G),!Ne&&(ue=Ee&&Ee.onVnodeBeforeMount)&&Mn(ue,Re,E),gi(_,!0),_e&&Pe){const lt=()=>{_.subTree=yf(_),Pe(_e,_.subTree,_,M,null)};Ne?E.type.__asyncLoader().then(()=>!_.isUnmounted&<()):lt()}else{const lt=_.subTree=yf(_);g(null,lt,$,L,_,M,J),E.el=lt.el}if(ie&&qr(ie,M),!Ne&&(ue=Ee&&Ee.onVnodeMounted)){const lt=E;qr(()=>Mn(ue,Re,lt),M)}(E.shapeFlag&256||Re&&Ys(Re.vnode)&&Re.vnode.shapeFlag&256)&&_.a&&qr(_.a,M),_.isMounted=!0,E=$=L=null}},H=_.effect=new Gp(O,tn,()=>hd(V),_.scope),V=_.update=()=>{H.dirty&&H.run()};V.id=_.uid,gi(_,!0),V()},K=(_,E,$)=>{E.component=_;const L=_.vnode.props;_.vnode=E,_.next=null,VT(_,E.props,L,$),YT(_,E.children,$),Yi(),iv(_),Ki()},ae=(_,E,$,L,M,J,oe,O,H=!1)=>{const V=_&&_.children,ue=_?_.shapeFlag:0,_e=E.children,{patchFlag:Ee,shapeFlag:G}=E;if(Ee>0){if(Ee&128){Ce(V,_e,$,L,M,J,oe,O,H);return}else if(Ee&256){we(V,_e,$,L,M,J,oe,O,H);return}}G&8?(ue&16&&Se(V,M,J),_e!==V&&u($,_e)):ue&16?G&16?Ce(V,_e,$,L,M,J,oe,O,H):Se(V,M,J,!0):(ue&8&&u($,""),G&16&&T(_e,$,L,M,J,oe,O,H))},we=(_,E,$,L,M,J,oe,O,H)=>{_=_||Ba,E=E||Ba;const V=_.length,ue=E.length,_e=Math.min(V,ue);let Ee;for(Ee=0;Ee<_e;Ee++){const G=E[Ee]=H?No(E[Ee]):Wn(E[Ee]);g(_[Ee],G,$,null,M,J,oe,O,H)}V>ue?Se(_,M,J,!0,!1,_e):T(E,$,L,M,J,oe,O,H,_e)},Ce=(_,E,$,L,M,J,oe,O,H)=>{let V=0;const ue=E.length;let _e=_.length-1,Ee=ue-1;for(;V<=_e&&V<=Ee;){const G=_[V],ie=E[V]=H?No(E[V]):Wn(E[V]);if(_i(G,ie))g(G,ie,$,null,M,J,oe,O,H);else break;V++}for(;V<=_e&&V<=Ee;){const G=_[_e],ie=E[Ee]=H?No(E[Ee]):Wn(E[Ee]);if(_i(G,ie))g(G,ie,$,null,M,J,oe,O,H);else break;_e--,Ee--}if(V>_e){if(V<=Ee){const G=Ee+1,ie=G<ue?E[G].el:L;for(;V<=Ee;)g(null,E[V]=H?No(E[V]):Wn(E[V]),$,ie,M,J,oe,O,H),V++}}else if(V>Ee)for(;V<=_e;)re(_[V],M,J,!0),V++;else{const G=V,ie=V,Re=new Map;for(V=ie;V<=Ee;V++){const be=E[V]=H?No(E[V]):Wn(E[V]);be.key!=null&&Re.set(be.key,V)}let Ne,lt=0;const yt=Ee-ie+1;let jt=!1,Qr=0;const ur=new Array(yt);for(V=0;V<yt;V++)ur[V]=0;for(V=G;V<=_e;V++){const be=_[V];if(lt>=yt){re(be,M,J,!0);continue}let Ie;if(be.key!=null)Ie=Re.get(be.key);else for(Ne=ie;Ne<=Ee;Ne++)if(ur[Ne-ie]===0&&_i(be,E[Ne])){Ie=Ne;break}Ie===void 0?re(be,M,J,!0):(ur[Ie-ie]=V+1,Ie>=Qr?Qr=Ie:jt=!0,g(be,E[Ie],$,null,M,J,oe,O,H),lt++)}const Fn=jt?QT(ur):Ba;for(Ne=Fn.length-1,V=yt-1;V>=0;V--){const be=ie+V,Ie=E[be],He=be+1<ue?E[be+1].el:L;ur[V]===0?g(null,Ie,$,He,M,J,oe,O,H):jt&&(Ne<0||V!==Fn[Ne]?X(Ie,$,He,2):Ne--)}}},X=(_,E,$,L,M=null)=>{const{el:J,type:oe,transition:O,children:H,shapeFlag:V}=_;if(V&6){X(_.component.subTree,E,$,L);return}if(V&128){_.suspense.move(E,$,L);return}if(V&64){oe.move(_,E,$,xe);return}if(oe===st){n(J,E,$);for(let _e=0;_e<H.length;_e++)X(H[_e],E,$,L);n(_.anchor,E,$);return}if(oe===ru){x(_,E,$);return}if(L!==2&&V&1&&O)if(L===0)O.beforeEnter(J),n(J,E,$),qr(()=>O.enter(J),M);else{const{leave:_e,delayLeave:Ee,afterLeave:G}=O,ie=()=>n(J,E,$),Re=()=>{_e(J,()=>{ie(),G&&G()})};Ee?Ee(J,ie,Re):Re()}else n(J,E,$)},re=(_,E,$,L=!1,M=!1)=>{const{type:J,props:oe,ref:O,children:H,dynamicChildren:V,shapeFlag:ue,patchFlag:_e,dirs:Ee}=_;if(O!=null&&vh(O,null,$,_,!0),ue&256){E.ctx.deactivate(_);return}const G=ue&1&&Ee,ie=!Ys(_);let Re;if(ie&&(Re=oe&&oe.onVnodeBeforeUnmount)&&Mn(Re,E,_),ue&6)$e(_.component,$,L);else{if(ue&128){_.suspense.unmount($,L);return}G&&pi(_,null,E,"beforeUnmount"),ue&64?_.type.remove(_,E,$,M,xe,L):V&&(J!==st||_e>0&&_e&64)?Se(V,E,$,!1,!0):(J===st&&_e&384||!M&&ue&16)&&Se(H,E,$),L&&le(_)}(ie&&(Re=oe&&oe.onVnodeUnmounted)||G)&&qr(()=>{Re&&Mn(Re,E,_),G&&pi(_,null,E,"unmounted")},$)},le=_=>{const{type:E,el:$,anchor:L,transition:M}=_;if(E===st){ne($,L);return}if(E===ru){y(_);return}const J=()=>{o($),M&&!M.persisted&&M.afterLeave&&M.afterLeave()};if(_.shapeFlag&1&&M&&!M.persisted){const{leave:oe,delayLeave:O}=M,H=()=>oe($,J);O?O(_.el,J,H):H()}else J()},ne=(_,E)=>{let $;for(;_!==E;)$=f(_),o(_),_=$;o(E)},$e=(_,E,$)=>{const{bum:L,scope:M,update:J,subTree:oe,um:O}=_;L&&tu(L),M.stop(),J&&(J.active=!1,re(oe,_,E,$)),O&&qr(O,E),qr(()=>{_.isUnmounted=!0},E),E&&E.pendingBranch&&!E.isUnmounted&&_.asyncDep&&!_.asyncResolved&&_.suspenseId===E.pendingId&&(E.deps--,E.deps===0&&E.resolve())},Se=(_,E,$,L=!1,M=!1,J=0)=>{for(let oe=J;oe<_.length;oe++)re(_[oe],E,$,L,M)},ee=_=>_.shapeFlag&6?ee(_.component.subTree):_.shapeFlag&128?_.suspense.next():f(_.anchor||_.el);let se=!1;const ce=(_,E,$)=>{_==null?E._vnode&&re(E._vnode,null,null,!0):g(E._vnode||null,_,E,null,null,null,$),se||(se=!0,iv(),$w(),se=!1),E._vnode=_},xe={p:g,um:re,m:X,r:le,mt:U,mc:T,pc:ae,pbc:A,n:ee,o:e};let Te,Pe;return t&&([Te,Pe]=t(xe)),{render:ce,hydrate:Te,createApp:jT(ce,Te)}}function _f({type:e,props:t},r){return r==="svg"&&e==="foreignObject"||r==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function gi({effect:e,update:t},r){e.allowRecurse=t.allowRecurse=r}function ZT(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function cg(e,t,r=!1){const n=e.children,o=t.children;if(Xe(n)&&Xe(o))for(let i=0;i<n.length;i++){const a=n[i];let s=o[i];s.shapeFlag&1&&!s.dynamicChildren&&((s.patchFlag<=0||s.patchFlag===32)&&(s=o[i]=No(o[i]),s.el=a.el),r||cg(a,s)),s.type===hs&&(s.el=a.el)}}function QT(e){const t=e.slice(),r=[0];let n,o,i,a,s;const l=e.length;for(n=0;n<l;n++){const c=e[n];if(c!==0){if(o=r[r.length-1],e[o]<c){t[n]=o,r.push(n);continue}for(i=0,a=r.length-1;i<a;)s=i+a>>1,e[r[s]]<c?i=s+1:a=s;c<e[r[i]]&&(i>0&&(t[n]=r[i-1]),r[i]=n)}}for(i=r.length,a=r[i-1];i-- >0;)r[i]=a,a=t[a];return r}function Zw(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Zw(t)}const JT=e=>e.__isTeleport,Xs=e=>e&&(e.disabled||e.disabled===""),vv=e=>typeof SVGElement<"u"&&e instanceof SVGElement,bv=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,bh=(e,t)=>{const r=e&&e.to;return ar(r)?t?t(r):null:r},ek={name:"Teleport",__isTeleport:!0,process(e,t,r,n,o,i,a,s,l,c){const{mc:u,pc:d,pbc:f,o:{insert:p,querySelector:h,createText:g,createComment:v}}=c,m=Xs(t.props);let{shapeFlag:b,children:x,dynamicChildren:y}=t;if(e==null){const w=t.el=g(""),C=t.anchor=g("");p(w,r,n),p(C,r,n);const S=t.target=bh(t.props,h),T=t.targetAnchor=g("");S&&(p(T,S),a==="svg"||vv(S)?a="svg":(a==="mathml"||bv(S))&&(a="mathml"));const P=(A,I)=>{b&16&&u(x,A,I,o,i,a,s,l)};m?P(r,C):S&&P(S,T)}else{t.el=e.el;const w=t.anchor=e.anchor,C=t.target=e.target,S=t.targetAnchor=e.targetAnchor,T=Xs(e.props),P=T?r:C,A=T?w:S;if(a==="svg"||vv(C)?a="svg":(a==="mathml"||bv(C))&&(a="mathml"),y?(f(e.dynamicChildren,y,P,o,i,a,s),cg(e,t,!0)):l||d(e,t,P,A,o,i,a,s,!1),m)T?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Sc(t,r,w,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const I=t.target=bh(t.props,h);I&&Sc(t,I,null,c,0)}else T&&Sc(t,C,S,c,1)}Qw(t)},remove(e,t,r,n,{um:o,o:{remove:i}},a){const{shapeFlag:s,children:l,anchor:c,targetAnchor:u,target:d,props:f}=e;if(d&&i(u),a&&i(c),s&16){const p=a||!Xs(f);for(let h=0;h<l.length;h++){const g=l[h];o(g,t,r,p,!!g.dynamicChildren)}}},move:Sc,hydrate:tk};function Sc(e,t,r,{o:{insert:n},m:o},i=2){i===0&&n(e.targetAnchor,t,r);const{el:a,anchor:s,shapeFlag:l,children:c,props:u}=e,d=i===2;if(d&&n(a,t,r),(!d||Xs(u))&&l&16)for(let f=0;f<c.length;f++)o(c[f],t,r,2);d&&n(s,t,r)}function tk(e,t,r,n,o,i,{o:{nextSibling:a,parentNode:s,querySelector:l}},c){const u=t.target=bh(t.props,l);if(u){const d=u._lpa||u.firstChild;if(t.shapeFlag&16)if(Xs(t.props))t.anchor=c(a(e),t,s(e),r,n,o,i),t.targetAnchor=d;else{t.anchor=a(e);let f=d;for(;f;)if(f=a(f),f&&f.nodeType===8&&f.data==="teleport anchor"){t.targetAnchor=f,u._lpa=t.targetAnchor&&a(t.targetAnchor);break}c(d,t,u,r,n,o,i)}Qw(t)}return t.anchor&&a(t.anchor)}const vd=ek;function Qw(e){const t=e.ctx;if(t&&t.ut){let r=e.children[0].el;for(;r&&r!==e.targetAnchor;)r.nodeType===1&&r.setAttribute("data-v-owner",t.uid),r=r.nextSibling;t.ut()}}const st=Symbol.for("v-fgt"),hs=Symbol.for("v-txt"),Lr=Symbol.for("v-cmt"),ru=Symbol.for("v-stc"),Zs=[];let An=null;function ge(e=!1){Zs.push(An=e?null:[])}function rk(){Zs.pop(),An=Zs[Zs.length-1]||null}let Cl=1;function xv(e){Cl+=e}function Jw(e){return e.dynamicChildren=Cl>0?An||Ba:null,rk(),Cl>0&&An&&An.push(e),e}function je(e,t,r,n,o,i){return Jw(ve(e,t,r,n,o,i,!0))}function We(e,t,r,n,o){return Jw(te(e,t,r,n,o,!0))}function wl(e){return e?e.__v_isVNode===!0:!1}function _i(e,t){return e.type===t.type&&e.key===t.key}const bd="__vInternal",e2=({key:e})=>e??null,nu=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?ar(e)||sr(e)||rt(e)?{i:hr,r:e,k:t,f:!!r}:e:null);function ve(e,t=null,r=null,n=0,o=null,i=e===st?0:1,a=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&e2(t),ref:t&&nu(t),scopeId:gd,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:n,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:hr};return s?(ug(l,r),i&128&&e.normalize(l)):r&&(l.shapeFlag|=ar(r)?8:16),Cl>0&&!a&&An&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&An.push(l),l}const te=nk;function nk(e,t=null,r=null,n=0,o=null,i=!1){if((!e||e===Dw)&&(e=Lr),wl(e)){const s=on(e,t,!0);return r&&ug(s,r),Cl>0&&!i&&An&&(s.shapeFlag&6?An[An.indexOf(e)]=s:An.push(s)),s.patchFlag|=-2,s}if(fk(e)&&(e=e.__vccOpts),t){t=ok(t);let{class:s,style:l}=t;s&&!ar(s)&&(t.class=Jt(s)),Ht(l)&&(Sw(l)&&!Xe(l)&&(l=pr({},l)),t.style=Bn(l))}const a=ar(e)?1:xT(e)?128:JT(e)?64:Ht(e)?4:rt(e)?2:0;return ve(e,t,r,n,o,a,i,!0)}function ok(e){return e?Sw(e)||bd in e?pr({},e):e:null}function on(e,t,r=!1){const{props:n,ref:o,patchFlag:i,children:a}=e,s=t?Dn(n||{},t):n;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&e2(s),ref:t&&t.ref?r&&o?Xe(o)?o.concat(nu(t)):[o,nu(t)]:nu(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==st?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&on(e.ssContent),ssFallback:e.ssFallback&&on(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function tt(e=" ",t=0){return te(hs,null,e,t)}function Ode(e,t){const r=te(ru,null,e);return r.staticCount=t,r}function Fe(e="",t=!1){return t?(ge(),We(Lr,null,e)):te(Lr,null,e)}function Wn(e){return e==null||typeof e=="boolean"?te(Lr):Xe(e)?te(st,null,e.slice()):typeof e=="object"?No(e):te(hs,null,String(e))}function No(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:on(e)}function ug(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(Xe(t))r=16;else if(typeof t=="object")if(n&65){const o=t.default;o&&(o._c&&(o._d=!1),ug(e,o()),o._c&&(o._d=!0));return}else{r=32;const o=t._;!o&&!(bd in t)?t._ctx=hr:o===3&&hr&&(hr.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else rt(t)?(t={default:t,_ctx:hr},r=32):(t=String(t),n&64?(r=16,t=[tt(t)]):r=8);e.children=t,e.shapeFlag|=r}function Dn(...e){const t={};for(let r=0;r<e.length;r++){const n=e[r];for(const o in n)if(o==="class")t.class!==n.class&&(t.class=Jt([t.class,n.class]));else if(o==="style")t.style=Bn([t.style,n.style]);else if(sd(o)){const i=t[o],a=n[o];a&&i!==a&&!(Xe(i)&&i.includes(a))&&(t[o]=i?[].concat(i,a):a)}else o!==""&&(t[o]=n[o])}return t}function Mn(e,t,r,n=null){gn(e,t,7,[r,n])}const ik=Vw();let ak=0;function sk(e,t,r){const n=e.type,o=(t?t.appContext:e.appContext)||ik,i={uid:ak++,vnode:e,type:n,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new uw(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Gw(n,o),emitsOptions:Bw(n,o),emit:null,emitted:null,propsDefaults:Vt,inheritAttrs:n.inheritAttrs,ctx:Vt,data:Vt,props:Vt,attrs:Vt,slots:Vt,refs:Vt,setupState:Vt,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=fT.bind(null,i),e.ce&&e.ce(i),i}let xr=null;const Er=()=>xr||hr;let $u,xh;{const e=sw(),t=(r,n)=>{let o;return(o=e[r])||(o=e[r]=[]),o.push(n),i=>{o.length>1?o.forEach(a=>a(i)):o[0](i)}};$u=t("__VUE_INSTANCE_SETTERS__",r=>xr=r),xh=t("__VUE_SSR_SETTERS__",r=>Xl=r)}const Kl=e=>{const t=xr;return $u(e),e.scope.on(),()=>{e.scope.off(),$u(t)}},yv=()=>{xr&&xr.scope.off(),$u(null)};function t2(e){return e.vnode.shapeFlag&4}let Xl=!1;function lk(e,t=!1){t&&xh(t);const{props:r,children:n}=e.vnode,o=t2(e);UT(e,r,o,t),GT(e,n);const i=o?ck(e,t):void 0;return t&&xh(!1),i}function ck(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=Wa(new Proxy(e.ctx,DT));const{setup:n}=r;if(n){const o=e.setupContext=n.length>1?n2(e):null,i=Kl(e);Yi();const a=Yo(n,e,0,[e.props,o]);if(Ki(),i(),ow(a)){if(a.then(yv,yv),t)return a.then(s=>{Cv(e,s,t)}).catch(s=>{Gl(s,e,0)});e.asyncDep=a}else Cv(e,a,t)}else r2(e,t)}function Cv(e,t,r){rt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ht(t)&&(e.setupState=Tw(t)),r2(e,r)}let wv;function r2(e,t,r){const n=e.type;if(!e.render){if(!t&&wv&&!n.render){const o=n.template||sg(e).template;if(o){const{isCustomElement:i,compilerOptions:a}=e.appContext.config,{delimiters:s,compilerOptions:l}=n,c=pr(pr({isCustomElement:i,delimiters:s},a),l);n.render=wv(o,c)}}e.render=n.render||tn}{const o=Kl(e);Yi();try{LT(e)}finally{Ki(),o()}}}function uk(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,r){return Kr(e,"get","$attrs"),t[r]}}))}function n2(e){const t=r=>{e.exposed=r||{}};return{get attrs(){return uk(e)},slots:e.slots,emit:e.emit,expose:t}}function xd(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Tw(Wa(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Ks)return Ks[r](e)},has(t,r){return r in t||r in Ks}}))}function dk(e,t=!0){return rt(e)?e.displayName||e.name:e.name||t&&e.__name}function fk(e){return rt(e)&&"__vccOpts"in e}const R=(e,t)=>J6(e,t,Xl);function k(e,t,r){const n=arguments.length;return n===2?Ht(t)&&!Xe(t)?wl(t)?te(e,null,[t]):te(e,t):te(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&wl(r)&&(r=[r]),te(e,t,r))}const hk="3.4.21";/**
|
||
* @vue/runtime-dom v3.4.21
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/const pk="http://www.w3.org/2000/svg",gk="http://www.w3.org/1998/Math/MathML",Ho=typeof document<"u"?document:null,Sv=Ho&&Ho.createElement("template"),mk={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,n)=>{const o=t==="svg"?Ho.createElementNS(pk,e):t==="mathml"?Ho.createElementNS(gk,e):Ho.createElement(e,r?{is:r}:void 0);return e==="select"&&n&&n.multiple!=null&&o.setAttribute("multiple",n.multiple),o},createText:e=>Ho.createTextNode(e),createComment:e=>Ho.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ho.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,n,o,i){const a=r?r.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),r),!(o===i||!(o=o.nextSibling)););else{Sv.innerHTML=n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e;const s=Sv.content;if(n==="svg"||n==="mathml"){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,r)}return[a?a.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},Po="transition",$s="animation",Va=Symbol("_vtc"),Fr=(e,{slots:t})=>k(ET,i2(e),t);Fr.displayName="Transition";const o2={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},vk=Fr.props=pr({},Fw,o2),mi=(e,t=[])=>{Xe(e)?e.forEach(r=>r(...t)):e&&e(...t)},_v=e=>e?Xe(e)?e.some(t=>t.length>1):e.length>1:!1;function i2(e){const t={};for(const B in e)B in o2||(t[B]=e[B]);if(e.css===!1)return t;const{name:r="v",type:n,duration:o,enterFromClass:i=`${r}-enter-from`,enterActiveClass:a=`${r}-enter-active`,enterToClass:s=`${r}-enter-to`,appearFromClass:l=i,appearActiveClass:c=a,appearToClass:u=s,leaveFromClass:d=`${r}-leave-from`,leaveActiveClass:f=`${r}-leave-active`,leaveToClass:p=`${r}-leave-to`}=e,h=bk(o),g=h&&h[0],v=h&&h[1],{onBeforeEnter:m,onEnter:b,onEnterCancelled:x,onLeave:y,onLeaveCancelled:w,onBeforeAppear:C=m,onAppear:S=b,onAppearCancelled:T=x}=t,P=(B,D,U)=>{Lo(B,D?u:s),Lo(B,D?c:a),U&&U()},A=(B,D)=>{B._isLeaving=!1,Lo(B,d),Lo(B,p),Lo(B,f),D&&D()},I=B=>(D,U)=>{const F=B?S:b,j=()=>P(D,B,U);mi(F,[D,j]),Ev(()=>{Lo(D,B?l:i),co(D,B?u:s),_v(F)||Tv(D,n,g,j)})};return pr(t,{onBeforeEnter(B){mi(m,[B]),co(B,i),co(B,a)},onBeforeAppear(B){mi(C,[B]),co(B,l),co(B,c)},onEnter:I(!1),onAppear:I(!0),onLeave(B,D){B._isLeaving=!0;const U=()=>A(B,D);co(B,d),s2(),co(B,f),Ev(()=>{B._isLeaving&&(Lo(B,d),co(B,p),_v(y)||Tv(B,n,v,U))}),mi(y,[B,U])},onEnterCancelled(B){P(B,!1),mi(x,[B])},onAppearCancelled(B){P(B,!0),mi(T,[B])},onLeaveCancelled(B){A(B),mi(w,[B])}})}function bk(e){if(e==null)return null;if(Ht(e))return[Ef(e.enter),Ef(e.leave)];{const t=Ef(e);return[t,t]}}function Ef(e){return S6(e)}function co(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[Va]||(e[Va]=new Set)).add(t)}function Lo(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const r=e[Va];r&&(r.delete(t),r.size||(e[Va]=void 0))}function Ev(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let xk=0;function Tv(e,t,r,n){const o=e._endId=++xk,i=()=>{o===e._endId&&n()};if(r)return setTimeout(i,r);const{type:a,timeout:s,propCount:l}=a2(e,t);if(!a)return n();const c=a+"end";let u=0;const d=()=>{e.removeEventListener(c,f),i()},f=p=>{p.target===e&&++u>=l&&d()};setTimeout(()=>{u<l&&d()},s+1),e.addEventListener(c,f)}function a2(e,t){const r=window.getComputedStyle(e),n=h=>(r[h]||"").split(", "),o=n(`${Po}Delay`),i=n(`${Po}Duration`),a=kv(o,i),s=n(`${$s}Delay`),l=n(`${$s}Duration`),c=kv(s,l);let u=null,d=0,f=0;t===Po?a>0&&(u=Po,d=a,f=i.length):t===$s?c>0&&(u=$s,d=c,f=l.length):(d=Math.max(a,c),u=d>0?a>c?Po:$s:null,f=u?u===Po?i.length:l.length:0);const p=u===Po&&/\b(transform|all)(,|$)/.test(n(`${Po}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function kv(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,n)=>Av(r)+Av(e[n])))}function Av(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function s2(){return document.body.offsetHeight}function yk(e,t,r){const n=e[Va];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const Iu=Symbol("_vod"),l2=Symbol("_vsh"),Zo={beforeMount(e,{value:t},{transition:r}){e[Iu]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):Is(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:n}){!t!=!r&&(n?t?(n.beforeEnter(e),Is(e,!0),n.enter(e)):n.leave(e,()=>{Is(e,!1)}):Is(e,t))},beforeUnmount(e,{value:t}){Is(e,t)}};function Is(e,t){e.style.display=t?e[Iu]:"none",e[l2]=!t}const Ck=Symbol(""),wk=/(^|;)\s*display\s*:/;function Sk(e,t,r){const n=e.style,o=ar(r);let i=!1;if(r&&!o){if(t)if(ar(t))for(const a of t.split(";")){const s=a.slice(0,a.indexOf(":")).trim();r[s]==null&&ou(n,s,"")}else for(const a in t)r[a]==null&&ou(n,a,"");for(const a in r)a==="display"&&(i=!0),ou(n,a,r[a])}else if(o){if(t!==r){const a=n[Ck];a&&(r+=";"+a),n.cssText=r,i=wk.test(r)}}else t&&e.removeAttribute("style");Iu in e&&(e[Iu]=i?n.display:"",e[l2]&&(n.display="none"))}const Pv=/\s*!important$/;function ou(e,t,r){if(Xe(r))r.forEach(n=>ou(e,t,n));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=_k(e,t);Pv.test(r)?e.setProperty(Gi(n),r.replace(Pv,""),"important"):e[n]=r}}const $v=["Webkit","Moz","ms"],Tf={};function _k(e,t){const r=Tf[t];if(r)return r;let n=Qn(t);if(n!=="filter"&&n in e)return Tf[t]=n;n=ud(n);for(let o=0;o<$v.length;o++){const i=$v[o]+n;if(i in e)return Tf[t]=i}return t}const Iv="http://www.w3.org/1999/xlink";function Ek(e,t,r,n,o){if(n&&t.startsWith("xlink:"))r==null?e.removeAttributeNS(Iv,t.slice(6,t.length)):e.setAttributeNS(Iv,t,r);else{const i=I6(t);r==null||i&&!lw(r)?e.removeAttribute(t):e.setAttribute(t,i?"":r)}}function Tk(e,t,r,n,o,i,a){if(t==="innerHTML"||t==="textContent"){n&&a(n,o,i),e[t]=r??"";return}const s=e.tagName;if(t==="value"&&s!=="PROGRESS"&&!s.includes("-")){const c=s==="OPTION"?e.getAttribute("value")||"":e.value,u=r??"";(c!==u||!("_value"in e))&&(e.value=u),r==null&&e.removeAttribute(t),e._value=r;return}let l=!1;if(r===""||r==null){const c=typeof e[t];c==="boolean"?r=lw(r):r==null&&c==="string"?(r="",l=!0):c==="number"&&(r=0,l=!0)}try{e[t]=r}catch{}l&&e.removeAttribute(t)}function Ca(e,t,r,n){e.addEventListener(t,r,n)}function kk(e,t,r,n){e.removeEventListener(t,r,n)}const Bv=Symbol("_vei");function Ak(e,t,r,n,o=null){const i=e[Bv]||(e[Bv]={}),a=i[t];if(n&&a)a.value=n;else{const[s,l]=Pk(t);if(n){const c=i[t]=Bk(n,o);Ca(e,s,c,l)}else a&&(kk(e,s,a,l),i[t]=void 0)}}const Dv=/(?:Once|Passive|Capture)$/;function Pk(e){let t;if(Dv.test(e)){t={};let n;for(;n=e.match(Dv);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Gi(e.slice(2)),t]}let kf=0;const $k=Promise.resolve(),Ik=()=>kf||($k.then(()=>kf=0),kf=Date.now());function Bk(e,t){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;gn(Dk(n,r.value),t,5,[n])};return r.value=e,r.attached=Ik(),r}function Dk(e,t){if(Xe(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(n=>o=>!o._stopped&&n&&n(o))}else return t}const Ov=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ok=(e,t,r,n,o,i,a,s,l)=>{const c=o==="svg";t==="class"?yk(e,n,c):t==="style"?Sk(e,r,n):sd(t)?jp(t)||Ak(e,t,r,n,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Rk(e,t,n,c))?Tk(e,t,n,i,a,s,l):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Ek(e,t,n,c))};function Rk(e,t,r,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&Ov(t)&&rt(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return Ov(t)&&ar(r)?!1:t in e}const c2=new WeakMap,u2=new WeakMap,Bu=Symbol("_moveCb"),Rv=Symbol("_enterCb"),d2={name:"TransitionGroup",props:pr({},vk,{tag:String,moveClass:String}),setup(e,{slots:t}){const r=Er(),n=Lw();let o,i;return ag(()=>{if(!o.length)return;const a=e.moveClass||`${e.name||"v"}-move`;if(!Nk(o[0].el,r.vnode.el,a))return;o.forEach(Fk),o.forEach(Mk);const s=o.filter(zk);s2(),s.forEach(l=>{const c=l.el,u=c.style;co(c,a),u.transform=u.webkitTransform=u.transitionDuration="";const d=c[Bu]=f=>{f&&f.target!==c||(!f||/transform$/.test(f.propertyName))&&(c.removeEventListener("transitionend",d),c[Bu]=null,Lo(c,a))};c.addEventListener("transitionend",d)})}),()=>{const a=ft(e),s=i2(a);let l=a.tag||st;o=i,i=t.default?ig(t.default()):[];for(let c=0;c<i.length;c++){const u=i[c];u.key!=null&&xl(u,bl(u,s,n,r))}if(o)for(let c=0;c<o.length;c++){const u=o[c];xl(u,bl(u,s,n,r)),c2.set(u,u.el.getBoundingClientRect())}return te(l,null,i)}}},Lk=e=>delete e.mode;d2.props;const f2=d2;function Fk(e){const t=e.el;t[Bu]&&t[Bu](),t[Rv]&&t[Rv]()}function Mk(e){u2.set(e,e.el.getBoundingClientRect())}function zk(e){const t=c2.get(e),r=u2.get(e),n=t.left-r.left,o=t.top-r.top;if(n||o){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${n}px,${o}px)`,i.transitionDuration="0s",e}}function Nk(e,t,r){const n=e.cloneNode(),o=e[Va];o&&o.forEach(s=>{s.split(/\s+/).forEach(l=>l&&n.classList.remove(l))}),r.split(/\s+/).forEach(s=>s&&n.classList.add(s)),n.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(n);const{hasTransform:a}=a2(n);return i.removeChild(n),a}const Lv=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Xe(t)?r=>tu(t,r):t};function Hk(e){e.target.composing=!0}function Fv(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Af=Symbol("_assign"),Rde={created(e,{modifiers:{lazy:t,trim:r,number:n}},o){e[Af]=Lv(o);const i=n||o.props&&o.props.type==="number";Ca(e,t?"change":"input",a=>{if(a.target.composing)return;let s=e.value;r&&(s=s.trim()),i&&(s=lh(s)),e[Af](s)}),r&&Ca(e,"change",()=>{e.value=e.value.trim()}),t||(Ca(e,"compositionstart",Hk),Ca(e,"compositionend",Fv),Ca(e,"change",Fv))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:r,trim:n,number:o}},i){if(e[Af]=Lv(i),e.composing)return;const a=o||e.type==="number"?lh(e.value):e.value,s=t??"";a!==s&&(document.activeElement===e&&e.type!=="range"&&(r||n&&e.value.trim()===s)||(e.value=s))}},jk=["ctrl","shift","alt","meta"],Wk={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>jk.some(r=>e[`${r}Key`]&&!t.includes(r))},Lde=(e,t)=>{const r=e._withMods||(e._withMods={}),n=t.join(".");return r[n]||(r[n]=(o,...i)=>{for(let a=0;a<t.length;a++){const s=Wk[t[a]];if(s&&s(o,t))return}return e(o,...i)})},Uk={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Du=(e,t)=>{const r=e._withKeys||(e._withKeys={}),n=t.join(".");return r[n]||(r[n]=o=>{if(!("key"in o))return;const i=Gi(o.key);if(t.some(a=>a===i||Uk[a]===i))return e(o)})},Vk=pr({patchProp:Ok},mk);let Mv;function h2(){return Mv||(Mv=KT(Vk))}const zv=(...e)=>{h2().render(...e)},qk=(...e)=>{const t=h2().createApp(...e),{mount:r}=t;return t.mount=n=>{const o=Yk(n);if(!o)return;const i=t._component;!rt(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.innerHTML="";const a=r(o,!1,Gk(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),a},t};function Gk(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Yk(e){return ar(e)?document.querySelector(e):e}let Ou=[];const p2=new WeakMap;function Kk(){Ou.forEach(e=>e(...p2.get(e))),Ou=[]}function dg(e,...t){p2.set(e,t),!Ou.includes(e)&&Ou.push(e)===1&&requestAnimationFrame(Kk)}function Sl(e){return e.composedPath()[0]||null}function Xk(e){if(typeof e=="number")return{"":e.toString()};const t={};return e.split(/ +/).forEach(r=>{if(r==="")return;const[n,o]=r.split(":");o===void 0?t[""]=n:t[n]=o}),t}function ua(e,t){var r;if(e==null)return;const n=Xk(e);if(t===void 0)return n[""];if(typeof t=="string")return(r=n[t])!==null&&r!==void 0?r:n[""];if(Array.isArray(t)){for(let o=t.length-1;o>=0;--o){const i=t[o];if(i in n)return n[i]}return n[""]}else{let o,i=-1;return Object.keys(n).forEach(a=>{const s=Number(a);!Number.isNaN(s)&&t>=s&&s>=i&&(i=s,o=n[a])}),o}}function yh(e){return typeof e=="string"?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function fo(e){if(e!=null)return typeof e=="number"?`${e}px`:e.endsWith("px")?e:`${e}px`}function Yn(e,t){const r=e.trim().split(/\s+/g),n={top:r[0]};switch(r.length){case 1:n.right=r[0],n.bottom=r[0],n.left=r[0];break;case 2:n.right=r[1],n.left=r[1],n.bottom=r[0];break;case 3:n.right=r[1],n.bottom=r[2],n.left=r[1];break;case 4:n.right=r[1],n.bottom=r[2],n.left=r[3];break;default:throw new Error("[seemly/getMargin]:"+e+" is not a valid value.")}return t===void 0?n:n[t]}function Zk(e,t){const[r,n]=e.split(" ");return t?t==="row"?r:n:{row:r,col:n||r}}const Nv={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"},ps="^\\s*",gs="\\s*$",Ai="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",Pi="([0-9A-Fa-f])",$i="([0-9A-Fa-f]{2})",Qk=new RegExp(`${ps}rgb\\s*\\(${Ai},${Ai},${Ai}\\)${gs}`),Jk=new RegExp(`${ps}rgba\\s*\\(${Ai},${Ai},${Ai},${Ai}\\)${gs}`),eA=new RegExp(`${ps}#${Pi}${Pi}${Pi}${gs}`),tA=new RegExp(`${ps}#${$i}${$i}${$i}${gs}`),rA=new RegExp(`${ps}#${Pi}${Pi}${Pi}${Pi}${gs}`),nA=new RegExp(`${ps}#${$i}${$i}${$i}${$i}${gs}`);function Ur(e){return parseInt(e,16)}function bo(e){try{let t;if(t=tA.exec(e))return[Ur(t[1]),Ur(t[2]),Ur(t[3]),1];if(t=Qk.exec(e))return[Dr(t[1]),Dr(t[5]),Dr(t[9]),1];if(t=Jk.exec(e))return[Dr(t[1]),Dr(t[5]),Dr(t[9]),Qs(t[13])];if(t=eA.exec(e))return[Ur(t[1]+t[1]),Ur(t[2]+t[2]),Ur(t[3]+t[3]),1];if(t=nA.exec(e))return[Ur(t[1]),Ur(t[2]),Ur(t[3]),Qs(Ur(t[4])/255)];if(t=rA.exec(e))return[Ur(t[1]+t[1]),Ur(t[2]+t[2]),Ur(t[3]+t[3]),Qs(Ur(t[4]+t[4])/255)];if(e in Nv)return bo(Nv[e]);throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function oA(e){return e>1?1:e<0?0:e}function Ch(e,t,r,n){return`rgba(${Dr(e)}, ${Dr(t)}, ${Dr(r)}, ${oA(n)})`}function Pf(e,t,r,n,o){return Dr((e*t*(1-n)+r*n)/o)}function Oe(e,t){Array.isArray(e)||(e=bo(e)),Array.isArray(t)||(t=bo(t));const r=e[3],n=t[3],o=Qs(r+n-r*n);return Ch(Pf(e[0],r,t[0],n,o),Pf(e[1],r,t[1],n,o),Pf(e[2],r,t[2],n,o),o)}function fe(e,t){const[r,n,o,i=1]=Array.isArray(e)?e:bo(e);return t.alpha?Ch(r,n,o,t.alpha):Ch(r,n,o,i)}function lr(e,t){const[r,n,o,i=1]=Array.isArray(e)?e:bo(e),{lightness:a=1,alpha:s=1}=t;return iA([r*a,n*a,o*a,i*s])}function Qs(e){const t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function Dr(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function iA(e){const[t,r,n]=e;return 3 in e?`rgba(${Dr(t)}, ${Dr(r)}, ${Dr(n)}, ${Qs(e[3])})`:`rgba(${Dr(t)}, ${Dr(r)}, ${Dr(n)}, 1)`}function Hi(e=8){return Math.random().toString(16).slice(2,2+e)}function aA(e,t){const r=[];for(let n=0;n<e;++n)r.push(t);return r}function fg(e,t="default",r=[]){const o=e.$slots[t];return o===void 0?r:o()}function qa(e,t=[],r){const n={};return t.forEach(o=>{n[o]=e[o]}),Object.assign(n,r)}function yd(e,t=[],r){const n={};return Object.getOwnPropertyNames(e).forEach(i=>{t.includes(i)||(n[i]=e[i])}),Object.assign(n,r)}function po(e,t=!0,r=[]){return e.forEach(n=>{if(n!==null){if(typeof n!="object"){(typeof n=="string"||typeof n=="number")&&r.push(tt(String(n)));return}if(Array.isArray(n)){po(n,t,r);return}if(n.type===st){if(n.children===null)return;Array.isArray(n.children)&&po(n.children,t,r)}else{if(n.type===Lr&&t)return;r.push(n)}}}),r}function at(e,...t){if(Array.isArray(e))e.forEach(r=>at(r,...t));else return e(...t)}function Ga(e){return Object.keys(e)}const Yr=(e,...t)=>typeof e=="function"?e(...t):typeof e=="string"?tt(e):typeof e=="number"?tt(String(e)):null;function ji(e,t){console.error(`[naive/${e}]: ${t}`)}function ms(e,t){throw new Error(`[naive/${e}]: ${t}`)}function wh(e,t="default",r=void 0){const n=e[t];if(!n)return ji("getFirstSlotVNode",`slot[${t}] is empty`),null;const o=po(n(r));return o.length===1?o[0]:(ji("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function Fde(e){return e}function Zl(e){return e.some(t=>wl(t)?!(t.type===Lr||t.type===st&&!Zl(t.children)):!0)?e:null}function go(e,t){return e&&Zl(e())||t()}function g2(e,t,r){return e&&Zl(e(t))||r(t)}function Ft(e,t){const r=e&&Zl(e());return t(r||null)}function Sh(e){return!(e&&Zl(e()))}function sA(e){var t;const r=(t=e.dirs)===null||t===void 0?void 0:t.find(({dir:n})=>n===Zo);return!!(r&&r.value===!1)}const Hv=me({render(){var e,t;return(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)}}),lA=/^(\d|\.)+$/,jv=/(\d|\.)+/;function Li(e,{c:t=1,offset:r=0,attachPx:n=!0}={}){if(typeof e=="number"){const o=(e+r)*t;return o===0?"0":`${o}px`}else if(typeof e=="string")if(lA.test(e)){const o=(Number(e)+r)*t;return n?o===0?"0":`${o}px`:`${o}`}else{const o=jv.exec(e);return o?e.replace(jv,String((Number(o[0])+r)*t)):e}return e}function _l(e){return e.replace(/#|\(|\)|,|\s|\./g,"_")}function cA(e){let t=0;for(let r=0;r<e.length;++r)e[r]==="&"&&++t;return t}const m2=/\s*,(?![^(]*\))\s*/g,uA=/\s+/g;function dA(e,t){const r=[];return t.split(m2).forEach(n=>{let o=cA(n);if(o){if(o===1){e.forEach(a=>{r.push(n.replace("&",a))});return}}else{e.forEach(a=>{r.push((a&&a+" ")+n)});return}let i=[n];for(;o--;){const a=[];i.forEach(s=>{e.forEach(l=>{a.push(s.replace("&",l))})}),i=a}i.forEach(a=>r.push(a))}),r}function fA(e,t){const r=[];return t.split(m2).forEach(n=>{e.forEach(o=>{r.push((o&&o+" ")+n)})}),r}function hA(e){let t=[""];return e.forEach(r=>{r=r&&r.trim(),r&&(r.includes("&")?t=dA(t,r):t=fA(t,r))}),t.join(", ").replace(uA," ")}function Wv(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function Cd(e){return document.querySelector(`style[cssr-id="${e}"]`)}function pA(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function _c(e){return e?/^\s*@(s|m)/.test(e):!1}const gA=/[A-Z]/g;function v2(e){return e.replace(gA,t=>"-"+t.toLowerCase())}function mA(e,t=" "){return typeof e=="object"&&e!==null?` {
|
||
`+Object.entries(e).map(r=>t+` ${v2(r[0])}: ${r[1]};`).join(`
|
||
`)+`
|
||
`+t+"}":`: ${e};`}function vA(e,t,r){return typeof e=="function"?e({context:t.context,props:r}):e}function Uv(e,t,r,n){if(!t)return"";const o=vA(t,r,n);if(!o)return"";if(typeof o=="string")return`${e} {
|
||
${o}
|
||
}`;const i=Object.keys(o);if(i.length===0)return r.config.keepEmptyBlock?e+` {
|
||
}`:"";const a=e?[e+" {"]:[];return i.forEach(s=>{const l=o[s];if(s==="raw"){a.push(`
|
||
`+l+`
|
||
`);return}s=v2(s),l!=null&&a.push(` ${s}${mA(l)}`)}),e&&a.push("}"),a.join(`
|
||
`)}function _h(e,t,r){e&&e.forEach(n=>{if(Array.isArray(n))_h(n,t,r);else if(typeof n=="function"){const o=n(t);Array.isArray(o)?_h(o,t,r):o&&r(o)}else n&&r(n)})}function b2(e,t,r,n,o,i){const a=e.$;let s="";if(!a||typeof a=="string")_c(a)?s=a:t.push(a);else if(typeof a=="function"){const u=a({context:n.context,props:o});_c(u)?s=u:t.push(u)}else if(a.before&&a.before(n.context),!a.$||typeof a.$=="string")_c(a.$)?s=a.$:t.push(a.$);else if(a.$){const u=a.$({context:n.context,props:o});_c(u)?s=u:t.push(u)}const l=hA(t),c=Uv(l,e.props,n,o);s?(r.push(`${s} {`),i&&c&&i.insertRule(`${s} {
|
||
${c}
|
||
}
|
||
`)):(i&&c&&i.insertRule(c),!i&&c.length&&r.push(c)),e.children&&_h(e.children,{context:n.context,props:o},u=>{if(typeof u=="string"){const d=Uv(l,{raw:u},n,o);i?i.insertRule(d):r.push(d)}else b2(u,t,r,n,o,i)}),t.pop(),s&&r.push("}"),a&&a.after&&a.after(n.context)}function x2(e,t,r,n=!1){const o=[];return b2(e,[],o,t,r,n?e.instance.__styleSheet:void 0),n?"":o.join(`
|
||
|
||
`)}function El(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&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 bA(e,t,r){const{els:n}=t;if(r===void 0)n.forEach(Wv),t.els=[];else{const o=Cd(r);o&&n.includes(o)&&(Wv(o),t.els=n.filter(i=>i!==o))}}function Vv(e,t){e.push(t)}function xA(e,t,r,n,o,i,a,s,l){if(i&&!l){if(r===void 0){console.error("[css-render/mount]: `id` is required in `silent` mode.");return}const f=window.__cssrContext;f[r]||(f[r]=!0,x2(t,e,n,i));return}let c;if(r===void 0&&(c=t.render(n),r=El(c)),l){l.adapter(r,c??t.render(n));return}const u=Cd(r);if(u!==null&&!a)return u;const d=u??pA(r);if(c===void 0&&(c=t.render(n)),d.textContent=c,u!==null)return u;if(s){const f=document.head.querySelector(`meta[name="${s}"]`);if(f)return document.head.insertBefore(d,f),Vv(t.els,d),d}return o?document.head.insertBefore(d,document.head.querySelector("style, link")):document.head.appendChild(d),Vv(t.els,d),d}function yA(e){return x2(this,this.instance,e)}function CA(e={}){const{id:t,ssr:r,props:n,head:o=!1,silent:i=!1,force:a=!1,anchorMetaName:s}=e;return xA(this.instance,this,t,n,o,i,a,s,r)}function wA(e={}){const{id:t}=e;bA(this.instance,this,t)}const Ec=function(e,t,r,n){return{instance:e,$:t,props:r,children:n,els:[],render:yA,mount:CA,unmount:wA}},SA=function(e,t,r,n){return Array.isArray(t)?Ec(e,{$:null},null,t):Array.isArray(r)?Ec(e,t,null,r):Array.isArray(n)?Ec(e,t,r,n):Ec(e,t,r,null)};function y2(e={}){let t=null;const r={c:(...n)=>SA(r,...n),use:(n,...o)=>n.install(r,...o),find:Cd,context:{},config:e,get __styleSheet(){if(!t){const n=document.createElement("style");return document.head.appendChild(n),t=document.styleSheets[document.styleSheets.length-1],t}return t}};return r}function _A(e,t){if(e===void 0)return!1;if(t){const{context:{ids:r}}=t;return r.has(e)}return Cd(e)!==null}function EA(e){let t=".",r="__",n="--",o;if(e){let h=e.blockPrefix;h&&(t=h),h=e.elementPrefix,h&&(r=h),h=e.modifierPrefix,h&&(n=h)}const i={install(h){o=h.c;const g=h.context;g.bem={},g.bem.b=null,g.bem.els=null}};function a(h){let g,v;return{before(m){g=m.bem.b,v=m.bem.els,m.bem.els=null},after(m){m.bem.b=g,m.bem.els=v},$({context:m,props:b}){return h=typeof h=="string"?h:h({context:m,props:b}),m.bem.b=h,`${(b==null?void 0:b.bPrefix)||t}${m.bem.b}`}}}function s(h){let g;return{before(v){g=v.bem.els},after(v){v.bem.els=g},$({context:v,props:m}){return h=typeof h=="string"?h:h({context:v,props:m}),v.bem.els=h.split(",").map(b=>b.trim()),v.bem.els.map(b=>`${(m==null?void 0:m.bPrefix)||t}${v.bem.b}${r}${b}`).join(", ")}}}function l(h){return{$({context:g,props:v}){h=typeof h=="string"?h:h({context:g,props:v});const m=h.split(",").map(y=>y.trim());function b(y){return m.map(w=>`&${(v==null?void 0:v.bPrefix)||t}${g.bem.b}${y!==void 0?`${r}${y}`:""}${n}${w}`).join(", ")}const x=g.bem.els;return x!==null?b(x[0]):b()}}}function c(h){return{$({context:g,props:v}){h=typeof h=="string"?h:h({context:g,props:v});const m=g.bem.els;return`&:not(${(v==null?void 0:v.bPrefix)||t}${g.bem.b}${m!==null&&m.length>0?`${r}${m[0]}`:""}${n}${h})`}}}return Object.assign(i,{cB:(...h)=>o(a(h[0]),h[1],h[2]),cE:(...h)=>o(s(h[0]),h[1],h[2]),cM:(...h)=>o(l(h[0]),h[1],h[2]),cNotM:(...h)=>o(c(h[0]),h[1],h[2])}),i}const TA="n",Tl=`.${TA}-`,kA="__",AA="--",C2=y2(),w2=EA({blockPrefix:Tl,elementPrefix:kA,modifierPrefix:AA});C2.use(w2);const{c:q,find:Mde}=C2,{cB:N,cE:Z,cM:Q,cNotM:ir}=w2;function wd(e){return q(({props:{bPrefix:t}})=>`${t||Tl}modal, ${t||Tl}drawer`,[e])}function hg(e){return q(({props:{bPrefix:t}})=>`${t||Tl}popover`,[e])}function S2(e){return q(({props:{bPrefix:t}})=>`&${t||Tl}modal`,e)}const PA=(...e)=>q(">",[N(...e)]);function ye(e,t){return e+(t==="default"?"":t.replace(/^[a-z]/,r=>r.toUpperCase()))}let $f;function $A(){return $f===void 0&&($f=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),$f}const wo=typeof document<"u"&&typeof window<"u",_2=new WeakSet;function zde(e){_2.add(e)}function IA(e){return!_2.has(e)}function BA(e,t,r){var n;const o=Me(e,null);if(o===null)return;const i=(n=Er())===null||n===void 0?void 0:n.proxy;Ye(r,a),a(r.value),Kt(()=>{a(void 0,r.value)});function a(c,u){if(!o)return;const d=o[t];u!==void 0&&s(d,u),c!==void 0&&l(d,c)}function s(c,u){c[u]||(c[u]=[]),c[u].splice(c[u].findIndex(d=>d===i),1)}function l(c,u){c[u]||(c[u]=[]),~c[u].findIndex(d=>d===i)||c[u].push(i)}}function DA(e){const t=z(!!e.value);if(t.value)return vn(t);const r=Ye(e,n=>{n&&(t.value=!0,r())});return vn(t)}function Rr(e){const t=R(e),r=z(t.value);return Ye(t,n=>{r.value=n}),typeof e=="function"?r:{__v_isRef:!0,get value(){return r.value},set value(n){e.set(n)}}}function pg(){return Er()!==null}const Sd=typeof window<"u";let La,Js;const OA=()=>{var e,t;La=Sd?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,Js=!1,La!==void 0?La.then(()=>{Js=!0}):Js=!0};OA();function E2(e){if(Js)return;let t=!1;St(()=>{Js||La==null||La.then(()=>{t||e()})}),Kt(()=>{t=!0})}function iu(e){return e.composedPath()[0]}const RA={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function LA(e,t,r){if(e==="mousemoveoutside"){const n=o=>{t.contains(iu(o))||r(o)};return{mousemove:n,touchstart:n}}else if(e==="clickoutside"){let n=!1;const o=a=>{n=!t.contains(iu(a))},i=a=>{n&&(t.contains(iu(a))||r(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 T2(e,t,r){const n=RA[e];let o=n.get(t);o===void 0&&n.set(t,o=new WeakMap);let i=o.get(r);return i===void 0&&o.set(r,i=LA(e,t,r)),i}function FA(e,t,r,n){if(e==="mousemoveoutside"||e==="clickoutside"){const o=T2(e,t,r);return Object.keys(o).forEach(i=>{er(i,document,o[i],n)}),!0}return!1}function MA(e,t,r,n){if(e==="mousemoveoutside"||e==="clickoutside"){const o=T2(e,t,r);return Object.keys(o).forEach(i=>{kt(i,document,o[i],n)}),!0}return!1}function zA(){if(typeof window>"u")return{on:()=>{},off:()=>{}};const e=new WeakMap,t=new WeakMap;function r(){e.set(this,!0)}function n(){e.set(this,!0),t.set(this,!0)}function o(S,T,P){const A=S[T];return S[T]=function(){return P.apply(S,arguments),A.apply(S,arguments)},S}function i(S,T){S[T]=Event.prototype[T]}const a=new WeakMap,s=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function l(){var S;return(S=a.get(this))!==null&&S!==void 0?S:null}function c(S,T){s!==void 0&&Object.defineProperty(S,"currentTarget",{configurable:!0,enumerable:!0,get:T??s.get})}const u={bubble:{},capture:{}},d={};function f(){const S=function(T){const{type:P,eventPhase:A,bubbles:I}=T,B=iu(T);if(A===2)return;const D=A===1?"capture":"bubble";let U=B;const F=[];for(;U===null&&(U=window),F.push(U),U!==window;)U=U.parentNode||null;const j=u.capture[P],K=u.bubble[P];if(o(T,"stopPropagation",r),o(T,"stopImmediatePropagation",n),c(T,l),D==="capture"){if(j===void 0)return;for(let ae=F.length-1;ae>=0&&!e.has(T);--ae){const we=F[ae],Ce=j.get(we);if(Ce!==void 0){a.set(T,we);for(const X of Ce){if(t.has(T))break;X(T)}}if(ae===0&&!I&&K!==void 0){const X=K.get(we);if(X!==void 0)for(const re of X){if(t.has(T))break;re(T)}}}}else if(D==="bubble"){if(K===void 0)return;for(let ae=0;ae<F.length&&!e.has(T);++ae){const we=F[ae],Ce=K.get(we);if(Ce!==void 0){a.set(T,we);for(const X of Ce){if(t.has(T))break;X(T)}}}}i(T,"stopPropagation"),i(T,"stopImmediatePropagation"),c(T)};return S.displayName="evtdUnifiedHandler",S}function p(){const S=function(T){const{type:P,eventPhase:A}=T;if(A!==2)return;const I=d[P];I!==void 0&&I.forEach(B=>B(T))};return S.displayName="evtdUnifiedWindowEventHandler",S}const h=f(),g=p();function v(S,T){const P=u[S];return P[T]===void 0&&(P[T]=new Map,window.addEventListener(T,h,S==="capture")),P[T]}function m(S){return d[S]===void 0&&(d[S]=new Set,window.addEventListener(S,g)),d[S]}function b(S,T){let P=S.get(T);return P===void 0&&S.set(T,P=new Set),P}function x(S,T,P,A){const I=u[T][P];if(I!==void 0){const B=I.get(S);if(B!==void 0&&B.has(A))return!0}return!1}function y(S,T){const P=d[S];return!!(P!==void 0&&P.has(T))}function w(S,T,P,A){let I;if(typeof A=="object"&&A.once===!0?I=j=>{C(S,T,I,A),P(j)}:I=P,FA(S,T,I,A))return;const D=A===!0||typeof A=="object"&&A.capture===!0?"capture":"bubble",U=v(D,S),F=b(U,T);if(F.has(I)||F.add(I),T===window){const j=m(S);j.has(I)||j.add(I)}}function C(S,T,P,A){if(MA(S,T,P,A))return;const B=A===!0||typeof A=="object"&&A.capture===!0,D=B?"capture":"bubble",U=v(D,S),F=b(U,T);if(T===window&&!x(T,B?"bubble":"capture",S,P)&&y(S,P)){const K=d[S];K.delete(P),K.size===0&&(window.removeEventListener(S,g),d[S]=void 0)}F.has(P)&&F.delete(P),F.size===0&&U.delete(T),U.size===0&&(window.removeEventListener(S,h,D==="capture"),u[D][S]=void 0)}return{on:w,off:C}}const{on:er,off:kt}=zA(),Ws=z(null);function qv(e){if(e.clientX>0||e.clientY>0)Ws.value={x:e.clientX,y:e.clientY};else{const{target:t}=e;if(t instanceof Element){const{left:r,top:n,width:o,height:i}=t.getBoundingClientRect();r>0||n>0?Ws.value={x:r+o/2,y:n+i/2}:Ws.value={x:0,y:0}}else Ws.value=null}}let Tc=0,Gv=!0;function k2(){if(!Sd)return vn(z(null));Tc===0&&er("click",document,qv,!0);const e=()=>{Tc+=1};return Gv&&(Gv=pg())?(Rn(e),Kt(()=>{Tc-=1,Tc===0&&kt("click",document,qv,!0)})):e(),vn(Ws)}const NA=z(void 0);let kc=0;function Yv(){NA.value=Date.now()}let Kv=!0;function A2(e){if(!Sd)return vn(z(!1));const t=z(!1);let r=null;function n(){r!==null&&window.clearTimeout(r)}function o(){n(),t.value=!0,r=window.setTimeout(()=>{t.value=!1},e)}kc===0&&er("click",window,Yv,!0);const i=()=>{kc+=1,er("click",window,o,!0)};return Kv&&(Kv=pg())?(Rn(i),Kt(()=>{kc-=1,kc===0&&kt("click",window,Yv,!0),kt("click",window,o,!0),n()})):i(),vn(t)}let Ac=0;const HA=typeof window<"u"&&window.matchMedia!==void 0,Fi=z(null);let kn,Ii;function Ru(e){e.matches&&(Fi.value="dark")}function Lu(e){e.matches&&(Fi.value="light")}function jA(){kn=window.matchMedia("(prefers-color-scheme: dark)"),Ii=window.matchMedia("(prefers-color-scheme: light)"),kn.matches?Fi.value="dark":Ii.matches?Fi.value="light":Fi.value=null,kn.addEventListener?(kn.addEventListener("change",Ru),Ii.addEventListener("change",Lu)):kn.addListener&&(kn.addListener(Ru),Ii.addListener(Lu))}function WA(){"removeEventListener"in kn?(kn.removeEventListener("change",Ru),Ii.removeEventListener("change",Lu)):"removeListener"in kn&&(kn.removeListener(Ru),Ii.removeListener(Lu)),kn=void 0,Ii=void 0}let Xv=!0;function UA(){return HA&&(Ac===0&&jA(),Xv&&(Xv=pg())&&(Rn(()=>{Ac+=1}),Kt(()=>{Ac-=1,Ac===0&&WA()}))),vn(Fi)}function vs(e,t){return Ye(e,r=>{r!==void 0&&(t.value=r)}),R(()=>e.value===void 0?t.value:e.value)}function bs(){const e=z(!1);return St(()=>{e.value=!0}),vn(e)}function Fu(e,t){return R(()=>{for(const r of t)if(e[r]!==void 0)return e[r];return e[t[t.length-1]]})}const VA=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function qA(){return VA}const GA={xs:0,s:640,m:1024,l:1280,xl:1536,"2xl":1920};function YA(e){return`(min-width: ${e}px)`}const Bs={};function KA(e=GA){if(!Sd)return R(()=>[]);if(typeof window.matchMedia!="function")return R(()=>[]);const t=z({}),r=Object.keys(e),n=(o,i)=>{o.matches?t.value[i]=!0:t.value[i]=!1};return r.forEach(o=>{const i=e[o];let a,s;Bs[i]===void 0?(a=window.matchMedia(YA(i)),a.addEventListener?a.addEventListener("change",l=>{s.forEach(c=>{c(l,o)})}):a.addListener&&a.addListener(l=>{s.forEach(c=>{c(l,o)})}),s=new Set,Bs[i]={mql:a,cbs:s}):(a=Bs[i].mql,s=Bs[i].cbs),s.add(n),a.matches&&s.forEach(l=>{l(a,o)})}),Kt(()=>{r.forEach(o=>{const{cbs:i}=Bs[e[o]];i.has(n)&&i.delete(n)})}),R(()=>{const{value:o}=t;return r.filter(i=>o[i])})}const Nde="n-internal-select-menu",XA="n-internal-select-menu-body",gg="n-modal-body",ZA="n-modal-provider",P2="n-modal",mg="n-drawer-body",Hde="n-drawer",vg="n-popover-body",$2="__disabled__";function Ya(e){const t=Me(gg,null),r=Me(mg,null),n=Me(vg,null),o=Me(XA,null),i=z();if(typeof document<"u"){i.value=document.fullscreenElement;const a=()=>{i.value=document.fullscreenElement};St(()=>{er("fullscreenchange",document,a)}),Kt(()=>{kt("fullscreenchange",document,a)})}return Rr(()=>{var a;const{to:s}=e;return s!==void 0?s===!1?$2:s===!0?i.value||"body":s:t!=null&&t.value?(a=t.value.$el)!==null&&a!==void 0?a:t.value:r!=null&&r.value?r.value:n!=null&&n.value?n.value:o!=null&&o.value?o.value:s??(i.value||"body")})}Ya.tdkey=$2;Ya.propTo={type:[String,Object,Boolean],default:void 0};let Zv=!1;function QA(){if(wo&&window.CSS&&!Zv&&(Zv=!0,"registerProperty"in(window==null?void 0:window.CSS)))try{CSS.registerProperty({name:"--n-color-start",syntax:"<color>",inherits:!1,initialValue:"#0000"}),CSS.registerProperty({name:"--n-color-end",syntax:"<color>",inherits:!1,initialValue:"#0000"})}catch{}}function Eh(e,t,r="default"){const n=t[r];if(n===void 0)throw new Error(`[vueuc/${e}]: slot[${r}] is empty.`);return n()}function Th(e,t=!0,r=[]){return e.forEach(n=>{if(n!==null){if(typeof n!="object"){(typeof n=="string"||typeof n=="number")&&r.push(tt(String(n)));return}if(Array.isArray(n)){Th(n,t,r);return}if(n.type===st){if(n.children===null)return;Array.isArray(n.children)&&Th(n.children,t,r)}else n.type!==Lr&&r.push(n)}}),r}function Qv(e,t,r="default"){const n=t[r];if(n===void 0)throw new Error(`[vueuc/${e}]: slot[${r}] is empty.`);const o=Th(n());if(o.length===1)return o[0];throw new Error(`[vueuc/${e}]: slot[${r}] should have exactly one child.`)}let $o=null;function I2(){if($o===null&&($o=document.getElementById("v-binder-view-measurer"),$o===null)){$o=document.createElement("div"),$o.id="v-binder-view-measurer";const{style:e}=$o;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild($o)}return $o.getBoundingClientRect()}function JA(e,t){const r=I2();return{top:t,left:e,height:0,width:0,right:r.width-e,bottom:r.height-t}}function If(e){const t=e.getBoundingClientRect(),r=I2();return{left:t.left-r.left,top:t.top-r.top,bottom:r.height+r.top-t.bottom,right:r.width+r.left-t.right,width:t.width,height:t.height}}function eP(e){return e.nodeType===9?null:e.parentNode}function B2(e){if(e===null)return null;const t=eP(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:r,overflowX:n,overflowY:o}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(r+o+n))return t}return B2(t)}const tP=me({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;dt("VBinder",(t=Er())===null||t===void 0?void 0:t.proxy);const r=Me("VBinder",null),n=z(null),o=m=>{n.value=m,r&&e.syncTargetWithParent&&r.setTargetRef(m)};let i=[];const a=()=>{let m=n.value;for(;m=B2(m),m!==null;)i.push(m);for(const b of i)er("scroll",b,d,!0)},s=()=>{for(const m of i)kt("scroll",m,d,!0);i=[]},l=new Set,c=m=>{l.size===0&&a(),l.has(m)||l.add(m)},u=m=>{l.has(m)&&l.delete(m),l.size===0&&s()},d=()=>{dg(f)},f=()=>{l.forEach(m=>m())},p=new Set,h=m=>{p.size===0&&er("resize",window,v),p.has(m)||p.add(m)},g=m=>{p.has(m)&&p.delete(m),p.size===0&&kt("resize",window,v)},v=()=>{p.forEach(m=>m())};return Kt(()=>{kt("resize",window,v),s()}),{targetRef:n,setTargetRef:o,addScrollListener:c,removeScrollListener:u,addResizeListener:h,removeResizeListener:g}},render(){return Eh("binder",this.$slots)}}),rP=tP,nP=me({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=Me("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?bn(Qv("follower",this.$slots),[[t]]):Qv("follower",this.$slots)}}),da="@@mmoContext",oP={mounted(e,{value:t}){e[da]={handler:void 0},typeof t=="function"&&(e[da].handler=t,er("mousemoveoutside",e,t))},updated(e,{value:t}){const r=e[da];typeof t=="function"?r.handler?r.handler!==t&&(kt("mousemoveoutside",e,r.handler),r.handler=t,er("mousemoveoutside",e,t)):(e[da].handler=t,er("mousemoveoutside",e,t)):r.handler&&(kt("mousemoveoutside",e,r.handler),r.handler=void 0)},unmounted(e){const{handler:t}=e[da];t&&kt("mousemoveoutside",e,t),e[da].handler=void 0}},iP=oP,fa="@@coContext",aP={mounted(e,{value:t,modifiers:r}){e[fa]={handler:void 0},typeof t=="function"&&(e[fa].handler=t,er("clickoutside",e,t,{capture:r.capture}))},updated(e,{value:t,modifiers:r}){const n=e[fa];typeof t=="function"?n.handler?n.handler!==t&&(kt("clickoutside",e,n.handler,{capture:r.capture}),n.handler=t,er("clickoutside",e,t,{capture:r.capture})):(e[fa].handler=t,er("clickoutside",e,t,{capture:r.capture})):n.handler&&(kt("clickoutside",e,n.handler,{capture:r.capture}),n.handler=void 0)},unmounted(e,{modifiers:t}){const{handler:r}=e[fa];r&&kt("clickoutside",e,r,{capture:t.capture}),e[fa].handler=void 0}},kh=aP;function sP(e,t){console.error(`[vdirs/${e}]: ${t}`)}class lP{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(t,r){const{elementZIndex:n}=this;if(r!==void 0){t.style.zIndex=`${r}`,n.delete(t);return}const{nextZIndex:o}=this;n.has(t)&&n.get(t)+1===this.nextZIndex||(t.style.zIndex=`${o}`,n.set(t,o),this.nextZIndex=o+1,this.squashState())}unregister(t,r){const{elementZIndex:n}=this;n.has(t)?n.delete(t):r===void 0&&sP("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((r,n)=>r[1]-n[1]),this.nextZIndex=2e3,t.forEach(r=>{const n=r[0],o=this.nextZIndex++;`${o}`!==n.style.zIndex&&(n.style.zIndex=`${o}`)})}}const Bf=new lP,ha="@@ziContext",cP={mounted(e,t){const{value:r={}}=t,{zIndex:n,enabled:o}=r;e[ha]={enabled:!!o,initialized:!1},o&&(Bf.ensureZIndex(e,n),e[ha].initialized=!0)},updated(e,t){const{value:r={}}=t,{zIndex:n,enabled:o}=r,i=e[ha].enabled;o&&!i&&(Bf.ensureZIndex(e,n),e[ha].initialized=!0),e[ha].enabled=!!o},unmounted(e,t){if(!e[ha].initialized)return;const{value:r={}}=t,{zIndex:n}=r;Bf.unregister(e,n)}},_d=cP,D2=Symbol("@css-render/vue3-ssr");function uP(e,t){return`<style cssr-id="${e}">
|
||
${t}
|
||
</style>`}function dP(e,t){const r=Me(D2,null);if(r===null){console.error("[css-render/vue3-ssr]: no ssr context found.");return}const{styles:n,ids:o}=r;o.has(e)||n!==null&&(o.add(e),n.push(uP(e,t)))}const fP=typeof document<"u";function xs(){if(fP)return;const e=Me(D2,null);if(e!==null)return{adapter:dP,context:e}}function Jv(e,t){console.error(`[vueuc/${e}]: ${t}`)}const{c:Ta}=y2(),O2="vueuc-style";function eb(e){return typeof e=="string"?document.querySelector(e):e()}const bg=me({name:"LazyTeleport",props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup(e){return{showTeleport:DA(nt(e,"show")),mergedTo:R(()=>{const{to:t}=e;return t??"body"})}},render(){return this.showTeleport?this.disabled?Eh("lazy-teleport",this.$slots):k(vd,{disabled:this.disabled,to:this.mergedTo},Eh("lazy-teleport",this.$slots)):null}}),Pc={top:"bottom",bottom:"top",left:"right",right:"left"},tb={start:"end",center:"center",end:"start"},Df={top:"height",bottom:"height",left:"width",right:"width"},hP={"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"},pP={"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"},gP={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},rb={top:!0,bottom:!1,left:!0,right:!1},nb={top:"end",bottom:"start",left:"end",right:"start"};function mP(e,t,r,n,o,i){if(!o||i)return{placement:e,top:0,left:0};const[a,s]=e.split("-");let l=s??"center",c={top:0,left:0};const u=(p,h,g)=>{let v=0,m=0;const b=r[p]-t[h]-t[p];return b>0&&n&&(g?m=rb[h]?b:-b:v=rb[h]?b:-b),{left:v,top:m}},d=a==="left"||a==="right";if(l!=="center"){const p=gP[e],h=Pc[p],g=Df[p];if(r[g]>t[g]){if(t[p]+t[g]<r[g]){const v=(r[g]-t[g])/2;t[p]<v||t[h]<v?t[p]<t[h]?(l=tb[s],c=u(g,h,d)):c=u(g,p,d):l="center"}}else r[g]<t[g]&&t[h]<0&&t[p]>t[h]&&(l=tb[s])}else{const p=a==="bottom"||a==="top"?"left":"top",h=Pc[p],g=Df[p],v=(r[g]-t[g])/2;(t[p]<v||t[h]<v)&&(t[p]>t[h]?(l=nb[p],c=u(g,p,d)):(l=nb[h],c=u(g,h,d)))}let f=a;return t[a]<r[Df[a]]&&t[a]<t[Pc[a]]&&(f=Pc[a]),{placement:l!=="center"?`${f}-${l}`:f,left:c.left,top:c.top}}function vP(e,t){return t?pP[e]:hP[e]}function bP(e,t,r,n,o,i){if(i)switch(e){case"bottom-start":return{top:`${Math.round(r.top-t.top+r.height)}px`,left:`${Math.round(r.left-t.left)}px`,transform:"translateY(-100%)"};case"bottom-end":return{top:`${Math.round(r.top-t.top+r.height)}px`,left:`${Math.round(r.left-t.left+r.width)}px`,transform:"translateX(-100%) translateY(-100%)"};case"top-start":return{top:`${Math.round(r.top-t.top)}px`,left:`${Math.round(r.left-t.left)}px`,transform:""};case"top-end":return{top:`${Math.round(r.top-t.top)}px`,left:`${Math.round(r.left-t.left+r.width)}px`,transform:"translateX(-100%)"};case"right-start":return{top:`${Math.round(r.top-t.top)}px`,left:`${Math.round(r.left-t.left+r.width)}px`,transform:"translateX(-100%)"};case"right-end":return{top:`${Math.round(r.top-t.top+r.height)}px`,left:`${Math.round(r.left-t.left+r.width)}px`,transform:"translateX(-100%) translateY(-100%)"};case"left-start":return{top:`${Math.round(r.top-t.top)}px`,left:`${Math.round(r.left-t.left)}px`,transform:""};case"left-end":return{top:`${Math.round(r.top-t.top+r.height)}px`,left:`${Math.round(r.left-t.left)}px`,transform:"translateY(-100%)"};case"top":return{top:`${Math.round(r.top-t.top)}px`,left:`${Math.round(r.left-t.left+r.width/2)}px`,transform:"translateX(-50%)"};case"right":return{top:`${Math.round(r.top-t.top+r.height/2)}px`,left:`${Math.round(r.left-t.left+r.width)}px`,transform:"translateX(-100%) translateY(-50%)"};case"left":return{top:`${Math.round(r.top-t.top+r.height/2)}px`,left:`${Math.round(r.left-t.left)}px`,transform:"translateY(-50%)"};case"bottom":default:return{top:`${Math.round(r.top-t.top+r.height)}px`,left:`${Math.round(r.left-t.left+r.width/2)}px`,transform:"translateX(-50%) translateY(-100%)"}}switch(e){case"bottom-start":return{top:`${Math.round(r.top-t.top+r.height+n)}px`,left:`${Math.round(r.left-t.left+o)}px`,transform:""};case"bottom-end":return{top:`${Math.round(r.top-t.top+r.height+n)}px`,left:`${Math.round(r.left-t.left+r.width+o)}px`,transform:"translateX(-100%)"};case"top-start":return{top:`${Math.round(r.top-t.top+n)}px`,left:`${Math.round(r.left-t.left+o)}px`,transform:"translateY(-100%)"};case"top-end":return{top:`${Math.round(r.top-t.top+n)}px`,left:`${Math.round(r.left-t.left+r.width+o)}px`,transform:"translateX(-100%) translateY(-100%)"};case"right-start":return{top:`${Math.round(r.top-t.top+n)}px`,left:`${Math.round(r.left-t.left+r.width+o)}px`,transform:""};case"right-end":return{top:`${Math.round(r.top-t.top+r.height+n)}px`,left:`${Math.round(r.left-t.left+r.width+o)}px`,transform:"translateY(-100%)"};case"left-start":return{top:`${Math.round(r.top-t.top+n)}px`,left:`${Math.round(r.left-t.left+o)}px`,transform:"translateX(-100%)"};case"left-end":return{top:`${Math.round(r.top-t.top+r.height+n)}px`,left:`${Math.round(r.left-t.left+o)}px`,transform:"translateX(-100%) translateY(-100%)"};case"top":return{top:`${Math.round(r.top-t.top+n)}px`,left:`${Math.round(r.left-t.left+r.width/2+o)}px`,transform:"translateY(-100%) translateX(-50%)"};case"right":return{top:`${Math.round(r.top-t.top+r.height/2+n)}px`,left:`${Math.round(r.left-t.left+r.width+o)}px`,transform:"translateY(-50%)"};case"left":return{top:`${Math.round(r.top-t.top+r.height/2+n)}px`,left:`${Math.round(r.left-t.left+o)}px`,transform:"translateY(-50%) translateX(-100%)"};case"bottom":default:return{top:`${Math.round(r.top-t.top+r.height+n)}px`,left:`${Math.round(r.left-t.left+r.width/2+o)}px`,transform:"translateX(-50%)"}}}const xP=Ta([Ta(".v-binder-follower-container",{position:"absolute",left:"0",right:"0",top:"0",height:"0",pointerEvents:"none",zIndex:"auto"}),Ta(".v-binder-follower-content",{position:"absolute",zIndex:"auto"},[Ta("> *",{pointerEvents:"all"})])]),yP=me({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=Me("VBinder"),r=Rr(()=>e.enabled!==void 0?e.enabled:e.show),n=z(null),o=z(null),i=()=>{const{syncTrigger:f}=e;f.includes("scroll")&&t.addScrollListener(l),f.includes("resize")&&t.addResizeListener(l)},a=()=>{t.removeScrollListener(l),t.removeResizeListener(l)};St(()=>{r.value&&(l(),i())});const s=xs();xP.mount({id:"vueuc/binder",head:!0,anchorMetaName:O2,ssr:s}),Kt(()=>{a()}),E2(()=>{r.value&&l()});const l=()=>{if(!r.value)return;const f=n.value;if(f===null)return;const p=t.targetRef,{x:h,y:g,overlap:v}=e,m=h!==void 0&&g!==void 0?JA(h,g):If(p);f.style.setProperty("--v-target-width",`${Math.round(m.width)}px`),f.style.setProperty("--v-target-height",`${Math.round(m.height)}px`);const{width:b,minWidth:x,placement:y,internalShift:w,flip:C}=e;f.setAttribute("v-placement",y),v?f.setAttribute("v-overlap",""):f.removeAttribute("v-overlap");const{style:S}=f;b==="target"?S.width=`${m.width}px`:b!==void 0?S.width=b:S.width="",x==="target"?S.minWidth=`${m.width}px`:x!==void 0?S.minWidth=x:S.minWidth="";const T=If(f),P=If(o.value),{left:A,top:I,placement:B}=mP(y,m,T,w,C,v),D=vP(B,v),{left:U,top:F,transform:j}=bP(B,P,m,I,A,v);f.setAttribute("v-placement",B),f.style.setProperty("--v-offset-left",`${Math.round(A)}px`),f.style.setProperty("--v-offset-top",`${Math.round(I)}px`),f.style.transform=`translateX(${U}) translateY(${F}) ${j}`,f.style.setProperty("--v-transform-origin",D),f.style.transformOrigin=D};Ye(r,f=>{f?(i(),c()):a()});const c=()=>{zt().then(l).catch(f=>console.error(f))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(f=>{Ye(nt(e,f),l)}),["teleportDisabled"].forEach(f=>{Ye(nt(e,f),c)}),Ye(nt(e,"syncTrigger"),f=>{f.includes("resize")?t.addResizeListener(l):t.removeResizeListener(l),f.includes("scroll")?t.addScrollListener(l):t.removeScrollListener(l)});const u=bs(),d=Rr(()=>{const{to:f}=e;if(f!==void 0)return f;u.value});return{VBinder:t,mergedEnabled:r,offsetContainerRef:o,followerRef:n,mergedTo:d,syncPosition:l}},render(){return k(bg,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const r=k("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[k("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?bn(r,[[_d,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):r}})}});var Mi=[],CP=function(){return Mi.some(function(e){return e.activeTargets.length>0})},wP=function(){return Mi.some(function(e){return e.skippedTargets.length>0})},ob="ResizeObserver loop completed with undelivered notifications.",SP=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:ob}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=ob),window.dispatchEvent(e)},kl;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(kl||(kl={}));var zi=function(e){return Object.freeze(e)},_P=function(){function e(t,r){this.inlineSize=t,this.blockSize=r,zi(this)}return e}(),R2=function(){function e(t,r,n,o){return this.x=t,this.y=r,this.width=n,this.height=o,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,zi(this)}return e.prototype.toJSON=function(){var t=this,r=t.x,n=t.y,o=t.top,i=t.right,a=t.bottom,s=t.left,l=t.width,c=t.height;return{x:r,y:n,top:o,right:i,bottom:a,left:s,width:l,height:c}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),xg=function(e){return e instanceof SVGElement&&"getBBox"in e},L2=function(e){if(xg(e)){var t=e.getBBox(),r=t.width,n=t.height;return!r&&!n}var o=e,i=o.offsetWidth,a=o.offsetHeight;return!(i||a||e.getClientRects().length)},ib=function(e){var t;if(e instanceof Element)return!0;var r=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(r&&e instanceof r.Element)},EP=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},el=typeof window<"u"?window:{},$c=new WeakMap,ab=/auto|scroll/,TP=/^tb|vertical/,kP=/msie|trident/i.test(el.navigator&&el.navigator.userAgent),zn=function(e){return parseFloat(e||"0")},Fa=function(e,t,r){return e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=!1),new _P((r?t:e)||0,(r?e:t)||0)},sb=zi({devicePixelContentBoxSize:Fa(),borderBoxSize:Fa(),contentBoxSize:Fa(),contentRect:new R2(0,0,0,0)}),F2=function(e,t){if(t===void 0&&(t=!1),$c.has(e)&&!t)return $c.get(e);if(L2(e))return $c.set(e,sb),sb;var r=getComputedStyle(e),n=xg(e)&&e.ownerSVGElement&&e.getBBox(),o=!kP&&r.boxSizing==="border-box",i=TP.test(r.writingMode||""),a=!n&&ab.test(r.overflowY||""),s=!n&&ab.test(r.overflowX||""),l=n?0:zn(r.paddingTop),c=n?0:zn(r.paddingRight),u=n?0:zn(r.paddingBottom),d=n?0:zn(r.paddingLeft),f=n?0:zn(r.borderTopWidth),p=n?0:zn(r.borderRightWidth),h=n?0:zn(r.borderBottomWidth),g=n?0:zn(r.borderLeftWidth),v=d+c,m=l+u,b=g+p,x=f+h,y=s?e.offsetHeight-x-e.clientHeight:0,w=a?e.offsetWidth-b-e.clientWidth:0,C=o?v+b:0,S=o?m+x:0,T=n?n.width:zn(r.width)-C-w,P=n?n.height:zn(r.height)-S-y,A=T+v+w+b,I=P+m+y+x,B=zi({devicePixelContentBoxSize:Fa(Math.round(T*devicePixelRatio),Math.round(P*devicePixelRatio),i),borderBoxSize:Fa(A,I,i),contentBoxSize:Fa(T,P,i),contentRect:new R2(d,l,T,P)});return $c.set(e,B),B},M2=function(e,t,r){var n=F2(e,r),o=n.borderBoxSize,i=n.contentBoxSize,a=n.devicePixelContentBoxSize;switch(t){case kl.DEVICE_PIXEL_CONTENT_BOX:return a;case kl.BORDER_BOX:return o;default:return i}},AP=function(){function e(t){var r=F2(t);this.target=t,this.contentRect=r.contentRect,this.borderBoxSize=zi([r.borderBoxSize]),this.contentBoxSize=zi([r.contentBoxSize]),this.devicePixelContentBoxSize=zi([r.devicePixelContentBoxSize])}return e}(),z2=function(e){if(L2(e))return 1/0;for(var t=0,r=e.parentNode;r;)t+=1,r=r.parentNode;return t},PP=function(){var e=1/0,t=[];Mi.forEach(function(a){if(a.activeTargets.length!==0){var s=[];a.activeTargets.forEach(function(c){var u=new AP(c.target),d=z2(c.target);s.push(u),c.lastReportedSize=M2(c.target,c.observedBox),d<e&&(e=d)}),t.push(function(){a.callback.call(a.observer,s,a.observer)}),a.activeTargets.splice(0,a.activeTargets.length)}});for(var r=0,n=t;r<n.length;r++){var o=n[r];o()}return e},lb=function(e){Mi.forEach(function(r){r.activeTargets.splice(0,r.activeTargets.length),r.skippedTargets.splice(0,r.skippedTargets.length),r.observationTargets.forEach(function(o){o.isActive()&&(z2(o.target)>e?r.activeTargets.push(o):r.skippedTargets.push(o))})})},$P=function(){var e=0;for(lb(e);CP();)e=PP(),lb(e);return wP()&&SP(),e>0},Of,N2=[],IP=function(){return N2.splice(0).forEach(function(e){return e()})},BP=function(e){if(!Of){var t=0,r=document.createTextNode(""),n={characterData:!0};new MutationObserver(function(){return IP()}).observe(r,n),Of=function(){r.textContent="".concat(t?t--:t++)}}N2.push(e),Of()},DP=function(e){BP(function(){requestAnimationFrame(e)})},au=0,OP=function(){return!!au},RP=250,LP={attributes:!0,characterData:!0,childList:!0,subtree:!0},cb=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],ub=function(e){return e===void 0&&(e=0),Date.now()+e},Rf=!1,FP=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var r=this;if(t===void 0&&(t=RP),!Rf){Rf=!0;var n=ub(t);DP(function(){var o=!1;try{o=$P()}finally{if(Rf=!1,t=n-ub(),!OP())return;o?r.run(1e3):t>0?r.run(t):r.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,r=function(){return t.observer&&t.observer.observe(document.body,LP)};document.body?r():el.addEventListener("DOMContentLoaded",r)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),cb.forEach(function(r){return el.addEventListener(r,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),cb.forEach(function(r){return el.removeEventListener(r,t.listener,!0)}),this.stopped=!0)},e}(),Ah=new FP,db=function(e){!au&&e>0&&Ah.start(),au+=e,!au&&Ah.stop()},MP=function(e){return!xg(e)&&!EP(e)&&getComputedStyle(e).display==="inline"},zP=function(){function e(t,r){this.target=t,this.observedBox=r||kl.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=M2(this.target,this.observedBox,!0);return MP(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),NP=function(){function e(t,r){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=r}return e}(),Ic=new WeakMap,fb=function(e,t){for(var r=0;r<e.length;r+=1)if(e[r].target===t)return r;return-1},Bc=function(){function e(){}return e.connect=function(t,r){var n=new NP(t,r);Ic.set(t,n)},e.observe=function(t,r,n){var o=Ic.get(t),i=o.observationTargets.length===0;fb(o.observationTargets,r)<0&&(i&&Mi.push(o),o.observationTargets.push(new zP(r,n&&n.box)),db(1),Ah.schedule())},e.unobserve=function(t,r){var n=Ic.get(t),o=fb(n.observationTargets,r),i=n.observationTargets.length===1;o>=0&&(i&&Mi.splice(Mi.indexOf(n),1),n.observationTargets.splice(o,1),db(-1))},e.disconnect=function(t){var r=this,n=Ic.get(t);n.observationTargets.slice().forEach(function(o){return r.unobserve(t,o.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),HP=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.");Bc.connect(this,t)}return e.prototype.observe=function(t,r){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!ib(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Bc.observe(this,t,r)},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(!ib(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Bc.unobserve(this,t)},e.prototype.disconnect=function(){Bc.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class jP{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||HP)(this.handleResize),this.elHandlersMap=new Map}handleResize(t){for(const r of t){const n=this.elHandlersMap.get(r.target);n!==void 0&&n(r)}}registerHandler(t,r){this.elHandlersMap.set(t,r),this.observer.observe(t)}unregisterHandler(t){this.elHandlersMap.has(t)&&(this.elHandlersMap.delete(t),this.observer.unobserve(t))}}const hb=new jP,Ko=me({name:"ResizeObserver",props:{onResize:Function},setup(e){let t=!1;const r=Er().proxy;function n(o){const{onResize:i}=e;i!==void 0&&i(o)}St(()=>{const o=r.$el;if(o===void 0){Jv("resize-observer","$el does not exist.");return}if(o.nextElementSibling!==o.nextSibling&&o.nodeType===3&&o.nodeValue!==""){Jv("resize-observer","$el can not be observed (it may be a text node).");return}o.nextElementSibling!==null&&(hb.registerHandler(o.nextElementSibling,n),t=!0)}),Kt(()=>{t&&hb.unregisterHandler(r.$el.nextElementSibling)})},render(){return Ua(this.$slots,"default")}}),WP=Ta(".v-x-scroll",{overflow:"auto",scrollbarWidth:"none"},[Ta("&::-webkit-scrollbar",{width:0,height:0})]),UP=me({name:"XScroll",props:{disabled:Boolean,onScroll:Function},setup(){const e=z(null);function t(o){!(o.currentTarget.offsetWidth<o.currentTarget.scrollWidth)||o.deltaY===0||(o.currentTarget.scrollLeft+=o.deltaY+o.deltaX,o.preventDefault())}const r=xs();return WP.mount({id:"vueuc/x-scroll",head:!0,anchorMetaName:O2,ssr:r}),Object.assign({selfRef:e,handleWheel:t},{scrollTo(...o){var i;(i=e.value)===null||i===void 0||i.scrollTo(...o)}})},render(){return k("div",{ref:"selfRef",onScroll:this.onScroll,onWheel:this.disabled?void 0:this.handleWheel,class:"v-x-scroll"},this.$slots)}});function H2(e){return e instanceof HTMLElement}function j2(e){for(let t=0;t<e.childNodes.length;t++){const r=e.childNodes[t];if(H2(r)&&(U2(r)||j2(r)))return!0}return!1}function W2(e){for(let t=e.childNodes.length-1;t>=0;t--){const r=e.childNodes[t];if(H2(r)&&(U2(r)||W2(r)))return!0}return!1}function U2(e){if(!VP(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function VP(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 Ds=[];const V2=me({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=Hi(),r=z(null),n=z(null);let o=!1,i=!1;const a=typeof document>"u"?null:document.activeElement;function s(){return Ds[Ds.length-1]===t}function l(v){var m;v.code==="Escape"&&s()&&((m=e.onEsc)===null||m===void 0||m.call(e,v))}St(()=>{Ye(()=>e.active,v=>{v?(d(),er("keydown",document,l)):(kt("keydown",document,l),o&&f())},{immediate:!0})}),Kt(()=>{kt("keydown",document,l),o&&f()});function c(v){if(!i&&s()){const m=u();if(m===null||m.contains(Sl(v)))return;p("first")}}function u(){const v=r.value;if(v===null)return null;let m=v;for(;m=m.nextSibling,!(m===null||m instanceof Element&&m.tagName==="DIV"););return m}function d(){var v;if(!e.disabled){if(Ds.push(t),e.autoFocus){const{initialFocusTo:m}=e;m===void 0?p("first"):(v=eb(m))===null||v===void 0||v.focus({preventScroll:!0})}o=!0,document.addEventListener("focus",c,!0)}}function f(){var v;if(e.disabled||(document.removeEventListener("focus",c,!0),Ds=Ds.filter(b=>b!==t),s()))return;const{finalFocusTo:m}=e;m!==void 0?(v=eb(m))===null||v===void 0||v.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&a instanceof HTMLElement&&(i=!0,a.focus({preventScroll:!0}),i=!1)}function p(v){if(s()&&e.active){const m=r.value,b=n.value;if(m!==null&&b!==null){const x=u();if(x==null||x===b){i=!0,m.focus({preventScroll:!0}),i=!1;return}i=!0;const y=v==="first"?j2(x):W2(x);i=!1,y||(i=!0,m.focus({preventScroll:!0}),i=!1)}}}function h(v){if(i)return;const m=u();m!==null&&(v.relatedTarget!==null&&m.contains(v.relatedTarget)?p("last"):p("first"))}function g(v){i||(v.relatedTarget!==null&&v.relatedTarget===r.value?p("last"):p("first"))}return{focusableStartRef:r,focusableEndRef:n,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:h,handleEndFocus:g}},render(){const{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();const{active:t,focusableStyle:r}=this;return k(st,null,[k("div",{"aria-hidden":"true",tabindex:t?"0":"-1",ref:"focusableStartRef",style:r,onFocus:this.handleStartFocus}),e(),k("div",{"aria-hidden":"true",style:r,ref:"focusableEndRef",tabindex:t?"0":"-1",onFocus:this.handleEndFocus})])}});let pa=0,pb="",gb="",mb="",vb="";const bb=z("0px");function qP(e){if(typeof document>"u")return;const t=document.documentElement;let r,n=!1;const o=()=>{t.style.marginRight=pb,t.style.overflow=gb,t.style.overflowX=mb,t.style.overflowY=vb,bb.value="0px"};St(()=>{r=Ye(e,i=>{if(i){if(!pa){const a=window.innerWidth-t.offsetWidth;a>0&&(pb=t.style.marginRight,t.style.marginRight=`${a}px`,bb.value=`${a}px`),gb=t.style.overflow,mb=t.style.overflowX,vb=t.style.overflowY,t.style.overflow="hidden",t.style.overflowX="hidden",t.style.overflowY="hidden"}n=!0,pa++}else pa--,pa||o(),n=!1},{immediate:!0})}),Kt(()=>{r==null||r(),n&&(pa--,pa||o(),n=!1)})}const yg=z(!1),xb=()=>{yg.value=!0},yb=()=>{yg.value=!1};let Os=0;const GP=()=>(wo&&(Rn(()=>{Os||(window.addEventListener("compositionstart",xb),window.addEventListener("compositionend",yb)),Os++}),Kt(()=>{Os<=1?(window.removeEventListener("compositionstart",xb),window.removeEventListener("compositionend",yb),Os=0):Os--})),yg);function q2(e){const t={isDeactivated:!1};let r=!1;return zw(()=>{if(t.isDeactivated=!1,!r){r=!0;return}e()}),Nw(()=>{t.isDeactivated=!0,r||(r=!0)}),t}const YP=(e,t)=>{if(!e)return;const r=document.createElement("a");r.href=e,t!==void 0&&(r.download=t),document.body.appendChild(r),r.click(),document.body.removeChild(r)},Ph="n-form-item";function Ed(e,{defaultSize:t="medium",mergedSize:r,mergedDisabled:n}={}){const o=Me(Ph,null);dt(Ph,null);const i=R(r?()=>r(o):()=>{const{size:l}=e;if(l)return l;if(o){const{mergedSize:c}=o;if(c.value!==void 0)return c.value}return t}),a=R(n?()=>n(o):()=>{const{disabled:l}=e;return l!==void 0?l:o?o.disabled.value:!1}),s=R(()=>{const{status:l}=e;return l||(o==null?void 0:o.mergedValidationStatus.value)});return Kt(()=>{o&&o.restoreValidation()}),{mergedSizeRef:i,mergedDisabledRef:a,mergedStatusRef:s,nTriggerFormBlur(){o&&o.handleContentBlur()},nTriggerFormChange(){o&&o.handleContentChange()},nTriggerFormFocus(){o&&o.handleContentFocus()},nTriggerFormInput(){o&&o.handleContentInput()}}}var KP=typeof global=="object"&&global&&global.Object===Object&&global;const G2=KP;var XP=typeof self=="object"&&self&&self.Object===Object&&self,ZP=G2||XP||Function("return this")();const Ln=ZP;var QP=Ln.Symbol;const Qo=QP;var Y2=Object.prototype,JP=Y2.hasOwnProperty,e$=Y2.toString,Rs=Qo?Qo.toStringTag:void 0;function t$(e){var t=JP.call(e,Rs),r=e[Rs];try{e[Rs]=void 0;var n=!0}catch{}var o=e$.call(e);return n&&(t?e[Rs]=r:delete e[Rs]),o}var r$=Object.prototype,n$=r$.toString;function o$(e){return n$.call(e)}var i$="[object Null]",a$="[object Undefined]",Cb=Qo?Qo.toStringTag:void 0;function Zi(e){return e==null?e===void 0?a$:i$:Cb&&Cb in Object(e)?t$(e):o$(e)}function Jo(e){return e!=null&&typeof e=="object"}var s$="[object Symbol]";function Td(e){return typeof e=="symbol"||Jo(e)&&Zi(e)==s$}function K2(e,t){for(var r=-1,n=e==null?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}var l$=Array.isArray;const xn=l$;var c$=1/0,wb=Qo?Qo.prototype:void 0,Sb=wb?wb.toString:void 0;function X2(e){if(typeof e=="string")return e;if(xn(e))return K2(e,X2)+"";if(Td(e))return Sb?Sb.call(e):"";var t=e+"";return t=="0"&&1/e==-c$?"-0":t}var u$=/\s/;function d$(e){for(var t=e.length;t--&&u$.test(e.charAt(t)););return t}var f$=/^\s+/;function h$(e){return e&&e.slice(0,d$(e)+1).replace(f$,"")}function yn(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var _b=0/0,p$=/^[-+]0x[0-9a-f]+$/i,g$=/^0b[01]+$/i,m$=/^0o[0-7]+$/i,v$=parseInt;function Eb(e){if(typeof e=="number")return e;if(Td(e))return _b;if(yn(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=yn(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=h$(e);var r=g$.test(e);return r||m$.test(e)?v$(e.slice(2),r?2:8):p$.test(e)?_b:+e}function Cg(e){return e}var b$="[object AsyncFunction]",x$="[object Function]",y$="[object GeneratorFunction]",C$="[object Proxy]";function wg(e){if(!yn(e))return!1;var t=Zi(e);return t==x$||t==y$||t==b$||t==C$}var w$=Ln["__core-js_shared__"];const Lf=w$;var Tb=function(){var e=/[^.]+$/.exec(Lf&&Lf.keys&&Lf.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function S$(e){return!!Tb&&Tb in e}var _$=Function.prototype,E$=_$.toString;function Qi(e){if(e!=null){try{return E$.call(e)}catch{}try{return e+""}catch{}}return""}var T$=/[\\^$.*+?()[\]{}|]/g,k$=/^\[object .+?Constructor\]$/,A$=Function.prototype,P$=Object.prototype,$$=A$.toString,I$=P$.hasOwnProperty,B$=RegExp("^"+$$.call(I$).replace(T$,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function D$(e){if(!yn(e)||S$(e))return!1;var t=wg(e)?B$:k$;return t.test(Qi(e))}function O$(e,t){return e==null?void 0:e[t]}function Ji(e,t){var r=O$(e,t);return D$(r)?r:void 0}var R$=Ji(Ln,"WeakMap");const $h=R$;var kb=Object.create,L$=function(){function e(){}return function(t){if(!yn(t))return{};if(kb)return kb(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();const F$=L$;function M$(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function z$(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var N$=800,H$=16,j$=Date.now;function W$(e){var t=0,r=0;return function(){var n=j$(),o=H$-(n-r);if(r=n,o>0){if(++t>=N$)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function U$(e){return function(){return e}}var V$=function(){try{var e=Ji(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Mu=V$;var q$=Mu?function(e,t){return Mu(e,"toString",{configurable:!0,enumerable:!1,value:U$(t),writable:!0})}:Cg;const G$=q$;var Y$=W$(G$);const K$=Y$;var X$=9007199254740991,Z$=/^(?:0|[1-9]\d*)$/;function Sg(e,t){var r=typeof e;return t=t??X$,!!t&&(r=="number"||r!="symbol"&&Z$.test(e))&&e>-1&&e%1==0&&e<t}function _g(e,t,r){t=="__proto__"&&Mu?Mu(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Ql(e,t){return e===t||e!==e&&t!==t}var Q$=Object.prototype,J$=Q$.hasOwnProperty;function eI(e,t,r){var n=e[t];(!(J$.call(e,t)&&Ql(n,r))||r===void 0&&!(t in e))&&_g(e,t,r)}function tI(e,t,r,n){var o=!r;r||(r={});for(var i=-1,a=t.length;++i<a;){var s=t[i],l=n?n(r[s],e[s],s,r,e):void 0;l===void 0&&(l=e[s]),o?_g(r,s,l):eI(r,s,l)}return r}var Ab=Math.max;function rI(e,t,r){return t=Ab(t===void 0?e.length-1:t,0),function(){for(var n=arguments,o=-1,i=Ab(n.length-t,0),a=Array(i);++o<i;)a[o]=n[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=n[o];return s[t]=r(a),M$(e,this,s)}}function nI(e,t){return K$(rI(e,t,Cg),e+"")}var oI=9007199254740991;function Eg(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=oI}function ys(e){return e!=null&&Eg(e.length)&&!wg(e)}function iI(e,t,r){if(!yn(r))return!1;var n=typeof t;return(n=="number"?ys(r)&&Sg(t,r.length):n=="string"&&t in r)?Ql(r[t],e):!1}function aI(e){return nI(function(t,r){var n=-1,o=r.length,i=o>1?r[o-1]:void 0,a=o>2?r[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,a&&iI(r[0],r[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++n<o;){var s=r[n];s&&e(t,s,n,i)}return t})}var sI=Object.prototype;function Tg(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||sI;return e===r}function lI(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var cI="[object Arguments]";function Pb(e){return Jo(e)&&Zi(e)==cI}var Z2=Object.prototype,uI=Z2.hasOwnProperty,dI=Z2.propertyIsEnumerable,fI=Pb(function(){return arguments}())?Pb:function(e){return Jo(e)&&uI.call(e,"callee")&&!dI.call(e,"callee")};const zu=fI;function hI(){return!1}var Q2=typeof exports=="object"&&exports&&!exports.nodeType&&exports,$b=Q2&&typeof module=="object"&&module&&!module.nodeType&&module,pI=$b&&$b.exports===Q2,Ib=pI?Ln.Buffer:void 0,gI=Ib?Ib.isBuffer:void 0,mI=gI||hI;const Nu=mI;var vI="[object Arguments]",bI="[object Array]",xI="[object Boolean]",yI="[object Date]",CI="[object Error]",wI="[object Function]",SI="[object Map]",_I="[object Number]",EI="[object Object]",TI="[object RegExp]",kI="[object Set]",AI="[object String]",PI="[object WeakMap]",$I="[object ArrayBuffer]",II="[object DataView]",BI="[object Float32Array]",DI="[object Float64Array]",OI="[object Int8Array]",RI="[object Int16Array]",LI="[object Int32Array]",FI="[object Uint8Array]",MI="[object Uint8ClampedArray]",zI="[object Uint16Array]",NI="[object Uint32Array]",Wt={};Wt[BI]=Wt[DI]=Wt[OI]=Wt[RI]=Wt[LI]=Wt[FI]=Wt[MI]=Wt[zI]=Wt[NI]=!0;Wt[vI]=Wt[bI]=Wt[$I]=Wt[xI]=Wt[II]=Wt[yI]=Wt[CI]=Wt[wI]=Wt[SI]=Wt[_I]=Wt[EI]=Wt[TI]=Wt[kI]=Wt[AI]=Wt[PI]=!1;function HI(e){return Jo(e)&&Eg(e.length)&&!!Wt[Zi(e)]}function jI(e){return function(t){return e(t)}}var J2=typeof exports=="object"&&exports&&!exports.nodeType&&exports,tl=J2&&typeof module=="object"&&module&&!module.nodeType&&module,WI=tl&&tl.exports===J2,Ff=WI&&G2.process,UI=function(){try{var e=tl&&tl.require&&tl.require("util").types;return e||Ff&&Ff.binding&&Ff.binding("util")}catch{}}();const Bb=UI;var Db=Bb&&Bb.isTypedArray,VI=Db?jI(Db):HI;const kg=VI;var qI=Object.prototype,GI=qI.hasOwnProperty;function eS(e,t){var r=xn(e),n=!r&&zu(e),o=!r&&!n&&Nu(e),i=!r&&!n&&!o&&kg(e),a=r||n||o||i,s=a?lI(e.length,String):[],l=s.length;for(var c in e)(t||GI.call(e,c))&&!(a&&(c=="length"||o&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Sg(c,l)))&&s.push(c);return s}function tS(e,t){return function(r){return e(t(r))}}var YI=tS(Object.keys,Object);const KI=YI;var XI=Object.prototype,ZI=XI.hasOwnProperty;function QI(e){if(!Tg(e))return KI(e);var t=[];for(var r in Object(e))ZI.call(e,r)&&r!="constructor"&&t.push(r);return t}function Ag(e){return ys(e)?eS(e):QI(e)}function JI(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var eB=Object.prototype,tB=eB.hasOwnProperty;function rB(e){if(!yn(e))return JI(e);var t=Tg(e),r=[];for(var n in e)n=="constructor"&&(t||!tB.call(e,n))||r.push(n);return r}function rS(e){return ys(e)?eS(e,!0):rB(e)}var nB=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,oB=/^\w*$/;function Pg(e,t){if(xn(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Td(e)?!0:oB.test(e)||!nB.test(e)||t!=null&&e in Object(t)}var iB=Ji(Object,"create");const Al=iB;function aB(){this.__data__=Al?Al(null):{},this.size=0}function sB(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var lB="__lodash_hash_undefined__",cB=Object.prototype,uB=cB.hasOwnProperty;function dB(e){var t=this.__data__;if(Al){var r=t[e];return r===lB?void 0:r}return uB.call(t,e)?t[e]:void 0}var fB=Object.prototype,hB=fB.hasOwnProperty;function pB(e){var t=this.__data__;return Al?t[e]!==void 0:hB.call(t,e)}var gB="__lodash_hash_undefined__";function mB(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Al&&t===void 0?gB:t,this}function Wi(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Wi.prototype.clear=aB;Wi.prototype.delete=sB;Wi.prototype.get=dB;Wi.prototype.has=pB;Wi.prototype.set=mB;function vB(){this.__data__=[],this.size=0}function kd(e,t){for(var r=e.length;r--;)if(Ql(e[r][0],t))return r;return-1}var bB=Array.prototype,xB=bB.splice;function yB(e){var t=this.__data__,r=kd(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():xB.call(t,r,1),--this.size,!0}function CB(e){var t=this.__data__,r=kd(t,e);return r<0?void 0:t[r][1]}function wB(e){return kd(this.__data__,e)>-1}function SB(e,t){var r=this.__data__,n=kd(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function So(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}So.prototype.clear=vB;So.prototype.delete=yB;So.prototype.get=CB;So.prototype.has=wB;So.prototype.set=SB;var _B=Ji(Ln,"Map");const Pl=_B;function EB(){this.size=0,this.__data__={hash:new Wi,map:new(Pl||So),string:new Wi}}function TB(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Ad(e,t){var r=e.__data__;return TB(t)?r[typeof t=="string"?"string":"hash"]:r.map}function kB(e){var t=Ad(this,e).delete(e);return this.size-=t?1:0,t}function AB(e){return Ad(this,e).get(e)}function PB(e){return Ad(this,e).has(e)}function $B(e,t){var r=Ad(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function _o(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}_o.prototype.clear=EB;_o.prototype.delete=kB;_o.prototype.get=AB;_o.prototype.has=PB;_o.prototype.set=$B;var IB="Expected a function";function $g(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(IB);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new($g.Cache||_o),r}$g.Cache=_o;var BB=500;function DB(e){var t=$g(e,function(n){return r.size===BB&&r.clear(),n}),r=t.cache;return t}var OB=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,RB=/\\(\\)?/g,LB=DB(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(OB,function(r,n,o,i){t.push(o?i.replace(RB,"$1"):n||r)}),t});const FB=LB;function Pd(e){return e==null?"":X2(e)}function nS(e,t){return xn(e)?e:Pg(e,t)?[e]:FB(Pd(e))}var MB=1/0;function $d(e){if(typeof e=="string"||Td(e))return e;var t=e+"";return t=="0"&&1/e==-MB?"-0":t}function oS(e,t){t=nS(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[$d(t[r++])];return r&&r==n?e:void 0}function Ig(e,t,r){var n=e==null?void 0:oS(e,t);return n===void 0?r:n}function zB(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}var NB=tS(Object.getPrototypeOf,Object);const iS=NB;var HB="[object Object]",jB=Function.prototype,WB=Object.prototype,aS=jB.toString,UB=WB.hasOwnProperty,VB=aS.call(Object);function qB(e){if(!Jo(e)||Zi(e)!=HB)return!1;var t=iS(e);if(t===null)return!0;var r=UB.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&aS.call(r)==VB}function GB(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),r=r>o?o:r,r<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(o);++n<o;)i[n]=e[n+t];return i}function YB(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:GB(e,t,r)}var KB="\\ud800-\\udfff",XB="\\u0300-\\u036f",ZB="\\ufe20-\\ufe2f",QB="\\u20d0-\\u20ff",JB=XB+ZB+QB,eD="\\ufe0e\\ufe0f",tD="\\u200d",rD=RegExp("["+tD+KB+JB+eD+"]");function sS(e){return rD.test(e)}function nD(e){return e.split("")}var lS="\\ud800-\\udfff",oD="\\u0300-\\u036f",iD="\\ufe20-\\ufe2f",aD="\\u20d0-\\u20ff",sD=oD+iD+aD,lD="\\ufe0e\\ufe0f",cD="["+lS+"]",Ih="["+sD+"]",Bh="\\ud83c[\\udffb-\\udfff]",uD="(?:"+Ih+"|"+Bh+")",cS="[^"+lS+"]",uS="(?:\\ud83c[\\udde6-\\uddff]){2}",dS="[\\ud800-\\udbff][\\udc00-\\udfff]",dD="\\u200d",fS=uD+"?",hS="["+lD+"]?",fD="(?:"+dD+"(?:"+[cS,uS,dS].join("|")+")"+hS+fS+")*",hD=hS+fS+fD,pD="(?:"+[cS+Ih+"?",Ih,uS,dS,cD].join("|")+")",gD=RegExp(Bh+"(?="+Bh+")|"+pD+hD,"g");function mD(e){return e.match(gD)||[]}function vD(e){return sS(e)?mD(e):nD(e)}function bD(e){return function(t){t=Pd(t);var r=sS(t)?vD(t):void 0,n=r?r[0]:t.charAt(0),o=r?YB(r,1).join(""):t.slice(1);return n[e]()+o}}var xD=bD("toUpperCase");const yD=xD;function CD(e,t,r,n){var o=-1,i=e==null?0:e.length;for(n&&i&&(r=e[++o]);++o<i;)r=t(r,e[o],o,e);return r}function wD(e){return function(t){return e==null?void 0:e[t]}}var SD={À:"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"},_D=wD(SD);const ED=_D;var TD=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,kD="\\u0300-\\u036f",AD="\\ufe20-\\ufe2f",PD="\\u20d0-\\u20ff",$D=kD+AD+PD,ID="["+$D+"]",BD=RegExp(ID,"g");function DD(e){return e=Pd(e),e&&e.replace(TD,ED).replace(BD,"")}var OD=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function RD(e){return e.match(OD)||[]}var LD=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function FD(e){return LD.test(e)}var pS="\\ud800-\\udfff",MD="\\u0300-\\u036f",zD="\\ufe20-\\ufe2f",ND="\\u20d0-\\u20ff",HD=MD+zD+ND,gS="\\u2700-\\u27bf",mS="a-z\\xdf-\\xf6\\xf8-\\xff",jD="\\xac\\xb1\\xd7\\xf7",WD="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",UD="\\u2000-\\u206f",VD=" \\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",vS="A-Z\\xc0-\\xd6\\xd8-\\xde",qD="\\ufe0e\\ufe0f",bS=jD+WD+UD+VD,xS="['’]",Ob="["+bS+"]",GD="["+HD+"]",yS="\\d+",YD="["+gS+"]",CS="["+mS+"]",wS="[^"+pS+bS+yS+gS+mS+vS+"]",KD="\\ud83c[\\udffb-\\udfff]",XD="(?:"+GD+"|"+KD+")",ZD="[^"+pS+"]",SS="(?:\\ud83c[\\udde6-\\uddff]){2}",_S="[\\ud800-\\udbff][\\udc00-\\udfff]",wa="["+vS+"]",QD="\\u200d",Rb="(?:"+CS+"|"+wS+")",JD="(?:"+wa+"|"+wS+")",Lb="(?:"+xS+"(?:d|ll|m|re|s|t|ve))?",Fb="(?:"+xS+"(?:D|LL|M|RE|S|T|VE))?",ES=XD+"?",TS="["+qD+"]?",eO="(?:"+QD+"(?:"+[ZD,SS,_S].join("|")+")"+TS+ES+")*",tO="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",rO="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",nO=TS+ES+eO,oO="(?:"+[YD,SS,_S].join("|")+")"+nO,iO=RegExp([wa+"?"+CS+"+"+Lb+"(?="+[Ob,wa,"$"].join("|")+")",JD+"+"+Fb+"(?="+[Ob,wa+Rb,"$"].join("|")+")",wa+"?"+Rb+"+"+Lb,wa+"+"+Fb,rO,tO,yS,oO].join("|"),"g");function aO(e){return e.match(iO)||[]}function sO(e,t,r){return e=Pd(e),t=r?void 0:t,t===void 0?FD(e)?aO(e):RD(e):e.match(t)||[]}var lO="['’]",cO=RegExp(lO,"g");function uO(e){return function(t){return CD(sO(DD(t).replace(cO,"")),e,"")}}function dO(){this.__data__=new So,this.size=0}function fO(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function hO(e){return this.__data__.get(e)}function pO(e){return this.__data__.has(e)}var gO=200;function mO(e,t){var r=this.__data__;if(r instanceof So){var n=r.__data__;if(!Pl||n.length<gO-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new _o(n)}return r.set(e,t),this.size=r.size,this}function Zn(e){var t=this.__data__=new So(e);this.size=t.size}Zn.prototype.clear=dO;Zn.prototype.delete=fO;Zn.prototype.get=hO;Zn.prototype.has=pO;Zn.prototype.set=mO;var kS=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Mb=kS&&typeof module=="object"&&module&&!module.nodeType&&module,vO=Mb&&Mb.exports===kS,zb=vO?Ln.Buffer:void 0,Nb=zb?zb.allocUnsafe:void 0;function bO(e,t){if(t)return e.slice();var r=e.length,n=Nb?Nb(r):new e.constructor(r);return e.copy(n),n}function xO(e,t){for(var r=-1,n=e==null?0:e.length,o=0,i=[];++r<n;){var a=e[r];t(a,r,e)&&(i[o++]=a)}return i}function yO(){return[]}var CO=Object.prototype,wO=CO.propertyIsEnumerable,Hb=Object.getOwnPropertySymbols,SO=Hb?function(e){return e==null?[]:(e=Object(e),xO(Hb(e),function(t){return wO.call(e,t)}))}:yO;const _O=SO;function EO(e,t,r){var n=t(e);return xn(e)?n:zB(n,r(e))}function jb(e){return EO(e,Ag,_O)}var TO=Ji(Ln,"DataView");const Dh=TO;var kO=Ji(Ln,"Promise");const Oh=kO;var AO=Ji(Ln,"Set");const Rh=AO;var Wb="[object Map]",PO="[object Object]",Ub="[object Promise]",Vb="[object Set]",qb="[object WeakMap]",Gb="[object DataView]",$O=Qi(Dh),IO=Qi(Pl),BO=Qi(Oh),DO=Qi(Rh),OO=Qi($h),Ci=Zi;(Dh&&Ci(new Dh(new ArrayBuffer(1)))!=Gb||Pl&&Ci(new Pl)!=Wb||Oh&&Ci(Oh.resolve())!=Ub||Rh&&Ci(new Rh)!=Vb||$h&&Ci(new $h)!=qb)&&(Ci=function(e){var t=Zi(e),r=t==PO?e.constructor:void 0,n=r?Qi(r):"";if(n)switch(n){case $O:return Gb;case IO:return Wb;case BO:return Ub;case DO:return Vb;case OO:return qb}return t});const Yb=Ci;var RO=Ln.Uint8Array;const Hu=RO;function LO(e){var t=new e.constructor(e.byteLength);return new Hu(t).set(new Hu(e)),t}function FO(e,t){var r=t?LO(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function MO(e){return typeof e.constructor=="function"&&!Tg(e)?F$(iS(e)):{}}var zO="__lodash_hash_undefined__";function NO(e){return this.__data__.set(e,zO),this}function HO(e){return this.__data__.has(e)}function ju(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new _o;++t<r;)this.add(e[t])}ju.prototype.add=ju.prototype.push=NO;ju.prototype.has=HO;function jO(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function WO(e,t){return e.has(t)}var UO=1,VO=2;function AS(e,t,r,n,o,i){var a=r&UO,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var d=-1,f=!0,p=r&VO?new ju:void 0;for(i.set(e,t),i.set(t,e);++d<s;){var h=e[d],g=t[d];if(n)var v=a?n(g,h,d,t,e,i):n(h,g,d,e,t,i);if(v!==void 0){if(v)continue;f=!1;break}if(p){if(!jO(t,function(m,b){if(!WO(p,b)&&(h===m||o(h,m,r,n,i)))return p.push(b)})){f=!1;break}}else if(!(h===g||o(h,g,r,n,i))){f=!1;break}}return i.delete(e),i.delete(t),f}function qO(e){var t=-1,r=Array(e.size);return e.forEach(function(n,o){r[++t]=[o,n]}),r}function GO(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var YO=1,KO=2,XO="[object Boolean]",ZO="[object Date]",QO="[object Error]",JO="[object Map]",eR="[object Number]",tR="[object RegExp]",rR="[object Set]",nR="[object String]",oR="[object Symbol]",iR="[object ArrayBuffer]",aR="[object DataView]",Kb=Qo?Qo.prototype:void 0,Mf=Kb?Kb.valueOf:void 0;function sR(e,t,r,n,o,i,a){switch(r){case aR:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case iR:return!(e.byteLength!=t.byteLength||!i(new Hu(e),new Hu(t)));case XO:case ZO:case eR:return Ql(+e,+t);case QO:return e.name==t.name&&e.message==t.message;case tR:case nR:return e==t+"";case JO:var s=qO;case rR:var l=n&YO;if(s||(s=GO),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;n|=KO,a.set(e,t);var u=AS(s(e),s(t),n,o,i,a);return a.delete(e),u;case oR:if(Mf)return Mf.call(e)==Mf.call(t)}return!1}var lR=1,cR=Object.prototype,uR=cR.hasOwnProperty;function dR(e,t,r,n,o,i){var a=r&lR,s=jb(e),l=s.length,c=jb(t),u=c.length;if(l!=u&&!a)return!1;for(var d=l;d--;){var f=s[d];if(!(a?f in t:uR.call(t,f)))return!1}var p=i.get(e),h=i.get(t);if(p&&h)return p==t&&h==e;var g=!0;i.set(e,t),i.set(t,e);for(var v=a;++d<l;){f=s[d];var m=e[f],b=t[f];if(n)var x=a?n(b,m,f,t,e,i):n(m,b,f,e,t,i);if(!(x===void 0?m===b||o(m,b,r,n,i):x)){g=!1;break}v||(v=f=="constructor")}if(g&&!v){var y=e.constructor,w=t.constructor;y!=w&&"constructor"in e&&"constructor"in t&&!(typeof y=="function"&&y instanceof y&&typeof w=="function"&&w instanceof w)&&(g=!1)}return i.delete(e),i.delete(t),g}var fR=1,Xb="[object Arguments]",Zb="[object Array]",Dc="[object Object]",hR=Object.prototype,Qb=hR.hasOwnProperty;function pR(e,t,r,n,o,i){var a=xn(e),s=xn(t),l=a?Zb:Yb(e),c=s?Zb:Yb(t);l=l==Xb?Dc:l,c=c==Xb?Dc:c;var u=l==Dc,d=c==Dc,f=l==c;if(f&&Nu(e)){if(!Nu(t))return!1;a=!0,u=!1}if(f&&!u)return i||(i=new Zn),a||kg(e)?AS(e,t,r,n,o,i):sR(e,t,l,r,n,o,i);if(!(r&fR)){var p=u&&Qb.call(e,"__wrapped__"),h=d&&Qb.call(t,"__wrapped__");if(p||h){var g=p?e.value():e,v=h?t.value():t;return i||(i=new Zn),o(g,v,r,n,i)}}return f?(i||(i=new Zn),dR(e,t,r,n,o,i)):!1}function Bg(e,t,r,n,o){return e===t?!0:e==null||t==null||!Jo(e)&&!Jo(t)?e!==e&&t!==t:pR(e,t,r,n,Bg,o)}var gR=1,mR=2;function vR(e,t,r,n){var o=r.length,i=o,a=!n;if(e==null)return!i;for(e=Object(e);o--;){var s=r[o];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<i;){s=r[o];var l=s[0],c=e[l],u=s[1];if(a&&s[2]){if(c===void 0&&!(l in e))return!1}else{var d=new Zn;if(n)var f=n(c,u,l,e,t,d);if(!(f===void 0?Bg(u,c,gR|mR,n,d):f))return!1}}return!0}function PS(e){return e===e&&!yn(e)}function bR(e){for(var t=Ag(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,PS(o)]}return t}function $S(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function xR(e){var t=bR(e);return t.length==1&&t[0][2]?$S(t[0][0],t[0][1]):function(r){return r===e||vR(r,e,t)}}function yR(e,t){return e!=null&&t in Object(e)}function CR(e,t,r){t=nS(t,e);for(var n=-1,o=t.length,i=!1;++n<o;){var a=$d(t[n]);if(!(i=e!=null&&r(e,a)))break;e=e[a]}return i||++n!=o?i:(o=e==null?0:e.length,!!o&&Eg(o)&&Sg(a,o)&&(xn(e)||zu(e)))}function wR(e,t){return e!=null&&CR(e,t,yR)}var SR=1,_R=2;function ER(e,t){return Pg(e)&&PS(t)?$S($d(e),t):function(r){var n=Ig(r,e);return n===void 0&&n===t?wR(r,e):Bg(t,n,SR|_R)}}function TR(e){return function(t){return t==null?void 0:t[e]}}function kR(e){return function(t){return oS(t,e)}}function AR(e){return Pg(e)?TR($d(e)):kR(e)}function PR(e){return typeof e=="function"?e:e==null?Cg:typeof e=="object"?xn(e)?ER(e[0],e[1]):xR(e):AR(e)}function $R(e){return function(t,r,n){for(var o=-1,i=Object(t),a=n(t),s=a.length;s--;){var l=a[e?s:++o];if(r(i[l],l,i)===!1)break}return t}}var IR=$R();const IS=IR;function BR(e,t){return e&&IS(e,t,Ag)}function DR(e,t){return function(r,n){if(r==null)return r;if(!ys(r))return e(r,n);for(var o=r.length,i=t?o:-1,a=Object(r);(t?i--:++i<o)&&n(a[i],i,a)!==!1;);return r}}var OR=DR(BR);const RR=OR;var LR=function(){return Ln.Date.now()};const zf=LR;var FR="Expected a function",MR=Math.max,zR=Math.min;function NR(e,t,r){var n,o,i,a,s,l,c=0,u=!1,d=!1,f=!0;if(typeof e!="function")throw new TypeError(FR);t=Eb(t)||0,yn(r)&&(u=!!r.leading,d="maxWait"in r,i=d?MR(Eb(r.maxWait)||0,t):i,f="trailing"in r?!!r.trailing:f);function p(C){var S=n,T=o;return n=o=void 0,c=C,a=e.apply(T,S),a}function h(C){return c=C,s=setTimeout(m,t),u?p(C):a}function g(C){var S=C-l,T=C-c,P=t-S;return d?zR(P,i-T):P}function v(C){var S=C-l,T=C-c;return l===void 0||S>=t||S<0||d&&T>=i}function m(){var C=zf();if(v(C))return b(C);s=setTimeout(m,g(C))}function b(C){return s=void 0,f&&n?p(C):(n=o=void 0,a)}function x(){s!==void 0&&clearTimeout(s),c=0,n=l=o=s=void 0}function y(){return s===void 0?a:b(zf())}function w(){var C=zf(),S=v(C);if(n=arguments,o=this,l=C,S){if(s===void 0)return h(l);if(d)return clearTimeout(s),s=setTimeout(m,t),p(l)}return s===void 0&&(s=setTimeout(m,t)),a}return w.cancel=x,w.flush=y,w}function Lh(e,t,r){(r!==void 0&&!Ql(e[t],r)||r===void 0&&!(t in e))&&_g(e,t,r)}function HR(e){return Jo(e)&&ys(e)}function Fh(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function jR(e){return tI(e,rS(e))}function WR(e,t,r,n,o,i,a){var s=Fh(e,r),l=Fh(t,r),c=a.get(l);if(c){Lh(e,r,c);return}var u=i?i(s,l,r+"",e,t,a):void 0,d=u===void 0;if(d){var f=xn(l),p=!f&&Nu(l),h=!f&&!p&&kg(l);u=l,f||p||h?xn(s)?u=s:HR(s)?u=z$(s):p?(d=!1,u=bO(l,!0)):h?(d=!1,u=FO(l,!0)):u=[]:qB(l)||zu(l)?(u=s,zu(s)?u=jR(s):(!yn(s)||wg(s))&&(u=MO(l))):d=!1}d&&(a.set(l,u),o(u,l,n,i,a),a.delete(l)),Lh(e,r,u)}function BS(e,t,r,n,o){e!==t&&IS(t,function(i,a){if(o||(o=new Zn),yn(i))WR(e,t,a,r,BS,n,o);else{var s=n?n(Fh(e,a),i,a+"",e,t,o):void 0;s===void 0&&(s=i),Lh(e,a,s)}},rS)}function UR(e,t){var r=-1,n=ys(e)?Array(e.length):[];return RR(e,function(o,i,a){n[++r]=t(o,i,a)}),n}function VR(e,t){var r=xn(e)?K2:UR;return r(e,PR(t))}var qR=uO(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()});const GR=qR;var YR=aI(function(e,t,r){BS(e,t,r)});const ka=YR;var KR="Expected a function";function Nf(e,t,r){var n=!0,o=!0;if(typeof e!="function")throw new TypeError(KR);return yn(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),NR(e,t,{leading:n,maxWait:t,trailing:o})}const Eo={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:XR,fontFamily:ZR,lineHeight:QR}=Eo,DS=q("body",`
|
||
margin: 0;
|
||
font-size: ${XR};
|
||
font-family: ${ZR};
|
||
line-height: ${QR};
|
||
-webkit-text-size-adjust: 100%;
|
||
-webkit-tap-highlight-color: transparent;
|
||
`,[q("input",`
|
||
font-family: inherit;
|
||
font-size: inherit;
|
||
`)]),Jn="n-config-provider",$l="naive-ui-style";function ze(e,t,r,n,o,i){const a=xs(),s=Me(Jn,null);if(r){const c=()=>{const u=i==null?void 0:i.value;r.mount({id:u===void 0?t:u+t,head:!0,props:{bPrefix:u?`.${u}-`:void 0},anchorMetaName:$l,ssr:a}),s!=null&&s.preflightStyleDisabled||DS.mount({id:"n-global",head:!0,anchorMetaName:$l,ssr:a})};a?c():Rn(c)}return R(()=>{var c;const{theme:{common:u,self:d,peers:f={}}={},themeOverrides:p={},builtinThemeOverrides:h={}}=o,{common:g,peers:v}=p,{common:m=void 0,[e]:{common:b=void 0,self:x=void 0,peers:y={}}={}}=(s==null?void 0:s.mergedThemeRef.value)||{},{common:w=void 0,[e]:C={}}=(s==null?void 0:s.mergedThemeOverridesRef.value)||{},{common:S,peers:T={}}=C,P=ka({},u||b||m||n.common,w,S,g),A=ka((c=d||x||n.self)===null||c===void 0?void 0:c(P),h,C,p);return{common:P,self:A,peers:ka({},n.peers,y,f),peerOverrides:ka({},h.peers,T,v)}})}ze.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const Il="n";function ht(e={},t={defaultBordered:!0}){const r=Me(Jn,null);return{inlineThemeDisabled:r==null?void 0:r.inlineThemeDisabled,mergedRtlRef:r==null?void 0:r.mergedRtlRef,mergedComponentPropsRef:r==null?void 0:r.mergedComponentPropsRef,mergedBreakpointsRef:r==null?void 0:r.mergedBreakpointsRef,mergedBorderedRef:R(()=>{var n,o;const{bordered:i}=e;return i!==void 0?i:(o=(n=r==null?void 0:r.mergedBorderedRef.value)!==null&&n!==void 0?n:t.defaultBordered)!==null&&o!==void 0?o:!0}),mergedClsPrefixRef:r?r.mergedClsPrefixRef:vo(Il),namespaceRef:R(()=>r==null?void 0:r.mergedNamespaceRef.value)}}function jde(){const e=Me(Jn,null);return e?e.mergedClsPrefixRef:vo(Il)}const JR={name:"zh-CN",global:{undo:"撤销",redo:"重做",confirm:"确认",clear:"清除"},Popconfirm:{positiveText:"确认",negativeText:"取消"},Cascader:{placeholder:"请选择",loading:"加载中",loadingRequiredMessage:e=>`加载全部 ${e} 的子节点后才可选中`},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:"清除",now:"此刻",confirm:"确认",selectTime:"选择时间",selectDate:"选择日期",datePlaceholder:"选择日期",datetimePlaceholder:"选择日期时间",monthPlaceholder:"选择月份",yearPlaceholder:"选择年份",quarterPlaceholder:"选择季度",weekPlaceholder:"选择周",startDatePlaceholder:"开始日期",endDatePlaceholder:"结束日期",startDatetimePlaceholder:"开始日期时间",endDatetimePlaceholder:"结束日期时间",startMonthPlaceholder:"开始月份",endMonthPlaceholder:"结束月份",monthBeforeYear:!1,firstDayOfWeek:0,today:"今天"},DataTable:{checkTableAll:"选择全部表格数据",uncheckTableAll:"取消选择全部表格数据",confirm:"确认",clear:"重置"},LegacyTransfer:{sourceTitle:"源项",targetTitle:"目标项"},Transfer:{selectAll:"全选",clearAll:"清除",unselectAll:"取消全选",total:e=>`共 ${e} 项`,selected:e=>`已选 ${e} 项`},Empty:{description:"无数据"},Select:{placeholder:"请选择"},TimePicker:{placeholder:"请选择时间",positiveText:"确认",negativeText:"取消",now:"此刻",clear:"清除"},Pagination:{goto:"跳至",selectionSuffix:"页"},DynamicTags:{add:"添加"},Log:{loading:"加载中"},Input:{placeholder:"请输入"},InputNumber:{placeholder:"请输入"},DynamicInput:{create:"添加"},ThemeEditor:{title:"主题编辑器",clearAllVars:"清除全部变量",clearSearch:"清除搜索",filterCompName:"过滤组件名",filterVarName:"过滤变量名",import:"导入",export:"导出",restore:"恢复默认"},Image:{tipPrevious:"上一张(←)",tipNext:"下一张(→)",tipCounterclockwise:"向左旋转",tipClockwise:"向右旋转",tipZoomOut:"缩小",tipZoomIn:"放大",tipDownload:"下载",tipClose:"关闭(Esc)",tipOriginalSize:"缩放到原始尺寸"}},eL=JR,tL={name:"zh-TW",global:{undo:"復原",redo:"重做",confirm:"確定",clear:"清除"},Popconfirm:{positiveText:"確定",negativeText:"取消"},Cascader:{placeholder:"請選擇",loading:"載入中",loadingRequiredMessage:e=>`載入全部 ${e} 的子節點後才可選擇`},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:"清除",now:"現在",confirm:"確定",selectTime:"選擇時間",selectDate:"選擇日期",datePlaceholder:"選擇日期",datetimePlaceholder:"選擇日期時間",monthPlaceholder:"選擇月份",yearPlaceholder:"選擇年份",quarterPlaceholder:"選擇季度",weekPlaceholder:"Select Week",startDatePlaceholder:"開始日期",endDatePlaceholder:"結束日期",startDatetimePlaceholder:"開始日期時間",endDatetimePlaceholder:"結束日期時間",startMonthPlaceholder:"開始月份",endMonthPlaceholder:"結束月份",monthBeforeYear:!1,firstDayOfWeek:0,today:"今天"},DataTable:{checkTableAll:"選擇全部表格資料",uncheckTableAll:"取消選擇全部表格資料",confirm:"確定",clear:"重設"},LegacyTransfer:{sourceTitle:"來源",targetTitle:"目標"},Transfer:{selectAll:"全選",unselectAll:"取消全選",clearAll:"清除全部",total:e=>`共 ${e} 項`,selected:e=>`已選 ${e} 項`},Empty:{description:"無資料"},Select:{placeholder:"請選擇"},TimePicker:{placeholder:"請選擇時間",positiveText:"確定",negativeText:"取消",now:"現在",clear:"清除"},Pagination:{goto:"跳至",selectionSuffix:"頁"},DynamicTags:{add:"新增"},Log:{loading:"載入中"},Input:{placeholder:"請輸入"},InputNumber:{placeholder:"請輸入"},DynamicInput:{create:"新增"},ThemeEditor:{title:"主題編輯器",clearAllVars:"清除全部變數",clearSearch:"清除搜尋",filterCompName:"過濾組件名稱",filterVarName:"過濾變數名稱",import:"匯入",export:"匯出",restore:"恢復預設"},Image:{tipPrevious:"上一張(←)",tipNext:"下一張(→)",tipCounterclockwise:"向左旋轉",tipClockwise:"向右旋轉",tipZoomOut:"縮小",tipZoomIn:"放大",tipDownload:"下載",tipClose:"關閉(Esc)",tipOriginalSize:"縮放到原始尺寸"}},rL=tL,nL={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"}},Mh=nL;var oL={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}},iL=function(t,r,n){var o,i=oL[t];return typeof i=="string"?o=i:r===1?o=i.one:o=i.other.replace("{{count}}",String(r)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?o+"内":o+"前":o};const aL=iL;function Ma(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,n=e.formats[r]||e.formats[e.defaultWidth];return n}}var sL={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},lL={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},cL={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},uL={date:Ma({formats:sL,defaultWidth:"full"}),time:Ma({formats:lL,defaultWidth:"full"}),dateTime:Ma({formats:cL,defaultWidth:"full"})};const dL=uL;function xt(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function Wu(e){"@babel/helpers - typeof";return Wu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wu(e)}function Yt(e){xt(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Wu(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function eo(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}var fL={};function Jl(){return fL}function Ka(e,t){var r,n,o,i,a,s,l,c;xt(1,arguments);var u=Jl(),d=eo((r=(n=(o=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&o!==void 0?o:u.weekStartsOn)!==null&&n!==void 0?n:(l=u.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=Yt(e),p=f.getUTCDay(),h=(p<d?7:0)+p-d;return f.setUTCDate(f.getUTCDate()-h),f.setUTCHours(0,0,0,0),f}function hL(e,t,r){xt(2,arguments);var n=Ka(e,r),o=Ka(t,r);return n.getTime()===o.getTime()}function Jb(e,t,r){var n="eeee p";return hL(e,t,r)?n:e.getTime()>t.getTime()?"'下个'"+n:"'上个'"+n}var pL={lastWeek:Jb,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:Jb,other:"PP p"},gL=function(t,r,n,o){var i=pL[t];return typeof i=="function"?i(r,n,o):i};const mL=gL;function qn(e){return function(t,r){var n=r!=null&&r.context?String(r.context):"standalone",o;if(n==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,a=r!=null&&r.width?String(r.width):i;o=e.formattingValues[a]||e.formattingValues[i]}else{var s=e.defaultWidth,l=r!=null&&r.width?String(r.width):e.defaultWidth;o=e.values[l]||e.values[s]}var c=e.argumentCallback?e.argumentCallback(t):t;return o[c]}}var vL={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},bL={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},xL={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},yL={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},CL={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},wL={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},SL=function(t,r){var n=Number(t);switch(r==null?void 0:r.unit){case"date":return n.toString()+"日";case"hour":return n.toString()+"时";case"minute":return n.toString()+"分";case"second":return n.toString()+"秒";default:return"第 "+n.toString()}},_L={ordinalNumber:SL,era:qn({values:vL,defaultWidth:"wide"}),quarter:qn({values:bL,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:qn({values:xL,defaultWidth:"wide"}),day:qn({values:yL,defaultWidth:"wide"}),dayPeriod:qn({values:CL,defaultWidth:"wide",formattingValues:wL,defaultFormattingWidth:"wide"})};const EL=_L;function Gn(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.width,o=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a=i[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?kL(s,function(d){return d.test(a)}):TL(s,function(d){return d.test(a)}),c;c=e.valueCallback?e.valueCallback(l):l,c=r.valueCallback?r.valueCallback(c):c;var u=t.slice(a.length);return{value:c,rest:u}}}function TL(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function kL(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}function OS(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var o=n[0],i=t.match(e.parsePattern);if(!i)return null;var a=e.valueCallback?e.valueCallback(i[0]):i[0];a=r.valueCallback?r.valueCallback(a):a;var s=t.slice(o.length);return{value:a,rest:s}}}var AL=/^(第\s*)?\d+(日|时|分|秒)?/i,PL=/\d+/i,$L={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},IL={any:[/^(前)/i,/^(公元)/i]},BL={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},DL={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},OL={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},RL={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},LL={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},FL={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},ML={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},zL={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},NL={ordinalNumber:OS({matchPattern:AL,parsePattern:PL,valueCallback:function(t){return parseInt(t,10)}}),era:Gn({matchPatterns:$L,defaultMatchWidth:"wide",parsePatterns:IL,defaultParseWidth:"any"}),quarter:Gn({matchPatterns:BL,defaultMatchWidth:"wide",parsePatterns:DL,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Gn({matchPatterns:OL,defaultMatchWidth:"wide",parsePatterns:RL,defaultParseWidth:"any"}),day:Gn({matchPatterns:LL,defaultMatchWidth:"wide",parsePatterns:FL,defaultParseWidth:"any"}),dayPeriod:Gn({matchPatterns:ML,defaultMatchWidth:"any",parsePatterns:zL,defaultParseWidth:"any"})};const HL=NL;var jL={code:"zh-CN",formatDistance:aL,formatLong:dL,formatRelative:mL,localize:EL,match:HL,options:{weekStartsOn:1,firstWeekContainsDate:4}};const WL=jL,UL={name:"zh-CN",locale:WL},VL=UL;var qL={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"}},GL=function(t,r,n){var o,i=qL[t];return typeof i=="string"?o=i:r===1?o=i.one:o=i.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+o:o+" ago":o};const YL=GL;var KL={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},XL={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},ZL={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},QL={date:Ma({formats:KL,defaultWidth:"full"}),time:Ma({formats:XL,defaultWidth:"full"}),dateTime:Ma({formats:ZL,defaultWidth:"full"})};const JL=QL;var eF={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},tF=function(t,r,n,o){return eF[t]};const rF=tF;var nF={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},oF={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},iF={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"]},aF={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"]},sF={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"}},lF={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"}},cF=function(t,r){var n=Number(t),o=n%100;if(o>20||o<10)switch(o%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},uF={ordinalNumber:cF,era:qn({values:nF,defaultWidth:"wide"}),quarter:qn({values:oF,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:qn({values:iF,defaultWidth:"wide"}),day:qn({values:aF,defaultWidth:"wide"}),dayPeriod:qn({values:sF,defaultWidth:"wide",formattingValues:lF,defaultFormattingWidth:"wide"})};const dF=uF;var fF=/^(\d+)(th|st|nd|rd)?/i,hF=/\d+/i,pF={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},gF={any:[/^b/i,/^(a|c)/i]},mF={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},vF={any:[/1/i,/2/i,/3/i,/4/i]},bF={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},xF={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]},yF={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},CF={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]},wF={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},SF={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}},_F={ordinalNumber:OS({matchPattern:fF,parsePattern:hF,valueCallback:function(t){return parseInt(t,10)}}),era:Gn({matchPatterns:pF,defaultMatchWidth:"wide",parsePatterns:gF,defaultParseWidth:"any"}),quarter:Gn({matchPatterns:mF,defaultMatchWidth:"wide",parsePatterns:vF,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Gn({matchPatterns:bF,defaultMatchWidth:"wide",parsePatterns:xF,defaultParseWidth:"any"}),day:Gn({matchPatterns:yF,defaultMatchWidth:"wide",parsePatterns:CF,defaultParseWidth:"any"}),dayPeriod:Gn({matchPatterns:wF,defaultMatchWidth:"any",parsePatterns:SF,defaultParseWidth:"any"})};const EF=_F;var TF={code:"en-US",formatDistance:YL,formatLong:JL,formatRelative:rF,localize:dF,match:EF,options:{weekStartsOn:0,firstWeekContainsDate:1}};const RS=TF,kF={name:"en-US",locale:RS},AF=kF;function Oc(e,t){xt(2,arguments);var r=Yt(e),n=eo(t);return isNaN(n)?new Date(NaN):(n&&r.setDate(r.getDate()+n),r)}function e1(e,t){xt(2,arguments);var r=Yt(e),n=eo(t);if(isNaN(n))return new Date(NaN);if(!n)return r;var o=r.getDate(),i=new Date(r.getTime());i.setMonth(r.getMonth()+n+1,0);var a=i.getDate();return o>=a?i:(r.setFullYear(i.getFullYear(),i.getMonth(),o),r)}function PF(e,t){xt(2,arguments);var r=Yt(e).getTime(),n=eo(t);return new Date(r+n)}function t1(e,t){var r,n,o,i,a,s,l,c;xt(1,arguments);var u=Jl(),d=eo((r=(n=(o=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&o!==void 0?o:u.weekStartsOn)!==null&&n!==void 0?n:(l=u.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=Yt(e),p=f.getDay(),h=(p<d?7:0)+p-d;return f.setDate(f.getDate()-h),f.setHours(0,0,0,0),f}function $F(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Uu(e){xt(1,arguments);var t=Yt(e);return t.setHours(0,0,0,0),t}function IF(e,t){xt(2,arguments);var r=Uu(e),n=Uu(t);return r.getTime()===n.getTime()}function BF(e){return xt(1,arguments),e instanceof Date||Wu(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function DF(e){if(xt(1,arguments),!BF(e)&&typeof e!="number")return!1;var t=Yt(e);return!isNaN(Number(t))}function r1(e){xt(1,arguments);var t=Yt(e),r=t.getMonth(),n=r-r%3;return t.setMonth(n,1),t.setHours(0,0,0,0),t}function su(e){xt(1,arguments);var t=Yt(e);return t.setDate(1),t.setHours(0,0,0,0),t}function OF(e,t){xt(2,arguments);var r=eo(t);return PF(e,-r)}var RF=864e5;function LF(e){xt(1,arguments);var t=Yt(e),r=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var n=t.getTime(),o=r-n;return Math.floor(o/RF)+1}function Vu(e){xt(1,arguments);var t=1,r=Yt(e),n=r.getUTCDay(),o=(n<t?7:0)+n-t;return r.setUTCDate(r.getUTCDate()-o),r.setUTCHours(0,0,0,0),r}function LS(e){xt(1,arguments);var t=Yt(e),r=t.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(r+1,0,4),n.setUTCHours(0,0,0,0);var o=Vu(n),i=new Date(0);i.setUTCFullYear(r,0,4),i.setUTCHours(0,0,0,0);var a=Vu(i);return t.getTime()>=o.getTime()?r+1:t.getTime()>=a.getTime()?r:r-1}function FF(e){xt(1,arguments);var t=LS(e),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var n=Vu(r);return n}var MF=6048e5;function zF(e){xt(1,arguments);var t=Yt(e),r=Vu(t).getTime()-FF(t).getTime();return Math.round(r/MF)+1}function FS(e,t){var r,n,o,i,a,s,l,c;xt(1,arguments);var u=Yt(e),d=u.getUTCFullYear(),f=Jl(),p=eo((r=(n=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&o!==void 0?o:f.firstWeekContainsDate)!==null&&n!==void 0?n:(l=f.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&r!==void 0?r:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(d+1,0,p),h.setUTCHours(0,0,0,0);var g=Ka(h,t),v=new Date(0);v.setUTCFullYear(d,0,p),v.setUTCHours(0,0,0,0);var m=Ka(v,t);return u.getTime()>=g.getTime()?d+1:u.getTime()>=m.getTime()?d:d-1}function NF(e,t){var r,n,o,i,a,s,l,c;xt(1,arguments);var u=Jl(),d=eo((r=(n=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&o!==void 0?o:u.firstWeekContainsDate)!==null&&n!==void 0?n:(l=u.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&r!==void 0?r:1),f=FS(e,t),p=new Date(0);p.setUTCFullYear(f,0,d),p.setUTCHours(0,0,0,0);var h=Ka(p,t);return h}var HF=6048e5;function jF(e,t){xt(1,arguments);var r=Yt(e),n=Ka(r,t).getTime()-NF(r,t).getTime();return Math.round(n/HF)+1}function Et(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length<t;)n="0"+n;return r+n}var WF={y:function(t,r){var n=t.getUTCFullYear(),o=n>0?n:1-n;return Et(r==="yy"?o%100:o,r.length)},M:function(t,r){var n=t.getUTCMonth();return r==="M"?String(n+1):Et(n+1,2)},d:function(t,r){return Et(t.getUTCDate(),r.length)},a:function(t,r){var n=t.getUTCHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function(t,r){return Et(t.getUTCHours()%12||12,r.length)},H:function(t,r){return Et(t.getUTCHours(),r.length)},m:function(t,r){return Et(t.getUTCMinutes(),r.length)},s:function(t,r){return Et(t.getUTCSeconds(),r.length)},S:function(t,r){var n=r.length,o=t.getUTCMilliseconds(),i=Math.floor(o*Math.pow(10,n-3));return Et(i,r.length)}};const Io=WF;var ga={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},UF={G:function(t,r,n){var o=t.getUTCFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return n.era(o,{width:"abbreviated"});case"GGGGG":return n.era(o,{width:"narrow"});case"GGGG":default:return n.era(o,{width:"wide"})}},y:function(t,r,n){if(r==="yo"){var o=t.getUTCFullYear(),i=o>0?o:1-o;return n.ordinalNumber(i,{unit:"year"})}return Io.y(t,r)},Y:function(t,r,n,o){var i=FS(t,o),a=i>0?i:1-i;if(r==="YY"){var s=a%100;return Et(s,2)}return r==="Yo"?n.ordinalNumber(a,{unit:"year"}):Et(a,r.length)},R:function(t,r){var n=LS(t);return Et(n,r.length)},u:function(t,r){var n=t.getUTCFullYear();return Et(n,r.length)},Q:function(t,r,n){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"Q":return String(o);case"QQ":return Et(o,2);case"Qo":return n.ordinalNumber(o,{unit:"quarter"});case"QQQ":return n.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(o,{width:"wide",context:"formatting"})}},q:function(t,r,n){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"q":return String(o);case"qq":return Et(o,2);case"qo":return n.ordinalNumber(o,{unit:"quarter"});case"qqq":return n.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(o,{width:"wide",context:"standalone"})}},M:function(t,r,n){var o=t.getUTCMonth();switch(r){case"M":case"MM":return Io.M(t,r);case"Mo":return n.ordinalNumber(o+1,{unit:"month"});case"MMM":return n.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(o,{width:"wide",context:"formatting"})}},L:function(t,r,n){var o=t.getUTCMonth();switch(r){case"L":return String(o+1);case"LL":return Et(o+1,2);case"Lo":return n.ordinalNumber(o+1,{unit:"month"});case"LLL":return n.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(o,{width:"wide",context:"standalone"})}},w:function(t,r,n,o){var i=jF(t,o);return r==="wo"?n.ordinalNumber(i,{unit:"week"}):Et(i,r.length)},I:function(t,r,n){var o=zF(t);return r==="Io"?n.ordinalNumber(o,{unit:"week"}):Et(o,r.length)},d:function(t,r,n){return r==="do"?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):Io.d(t,r)},D:function(t,r,n){var o=LF(t);return r==="Do"?n.ordinalNumber(o,{unit:"dayOfYear"}):Et(o,r.length)},E:function(t,r,n){var o=t.getUTCDay();switch(r){case"E":case"EE":case"EEE":return n.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(o,{width:"short",context:"formatting"});case"EEEE":default:return n.day(o,{width:"wide",context:"formatting"})}},e:function(t,r,n,o){var i=t.getUTCDay(),a=(i-o.weekStartsOn+8)%7||7;switch(r){case"e":return String(a);case"ee":return Et(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(t,r,n,o){var i=t.getUTCDay(),a=(i-o.weekStartsOn+8)%7||7;switch(r){case"c":return String(a);case"cc":return Et(a,r.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(t,r,n){var o=t.getUTCDay(),i=o===0?7:o;switch(r){case"i":return String(i);case"ii":return Et(i,r.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(o,{width:"short",context:"formatting"});case"iiii":default:return n.day(o,{width:"wide",context:"formatting"})}},a:function(t,r,n){var o=t.getUTCHours(),i=o/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,r,n){var o=t.getUTCHours(),i;switch(o===12?i=ga.noon:o===0?i=ga.midnight:i=o/12>=1?"pm":"am",r){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,r,n){var o=t.getUTCHours(),i;switch(o>=17?i=ga.evening:o>=12?i=ga.afternoon:o>=4?i=ga.morning:i=ga.night,r){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,r,n){if(r==="ho"){var o=t.getUTCHours()%12;return o===0&&(o=12),n.ordinalNumber(o,{unit:"hour"})}return Io.h(t,r)},H:function(t,r,n){return r==="Ho"?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Io.H(t,r)},K:function(t,r,n){var o=t.getUTCHours()%12;return r==="Ko"?n.ordinalNumber(o,{unit:"hour"}):Et(o,r.length)},k:function(t,r,n){var o=t.getUTCHours();return o===0&&(o=24),r==="ko"?n.ordinalNumber(o,{unit:"hour"}):Et(o,r.length)},m:function(t,r,n){return r==="mo"?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):Io.m(t,r)},s:function(t,r,n){return r==="so"?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Io.s(t,r)},S:function(t,r){return Io.S(t,r)},X:function(t,r,n,o){var i=o._originalDate||t,a=i.getTimezoneOffset();if(a===0)return"Z";switch(r){case"X":return o1(a);case"XXXX":case"XX":return wi(a);case"XXXXX":case"XXX":default:return wi(a,":")}},x:function(t,r,n,o){var i=o._originalDate||t,a=i.getTimezoneOffset();switch(r){case"x":return o1(a);case"xxxx":case"xx":return wi(a);case"xxxxx":case"xxx":default:return wi(a,":")}},O:function(t,r,n,o){var i=o._originalDate||t,a=i.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+n1(a,":");case"OOOO":default:return"GMT"+wi(a,":")}},z:function(t,r,n,o){var i=o._originalDate||t,a=i.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+n1(a,":");case"zzzz":default:return"GMT"+wi(a,":")}},t:function(t,r,n,o){var i=o._originalDate||t,a=Math.floor(i.getTime()/1e3);return Et(a,r.length)},T:function(t,r,n,o){var i=o._originalDate||t,a=i.getTime();return Et(a,r.length)}};function n1(e,t){var r=e>0?"-":"+",n=Math.abs(e),o=Math.floor(n/60),i=n%60;if(i===0)return r+String(o);var a=t||"";return r+String(o)+a+Et(i,2)}function o1(e,t){if(e%60===0){var r=e>0?"-":"+";return r+Et(Math.abs(e)/60,2)}return wi(e,t)}function wi(e,t){var r=t||"",n=e>0?"-":"+",o=Math.abs(e),i=Et(Math.floor(o/60),2),a=Et(o%60,2);return n+i+r+a}const VF=UF;var i1=function(t,r){switch(t){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},MS=function(t,r){switch(t){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},qF=function(t,r){var n=t.match(/(P+)(p+)?/)||[],o=n[1],i=n[2];if(!i)return i1(t,r);var a;switch(o){case"P":a=r.dateTime({width:"short"});break;case"PP":a=r.dateTime({width:"medium"});break;case"PPP":a=r.dateTime({width:"long"});break;case"PPPP":default:a=r.dateTime({width:"full"});break}return a.replace("{{date}}",i1(o,r)).replace("{{time}}",MS(i,r))},GF={p:MS,P:qF};const YF=GF;var KF=["D","DD"],XF=["YY","YYYY"];function ZF(e){return KF.indexOf(e)!==-1}function QF(e){return XF.indexOf(e)!==-1}function a1(e,t,r){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var JF=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,eM=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,tM=/^'([^]*?)'?$/,rM=/''/g,nM=/[a-zA-Z]/;function Hf(e,t,r){var n,o,i,a,s,l,c,u,d,f,p,h,g,v,m,b,x,y;xt(2,arguments);var w=String(t),C=Jl(),S=(n=(o=r==null?void 0:r.locale)!==null&&o!==void 0?o:C.locale)!==null&&n!==void 0?n:RS,T=eo((i=(a=(s=(l=r==null?void 0:r.firstWeekContainsDate)!==null&&l!==void 0?l:r==null||(c=r.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&s!==void 0?s:C.firstWeekContainsDate)!==null&&a!==void 0?a:(d=C.locale)===null||d===void 0||(f=d.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(T>=1&&T<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var P=eo((p=(h=(g=(v=r==null?void 0:r.weekStartsOn)!==null&&v!==void 0?v:r==null||(m=r.locale)===null||m===void 0||(b=m.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&g!==void 0?g:C.weekStartsOn)!==null&&h!==void 0?h:(x=C.locale)===null||x===void 0||(y=x.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&p!==void 0?p:0);if(!(P>=0&&P<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!S.localize)throw new RangeError("locale must contain localize property");if(!S.formatLong)throw new RangeError("locale must contain formatLong property");var A=Yt(e);if(!DF(A))throw new RangeError("Invalid time value");var I=$F(A),B=OF(A,I),D={firstWeekContainsDate:T,weekStartsOn:P,locale:S,_originalDate:A},U=w.match(eM).map(function(F){var j=F[0];if(j==="p"||j==="P"){var K=YF[j];return K(F,S.formatLong)}return F}).join("").match(JF).map(function(F){if(F==="''")return"'";var j=F[0];if(j==="'")return oM(F);var K=VF[j];if(K)return!(r!=null&&r.useAdditionalWeekYearTokens)&&QF(F)&&a1(F,t,String(e)),!(r!=null&&r.useAdditionalDayOfYearTokens)&&ZF(F)&&a1(F,t,String(e)),K(B,F,S.localize,D);if(j.match(nM))throw new RangeError("Format string contains an unescaped latin alphabet character `"+j+"`");return F}).join("");return U}function oM(e){var t=e.match(tM);return t?t[1].replace(rM,"'"):e}function zS(e){xt(1,arguments);var t=Yt(e),r=t.getDate();return r}function iM(e){xt(1,arguments);var t=Yt(e),r=t.getDay();return r}function Un(e){xt(1,arguments);var t=Yt(e),r=t.getMonth();return r}function Ei(e){xt(1,arguments);var t=Yt(e),r=t.getTime();return r}function jo(e){return xt(1,arguments),Yt(e).getFullYear()}function aM(e,t,r){xt(2,arguments);var n=t1(e,r),o=t1(t,r);return n.getTime()===o.getTime()}function Id(e,t){xt(2,arguments);var r=Yt(e),n=Yt(t);return r.getFullYear()===n.getFullYear()&&r.getMonth()===n.getMonth()}function sM(e,t){xt(2,arguments);var r=r1(e),n=r1(t);return r.getTime()===n.getTime()}function lM(e,t){xt(2,arguments);var r=Yt(e),n=Yt(t);return r.getFullYear()===n.getFullYear()}function cM(e){return xt(1,arguments),Id(Date.now(),e)}function Dg(e){const{mergedLocaleRef:t,mergedDateLocaleRef:r}=Me(Jn,null)||{},n=R(()=>{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:Mh[e]});return{dateLocaleRef:R(()=>{var i;return(i=r==null?void 0:r.value)!==null&&i!==void 0?i:AF}),localeRef:n}}function ea(e,t,r){if(!t)return;const n=xs(),o=Me(Jn,null),i=()=>{const a=r.value;t.mount({id:a===void 0?e:a+e,head:!0,anchorMetaName:$l,props:{bPrefix:a?`.${a}-`:void 0},ssr:n}),o!=null&&o.preflightStyleDisabled||DS.mount({id:"n-global",head:!0,anchorMetaName:$l,ssr:n})};n?i():Rn(i)}function tr(e,t,r,n){var o;r||ms("useThemeClass","cssVarsRef is not passed");const i=(o=Me(Jn,null))===null||o===void 0?void 0:o.mergedThemeHashRef,a=z(""),s=xs();let l;const c=`__${e}`,u=()=>{let d=c;const f=t?t.value:void 0,p=i==null?void 0:i.value;p&&(d+="-"+p),f&&(d+="-"+f);const{themeOverrides:h,builtinThemeOverrides:g}=n;h&&(d+="-"+El(JSON.stringify(h))),g&&(d+="-"+El(JSON.stringify(g))),a.value=d,l=()=>{const v=r.value;let m="";for(const b in v)m+=`${b}: ${v[b]};`;q(`.${d}`,m).mount({id:d,ssr:s}),l=void 0}};return $r(()=>{u()}),{themeClass:a,onRender:()=>{l==null||l()}}}function an(e,t,r){if(!t)return;const n=xs(),o=R(()=>{const{value:a}=t;if(!a)return;const s=a[e];if(s)return s}),i=()=>{$r(()=>{const{value:a}=r,s=`${a}${e}Rtl`;if(_A(s,n))return;const{value:l}=o;l&&l.style.mount({id:s,head:!0,anchorMetaName:$l,props:{bPrefix:a?`.${a}-`:void 0},ssr:n})})};return n?i():Rn(i),o}const uM=me({name:"Add",render(){return k("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},k("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"}))}});function to(e,t){return me({name:yD(e),setup(){var r;const n=(r=Me(Jn,null))===null||r===void 0?void 0:r.mergedIconsRef;return()=>{var o;const i=(o=n==null?void 0:n.value)===null||o===void 0?void 0:o[e];return i?i():t}}})}const dM=me({name:"ChevronLeft",render(){return k("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},k("path",{d:"M10.3536 3.14645C10.5488 3.34171 10.5488 3.65829 10.3536 3.85355L6.20711 8L10.3536 12.1464C10.5488 12.3417 10.5488 12.6583 10.3536 12.8536C10.1583 13.0488 9.84171 13.0488 9.64645 12.8536L5.14645 8.35355C4.95118 8.15829 4.95118 7.84171 5.14645 7.64645L9.64645 3.14645C9.84171 2.95118 10.1583 2.95118 10.3536 3.14645Z",fill:"currentColor"}))}}),fM=me({name:"ChevronRight",render(){return k("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},k("path",{d:"M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z",fill:"currentColor"}))}}),hM=to("close",k("svg",{viewBox:"0 0 12 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},k("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},k("g",{fill:"currentColor","fill-rule":"nonzero"},k("path",{d:"M2.08859116,2.2156945 L2.14644661,2.14644661 C2.32001296,1.97288026 2.58943736,1.95359511 2.7843055,2.08859116 L2.85355339,2.14644661 L6,5.293 L9.14644661,2.14644661 C9.34170876,1.95118446 9.65829124,1.95118446 9.85355339,2.14644661 C10.0488155,2.34170876 10.0488155,2.65829124 9.85355339,2.85355339 L6.707,6 L9.85355339,9.14644661 C10.0271197,9.32001296 10.0464049,9.58943736 9.91140884,9.7843055 L9.85355339,9.85355339 C9.67998704,10.0271197 9.41056264,10.0464049 9.2156945,9.91140884 L9.14644661,9.85355339 L6,6.707 L2.85355339,9.85355339 C2.65829124,10.0488155 2.34170876,10.0488155 2.14644661,9.85355339 C1.95118446,9.65829124 1.95118446,9.34170876 2.14644661,9.14644661 L5.293,6 L2.14644661,2.85355339 C1.97288026,2.67998704 1.95359511,2.41056264 2.08859116,2.2156945 L2.14644661,2.14644661 L2.08859116,2.2156945 Z"}))))),pM=me({name:"Eye",render(){return k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},k("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),k("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}}),gM=me({name:"EyeOff",render(){return k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},k("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),k("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),k("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),k("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),k("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"}))}}),ec=to("error",k("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},k("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},k("g",{"fill-rule":"nonzero"},k("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M17.8838835,16.1161165 L17.7823881,16.0249942 C17.3266086,15.6583353 16.6733914,15.6583353 16.2176119,16.0249942 L16.1161165,16.1161165 L16.0249942,16.2176119 C15.6583353,16.6733914 15.6583353,17.3266086 16.0249942,17.7823881 L16.1161165,17.8838835 L22.233,24 L16.1161165,30.1161165 L16.0249942,30.2176119 C15.6583353,30.6733914 15.6583353,31.3266086 16.0249942,31.7823881 L16.1161165,31.8838835 L16.2176119,31.9750058 C16.6733914,32.3416647 17.3266086,32.3416647 17.7823881,31.9750058 L17.8838835,31.8838835 L24,25.767 L30.1161165,31.8838835 L30.2176119,31.9750058 C30.6733914,32.3416647 31.3266086,32.3416647 31.7823881,31.9750058 L31.8838835,31.8838835 L31.9750058,31.7823881 C32.3416647,31.3266086 32.3416647,30.6733914 31.9750058,30.2176119 L31.8838835,30.1161165 L25.767,24 L31.8838835,17.8838835 L31.9750058,17.7823881 C32.3416647,17.3266086 32.3416647,16.6733914 31.9750058,16.2176119 L31.8838835,16.1161165 L31.7823881,16.0249942 C31.3266086,15.6583353 30.6733914,15.6583353 30.2176119,16.0249942 L30.1161165,16.1161165 L24,22.233 L17.8838835,16.1161165 L17.7823881,16.0249942 L17.8838835,16.1161165 Z"}))))),Xa=to("info",k("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},k("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},k("g",{"fill-rule":"nonzero"},k("path",{d:"M14,2 C20.6274,2 26,7.37258 26,14 C26,20.6274 20.6274,26 14,26 C7.37258,26 2,20.6274 2,14 C2,7.37258 7.37258,2 14,2 Z M14,11 C13.4477,11 13,11.4477 13,12 L13,12 L13,20 C13,20.5523 13.4477,21 14,21 C14.5523,21 15,20.5523 15,20 L15,20 L15,12 C15,11.4477 14.5523,11 14,11 Z M14,6.75 C13.3096,6.75 12.75,7.30964 12.75,8 C12.75,8.69036 13.3096,9.25 14,9.25 C14.6904,9.25 15.25,8.69036 15.25,8 C15.25,7.30964 14.6904,6.75 14,6.75 Z"}))))),tc=to("success",k("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},k("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},k("g",{"fill-rule":"nonzero"},k("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M32.6338835,17.6161165 C32.1782718,17.1605048 31.4584514,17.1301307 30.9676119,17.5249942 L30.8661165,17.6161165 L20.75,27.732233 L17.1338835,24.1161165 C16.6457281,23.6279612 15.8542719,23.6279612 15.3661165,24.1161165 C14.9105048,24.5717282 14.8801307,25.2915486 15.2749942,25.7823881 L15.3661165,25.8838835 L19.8661165,30.3838835 C20.3217282,30.8394952 21.0415486,30.8698693 21.5323881,30.4750058 L21.6338835,30.3838835 L32.6338835,19.3838835 C33.1220388,18.8957281 33.1220388,18.1042719 32.6338835,17.6161165 Z"}))))),rc=to("warning",k("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},k("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},k("g",{"fill-rule":"nonzero"},k("path",{d:"M12,2 C17.523,2 22,6.478 22,12 C22,17.522 17.523,22 12,22 C6.477,22 2,17.522 2,12 C2,6.478 6.477,2 12,2 Z M12.0018002,15.0037242 C11.450254,15.0037242 11.0031376,15.4508407 11.0031376,16.0023869 C11.0031376,16.553933 11.450254,17.0010495 12.0018002,17.0010495 C12.5533463,17.0010495 13.0004628,16.553933 13.0004628,16.0023869 C13.0004628,15.4508407 12.5533463,15.0037242 12.0018002,15.0037242 Z M11.99964,7 C11.4868042,7.00018474 11.0642719,7.38637706 11.0066858,7.8837365 L11,8.00036004 L11.0018003,13.0012393 L11.00857,13.117858 C11.0665141,13.6151758 11.4893244,14.0010638 12.0021602,14.0008793 C12.514996,14.0006946 12.9375283,13.6145023 12.9951144,13.1171428 L13.0018002,13.0005193 L13,7.99964009 L12.9932303,7.8830214 C12.9352861,7.38570354 12.5124758,6.99981552 11.99964,7 Z"}))))),mM=me({name:"ChevronDown",render(){return k("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},k("path",{d:"M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z",fill:"currentColor"}))}}),vM=to("clear",k("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},k("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},k("g",{fill:"currentColor","fill-rule":"nonzero"},k("path",{d:"M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"}))))),bM=to("rotateClockwise",k("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},k("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"}),k("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"}))),xM=to("rotateClockwise",k("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},k("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"}),k("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"}))),yM=to("zoomIn",k("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},k("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"}),k("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"}))),CM=to("zoomOut",k("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},k("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"}),k("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"}))),wM=me({name:"ResizeSmall",render(){return k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},k("g",{fill:"none"},k("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"})))}}),Bd=me({name:"BaseIconSwitchTransition",setup(e,{slots:t}){const r=bs();return()=>k(Fr,{name:"icon-switch-transition",appear:r.value},t)}}),Og=me({name:"FadeInExpandTransition",props:{appear:Boolean,group:Boolean,mode:String,onLeave:Function,onAfterLeave:Function,onAfterEnter:Function,width:Boolean,reverse:Boolean},setup(e,{slots:t}){function r(s){e.width?s.style.maxWidth=`${s.offsetWidth}px`:s.style.maxHeight=`${s.offsetHeight}px`,s.offsetWidth}function n(s){e.width?s.style.maxWidth="0":s.style.maxHeight="0",s.offsetWidth;const{onLeave:l}=e;l&&l()}function o(s){e.width?s.style.maxWidth="":s.style.maxHeight="";const{onAfterLeave:l}=e;l&&l()}function i(s){if(s.style.transition="none",e.width){const l=s.offsetWidth;s.style.maxWidth="0",s.offsetWidth,s.style.transition="",s.style.maxWidth=`${l}px`}else if(e.reverse)s.style.maxHeight=`${s.offsetHeight}px`,s.offsetHeight,s.style.transition="",s.style.maxHeight="0";else{const l=s.offsetHeight;s.style.maxHeight="0",s.offsetWidth,s.style.transition="",s.style.maxHeight=`${l}px`}s.offsetWidth}function a(s){var l;e.width?s.style.maxWidth="":e.reverse||(s.style.maxHeight=""),(l=e.onAfterEnter)===null||l===void 0||l.call(e)}return()=>{const{group:s,width:l,appear:c,mode:u}=e,d=s?f2:Fr,f={name:l?"fade-in-width-expand-transition":"fade-in-height-expand-transition",appear:c,onEnter:i,onAfterEnter:a,onBeforeLeave:r,onLeave:n,onAfterLeave:o};return s||(f.mode=u),k(d,f,t)}}}),SM=N("base-icon",`
|
||
height: 1em;
|
||
width: 1em;
|
||
line-height: 1em;
|
||
text-align: center;
|
||
display: inline-block;
|
||
position: relative;
|
||
fill: currentColor;
|
||
transform: translateZ(0);
|
||
`,[q("svg",`
|
||
height: 1em;
|
||
width: 1em;
|
||
`)]),or=me({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){ea("-base-icon",SM,nt(e,"clsPrefix"))},render(){return k("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)}}),_M=N("base-close",`
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
cursor: pointer;
|
||
background-color: transparent;
|
||
color: var(--n-close-icon-color);
|
||
border-radius: var(--n-close-border-radius);
|
||
height: var(--n-close-size);
|
||
width: var(--n-close-size);
|
||
font-size: var(--n-close-icon-size);
|
||
outline: none;
|
||
border: none;
|
||
position: relative;
|
||
padding: 0;
|
||
`,[Q("absolute",`
|
||
height: var(--n-close-icon-size);
|
||
width: var(--n-close-icon-size);
|
||
`),q("&::before",`
|
||
content: "";
|
||
position: absolute;
|
||
width: var(--n-close-size);
|
||
height: var(--n-close-size);
|
||
left: 50%;
|
||
top: 50%;
|
||
transform: translateY(-50%) translateX(-50%);
|
||
transition: inherit;
|
||
border-radius: inherit;
|
||
`),ir("disabled",[q("&:hover",`
|
||
color: var(--n-close-icon-color-hover);
|
||
`),q("&:hover::before",`
|
||
background-color: var(--n-close-color-hover);
|
||
`),q("&:focus::before",`
|
||
background-color: var(--n-close-color-hover);
|
||
`),q("&:active",`
|
||
color: var(--n-close-icon-color-pressed);
|
||
`),q("&:active::before",`
|
||
background-color: var(--n-close-color-pressed);
|
||
`)]),Q("disabled",`
|
||
cursor: not-allowed;
|
||
color: var(--n-close-icon-color-disabled);
|
||
background-color: transparent;
|
||
`),Q("round",[q("&::before",`
|
||
border-radius: 50%;
|
||
`)])]),ta=me({name:"BaseClose",props:{isButtonTag:{type:Boolean,default:!0},clsPrefix:{type:String,required:!0},disabled:{type:Boolean,default:void 0},focusable:{type:Boolean,default:!0},round:Boolean,onClick:Function,absolute:Boolean},setup(e){return ea("-base-close",_M,nt(e,"clsPrefix")),()=>{const{clsPrefix:t,disabled:r,absolute:n,round:o,isButtonTag:i}=e;return k(i?"button":"div",{type:i?"button":void 0,tabindex:r||!e.focusable?-1:0,"aria-disabled":r,"aria-label":"close",role:i?void 0:"button",disabled:r,class:[`${t}-base-close`,n&&`${t}-base-close--absolute`,r&&`${t}-base-close--disabled`,o&&`${t}-base-close--round`],onMousedown:s=>{e.focusable||s.preventDefault()},onClick:e.onClick},k(or,{clsPrefix:t},{default:()=>k(hM,null)}))}}}),{cubicBezierEaseInOut:EM}=Eo;function Bl({originalTransform:e="",left:t=0,top:r=0,transition:n=`all .3s ${EM} !important`}={}){return[q("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to",{transform:e+" scale(0.75)",left:t,top:r,opacity:0}),q("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from",{transform:`scale(1) ${e}`,left:t,top:r,opacity:1}),q("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active",{transformOrigin:"center",position:"absolute",left:t,top:r,transition:n})]}const TM=q([q("@keyframes rotator",`
|
||
0% {
|
||
-webkit-transform: rotate(0deg);
|
||
transform: rotate(0deg);
|
||
}
|
||
100% {
|
||
-webkit-transform: rotate(360deg);
|
||
transform: rotate(360deg);
|
||
}`),N("base-loading",`
|
||
position: relative;
|
||
line-height: 0;
|
||
width: 1em;
|
||
height: 1em;
|
||
`,[Z("transition-wrapper",`
|
||
position: absolute;
|
||
width: 100%;
|
||
height: 100%;
|
||
`,[Bl()]),Z("placeholder",`
|
||
position: absolute;
|
||
left: 50%;
|
||
top: 50%;
|
||
transform: translateX(-50%) translateY(-50%);
|
||
`,[Bl({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),Z("container",`
|
||
animation: rotator 3s linear infinite both;
|
||
`,[Z("icon",`
|
||
height: 1em;
|
||
width: 1em;
|
||
`)])])]),jf="1.6s",kM={strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0}},Dd=me({name:"BaseLoading",props:Object.assign({clsPrefix:{type:String,required:!0},show:{type:Boolean,default:!0},scale:{type:Number,default:1},radius:{type:Number,default:100}},kM),setup(e){ea("-base-loading",TM,nt(e,"clsPrefix"))},render(){const{clsPrefix:e,radius:t,strokeWidth:r,stroke:n,scale:o}=this,i=t/o;return k("div",{class:`${e}-base-loading`,role:"img","aria-label":"loading"},k(Bd,null,{default:()=>this.show?k("div",{key:"icon",class:`${e}-base-loading__transition-wrapper`},k("div",{class:`${e}-base-loading__container`},k("svg",{class:`${e}-base-loading__icon`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:n}},k("g",null,k("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${i} ${i};270 ${i} ${i}`,begin:"0s",dur:jf,fill:"freeze",repeatCount:"indefinite"}),k("circle",{class:`${e}-base-loading__icon`,fill:"none",stroke:"currentColor","stroke-width":r,"stroke-linecap":"round",cx:i,cy:i,r:t-r/2,"stroke-dasharray":5.67*t,"stroke-dashoffset":18.48*t},k("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${i} ${i};135 ${i} ${i};450 ${i} ${i}`,begin:"0s",dur:jf,fill:"freeze",repeatCount:"indefinite"}),k("animate",{attributeName:"stroke-dashoffset",values:`${5.67*t};${1.42*t};${5.67*t}`,begin:"0s",dur:jf,fill:"freeze",repeatCount:"indefinite"})))))):k("div",{key:"placeholder",class:`${e}-base-loading__placeholder`},this.$slots)}))}}),De={neutralBase:"#000",neutralInvertBase:"#fff",neutralTextBase:"#fff",neutralPopover:"rgb(72, 72, 78)",neutralCard:"rgb(24, 24, 28)",neutralModal:"rgb(44, 44, 50)",neutralBody:"rgb(16, 16, 20)",alpha1:"0.9",alpha2:"0.82",alpha3:"0.52",alpha4:"0.38",alpha5:"0.28",alphaClose:"0.52",alphaDisabled:"0.38",alphaDisabledInput:"0.06",alphaPending:"0.09",alphaTablePending:"0.06",alphaTableStriped:"0.05",alphaPressed:"0.05",alphaAvatar:"0.18",alphaRail:"0.2",alphaProgressRail:"0.12",alphaBorder:"0.24",alphaDivider:"0.09",alphaInput:"0.1",alphaAction:"0.06",alphaTab:"0.04",alphaScrollbar:"0.2",alphaScrollbarHover:"0.3",alphaCode:"0.12",alphaTag:"0.2",primaryHover:"#7fe7c4",primaryDefault:"#63e2b7",primaryActive:"#5acea7",primarySuppl:"rgb(42, 148, 125)",infoHover:"#8acbec",infoDefault:"#70c0e8",infoActive:"#66afd3",infoSuppl:"rgb(56, 137, 197)",errorHover:"#e98b8b",errorDefault:"#e88080",errorActive:"#e57272",errorSuppl:"rgb(208, 58, 82)",warningHover:"#f5d599",warningDefault:"#f2c97d",warningActive:"#e6c260",warningSuppl:"rgb(240, 138, 0)",successHover:"#7fe7c4",successDefault:"#63e2b7",successActive:"#5acea7",successSuppl:"rgb(42, 148, 125)"},AM=bo(De.neutralBase),NS=bo(De.neutralInvertBase),PM="rgba("+NS.slice(0,3).join(", ")+", ";function vt(e){return PM+String(e)+")"}function $M(e){const t=Array.from(NS);return t[3]=Number(e),Oe(AM,t)}const IM=Object.assign(Object.assign({name:"common"},Eo),{baseColor:De.neutralBase,primaryColor:De.primaryDefault,primaryColorHover:De.primaryHover,primaryColorPressed:De.primaryActive,primaryColorSuppl:De.primarySuppl,infoColor:De.infoDefault,infoColorHover:De.infoHover,infoColorPressed:De.infoActive,infoColorSuppl:De.infoSuppl,successColor:De.successDefault,successColorHover:De.successHover,successColorPressed:De.successActive,successColorSuppl:De.successSuppl,warningColor:De.warningDefault,warningColorHover:De.warningHover,warningColorPressed:De.warningActive,warningColorSuppl:De.warningSuppl,errorColor:De.errorDefault,errorColorHover:De.errorHover,errorColorPressed:De.errorActive,errorColorSuppl:De.errorSuppl,textColorBase:De.neutralTextBase,textColor1:vt(De.alpha1),textColor2:vt(De.alpha2),textColor3:vt(De.alpha3),textColorDisabled:vt(De.alpha4),placeholderColor:vt(De.alpha4),placeholderColorDisabled:vt(De.alpha5),iconColor:vt(De.alpha4),iconColorDisabled:vt(De.alpha5),iconColorHover:vt(Number(De.alpha4)*1.25),iconColorPressed:vt(Number(De.alpha4)*.8),opacity1:De.alpha1,opacity2:De.alpha2,opacity3:De.alpha3,opacity4:De.alpha4,opacity5:De.alpha5,dividerColor:vt(De.alphaDivider),borderColor:vt(De.alphaBorder),closeIconColorHover:vt(Number(De.alphaClose)),closeIconColor:vt(Number(De.alphaClose)),closeIconColorPressed:vt(Number(De.alphaClose)),closeColorHover:"rgba(255, 255, 255, .12)",closeColorPressed:"rgba(255, 255, 255, .08)",clearColor:vt(De.alpha4),clearColorHover:lr(vt(De.alpha4),{alpha:1.25}),clearColorPressed:lr(vt(De.alpha4),{alpha:.8}),scrollbarColor:vt(De.alphaScrollbar),scrollbarColorHover:vt(De.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:vt(De.alphaProgressRail),railColor:vt(De.alphaRail),popoverColor:De.neutralPopover,tableColor:De.neutralCard,cardColor:De.neutralCard,modalColor:De.neutralModal,bodyColor:De.neutralBody,tagColor:$M(De.alphaTag),avatarColor:vt(De.alphaAvatar),invertedColor:De.neutralBase,inputColor:vt(De.alphaInput),codeColor:vt(De.alphaCode),tabColor:vt(De.alphaTab),actionColor:vt(De.alphaAction),tableHeaderColor:vt(De.alphaAction),hoverColor:vt(De.alphaPending),tableColorHover:vt(De.alphaTablePending),tableColorStriped:vt(De.alphaTableStriped),pressedColor:vt(De.alphaPressed),opacityDisabled:De.alphaDisabled,inputColorDisabled:vt(De.alphaDisabledInput),buttonColor2:"rgba(255, 255, 255, .08)",buttonColor2Hover:"rgba(255, 255, 255, .12)",buttonColor2Pressed:"rgba(255, 255, 255, .08)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .24), 0 3px 6px 0 rgba(0, 0, 0, .18), 0 5px 12px 4px rgba(0, 0, 0, .12)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .24), 0 6px 12px 0 rgba(0, 0, 0, .16), 0 9px 18px 8px rgba(0, 0, 0, .10)",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)"}),Ae=IM,Ue={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"},BM=bo(Ue.neutralBase),HS=bo(Ue.neutralInvertBase),DM="rgba("+HS.slice(0,3).join(", ")+", ";function s1(e){return DM+String(e)+")"}function Ir(e){const t=Array.from(HS);return t[3]=Number(e),Oe(BM,t)}const OM=Object.assign(Object.assign({name:"common"},Eo),{baseColor:Ue.neutralBase,primaryColor:Ue.primaryDefault,primaryColorHover:Ue.primaryHover,primaryColorPressed:Ue.primaryActive,primaryColorSuppl:Ue.primarySuppl,infoColor:Ue.infoDefault,infoColorHover:Ue.infoHover,infoColorPressed:Ue.infoActive,infoColorSuppl:Ue.infoSuppl,successColor:Ue.successDefault,successColorHover:Ue.successHover,successColorPressed:Ue.successActive,successColorSuppl:Ue.successSuppl,warningColor:Ue.warningDefault,warningColorHover:Ue.warningHover,warningColorPressed:Ue.warningActive,warningColorSuppl:Ue.warningSuppl,errorColor:Ue.errorDefault,errorColorHover:Ue.errorHover,errorColorPressed:Ue.errorActive,errorColorSuppl:Ue.errorSuppl,textColorBase:Ue.neutralTextBase,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:Ir(Ue.alpha4),placeholderColor:Ir(Ue.alpha4),placeholderColorDisabled:Ir(Ue.alpha5),iconColor:Ir(Ue.alpha4),iconColorHover:lr(Ir(Ue.alpha4),{lightness:.75}),iconColorPressed:lr(Ir(Ue.alpha4),{lightness:.9}),iconColorDisabled:Ir(Ue.alpha5),opacity1:Ue.alpha1,opacity2:Ue.alpha2,opacity3:Ue.alpha3,opacity4:Ue.alpha4,opacity5:Ue.alpha5,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeIconColor:Ir(Number(Ue.alphaClose)),closeIconColorHover:Ir(Number(Ue.alphaClose)),closeIconColorPressed:Ir(Number(Ue.alphaClose)),closeColorHover:"rgba(0, 0, 0, .09)",closeColorPressed:"rgba(0, 0, 0, .13)",clearColor:Ir(Ue.alpha4),clearColorHover:lr(Ir(Ue.alpha4),{lightness:.75}),clearColorPressed:lr(Ir(Ue.alpha4),{lightness:.9}),scrollbarColor:s1(Ue.alphaScrollbar),scrollbarColorHover:s1(Ue.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:Ir(Ue.alphaProgressRail),railColor:"rgb(219, 219, 223)",popoverColor:Ue.neutralPopover,tableColor:Ue.neutralCard,cardColor:Ue.neutralCard,modalColor:Ue.neutralModal,bodyColor:Ue.neutralBody,tagColor:"#eee",avatarColor:Ir(Ue.alphaAvatar),invertedColor:"rgb(0, 20, 40)",inputColor:Ir(Ue.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:Ue.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)"}),ke=OM,RM={iconSizeSmall:"34px",iconSizeMedium:"40px",iconSizeLarge:"46px",iconSizeHuge:"52px"},jS=e=>{const{textColorDisabled:t,iconColor:r,textColor2:n,fontSizeSmall:o,fontSizeMedium:i,fontSizeLarge:a,fontSizeHuge:s}=e;return Object.assign(Object.assign({},RM),{fontSizeSmall:o,fontSizeMedium:i,fontSizeLarge:a,fontSizeHuge:s,textColor:t,iconColor:r,extraTextColor:n})},LM={name:"Empty",common:ke,self:jS},To=LM,FM={name:"Empty",common:Ae,self:jS},ra=FM,WS=e=>{const{scrollbarColor:t,scrollbarColorHover:r}=e;return{color:t,colorHover:r}},MM={name:"Scrollbar",common:ke,self:WS},jr=MM,zM={name:"Scrollbar",common:Ae,self:WS},Xr=zM,{cubicBezierEaseInOut:l1}=Eo;function Za({name:e="fade-in",enterDuration:t="0.2s",leaveDuration:r="0.2s",enterCubicBezier:n=l1,leaveCubicBezier:o=l1}={}){return[q(`&.${e}-transition-enter-active`,{transition:`all ${t} ${n}!important`}),q(`&.${e}-transition-leave-active`,{transition:`all ${r} ${o}!important`}),q(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),q(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}const NM=N("scrollbar",`
|
||
overflow: hidden;
|
||
position: relative;
|
||
z-index: auto;
|
||
height: 100%;
|
||
width: 100%;
|
||
`,[q(">",[N("scrollbar-container",`
|
||
width: 100%;
|
||
overflow: scroll;
|
||
height: 100%;
|
||
min-height: inherit;
|
||
max-height: inherit;
|
||
scrollbar-width: none;
|
||
`,[q("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",`
|
||
width: 0;
|
||
height: 0;
|
||
display: none;
|
||
`),q(">",[N("scrollbar-content",`
|
||
box-sizing: border-box;
|
||
min-width: 100%;
|
||
`)])])]),q(">, +",[N("scrollbar-rail",`
|
||
position: absolute;
|
||
pointer-events: none;
|
||
user-select: none;
|
||
-webkit-user-select: none;
|
||
`,[Q("horizontal",`
|
||
left: 2px;
|
||
right: 2px;
|
||
bottom: 4px;
|
||
height: var(--n-scrollbar-height);
|
||
`,[q(">",[Z("scrollbar",`
|
||
height: var(--n-scrollbar-height);
|
||
border-radius: var(--n-scrollbar-border-radius);
|
||
right: 0;
|
||
`)])]),Q("vertical",`
|
||
right: 4px;
|
||
top: 2px;
|
||
bottom: 2px;
|
||
width: var(--n-scrollbar-width);
|
||
`,[q(">",[Z("scrollbar",`
|
||
width: var(--n-scrollbar-width);
|
||
border-radius: var(--n-scrollbar-border-radius);
|
||
bottom: 0;
|
||
`)])]),Q("disabled",[q(">",[Z("scrollbar","pointer-events: none;")])]),q(">",[Z("scrollbar",`
|
||
z-index: 1;
|
||
position: absolute;
|
||
cursor: pointer;
|
||
pointer-events: all;
|
||
background-color: var(--n-scrollbar-color);
|
||
transition: background-color .2s var(--n-scrollbar-bezier);
|
||
`,[Za(),q("&:hover","background-color: var(--n-scrollbar-color-hover);")])])])])]),HM=Object.assign(Object.assign({},ze.props),{size:{type:Number,default:5},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}),US=me({name:"Scrollbar",props:HM,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r,mergedRtlRef:n}=ht(e),o=an("Scrollbar",n,t),i=z(null),a=z(null),s=z(null),l=z(null),c=z(null),u=z(null),d=z(null),f=z(null),p=z(null),h=z(null),g=z(null),v=z(0),m=z(0),b=z(!1),x=z(!1);let y=!1,w=!1,C,S,T=0,P=0,A=0,I=0;const B=qA(),D=R(()=>{const{value:be}=f,{value:Ie}=u,{value:He}=h;return be===null||Ie===null||He===null?0:Math.min(be,He*be/Ie+e.size*1.5)}),U=R(()=>`${D.value}px`),F=R(()=>{const{value:be}=p,{value:Ie}=d,{value:He}=g;return be===null||Ie===null||He===null?0:He*be/Ie+e.size*1.5}),j=R(()=>`${F.value}px`),K=R(()=>{const{value:be}=f,{value:Ie}=v,{value:He}=u,{value:Ct}=h;if(be===null||He===null||Ct===null)return 0;{const Ot=He-be;return Ot?Ie/Ot*(Ct-D.value):0}}),ae=R(()=>`${K.value}px`),we=R(()=>{const{value:be}=p,{value:Ie}=m,{value:He}=d,{value:Ct}=g;if(be===null||He===null||Ct===null)return 0;{const Ot=He-be;return Ot?Ie/Ot*(Ct-F.value):0}}),Ce=R(()=>`${we.value}px`),X=R(()=>{const{value:be}=f,{value:Ie}=u;return be!==null&&Ie!==null&&Ie>be}),re=R(()=>{const{value:be}=p,{value:Ie}=d;return be!==null&&Ie!==null&&Ie>be}),le=R(()=>{const{trigger:be}=e;return be==="none"||b.value}),ne=R(()=>{const{trigger:be}=e;return be==="none"||x.value}),$e=R(()=>{const{container:be}=e;return be?be():a.value}),Se=R(()=>{const{content:be}=e;return be?be():s.value}),ee=q2(()=>{e.container||xe({top:v.value,left:m.value})}),se=()=>{ee.isDeactivated||_e()},ce=be=>{if(ee.isDeactivated)return;const{onResize:Ie}=e;Ie&&Ie(be),_e()},xe=(be,Ie)=>{if(!e.scrollable)return;if(typeof be=="number"){Pe(be,Ie??0,0,!1,"auto");return}const{left:He,top:Ct,index:Ot,elSize:dr,position:mr,behavior:At,el:Ar,debounce:_n=!0}=be;(He!==void 0||Ct!==void 0)&&Pe(He??0,Ct??0,0,!1,At),Ar!==void 0?Pe(0,Ar.offsetTop,Ar.offsetHeight,_n,At):Ot!==void 0&&dr!==void 0?Pe(0,Ot*dr,dr,_n,At):mr==="bottom"?Pe(0,Number.MAX_SAFE_INTEGER,0,!1,At):mr==="top"&&Pe(0,0,0,!1,At)},Te=(be,Ie)=>{if(!e.scrollable)return;const{value:He}=$e;He&&(typeof be=="object"?He.scrollBy(be):He.scrollBy(be,Ie||0))};function Pe(be,Ie,He,Ct,Ot){const{value:dr}=$e;if(dr){if(Ct){const{scrollTop:mr,offsetHeight:At}=dr;if(Ie>mr){Ie+He<=mr+At||dr.scrollTo({left:be,top:Ie+He-At,behavior:Ot});return}}dr.scrollTo({left:be,top:Ie,behavior:Ot})}}function _(){J(),oe(),_e()}function E(){$()}function $(){L(),M()}function L(){S!==void 0&&window.clearTimeout(S),S=window.setTimeout(()=>{x.value=!1},e.duration)}function M(){C!==void 0&&window.clearTimeout(C),C=window.setTimeout(()=>{b.value=!1},e.duration)}function J(){C!==void 0&&window.clearTimeout(C),b.value=!0}function oe(){S!==void 0&&window.clearTimeout(S),x.value=!0}function O(be){const{onScroll:Ie}=e;Ie&&Ie(be),H()}function H(){const{value:be}=$e;be&&(v.value=be.scrollTop,m.value=be.scrollLeft*(o!=null&&o.value?-1:1))}function V(){const{value:be}=Se;be&&(u.value=be.offsetHeight,d.value=be.offsetWidth);const{value:Ie}=$e;Ie&&(f.value=Ie.offsetHeight,p.value=Ie.offsetWidth);const{value:He}=c,{value:Ct}=l;He&&(g.value=He.offsetWidth),Ct&&(h.value=Ct.offsetHeight)}function ue(){const{value:be}=$e;be&&(v.value=be.scrollTop,m.value=be.scrollLeft*(o!=null&&o.value?-1:1),f.value=be.offsetHeight,p.value=be.offsetWidth,u.value=be.scrollHeight,d.value=be.scrollWidth);const{value:Ie}=c,{value:He}=l;Ie&&(g.value=Ie.offsetWidth),He&&(h.value=He.offsetHeight)}function _e(){e.scrollable&&(e.useUnifiedContainer?ue():(V(),H()))}function Ee(be){var Ie;return!(!((Ie=i.value)===null||Ie===void 0)&&Ie.contains(Sl(be)))}function G(be){be.preventDefault(),be.stopPropagation(),w=!0,er("mousemove",window,ie,!0),er("mouseup",window,Re,!0),P=m.value,A=o!=null&&o.value?window.innerWidth-be.clientX:be.clientX}function ie(be){if(!w)return;C!==void 0&&window.clearTimeout(C),S!==void 0&&window.clearTimeout(S);const{value:Ie}=p,{value:He}=d,{value:Ct}=F;if(Ie===null||He===null)return;const dr=(o!=null&&o.value?window.innerWidth-be.clientX-A:be.clientX-A)*(He-Ie)/(Ie-Ct),mr=He-Ie;let At=P+dr;At=Math.min(mr,At),At=Math.max(At,0);const{value:Ar}=$e;if(Ar){Ar.scrollLeft=At*(o!=null&&o.value?-1:1);const{internalOnUpdateScrollLeft:_n}=e;_n&&_n(At)}}function Re(be){be.preventDefault(),be.stopPropagation(),kt("mousemove",window,ie,!0),kt("mouseup",window,Re,!0),w=!1,_e(),Ee(be)&&$()}function Ne(be){be.preventDefault(),be.stopPropagation(),y=!0,er("mousemove",window,lt,!0),er("mouseup",window,yt,!0),T=v.value,I=be.clientY}function lt(be){if(!y)return;C!==void 0&&window.clearTimeout(C),S!==void 0&&window.clearTimeout(S);const{value:Ie}=f,{value:He}=u,{value:Ct}=D;if(Ie===null||He===null)return;const dr=(be.clientY-I)*(He-Ie)/(Ie-Ct),mr=He-Ie;let At=T+dr;At=Math.min(mr,At),At=Math.max(At,0);const{value:Ar}=$e;Ar&&(Ar.scrollTop=At)}function yt(be){be.preventDefault(),be.stopPropagation(),kt("mousemove",window,lt,!0),kt("mouseup",window,yt,!0),y=!1,_e(),Ee(be)&&$()}$r(()=>{const{value:be}=re,{value:Ie}=X,{value:He}=t,{value:Ct}=c,{value:Ot}=l;Ct&&(be?Ct.classList.remove(`${He}-scrollbar-rail--disabled`):Ct.classList.add(`${He}-scrollbar-rail--disabled`)),Ot&&(Ie?Ot.classList.remove(`${He}-scrollbar-rail--disabled`):Ot.classList.add(`${He}-scrollbar-rail--disabled`))}),St(()=>{e.container||_e()}),Kt(()=>{C!==void 0&&window.clearTimeout(C),S!==void 0&&window.clearTimeout(S),kt("mousemove",window,lt,!0),kt("mouseup",window,yt,!0)});const jt=ze("Scrollbar","-scrollbar",NM,jr,e,t),Qr=R(()=>{const{common:{cubicBezierEaseInOut:be,scrollbarBorderRadius:Ie,scrollbarHeight:He,scrollbarWidth:Ct},self:{color:Ot,colorHover:dr}}=jt.value;return{"--n-scrollbar-bezier":be,"--n-scrollbar-color":Ot,"--n-scrollbar-color-hover":dr,"--n-scrollbar-border-radius":Ie,"--n-scrollbar-width":Ct,"--n-scrollbar-height":He}}),ur=r?tr("scrollbar",void 0,Qr,e):void 0;return Object.assign(Object.assign({},{scrollTo:xe,scrollBy:Te,sync:_e,syncUnifiedContainer:ue,handleMouseEnterWrapper:_,handleMouseLeaveWrapper:E}),{mergedClsPrefix:t,rtlEnabled:o,containerScrollTop:v,wrapperRef:i,containerRef:a,contentRef:s,yRailRef:l,xRailRef:c,needYBar:X,needXBar:re,yBarSizePx:U,xBarSizePx:j,yBarTopPx:ae,xBarLeftPx:Ce,isShowXBar:le,isShowYBar:ne,isIos:B,handleScroll:O,handleContentResize:se,handleContainerResize:ce,handleYScrollMouseDown:Ne,handleXScrollMouseDown:G,cssVars:r?void 0:Qr,themeClass:ur==null?void 0:ur.themeClass,onRender:ur==null?void 0:ur.onRender})},render(){var e;const{$slots:t,mergedClsPrefix:r,triggerDisplayManually:n,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=(u,d)=>k("div",{ref:"yRailRef",class:[`${r}-scrollbar-rail`,`${r}-scrollbar-rail--vertical`,u],"data-scrollbar-rail":!0,style:[d||"",this.verticalRailStyle],"aria-hidden":!0},k(a?Hv:Fr,a?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?k("div",{class:`${r}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),l=()=>{var u,d;return(u=this.onRender)===null||u===void 0||u.call(this),k("div",Dn(this.$attrs,{role:"none",ref:"wrapperRef",class:[`${r}-scrollbar`,this.themeClass,o&&`${r}-scrollbar--rtl`],style:this.cssVars,onMouseenter:n?void 0:this.handleMouseEnterWrapper,onMouseleave:n?void 0:this.handleMouseLeaveWrapper}),[this.container?(d=t.default)===null||d===void 0?void 0:d.call(t):k("div",{role:"none",ref:"containerRef",class:[`${r}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},k(Ko,{onResize:this.handleContentResize},{default:()=>k("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${r}-scrollbar-content`,this.contentClass]},t)})),i?null:s(void 0,void 0),this.xScrollable&&k("div",{ref:"xRailRef",class:[`${r}-scrollbar-rail`,`${r}-scrollbar-rail--horizontal`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},k(a?Hv:Fr,a?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?k("div",{class:`${r}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,right:o?this.xBarLeftPx:void 0,left:o?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},c=this.container?l():k(Ko,{onResize:this.handleContainerResize},{default:l});return i?k(st,null,c,s(this.themeClass,this.cssVars)):c}}),nc=US,jM=US,WM={height:"calc(var(--n-option-height) * 7.6)",paddingSmall:"4px 0",paddingMedium:"4px 0",paddingLarge:"4px 0",paddingHuge:"4px 0",optionPaddingSmall:"0 12px",optionPaddingMedium:"0 12px",optionPaddingLarge:"0 12px",optionPaddingHuge:"0 12px",loadingSize:"18px"},VS=e=>{const{borderRadius:t,popoverColor:r,textColor3:n,dividerColor:o,textColor2:i,primaryColorPressed:a,textColorDisabled:s,primaryColor:l,opacityDisabled:c,hoverColor:u,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:p,fontSizeHuge:h,heightSmall:g,heightMedium:v,heightLarge:m,heightHuge:b}=e;return Object.assign(Object.assign({},WM),{optionFontSizeSmall:d,optionFontSizeMedium:f,optionFontSizeLarge:p,optionFontSizeHuge:h,optionHeightSmall:g,optionHeightMedium:v,optionHeightLarge:m,optionHeightHuge:b,borderRadius:t,color:r,groupHeaderTextColor:n,actionDividerColor:o,optionTextColor:i,optionTextColorPressed:a,optionTextColorDisabled:s,optionTextColorActive:l,optionOpacityDisabled:c,optionCheckColor:l,optionColorPending:u,optionColorActive:"rgba(0, 0, 0, 0)",optionColorActivePending:u,actionTextColor:i,loadingColor:l})},UM={name:"InternalSelectMenu",common:ke,peers:{Scrollbar:jr,Empty:To},self:VS},oc=UM,VM={name:"InternalSelectMenu",common:Ae,peers:{Scrollbar:Xr,Empty:ra},self:VS},ic=VM,{cubicBezierEaseIn:c1,cubicBezierEaseOut:u1}=Eo;function qS({transformOrigin:e="inherit",duration:t=".2s",enterScale:r=".9",originalTransform:n="",originalTransition:o=""}={}){return[q("&.fade-in-scale-up-transition-leave-active",{transformOrigin:e,transition:`opacity ${t} ${c1}, transform ${t} ${c1} ${o&&","+o}`}),q("&.fade-in-scale-up-transition-enter-active",{transformOrigin:e,transition:`opacity ${t} ${u1}, transform ${t} ${u1} ${o&&","+o}`}),q("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to",{opacity:0,transform:`${n} scale(${r})`}),q("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to",{opacity:1,transform:`${n} scale(1)`})]}const qM=N("base-wave",`
|
||
position: absolute;
|
||
left: 0;
|
||
right: 0;
|
||
top: 0;
|
||
bottom: 0;
|
||
border-radius: inherit;
|
||
`),GM=me({name:"BaseWave",props:{clsPrefix:{type:String,required:!0}},setup(e){ea("-base-wave",qM,nt(e,"clsPrefix"));const t=z(null),r=z(!1);let n=null;return Kt(()=>{n!==null&&window.clearTimeout(n)}),{active:r,selfRef:t,play(){n!==null&&(window.clearTimeout(n),r.value=!1,n=null),zt(()=>{var o;(o=t.value)===null||o===void 0||o.offsetHeight,r.value=!0,n=window.setTimeout(()=>{r.value=!1,n=null},1e3)})}}},render(){const{clsPrefix:e}=this;return k("div",{ref:"selfRef","aria-hidden":!0,class:[`${e}-base-wave`,this.active&&`${e}-base-wave--active`]})}}),YM={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"},GS=e=>{const{boxShadow2:t,popoverColor:r,textColor2:n,borderRadius:o,fontSize:i,dividerColor:a}=e;return Object.assign(Object.assign({},YM),{fontSize:i,borderRadius:o,color:r,dividerColor:a,textColor:n,boxShadow:t})},KM={name:"Popover",common:ke,self:GS},ni=KM,XM={name:"Popover",common:Ae,self:GS},na=XM,Wf={top:"bottom",bottom:"top",left:"right",right:"left"},vr="var(--n-arrow-height) * 1.414",ZM=q([N("popover",`
|
||
transition:
|
||
box-shadow .3s var(--n-bezier),
|
||
background-color .3s var(--n-bezier),
|
||
color .3s var(--n-bezier);
|
||
position: relative;
|
||
font-size: var(--n-font-size);
|
||
color: var(--n-text-color);
|
||
box-shadow: var(--n-box-shadow);
|
||
word-break: break-word;
|
||
`,[q(">",[N("scrollbar",`
|
||
height: inherit;
|
||
max-height: inherit;
|
||
`)]),ir("raw",`
|
||
background-color: var(--n-color);
|
||
border-radius: var(--n-border-radius);
|
||
`,[ir("scrollable",[ir("show-header-or-footer","padding: var(--n-padding);")])]),Z("header",`
|
||
padding: var(--n-padding);
|
||
border-bottom: 1px solid var(--n-divider-color);
|
||
transition: border-color .3s var(--n-bezier);
|
||
`),Z("footer",`
|
||
padding: var(--n-padding);
|
||
border-top: 1px solid var(--n-divider-color);
|
||
transition: border-color .3s var(--n-bezier);
|
||
`),Q("scrollable, show-header-or-footer",[Z("content",`
|
||
padding: var(--n-padding);
|
||
`)])]),N("popover-shared",`
|
||
transform-origin: inherit;
|
||
`,[N("popover-arrow-wrapper",`
|
||
position: absolute;
|
||
overflow: hidden;
|
||
pointer-events: none;
|
||
`,[N("popover-arrow",`
|
||
transition: background-color .3s var(--n-bezier);
|
||
position: absolute;
|
||
display: block;
|
||
width: calc(${vr});
|
||
height: calc(${vr});
|
||
box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12);
|
||
transform: rotate(45deg);
|
||
background-color: var(--n-color);
|
||
pointer-events: all;
|
||
`)]),q("&.popover-transition-enter-from, &.popover-transition-leave-to",`
|
||
opacity: 0;
|
||
transform: scale(.85);
|
||
`),q("&.popover-transition-enter-to, &.popover-transition-leave-from",`
|
||
transform: scale(1);
|
||
opacity: 1;
|
||
`),q("&.popover-transition-enter-active",`
|
||
transition:
|
||
box-shadow .3s var(--n-bezier),
|
||
background-color .3s var(--n-bezier),
|
||
color .3s var(--n-bezier),
|
||
opacity .15s var(--n-bezier-ease-out),
|
||
transform .15s var(--n-bezier-ease-out);
|
||
`),q("&.popover-transition-leave-active",`
|
||
transition:
|
||
box-shadow .3s var(--n-bezier),
|
||
background-color .3s var(--n-bezier),
|
||
color .3s var(--n-bezier),
|
||
opacity .15s var(--n-bezier-ease-in),
|
||
transform .15s var(--n-bezier-ease-in);
|
||
`)]),un("top-start",`
|
||
top: calc(${vr} / -2);
|
||
left: calc(${io("top-start")} - var(--v-offset-left));
|
||
`),un("top",`
|
||
top: calc(${vr} / -2);
|
||
transform: translateX(calc(${vr} / -2)) rotate(45deg);
|
||
left: 50%;
|
||
`),un("top-end",`
|
||
top: calc(${vr} / -2);
|
||
right: calc(${io("top-end")} + var(--v-offset-left));
|
||
`),un("bottom-start",`
|
||
bottom: calc(${vr} / -2);
|
||
left: calc(${io("bottom-start")} - var(--v-offset-left));
|
||
`),un("bottom",`
|
||
bottom: calc(${vr} / -2);
|
||
transform: translateX(calc(${vr} / -2)) rotate(45deg);
|
||
left: 50%;
|
||
`),un("bottom-end",`
|
||
bottom: calc(${vr} / -2);
|
||
right: calc(${io("bottom-end")} + var(--v-offset-left));
|
||
`),un("left-start",`
|
||
left: calc(${vr} / -2);
|
||
top: calc(${io("left-start")} - var(--v-offset-top));
|
||
`),un("left",`
|
||
left: calc(${vr} / -2);
|
||
transform: translateY(calc(${vr} / -2)) rotate(45deg);
|
||
top: 50%;
|
||
`),un("left-end",`
|
||
left: calc(${vr} / -2);
|
||
bottom: calc(${io("left-end")} + var(--v-offset-top));
|
||
`),un("right-start",`
|
||
right: calc(${vr} / -2);
|
||
top: calc(${io("right-start")} - var(--v-offset-top));
|
||
`),un("right",`
|
||
right: calc(${vr} / -2);
|
||
transform: translateY(calc(${vr} / -2)) rotate(45deg);
|
||
top: 50%;
|
||
`),un("right-end",`
|
||
right: calc(${vr} / -2);
|
||
bottom: calc(${io("right-end")} + var(--v-offset-top));
|
||
`),...VR({top:["right-start","left-start"],right:["top-end","bottom-end"],bottom:["right-end","left-end"],left:["top-start","bottom-start"]},(e,t)=>{const r=["right","left"].includes(t),n=r?"width":"height";return e.map(o=>{const i=o.split("-")[1]==="end",s=`calc((${`var(--v-target-${n}, 0px)`} - ${vr}) / 2)`,l=io(o);return q(`[v-placement="${o}"] >`,[N("popover-shared",[Q("center-arrow",[N("popover-arrow",`${t}: calc(max(${s}, ${l}) ${i?"+":"-"} var(--v-offset-${r?"left":"top"}));`)])])])})})]);function io(e){return["top","bottom"].includes(e.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function un(e,t){const r=e.split("-")[0],n=["top","bottom"].includes(r)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return q(`[v-placement="${e}"] >`,[N("popover-shared",`
|
||
margin-${Wf[r]}: var(--n-space);
|
||
`,[Q("show-arrow",`
|
||
margin-${Wf[r]}: var(--n-space-arrow);
|
||
`),Q("overlap",`
|
||
margin: 0;
|
||
`),PA("popover-arrow-wrapper",`
|
||
right: 0;
|
||
left: 0;
|
||
top: 0;
|
||
bottom: 0;
|
||
${r}: 100%;
|
||
${Wf[r]}: auto;
|
||
${n}
|
||
`,[N("popover-arrow",t)])])])}const YS=Object.assign(Object.assign({},ze.props),{to:Ya.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}),QM=({arrowClass:e,arrowStyle:t,arrowWrapperClass:r,arrowWrapperStyle:n,clsPrefix:o})=>k("div",{key:"__popover-arrow__",style:n,class:[`${o}-popover-arrow-wrapper`,r]},k("div",{class:[`${o}-popover-arrow`,e],style:t})),JM=me({name:"PopoverBody",inheritAttrs:!1,props:YS,setup(e,{slots:t,attrs:r}){const{namespaceRef:n,mergedClsPrefixRef:o,inlineThemeDisabled:i}=ht(e),a=ze("Popover","-popover",ZM,ni,e,o),s=z(null),l=Me("NPopover"),c=z(null),u=z(e.show),d=z(!1);$r(()=>{const{show:S}=e;S&&!$A()&&!e.internalDeactivateImmediately&&(d.value=!0)});const f=R(()=>{const{trigger:S,onClickoutside:T}=e,P=[],{positionManuallyRef:{value:A}}=l;return A||(S==="click"&&!T&&P.push([kh,y,void 0,{capture:!0}]),S==="hover"&&P.push([iP,x])),T&&P.push([kh,y,void 0,{capture:!0}]),(e.displayDirective==="show"||e.animated&&d.value)&&P.push([Zo,e.show]),P}),p=R(()=>{const S=e.width==="trigger"?void 0:Li(e.width),T=[];S&&T.push({width:S});const{maxWidth:P,minWidth:A}=e;return P&&T.push({maxWidth:Li(P)}),A&&T.push({maxWidth:Li(A)}),i||T.push(h.value),T}),h=R(()=>{const{common:{cubicBezierEaseInOut:S,cubicBezierEaseIn:T,cubicBezierEaseOut:P},self:{space:A,spaceArrow:I,padding:B,fontSize:D,textColor:U,dividerColor:F,color:j,boxShadow:K,borderRadius:ae,arrowHeight:we,arrowOffset:Ce,arrowOffsetVertical:X}}=a.value;return{"--n-box-shadow":K,"--n-bezier":S,"--n-bezier-ease-in":T,"--n-bezier-ease-out":P,"--n-font-size":D,"--n-text-color":U,"--n-color":j,"--n-divider-color":F,"--n-border-radius":ae,"--n-arrow-height":we,"--n-arrow-offset":Ce,"--n-arrow-offset-vertical":X,"--n-padding":B,"--n-space":A,"--n-space-arrow":I}}),g=i?tr("popover",void 0,h,e):void 0;l.setBodyInstance({syncPosition:v}),Kt(()=>{l.setBodyInstance(null)}),Ye(nt(e,"show"),S=>{e.animated||(S?u.value=!0:u.value=!1)});function v(){var S;(S=s.value)===null||S===void 0||S.syncPosition()}function m(S){e.trigger==="hover"&&e.keepAliveOnHover&&e.show&&l.handleMouseEnter(S)}function b(S){e.trigger==="hover"&&e.keepAliveOnHover&&l.handleMouseLeave(S)}function x(S){e.trigger==="hover"&&!w().contains(Sl(S))&&l.handleMouseMoveOutside(S)}function y(S){(e.trigger==="click"&&!w().contains(Sl(S))||e.onClickoutside)&&l.handleClickOutside(S)}function w(){return l.getTriggerElement()}dt(vg,c),dt(mg,null),dt(gg,null);function C(){if(g==null||g.onRender(),!(e.displayDirective==="show"||e.show||e.animated&&d.value))return null;let T;const P=l.internalRenderBodyRef.value,{value:A}=o;if(P)T=P([`${A}-popover-shared`,g==null?void 0:g.themeClass.value,e.overlap&&`${A}-popover-shared--overlap`,e.showArrow&&`${A}-popover-shared--show-arrow`,e.arrowPointToCenter&&`${A}-popover-shared--center-arrow`],c,p.value,m,b);else{const{value:I}=l.extraClassRef,{internalTrapFocus:B}=e,D=!Sh(t.header)||!Sh(t.footer),U=()=>{var F,j;const K=D?k(st,null,Ft(t.header,Ce=>Ce?k("div",{class:[`${A}-popover__header`,e.headerClass],style:e.headerStyle},Ce):null),Ft(t.default,Ce=>Ce?k("div",{class:[`${A}-popover__content`,e.contentClass],style:e.contentStyle},t):null),Ft(t.footer,Ce=>Ce?k("div",{class:[`${A}-popover__footer`,e.footerClass],style:e.footerStyle},Ce):null)):e.scrollable?(F=t.default)===null||F===void 0?void 0:F.call(t):k("div",{class:[`${A}-popover__content`,e.contentClass],style:e.contentStyle},t),ae=e.scrollable?k(jM,{contentClass:D?void 0:`${A}-popover__content ${(j=e.contentClass)!==null&&j!==void 0?j:""}`,contentStyle:D?void 0:e.contentStyle},{default:()=>K}):K,we=e.showArrow?QM({arrowClass:e.arrowClass,arrowStyle:e.arrowStyle,arrowWrapperClass:e.arrowWrapperClass,arrowWrapperStyle:e.arrowWrapperStyle,clsPrefix:A}):null;return[ae,we]};T=k("div",Dn({class:[`${A}-popover`,`${A}-popover-shared`,g==null?void 0:g.themeClass.value,I.map(F=>`${A}-${F}`),{[`${A}-popover--scrollable`]:e.scrollable,[`${A}-popover--show-header-or-footer`]:D,[`${A}-popover--raw`]:e.raw,[`${A}-popover-shared--overlap`]:e.overlap,[`${A}-popover-shared--show-arrow`]:e.showArrow,[`${A}-popover-shared--center-arrow`]:e.arrowPointToCenter}],ref:c,style:p.value,onKeydown:l.handleKeydown,onMouseenter:m,onMouseleave:b},r),B?k(V2,{active:e.show,autoFocus:!0},{default:U}):U())}return bn(T,f.value)}return{displayed:d,namespace:n,isMounted:l.isMountedRef,zIndex:l.zIndexRef,followerRef:s,adjustedTo:Ya(e),followerEnabled:u,renderContentNode:C}},render(){return k(yP,{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===Ya.tdkey},{default:()=>this.animated?k(Fr,{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()})}}),e9=Object.keys(YS),t9={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function r9(e,t,r){t9[t].forEach(n=>{e.props?e.props=Object.assign({},e.props):e.props={};const o=e.props[n],i=r[n];o?e.props[n]=(...a)=>{o(...a),i(...a)}:e.props[n]=i})}const KS={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:Ya.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},n9=Object.assign(Object.assign(Object.assign({},ze.props),KS),{internalOnAfterLeave:Function,internalRenderBody:Function}),o9=me({name:"Popover",inheritAttrs:!1,props:n9,__popover__:!0,setup(e){const t=bs(),r=z(null),n=R(()=>e.show),o=z(e.defaultShow),i=vs(n,o),a=Rr(()=>e.disabled?!1:i.value),s=()=>{if(e.disabled)return!0;const{getDisabled:F}=e;return!!(F!=null&&F())},l=()=>s()?!1:i.value,c=Fu(e,["arrow","showArrow"]),u=R(()=>e.overlap?!1:c.value);let d=null;const f=z(null),p=z(null),h=Rr(()=>e.x!==void 0&&e.y!==void 0);function g(F){const{"onUpdate:show":j,onUpdateShow:K,onShow:ae,onHide:we}=e;o.value=F,j&&at(j,F),K&&at(K,F),F&&ae&&at(ae,!0),F&&we&&at(we,!1)}function v(){d&&d.syncPosition()}function m(){const{value:F}=f;F&&(window.clearTimeout(F),f.value=null)}function b(){const{value:F}=p;F&&(window.clearTimeout(F),p.value=null)}function x(){const F=s();if(e.trigger==="focus"&&!F){if(l())return;g(!0)}}function y(){const F=s();if(e.trigger==="focus"&&!F){if(!l())return;g(!1)}}function w(){const F=s();if(e.trigger==="hover"&&!F){if(b(),f.value!==null||l())return;const j=()=>{g(!0),f.value=null},{delay:K}=e;K===0?j():f.value=window.setTimeout(j,K)}}function C(){const F=s();if(e.trigger==="hover"&&!F){if(m(),p.value!==null||!l())return;const j=()=>{g(!1),p.value=null},{duration:K}=e;K===0?j():p.value=window.setTimeout(j,K)}}function S(){C()}function T(F){var j;l()&&(e.trigger==="click"&&(m(),b(),g(!1)),(j=e.onClickoutside)===null||j===void 0||j.call(e,F))}function P(){if(e.trigger==="click"&&!s()){m(),b();const F=!l();g(F)}}function A(F){e.internalTrapFocus&&F.key==="Escape"&&(m(),b(),g(!1))}function I(F){o.value=F}function B(){var F;return(F=r.value)===null||F===void 0?void 0:F.targetRef}function D(F){d=F}return dt("NPopover",{getTriggerElement:B,handleKeydown:A,handleMouseEnter:w,handleMouseLeave:C,handleClickOutside:T,handleMouseMoveOutside:S,setBodyInstance:D,positionManuallyRef:h,isMountedRef:t,zIndexRef:nt(e,"zIndex"),extraClassRef:nt(e,"internalExtraClass"),internalRenderBodyRef:nt(e,"internalRenderBody")}),$r(()=>{i.value&&s()&&g(!1)}),{binderInstRef:r,positionManually:h,mergedShowConsideringDisabledProp:a,uncontrolledShow:o,mergedShowArrow:u,getMergedShow:l,setShow:I,handleClick:P,handleMouseEnter:w,handleMouseLeave:C,handleFocus:x,handleBlur:y,syncPosition:v}},render(){var e;const{positionManually:t,$slots:r}=this;let n,o=!1;if(!t&&(r.activator?n=wh(r,"activator"):n=wh(r,"trigger"),n)){n=on(n),n=n.type===hs?k("span",[n]):n;const i={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(!((e=n.type)===null||e===void 0)&&e.__popover__)o=!0,n.props||(n.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),n.props.internalSyncTargetWithParent=!0,n.props.internalInheritedEventHandlers?n.props.internalInheritedEventHandlers=[i,...n.props.internalInheritedEventHandlers]:n.props.internalInheritedEventHandlers=[i];else{const{internalInheritedEventHandlers:a}=this,s=[i,...a],l={onBlur:c=>{s.forEach(u=>{u.onBlur(c)})},onFocus:c=>{s.forEach(u=>{u.onFocus(c)})},onClick:c=>{s.forEach(u=>{u.onClick(c)})},onMouseenter:c=>{s.forEach(u=>{u.onMouseenter(c)})},onMouseleave:c=>{s.forEach(u=>{u.onMouseleave(c)})}};r9(n,a?"nested":t?"manual":this.trigger,l)}}return k(rP,{ref:"binderInstRef",syncTarget:!o,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const i=this.getMergedShow();return[this.internalTrapFocus&&i?bn(k("div",{style:{position:"fixed",inset:0}}),[[_d,{enabled:i,zIndex:this.zIndex}]]):null,t?null:k(nP,null,{default:()=>n}),k(JM,qa(this.$props,e9,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)}})]}})}}),XS={closeIconSizeTiny:"12px",closeIconSizeSmall:"12px",closeIconSizeMedium:"14px",closeIconSizeLarge:"14px",closeSizeTiny:"16px",closeSizeSmall:"16px",closeSizeMedium:"18px",closeSizeLarge:"18px",padding:"0 7px",closeMargin:"0 0 0 4px"},i9={name:"Tag",common:Ae,self(e){const{textColor2:t,primaryColorHover:r,primaryColorPressed:n,primaryColor:o,infoColor:i,successColor:a,warningColor:s,errorColor:l,baseColor:c,borderColor:u,tagColor:d,opacityDisabled:f,closeIconColor:p,closeIconColorHover:h,closeIconColorPressed:g,closeColorHover:v,closeColorPressed:m,borderRadiusSmall:b,fontSizeMini:x,fontSizeTiny:y,fontSizeSmall:w,fontSizeMedium:C,heightMini:S,heightTiny:T,heightSmall:P,heightMedium:A,buttonColor2Hover:I,buttonColor2Pressed:B,fontWeightStrong:D}=e;return Object.assign(Object.assign({},XS),{closeBorderRadius:b,heightTiny:S,heightSmall:T,heightMedium:P,heightLarge:A,borderRadius:b,opacityDisabled:f,fontSizeTiny:x,fontSizeSmall:y,fontSizeMedium:w,fontSizeLarge:C,fontWeightStrong:D,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:c,colorCheckable:"#0000",colorHoverCheckable:I,colorPressedCheckable:B,colorChecked:o,colorCheckedHover:r,colorCheckedPressed:n,border:`1px solid ${u}`,textColor:t,color:d,colorBordered:"#0000",closeIconColor:p,closeIconColorHover:h,closeIconColorPressed:g,closeColorHover:v,closeColorPressed:m,borderPrimary:`1px solid ${fe(o,{alpha:.3})}`,textColorPrimary:o,colorPrimary:fe(o,{alpha:.16}),colorBorderedPrimary:"#0000",closeIconColorPrimary:lr(o,{lightness:.7}),closeIconColorHoverPrimary:lr(o,{lightness:.7}),closeIconColorPressedPrimary:lr(o,{lightness:.7}),closeColorHoverPrimary:fe(o,{alpha:.16}),closeColorPressedPrimary:fe(o,{alpha:.12}),borderInfo:`1px solid ${fe(i,{alpha:.3})}`,textColorInfo:i,colorInfo:fe(i,{alpha:.16}),colorBorderedInfo:"#0000",closeIconColorInfo:lr(i,{alpha:.7}),closeIconColorHoverInfo:lr(i,{alpha:.7}),closeIconColorPressedInfo:lr(i,{alpha:.7}),closeColorHoverInfo:fe(i,{alpha:.16}),closeColorPressedInfo:fe(i,{alpha:.12}),borderSuccess:`1px solid ${fe(a,{alpha:.3})}`,textColorSuccess:a,colorSuccess:fe(a,{alpha:.16}),colorBorderedSuccess:"#0000",closeIconColorSuccess:lr(a,{alpha:.7}),closeIconColorHoverSuccess:lr(a,{alpha:.7}),closeIconColorPressedSuccess:lr(a,{alpha:.7}),closeColorHoverSuccess:fe(a,{alpha:.16}),closeColorPressedSuccess:fe(a,{alpha:.12}),borderWarning:`1px solid ${fe(s,{alpha:.3})}`,textColorWarning:s,colorWarning:fe(s,{alpha:.16}),colorBorderedWarning:"#0000",closeIconColorWarning:lr(s,{alpha:.7}),closeIconColorHoverWarning:lr(s,{alpha:.7}),closeIconColorPressedWarning:lr(s,{alpha:.7}),closeColorHoverWarning:fe(s,{alpha:.16}),closeColorPressedWarning:fe(s,{alpha:.11}),borderError:`1px solid ${fe(l,{alpha:.3})}`,textColorError:l,colorError:fe(l,{alpha:.16}),colorBorderedError:"#0000",closeIconColorError:lr(l,{alpha:.7}),closeIconColorHoverError:lr(l,{alpha:.7}),closeIconColorPressedError:lr(l,{alpha:.7}),closeColorHoverError:fe(l,{alpha:.16}),closeColorPressedError:fe(l,{alpha:.12})})}},ZS=i9,a9=e=>{const{textColor2:t,primaryColorHover:r,primaryColorPressed:n,primaryColor:o,infoColor:i,successColor:a,warningColor:s,errorColor:l,baseColor:c,borderColor:u,opacityDisabled:d,tagColor:f,closeIconColor:p,closeIconColorHover:h,closeIconColorPressed:g,borderRadiusSmall:v,fontSizeMini:m,fontSizeTiny:b,fontSizeSmall:x,fontSizeMedium:y,heightMini:w,heightTiny:C,heightSmall:S,heightMedium:T,closeColorHover:P,closeColorPressed:A,buttonColor2Hover:I,buttonColor2Pressed:B,fontWeightStrong:D}=e;return Object.assign(Object.assign({},XS),{closeBorderRadius:v,heightTiny:w,heightSmall:C,heightMedium:S,heightLarge:T,borderRadius:v,opacityDisabled:d,fontSizeTiny:m,fontSizeSmall:b,fontSizeMedium:x,fontSizeLarge:y,fontWeightStrong:D,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:c,colorCheckable:"#0000",colorHoverCheckable:I,colorPressedCheckable:B,colorChecked:o,colorCheckedHover:r,colorCheckedPressed:n,border:`1px solid ${u}`,textColor:t,color:f,colorBordered:"rgb(250, 250, 252)",closeIconColor:p,closeIconColorHover:h,closeIconColorPressed:g,closeColorHover:P,closeColorPressed:A,borderPrimary:`1px solid ${fe(o,{alpha:.3})}`,textColorPrimary:o,colorPrimary:fe(o,{alpha:.12}),colorBorderedPrimary:fe(o,{alpha:.1}),closeIconColorPrimary:o,closeIconColorHoverPrimary:o,closeIconColorPressedPrimary:o,closeColorHoverPrimary:fe(o,{alpha:.12}),closeColorPressedPrimary:fe(o,{alpha:.18}),borderInfo:`1px solid ${fe(i,{alpha:.3})}`,textColorInfo:i,colorInfo:fe(i,{alpha:.12}),colorBorderedInfo:fe(i,{alpha:.1}),closeIconColorInfo:i,closeIconColorHoverInfo:i,closeIconColorPressedInfo:i,closeColorHoverInfo:fe(i,{alpha:.12}),closeColorPressedInfo:fe(i,{alpha:.18}),borderSuccess:`1px solid ${fe(a,{alpha:.3})}`,textColorSuccess:a,colorSuccess:fe(a,{alpha:.12}),colorBorderedSuccess:fe(a,{alpha:.1}),closeIconColorSuccess:a,closeIconColorHoverSuccess:a,closeIconColorPressedSuccess:a,closeColorHoverSuccess:fe(a,{alpha:.12}),closeColorPressedSuccess:fe(a,{alpha:.18}),borderWarning:`1px solid ${fe(s,{alpha:.35})}`,textColorWarning:s,colorWarning:fe(s,{alpha:.15}),colorBorderedWarning:fe(s,{alpha:.12}),closeIconColorWarning:s,closeIconColorHoverWarning:s,closeIconColorPressedWarning:s,closeColorHoverWarning:fe(s,{alpha:.12}),closeColorPressedWarning:fe(s,{alpha:.18}),borderError:`1px solid ${fe(l,{alpha:.23})}`,textColorError:l,colorError:fe(l,{alpha:.1}),colorBorderedError:fe(l,{alpha:.08}),closeIconColorError:l,closeIconColorHoverError:l,closeIconColorPressedError:l,closeColorHoverError:fe(l,{alpha:.12}),closeColorPressedError:fe(l,{alpha:.18})})},s9={name:"Tag",common:ke,self:a9},Rg=s9,l9={color:Object,type:{type:String,default:"default"},round:Boolean,size:{type:String,default:"medium"},closable:Boolean,disabled:{type:Boolean,default:void 0}},c9=N("tag",`
|
||
--n-close-margin: var(--n-close-margin-top) var(--n-close-margin-right) var(--n-close-margin-bottom) var(--n-close-margin-left);
|
||
white-space: nowrap;
|
||
position: relative;
|
||
box-sizing: border-box;
|
||
cursor: default;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
flex-wrap: nowrap;
|
||
padding: var(--n-padding);
|
||
border-radius: var(--n-border-radius);
|
||
color: var(--n-text-color);
|
||
background-color: var(--n-color);
|
||
transition:
|
||
border-color .3s var(--n-bezier),
|
||
background-color .3s var(--n-bezier),
|
||
color .3s var(--n-bezier),
|
||
box-shadow .3s var(--n-bezier),
|
||
opacity .3s var(--n-bezier);
|
||
line-height: 1;
|
||
height: var(--n-height);
|
||
font-size: var(--n-font-size);
|
||
`,[Q("strong",`
|
||
font-weight: var(--n-font-weight-strong);
|
||
`),Z("border",`
|
||
pointer-events: none;
|
||
position: absolute;
|
||
left: 0;
|
||
right: 0;
|
||
top: 0;
|
||
bottom: 0;
|
||
border-radius: inherit;
|
||
border: var(--n-border);
|
||
transition: border-color .3s var(--n-bezier);
|
||
`),Z("icon",`
|
||
display: flex;
|
||
margin: 0 4px 0 0;
|
||
color: var(--n-text-color);
|
||
transition: color .3s var(--n-bezier);
|
||
font-size: var(--n-avatar-size-override);
|
||
`),Z("avatar",`
|
||
display: flex;
|
||
margin: 0 6px 0 0;
|
||
`),Z("close",`
|
||
margin: var(--n-close-margin);
|
||
transition:
|
||
background-color .3s var(--n-bezier),
|
||
color .3s var(--n-bezier);
|
||
`),Q("round",`
|
||
padding: 0 calc(var(--n-height) / 3);
|
||
border-radius: calc(var(--n-height) / 2);
|
||
`,[Z("icon",`
|
||
margin: 0 4px 0 calc((var(--n-height) - 8px) / -2);
|
||
`),Z("avatar",`
|
||
margin: 0 6px 0 calc((var(--n-height) - 8px) / -2);
|
||
`),Q("closable",`
|
||
padding: 0 calc(var(--n-height) / 4) 0 calc(var(--n-height) / 3);
|
||
`)]),Q("icon, avatar",[Q("round",`
|
||
padding: 0 calc(var(--n-height) / 3) 0 calc(var(--n-height) / 2);
|
||
`)]),Q("disabled",`
|
||
cursor: not-allowed !important;
|
||
opacity: var(--n-opacity-disabled);
|
||
`),Q("checkable",`
|
||
cursor: pointer;
|
||
box-shadow: none;
|
||
color: var(--n-text-color-checkable);
|
||
background-color: var(--n-color-checkable);
|
||
`,[ir("disabled",[q("&:hover","background-color: var(--n-color-hover-checkable);",[ir("checked","color: var(--n-text-color-hover-checkable);")]),q("&:active","background-color: var(--n-color-pressed-checkable);",[ir("checked","color: var(--n-text-color-pressed-checkable);")])]),Q("checked",`
|
||
color: var(--n-text-color-checked);
|
||
background-color: var(--n-color-checked);
|
||
`,[ir("disabled",[q("&:hover","background-color: var(--n-color-checked-hover);"),q("&:active","background-color: var(--n-color-checked-pressed);")])])])]),u9=Object.assign(Object.assign(Object.assign({},ze.props),l9),{bordered:{type:Boolean,default:void 0},checked:Boolean,checkable:Boolean,strong:Boolean,triggerClickOnClose:Boolean,onClose:[Array,Function],onMouseenter:Function,onMouseleave:Function,"onUpdate:checked":Function,onUpdateChecked:Function,internalCloseFocusable:{type:Boolean,default:!0},internalCloseIsButtonTag:{type:Boolean,default:!0},onCheckedChange:Function}),QS="n-tag",Wde=me({name:"Tag",props:u9,setup(e){const t=z(null),{mergedBorderedRef:r,mergedClsPrefixRef:n,inlineThemeDisabled:o,mergedRtlRef:i}=ht(e),a=ze("Tag","-tag",c9,Rg,e,n);dt(QS,{roundRef:nt(e,"round")});function s(p){if(!e.disabled&&e.checkable){const{checked:h,onCheckedChange:g,onUpdateChecked:v,"onUpdate:checked":m}=e;v&&v(!h),m&&m(!h),g&&g(!h)}}function l(p){if(e.triggerClickOnClose||p.stopPropagation(),!e.disabled){const{onClose:h}=e;h&&at(h,p)}}const c={setTextContent(p){const{value:h}=t;h&&(h.textContent=p)}},u=an("Tag",i,n),d=R(()=>{const{type:p,size:h,color:{color:g,textColor:v}={}}=e,{common:{cubicBezierEaseInOut:m},self:{padding:b,closeMargin:x,borderRadius:y,opacityDisabled:w,textColorCheckable:C,textColorHoverCheckable:S,textColorPressedCheckable:T,textColorChecked:P,colorCheckable:A,colorHoverCheckable:I,colorPressedCheckable:B,colorChecked:D,colorCheckedHover:U,colorCheckedPressed:F,closeBorderRadius:j,fontWeightStrong:K,[ye("colorBordered",p)]:ae,[ye("closeSize",h)]:we,[ye("closeIconSize",h)]:Ce,[ye("fontSize",h)]:X,[ye("height",h)]:re,[ye("color",p)]:le,[ye("textColor",p)]:ne,[ye("border",p)]:$e,[ye("closeIconColor",p)]:Se,[ye("closeIconColorHover",p)]:ee,[ye("closeIconColorPressed",p)]:se,[ye("closeColorHover",p)]:ce,[ye("closeColorPressed",p)]:xe}}=a.value,Te=Yn(x);return{"--n-font-weight-strong":K,"--n-avatar-size-override":`calc(${re} - 8px)`,"--n-bezier":m,"--n-border-radius":y,"--n-border":$e,"--n-close-icon-size":Ce,"--n-close-color-pressed":xe,"--n-close-color-hover":ce,"--n-close-border-radius":j,"--n-close-icon-color":Se,"--n-close-icon-color-hover":ee,"--n-close-icon-color-pressed":se,"--n-close-icon-color-disabled":Se,"--n-close-margin-top":Te.top,"--n-close-margin-right":Te.right,"--n-close-margin-bottom":Te.bottom,"--n-close-margin-left":Te.left,"--n-close-size":we,"--n-color":g||(r.value?ae:le),"--n-color-checkable":A,"--n-color-checked":D,"--n-color-checked-hover":U,"--n-color-checked-pressed":F,"--n-color-hover-checkable":I,"--n-color-pressed-checkable":B,"--n-font-size":X,"--n-height":re,"--n-opacity-disabled":w,"--n-padding":b,"--n-text-color":v||ne,"--n-text-color-checkable":C,"--n-text-color-checked":P,"--n-text-color-hover-checkable":S,"--n-text-color-pressed-checkable":T}}),f=o?tr("tag",R(()=>{let p="";const{type:h,size:g,color:{color:v,textColor:m}={}}=e;return p+=h[0],p+=g[0],v&&(p+=`a${_l(v)}`),m&&(p+=`b${_l(m)}`),r.value&&(p+="c"),p}),d,e):void 0;return Object.assign(Object.assign({},c),{rtlEnabled:u,mergedClsPrefix:n,contentRef:t,mergedBordered:r,handleClick:s,handleCloseClick:l,cssVars:o?void 0:d,themeClass:f==null?void 0:f.themeClass,onRender:f==null?void 0:f.onRender})},render(){var e,t;const{mergedClsPrefix:r,rtlEnabled:n,closable:o,color:{borderColor:i}={},round:a,onRender:s,$slots:l}=this;s==null||s();const c=Ft(l.avatar,d=>d&&k("div",{class:`${r}-tag__avatar`},d)),u=Ft(l.icon,d=>d&&k("div",{class:`${r}-tag__icon`},d));return k("div",{class:[`${r}-tag`,this.themeClass,{[`${r}-tag--rtl`]:n,[`${r}-tag--strong`]:this.strong,[`${r}-tag--disabled`]:this.disabled,[`${r}-tag--checkable`]:this.checkable,[`${r}-tag--checked`]:this.checkable&&this.checked,[`${r}-tag--round`]:a,[`${r}-tag--avatar`]:c,[`${r}-tag--icon`]:u,[`${r}-tag--closable`]:o}],style:this.cssVars,onClick:this.handleClick,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},u||c,k("span",{class:`${r}-tag__content`,ref:"contentRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)),!this.checkable&&o?k(ta,{clsPrefix:r,class:`${r}-tag__close`,disabled:this.disabled,onClick:this.handleCloseClick,focusable:this.internalCloseFocusable,round:a,isButtonTag:this.internalCloseIsButtonTag,absolute:!0}):null,!this.checkable&&this.mergedBordered?k("div",{class:`${r}-tag__border`,style:{borderColor:i}}):null)}}),d9=N("base-clear",`
|
||
flex-shrink: 0;
|
||
height: 1em;
|
||
width: 1em;
|
||
position: relative;
|
||
`,[q(">",[Z("clear",`
|
||
font-size: var(--n-clear-size);
|
||
height: 1em;
|
||
width: 1em;
|
||
cursor: pointer;
|
||
color: var(--n-clear-color);
|
||
transition: color .3s var(--n-bezier);
|
||
display: flex;
|
||
`,[q("&:hover",`
|
||
color: var(--n-clear-color-hover)!important;
|
||
`),q("&:active",`
|
||
color: var(--n-clear-color-pressed)!important;
|
||
`)]),Z("placeholder",`
|
||
display: flex;
|
||
`),Z("clear, placeholder",`
|
||
position: absolute;
|
||
left: 50%;
|
||
top: 50%;
|
||
transform: translateX(-50%) translateY(-50%);
|
||
`,[Bl({originalTransform:"translateX(-50%) translateY(-50%)",left:"50%",top:"50%"})])])]),zh=me({name:"BaseClear",props:{clsPrefix:{type:String,required:!0},show:Boolean,onClear:Function},setup(e){return ea("-base-clear",d9,nt(e,"clsPrefix")),{handleMouseDown(t){t.preventDefault()}}},render(){const{clsPrefix:e}=this;return k("div",{class:`${e}-base-clear`},k(Bd,null,{default:()=>{var t,r;return this.show?k("div",{key:"dismiss",class:`${e}-base-clear__clear`,onClick:this.onClear,onMousedown:this.handleMouseDown,"data-clear":!0},go(this.$slots.icon,()=>[k(or,{clsPrefix:e},{default:()=>k(vM,null)})])):k("div",{key:"icon",class:`${e}-base-clear__placeholder`},(r=(t=this.$slots).placeholder)===null||r===void 0?void 0:r.call(t))}}))}}),f9=me({name:"InternalSelectionSuffix",props:{clsPrefix:{type:String,required:!0},showArrow:{type:Boolean,default:void 0},showClear:{type:Boolean,default:void 0},loading:{type:Boolean,default:!1},onClear:Function},setup(e,{slots:t}){return()=>{const{clsPrefix:r}=e;return k(Dd,{clsPrefix:r,class:`${r}-base-suffix`,strokeWidth:24,scale:.85,show:e.loading},{default:()=>e.showArrow?k(zh,{clsPrefix:r,show:e.showClear,onClear:e.onClear},{placeholder:()=>k(or,{clsPrefix:r,class:`${r}-base-suffix__arrow`},{default:()=>go(t.default,()=>[k(mM,null)])})}):null})}}}),JS={paddingSingle:"0 26px 0 12px",paddingMultiple:"3px 26px 0 12px",clearSize:"16px",arrowSize:"16px"},h9=e=>{const{borderRadius:t,textColor2:r,textColorDisabled:n,inputColor:o,inputColorDisabled:i,primaryColor:a,primaryColorHover:s,warningColor:l,warningColorHover:c,errorColor:u,errorColorHover:d,borderColor:f,iconColor:p,iconColorDisabled:h,clearColor:g,clearColorHover:v,clearColorPressed:m,placeholderColor:b,placeholderColorDisabled:x,fontSizeTiny:y,fontSizeSmall:w,fontSizeMedium:C,fontSizeLarge:S,heightTiny:T,heightSmall:P,heightMedium:A,heightLarge:I}=e;return Object.assign(Object.assign({},JS),{fontSizeTiny:y,fontSizeSmall:w,fontSizeMedium:C,fontSizeLarge:S,heightTiny:T,heightSmall:P,heightMedium:A,heightLarge:I,borderRadius:t,textColor:r,textColorDisabled:n,placeholderColor:b,placeholderColorDisabled:x,color:o,colorDisabled:i,colorActive:o,border:`1px solid ${f}`,borderHover:`1px solid ${s}`,borderActive:`1px solid ${a}`,borderFocus:`1px solid ${s}`,boxShadowHover:"none",boxShadowActive:`0 0 0 2px ${fe(a,{alpha:.2})}`,boxShadowFocus:`0 0 0 2px ${fe(a,{alpha:.2})}`,caretColor:a,arrowColor:p,arrowColorDisabled:h,loadingColor:a,borderWarning:`1px solid ${l}`,borderHoverWarning:`1px solid ${c}`,borderActiveWarning:`1px solid ${l}`,borderFocusWarning:`1px solid ${c}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 0 2px ${fe(l,{alpha:.2})}`,boxShadowFocusWarning:`0 0 0 2px ${fe(l,{alpha:.2})}`,colorActiveWarning:o,caretColorWarning:l,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${d}`,borderActiveError:`1px solid ${u}`,borderFocusError:`1px solid ${d}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 0 2px ${fe(u,{alpha:.2})}`,boxShadowFocusError:`0 0 0 2px ${fe(u,{alpha:.2})}`,colorActiveError:o,caretColorError:u,clearColor:g,clearColorHover:v,clearColorPressed:m})},p9={name:"InternalSelection",common:ke,peers:{Popover:ni},self:h9},Lg=p9,g9={name:"InternalSelection",common:Ae,peers:{Popover:na},self(e){const{borderRadius:t,textColor2:r,textColorDisabled:n,inputColor:o,inputColorDisabled:i,primaryColor:a,primaryColorHover:s,warningColor:l,warningColorHover:c,errorColor:u,errorColorHover:d,iconColor:f,iconColorDisabled:p,clearColor:h,clearColorHover:g,clearColorPressed:v,placeholderColor:m,placeholderColorDisabled:b,fontSizeTiny:x,fontSizeSmall:y,fontSizeMedium:w,fontSizeLarge:C,heightTiny:S,heightSmall:T,heightMedium:P,heightLarge:A}=e;return Object.assign(Object.assign({},JS),{fontSizeTiny:x,fontSizeSmall:y,fontSizeMedium:w,fontSizeLarge:C,heightTiny:S,heightSmall:T,heightMedium:P,heightLarge:A,borderRadius:t,textColor:r,textColorDisabled:n,placeholderColor:m,placeholderColorDisabled:b,color:o,colorDisabled:i,colorActive:fe(a,{alpha:.1}),border:"1px solid #0000",borderHover:`1px solid ${s}`,borderActive:`1px solid ${a}`,borderFocus:`1px solid ${s}`,boxShadowHover:"none",boxShadowActive:`0 0 8px 0 ${fe(a,{alpha:.4})}`,boxShadowFocus:`0 0 8px 0 ${fe(a,{alpha:.4})}`,caretColor:a,arrowColor:f,arrowColorDisabled:p,loadingColor:a,borderWarning:`1px solid ${l}`,borderHoverWarning:`1px solid ${c}`,borderActiveWarning:`1px solid ${l}`,borderFocusWarning:`1px solid ${c}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 8px 0 ${fe(l,{alpha:.4})}`,boxShadowFocusWarning:`0 0 8px 0 ${fe(l,{alpha:.4})}`,colorActiveWarning:fe(l,{alpha:.1}),caretColorWarning:l,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${d}`,borderActiveError:`1px solid ${u}`,borderFocusError:`1px solid ${d}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 8px 0 ${fe(u,{alpha:.4})}`,boxShadowFocusError:`0 0 8px 0 ${fe(u,{alpha:.4})}`,colorActiveError:fe(u,{alpha:.1}),caretColorError:u,clearColor:h,clearColorHover:g,clearColorPressed:v})}},Fg=g9,{cubicBezierEaseInOut:Bo}=Eo;function m9({duration:e=".2s",delay:t=".1s"}={}){return[q("&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to",{opacity:1}),q("&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from",`
|
||
opacity: 0!important;
|
||
margin-left: 0!important;
|
||
margin-right: 0!important;
|
||
`),q("&.fade-in-width-expand-transition-leave-active",`
|
||
overflow: hidden;
|
||
transition:
|
||
opacity ${e} ${Bo},
|
||
max-width ${e} ${Bo} ${t},
|
||
margin-left ${e} ${Bo} ${t},
|
||
margin-right ${e} ${Bo} ${t};
|
||
`),q("&.fade-in-width-expand-transition-enter-active",`
|
||
overflow: hidden;
|
||
transition:
|
||
opacity ${e} ${Bo} ${t},
|
||
max-width ${e} ${Bo},
|
||
margin-left ${e} ${Bo},
|
||
margin-right ${e} ${Bo};
|
||
`)]}const e_={iconMargin:"11px 8px 0 12px",iconMarginRtl:"11px 12px 0 8px",iconSize:"24px",closeIconSize:"16px",closeSize:"20px",closeMargin:"13px 14px 0 0",closeMarginRtl:"13px 0 0 14px",padding:"13px"},v9={name:"Alert",common:Ae,self(e){const{lineHeight:t,borderRadius:r,fontWeightStrong:n,dividerColor:o,inputColor:i,textColor1:a,textColor2:s,closeColorHover:l,closeColorPressed:c,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,infoColorSuppl:p,successColorSuppl:h,warningColorSuppl:g,errorColorSuppl:v,fontSize:m}=e;return Object.assign(Object.assign({},e_),{fontSize:m,lineHeight:t,titleFontWeight:n,borderRadius:r,border:`1px solid ${o}`,color:i,titleTextColor:a,iconColor:s,contentTextColor:s,closeBorderRadius:r,closeColorHover:l,closeColorPressed:c,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,borderInfo:`1px solid ${fe(p,{alpha:.35})}`,colorInfo:fe(p,{alpha:.25}),titleTextColorInfo:a,iconColorInfo:p,contentTextColorInfo:s,closeColorHoverInfo:l,closeColorPressedInfo:c,closeIconColorInfo:u,closeIconColorHoverInfo:d,closeIconColorPressedInfo:f,borderSuccess:`1px solid ${fe(h,{alpha:.35})}`,colorSuccess:fe(h,{alpha:.25}),titleTextColorSuccess:a,iconColorSuccess:h,contentTextColorSuccess:s,closeColorHoverSuccess:l,closeColorPressedSuccess:c,closeIconColorSuccess:u,closeIconColorHoverSuccess:d,closeIconColorPressedSuccess:f,borderWarning:`1px solid ${fe(g,{alpha:.35})}`,colorWarning:fe(g,{alpha:.25}),titleTextColorWarning:a,iconColorWarning:g,contentTextColorWarning:s,closeColorHoverWarning:l,closeColorPressedWarning:c,closeIconColorWarning:u,closeIconColorHoverWarning:d,closeIconColorPressedWarning:f,borderError:`1px solid ${fe(v,{alpha:.35})}`,colorError:fe(v,{alpha:.25}),titleTextColorError:a,iconColorError:v,contentTextColorError:s,closeColorHoverError:l,closeColorPressedError:c,closeIconColorError:u,closeIconColorHoverError:d,closeIconColorPressedError:f})}},b9=v9,x9=e=>{const{lineHeight:t,borderRadius:r,fontWeightStrong:n,baseColor:o,dividerColor:i,actionColor:a,textColor1:s,textColor2:l,closeColorHover:c,closeColorPressed:u,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:p,infoColor:h,successColor:g,warningColor:v,errorColor:m,fontSize:b}=e;return Object.assign(Object.assign({},e_),{fontSize:b,lineHeight:t,titleFontWeight:n,borderRadius:r,border:`1px solid ${i}`,color:a,titleTextColor:s,iconColor:l,contentTextColor:l,closeBorderRadius:r,closeColorHover:c,closeColorPressed:u,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:p,borderInfo:`1px solid ${Oe(o,fe(h,{alpha:.25}))}`,colorInfo:Oe(o,fe(h,{alpha:.08})),titleTextColorInfo:s,iconColorInfo:h,contentTextColorInfo:l,closeColorHoverInfo:c,closeColorPressedInfo:u,closeIconColorInfo:d,closeIconColorHoverInfo:f,closeIconColorPressedInfo:p,borderSuccess:`1px solid ${Oe(o,fe(g,{alpha:.25}))}`,colorSuccess:Oe(o,fe(g,{alpha:.08})),titleTextColorSuccess:s,iconColorSuccess:g,contentTextColorSuccess:l,closeColorHoverSuccess:c,closeColorPressedSuccess:u,closeIconColorSuccess:d,closeIconColorHoverSuccess:f,closeIconColorPressedSuccess:p,borderWarning:`1px solid ${Oe(o,fe(v,{alpha:.33}))}`,colorWarning:Oe(o,fe(v,{alpha:.08})),titleTextColorWarning:s,iconColorWarning:v,contentTextColorWarning:l,closeColorHoverWarning:c,closeColorPressedWarning:u,closeIconColorWarning:d,closeIconColorHoverWarning:f,closeIconColorPressedWarning:p,borderError:`1px solid ${Oe(o,fe(m,{alpha:.25}))}`,colorError:Oe(o,fe(m,{alpha:.08})),titleTextColorError:s,iconColorError:m,contentTextColorError:l,closeColorHoverError:c,closeColorPressedError:u,closeIconColorError:d,closeIconColorHoverError:f,closeIconColorPressedError:p})},y9={name:"Alert",common:ke,self:x9},t_=y9,{cubicBezierEaseInOut:Nn,cubicBezierEaseOut:C9,cubicBezierEaseIn:w9}=Eo;function r_({overflow:e="hidden",duration:t=".3s",originalTransition:r="",leavingDelay:n="0s",foldPadding:o=!1,enterToProps:i=void 0,leaveToProps:a=void 0,reverse:s=!1}={}){const l=s?"leave":"enter",c=s?"enter":"leave";return[q(`&.fade-in-height-expand-transition-${c}-from,
|
||
&.fade-in-height-expand-transition-${l}-to`,Object.assign(Object.assign({},i),{opacity:1})),q(`&.fade-in-height-expand-transition-${c}-to,
|
||
&.fade-in-height-expand-transition-${l}-from`,Object.assign(Object.assign({},a),{opacity:0,marginTop:"0 !important",marginBottom:"0 !important",paddingTop:o?"0 !important":void 0,paddingBottom:o?"0 !important":void 0})),q(`&.fade-in-height-expand-transition-${c}-active`,`
|
||
overflow: ${e};
|
||
transition:
|
||
max-height ${t} ${Nn} ${n},
|
||
opacity ${t} ${C9} ${n},
|
||
margin-top ${t} ${Nn} ${n},
|
||
margin-bottom ${t} ${Nn} ${n},
|
||
padding-top ${t} ${Nn} ${n},
|
||
padding-bottom ${t} ${Nn} ${n}
|
||
${r?","+r:""}
|
||
`),q(`&.fade-in-height-expand-transition-${l}-active`,`
|
||
overflow: ${e};
|
||
transition:
|
||
max-height ${t} ${Nn},
|
||
opacity ${t} ${w9},
|
||
margin-top ${t} ${Nn},
|
||
margin-bottom ${t} ${Nn},
|
||
padding-top ${t} ${Nn},
|
||
padding-bottom ${t} ${Nn}
|
||
${r?","+r:""}
|
||
`)]}const S9=N("alert",`
|
||
line-height: var(--n-line-height);
|
||
border-radius: var(--n-border-radius);
|
||
position: relative;
|
||
transition: background-color .3s var(--n-bezier);
|
||
background-color: var(--n-color);
|
||
text-align: start;
|
||
word-break: break-word;
|
||
`,[Z("border",`
|
||
border-radius: inherit;
|
||
position: absolute;
|
||
left: 0;
|
||
right: 0;
|
||
top: 0;
|
||
bottom: 0;
|
||
transition: border-color .3s var(--n-bezier);
|
||
border: var(--n-border);
|
||
pointer-events: none;
|
||
`),Q("closable",[N("alert-body",[Z("title",`
|
||
padding-right: 24px;
|
||
`)])]),Z("icon",{color:"var(--n-icon-color)"}),N("alert-body",{padding:"var(--n-padding)"},[Z("title",{color:"var(--n-title-text-color)"}),Z("content",{color:"var(--n-content-text-color)"})]),r_({originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.9)"}}),Z("icon",`
|
||
position: absolute;
|
||
left: 0;
|
||
top: 0;
|
||
align-items: center;
|
||
justify-content: center;
|
||
display: flex;
|
||
width: var(--n-icon-size);
|
||
height: var(--n-icon-size);
|
||
font-size: var(--n-icon-size);
|
||
margin: var(--n-icon-margin);
|
||
`),Z("close",`
|
||
transition:
|
||
color .3s var(--n-bezier),
|
||
background-color .3s var(--n-bezier);
|
||
position: absolute;
|
||
right: 0;
|
||
top: 0;
|
||
margin: var(--n-close-margin);
|
||
`),Q("show-icon",[N("alert-body",{paddingLeft:"calc(var(--n-icon-margin-left) + var(--n-icon-size) + var(--n-icon-margin-right))"})]),Q("right-adjust",[N("alert-body",{paddingRight:"calc(var(--n-close-size) + var(--n-padding) + 2px)"})]),N("alert-body",`
|
||
border-radius: var(--n-border-radius);
|
||
transition: border-color .3s var(--n-bezier);
|
||
`,[Z("title",`
|
||
transition: color .3s var(--n-bezier);
|
||
font-size: 16px;
|
||
line-height: 19px;
|
||
font-weight: var(--n-title-font-weight);
|
||
`,[q("& +",[Z("content",{marginTop:"9px"})])]),Z("content",{transition:"color .3s var(--n-bezier)",fontSize:"var(--n-font-size)"})]),Z("icon",{transition:"color .3s var(--n-bezier)"})]),_9=Object.assign(Object.assign({},ze.props),{title:String,showIcon:{type:Boolean,default:!0},type:{type:String,default:"default"},bordered:{type:Boolean,default:!0},closable:Boolean,onClose:Function,onAfterLeave:Function,onAfterHide:Function}),n_=me({name:"Alert",inheritAttrs:!1,props:_9,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:r,inlineThemeDisabled:n,mergedRtlRef:o}=ht(e),i=ze("Alert","-alert",S9,t_,e,t),a=an("Alert",o,t),s=R(()=>{const{common:{cubicBezierEaseInOut:p},self:h}=i.value,{fontSize:g,borderRadius:v,titleFontWeight:m,lineHeight:b,iconSize:x,iconMargin:y,iconMarginRtl:w,closeIconSize:C,closeBorderRadius:S,closeSize:T,closeMargin:P,closeMarginRtl:A,padding:I}=h,{type:B}=e,{left:D,right:U}=Yn(y);return{"--n-bezier":p,"--n-color":h[ye("color",B)],"--n-close-icon-size":C,"--n-close-border-radius":S,"--n-close-color-hover":h[ye("closeColorHover",B)],"--n-close-color-pressed":h[ye("closeColorPressed",B)],"--n-close-icon-color":h[ye("closeIconColor",B)],"--n-close-icon-color-hover":h[ye("closeIconColorHover",B)],"--n-close-icon-color-pressed":h[ye("closeIconColorPressed",B)],"--n-icon-color":h[ye("iconColor",B)],"--n-border":h[ye("border",B)],"--n-title-text-color":h[ye("titleTextColor",B)],"--n-content-text-color":h[ye("contentTextColor",B)],"--n-line-height":b,"--n-border-radius":v,"--n-font-size":g,"--n-title-font-weight":m,"--n-icon-size":x,"--n-icon-margin":y,"--n-icon-margin-rtl":w,"--n-close-size":T,"--n-close-margin":P,"--n-close-margin-rtl":A,"--n-padding":I,"--n-icon-margin-left":D,"--n-icon-margin-right":U}}),l=n?tr("alert",R(()=>e.type[0]),s,e):void 0,c=z(!0),u=()=>{const{onAfterLeave:p,onAfterHide:h}=e;p&&p(),h&&h()};return{rtlEnabled:a,mergedClsPrefix:t,mergedBordered:r,visible:c,handleCloseClick:()=>{var p;Promise.resolve((p=e.onClose)===null||p===void 0?void 0:p.call(e)).then(h=>{h!==!1&&(c.value=!1)})},handleAfterLeave:()=>{u()},mergedTheme:i,cssVars:n?void 0:s,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),k(Og,{onAfterLeave:this.handleAfterLeave},{default:()=>{const{mergedClsPrefix:t,$slots:r}=this,n={class:[`${t}-alert`,this.themeClass,this.closable&&`${t}-alert--closable`,this.showIcon&&`${t}-alert--show-icon`,!this.title&&this.closable&&`${t}-alert--right-adjust`,this.rtlEnabled&&`${t}-alert--rtl`],style:this.cssVars,role:"alert"};return this.visible?k("div",Object.assign({},Dn(this.$attrs,n)),this.closable&&k(ta,{clsPrefix:t,class:`${t}-alert__close`,onClick:this.handleCloseClick}),this.bordered&&k("div",{class:`${t}-alert__border`}),this.showIcon&&k("div",{class:`${t}-alert__icon`,"aria-hidden":"true"},go(r.icon,()=>[k(or,{clsPrefix:t},{default:()=>{switch(this.type){case"success":return k(tc,null);case"info":return k(Xa,null);case"warning":return k(rc,null);case"error":return k(ec,null);default:return null}}})])),k("div",{class:[`${t}-alert-body`,this.mergedBordered&&`${t}-alert-body--bordered`]},Ft(r.header,o=>{const i=o||this.title;return i?k("div",{class:`${t}-alert-body__title`},i):null}),r.default&&k("div",{class:`${t}-alert-body__content`},r))):null}})}}),E9={linkFontSize:"13px",linkPadding:"0 0 0 16px",railWidth:"4px"},o_=e=>{const{borderRadius:t,railColor:r,primaryColor:n,primaryColorHover:o,primaryColorPressed:i,textColor2:a}=e;return Object.assign(Object.assign({},E9),{borderRadius:t,railColor:r,railColorActive:n,linkColor:fe(n,{alpha:.15}),linkTextColor:a,linkTextColorHover:o,linkTextColorPressed:i,linkTextColorActive:n})},T9={name:"Anchor",common:ke,self:o_},k9=T9,A9={name:"Anchor",common:Ae,self:o_},P9=A9,$9=wo&&"chrome"in window;wo&&navigator.userAgent.includes("Firefox");const i_=wo&&navigator.userAgent.includes("Safari")&&!$9,a_={paddingTiny:"0 8px",paddingSmall:"0 10px",paddingMedium:"0 12px",paddingLarge:"0 14px",clearSize:"16px"},I9={name:"Input",common:Ae,self(e){const{textColor2:t,textColor3:r,textColorDisabled:n,primaryColor:o,primaryColorHover:i,inputColor:a,inputColorDisabled:s,warningColor:l,warningColorHover:c,errorColor:u,errorColorHover:d,borderRadius:f,lineHeight:p,fontSizeTiny:h,fontSizeSmall:g,fontSizeMedium:v,fontSizeLarge:m,heightTiny:b,heightSmall:x,heightMedium:y,heightLarge:w,clearColor:C,clearColorHover:S,clearColorPressed:T,placeholderColor:P,placeholderColorDisabled:A,iconColor:I,iconColorDisabled:B,iconColorHover:D,iconColorPressed:U}=e;return Object.assign(Object.assign({},a_),{countTextColorDisabled:n,countTextColor:r,heightTiny:b,heightSmall:x,heightMedium:y,heightLarge:w,fontSizeTiny:h,fontSizeSmall:g,fontSizeMedium:v,fontSizeLarge:m,lineHeight:p,lineHeightTextarea:p,borderRadius:f,iconSize:"16px",groupLabelColor:a,textColor:t,textColorDisabled:n,textDecorationColor:t,groupLabelTextColor:t,caretColor:o,placeholderColor:P,placeholderColorDisabled:A,color:a,colorDisabled:s,colorFocus:fe(o,{alpha:.1}),groupLabelBorder:"1px solid #0000",border:"1px solid #0000",borderHover:`1px solid ${i}`,borderDisabled:"1px solid #0000",borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 8px 0 ${fe(o,{alpha:.3})}`,loadingColor:o,loadingColorWarning:l,borderWarning:`1px solid ${l}`,borderHoverWarning:`1px solid ${c}`,colorFocusWarning:fe(l,{alpha:.1}),borderFocusWarning:`1px solid ${c}`,boxShadowFocusWarning:`0 0 8px 0 ${fe(l,{alpha:.3})}`,caretColorWarning:l,loadingColorError:u,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${d}`,colorFocusError:fe(u,{alpha:.1}),borderFocusError:`1px solid ${d}`,boxShadowFocusError:`0 0 8px 0 ${fe(u,{alpha:.3})}`,caretColorError:u,clearColor:C,clearColorHover:S,clearColorPressed:T,iconColor:I,iconColorDisabled:B,iconColorHover:D,iconColorPressed:U,suffixTextColor:t})}},wn=I9,B9=e=>{const{textColor2:t,textColor3:r,textColorDisabled:n,primaryColor:o,primaryColorHover:i,inputColor:a,inputColorDisabled:s,borderColor:l,warningColor:c,warningColorHover:u,errorColor:d,errorColorHover:f,borderRadius:p,lineHeight:h,fontSizeTiny:g,fontSizeSmall:v,fontSizeMedium:m,fontSizeLarge:b,heightTiny:x,heightSmall:y,heightMedium:w,heightLarge:C,actionColor:S,clearColor:T,clearColorHover:P,clearColorPressed:A,placeholderColor:I,placeholderColorDisabled:B,iconColor:D,iconColorDisabled:U,iconColorHover:F,iconColorPressed:j}=e;return Object.assign(Object.assign({},a_),{countTextColorDisabled:n,countTextColor:r,heightTiny:x,heightSmall:y,heightMedium:w,heightLarge:C,fontSizeTiny:g,fontSizeSmall:v,fontSizeMedium:m,fontSizeLarge:b,lineHeight:h,lineHeightTextarea:h,borderRadius:p,iconSize:"16px",groupLabelColor:S,groupLabelTextColor:t,textColor:t,textColorDisabled:n,textDecorationColor:t,caretColor:o,placeholderColor:I,placeholderColorDisabled:B,color:a,colorDisabled:s,colorFocus:a,groupLabelBorder:`1px solid ${l}`,border:`1px solid ${l}`,borderHover:`1px solid ${i}`,borderDisabled:`1px solid ${l}`,borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 0 2px ${fe(o,{alpha:.2})}`,loadingColor:o,loadingColorWarning:c,borderWarning:`1px solid ${c}`,borderHoverWarning:`1px solid ${u}`,colorFocusWarning:a,borderFocusWarning:`1px solid ${u}`,boxShadowFocusWarning:`0 0 0 2px ${fe(c,{alpha:.2})}`,caretColorWarning:c,loadingColorError:d,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${f}`,colorFocusError:a,borderFocusError:`1px solid ${f}`,boxShadowFocusError:`0 0 0 2px ${fe(d,{alpha:.2})}`,caretColorError:d,clearColor:T,clearColorHover:P,clearColorPressed:A,iconColor:D,iconColorDisabled:U,iconColorHover:F,iconColorPressed:j,suffixTextColor:t})},D9={name:"Input",common:ke,self:B9},sn=D9,s_="n-input";function O9(e){let t=0;for(const r of e)t++;return t}function Rc(e){return e===""||e==null}function R9(e){const t=z(null);function r(){const{value:i}=e;if(!(i!=null&&i.focus)){o();return}const{selectionStart:a,selectionEnd:s,value:l}=i;if(a==null||s==null){o();return}t.value={start:a,end:s,beforeText:l.slice(0,a),afterText:l.slice(s)}}function n(){var i;const{value:a}=t,{value:s}=e;if(!a||!s)return;const{value:l}=s,{start:c,beforeText:u,afterText:d}=a;let f=l.length;if(l.endsWith(d))f=l.length-d.length;else if(l.startsWith(u))f=u.length;else{const p=u[c-1],h=l.indexOf(p,c-1);h!==-1&&(f=h+1)}(i=s.setSelectionRange)===null||i===void 0||i.call(s,f,f)}function o(){t.value=null}return Ye(e,o),{recordCursor:r,restoreCursor:n}}const d1=me({name:"InputWordCount",setup(e,{slots:t}){const{mergedValueRef:r,maxlengthRef:n,mergedClsPrefixRef:o,countGraphemesRef:i}=Me(s_),a=R(()=>{const{value:s}=r;return s===null||Array.isArray(s)?0:(i.value||O9)(s)});return()=>{const{value:s}=n,{value:l}=r;return k("span",{class:`${o.value}-input-word-count`},g2(t.default,{value:l===null||Array.isArray(l)?"":l},()=>[s===void 0?a.value:`${a.value} / ${s}`]))}}}),L9=N("input",`
|
||
max-width: 100%;
|
||
cursor: text;
|
||
line-height: 1.5;
|
||
z-index: auto;
|
||
outline: none;
|
||
box-sizing: border-box;
|
||
position: relative;
|
||
display: inline-flex;
|
||
border-radius: var(--n-border-radius);
|
||
background-color: var(--n-color);
|
||
transition: background-color .3s var(--n-bezier);
|
||
font-size: var(--n-font-size);
|
||
--n-padding-vertical: calc((var(--n-height) - 1.5 * var(--n-font-size)) / 2);
|
||
`,[Z("input, textarea",`
|
||
overflow: hidden;
|
||
flex-grow: 1;
|
||
position: relative;
|
||
`),Z("input-el, textarea-el, input-mirror, textarea-mirror, separator, placeholder",`
|
||
box-sizing: border-box;
|
||
font-size: inherit;
|
||
line-height: 1.5;
|
||
font-family: inherit;
|
||
border: none;
|
||
outline: none;
|
||
background-color: #0000;
|
||
text-align: inherit;
|
||
transition:
|
||
-webkit-text-fill-color .3s var(--n-bezier),
|
||
caret-color .3s var(--n-bezier),
|
||
color .3s var(--n-bezier),
|
||
text-decoration-color .3s var(--n-bezier);
|
||
`),Z("input-el, textarea-el",`
|
||
-webkit-appearance: none;
|
||
scrollbar-width: none;
|
||
width: 100%;
|
||
min-width: 0;
|
||
text-decoration-color: var(--n-text-decoration-color);
|
||
color: var(--n-text-color);
|
||
caret-color: var(--n-caret-color);
|
||
background-color: transparent;
|
||
`,[q("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",`
|
||
width: 0;
|
||
height: 0;
|
||
display: none;
|
||
`),q("&::placeholder",`
|
||
color: #0000;
|
||
-webkit-text-fill-color: transparent !important;
|
||
`),q("&:-webkit-autofill ~",[Z("placeholder","display: none;")])]),Q("round",[ir("textarea","border-radius: calc(var(--n-height) / 2);")]),Z("placeholder",`
|
||
pointer-events: none;
|
||
position: absolute;
|
||
left: 0;
|
||
right: 0;
|
||
top: 0;
|
||
bottom: 0;
|
||
overflow: hidden;
|
||
color: var(--n-placeholder-color);
|
||
`,[q("span",`
|
||
width: 100%;
|
||
display: inline-block;
|
||
`)]),Q("textarea",[Z("placeholder","overflow: visible;")]),ir("autosize","width: 100%;"),Q("autosize",[Z("textarea-el, input-el",`
|
||
position: absolute;
|
||
top: 0;
|
||
left: 0;
|
||
height: 100%;
|
||
`)]),N("input-wrapper",`
|
||
overflow: hidden;
|
||
display: inline-flex;
|
||
flex-grow: 1;
|
||
position: relative;
|
||
padding-left: var(--n-padding-left);
|
||
padding-right: var(--n-padding-right);
|
||
`),Z("input-mirror",`
|
||
padding: 0;
|
||
height: var(--n-height);
|
||
line-height: var(--n-height);
|
||
overflow: hidden;
|
||
visibility: hidden;
|
||
position: static;
|
||
white-space: pre;
|
||
pointer-events: none;
|
||
`),Z("input-el",`
|
||
padding: 0;
|
||
height: var(--n-height);
|
||
line-height: var(--n-height);
|
||
`,[q("&[type=password]::-ms-reveal","display: none;"),q("+",[Z("placeholder",`
|
||
display: flex;
|
||
align-items: center;
|
||
`)])]),ir("textarea",[Z("placeholder","white-space: nowrap;")]),Z("eye",`
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
transition: color .3s var(--n-bezier);
|
||
`),Q("textarea","width: 100%;",[N("input-word-count",`
|
||
position: absolute;
|
||
right: var(--n-padding-right);
|
||
bottom: var(--n-padding-vertical);
|
||
`),Q("resizable",[N("input-wrapper",`
|
||
resize: vertical;
|
||
min-height: var(--n-height);
|
||
`)]),Z("textarea-el, textarea-mirror, placeholder",`
|
||
height: 100%;
|
||
padding-left: 0;
|
||
padding-right: 0;
|
||
padding-top: var(--n-padding-vertical);
|
||
padding-bottom: var(--n-padding-vertical);
|
||
word-break: break-word;
|
||
display: inline-block;
|
||
vertical-align: bottom;
|
||
box-sizing: border-box;
|
||
line-height: var(--n-line-height-textarea);
|
||
margin: 0;
|
||
resize: none;
|
||
white-space: pre-wrap;
|
||
scroll-padding-block-end: var(--n-padding-vertical);
|
||
`),Z("textarea-mirror",`
|
||
width: 100%;
|
||
pointer-events: none;
|
||
overflow: hidden;
|
||
visibility: hidden;
|
||
position: static;
|
||
white-space: pre-wrap;
|
||
overflow-wrap: break-word;
|
||
`)]),Q("pair",[Z("input-el, placeholder","text-align: center;"),Z("separator",`
|
||
display: flex;
|
||
align-items: center;
|
||
transition: color .3s var(--n-bezier);
|
||
color: var(--n-text-color);
|
||
white-space: nowrap;
|
||
`,[N("icon",`
|
||
color: var(--n-icon-color);
|
||
`),N("base-icon",`
|
||
color: var(--n-icon-color);
|
||
`)])]),Q("disabled",`
|
||
cursor: not-allowed;
|
||
background-color: var(--n-color-disabled);
|
||
`,[Z("border","border: var(--n-border-disabled);"),Z("input-el, textarea-el",`
|
||
cursor: not-allowed;
|
||
color: var(--n-text-color-disabled);
|
||
text-decoration-color: var(--n-text-color-disabled);
|
||
`),Z("placeholder","color: var(--n-placeholder-color-disabled);"),Z("separator","color: var(--n-text-color-disabled);",[N("icon",`
|
||
color: var(--n-icon-color-disabled);
|
||
`),N("base-icon",`
|
||
color: var(--n-icon-color-disabled);
|
||
`)]),N("input-word-count",`
|
||
color: var(--n-count-text-color-disabled);
|
||
`),Z("suffix, prefix","color: var(--n-text-color-disabled);",[N("icon",`
|
||
color: var(--n-icon-color-disabled);
|
||
`),N("internal-icon",`
|
||
color: var(--n-icon-color-disabled);
|
||
`)])]),ir("disabled",[Z("eye",`
|
||
color: var(--n-icon-color);
|
||
cursor: pointer;
|
||
`,[q("&:hover",`
|
||
color: var(--n-icon-color-hover);
|
||
`),q("&:active",`
|
||
color: var(--n-icon-color-pressed);
|
||
`)]),q("&:hover",[Z("state-border","border: var(--n-border-hover);")]),Q("focus","background-color: var(--n-color-focus);",[Z("state-border",`
|
||
border: var(--n-border-focus);
|
||
box-shadow: var(--n-box-shadow-focus);
|
||
`)])]),Z("border, state-border",`
|
||
box-sizing: border-box;
|
||
position: absolute;
|
||
left: 0;
|
||
right: 0;
|
||
top: 0;
|
||
bottom: 0;
|
||
pointer-events: none;
|
||
border-radius: inherit;
|
||
border: var(--n-border);
|
||
transition:
|
||
box-shadow .3s var(--n-bezier),
|
||
border-color .3s var(--n-bezier);
|
||
`),Z("state-border",`
|
||
border-color: #0000;
|
||
z-index: 1;
|
||
`),Z("prefix","margin-right: 4px;"),Z("suffix",`
|
||
margin-left: 4px;
|
||
`),Z("suffix, prefix",`
|
||
transition: color .3s var(--n-bezier);
|
||
flex-wrap: nowrap;
|
||
flex-shrink: 0;
|
||
line-height: var(--n-height);
|
||
white-space: nowrap;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
color: var(--n-suffix-text-color);
|
||
`,[N("base-loading",`
|
||
font-size: var(--n-icon-size);
|
||
margin: 0 2px;
|
||
color: var(--n-loading-color);
|
||
`),N("base-clear",`
|
||
font-size: var(--n-icon-size);
|
||
`,[Z("placeholder",[N("base-icon",`
|
||
transition: color .3s var(--n-bezier);
|
||
color: var(--n-icon-color);
|
||
font-size: var(--n-icon-size);
|
||
`)])]),q(">",[N("icon",`
|
||
transition: color .3s var(--n-bezier);
|
||
color: var(--n-icon-color);
|
||
font-size: var(--n-icon-size);
|
||
`)]),N("base-icon",`
|
||
font-size: var(--n-icon-size);
|
||
`)]),N("input-word-count",`
|
||
pointer-events: none;
|
||
line-height: 1.5;
|
||
font-size: .85em;
|
||
color: var(--n-count-text-color);
|
||
transition: color .3s var(--n-bezier);
|
||
margin-left: 4px;
|
||
font-variant: tabular-nums;
|
||
`),["warning","error"].map(e=>Q(`${e}-status`,[ir("disabled",[N("base-loading",`
|
||
color: var(--n-loading-color-${e})
|
||
`),Z("input-el, textarea-el",`
|
||
caret-color: var(--n-caret-color-${e});
|
||
`),Z("state-border",`
|
||
border: var(--n-border-${e});
|
||
`),q("&:hover",[Z("state-border",`
|
||
border: var(--n-border-hover-${e});
|
||
`)]),q("&:focus",`
|
||
background-color: var(--n-color-focus-${e});
|
||
`,[Z("state-border",`
|
||
box-shadow: var(--n-box-shadow-focus-${e});
|
||
border: var(--n-border-focus-${e});
|
||
`)]),Q("focus",`
|
||
background-color: var(--n-color-focus-${e});
|
||
`,[Z("state-border",`
|
||
box-shadow: var(--n-box-shadow-focus-${e});
|
||
border: var(--n-border-focus-${e});
|
||
`)])])]))]),F9=N("input",[Q("disabled",[Z("input-el, textarea-el",`
|
||
-webkit-text-fill-color: var(--n-text-color-disabled);
|
||
`)])]),M9=Object.assign(Object.assign({},ze.props),{bordered:{type:Boolean,default:void 0},type:{type:String,default:"text"},placeholder:[Array,String],defaultValue:{type:[String,Array],default:null},value:[String,Array],disabled:{type:Boolean,default:void 0},size:String,rows:{type:[Number,String],default:3},round:Boolean,minlength:[String,Number],maxlength:[String,Number],clearable:Boolean,autosize:{type:[Boolean,Object],default:!1},pair:Boolean,separator:String,readonly:{type:[String,Boolean],default:!1},passivelyActivated:Boolean,showPasswordOn:String,stateful:{type:Boolean,default:!0},autofocus:Boolean,inputProps:Object,resizable:{type:Boolean,default:!0},showCount:Boolean,loading:{type:Boolean,default:void 0},allowInput:Function,renderCount:Function,onMousedown:Function,onKeydown:Function,onKeyup:[Function,Array],onInput:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClick:[Function,Array],onChange:[Function,Array],onClear:[Function,Array],countGraphemes:Function,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],textDecoration:[String,Array],attrSize:{type:Number,default:20},onInputBlur:[Function,Array],onInputFocus:[Function,Array],onDeactivate:[Function,Array],onActivate:[Function,Array],onWrapperFocus:[Function,Array],onWrapperBlur:[Function,Array],internalDeactivateOnEnter:Boolean,internalForceFocus:Boolean,internalLoadingBeforeSuffix:{type:Boolean,default:!0},showPasswordToggle:Boolean}),Hr=me({name:"Input",props:M9,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:r,inlineThemeDisabled:n,mergedRtlRef:o}=ht(e),i=ze("Input","-input",L9,sn,e,t);i_&&ea("-input-safari",F9,t);const a=z(null),s=z(null),l=z(null),c=z(null),u=z(null),d=z(null),f=z(null),p=R9(f),h=z(null),{localeRef:g}=Dg("Input"),v=z(e.defaultValue),m=nt(e,"value"),b=vs(m,v),x=Ed(e),{mergedSizeRef:y,mergedDisabledRef:w,mergedStatusRef:C}=x,S=z(!1),T=z(!1),P=z(!1),A=z(!1);let I=null;const B=R(()=>{const{placeholder:Y,pair:pe}=e;return pe?Array.isArray(Y)?Y:Y===void 0?["",""]:[Y,Y]:Y===void 0?[g.value.placeholder]:[Y]}),D=R(()=>{const{value:Y}=P,{value:pe}=b,{value:qe}=B;return!Y&&(Rc(pe)||Array.isArray(pe)&&Rc(pe[0]))&&qe[0]}),U=R(()=>{const{value:Y}=P,{value:pe}=b,{value:qe}=B;return!Y&&qe[1]&&(Rc(pe)||Array.isArray(pe)&&Rc(pe[1]))}),F=Rr(()=>e.internalForceFocus||S.value),j=Rr(()=>{if(w.value||e.readonly||!e.clearable||!F.value&&!T.value)return!1;const{value:Y}=b,{value:pe}=F;return e.pair?!!(Array.isArray(Y)&&(Y[0]||Y[1]))&&(T.value||pe):!!Y&&(T.value||pe)}),K=R(()=>{const{showPasswordOn:Y}=e;if(Y)return Y;if(e.showPasswordToggle)return"click"}),ae=z(!1),we=R(()=>{const{textDecoration:Y}=e;return Y?Array.isArray(Y)?Y.map(pe=>({textDecoration:pe})):[{textDecoration:Y}]:["",""]}),Ce=z(void 0),X=()=>{var Y,pe;if(e.type==="textarea"){const{autosize:qe}=e;if(qe&&(Ce.value=(pe=(Y=h.value)===null||Y===void 0?void 0:Y.$el)===null||pe===void 0?void 0:pe.offsetWidth),!s.value||typeof qe=="boolean")return;const{paddingTop:Rt,paddingBottom:rr,lineHeight:Pt}=window.getComputedStyle(s.value),di=Number(Rt.slice(0,-2)),fi=Number(rr.slice(0,-2)),hi=Number(Pt.slice(0,-2)),{value:As}=l;if(!As)return;if(qe.minRows){const Ps=Math.max(qe.minRows,1),vf=`${di+fi+hi*Ps}px`;As.style.minHeight=vf}if(qe.maxRows){const Ps=`${di+fi+hi*qe.maxRows}px`;As.style.maxHeight=Ps}}},re=R(()=>{const{maxlength:Y}=e;return Y===void 0?void 0:Number(Y)});St(()=>{const{value:Y}=b;Array.isArray(Y)||Ar(Y)});const le=Er().proxy;function ne(Y,pe){const{onUpdateValue:qe,"onUpdate:value":Rt,onInput:rr}=e,{nTriggerFormInput:Pt}=x;qe&&at(qe,Y,pe),Rt&&at(Rt,Y,pe),rr&&at(rr,Y,pe),v.value=Y,Pt()}function $e(Y,pe){const{onChange:qe}=e,{nTriggerFormChange:Rt}=x;qe&&at(qe,Y,pe),v.value=Y,Rt()}function Se(Y){const{onBlur:pe}=e,{nTriggerFormBlur:qe}=x;pe&&at(pe,Y),qe()}function ee(Y){const{onFocus:pe}=e,{nTriggerFormFocus:qe}=x;pe&&at(pe,Y),qe()}function se(Y){const{onClear:pe}=e;pe&&at(pe,Y)}function ce(Y){const{onInputBlur:pe}=e;pe&&at(pe,Y)}function xe(Y){const{onInputFocus:pe}=e;pe&&at(pe,Y)}function Te(){const{onDeactivate:Y}=e;Y&&at(Y)}function Pe(){const{onActivate:Y}=e;Y&&at(Y)}function _(Y){const{onClick:pe}=e;pe&&at(pe,Y)}function E(Y){const{onWrapperFocus:pe}=e;pe&&at(pe,Y)}function $(Y){const{onWrapperBlur:pe}=e;pe&&at(pe,Y)}function L(){P.value=!0}function M(Y){P.value=!1,Y.target===d.value?J(Y,1):J(Y,0)}function J(Y,pe=0,qe="input"){const Rt=Y.target.value;if(Ar(Rt),Y instanceof InputEvent&&!Y.isComposing&&(P.value=!1),e.type==="textarea"){const{value:Pt}=h;Pt&&Pt.syncUnifiedContainer()}if(I=Rt,P.value)return;p.recordCursor();const rr=oe(Rt);if(rr)if(!e.pair)qe==="input"?ne(Rt,{source:pe}):$e(Rt,{source:pe});else{let{value:Pt}=b;Array.isArray(Pt)?Pt=[Pt[0],Pt[1]]:Pt=["",""],Pt[pe]=Rt,qe==="input"?ne(Pt,{source:pe}):$e(Pt,{source:pe})}le.$forceUpdate(),rr||zt(p.restoreCursor)}function oe(Y){const{countGraphemes:pe,maxlength:qe,minlength:Rt}=e;if(pe){let Pt;if(qe!==void 0&&(Pt===void 0&&(Pt=pe(Y)),Pt>Number(qe))||Rt!==void 0&&(Pt===void 0&&(Pt=pe(Y)),Pt<Number(qe)))return!1}const{allowInput:rr}=e;return typeof rr=="function"?rr(Y):!0}function O(Y){ce(Y),Y.relatedTarget===a.value&&Te(),Y.relatedTarget!==null&&(Y.relatedTarget===u.value||Y.relatedTarget===d.value||Y.relatedTarget===s.value)||(A.value=!1),_e(Y,"blur"),f.value=null}function H(Y,pe){xe(Y),S.value=!0,A.value=!0,Pe(),_e(Y,"focus"),pe===0?f.value=u.value:pe===1?f.value=d.value:pe===2&&(f.value=s.value)}function V(Y){e.passivelyActivated&&($(Y),_e(Y,"blur"))}function ue(Y){e.passivelyActivated&&(S.value=!0,E(Y),_e(Y,"focus"))}function _e(Y,pe){Y.relatedTarget!==null&&(Y.relatedTarget===u.value||Y.relatedTarget===d.value||Y.relatedTarget===s.value||Y.relatedTarget===a.value)||(pe==="focus"?(ee(Y),S.value=!0):pe==="blur"&&(Se(Y),S.value=!1))}function Ee(Y,pe){J(Y,pe,"change")}function G(Y){_(Y)}function ie(Y){se(Y),Re()}function Re(){e.pair?(ne(["",""],{source:"clear"}),$e(["",""],{source:"clear"})):(ne("",{source:"clear"}),$e("",{source:"clear"}))}function Ne(Y){const{onMousedown:pe}=e;pe&&pe(Y);const{tagName:qe}=Y.target;if(qe!=="INPUT"&&qe!=="TEXTAREA"){if(e.resizable){const{value:Rt}=a;if(Rt){const{left:rr,top:Pt,width:di,height:fi}=Rt.getBoundingClientRect(),hi=14;if(rr+di-hi<Y.clientX&&Y.clientX<rr+di&&Pt+fi-hi<Y.clientY&&Y.clientY<Pt+fi)return}}Y.preventDefault(),S.value||He()}}function lt(){var Y;T.value=!0,e.type==="textarea"&&((Y=h.value)===null||Y===void 0||Y.handleMouseEnterWrapper())}function yt(){var Y;T.value=!1,e.type==="textarea"&&((Y=h.value)===null||Y===void 0||Y.handleMouseLeaveWrapper())}function jt(){w.value||K.value==="click"&&(ae.value=!ae.value)}function Qr(Y){if(w.value)return;Y.preventDefault();const pe=Rt=>{Rt.preventDefault(),kt("mouseup",document,pe)};if(er("mouseup",document,pe),K.value!=="mousedown")return;ae.value=!0;const qe=()=>{ae.value=!1,kt("mouseup",document,qe)};er("mouseup",document,qe)}function ur(Y){e.onKeyup&&at(e.onKeyup,Y)}function Fn(Y){switch(e.onKeydown&&at(e.onKeydown,Y),Y.key){case"Escape":Ie();break;case"Enter":be(Y);break}}function be(Y){var pe,qe;if(e.passivelyActivated){const{value:Rt}=A;if(Rt){e.internalDeactivateOnEnter&&Ie();return}Y.preventDefault(),e.type==="textarea"?(pe=s.value)===null||pe===void 0||pe.focus():(qe=u.value)===null||qe===void 0||qe.focus()}}function Ie(){e.passivelyActivated&&(A.value=!1,zt(()=>{var Y;(Y=a.value)===null||Y===void 0||Y.focus()}))}function He(){var Y,pe,qe;w.value||(e.passivelyActivated?(Y=a.value)===null||Y===void 0||Y.focus():((pe=s.value)===null||pe===void 0||pe.focus(),(qe=u.value)===null||qe===void 0||qe.focus()))}function Ct(){var Y;!((Y=a.value)===null||Y===void 0)&&Y.contains(document.activeElement)&&document.activeElement.blur()}function Ot(){var Y,pe;(Y=s.value)===null||Y===void 0||Y.select(),(pe=u.value)===null||pe===void 0||pe.select()}function dr(){w.value||(s.value?s.value.focus():u.value&&u.value.focus())}function mr(){const{value:Y}=a;Y!=null&&Y.contains(document.activeElement)&&Y!==document.activeElement&&Ie()}function At(Y){if(e.type==="textarea"){const{value:pe}=s;pe==null||pe.scrollTo(Y)}else{const{value:pe}=u;pe==null||pe.scrollTo(Y)}}function Ar(Y){const{type:pe,pair:qe,autosize:Rt}=e;if(!qe&&Rt)if(pe==="textarea"){const{value:rr}=l;rr&&(rr.textContent=(Y??"")+`\r
|
||
`)}else{const{value:rr}=c;rr&&(Y?rr.textContent=Y:rr.innerHTML=" ")}}function _n(){X()}const ui=z({top:"0"});function Ts(Y){var pe;const{scrollTop:qe}=Y.target;ui.value.top=`${-qe}px`,(pe=h.value)===null||pe===void 0||pe.syncUnifiedContainer()}let ko=null;$r(()=>{const{autosize:Y,type:pe}=e;Y&&pe==="textarea"?ko=Ye(b,qe=>{!Array.isArray(qe)&&qe!==I&&Ar(qe)}):ko==null||ko()});let oo=null;$r(()=>{e.type==="textarea"?oo=Ye(b,Y=>{var pe;!Array.isArray(Y)&&Y!==I&&((pe=h.value)===null||pe===void 0||pe.syncUnifiedContainer())}):oo==null||oo()}),dt(s_,{mergedValueRef:b,maxlengthRef:re,mergedClsPrefixRef:t,countGraphemesRef:nt(e,"countGraphemes")});const ks={wrapperElRef:a,inputElRef:u,textareaElRef:s,isCompositing:P,clear:Re,focus:He,blur:Ct,select:Ot,deactivate:mr,activate:dr,scrollTo:At},ca=an("Input",o,t),Sr=R(()=>{const{value:Y}=y,{common:{cubicBezierEaseInOut:pe},self:{color:qe,borderRadius:Rt,textColor:rr,caretColor:Pt,caretColorError:di,caretColorWarning:fi,textDecorationColor:hi,border:As,borderDisabled:Ps,borderHover:vf,borderFocus:B8,placeholderColor:D8,placeholderColorDisabled:O8,lineHeightTextarea:R8,colorDisabled:L8,colorFocus:F8,textColorDisabled:M8,boxShadowFocus:z8,iconSize:N8,colorFocusWarning:H8,boxShadowFocusWarning:j8,borderWarning:W8,borderFocusWarning:U8,borderHoverWarning:V8,colorFocusError:q8,boxShadowFocusError:G8,borderError:Y8,borderFocusError:K8,borderHoverError:X8,clearSize:Z8,clearColor:Q8,clearColorHover:J8,clearColorPressed:e6,iconColor:t6,iconColorDisabled:r6,suffixTextColor:n6,countTextColor:o6,countTextColorDisabled:i6,iconColorHover:a6,iconColorPressed:s6,loadingColor:l6,loadingColorError:c6,loadingColorWarning:u6,[ye("padding",Y)]:d6,[ye("fontSize",Y)]:f6,[ye("height",Y)]:h6}}=i.value,{left:p6,right:g6}=Yn(d6);return{"--n-bezier":pe,"--n-count-text-color":o6,"--n-count-text-color-disabled":i6,"--n-color":qe,"--n-font-size":f6,"--n-border-radius":Rt,"--n-height":h6,"--n-padding-left":p6,"--n-padding-right":g6,"--n-text-color":rr,"--n-caret-color":Pt,"--n-text-decoration-color":hi,"--n-border":As,"--n-border-disabled":Ps,"--n-border-hover":vf,"--n-border-focus":B8,"--n-placeholder-color":D8,"--n-placeholder-color-disabled":O8,"--n-icon-size":N8,"--n-line-height-textarea":R8,"--n-color-disabled":L8,"--n-color-focus":F8,"--n-text-color-disabled":M8,"--n-box-shadow-focus":z8,"--n-loading-color":l6,"--n-caret-color-warning":fi,"--n-color-focus-warning":H8,"--n-box-shadow-focus-warning":j8,"--n-border-warning":W8,"--n-border-focus-warning":U8,"--n-border-hover-warning":V8,"--n-loading-color-warning":u6,"--n-caret-color-error":di,"--n-color-focus-error":q8,"--n-box-shadow-focus-error":G8,"--n-border-error":Y8,"--n-border-focus-error":K8,"--n-border-hover-error":X8,"--n-loading-color-error":c6,"--n-clear-color":Q8,"--n-clear-size":Z8,"--n-clear-color-hover":J8,"--n-clear-color-pressed":e6,"--n-icon-color":t6,"--n-icon-color-hover":a6,"--n-icon-color-pressed":s6,"--n-icon-color-disabled":r6,"--n-suffix-text-color":n6}}),Mr=n?tr("input",R(()=>{const{value:Y}=y;return Y[0]}),Sr,e):void 0;return Object.assign(Object.assign({},ks),{wrapperElRef:a,inputElRef:u,inputMirrorElRef:c,inputEl2Ref:d,textareaElRef:s,textareaMirrorElRef:l,textareaScrollbarInstRef:h,rtlEnabled:ca,uncontrolledValue:v,mergedValue:b,passwordVisible:ae,mergedPlaceholder:B,showPlaceholder1:D,showPlaceholder2:U,mergedFocus:F,isComposing:P,activated:A,showClearButton:j,mergedSize:y,mergedDisabled:w,textDecorationStyle:we,mergedClsPrefix:t,mergedBordered:r,mergedShowPasswordOn:K,placeholderStyle:ui,mergedStatus:C,textAreaScrollContainerWidth:Ce,handleTextAreaScroll:Ts,handleCompositionStart:L,handleCompositionEnd:M,handleInput:J,handleInputBlur:O,handleInputFocus:H,handleWrapperBlur:V,handleWrapperFocus:ue,handleMouseEnter:lt,handleMouseLeave:yt,handleMouseDown:Ne,handleChange:Ee,handleClick:G,handleClear:ie,handlePasswordToggleClick:jt,handlePasswordToggleMousedown:Qr,handleWrapperKeydown:Fn,handleWrapperKeyup:ur,handleTextAreaMirrorResize:_n,getTextareaScrollContainer:()=>s.value,mergedTheme:i,cssVars:n?void 0:Sr,themeClass:Mr==null?void 0:Mr.themeClass,onRender:Mr==null?void 0:Mr.onRender})},render(){var e,t;const{mergedClsPrefix:r,mergedStatus:n,themeClass:o,type:i,countGraphemes:a,onRender:s}=this,l=this.$slots;return s==null||s(),k("div",{ref:"wrapperElRef",class:[`${r}-input`,o,n&&`${r}-input--${n}-status`,{[`${r}-input--rtl`]:this.rtlEnabled,[`${r}-input--disabled`]:this.mergedDisabled,[`${r}-input--textarea`]:i==="textarea",[`${r}-input--resizable`]:this.resizable&&!this.autosize,[`${r}-input--autosize`]:this.autosize,[`${r}-input--round`]:this.round&&i!=="textarea",[`${r}-input--pair`]:this.pair,[`${r}-input--focus`]:this.mergedFocus,[`${r}-input--stateful`]:this.stateful}],style:this.cssVars,tabindex:!this.mergedDisabled&&this.passivelyActivated&&!this.activated?0:void 0,onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperBlur,onClick:this.handleClick,onMousedown:this.handleMouseDown,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd,onKeyup:this.handleWrapperKeyup,onKeydown:this.handleWrapperKeydown},k("div",{class:`${r}-input-wrapper`},Ft(l.prefix,c=>c&&k("div",{class:`${r}-input__prefix`},c)),i==="textarea"?k(nc,{ref:"textareaScrollbarInstRef",class:`${r}-input__textarea`,container:this.getTextareaScrollContainer,triggerDisplayManually:!0,useUnifiedContainer:!0,internalHoistYRail:!0},{default:()=>{var c,u;const{textAreaScrollContainerWidth:d}=this,f={width:this.autosize&&d&&`${d}px`};return k(st,null,k("textarea",Object.assign({},this.inputProps,{ref:"textareaElRef",class:[`${r}-input__textarea-el`,(c=this.inputProps)===null||c===void 0?void 0:c.class],autofocus:this.autofocus,rows:Number(this.rows),placeholder:this.placeholder,value:this.mergedValue,disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:[this.textDecorationStyle[0],(u=this.inputProps)===null||u===void 0?void 0:u.style,f],onBlur:this.handleInputBlur,onFocus:p=>{this.handleInputFocus(p,2)},onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll})),this.showPlaceholder1?k("div",{class:`${r}-input__placeholder`,style:[this.placeholderStyle,f],key:"placeholder"},this.mergedPlaceholder[0]):null,this.autosize?k(Ko,{onResize:this.handleTextAreaMirrorResize},{default:()=>k("div",{ref:"textareaMirrorElRef",class:`${r}-input__textarea-mirror`,key:"mirror"})}):null)}}):k("div",{class:`${r}-input__input`},k("input",Object.assign({type:i==="password"&&this.mergedShowPasswordOn&&this.passwordVisible?"text":i},this.inputProps,{ref:"inputElRef",class:[`${r}-input__input-el`,(e=this.inputProps)===null||e===void 0?void 0:e.class],style:[this.textDecorationStyle[0],(t=this.inputProps)===null||t===void 0?void 0:t.style],tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[0],disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[0]:this.mergedValue,readonly:this.readonly,autofocus:this.autofocus,size:this.attrSize,onBlur:this.handleInputBlur,onFocus:c=>{this.handleInputFocus(c,0)},onInput:c=>{this.handleInput(c,0)},onChange:c=>{this.handleChange(c,0)}})),this.showPlaceholder1?k("div",{class:`${r}-input__placeholder`},k("span",null,this.mergedPlaceholder[0])):null,this.autosize?k("div",{class:`${r}-input__input-mirror`,key:"mirror",ref:"inputMirrorElRef"}," "):null),!this.pair&&Ft(l.suffix,c=>c||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0?k("div",{class:`${r}-input__suffix`},[Ft(l["clear-icon-placeholder"],u=>(this.clearable||u)&&k(zh,{clsPrefix:r,show:this.showClearButton,onClear:this.handleClear},{placeholder:()=>u,icon:()=>{var d,f;return(f=(d=this.$slots)["clear-icon"])===null||f===void 0?void 0:f.call(d)}})),this.internalLoadingBeforeSuffix?null:c,this.loading!==void 0?k(f9,{clsPrefix:r,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}):null,this.internalLoadingBeforeSuffix?c:null,this.showCount&&this.type!=="textarea"?k(d1,null,{default:u=>{var d;return(d=l.count)===null||d===void 0?void 0:d.call(l,u)}}):null,this.mergedShowPasswordOn&&this.type==="password"?k("div",{class:`${r}-input__eye`,onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},this.passwordVisible?go(l["password-visible-icon"],()=>[k(or,{clsPrefix:r},{default:()=>k(pM,null)})]):go(l["password-invisible-icon"],()=>[k(or,{clsPrefix:r},{default:()=>k(gM,null)})])):null]):null)),this.pair?k("span",{class:`${r}-input__separator`},go(l.separator,()=>[this.separator])):null,this.pair?k("div",{class:`${r}-input-wrapper`},k("div",{class:`${r}-input__input`},k("input",{ref:"inputEl2Ref",type:this.type,class:`${r}-input__input-el`,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[1],disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[1]:void 0,readonly:this.readonly,style:this.textDecorationStyle[1],onBlur:this.handleInputBlur,onFocus:c=>{this.handleInputFocus(c,1)},onInput:c=>{this.handleInput(c,1)},onChange:c=>{this.handleChange(c,1)}}),this.showPlaceholder2?k("div",{class:`${r}-input__placeholder`},k("span",null,this.mergedPlaceholder[1])):null),Ft(l.suffix,c=>(this.clearable||c)&&k("div",{class:`${r}-input__suffix`},[this.clearable&&k(zh,{clsPrefix:r,show:this.showClearButton,onClear:this.handleClear},{icon:()=>{var u;return(u=l["clear-icon"])===null||u===void 0?void 0:u.call(l)},placeholder:()=>{var u;return(u=l["clear-icon-placeholder"])===null||u===void 0?void 0:u.call(l)}}),c]))):null,this.mergedBordered?k("div",{class:`${r}-input__border`}):null,this.mergedBordered?k("div",{class:`${r}-input__state-border`}):null,this.showCount&&i==="textarea"?k(d1,null,{default:c=>{var u;const{renderCount:d}=this;return d?d(c):(u=l.count)===null||u===void 0?void 0:u.call(l,c)}}):null)}});function l_(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const z9={name:"AutoComplete",common:ke,peers:{InternalSelectMenu:oc,Input:sn},self:l_},N9=z9,H9={name:"AutoComplete",common:Ae,peers:{InternalSelectMenu:ic,Input:wn},self:l_},j9=H9,c_=wo&&"loading"in document.createElement("img"),W9=(e={})=>{var t;const{root:r=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 r=="string"?document.querySelector(r):r)||document.documentElement})}},Uf=new WeakMap,Vf=new WeakMap,qf=new WeakMap,u_=(e,t,r)=>{if(!e)return()=>{};const n=W9(t),{root:o}=n.options;let i;const a=Uf.get(o);a?i=a:(i=new Map,Uf.set(o,i));let s,l;i.has(n.hash)?(l=i.get(n.hash),l[1].has(e)||(s=l[0],l[1].add(e),s.observe(e))):(s=new IntersectionObserver(d=>{d.forEach(f=>{if(f.isIntersecting){const p=Vf.get(f.target),h=qf.get(f.target);p&&p(),h&&(h.value=!0)}})},n.options),s.observe(e),l=[s,new Set([e])],i.set(n.hash,l));let c=!1;const u=()=>{c||(Vf.delete(e),qf.delete(e),c=!0,l[1].has(e)&&(l[0].unobserve(e),l[1].delete(e)),l[1].size<=0&&i.delete(n.hash),i.size||Uf.delete(o))};return Vf.set(e,u),qf.set(e,r),u},d_=e=>{const{borderRadius:t,avatarColor:r,cardColor:n,fontSize:o,heightTiny:i,heightSmall:a,heightMedium:s,heightLarge:l,heightHuge:c,modalColor:u,popoverColor:d}=e;return{borderRadius:t,fontSize:o,border:`2px solid ${n}`,heightTiny:i,heightSmall:a,heightMedium:s,heightLarge:l,heightHuge:c,color:Oe(n,r),colorModal:Oe(u,r),colorPopover:Oe(d,r)}},U9={name:"Avatar",common:ke,self:d_},Mg=U9,V9={name:"Avatar",common:Ae,self:d_},f_=V9,q9="n-avatar-group",G9=N("avatar",`
|
||
width: var(--n-merged-size);
|
||
height: var(--n-merged-size);
|
||
color: #FFF;
|
||
font-size: var(--n-font-size);
|
||
display: inline-flex;
|
||
position: relative;
|
||
overflow: hidden;
|
||
text-align: center;
|
||
border: var(--n-border);
|
||
border-radius: var(--n-border-radius);
|
||
--n-merged-color: var(--n-color);
|
||
background-color: var(--n-merged-color);
|
||
transition:
|
||
border-color .3s var(--n-bezier),
|
||
background-color .3s var(--n-bezier),
|
||
color .3s var(--n-bezier);
|
||
`,[wd(q("&","--n-merged-color: var(--n-color-modal);")),hg(q("&","--n-merged-color: var(--n-color-popover);")),q("img",`
|
||
width: 100%;
|
||
height: 100%;
|
||
`),Z("text",`
|
||
white-space: nowrap;
|
||
display: inline-block;
|
||
position: absolute;
|
||
left: 50%;
|
||
top: 50%;
|
||
`),N("icon",`
|
||
vertical-align: bottom;
|
||
font-size: calc(var(--n-merged-size) - 6px);
|
||
`),Z("text","line-height: 1.25")]),Y9=Object.assign(Object.assign({},ze.props),{size:[String,Number],src:String,circle:{type:Boolean,default:void 0},objectFit:String,round:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},onError:Function,fallbackSrc:String,intersectionObserverOptions:Object,lazy:Boolean,onLoad:Function,renderPlaceholder:Function,renderFallback:Function,imgProps:Object,color:String}),K9=me({name:"Avatar",props:Y9,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=ht(e),n=z(!1);let o=null;const i=z(null),a=z(null),s=()=>{const{value:b}=i;if(b&&(o===null||o!==b.innerHTML)){o=b.innerHTML;const{value:x}=a;if(x){const{offsetWidth:y,offsetHeight:w}=x,{offsetWidth:C,offsetHeight:S}=b,T=.9,P=Math.min(y/C*T,w/S*T,1);b.style.transform=`translateX(-50%) translateY(-50%) scale(${P})`}}},l=Me(q9,null),c=R(()=>{const{size:b}=e;if(b)return b;const{size:x}=l||{};return x||"medium"}),u=ze("Avatar","-avatar",G9,Mg,e,t),d=Me(QS,null),f=R(()=>{if(l)return!0;const{round:b,circle:x}=e;return b!==void 0||x!==void 0?b||x:d?d.roundRef.value:!1}),p=R(()=>l?!0:e.bordered||!1),h=R(()=>{const b=c.value,x=f.value,y=p.value,{color:w}=e,{self:{borderRadius:C,fontSize:S,color:T,border:P,colorModal:A,colorPopover:I},common:{cubicBezierEaseInOut:B}}=u.value;let D;return typeof b=="number"?D=`${b}px`:D=u.value.self[ye("height",b)],{"--n-font-size":S,"--n-border":y?P:"none","--n-border-radius":x?"50%":C,"--n-color":w||T,"--n-color-modal":w||A,"--n-color-popover":w||I,"--n-bezier":B,"--n-merged-size":`var(--n-avatar-size-override, ${D})`}}),g=r?tr("avatar",R(()=>{const b=c.value,x=f.value,y=p.value,{color:w}=e;let C="";return b&&(typeof b=="number"?C+=`a${b}`:C+=b[0]),x&&(C+="b"),y&&(C+="c"),w&&(C+=_l(w)),C}),h,e):void 0,v=z(!e.lazy);St(()=>{if(e.lazy&&e.intersectionObserverOptions){let b;const x=$r(()=>{b==null||b(),b=void 0,e.lazy&&(b=u_(a.value,e.intersectionObserverOptions,v))});Kt(()=>{x(),b==null||b()})}}),Ye(()=>{var b;return e.src||((b=e.imgProps)===null||b===void 0?void 0:b.src)},()=>{n.value=!1});const m=z(!e.lazy);return{textRef:i,selfRef:a,mergedRoundRef:f,mergedClsPrefix:t,fitTextTransform:s,cssVars:r?void 0:h,themeClass:g==null?void 0:g.themeClass,onRender:g==null?void 0:g.onRender,hasLoadError:n,shouldStartLoading:v,loaded:m,mergedOnError:b=>{if(!v.value)return;n.value=!0;const{onError:x,imgProps:{onError:y}={}}=e;x==null||x(b),y==null||y(b)},mergedOnLoad:b=>{const{onLoad:x,imgProps:{onLoad:y}={}}=e;x==null||x(b),y==null||y(b),m.value=!0}}},render(){var e,t;const{$slots:r,src:n,mergedClsPrefix:o,lazy:i,onRender:a,loaded:s,hasLoadError:l,imgProps:c={}}=this;a==null||a();let u;const d=!s&&!l&&(this.renderPlaceholder?this.renderPlaceholder():(t=(e=this.$slots).placeholder)===null||t===void 0?void 0:t.call(e));return this.hasLoadError?u=this.renderFallback?this.renderFallback():go(r.fallback,()=>[k("img",{src:this.fallbackSrc,style:{objectFit:this.objectFit}})]):u=Ft(r.default,f=>{if(f)return k(Ko,{onResize:this.fitTextTransform},{default:()=>k("span",{ref:"textRef",class:`${o}-avatar__text`},f)});if(n||c.src){const p=this.src||c.src;return k("img",Object.assign(Object.assign({},c),{loading:c_&&!this.intersectionObserverOptions&&i?"lazy":"eager",src:i&&this.intersectionObserverOptions?this.shouldStartLoading?p:void 0:p,"data-image-src":p,onLoad:this.mergedOnLoad,onError:this.mergedOnError,style:[c.style||"",{objectFit:this.objectFit},d?{height:"0",width:"0",visibility:"hidden",position:"absolute"}:""]}))}}),k("span",{ref:"selfRef",class:[`${o}-avatar`,this.themeClass],style:this.cssVars},u,i&&d)}}),h_=()=>({gap:"-12px"}),X9={name:"AvatarGroup",common:ke,peers:{Avatar:Mg},self:h_},Z9=X9,Q9={name:"AvatarGroup",common:Ae,peers:{Avatar:f_},self:h_},J9=Q9,p_={width:"44px",height:"44px",borderRadius:"22px",iconSize:"26px"},e7={name:"BackTop",common:Ae,self(e){const{popoverColor:t,textColor2:r,primaryColorHover:n,primaryColorPressed:o}=e;return Object.assign(Object.assign({},p_),{color:t,textColor:r,iconColor:r,iconColorHover:n,iconColorPressed:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)"})}},t7=e7,r7=e=>{const{popoverColor:t,textColor2:r,primaryColorHover:n,primaryColorPressed:o}=e;return Object.assign(Object.assign({},p_),{color:t,textColor:r,iconColor:r,iconColorHover:n,iconColorPressed:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)"})},n7={name:"BackTop",common:ke,self:r7},o7=n7,i7={name:"Badge",common:Ae,self(e){const{errorColorSuppl:t,infoColorSuppl:r,successColorSuppl:n,warningColorSuppl:o,fontFamily:i}=e;return{color:t,colorInfo:r,colorSuccess:n,colorError:t,colorWarning:o,fontSize:"12px",fontFamily:i}}},a7=i7,s7=e=>{const{errorColor:t,infoColor:r,successColor:n,warningColor:o,fontFamily:i}=e;return{color:t,colorInfo:r,colorSuccess:n,colorError:t,colorWarning:o,fontSize:"12px",fontFamily:i}},l7={name:"Badge",common:ke,self:s7},c7=l7,u7={fontWeightActive:"400"},g_=e=>{const{fontSize:t,textColor3:r,textColor2:n,borderRadius:o,buttonColor2Hover:i,buttonColor2Pressed:a}=e;return Object.assign(Object.assign({},u7),{fontSize:t,itemLineHeight:"1.25",itemTextColor:r,itemTextColorHover:n,itemTextColorPressed:n,itemTextColorActive:n,itemBorderRadius:o,itemColorHover:i,itemColorPressed:a,separatorColor:r})},d7={name:"Breadcrumb",common:ke,self:g_},f7=d7,h7={name:"Breadcrumb",common:Ae,self:g_},p7=h7;function vi(e){return Oe(e,[255,255,255,.16])}function Lc(e){return Oe(e,[0,0,0,.12])}const m_="n-button-group",g7={paddingTiny:"0 6px",paddingSmall:"0 10px",paddingMedium:"0 14px",paddingLarge:"0 18px",paddingRoundTiny:"0 10px",paddingRoundSmall:"0 14px",paddingRoundMedium:"0 18px",paddingRoundLarge:"0 22px",iconMarginTiny:"6px",iconMarginSmall:"6px",iconMarginMedium:"6px",iconMarginLarge:"6px",iconSizeTiny:"14px",iconSizeSmall:"18px",iconSizeMedium:"18px",iconSizeLarge:"20px",rippleDuration:".6s"},v_=e=>{const{heightTiny:t,heightSmall:r,heightMedium:n,heightLarge:o,borderRadius:i,fontSizeTiny:a,fontSizeSmall:s,fontSizeMedium:l,fontSizeLarge:c,opacityDisabled:u,textColor2:d,textColor3:f,primaryColorHover:p,primaryColorPressed:h,borderColor:g,primaryColor:v,baseColor:m,infoColor:b,infoColorHover:x,infoColorPressed:y,successColor:w,successColorHover:C,successColorPressed:S,warningColor:T,warningColorHover:P,warningColorPressed:A,errorColor:I,errorColorHover:B,errorColorPressed:D,fontWeight:U,buttonColor2:F,buttonColor2Hover:j,buttonColor2Pressed:K,fontWeightStrong:ae}=e;return Object.assign(Object.assign({},g7),{heightTiny:t,heightSmall:r,heightMedium:n,heightLarge:o,borderRadiusTiny:i,borderRadiusSmall:i,borderRadiusMedium:i,borderRadiusLarge:i,fontSizeTiny:a,fontSizeSmall:s,fontSizeMedium:l,fontSizeLarge:c,opacityDisabled:u,colorOpacitySecondary:"0.16",colorOpacitySecondaryHover:"0.22",colorOpacitySecondaryPressed:"0.28",colorSecondary:F,colorSecondaryHover:j,colorSecondaryPressed:K,colorTertiary:F,colorTertiaryHover:j,colorTertiaryPressed:K,colorQuaternary:"#0000",colorQuaternaryHover:j,colorQuaternaryPressed:K,color:"#0000",colorHover:"#0000",colorPressed:"#0000",colorFocus:"#0000",colorDisabled:"#0000",textColor:d,textColorTertiary:f,textColorHover:p,textColorPressed:h,textColorFocus:p,textColorDisabled:d,textColorText:d,textColorTextHover:p,textColorTextPressed:h,textColorTextFocus:p,textColorTextDisabled:d,textColorGhost:d,textColorGhostHover:p,textColorGhostPressed:h,textColorGhostFocus:p,textColorGhostDisabled:d,border:`1px solid ${g}`,borderHover:`1px solid ${p}`,borderPressed:`1px solid ${h}`,borderFocus:`1px solid ${p}`,borderDisabled:`1px solid ${g}`,rippleColor:v,colorPrimary:v,colorHoverPrimary:p,colorPressedPrimary:h,colorFocusPrimary:p,colorDisabledPrimary:v,textColorPrimary:m,textColorHoverPrimary:m,textColorPressedPrimary:m,textColorFocusPrimary:m,textColorDisabledPrimary:m,textColorTextPrimary:v,textColorTextHoverPrimary:p,textColorTextPressedPrimary:h,textColorTextFocusPrimary:p,textColorTextDisabledPrimary:d,textColorGhostPrimary:v,textColorGhostHoverPrimary:p,textColorGhostPressedPrimary:h,textColorGhostFocusPrimary:p,textColorGhostDisabledPrimary:v,borderPrimary:`1px solid ${v}`,borderHoverPrimary:`1px solid ${p}`,borderPressedPrimary:`1px solid ${h}`,borderFocusPrimary:`1px solid ${p}`,borderDisabledPrimary:`1px solid ${v}`,rippleColorPrimary:v,colorInfo:b,colorHoverInfo:x,colorPressedInfo:y,colorFocusInfo:x,colorDisabledInfo:b,textColorInfo:m,textColorHoverInfo:m,textColorPressedInfo:m,textColorFocusInfo:m,textColorDisabledInfo:m,textColorTextInfo:b,textColorTextHoverInfo:x,textColorTextPressedInfo:y,textColorTextFocusInfo:x,textColorTextDisabledInfo:d,textColorGhostInfo:b,textColorGhostHoverInfo:x,textColorGhostPressedInfo:y,textColorGhostFocusInfo:x,textColorGhostDisabledInfo:b,borderInfo:`1px solid ${b}`,borderHoverInfo:`1px solid ${x}`,borderPressedInfo:`1px solid ${y}`,borderFocusInfo:`1px solid ${x}`,borderDisabledInfo:`1px solid ${b}`,rippleColorInfo:b,colorSuccess:w,colorHoverSuccess:C,colorPressedSuccess:S,colorFocusSuccess:C,colorDisabledSuccess:w,textColorSuccess:m,textColorHoverSuccess:m,textColorPressedSuccess:m,textColorFocusSuccess:m,textColorDisabledSuccess:m,textColorTextSuccess:w,textColorTextHoverSuccess:C,textColorTextPressedSuccess:S,textColorTextFocusSuccess:C,textColorTextDisabledSuccess:d,textColorGhostSuccess:w,textColorGhostHoverSuccess:C,textColorGhostPressedSuccess:S,textColorGhostFocusSuccess:C,textColorGhostDisabledSuccess:w,borderSuccess:`1px solid ${w}`,borderHoverSuccess:`1px solid ${C}`,borderPressedSuccess:`1px solid ${S}`,borderFocusSuccess:`1px solid ${C}`,borderDisabledSuccess:`1px solid ${w}`,rippleColorSuccess:w,colorWarning:T,colorHoverWarning:P,colorPressedWarning:A,colorFocusWarning:P,colorDisabledWarning:T,textColorWarning:m,textColorHoverWarning:m,textColorPressedWarning:m,textColorFocusWarning:m,textColorDisabledWarning:m,textColorTextWarning:T,textColorTextHoverWarning:P,textColorTextPressedWarning:A,textColorTextFocusWarning:P,textColorTextDisabledWarning:d,textColorGhostWarning:T,textColorGhostHoverWarning:P,textColorGhostPressedWarning:A,textColorGhostFocusWarning:P,textColorGhostDisabledWarning:T,borderWarning:`1px solid ${T}`,borderHoverWarning:`1px solid ${P}`,borderPressedWarning:`1px solid ${A}`,borderFocusWarning:`1px solid ${P}`,borderDisabledWarning:`1px solid ${T}`,rippleColorWarning:T,colorError:I,colorHoverError:B,colorPressedError:D,colorFocusError:B,colorDisabledError:I,textColorError:m,textColorHoverError:m,textColorPressedError:m,textColorFocusError:m,textColorDisabledError:m,textColorTextError:I,textColorTextHoverError:B,textColorTextPressedError:D,textColorTextFocusError:B,textColorTextDisabledError:d,textColorGhostError:I,textColorGhostHoverError:B,textColorGhostPressedError:D,textColorGhostFocusError:B,textColorGhostDisabledError:I,borderError:`1px solid ${I}`,borderHoverError:`1px solid ${B}`,borderPressedError:`1px solid ${D}`,borderFocusError:`1px solid ${B}`,borderDisabledError:`1px solid ${I}`,rippleColorError:I,waveOpacity:"0.6",fontWeight:U,fontWeightStrong:ae})},m7={name:"Button",common:ke,self:v_},Wr=m7,v7={name:"Button",common:Ae,self(e){const t=v_(e);return t.waveOpacity="0.8",t.colorOpacitySecondary="0.16",t.colorOpacitySecondaryHover="0.2",t.colorOpacitySecondaryPressed="0.12",t}},Zr=v7,b7=q([N("button",`
|
||
margin: 0;
|
||
font-weight: var(--n-font-weight);
|
||
line-height: 1;
|
||
font-family: inherit;
|
||
padding: var(--n-padding);
|
||
height: var(--n-height);
|
||
font-size: var(--n-font-size);
|
||
border-radius: var(--n-border-radius);
|
||
color: var(--n-text-color);
|
||
background-color: var(--n-color);
|
||
width: var(--n-width);
|
||
white-space: nowrap;
|
||
outline: none;
|
||
position: relative;
|
||
z-index: auto;
|
||
border: none;
|
||
display: inline-flex;
|
||
flex-wrap: nowrap;
|
||
flex-shrink: 0;
|
||
align-items: center;
|
||
justify-content: center;
|
||
user-select: none;
|
||
-webkit-user-select: none;
|
||
text-align: center;
|
||
cursor: pointer;
|
||
text-decoration: none;
|
||
transition:
|
||
color .3s var(--n-bezier),
|
||
background-color .3s var(--n-bezier),
|
||
opacity .3s var(--n-bezier),
|
||
border-color .3s var(--n-bezier);
|
||
`,[Q("color",[Z("border",{borderColor:"var(--n-border-color)"}),Q("disabled",[Z("border",{borderColor:"var(--n-border-color-disabled)"})]),ir("disabled",[q("&:focus",[Z("state-border",{borderColor:"var(--n-border-color-focus)"})]),q("&:hover",[Z("state-border",{borderColor:"var(--n-border-color-hover)"})]),q("&:active",[Z("state-border",{borderColor:"var(--n-border-color-pressed)"})]),Q("pressed",[Z("state-border",{borderColor:"var(--n-border-color-pressed)"})])])]),Q("disabled",{backgroundColor:"var(--n-color-disabled)",color:"var(--n-text-color-disabled)"},[Z("border",{border:"var(--n-border-disabled)"})]),ir("disabled",[q("&:focus",{backgroundColor:"var(--n-color-focus)",color:"var(--n-text-color-focus)"},[Z("state-border",{border:"var(--n-border-focus)"})]),q("&:hover",{backgroundColor:"var(--n-color-hover)",color:"var(--n-text-color-hover)"},[Z("state-border",{border:"var(--n-border-hover)"})]),q("&:active",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[Z("state-border",{border:"var(--n-border-pressed)"})]),Q("pressed",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[Z("state-border",{border:"var(--n-border-pressed)"})])]),Q("loading","cursor: wait;"),N("base-wave",`
|
||
pointer-events: none;
|
||
top: 0;
|
||
right: 0;
|
||
bottom: 0;
|
||
left: 0;
|
||
animation-iteration-count: 1;
|
||
animation-duration: var(--n-ripple-duration);
|
||
animation-timing-function: var(--n-bezier-ease-out), var(--n-bezier-ease-out);
|
||
`,[Q("active",{zIndex:1,animationName:"button-wave-spread, button-wave-opacity"})]),wo&&"MozBoxSizing"in document.createElement("div").style?q("&::moz-focus-inner",{border:0}):null,Z("border, state-border",`
|
||
position: absolute;
|
||
left: 0;
|
||
top: 0;
|
||
right: 0;
|
||
bottom: 0;
|
||
border-radius: inherit;
|
||
transition: border-color .3s var(--n-bezier);
|
||
pointer-events: none;
|
||
`),Z("border",{border:"var(--n-border)"}),Z("state-border",{border:"var(--n-border)",borderColor:"#0000",zIndex:1}),Z("icon",`
|
||
margin: var(--n-icon-margin);
|
||
margin-left: 0;
|
||
height: var(--n-icon-size);
|
||
width: var(--n-icon-size);
|
||
max-width: var(--n-icon-size);
|
||
font-size: var(--n-icon-size);
|
||
position: relative;
|
||
flex-shrink: 0;
|
||
`,[N("icon-slot",`
|
||
height: var(--n-icon-size);
|
||
width: var(--n-icon-size);
|
||
position: absolute;
|
||
left: 0;
|
||
top: 50%;
|
||
transform: translateY(-50%);
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
`,[Bl({top:"50%",originalTransform:"translateY(-50%)"})]),m9()]),Z("content",`
|
||
display: flex;
|
||
align-items: center;
|
||
flex-wrap: nowrap;
|
||
min-width: 0;
|
||
`,[q("~",[Z("icon",{margin:"var(--n-icon-margin)",marginRight:0})])]),Q("block",`
|
||
display: flex;
|
||
width: 100%;
|
||
`),Q("dashed",[Z("border, state-border",{borderStyle:"dashed !important"})]),Q("disabled",{cursor:"not-allowed",opacity:"var(--n-opacity-disabled)"})]),q("@keyframes button-wave-spread",{from:{boxShadow:"0 0 0.5px 0 var(--n-ripple-color)"},to:{boxShadow:"0 0 0.5px 4.5px var(--n-ripple-color)"}}),q("@keyframes button-wave-opacity",{from:{opacity:"var(--n-wave-opacity)"},to:{opacity:0}})]),x7=Object.assign(Object.assign({},ze.props),{color:String,textColor:String,text:Boolean,block:Boolean,loading:Boolean,disabled:Boolean,circle:Boolean,size:String,ghost:Boolean,round:Boolean,secondary:Boolean,tertiary:Boolean,quaternary:Boolean,strong:Boolean,focusable:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},tag:{type:String,default:"button"},type:{type:String,default:"default"},dashed:Boolean,renderIcon:Function,iconPlacement:{type:String,default:"left"},attrType:{type:String,default:"button"},bordered:{type:Boolean,default:!0},onClick:[Function,Array],nativeFocusBehavior:{type:Boolean,default:!i_}}),b_=me({name:"Button",props:x7,setup(e){const t=z(null),r=z(null),n=z(!1),o=Rr(()=>!e.quaternary&&!e.tertiary&&!e.secondary&&!e.text&&(!e.color||e.ghost||e.dashed)&&e.bordered),i=Me(m_,{}),{mergedSizeRef:a}=Ed({},{defaultSize:"medium",mergedSize:y=>{const{size:w}=e;if(w)return w;const{size:C}=i;if(C)return C;const{mergedSize:S}=y||{};return S?S.value:"medium"}}),s=R(()=>e.focusable&&!e.disabled),l=y=>{var w;s.value||y.preventDefault(),!e.nativeFocusBehavior&&(y.preventDefault(),!e.disabled&&s.value&&((w=t.value)===null||w===void 0||w.focus({preventScroll:!0})))},c=y=>{var w;if(!e.disabled&&!e.loading){const{onClick:C}=e;C&&at(C,y),e.text||(w=r.value)===null||w===void 0||w.play()}},u=y=>{switch(y.key){case"Enter":if(!e.keyboard)return;n.value=!1}},d=y=>{switch(y.key){case"Enter":if(!e.keyboard||e.loading){y.preventDefault();return}n.value=!0}},f=()=>{n.value=!1},{inlineThemeDisabled:p,mergedClsPrefixRef:h,mergedRtlRef:g}=ht(e),v=ze("Button","-button",b7,Wr,e,h),m=an("Button",g,h),b=R(()=>{const y=v.value,{common:{cubicBezierEaseInOut:w,cubicBezierEaseOut:C},self:S}=y,{rippleDuration:T,opacityDisabled:P,fontWeight:A,fontWeightStrong:I}=S,B=a.value,{dashed:D,type:U,ghost:F,text:j,color:K,round:ae,circle:we,textColor:Ce,secondary:X,tertiary:re,quaternary:le,strong:ne}=e,$e={"font-weight":ne?I:A};let Se={"--n-color":"initial","--n-color-hover":"initial","--n-color-pressed":"initial","--n-color-focus":"initial","--n-color-disabled":"initial","--n-ripple-color":"initial","--n-text-color":"initial","--n-text-color-hover":"initial","--n-text-color-pressed":"initial","--n-text-color-focus":"initial","--n-text-color-disabled":"initial"};const ee=U==="tertiary",se=U==="default",ce=ee?"default":U;if(j){const O=Ce||K;Se={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":"#0000","--n-text-color":O||S[ye("textColorText",ce)],"--n-text-color-hover":O?vi(O):S[ye("textColorTextHover",ce)],"--n-text-color-pressed":O?Lc(O):S[ye("textColorTextPressed",ce)],"--n-text-color-focus":O?vi(O):S[ye("textColorTextHover",ce)],"--n-text-color-disabled":O||S[ye("textColorTextDisabled",ce)]}}else if(F||D){const O=Ce||K;Se={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":K||S[ye("rippleColor",ce)],"--n-text-color":O||S[ye("textColorGhost",ce)],"--n-text-color-hover":O?vi(O):S[ye("textColorGhostHover",ce)],"--n-text-color-pressed":O?Lc(O):S[ye("textColorGhostPressed",ce)],"--n-text-color-focus":O?vi(O):S[ye("textColorGhostHover",ce)],"--n-text-color-disabled":O||S[ye("textColorGhostDisabled",ce)]}}else if(X){const O=se?S.textColor:ee?S.textColorTertiary:S[ye("color",ce)],H=K||O,V=U!=="default"&&U!=="tertiary";Se={"--n-color":V?fe(H,{alpha:Number(S.colorOpacitySecondary)}):S.colorSecondary,"--n-color-hover":V?fe(H,{alpha:Number(S.colorOpacitySecondaryHover)}):S.colorSecondaryHover,"--n-color-pressed":V?fe(H,{alpha:Number(S.colorOpacitySecondaryPressed)}):S.colorSecondaryPressed,"--n-color-focus":V?fe(H,{alpha:Number(S.colorOpacitySecondaryHover)}):S.colorSecondaryHover,"--n-color-disabled":S.colorSecondary,"--n-ripple-color":"#0000","--n-text-color":H,"--n-text-color-hover":H,"--n-text-color-pressed":H,"--n-text-color-focus":H,"--n-text-color-disabled":H}}else if(re||le){const O=se?S.textColor:ee?S.textColorTertiary:S[ye("color",ce)],H=K||O;re?(Se["--n-color"]=S.colorTertiary,Se["--n-color-hover"]=S.colorTertiaryHover,Se["--n-color-pressed"]=S.colorTertiaryPressed,Se["--n-color-focus"]=S.colorSecondaryHover,Se["--n-color-disabled"]=S.colorTertiary):(Se["--n-color"]=S.colorQuaternary,Se["--n-color-hover"]=S.colorQuaternaryHover,Se["--n-color-pressed"]=S.colorQuaternaryPressed,Se["--n-color-focus"]=S.colorQuaternaryHover,Se["--n-color-disabled"]=S.colorQuaternary),Se["--n-ripple-color"]="#0000",Se["--n-text-color"]=H,Se["--n-text-color-hover"]=H,Se["--n-text-color-pressed"]=H,Se["--n-text-color-focus"]=H,Se["--n-text-color-disabled"]=H}else Se={"--n-color":K||S[ye("color",ce)],"--n-color-hover":K?vi(K):S[ye("colorHover",ce)],"--n-color-pressed":K?Lc(K):S[ye("colorPressed",ce)],"--n-color-focus":K?vi(K):S[ye("colorFocus",ce)],"--n-color-disabled":K||S[ye("colorDisabled",ce)],"--n-ripple-color":K||S[ye("rippleColor",ce)],"--n-text-color":Ce||(K?S.textColorPrimary:ee?S.textColorTertiary:S[ye("textColor",ce)]),"--n-text-color-hover":Ce||(K?S.textColorHoverPrimary:S[ye("textColorHover",ce)]),"--n-text-color-pressed":Ce||(K?S.textColorPressedPrimary:S[ye("textColorPressed",ce)]),"--n-text-color-focus":Ce||(K?S.textColorFocusPrimary:S[ye("textColorFocus",ce)]),"--n-text-color-disabled":Ce||(K?S.textColorDisabledPrimary:S[ye("textColorDisabled",ce)])};let xe={"--n-border":"initial","--n-border-hover":"initial","--n-border-pressed":"initial","--n-border-focus":"initial","--n-border-disabled":"initial"};j?xe={"--n-border":"none","--n-border-hover":"none","--n-border-pressed":"none","--n-border-focus":"none","--n-border-disabled":"none"}:xe={"--n-border":S[ye("border",ce)],"--n-border-hover":S[ye("borderHover",ce)],"--n-border-pressed":S[ye("borderPressed",ce)],"--n-border-focus":S[ye("borderFocus",ce)],"--n-border-disabled":S[ye("borderDisabled",ce)]};const{[ye("height",B)]:Te,[ye("fontSize",B)]:Pe,[ye("padding",B)]:_,[ye("paddingRound",B)]:E,[ye("iconSize",B)]:$,[ye("borderRadius",B)]:L,[ye("iconMargin",B)]:M,waveOpacity:J}=S,oe={"--n-width":we&&!j?Te:"initial","--n-height":j?"initial":Te,"--n-font-size":Pe,"--n-padding":we||j?"initial":ae?E:_,"--n-icon-size":$,"--n-icon-margin":M,"--n-border-radius":j?"initial":we||ae?Te:L};return Object.assign(Object.assign(Object.assign(Object.assign({"--n-bezier":w,"--n-bezier-ease-out":C,"--n-ripple-duration":T,"--n-opacity-disabled":P,"--n-wave-opacity":J},$e),Se),xe),oe)}),x=p?tr("button",R(()=>{let y="";const{dashed:w,type:C,ghost:S,text:T,color:P,round:A,circle:I,textColor:B,secondary:D,tertiary:U,quaternary:F,strong:j}=e;w&&(y+="a"),S&&(y+="b"),T&&(y+="c"),A&&(y+="d"),I&&(y+="e"),D&&(y+="f"),U&&(y+="g"),F&&(y+="h"),j&&(y+="i"),P&&(y+="j"+_l(P)),B&&(y+="k"+_l(B));const{value:K}=a;return y+="l"+K[0],y+="m"+C[0],y}),b,e):void 0;return{selfElRef:t,waveElRef:r,mergedClsPrefix:h,mergedFocusable:s,mergedSize:a,showBorder:o,enterPressed:n,rtlEnabled:m,handleMousedown:l,handleKeydown:d,handleBlur:f,handleKeyup:u,handleClick:c,customColorCssVars:R(()=>{const{color:y}=e;if(!y)return null;const w=vi(y);return{"--n-border-color":y,"--n-border-color-hover":w,"--n-border-color-pressed":Lc(y),"--n-border-color-focus":w,"--n-border-color-disabled":y}}),cssVars:p?void 0:b,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender}},render(){const{mergedClsPrefix:e,tag:t,onRender:r}=this;r==null||r();const n=Ft(this.$slots.default,o=>o&&k("span",{class:`${e}-button__content`},o));return k(t,{ref:"selfElRef",class:[this.themeClass,`${e}-button`,`${e}-button--${this.type}-type`,`${e}-button--${this.mergedSize}-type`,this.rtlEnabled&&`${e}-button--rtl`,this.disabled&&`${e}-button--disabled`,this.block&&`${e}-button--block`,this.enterPressed&&`${e}-button--pressed`,!this.text&&this.dashed&&`${e}-button--dashed`,this.color&&`${e}-button--color`,this.secondary&&`${e}-button--secondary`,this.loading&&`${e}-button--loading`,this.ghost&&`${e}-button--ghost`],tabindex:this.mergedFocusable?0:-1,type:this.attrType,style:this.cssVars,disabled:this.disabled,onClick:this.handleClick,onBlur:this.handleBlur,onMousedown:this.handleMousedown,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},this.iconPlacement==="right"&&n,k(Og,{width:!0},{default:()=>Ft(this.$slots.icon,o=>(this.loading||this.renderIcon||o)&&k("span",{class:`${e}-button__icon`,style:{margin:Sh(this.$slots.default)?"0":""}},k(Bd,null,{default:()=>this.loading?k(Dd,{clsPrefix:e,key:"loading",class:`${e}-icon-slot`,strokeWidth:20}):k("div",{key:"icon",class:`${e}-icon-slot`,role:"none"},this.renderIcon?this.renderIcon():o)})))}),this.iconPlacement==="left"&&n,this.text?null:k(GM,{ref:"waveElRef",clsPrefix:e}),this.showBorder?k("div",{"aria-hidden":!0,class:`${e}-button__border`,style:this.customColorCssVars}):null,this.showBorder?k("div",{"aria-hidden":!0,class:`${e}-button__state-border`,style:this.customColorCssVars}):null)}}),qt=b_,Ude=b_,Xt="0!important",x_="-1px!important";function ma(e){return Q(e+"-type",[q("& +",[N("button",{},[Q(e+"-type",[Z("border",{borderLeftWidth:Xt}),Z("state-border",{left:x_})])])])])}function va(e){return Q(e+"-type",[q("& +",[N("button",[Q(e+"-type",[Z("border",{borderTopWidth:Xt}),Z("state-border",{top:x_})])])])])}const y7=N("button-group",`
|
||
flex-wrap: nowrap;
|
||
display: inline-flex;
|
||
position: relative;
|
||
`,[ir("vertical",{flexDirection:"row"},[ir("rtl",[N("button",[q("&:first-child:not(:last-child)",`
|
||
margin-right: ${Xt};
|
||
border-top-right-radius: ${Xt};
|
||
border-bottom-right-radius: ${Xt};
|
||
`),q("&:last-child:not(:first-child)",`
|
||
margin-left: ${Xt};
|
||
border-top-left-radius: ${Xt};
|
||
border-bottom-left-radius: ${Xt};
|
||
`),q("&:not(:first-child):not(:last-child)",`
|
||
margin-left: ${Xt};
|
||
margin-right: ${Xt};
|
||
border-radius: ${Xt};
|
||
`),ma("default"),Q("ghost",[ma("primary"),ma("info"),ma("success"),ma("warning"),ma("error")])])])]),Q("vertical",{flexDirection:"column"},[N("button",[q("&:first-child:not(:last-child)",`
|
||
margin-bottom: ${Xt};
|
||
margin-left: ${Xt};
|
||
margin-right: ${Xt};
|
||
border-bottom-left-radius: ${Xt};
|
||
border-bottom-right-radius: ${Xt};
|
||
`),q("&:last-child:not(:first-child)",`
|
||
margin-top: ${Xt};
|
||
margin-left: ${Xt};
|
||
margin-right: ${Xt};
|
||
border-top-left-radius: ${Xt};
|
||
border-top-right-radius: ${Xt};
|
||
`),q("&:not(:first-child):not(:last-child)",`
|
||
margin: ${Xt};
|
||
border-radius: ${Xt};
|
||
`),va("default"),Q("ghost",[va("primary"),va("info"),va("success"),va("warning"),va("error")])])])]),C7={size:{type:String,default:void 0},vertical:Boolean},w7=me({name:"ButtonGroup",props:C7,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:r}=ht(e);return ea("-button-group",y7,t),dt(m_,e),{rtlEnabled:an("ButtonGroup",r,t),mergedClsPrefix:t}},render(){const{mergedClsPrefix:e}=this;return k("div",{class:[`${e}-button-group`,this.rtlEnabled&&`${e}-button-group--rtl`,this.vertical&&`${e}-button-group--vertical`],role:"group"},this.$slots)}}),S7={date:IF,month:Id,year:lM,quarter:sM};function _7(e){return(t,r)=>{const n=(e+1)%7;return aM(t,r,{weekStartsOn:n})}}function fn(e,t,r,n=0){return(r==="week"?_7(n):S7[r])(e,t)}function Gf(e,t,r,n,o,i){return o==="date"?E7(e,t,r,n):T7(e,t,r,n,i)}function E7(e,t,r,n){let o=!1,i=!1,a=!1;Array.isArray(r)&&(r[0]<e&&e<r[1]&&(o=!0),fn(r[0],e,"date")&&(i=!0),fn(r[1],e,"date")&&(a=!0));const s=r!==null&&(Array.isArray(r)?fn(r[0],e,"date")||fn(r[1],e,"date"):fn(r,e,"date"));return{type:"date",dateObject:{date:zS(e),month:Un(e),year:jo(e)},inCurrentMonth:Id(e,t),isCurrentDate:fn(n,e,"date"),inSpan:o,inSelectedWeek:!1,startOfSpan:i,endOfSpan:a,selected:s,ts:Ei(e)}}function T7(e,t,r,n,o){let i=!1,a=!1,s=!1;Array.isArray(r)&&(r[0]<e&&e<r[1]&&(i=!0),fn(r[0],e,"week",o)&&(a=!0),fn(r[1],e,"week",o)&&(s=!0));const l=r!==null&&(Array.isArray(r)?fn(r[0],e,"week",o)||fn(r[1],e,"week",o):fn(r,e,"week",o));return{type:"date",dateObject:{date:zS(e),month:Un(e),year:jo(e)},inCurrentMonth:Id(e,t),isCurrentDate:fn(n,e,"date"),inSpan:i,startOfSpan:a,endOfSpan:s,selected:!1,inSelectedWeek:l,ts:Ei(e)}}function k7(e,t,r,n,o=!1,i=!1){const a=i?"week":"date",s=Un(e);let l=Ei(su(e)),c=Ei(Oc(l,-1));const u=[];let d=!o;for(;iM(c)!==n||d;)u.unshift(Gf(c,e,t,r,a,n)),c=Ei(Oc(c,-1)),d=!1;for(;Un(l)===s;)u.push(Gf(l,e,t,r,a,n)),l=Ei(Oc(l,1));const f=o?u.length<=28?28:u.length<=35?35:42:42;for(;u.length<f;)u.push(Gf(l,e,t,r,a,n)),l=Ei(Oc(l,1));return u}const A7={titleFontSize:"22px"},y_=e=>{const{borderRadius:t,fontSize:r,lineHeight:n,textColor2:o,textColor1:i,textColorDisabled:a,dividerColor:s,fontWeightStrong:l,primaryColor:c,baseColor:u,hoverColor:d,cardColor:f,modalColor:p,popoverColor:h}=e;return Object.assign(Object.assign({},A7),{borderRadius:t,borderColor:Oe(f,s),borderColorModal:Oe(p,s),borderColorPopover:Oe(h,s),textColor:o,titleFontWeight:l,titleTextColor:i,dayTextColor:a,fontSize:r,lineHeight:n,dateColorCurrent:c,dateTextColorCurrent:u,cellColorHover:Oe(f,d),cellColorHoverModal:Oe(p,d),cellColorHoverPopover:Oe(h,d),cellColor:f,cellColorModal:p,cellColorPopover:h,barColor:c})},P7={name:"Calendar",common:ke,peers:{Button:Wr},self:y_},C_=P7,$7={name:"Calendar",common:Ae,peers:{Button:Zr},self:y_},I7=$7,B7=q([N("calendar",`
|
||
line-height: var(--n-line-height);
|
||
font-size: var(--n-font-size);
|
||
color: var(--n-text-color);
|
||
height: 720px;
|
||
display: flex;
|
||
flex-direction: column;
|
||
`,[N("calendar-prev-btn",`
|
||
cursor: pointer;
|
||
`),N("calendar-next-btn",`
|
||
cursor: pointer;
|
||
`),N("calendar-header",`
|
||
display: flex;
|
||
align-items: center;
|
||
line-height: 1;
|
||
font-size: var(--n-title-font-size);
|
||
padding: 0 0 18px 0;
|
||
justify-content: space-between;
|
||
`,[Z("title",`
|
||
color: var(--n-title-text-color);
|
||
font-weight: var(--n-title-font-weight);
|
||
transition: color .3s var(--n-bezier);
|
||
`),Z("extra",`
|
||
display: flex;
|
||
align-items: center;
|
||
`)]),N("calendar-dates",`
|
||
display: grid;
|
||
grid-template-columns: repeat(7, minmax(0, 1fr));
|
||
grid-auto-rows: 1fr;
|
||
border-radius: var(--n-border-radius);
|
||
flex: 1;
|
||
border-top: 1px solid;
|
||
border-left: 1px solid;
|
||
border-color: var(--n-border-color);
|
||
transition: border-color .3s var(--n-bezier);
|
||
`),N("calendar-cell",`
|
||
box-sizing: border-box;
|
||
padding: 10px;
|
||
border-right: 1px solid;
|
||
border-bottom: 1px solid;
|
||
border-color: var(--n-border-color);
|
||
cursor: pointer;
|
||
position: relative;
|
||
transition:
|
||
color .3s var(--n-bezier),
|
||
border-color .3s var(--n-bezier),
|
||
background-color .3s var(--n-bezier);
|
||
`,[q("&:nth-child(7)",`
|
||
border-top-right-radius: var(--n-border-radius);
|
||
`),q("&:nth-last-child(7)",`
|
||
border-bottom-left-radius: var(--n-border-radius);
|
||
`),q("&:last-child",`
|
||
border-bottom-right-radius: var(--n-border-radius);
|
||
`),q("&:hover",`
|
||
background-color: var(--n-cell-color-hover);
|
||
`),Z("bar",`
|
||
position: absolute;
|
||
left: 0;
|
||
right: 0;
|
||
bottom: -1px;
|
||
height: 3px;
|
||
background-color: #0000;
|
||
transition: background-color .3s var(--n-bezier);
|
||
`),Q("selected",[Z("bar",`
|
||
background-color: var(--n-bar-color);
|
||
`)]),N("calendar-date",`
|
||
transition:
|
||
color .3s var(--n-bezier),
|
||
border-color .3s var(--n-bezier),
|
||
background-color .3s var(--n-bezier);
|
||
color: var(--n-text-color);
|
||
`,[Z("date",`
|
||
color: var(--n-text-color);
|
||
`)]),Q("disabled, other-month",`
|
||
color: var(--n-day-text-color);
|
||
`,[N("calendar-date",[Z("date",`
|
||
color: var(--n-day-text-color);
|
||
`)])]),Q("disabled",`
|
||
cursor: not-allowed;
|
||
`),Q("current",[N("calendar-date",[Z("date",`
|
||
color: var(--n-date-text-color-current);
|
||
background-color: var(--n-date-color-current);
|
||
`)])]),N("calendar-date",`
|
||
position: relative;
|
||
line-height: 1;
|
||
display: flex;
|
||
align-items: center;
|
||
height: 1em;
|
||
justify-content: space-between;
|
||
padding-bottom: .75em;
|
||
`,[Z("date",`
|
||
border-radius: 50%;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
margin-left: -0.4em;
|
||
width: 1.8em;
|
||
height: 1.8em;
|
||
transition:
|
||
color .3s var(--n-bezier),
|
||
background-color .3s var(--n-bezier);
|
||
`),Z("day",`
|
||
color: var(--n-day-text-color);
|
||
transition: color .3s var(--n-bezier);
|
||
`)])])]),wd(N("calendar",[N("calendar-dates",`
|
||
border-color: var(--n-border-color-modal);
|
||
`),N("calendar-cell",`
|
||
border-color: var(--n-border-color-modal);
|
||
`,[q("&:hover",`
|
||
background-color: var(--n-cell-color-hover-modal);
|
||
`)])])),hg(N("calendar",[N("calendar-dates",`
|
||
border-color: var(--n-border-color-popover);
|
||
`),N("calendar-cell",`
|
||
border-color: var(--n-border-color-popover);
|
||
`,[q("&:hover",`
|
||
background-color: var(--n-cell-color-hover-popover);
|
||
`)])]))]),D7=Object.assign(Object.assign({},ze.props),{isDateDisabled:Function,value:Number,defaultValue:{type:Number,default:null},onPanelChange:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),O7=me({name:"Calendar",props:D7,setup(e){var t;const{mergedClsPrefixRef:r,inlineThemeDisabled:n}=ht(e),o=ze("Calendar","-calendar",B7,C_,e,r),{localeRef:i,dateLocaleRef:a}=Dg("DatePicker"),s=Date.now(),l=z(su((t=e.defaultValue)!==null&&t!==void 0?t:s).valueOf()),c=z(e.defaultValue||null),u=vs(nt(e,"value"),c);function d(m,b){const{onUpdateValue:x,"onUpdate:value":y}=e;x&&at(x,m,b),y&&at(y,m,b),c.value=m}function f(){var m;const b=e1(l.value,-1).valueOf();l.value=b,(m=e.onPanelChange)===null||m===void 0||m.call(e,{year:jo(b),month:Un(b)+1})}function p(){var m;const b=e1(l.value,1).valueOf();l.value=b,(m=e.onPanelChange)===null||m===void 0||m.call(e,{year:jo(b),month:Un(b)+1})}function h(){var m;const{value:b}=l,x=jo(b),y=Un(b),w=su(s).valueOf();l.value=w;const C=jo(w),S=Un(w);(x!==C||y!==S)&&((m=e.onPanelChange)===null||m===void 0||m.call(e,{year:C,month:S+1}))}const g=R(()=>{const{common:{cubicBezierEaseInOut:m},self:{borderColor:b,borderColorModal:x,borderColorPopover:y,borderRadius:w,titleFontSize:C,textColor:S,titleFontWeight:T,titleTextColor:P,dayTextColor:A,fontSize:I,lineHeight:B,dateColorCurrent:D,dateTextColorCurrent:U,cellColorHover:F,cellColor:j,cellColorModal:K,barColor:ae,cellColorPopover:we,cellColorHoverModal:Ce,cellColorHoverPopover:X}}=o.value;return{"--n-bezier":m,"--n-border-color":b,"--n-border-color-modal":x,"--n-border-color-popover":y,"--n-border-radius":w,"--n-text-color":S,"--n-title-font-weight":T,"--n-title-font-size":C,"--n-title-text-color":P,"--n-day-text-color":A,"--n-font-size":I,"--n-line-height":B,"--n-date-color-current":D,"--n-date-text-color-current":U,"--n-cell-color":j,"--n-cell-color-modal":K,"--n-cell-color-popover":we,"--n-cell-color-hover":F,"--n-cell-color-hover-modal":Ce,"--n-cell-color-hover-popover":X,"--n-bar-color":ae}}),v=n?tr("calendar",void 0,g,e):void 0;return{mergedClsPrefix:r,locale:i,dateLocale:a,now:s,mergedValue:u,monthTs:l,dateItems:R(()=>k7(l.value,u.value,s,i.value.firstDayOfWeek,!0)),doUpdateValue:d,handleTodayClick:h,handlePrevClick:f,handleNextClick:p,mergedTheme:o,cssVars:n?void 0:g,themeClass:v==null?void 0:v.themeClass,onRender:v==null?void 0:v.onRender}},render(){const{isDateDisabled:e,mergedClsPrefix:t,monthTs:r,cssVars:n,mergedValue:o,mergedTheme:i,$slots:a,locale:{monthBeforeYear:s,today:l},dateLocale:{locale:c},handleTodayClick:u,handlePrevClick:d,handleNextClick:f,onRender:p}=this;p==null||p();const h=o&&Uu(o).valueOf(),g=jo(r),v=Un(r)+1;return k("div",{class:[`${t}-calendar`,this.themeClass],style:n},k("div",{class:`${t}-calendar-header`},k("div",{class:`${t}-calendar-header__title`},g2(a.header,{year:g,month:v},()=>{const m=Hf(r,"MMMM",{locale:c});return[s?`${m} ${g}`:`${g} ${m}`]})),k("div",{class:`${t}-calendar-header__extra`},k(w7,null,{default:()=>k(st,null,k(qt,{size:"small",onClick:d,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button},{icon:()=>k(or,{clsPrefix:t,class:`${t}-calendar-prev-btn`},{default:()=>k(dM,null)})}),k(qt,{size:"small",onClick:u,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button},{default:()=>l}),k(qt,{size:"small",onClick:f,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button},{icon:()=>k(or,{clsPrefix:t,class:`${t}-calendar-next-btn`},{default:()=>k(fM,null)})}))}))),k("div",{class:`${t}-calendar-dates`},this.dateItems.map(({dateObject:m,ts:b,inCurrentMonth:x,isCurrentDate:y},w)=>{var C;const{year:S,month:T,date:P}=m,A=Hf(b,"yyyy-MM-dd"),I=!x,B=(e==null?void 0:e(b))===!0,D=h===Uu(b).valueOf();return k("div",{key:`${v}-${w}`,class:[`${t}-calendar-cell`,B&&`${t}-calendar-cell--disabled`,I&&`${t}-calendar-cell--other-month`,B&&`${t}-calendar-cell--not-allowed`,y&&`${t}-calendar-cell--current`,D&&`${t}-calendar-cell--selected`],onClick:()=>{var U;if(B)return;const F=su(b).valueOf();this.monthTs=F,I&&((U=this.onPanelChange)===null||U===void 0||U.call(this,{year:jo(F),month:Un(F)+1})),this.doUpdateValue(b,{year:S,month:T+1,date:P})}},k("div",{class:`${t}-calendar-date`},k("div",{class:`${t}-calendar-date__date`,title:A},P),w<7&&k("div",{class:`${t}-calendar-date__day`,title:A},Hf(b,"EEE",{locale:c}))),(C=a.default)===null||C===void 0?void 0:C.call(a,{year:S,month:T+1,date:P}),k("div",{class:`${t}-calendar-cell__bar`}))})))}}),w_=e=>{const{fontSize:t,boxShadow2:r,popoverColor:n,textColor2:o,borderRadius:i,borderColor:a,heightSmall:s,heightMedium:l,heightLarge:c,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:f,dividerColor:p}=e;return{panelFontSize:t,boxShadow:r,color:n,textColor:o,borderRadius:i,border:`1px solid ${a}`,heightSmall:s,heightMedium:l,heightLarge:c,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:f,dividerColor:p}},R7={name:"ColorPicker",common:ke,peers:{Input:sn,Button:Wr},self:w_},L7=R7,F7={name:"ColorPicker",common:Ae,peers:{Input:wn,Button:Zr},self:w_},M7=F7,z7={paddingSmall:"12px 16px 12px",paddingMedium:"19px 24px 20px",paddingLarge:"23px 32px 24px",paddingHuge:"27px 40px 28px",titleFontSizeSmall:"16px",titleFontSizeMedium:"18px",titleFontSizeLarge:"18px",titleFontSizeHuge:"18px",closeIconSize:"18px",closeSize:"22px"},S_=e=>{const{primaryColor:t,borderRadius:r,lineHeight:n,fontSize:o,cardColor:i,textColor2:a,textColor1:s,dividerColor:l,fontWeightStrong:c,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,closeColorHover:p,closeColorPressed:h,modalColor:g,boxShadow1:v,popoverColor:m,actionColor:b}=e;return Object.assign(Object.assign({},z7),{lineHeight:n,color:i,colorModal:g,colorPopover:m,colorTarget:t,colorEmbedded:b,colorEmbeddedModal:b,colorEmbeddedPopover:b,textColor:a,titleTextColor:s,borderColor:l,actionColor:b,titleFontWeight:c,closeColorHover:p,closeColorPressed:h,closeBorderRadius:r,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,fontSizeSmall:o,fontSizeMedium:o,fontSizeLarge:o,fontSizeHuge:o,boxShadow:v,borderRadius:r})},N7={name:"Card",common:ke,self:S_},zg=N7,H7={name:"Card",common:Ae,self(e){const t=S_(e),{cardColor:r,modalColor:n,popoverColor:o}=e;return t.colorEmbedded=r,t.colorEmbeddedModal=n,t.colorEmbeddedPopover=o,t}},__=H7,j7=q([N("card",`
|
||
font-size: var(--n-font-size);
|
||
line-height: var(--n-line-height);
|
||
display: flex;
|
||
flex-direction: column;
|
||
width: 100%;
|
||
box-sizing: border-box;
|
||
position: relative;
|
||
border-radius: var(--n-border-radius);
|
||
background-color: var(--n-color);
|
||
color: var(--n-text-color);
|
||
word-break: break-word;
|
||
transition:
|
||
color .3s var(--n-bezier),
|
||
background-color .3s var(--n-bezier),
|
||
box-shadow .3s var(--n-bezier),
|
||
border-color .3s var(--n-bezier);
|
||
`,[S2({background:"var(--n-color-modal)"}),Q("hoverable",[q("&:hover","box-shadow: var(--n-box-shadow);")]),Q("content-segmented",[q(">",[Z("content",{paddingTop:"var(--n-padding-bottom)"})])]),Q("content-soft-segmented",[q(">",[Z("content",`
|
||
margin: 0 var(--n-padding-left);
|
||
padding: var(--n-padding-bottom) 0;
|
||
`)])]),Q("footer-segmented",[q(">",[Z("footer",{paddingTop:"var(--n-padding-bottom)"})])]),Q("footer-soft-segmented",[q(">",[Z("footer",`
|
||
padding: var(--n-padding-bottom) 0;
|
||
margin: 0 var(--n-padding-left);
|
||
`)])]),q(">",[N("card-header",`
|
||
box-sizing: border-box;
|
||
display: flex;
|
||
align-items: center;
|
||
font-size: var(--n-title-font-size);
|
||
padding:
|
||
var(--n-padding-top)
|
||
var(--n-padding-left)
|
||
var(--n-padding-bottom)
|
||
var(--n-padding-left);
|
||
`,[Z("main",`
|
||
font-weight: var(--n-title-font-weight);
|
||
transition: color .3s var(--n-bezier);
|
||
flex: 1;
|
||
min-width: 0;
|
||
color: var(--n-title-text-color);
|
||
`),Z("extra",`
|
||
display: flex;
|
||
align-items: center;
|
||
font-size: var(--n-font-size);
|
||
font-weight: 400;
|
||
transition: color .3s var(--n-bezier);
|
||
color: var(--n-text-color);
|
||
`),Z("close",`
|
||
margin: 0 0 0 8px;
|
||
transition:
|
||
background-color .3s var(--n-bezier),
|
||
color .3s var(--n-bezier);
|
||
`)]),Z("action",`
|
||
box-sizing: border-box;
|
||
transition:
|
||
background-color .3s var(--n-bezier),
|
||
border-color .3s var(--n-bezier);
|
||
background-clip: padding-box;
|
||
background-color: var(--n-action-color);
|
||
`),Z("content","flex: 1; min-width: 0;"),Z("content, footer",`
|
||
box-sizing: border-box;
|
||
padding: 0 var(--n-padding-left) var(--n-padding-bottom) var(--n-padding-left);
|
||
font-size: var(--n-font-size);
|
||
`,[q("&:first-child",{paddingTop:"var(--n-padding-bottom)"})]),Z("action",`
|
||
background-color: var(--n-action-color);
|
||
padding: var(--n-padding-bottom) var(--n-padding-left);
|
||
border-bottom-left-radius: var(--n-border-radius);
|
||
border-bottom-right-radius: var(--n-border-radius);
|
||
`)]),N("card-cover",`
|
||
overflow: hidden;
|
||
width: 100%;
|
||
border-radius: var(--n-border-radius) var(--n-border-radius) 0 0;
|
||
`,[q("img",`
|
||
display: block;
|
||
width: 100%;
|
||
`)]),Q("bordered",`
|
||
border: 1px solid var(--n-border-color);
|
||
`,[q("&:target","border-color: var(--n-color-target);")]),Q("action-segmented",[q(">",[Z("action",[q("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),Q("content-segmented, content-soft-segmented",[q(">",[Z("content",{transition:"border-color 0.3s var(--n-bezier)"},[q("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),Q("footer-segmented, footer-soft-segmented",[q(">",[Z("footer",{transition:"border-color 0.3s var(--n-bezier)"},[q("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),Q("embedded",`
|
||
background-color: var(--n-color-embedded);
|
||
`)]),wd(N("card",`
|
||
background: var(--n-color-modal);
|
||
`,[Q("embedded",`
|
||
background-color: var(--n-color-embedded-modal);
|
||
`)])),hg(N("card",`
|
||
background: var(--n-color-popover);
|
||
`,[Q("embedded",`
|
||
background-color: var(--n-color-embedded-popover);
|
||
`)]))]),Ng={title:String,contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],headerExtraClass:String,headerExtraStyle:[Object,String],footerClass:String,footerStyle:[Object,String],embedded:Boolean,segmented:{type:[Boolean,Object],default:!1},size:{type:String,default:"medium"},bordered:{type:Boolean,default:!0},closable:Boolean,hoverable:Boolean,role:String,onClose:[Function,Array],tag:{type:String,default:"div"}},W7=Ga(Ng),U7=Object.assign(Object.assign({},ze.props),Ng),Od=me({name:"Card",props:U7,setup(e){const t=()=>{const{onClose:c}=e;c&&at(c)},{inlineThemeDisabled:r,mergedClsPrefixRef:n,mergedRtlRef:o}=ht(e),i=ze("Card","-card",j7,zg,e,n),a=an("Card",o,n),s=R(()=>{const{size:c}=e,{self:{color:u,colorModal:d,colorTarget:f,textColor:p,titleTextColor:h,titleFontWeight:g,borderColor:v,actionColor:m,borderRadius:b,lineHeight:x,closeIconColor:y,closeIconColorHover:w,closeIconColorPressed:C,closeColorHover:S,closeColorPressed:T,closeBorderRadius:P,closeIconSize:A,closeSize:I,boxShadow:B,colorPopover:D,colorEmbedded:U,colorEmbeddedModal:F,colorEmbeddedPopover:j,[ye("padding",c)]:K,[ye("fontSize",c)]:ae,[ye("titleFontSize",c)]:we},common:{cubicBezierEaseInOut:Ce}}=i.value,{top:X,left:re,bottom:le}=Yn(K);return{"--n-bezier":Ce,"--n-border-radius":b,"--n-color":u,"--n-color-modal":d,"--n-color-popover":D,"--n-color-embedded":U,"--n-color-embedded-modal":F,"--n-color-embedded-popover":j,"--n-color-target":f,"--n-text-color":p,"--n-line-height":x,"--n-action-color":m,"--n-title-text-color":h,"--n-title-font-weight":g,"--n-close-icon-color":y,"--n-close-icon-color-hover":w,"--n-close-icon-color-pressed":C,"--n-close-color-hover":S,"--n-close-color-pressed":T,"--n-border-color":v,"--n-box-shadow":B,"--n-padding-top":X,"--n-padding-bottom":le,"--n-padding-left":re,"--n-font-size":ae,"--n-title-font-size":we,"--n-close-size":I,"--n-close-icon-size":A,"--n-close-border-radius":P}}),l=r?tr("card",R(()=>e.size[0]),s,e):void 0;return{rtlEnabled:a,mergedClsPrefix:n,mergedTheme:i,handleCloseClick:t,cssVars:r?void 0:s,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){const{segmented:e,bordered:t,hoverable:r,mergedClsPrefix:n,rtlEnabled:o,onRender:i,embedded:a,tag:s,$slots:l}=this;return i==null||i(),k(s,{class:[`${n}-card`,this.themeClass,a&&`${n}-card--embedded`,{[`${n}-card--rtl`]:o,[`${n}-card--content${typeof e!="boolean"&&e.content==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.content,[`${n}-card--footer${typeof e!="boolean"&&e.footer==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.footer,[`${n}-card--action-segmented`]:e===!0||e!==!1&&e.action,[`${n}-card--bordered`]:t,[`${n}-card--hoverable`]:r}],style:this.cssVars,role:this.role},Ft(l.cover,c=>c&&k("div",{class:`${n}-card-cover`,role:"none"},c)),Ft(l.header,c=>c||this.title||this.closable?k("div",{class:[`${n}-card-header`,this.headerClass],style:this.headerStyle},k("div",{class:`${n}-card-header__main`,role:"heading"},c||this.title),Ft(l["header-extra"],u=>u&&k("div",{class:[`${n}-card-header__extra`,this.headerExtraClass],style:this.headerExtraStyle},u)),this.closable?k(ta,{clsPrefix:n,class:`${n}-card-header__close`,onClick:this.handleCloseClick,absolute:!0}):null):null),Ft(l.default,c=>c&&k("div",{class:[`${n}-card__content`,this.contentClass],style:this.contentStyle,role:"none"},c)),Ft(l.footer,c=>c&&[k("div",{class:[`${n}-card__footer`,this.footerClass],style:this.footerStyle,role:"none"},c)]),Ft(l.action,c=>c&&k("div",{class:`${n}-card__action`,role:"none"},c)))}}),E_=e=>({dotSize:"8px",dotColor:"rgba(255, 255, 255, .3)",dotColorActive:"rgba(255, 255, 255, 1)",dotColorFocus:"rgba(255, 255, 255, .5)",dotLineWidth:"16px",dotLineWidthActive:"24px",arrowColor:"#eee"}),V7={name:"Carousel",common:ke,self:E_},q7=V7,G7={name:"Carousel",common:Ae,self:E_},Y7=G7,K7={sizeSmall:"14px",sizeMedium:"16px",sizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"},T_=e=>{const{baseColor:t,inputColorDisabled:r,cardColor:n,modalColor:o,popoverColor:i,textColorDisabled:a,borderColor:s,primaryColor:l,textColor2:c,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:f,borderRadiusSmall:p,lineHeight:h}=e;return Object.assign(Object.assign({},K7),{labelLineHeight:h,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:f,borderRadius:p,color:t,colorChecked:l,colorDisabled:r,colorDisabledChecked:r,colorTableHeader:n,colorTableHeaderModal:o,colorTableHeaderPopover:i,checkMarkColor:t,checkMarkColorDisabled:a,checkMarkColorDisabledChecked:a,border:`1px solid ${s}`,borderDisabled:`1px solid ${s}`,borderDisabledChecked:`1px solid ${s}`,borderChecked:`1px solid ${l}`,borderFocus:`1px solid ${l}`,boxShadowFocus:`0 0 0 2px ${fe(l,{alpha:.3})}`,textColor:c,textColorDisabled:a})},X7={name:"Checkbox",common:ke,self:T_},Cs=X7,Z7={name:"Checkbox",common:Ae,self(e){const{cardColor:t}=e,r=T_(e);return r.color="#0000",r.checkMarkColor=t,r}},ws=Z7,k_=e=>{const{borderRadius:t,boxShadow2:r,popoverColor:n,textColor2:o,textColor3:i,primaryColor:a,textColorDisabled:s,dividerColor:l,hoverColor:c,fontSizeMedium:u,heightMedium:d}=e;return{menuBorderRadius:t,menuColor:n,menuBoxShadow:r,menuDividerColor:l,menuHeight:"calc(var(--n-option-height) * 6.6)",optionArrowColor:i,optionHeight:d,optionFontSize:u,optionColorHover:c,optionTextColor:o,optionTextColorActive:a,optionTextColorDisabled:s,optionCheckMarkColor:a,loadingColor:a,columnWidth:"180px"}},Q7={name:"Cascader",common:ke,peers:{InternalSelectMenu:oc,InternalSelection:Lg,Scrollbar:jr,Checkbox:Cs,Empty:To},self:k_},J7=Q7,ez={name:"Cascader",common:Ae,peers:{InternalSelectMenu:ic,InternalSelection:Fg,Scrollbar:Xr,Checkbox:ws,Empty:To},self:k_},tz=ez,rz={name:"Code",common:Ae,self(e){const{textColor2:t,fontSize:r,fontWeightStrong:n,textColor3:o}=e;return{textColor:t,fontSize:r,fontWeightStrong:n,"mono-3":"#5c6370","hue-1":"#56b6c2","hue-2":"#61aeee","hue-3":"#c678dd","hue-4":"#98c379","hue-5":"#e06c75","hue-5-2":"#be5046","hue-6":"#d19a66","hue-6-2":"#e6c07b",lineNumberTextColor:o}}},A_=rz,nz=e=>{const{textColor2:t,fontSize:r,fontWeightStrong:n,textColor3:o}=e;return{textColor:t,fontSize:r,fontWeightStrong:n,"mono-3":"#a0a1a7","hue-1":"#0184bb","hue-2":"#4078f2","hue-3":"#a626a4","hue-4":"#50a14f","hue-5":"#e45649","hue-5-2":"#c91243","hue-6":"#986801","hue-6-2":"#c18401",lineNumberTextColor:o}},oz={name:"Code",common:ke,self:nz},P_=oz,$_=e=>{const{fontWeight:t,textColor1:r,textColor2:n,textColorDisabled:o,dividerColor:i,fontSize:a}=e;return{titleFontSize:a,titleFontWeight:t,dividerColor:i,titleTextColor:r,titleTextColorDisabled:o,fontSize:a,textColor:n,arrowColor:n,arrowColorDisabled:o,itemMargin:"16px 0 0 0",titlePadding:"16px 0 0 0"}},iz={name:"Collapse",common:ke,self:$_},az=iz,sz={name:"Collapse",common:Ae,self:$_},lz=sz,I_=e=>{const{cubicBezierEaseInOut:t}=e;return{bezier:t}},cz={name:"CollapseTransition",common:ke,self:I_},uz=cz,dz={name:"CollapseTransition",common:Ae,self:I_},fz=dz,hz={abstract:Boolean,bordered:{type:Boolean,default:void 0},clsPrefix:{type:String,default:Il},locale:Object,dateLocale:Object,namespace:String,rtl:Array,tag:{type:String,default:"div"},hljs:Object,katex:Object,theme:Object,themeOverrides:Object,componentOptions:Object,icons:Object,breakpoints:Object,preflightStyleDisabled:Boolean,inlineThemeDisabled:{type:Boolean,default:void 0},as:{type:String,validator:()=>(ji("config-provider","`as` is deprecated, please use `tag` instead."),!0),default:void 0}},pz=me({name:"ConfigProvider",alias:["App"],props:hz,setup(e){const t=Me(Jn,null),r=R(()=>{const{theme:h}=e;if(h===null)return;const g=t==null?void 0:t.mergedThemeRef.value;return h===void 0?g:g===void 0?h:Object.assign({},g,h)}),n=R(()=>{const{themeOverrides:h}=e;if(h!==null){if(h===void 0)return t==null?void 0:t.mergedThemeOverridesRef.value;{const g=t==null?void 0:t.mergedThemeOverridesRef.value;return g===void 0?h:ka({},g,h)}}}),o=Rr(()=>{const{namespace:h}=e;return h===void 0?t==null?void 0:t.mergedNamespaceRef.value:h}),i=Rr(()=>{const{bordered:h}=e;return h===void 0?t==null?void 0:t.mergedBorderedRef.value:h}),a=R(()=>{const{icons:h}=e;return h===void 0?t==null?void 0:t.mergedIconsRef.value:h}),s=R(()=>{const{componentOptions:h}=e;return h!==void 0?h:t==null?void 0:t.mergedComponentPropsRef.value}),l=R(()=>{const{clsPrefix:h}=e;return h!==void 0?h:t?t.mergedClsPrefixRef.value:Il}),c=R(()=>{var h;const{rtl:g}=e;if(g===void 0)return t==null?void 0:t.mergedRtlRef.value;const v={};for(const m of g)v[m.name]=Wa(m),(h=m.peers)===null||h===void 0||h.forEach(b=>{b.name in v||(v[b.name]=Wa(b))});return v}),u=R(()=>e.breakpoints||(t==null?void 0:t.mergedBreakpointsRef.value)),d=e.inlineThemeDisabled||(t==null?void 0:t.inlineThemeDisabled),f=e.preflightStyleDisabled||(t==null?void 0:t.preflightStyleDisabled),p=R(()=>{const{value:h}=r,{value:g}=n,v=g&&Object.keys(g).length!==0,m=h==null?void 0:h.name;return m?v?`${m}-${El(JSON.stringify(n.value))}`:m:v?El(JSON.stringify(n.value)):""});return dt(Jn,{mergedThemeHashRef:p,mergedBreakpointsRef:u,mergedRtlRef:c,mergedIconsRef:a,mergedComponentPropsRef:s,mergedBorderedRef:i,mergedNamespaceRef:o,mergedClsPrefixRef:l,mergedLocaleRef:R(()=>{const{locale:h}=e;if(h!==null)return h===void 0?t==null?void 0:t.mergedLocaleRef.value:h}),mergedDateLocaleRef:R(()=>{const{dateLocale:h}=e;if(h!==null)return h===void 0?t==null?void 0:t.mergedDateLocaleRef.value:h}),mergedHljsRef:R(()=>{const{hljs:h}=e;return h===void 0?t==null?void 0:t.mergedHljsRef.value:h}),mergedKatexRef:R(()=>{const{katex:h}=e;return h===void 0?t==null?void 0:t.mergedKatexRef.value:h}),mergedThemeRef:r,mergedThemeOverridesRef:n,inlineThemeDisabled:d||!1,preflightStyleDisabled:f||!1}),{mergedClsPrefix:l,mergedBordered:i,mergedNamespace:o,mergedTheme:r,mergedThemeOverrides:n}},render(){var e,t,r,n;return this.abstract?(n=(r=this.$slots).default)===null||n===void 0?void 0:n.call(r):k(this.as||this.tag,{class:`${this.mergedClsPrefix||Il}-config-provider`},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}}),gz={duration:{type:Number,default:0},active:{type:Boolean,default:!0},precision:{type:Number,default:0},render:Function,onFinish:Function},Hg=me({name:"Countdown",props:gz,setup(e){let t=null,r=0,n=!1;const o=z(0);$r(()=>{o.value=e.duration});let i=-1;function a(p){return e.duration-r+i-p}function s(p){const h=Math.floor(p/36e5),g=Math.floor(p%36e5/6e4),v=Math.floor(p%6e4/1e3),m=Math.floor(p%1e3);return{hours:h,minutes:g,seconds:v,milliseconds:m}}function l(p){const{hours:h,minutes:g,seconds:v,milliseconds:m}=p,{precision:b}=e;switch(b){case 0:return`${String(h).padStart(2,"0")}:${String(g).padStart(2,"0")}:${String(v).padStart(2,"0")}`;default:return`${String(h).padStart(2,"0")}:${String(g).padStart(2,"0")}:${String(v).padStart(2,"0")}.${String(Math.floor(m/(b===1?100:b===2?10:1))).padStart(b,"0")}`}}const c=()=>{var p;const{precision:h}=e,g=a(performance.now());if(g<=0){o.value=0,u(),n||(n=!0,(p=e.onFinish)===null||p===void 0||p.call(e));return}let v;switch(h){case 3:case 2:v=g%34;break;case 1:v=g%100;break;default:v=g%1e3}o.value=g,t=window.setTimeout(()=>{c()},v)},u=()=>{t!==null&&(window.clearTimeout(t),t=null)};St(()=>{$r(()=>{if(e.active)i=performance.now(),c();else{const p=performance.now();i!==-1&&(r+=p-i),u()}})}),Kt(()=>{u()});function d(){o.value=e.duration,r=0,i=performance.now(),e.active&&n&&c(),n=!1}return Object.assign({reset:d},{distance:o,getTimeInfo:s,getDisplayValue:l})},render(){const{render:e,precision:t,distance:r,getTimeInfo:n,getDisplayValue:o}=this;let i;switch(t){case 0:i=n(r+999),i.milliseconds=0;break;case 1:i=n(r+99),i.milliseconds=Math.floor(i.milliseconds/100)*100;break;case 2:i=n(r+9),i.milliseconds=Math.floor(i.milliseconds/10)*10;break;case 3:i=n(r)}return e?e(i):o(i)}}),mz={name:"Popselect",common:Ae,peers:{Popover:na,InternalSelectMenu:ic}},B_=mz;function vz(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const bz={name:"Popselect",common:ke,peers:{Popover:ni,InternalSelectMenu:oc},self:vz},D_=bz;function O_(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const xz={name:"Select",common:ke,peers:{InternalSelection:Lg,InternalSelectMenu:oc},self:O_},R_=xz,yz={name:"Select",common:Ae,peers:{InternalSelection:Fg,InternalSelectMenu:ic},self:O_},L_=yz,Cz={itemPaddingSmall:"0 4px",itemMarginSmall:"0 0 0 8px",itemMarginSmallRtl:"0 8px 0 0",itemPaddingMedium:"0 4px",itemMarginMedium:"0 0 0 8px",itemMarginMediumRtl:"0 8px 0 0",itemPaddingLarge:"0 4px",itemMarginLarge:"0 0 0 8px",itemMarginLargeRtl:"0 8px 0 0",buttonIconSizeSmall:"14px",buttonIconSizeMedium:"16px",buttonIconSizeLarge:"18px",inputWidthSmall:"60px",selectWidthSmall:"unset",inputMarginSmall:"0 0 0 8px",inputMarginSmallRtl:"0 8px 0 0",selectMarginSmall:"0 0 0 8px",prefixMarginSmall:"0 8px 0 0",suffixMarginSmall:"0 0 0 8px",inputWidthMedium:"60px",selectWidthMedium:"unset",inputMarginMedium:"0 0 0 8px",inputMarginMediumRtl:"0 8px 0 0",selectMarginMedium:"0 0 0 8px",prefixMarginMedium:"0 8px 0 0",suffixMarginMedium:"0 0 0 8px",inputWidthLarge:"60px",selectWidthLarge:"unset",inputMarginLarge:"0 0 0 8px",inputMarginLargeRtl:"0 8px 0 0",selectMarginLarge:"0 0 0 8px",prefixMarginLarge:"0 8px 0 0",suffixMarginLarge:"0 0 0 8px"},F_=e=>{const{textColor2:t,primaryColor:r,primaryColorHover:n,primaryColorPressed:o,inputColorDisabled:i,textColorDisabled:a,borderColor:s,borderRadius:l,fontSizeTiny:c,fontSizeSmall:u,fontSizeMedium:d,heightTiny:f,heightSmall:p,heightMedium:h}=e;return Object.assign(Object.assign({},Cz),{buttonColor:"#0000",buttonColorHover:"#0000",buttonColorPressed:"#0000",buttonBorder:`1px solid ${s}`,buttonBorderHover:`1px solid ${s}`,buttonBorderPressed:`1px solid ${s}`,buttonIconColor:t,buttonIconColorHover:t,buttonIconColorPressed:t,itemTextColor:t,itemTextColorHover:n,itemTextColorPressed:o,itemTextColorActive:r,itemTextColorDisabled:a,itemColor:"#0000",itemColorHover:"#0000",itemColorPressed:"#0000",itemColorActive:"#0000",itemColorActiveHover:"#0000",itemColorDisabled:i,itemBorder:"1px solid #0000",itemBorderHover:"1px solid #0000",itemBorderPressed:"1px solid #0000",itemBorderActive:`1px solid ${r}`,itemBorderDisabled:`1px solid ${s}`,itemBorderRadius:l,itemSizeSmall:f,itemSizeMedium:p,itemSizeLarge:h,itemFontSizeSmall:c,itemFontSizeMedium:u,itemFontSizeLarge:d,jumperFontSizeSmall:c,jumperFontSizeMedium:u,jumperFontSizeLarge:d,jumperTextColor:t,jumperTextColorDisabled:a})},wz={name:"Pagination",common:ke,peers:{Select:R_,Input:sn,Popselect:D_},self:F_},M_=wz,Sz={name:"Pagination",common:Ae,peers:{Select:L_,Input:wn,Popselect:B_},self(e){const{primaryColor:t,opacity3:r}=e,n=fe(t,{alpha:Number(r)}),o=F_(e);return o.itemBorderActive=`1px solid ${n}`,o.itemBorderDisabled="1px solid #0000",o}},z_=Sz,N_={padding:"8px 14px"},_z={name:"Tooltip",common:Ae,peers:{Popover:na},self(e){const{borderRadius:t,boxShadow2:r,popoverColor:n,textColor2:o}=e;return Object.assign(Object.assign({},N_),{borderRadius:t,boxShadow:r,color:n,textColor:o})}},Rd=_z,Ez=e=>{const{borderRadius:t,boxShadow2:r,baseColor:n}=e;return Object.assign(Object.assign({},N_),{borderRadius:t,boxShadow:r,color:Oe(n,"rgba(0, 0, 0, .85)"),textColor:n})},Tz={name:"Tooltip",common:ke,peers:{Popover:ni},self:Ez},ac=Tz,kz={name:"Ellipsis",common:Ae,peers:{Tooltip:Rd}},H_=kz,Az={name:"Ellipsis",common:ke,peers:{Tooltip:ac}},j_=Az,W_={radioSizeSmall:"14px",radioSizeMedium:"16px",radioSizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"},Pz={name:"Radio",common:Ae,self(e){const{borderColor:t,primaryColor:r,baseColor:n,textColorDisabled:o,inputColorDisabled:i,textColor2:a,opacityDisabled:s,borderRadius:l,fontSizeSmall:c,fontSizeMedium:u,fontSizeLarge:d,heightSmall:f,heightMedium:p,heightLarge:h,lineHeight:g}=e;return Object.assign(Object.assign({},W_),{labelLineHeight:g,buttonHeightSmall:f,buttonHeightMedium:p,buttonHeightLarge:h,fontSizeSmall:c,fontSizeMedium:u,fontSizeLarge:d,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${r}`,boxShadowFocus:`inset 0 0 0 1px ${r}, 0 0 0 2px ${fe(r,{alpha:.3})}`,boxShadowHover:`inset 0 0 0 1px ${r}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:"#0000",colorDisabled:i,colorActive:"#0000",textColor:a,textColorDisabled:o,dotColorActive:r,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:r,buttonBorderColorHover:r,buttonColor:"#0000",buttonColorActive:r,buttonTextColor:a,buttonTextColorActive:n,buttonTextColorHover:r,opacityDisabled:s,buttonBoxShadowFocus:`inset 0 0 0 1px ${r}, 0 0 0 2px ${fe(r,{alpha:.3})}`,buttonBoxShadowHover:`inset 0 0 0 1px ${r}`,buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:l})}},U_=Pz,$z=e=>{const{borderColor:t,primaryColor:r,baseColor:n,textColorDisabled:o,inputColorDisabled:i,textColor2:a,opacityDisabled:s,borderRadius:l,fontSizeSmall:c,fontSizeMedium:u,fontSizeLarge:d,heightSmall:f,heightMedium:p,heightLarge:h,lineHeight:g}=e;return Object.assign(Object.assign({},W_),{labelLineHeight:g,buttonHeightSmall:f,buttonHeightMedium:p,buttonHeightLarge:h,fontSizeSmall:c,fontSizeMedium:u,fontSizeLarge:d,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${r}`,boxShadowFocus:`inset 0 0 0 1px ${r}, 0 0 0 2px ${fe(r,{alpha:.2})}`,boxShadowHover:`inset 0 0 0 1px ${r}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:n,colorDisabled:i,colorActive:"#0000",textColor:a,textColorDisabled:o,dotColorActive:r,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:r,buttonBorderColorHover:t,buttonColor:n,buttonColorActive:n,buttonTextColor:a,buttonTextColorActive:r,buttonTextColorHover:r,opacityDisabled:s,buttonBoxShadowFocus:`inset 0 0 0 1px ${r}, 0 0 0 2px ${fe(r,{alpha:.3})}`,buttonBoxShadowHover:"inset 0 0 0 1px #0000",buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:l})},Iz={name:"Radio",common:ke,self:$z},Ld=Iz,Bz={padding:"4px 0",optionIconSizeSmall:"14px",optionIconSizeMedium:"16px",optionIconSizeLarge:"16px",optionIconSizeHuge:"18px",optionSuffixWidthSmall:"14px",optionSuffixWidthMedium:"14px",optionSuffixWidthLarge:"16px",optionSuffixWidthHuge:"16px",optionIconSuffixWidthSmall:"32px",optionIconSuffixWidthMedium:"32px",optionIconSuffixWidthLarge:"36px",optionIconSuffixWidthHuge:"36px",optionPrefixWidthSmall:"14px",optionPrefixWidthMedium:"14px",optionPrefixWidthLarge:"16px",optionPrefixWidthHuge:"16px",optionIconPrefixWidthSmall:"36px",optionIconPrefixWidthMedium:"36px",optionIconPrefixWidthLarge:"40px",optionIconPrefixWidthHuge:"40px"},V_=e=>{const{primaryColor:t,textColor2:r,dividerColor:n,hoverColor:o,popoverColor:i,invertedColor:a,borderRadius:s,fontSizeSmall:l,fontSizeMedium:c,fontSizeLarge:u,fontSizeHuge:d,heightSmall:f,heightMedium:p,heightLarge:h,heightHuge:g,textColor3:v,opacityDisabled:m}=e;return Object.assign(Object.assign({},Bz),{optionHeightSmall:f,optionHeightMedium:p,optionHeightLarge:h,optionHeightHuge:g,borderRadius:s,fontSizeSmall:l,fontSizeMedium:c,fontSizeLarge:u,fontSizeHuge:d,optionTextColor:r,optionTextColorHover:r,optionTextColorActive:t,optionTextColorChildActive:t,color:i,dividerColor:n,suffixColor:r,prefixColor:r,optionColorHover:o,optionColorActive:fe(t,{alpha:.1}),groupHeaderTextColor:v,optionTextColorInverted:"#BBB",optionTextColorHoverInverted:"#FFF",optionTextColorActiveInverted:"#FFF",optionTextColorChildActiveInverted:"#FFF",colorInverted:a,dividerColorInverted:"#BBB",suffixColorInverted:"#BBB",prefixColorInverted:"#BBB",optionColorHoverInverted:t,optionColorActiveInverted:t,groupHeaderTextColorInverted:"#AAA",optionOpacityDisabled:m})},Dz={name:"Dropdown",common:ke,peers:{Popover:ni},self:V_},jg=Dz,Oz={name:"Dropdown",common:Ae,peers:{Popover:na},self(e){const{primaryColorSuppl:t,primaryColor:r,popoverColor:n}=e,o=V_(e);return o.colorInverted=n,o.optionColorActive=fe(r,{alpha:.15}),o.optionColorActiveInverted=t,o.optionColorHoverInverted=t,o}},Wg=Oz,Rz={thPaddingSmall:"8px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"8px",tdPaddingMedium:"12px",tdPaddingLarge:"12px",sorterSize:"15px",resizableContainerSize:"8px",resizableSize:"2px",filterSize:"15px",paginationMargin:"12px 0 0 0",emptyPadding:"48px 0",actionPadding:"8px 12px",actionButtonMargin:"0 8px 0 0"},q_=e=>{const{cardColor:t,modalColor:r,popoverColor:n,textColor2:o,textColor1:i,tableHeaderColor:a,tableColorHover:s,iconColor:l,primaryColor:c,fontWeightStrong:u,borderRadius:d,lineHeight:f,fontSizeSmall:p,fontSizeMedium:h,fontSizeLarge:g,dividerColor:v,heightSmall:m,opacityDisabled:b,tableColorStriped:x}=e;return Object.assign(Object.assign({},Rz),{actionDividerColor:v,lineHeight:f,borderRadius:d,fontSizeSmall:p,fontSizeMedium:h,fontSizeLarge:g,borderColor:Oe(t,v),tdColorHover:Oe(t,s),tdColorStriped:Oe(t,x),thColor:Oe(t,a),thColorHover:Oe(Oe(t,a),s),tdColor:t,tdTextColor:o,thTextColor:i,thFontWeight:u,thButtonColorHover:s,thIconColor:l,thIconColorActive:c,borderColorModal:Oe(r,v),tdColorHoverModal:Oe(r,s),tdColorStripedModal:Oe(r,x),thColorModal:Oe(r,a),thColorHoverModal:Oe(Oe(r,a),s),tdColorModal:r,borderColorPopover:Oe(n,v),tdColorHoverPopover:Oe(n,s),tdColorStripedPopover:Oe(n,x),thColorPopover:Oe(n,a),thColorHoverPopover:Oe(Oe(n,a),s),tdColorPopover:n,boxShadowBefore:"inset -12px 0 8px -12px rgba(0, 0, 0, .18)",boxShadowAfter:"inset 12px 0 8px -12px rgba(0, 0, 0, .18)",loadingColor:c,loadingSize:m,opacityLoading:b})},Lz={name:"DataTable",common:ke,peers:{Button:Wr,Checkbox:Cs,Radio:Ld,Pagination:M_,Scrollbar:jr,Empty:To,Popover:ni,Ellipsis:j_,Dropdown:jg},self:q_},Fz=Lz,Mz={name:"DataTable",common:Ae,peers:{Button:Zr,Checkbox:ws,Radio:U_,Pagination:z_,Scrollbar:Xr,Empty:ra,Popover:na,Ellipsis:H_,Dropdown:Wg},self(e){const t=q_(e);return t.boxShadowAfter="inset 12px 0 8px -12px rgba(0, 0, 0, .36)",t.boxShadowBefore="inset -12px 0 8px -12px rgba(0, 0, 0, .36)",t}},zz=Mz,Nz=Object.assign(Object.assign({},KS),ze.props),rl=me({name:"Tooltip",props:Nz,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=ht(e),r=ze("Tooltip","-tooltip",void 0,ac,e,t),n=z(null);return Object.assign(Object.assign({},{syncPosition(){n.value.syncPosition()},setShow(i){n.value.setShow(i)}}),{popoverRef:n,mergedTheme:r,popoverThemeOverrides:R(()=>r.value.self)})},render(){const{mergedTheme:e,internalExtraClass:t}=this;return k(o9,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)}}),Hz={name:String,value:{type:[String,Number,Boolean],default:"on"},checked:{type:Boolean,default:void 0},defaultChecked:Boolean,disabled:{type:Boolean,default:void 0},label:String,size:String,onUpdateChecked:[Function,Array],"onUpdate:checked":[Function,Array],checkedValue:{type:Boolean,default:void 0}},G_="n-radio-group";function jz(e){const t=Ed(e,{mergedSize(b){const{size:x}=e;if(x!==void 0)return x;if(a){const{mergedSizeRef:{value:y}}=a;if(y!==void 0)return y}return b?b.mergedSize.value:"medium"},mergedDisabled(b){return!!(e.disabled||a!=null&&a.disabledRef.value||b!=null&&b.disabled.value)}}),{mergedSizeRef:r,mergedDisabledRef:n}=t,o=z(null),i=z(null),a=Me(G_,null),s=z(e.defaultChecked),l=nt(e,"checked"),c=vs(l,s),u=Rr(()=>a?a.valueRef.value===e.value:c.value),d=Rr(()=>{const{name:b}=e;if(b!==void 0)return b;if(a)return a.nameRef.value}),f=z(!1);function p(){if(a){const{doUpdateValue:b}=a,{value:x}=e;at(b,x)}else{const{onUpdateChecked:b,"onUpdate:checked":x}=e,{nTriggerFormInput:y,nTriggerFormChange:w}=t;b&&at(b,!0),x&&at(x,!0),y(),w(),s.value=!0}}function h(){n.value||u.value||p()}function g(){h(),o.value&&(o.value.checked=u.value)}function v(){f.value=!1}function m(){f.value=!0}return{mergedClsPrefix:a?a.mergedClsPrefixRef:ht(e).mergedClsPrefixRef,inputRef:o,labelRef:i,mergedName:d,mergedDisabled:n,renderSafeChecked:u,focus:f,mergedSize:r,handleRadioInputChange:g,handleRadioInputBlur:v,handleRadioInputFocus:m}}const Wz=N("radio",`
|
||
line-height: var(--n-label-line-height);
|
||
outline: none;
|
||
position: relative;
|
||
user-select: none;
|
||
-webkit-user-select: none;
|
||
display: inline-flex;
|
||
align-items: flex-start;
|
||
flex-wrap: nowrap;
|
||
font-size: var(--n-font-size);
|
||
word-break: break-word;
|
||
`,[Q("checked",[Z("dot",`
|
||
background-color: var(--n-color-active);
|
||
`)]),Z("dot-wrapper",`
|
||
position: relative;
|
||
flex-shrink: 0;
|
||
flex-grow: 0;
|
||
width: var(--n-radio-size);
|
||
`),N("radio-input",`
|
||
position: absolute;
|
||
border: 0;
|
||
border-radius: inherit;
|
||
left: 0;
|
||
right: 0;
|
||
top: 0;
|
||
bottom: 0;
|
||
opacity: 0;
|
||
z-index: 1;
|
||
cursor: pointer;
|
||
`),Z("dot",`
|
||
position: absolute;
|
||
top: 50%;
|
||
left: 0;
|
||
transform: translateY(-50%);
|
||
height: var(--n-radio-size);
|
||
width: var(--n-radio-size);
|
||
background: var(--n-color);
|
||
box-shadow: var(--n-box-shadow);
|
||
border-radius: 50%;
|
||
transition:
|
||
background-color .3s var(--n-bezier),
|
||
box-shadow .3s var(--n-bezier);
|
||
`,[q("&::before",`
|
||
content: "";
|
||
opacity: 0;
|
||
position: absolute;
|
||
left: 4px;
|
||
top: 4px;
|
||
height: calc(100% - 8px);
|
||
width: calc(100% - 8px);
|
||
border-radius: 50%;
|
||
transform: scale(.8);
|
||
background: var(--n-dot-color-active);
|
||
transition:
|
||
opacity .3s var(--n-bezier),
|
||
background-color .3s var(--n-bezier),
|
||
transform .3s var(--n-bezier);
|
||
`),Q("checked",{boxShadow:"var(--n-box-shadow-active)"},[q("&::before",`
|
||
opacity: 1;
|
||
transform: scale(1);
|
||
`)])]),Z("label",`
|
||
color: var(--n-text-color);
|
||
padding: var(--n-label-padding);
|
||
font-weight: var(--n-label-font-weight);
|
||
display: inline-block;
|
||
transition: color .3s var(--n-bezier);
|
||
`),ir("disabled",`
|
||
cursor: pointer;
|
||
`,[q("&:hover",[Z("dot",{boxShadow:"var(--n-box-shadow-hover)"})]),Q("focus",[q("&:not(:active)",[Z("dot",{boxShadow:"var(--n-box-shadow-focus)"})])])]),Q("disabled",`
|
||
cursor: not-allowed;
|
||
`,[Z("dot",{boxShadow:"var(--n-box-shadow-disabled)",backgroundColor:"var(--n-color-disabled)"},[q("&::before",{backgroundColor:"var(--n-dot-color-disabled)"}),Q("checked",`
|
||
opacity: 1;
|
||
`)]),Z("label",{color:"var(--n-text-color-disabled)"}),N("radio-input",`
|
||
cursor: not-allowed;
|
||
`)])]),Uz=Object.assign(Object.assign({},ze.props),Hz),Vz=me({name:"Radio",props:Uz,setup(e){const t=jz(e),r=ze("Radio","-radio",Wz,Ld,e,t.mergedClsPrefix),n=R(()=>{const{mergedSize:{value:c}}=t,{common:{cubicBezierEaseInOut:u},self:{boxShadow:d,boxShadowActive:f,boxShadowDisabled:p,boxShadowFocus:h,boxShadowHover:g,color:v,colorDisabled:m,colorActive:b,textColor:x,textColorDisabled:y,dotColorActive:w,dotColorDisabled:C,labelPadding:S,labelLineHeight:T,labelFontWeight:P,[ye("fontSize",c)]:A,[ye("radioSize",c)]:I}}=r.value;return{"--n-bezier":u,"--n-label-line-height":T,"--n-label-font-weight":P,"--n-box-shadow":d,"--n-box-shadow-active":f,"--n-box-shadow-disabled":p,"--n-box-shadow-focus":h,"--n-box-shadow-hover":g,"--n-color":v,"--n-color-active":b,"--n-color-disabled":m,"--n-dot-color-active":w,"--n-dot-color-disabled":C,"--n-font-size":A,"--n-radio-size":I,"--n-text-color":x,"--n-text-color-disabled":y,"--n-label-padding":S}}),{inlineThemeDisabled:o,mergedClsPrefixRef:i,mergedRtlRef:a}=ht(e),s=an("Radio",a,i),l=o?tr("radio",R(()=>t.mergedSize.value[0]),n,e):void 0;return Object.assign(t,{rtlEnabled:s,cssVars:o?void 0:n,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender})},render(){const{$slots:e,mergedClsPrefix:t,onRender:r,label:n}=this;return r==null||r(),k("label",{class:[`${t}-radio`,this.themeClass,this.rtlEnabled&&`${t}-radio--rtl`,this.mergedDisabled&&`${t}-radio--disabled`,this.renderSafeChecked&&`${t}-radio--checked`,this.focus&&`${t}-radio--focus`],style:this.cssVars},k("input",{ref:"inputRef",type:"radio",class:`${t}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),k("div",{class:`${t}-radio__dot-wrapper`}," ",k("div",{class:[`${t}-radio__dot`,this.renderSafeChecked&&`${t}-radio__dot--checked`]})),Ft(e.default,o=>!o&&!n?null:k("div",{ref:"labelRef",class:`${t}-radio__label`},o||n)))}}),qz=N("radio-group",`
|
||
display: inline-block;
|
||
font-size: var(--n-font-size);
|
||
`,[Z("splitor",`
|
||
display: inline-block;
|
||
vertical-align: bottom;
|
||
width: 1px;
|
||
transition:
|
||
background-color .3s var(--n-bezier),
|
||
opacity .3s var(--n-bezier);
|
||
background: var(--n-button-border-color);
|
||
`,[Q("checked",{backgroundColor:"var(--n-button-border-color-active)"}),Q("disabled",{opacity:"var(--n-opacity-disabled)"})]),Q("button-group",`
|
||
white-space: nowrap;
|
||
height: var(--n-height);
|
||
line-height: var(--n-height);
|
||
`,[N("radio-button",{height:"var(--n-height)",lineHeight:"var(--n-height)"}),Z("splitor",{height:"var(--n-height)"})]),N("radio-button",`
|
||
vertical-align: bottom;
|
||
outline: none;
|
||
position: relative;
|
||
user-select: none;
|
||
-webkit-user-select: none;
|
||
display: inline-block;
|
||
box-sizing: border-box;
|
||
padding-left: 14px;
|
||
padding-right: 14px;
|
||
white-space: nowrap;
|
||
transition:
|
||
background-color .3s var(--n-bezier),
|
||
opacity .3s var(--n-bezier),
|
||
border-color .3s var(--n-bezier),
|
||
color .3s var(--n-bezier);
|
||
background: var(--n-button-color);
|
||
color: var(--n-button-text-color);
|
||
border-top: 1px solid var(--n-button-border-color);
|
||
border-bottom: 1px solid var(--n-button-border-color);
|
||
`,[N("radio-input",`
|
||
pointer-events: none;
|
||
position: absolute;
|
||
border: 0;
|
||
border-radius: inherit;
|
||
left: 0;
|
||
right: 0;
|
||
top: 0;
|
||
bottom: 0;
|
||
opacity: 0;
|
||
z-index: 1;
|
||
`),Z("state-border",`
|
||
z-index: 1;
|
||
pointer-events: none;
|
||
position: absolute;
|
||
box-shadow: var(--n-button-box-shadow);
|
||
transition: box-shadow .3s var(--n-bezier);
|
||
left: -1px;
|
||
bottom: -1px;
|
||
right: -1px;
|
||
top: -1px;
|
||
`),q("&:first-child",`
|
||
border-top-left-radius: var(--n-button-border-radius);
|
||
border-bottom-left-radius: var(--n-button-border-radius);
|
||
border-left: 1px solid var(--n-button-border-color);
|
||
`,[Z("state-border",`
|
||
border-top-left-radius: var(--n-button-border-radius);
|
||
border-bottom-left-radius: var(--n-button-border-radius);
|
||
`)]),q("&:last-child",`
|
||
border-top-right-radius: var(--n-button-border-radius);
|
||
border-bottom-right-radius: var(--n-button-border-radius);
|
||
border-right: 1px solid var(--n-button-border-color);
|
||
`,[Z("state-border",`
|
||
border-top-right-radius: var(--n-button-border-radius);
|
||
border-bottom-right-radius: var(--n-button-border-radius);
|
||
`)]),ir("disabled",`
|
||
cursor: pointer;
|
||
`,[q("&:hover",[Z("state-border",`
|
||
transition: box-shadow .3s var(--n-bezier);
|
||
box-shadow: var(--n-button-box-shadow-hover);
|
||
`),ir("checked",{color:"var(--n-button-text-color-hover)"})]),Q("focus",[q("&:not(:active)",[Z("state-border",{boxShadow:"var(--n-button-box-shadow-focus)"})])])]),Q("checked",`
|
||
background: var(--n-button-color-active);
|
||
color: var(--n-button-text-color-active);
|
||
border-color: var(--n-button-border-color-active);
|
||
`),Q("disabled",`
|
||
cursor: not-allowed;
|
||
opacity: var(--n-opacity-disabled);
|
||
`)])]);function Gz(e,t,r){var n;const o=[];let i=!1;for(let a=0;a<e.length;++a){const s=e[a],l=(n=s.type)===null||n===void 0?void 0:n.name;l==="RadioButton"&&(i=!0);const c=s.props;if(l!=="RadioButton"){o.push(s);continue}if(a===0)o.push(s);else{const u=o[o.length-1].props,d=t===u.value,f=u.disabled,p=t===c.value,h=c.disabled,g=(d?2:0)+(f?0:1),v=(p?2:0)+(h?0:1),m={[`${r}-radio-group__splitor--disabled`]:f,[`${r}-radio-group__splitor--checked`]:d},b={[`${r}-radio-group__splitor--disabled`]:h,[`${r}-radio-group__splitor--checked`]:p},x=g<v?b:m;o.push(k("div",{class:[`${r}-radio-group__splitor`,x]}),s)}}return{children:o,isButtonGroup:i}}const Yz=Object.assign(Object.assign({},ze.props),{name:String,value:[String,Number,Boolean],defaultValue:{type:[String,Number,Boolean],default:null},size:String,disabled:{type:Boolean,default:void 0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),Kz=me({name:"RadioGroup",props:Yz,setup(e){const t=z(null),{mergedSizeRef:r,mergedDisabledRef:n,nTriggerFormChange:o,nTriggerFormInput:i,nTriggerFormBlur:a,nTriggerFormFocus:s}=Ed(e),{mergedClsPrefixRef:l,inlineThemeDisabled:c,mergedRtlRef:u}=ht(e),d=ze("Radio","-radio-group",qz,Ld,e,l),f=z(e.defaultValue),p=nt(e,"value"),h=vs(p,f);function g(w){const{onUpdateValue:C,"onUpdate:value":S}=e;C&&at(C,w),S&&at(S,w),f.value=w,o(),i()}function v(w){const{value:C}=t;C&&(C.contains(w.relatedTarget)||s())}function m(w){const{value:C}=t;C&&(C.contains(w.relatedTarget)||a())}dt(G_,{mergedClsPrefixRef:l,nameRef:nt(e,"name"),valueRef:h,disabledRef:n,mergedSizeRef:r,doUpdateValue:g});const b=an("Radio",u,l),x=R(()=>{const{value:w}=r,{common:{cubicBezierEaseInOut:C},self:{buttonBorderColor:S,buttonBorderColorActive:T,buttonBorderRadius:P,buttonBoxShadow:A,buttonBoxShadowFocus:I,buttonBoxShadowHover:B,buttonColor:D,buttonColorActive:U,buttonTextColor:F,buttonTextColorActive:j,buttonTextColorHover:K,opacityDisabled:ae,[ye("buttonHeight",w)]:we,[ye("fontSize",w)]:Ce}}=d.value;return{"--n-font-size":Ce,"--n-bezier":C,"--n-button-border-color":S,"--n-button-border-color-active":T,"--n-button-border-radius":P,"--n-button-box-shadow":A,"--n-button-box-shadow-focus":I,"--n-button-box-shadow-hover":B,"--n-button-color":D,"--n-button-color-active":U,"--n-button-text-color":F,"--n-button-text-color-hover":K,"--n-button-text-color-active":j,"--n-height":we,"--n-opacity-disabled":ae}}),y=c?tr("radio-group",R(()=>r.value[0]),x,e):void 0;return{selfElRef:t,rtlEnabled:b,mergedClsPrefix:l,mergedValue:h,handleFocusout:m,handleFocusin:v,cssVars:c?void 0:x,themeClass:y==null?void 0:y.themeClass,onRender:y==null?void 0:y.onRender}},render(){var e;const{mergedValue:t,mergedClsPrefix:r,handleFocusin:n,handleFocusout:o}=this,{children:i,isButtonGroup:a}=Gz(po(fg(this)),t,r);return(e=this.onRender)===null||e===void 0||e.call(this),k("div",{onFocusin:n,onFocusout:o,ref:"selfElRef",class:[`${r}-radio-group`,this.rtlEnabled&&`${r}-radio-group--rtl`,this.themeClass,a&&`${r}-radio-group--button-group`],style:this.cssVars},i)}}),Y_=e=>{const{textColorBase:t,opacity1:r,opacity2:n,opacity3:o,opacity4:i,opacity5:a}=e;return{color:t,opacity1Depth:r,opacity2Depth:n,opacity3Depth:o,opacity4Depth:i,opacity5Depth:a}},Xz={name:"Icon",common:ke,self:Y_},K_=Xz,Zz={name:"Icon",common:Ae,self:Y_},Qz=Zz,Jz=N("icon",`
|
||
height: 1em;
|
||
width: 1em;
|
||
line-height: 1em;
|
||
text-align: center;
|
||
display: inline-block;
|
||
position: relative;
|
||
fill: currentColor;
|
||
transform: translateZ(0);
|
||
`,[Q("color-transition",{transition:"color .3s var(--n-bezier)"}),Q("depth",{color:"var(--n-color)"},[q("svg",{opacity:"var(--n-opacity)",transition:"opacity .3s var(--n-bezier)"})]),q("svg",{height:"1em",width:"1em"})]),eN=Object.assign(Object.assign({},ze.props),{depth:[String,Number],size:[Number,String],color:String,component:Object}),Ui=me({_n_icon__:!0,name:"Icon",inheritAttrs:!1,props:eN,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=ht(e),n=ze("Icon","-icon",Jz,K_,e,t),o=R(()=>{const{depth:a}=e,{common:{cubicBezierEaseInOut:s},self:l}=n.value;if(a!==void 0){const{color:c,[`opacity${a}Depth`]:u}=l;return{"--n-bezier":s,"--n-color":c,"--n-opacity":u}}return{"--n-bezier":s,"--n-color":"","--n-opacity":""}}),i=r?tr("icon",R(()=>`${e.depth||"d"}`),o,e):void 0;return{mergedClsPrefix:t,mergedStyle:R(()=>{const{size:a,color:s}=e;return{fontSize:Li(a),color:s}}),cssVars:r?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{$parent:t,depth:r,mergedClsPrefix:n,component:o,onRender:i,themeClass:a}=this;return!((e=t==null?void 0:t.$options)===null||e===void 0)&&e._n_icon__&&ji("icon","don't wrap `n-icon` inside `n-icon`"),i==null||i(),k("i",Dn(this.$attrs,{role:"img",class:[`${n}-icon`,a,{[`${n}-icon--depth`]:r,[`${n}-icon--color-transition`]:r!==void 0}],style:[this.cssVars,this.mergedStyle]}),o?k(o):this.$slots)}}),tN={itemFontSize:"12px",itemHeight:"36px",itemWidth:"52px",panelActionPadding:"8px 0"},X_=e=>{const{popoverColor:t,textColor2:r,primaryColor:n,hoverColor:o,dividerColor:i,opacityDisabled:a,boxShadow2:s,borderRadius:l,iconColor:c,iconColorDisabled:u}=e;return Object.assign(Object.assign({},tN),{panelColor:t,panelBoxShadow:s,panelDividerColor:i,itemTextColor:r,itemTextColorActive:n,itemColorHover:o,itemOpacityDisabled:a,itemBorderRadius:l,borderRadius:l,iconColor:c,iconColorDisabled:u})},rN={name:"TimePicker",common:ke,peers:{Scrollbar:jr,Button:Wr,Input:sn},self:X_},Z_=rN,nN={name:"TimePicker",common:Ae,peers:{Scrollbar:Xr,Button:Zr,Input:wn},self:X_},Q_=nN,oN={itemSize:"24px",itemCellWidth:"38px",itemCellHeight:"32px",scrollItemWidth:"80px",scrollItemHeight:"40px",panelExtraFooterPadding:"8px 12px",panelActionPadding:"8px 12px",calendarTitlePadding:"0",calendarTitleHeight:"28px",arrowSize:"14px",panelHeaderPadding:"8px 12px",calendarDaysHeight:"32px",calendarTitleGridTempateColumns:"28px 28px 1fr 28px 28px",calendarLeftPaddingDate:"6px 12px 4px 12px",calendarLeftPaddingDatetime:"4px 12px",calendarLeftPaddingDaterange:"6px 12px 4px 12px",calendarLeftPaddingDatetimerange:"4px 12px",calendarLeftPaddingMonth:"0",calendarLeftPaddingYear:"0",calendarLeftPaddingQuarter:"0",calendarLeftPaddingMonthrange:"0",calendarLeftPaddingQuarterrange:"0",calendarLeftPaddingYearrange:"0",calendarLeftPaddingWeek:"6px 12px 4px 12px",calendarRightPaddingDate:"6px 12px 4px 12px",calendarRightPaddingDatetime:"4px 12px",calendarRightPaddingDaterange:"6px 12px 4px 12px",calendarRightPaddingDatetimerange:"4px 12px",calendarRightPaddingMonth:"0",calendarRightPaddingYear:"0",calendarRightPaddingQuarter:"0",calendarRightPaddingMonthrange:"0",calendarRightPaddingQuarterrange:"0",calendarRightPaddingYearrange:"0",calendarRightPaddingWeek:"0"},J_=e=>{const{hoverColor:t,fontSize:r,textColor2:n,textColorDisabled:o,popoverColor:i,primaryColor:a,borderRadiusSmall:s,iconColor:l,iconColorDisabled:c,textColor1:u,dividerColor:d,boxShadow2:f,borderRadius:p,fontWeightStrong:h}=e;return Object.assign(Object.assign({},oN),{itemFontSize:r,calendarDaysFontSize:r,calendarTitleFontSize:r,itemTextColor:n,itemTextColorDisabled:o,itemTextColorActive:i,itemTextColorCurrent:a,itemColorIncluded:fe(a,{alpha:.1}),itemColorHover:t,itemColorDisabled:t,itemColorActive:a,itemBorderRadius:s,panelColor:i,panelTextColor:n,arrowColor:l,calendarTitleTextColor:u,calendarTitleColorHover:t,calendarDaysTextColor:n,panelHeaderDividerColor:d,calendarDaysDividerColor:d,calendarDividerColor:d,panelActionDividerColor:d,panelBoxShadow:f,panelBorderRadius:p,calendarTitleFontWeight:h,scrollItemBorderRadius:p,iconColor:l,iconColorDisabled:c})},iN={name:"DatePicker",common:ke,peers:{Input:sn,Button:Wr,TimePicker:Z_,Scrollbar:jr},self:J_},aN=iN,sN={name:"DatePicker",common:Ae,peers:{Input:wn,Button:Zr,TimePicker:Q_,Scrollbar:Xr},self(e){const{popoverColor:t,hoverColor:r,primaryColor:n}=e,o=J_(e);return o.itemColorDisabled=Oe(t,r),o.itemColorIncluded=fe(n,{alpha:.15}),o.itemColorHover=Oe(t,r),o}},lN=sN;var Qe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function cN(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function uN(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}const dN={thPaddingBorderedSmall:"8px 12px",thPaddingBorderedMedium:"12px 16px",thPaddingBorderedLarge:"16px 24px",thPaddingSmall:"0",thPaddingMedium:"0",thPaddingLarge:"0",tdPaddingBorderedSmall:"8px 12px",tdPaddingBorderedMedium:"12px 16px",tdPaddingBorderedLarge:"16px 24px",tdPaddingSmall:"0 0 8px 0",tdPaddingMedium:"0 0 12px 0",tdPaddingLarge:"0 0 16px 0"},e4=e=>{const{tableHeaderColor:t,textColor2:r,textColor1:n,cardColor:o,modalColor:i,popoverColor:a,dividerColor:s,borderRadius:l,fontWeightStrong:c,lineHeight:u,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:p}=e;return Object.assign(Object.assign({},dN),{lineHeight:u,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:p,titleTextColor:n,thColor:Oe(o,t),thColorModal:Oe(i,t),thColorPopover:Oe(a,t),thTextColor:n,thFontWeight:c,tdTextColor:r,tdColor:o,tdColorModal:i,tdColorPopover:a,borderColor:Oe(o,s),borderColorModal:Oe(i,s),borderColorPopover:Oe(a,s),borderRadius:l})},fN={name:"Descriptions",common:ke,self:e4},hN=fN,pN={name:"Descriptions",common:Ae,self:e4},gN=pN,mN={titleFontSize:"18px",padding:"16px 28px 20px 28px",iconSize:"28px",actionSpace:"12px",contentMargin:"8px 0 16px 0",iconMargin:"0 4px 0 0",iconMarginIconTop:"4px 0 8px 0",closeSize:"22px",closeIconSize:"18px",closeMargin:"20px 26px 0 0",closeMarginIconTop:"10px 16px 0 0"},t4=e=>{const{textColor1:t,textColor2:r,modalColor:n,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:s,closeColorPressed:l,infoColor:c,successColor:u,warningColor:d,errorColor:f,primaryColor:p,dividerColor:h,borderRadius:g,fontWeightStrong:v,lineHeight:m,fontSize:b}=e;return Object.assign(Object.assign({},mN),{fontSize:b,lineHeight:m,border:`1px solid ${h}`,titleTextColor:t,textColor:r,color:n,closeColorHover:s,closeColorPressed:l,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:a,closeBorderRadius:g,iconColor:p,iconColorInfo:c,iconColorSuccess:u,iconColorWarning:d,iconColorError:f,borderRadius:g,titleFontWeight:v})},vN={name:"Dialog",common:ke,peers:{Button:Wr},self:t4},Ug=vN,bN={name:"Dialog",common:Ae,peers:{Button:Zr},self:t4},r4=bN,Fd={icon:Function,type:{type:String,default:"default"},title:[String,Function],closable:{type:Boolean,default:!0},negativeText:String,positiveText:String,positiveButtonProps:Object,negativeButtonProps:Object,content:[String,Function],action:Function,showIcon:{type:Boolean,default:!0},loading:Boolean,bordered:Boolean,iconPlacement:String,onPositiveClick:Function,onNegativeClick:Function,onClose:Function},n4=Ga(Fd),xN=q([N("dialog",`
|
||
--n-icon-margin: var(--n-icon-margin-top) var(--n-icon-margin-right) var(--n-icon-margin-bottom) var(--n-icon-margin-left);
|
||
word-break: break-word;
|
||
line-height: var(--n-line-height);
|
||
position: relative;
|
||
background: var(--n-color);
|
||
color: var(--n-text-color);
|
||
box-sizing: border-box;
|
||
margin: auto;
|
||
border-radius: var(--n-border-radius);
|
||
padding: var(--n-padding);
|
||
transition:
|
||
border-color .3s var(--n-bezier),
|
||
background-color .3s var(--n-bezier),
|
||
color .3s var(--n-bezier);
|
||
`,[Z("icon",{color:"var(--n-icon-color)"}),Q("bordered",{border:"var(--n-border)"}),Q("icon-top",[Z("close",{margin:"var(--n-close-margin)"}),Z("icon",{margin:"var(--n-icon-margin)"}),Z("content",{textAlign:"center"}),Z("title",{justifyContent:"center"}),Z("action",{justifyContent:"center"})]),Q("icon-left",[Z("icon",{margin:"var(--n-icon-margin)"}),Q("closable",[Z("title",`
|
||
padding-right: calc(var(--n-close-size) + 6px);
|
||
`)])]),Z("close",`
|
||
position: absolute;
|
||
right: 0;
|
||
top: 0;
|
||
margin: var(--n-close-margin);
|
||
transition:
|
||
background-color .3s var(--n-bezier),
|
||
color .3s var(--n-bezier);
|
||
z-index: 1;
|
||
`),Z("content",`
|
||
font-size: var(--n-font-size);
|
||
margin: var(--n-content-margin);
|
||
position: relative;
|
||
word-break: break-word;
|
||
`,[Q("last","margin-bottom: 0;")]),Z("action",`
|
||
display: flex;
|
||
justify-content: flex-end;
|
||
`,[q("> *:not(:last-child)",`
|
||
margin-right: var(--n-action-space);
|
||
`)]),Z("icon",`
|
||
font-size: var(--n-icon-size);
|
||
transition: color .3s var(--n-bezier);
|
||
`),Z("title",`
|
||
transition: color .3s var(--n-bezier);
|
||
display: flex;
|
||
align-items: center;
|
||
font-size: var(--n-title-font-size);
|
||
font-weight: var(--n-title-font-weight);
|
||
color: var(--n-title-text-color);
|
||
`),N("dialog-icon-container",`
|
||
display: flex;
|
||
justify-content: center;
|
||
`)]),wd(N("dialog",`
|
||
width: 446px;
|
||
max-width: calc(100vw - 32px);
|
||
`)),N("dialog",[S2(`
|
||
width: 446px;
|
||
max-width: calc(100vw - 32px);
|
||
`)])]),yN={default:()=>k(Xa,null),info:()=>k(Xa,null),success:()=>k(tc,null),warning:()=>k(rc,null),error:()=>k(ec,null)},o4=me({name:"Dialog",alias:["NimbusConfirmCard","Confirm"],props:Object.assign(Object.assign({},ze.props),Fd),setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:r,inlineThemeDisabled:n,mergedRtlRef:o}=ht(e),i=an("Dialog",o,r),a=R(()=>{var p,h;const{iconPlacement:g}=e;return g||((h=(p=t==null?void 0:t.value)===null||p===void 0?void 0:p.Dialog)===null||h===void 0?void 0:h.iconPlacement)||"left"});function s(p){const{onPositiveClick:h}=e;h&&h(p)}function l(p){const{onNegativeClick:h}=e;h&&h(p)}function c(){const{onClose:p}=e;p&&p()}const u=ze("Dialog","-dialog",xN,Ug,e,r),d=R(()=>{const{type:p}=e,h=a.value,{common:{cubicBezierEaseInOut:g},self:{fontSize:v,lineHeight:m,border:b,titleTextColor:x,textColor:y,color:w,closeBorderRadius:C,closeColorHover:S,closeColorPressed:T,closeIconColor:P,closeIconColorHover:A,closeIconColorPressed:I,closeIconSize:B,borderRadius:D,titleFontWeight:U,titleFontSize:F,padding:j,iconSize:K,actionSpace:ae,contentMargin:we,closeSize:Ce,[h==="top"?"iconMarginIconTop":"iconMargin"]:X,[h==="top"?"closeMarginIconTop":"closeMargin"]:re,[ye("iconColor",p)]:le}}=u.value,ne=Yn(X);return{"--n-font-size":v,"--n-icon-color":le,"--n-bezier":g,"--n-close-margin":re,"--n-icon-margin-top":ne.top,"--n-icon-margin-right":ne.right,"--n-icon-margin-bottom":ne.bottom,"--n-icon-margin-left":ne.left,"--n-icon-size":K,"--n-close-size":Ce,"--n-close-icon-size":B,"--n-close-border-radius":C,"--n-close-color-hover":S,"--n-close-color-pressed":T,"--n-close-icon-color":P,"--n-close-icon-color-hover":A,"--n-close-icon-color-pressed":I,"--n-color":w,"--n-text-color":y,"--n-border-radius":D,"--n-padding":j,"--n-line-height":m,"--n-border":b,"--n-content-margin":we,"--n-title-font-size":F,"--n-title-font-weight":U,"--n-title-text-color":x,"--n-action-space":ae}}),f=n?tr("dialog",R(()=>`${e.type[0]}${a.value[0]}`),d,e):void 0;return{mergedClsPrefix:r,rtlEnabled:i,mergedIconPlacement:a,mergedTheme:u,handlePositiveClick:s,handleNegativeClick:l,handleCloseClick:c,cssVars:n?void 0:d,themeClass:f==null?void 0:f.themeClass,onRender:f==null?void 0:f.onRender}},render(){var e;const{bordered:t,mergedIconPlacement:r,cssVars:n,closable:o,showIcon:i,title:a,content:s,action:l,negativeText:c,positiveText:u,positiveButtonProps:d,negativeButtonProps:f,handlePositiveClick:p,handleNegativeClick:h,mergedTheme:g,loading:v,type:m,mergedClsPrefix:b}=this;(e=this.onRender)===null||e===void 0||e.call(this);const x=i?k(or,{clsPrefix:b,class:`${b}-dialog__icon`},{default:()=>Ft(this.$slots.icon,w=>w||(this.icon?Yr(this.icon):yN[this.type]()))}):null,y=Ft(this.$slots.action,w=>w||u||c||l?k("div",{class:`${b}-dialog__action`},w||(l?[Yr(l)]:[this.negativeText&&k(qt,Object.assign({theme:g.peers.Button,themeOverrides:g.peerOverrides.Button,ghost:!0,size:"small",onClick:h},f),{default:()=>Yr(this.negativeText)}),this.positiveText&&k(qt,Object.assign({theme:g.peers.Button,themeOverrides:g.peerOverrides.Button,size:"small",type:m==="default"?"primary":m,disabled:v,loading:v,onClick:p},d),{default:()=>Yr(this.positiveText)})])):null);return k("div",{class:[`${b}-dialog`,this.themeClass,this.closable&&`${b}-dialog--closable`,`${b}-dialog--icon-${r}`,t&&`${b}-dialog--bordered`,this.rtlEnabled&&`${b}-dialog--rtl`],style:n,role:"dialog"},o?Ft(this.$slots.close,w=>{const C=[`${b}-dialog__close`,this.rtlEnabled&&`${b}-dialog--rtl`];return w?k("div",{class:C},w):k(ta,{clsPrefix:b,class:C,onClick:this.handleCloseClick})}):null,i&&r==="top"?k("div",{class:`${b}-dialog-icon-container`},x):null,k("div",{class:`${b}-dialog__title`},i&&r==="left"?x:null,go(this.$slots.header,()=>[Yr(a)])),k("div",{class:[`${b}-dialog__content`,y?"":`${b}-dialog__content--last`]},go(this.$slots.default,()=>[Yr(s)])),y)}}),i4="n-dialog-provider",a4="n-dialog-api",CN="n-dialog-reactive-list",s4=e=>{const{modalColor:t,textColor2:r,boxShadow3:n}=e;return{color:t,textColor:r,boxShadow:n}},wN={name:"Modal",common:ke,peers:{Scrollbar:jr,Dialog:Ug,Card:zg},self:s4},l4=wN,SN={name:"Modal",common:Ae,peers:{Scrollbar:Xr,Dialog:r4,Card:__},self:s4},_N=SN,Vg=Object.assign(Object.assign({},Ng),Fd),EN=Ga(Vg),TN=me({name:"ModalBody",inheritAttrs:!1,props:Object.assign(Object.assign({show:{type:Boolean,required:!0},preset:String,displayDirective:{type:String,required:!0},trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},blockScroll:Boolean},Vg),{renderMask:Function,onClickoutside:Function,onBeforeLeave:{type:Function,required:!0},onAfterLeave:{type:Function,required:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0},onClose:{type:Function,required:!0},onAfterEnter:Function,onEsc:Function}),setup(e){const t=z(null),r=z(null),n=z(e.show),o=z(null),i=z(null);Ye(nt(e,"show"),v=>{v&&(n.value=!0)}),qP(R(()=>e.blockScroll&&n.value));const a=Me(P2);function s(){if(a.transformOriginRef.value==="center")return"";const{value:v}=o,{value:m}=i;if(v===null||m===null)return"";if(r.value){const b=r.value.containerScrollTop;return`${v}px ${m+b}px`}return""}function l(v){if(a.transformOriginRef.value==="center")return;const m=a.getMousePosition();if(!m||!r.value)return;const b=r.value.containerScrollTop,{offsetLeft:x,offsetTop:y}=v;if(m){const w=m.y,C=m.x;o.value=-(x-C),i.value=-(y-w-b)}v.style.transformOrigin=s()}function c(v){zt(()=>{l(v)})}function u(v){v.style.transformOrigin=s(),e.onBeforeLeave()}function d(){n.value=!1,o.value=null,i.value=null,e.onAfterLeave()}function f(){const{onClose:v}=e;v&&v()}function p(){e.onNegativeClick()}function h(){e.onPositiveClick()}const g=z(null);return Ye(g,v=>{v&&zt(()=>{const m=v.el;m&&t.value!==m&&(t.value=m)})}),dt(gg,t),dt(mg,null),dt(vg,null),{mergedTheme:a.mergedThemeRef,appear:a.appearRef,isMounted:a.isMountedRef,mergedClsPrefix:a.mergedClsPrefixRef,bodyRef:t,scrollbarRef:r,displayed:n,childNodeRef:g,handlePositiveClick:h,handleNegativeClick:p,handleCloseClick:f,handleAfterLeave:d,handleBeforeLeave:u,handleEnter:c}},render(){const{$slots:e,$attrs:t,handleEnter:r,handleAfterLeave:n,handleBeforeLeave:o,preset:i,mergedClsPrefix:a}=this;let s=null;if(!i){if(s=wh(e),!s){ji("modal","default slot is empty");return}s=on(s),s.props=Dn({class:`${a}-modal`},t,s.props||{})}return this.displayDirective==="show"||this.displayed||this.show?bn(k("div",{role:"none",class:`${a}-modal-body-wrapper`},k(nc,{ref:"scrollbarRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:`${a}-modal-scroll-content`},{default:()=>{var l;return[(l=this.renderMask)===null||l===void 0?void 0:l.call(this),k(V2,{disabled:!this.trapFocus,active:this.show,onEsc:this.onEsc,autoFocus:this.autoFocus},{default:()=>{var c;return k(Fr,{name:"fade-in-scale-up-transition",appear:(c=this.appear)!==null&&c!==void 0?c:this.isMounted,onEnter:r,onAfterEnter:this.onAfterEnter,onAfterLeave:n,onBeforeLeave:o},{default:()=>{const u=[[Zo,this.show]],{onClickoutside:d}=this;return d&&u.push([kh,this.onClickoutside,void 0,{capture:!0}]),bn(this.preset==="confirm"||this.preset==="dialog"?k(o4,Object.assign({},this.$attrs,{class:[`${a}-modal`,this.$attrs.class],ref:"bodyRef",theme:this.mergedTheme.peers.Dialog,themeOverrides:this.mergedTheme.peerOverrides.Dialog},qa(this.$props,n4),{"aria-modal":"true"}),e):this.preset==="card"?k(Od,Object.assign({},this.$attrs,{ref:"bodyRef",class:[`${a}-modal`,this.$attrs.class],theme:this.mergedTheme.peers.Card,themeOverrides:this.mergedTheme.peerOverrides.Card},qa(this.$props,W7),{"aria-modal":"true",role:"dialog"}),e):this.childNodeRef=s,u)}})}})]}})),[[Zo,this.displayDirective==="if"||this.displayed||this.show]]):null}}),kN=q([N("modal-container",`
|
||
position: fixed;
|
||
left: 0;
|
||
top: 0;
|
||
height: 0;
|
||
width: 0;
|
||
display: flex;
|
||
`),N("modal-mask",`
|
||
position: fixed;
|
||
left: 0;
|
||
right: 0;
|
||
top: 0;
|
||
bottom: 0;
|
||
background-color: rgba(0, 0, 0, .4);
|
||
`,[Za({enterDuration:".25s",leaveDuration:".25s",enterCubicBezier:"var(--n-bezier-ease-out)",leaveCubicBezier:"var(--n-bezier-ease-out)"})]),N("modal-body-wrapper",`
|
||
position: fixed;
|
||
left: 0;
|
||
right: 0;
|
||
top: 0;
|
||
bottom: 0;
|
||
overflow: visible;
|
||
`,[N("modal-scroll-content",`
|
||
min-height: 100%;
|
||
display: flex;
|
||
position: relative;
|
||
`)]),N("modal",`
|
||
position: relative;
|
||
align-self: center;
|
||
color: var(--n-text-color);
|
||
margin: auto;
|
||
box-shadow: var(--n-box-shadow);
|
||
`,[qS({duration:".25s",enterScale:".5"})])]),AN=Object.assign(Object.assign(Object.assign(Object.assign({},ze.props),{show:Boolean,unstableShowMask:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},preset:String,to:[String,Object],displayDirective:{type:String,default:"if"},transformOrigin:{type:String,default:"mouse"},zIndex:Number,autoFocus:{type:Boolean,default:!0},trapFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0}}),Vg),{onEsc:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onBeforeLeave:Function,onAfterLeave:Function,onClose:Function,onPositiveClick:Function,onNegativeClick:Function,onMaskClick:Function,internalDialog:Boolean,internalModal:Boolean,internalAppear:{type:Boolean,default:void 0},overlayStyle:[String,Object],onBeforeHide:Function,onAfterHide:Function,onHide:Function}),oa=me({name:"Modal",inheritAttrs:!1,props:AN,setup(e){const t=z(null),{mergedClsPrefixRef:r,namespaceRef:n,inlineThemeDisabled:o}=ht(e),i=ze("Modal","-modal",kN,l4,e,r),a=A2(64),s=k2(),l=bs(),c=e.internalDialog?Me(i4,null):null,u=e.internalModal?Me(ZA,null):null,d=GP();function f(C){const{onUpdateShow:S,"onUpdate:show":T,onHide:P}=e;S&&at(S,C),T&&at(T,C),P&&!C&&P(C)}function p(){const{onClose:C}=e;C?Promise.resolve(C()).then(S=>{S!==!1&&f(!1)}):f(!1)}function h(){const{onPositiveClick:C}=e;C?Promise.resolve(C()).then(S=>{S!==!1&&f(!1)}):f(!1)}function g(){const{onNegativeClick:C}=e;C?Promise.resolve(C()).then(S=>{S!==!1&&f(!1)}):f(!1)}function v(){const{onBeforeLeave:C,onBeforeHide:S}=e;C&&at(C),S&&S()}function m(){const{onAfterLeave:C,onAfterHide:S}=e;C&&at(C),S&&S()}function b(C){var S;const{onMaskClick:T}=e;T&&T(C),e.maskClosable&&!((S=t.value)===null||S===void 0)&&S.contains(Sl(C))&&f(!1)}function x(C){var S;(S=e.onEsc)===null||S===void 0||S.call(e),e.show&&e.closeOnEsc&&IA(C)&&!d.value&&f(!1)}dt(P2,{getMousePosition:()=>{const C=c||u;if(C){const{clickedRef:S,clickedPositionRef:T}=C;if(S.value&&T.value)return T.value}return a.value?s.value:null},mergedClsPrefixRef:r,mergedThemeRef:i,isMountedRef:l,appearRef:nt(e,"internalAppear"),transformOriginRef:nt(e,"transformOrigin")});const y=R(()=>{const{common:{cubicBezierEaseOut:C},self:{boxShadow:S,color:T,textColor:P}}=i.value;return{"--n-bezier-ease-out":C,"--n-box-shadow":S,"--n-color":T,"--n-text-color":P}}),w=o?tr("theme-class",void 0,y,e):void 0;return{mergedClsPrefix:r,namespace:n,isMounted:l,containerRef:t,presetProps:R(()=>qa(e,EN)),handleEsc:x,handleAfterLeave:m,handleClickoutside:b,handleBeforeLeave:v,doUpdateShow:f,handleNegativeClick:g,handlePositiveClick:h,handleCloseClick:p,cssVars:o?void 0:y,themeClass:w==null?void 0:w.themeClass,onRender:w==null?void 0:w.onRender}},render(){const{mergedClsPrefix:e}=this;return k(bg,{to:this.to,show:this.show},{default:()=>{var t;(t=this.onRender)===null||t===void 0||t.call(this);const{unstableShowMask:r}=this;return bn(k("div",{role:"none",ref:"containerRef",class:[`${e}-modal-container`,this.themeClass,this.namespace],style:this.cssVars},k(TN,Object.assign({style:this.overlayStyle},this.$attrs,{ref:"bodyWrapper",displayDirective:this.displayDirective,show:this.show,preset:this.preset,autoFocus:this.autoFocus,trapFocus:this.trapFocus,blockScroll:this.blockScroll},this.presetProps,{onEsc:this.handleEsc,onClose:this.handleCloseClick,onNegativeClick:this.handleNegativeClick,onPositiveClick:this.handlePositiveClick,onBeforeLeave:this.handleBeforeLeave,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave,onClickoutside:r?void 0:this.handleClickoutside,renderMask:r?()=>{var n;return k(Fr,{name:"fade-in-transition",key:"mask",appear:(n=this.internalAppear)!==null&&n!==void 0?n:this.isMounted},{default:()=>this.show?k("div",{"aria-hidden":!0,ref:"containerRef",class:`${e}-modal-mask`,onClick:this.handleClickoutside}):null})}:void 0}),this.$slots)),[[_d,{zIndex:this.zIndex,enabled:this.show}]])}})}}),PN=Object.assign(Object.assign({},Fd),{onAfterEnter:Function,onAfterLeave:Function,transformOrigin:String,blockScroll:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},internalStyle:[String,Object],maskClosable:{type:Boolean,default:!0},onPositiveClick:Function,onNegativeClick:Function,onClose:Function,onMaskClick:Function}),$N=me({name:"DialogEnvironment",props:Object.assign(Object.assign({},PN),{internalKey:{type:String,required:!0},to:[String,Object],onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const t=z(!0);function r(){const{onInternalAfterLeave:u,internalKey:d,onAfterLeave:f}=e;u&&u(d),f&&f()}function n(u){const{onPositiveClick:d}=e;d?Promise.resolve(d(u)).then(f=>{f!==!1&&l()}):l()}function o(u){const{onNegativeClick:d}=e;d?Promise.resolve(d(u)).then(f=>{f!==!1&&l()}):l()}function i(){const{onClose:u}=e;u?Promise.resolve(u()).then(d=>{d!==!1&&l()}):l()}function a(u){const{onMaskClick:d,maskClosable:f}=e;d&&(d(u),f&&l())}function s(){const{onEsc:u}=e;u&&u()}function l(){t.value=!1}function c(u){t.value=u}return{show:t,hide:l,handleUpdateShow:c,handleAfterLeave:r,handleCloseClick:i,handleNegativeClick:o,handlePositiveClick:n,handleMaskClick:a,handleEsc:s}},render(){const{handlePositiveClick:e,handleUpdateShow:t,handleNegativeClick:r,handleCloseClick:n,handleAfterLeave:o,handleMaskClick:i,handleEsc:a,to:s,maskClosable:l,show:c}=this;return k(oa,{show:c,onUpdateShow:t,onMaskClick:i,onEsc:a,to:s,maskClosable:l,onAfterEnter:this.onAfterEnter,onAfterLeave:o,closeOnEsc:this.closeOnEsc,blockScroll:this.blockScroll,autoFocus:this.autoFocus,transformOrigin:this.transformOrigin,internalAppear:!0,internalDialog:!0},{default:()=>k(o4,Object.assign({},qa(this.$props,n4),{style:this.internalStyle,onClose:n,onNegativeClick:r,onPositiveClick:e}))})}}),IN={injectionKey:String,to:[String,Object]},BN=me({name:"DialogProvider",props:IN,setup(){const e=z([]),t={};function r(s={}){const l=Hi(),c=Cn(Object.assign(Object.assign({},s),{key:l,destroy:()=>{t[`n-dialog-${l}`].hide()}}));return e.value.push(c),c}const n=["info","success","warning","error"].map(s=>l=>r(Object.assign(Object.assign({},l),{type:s})));function o(s){const{value:l}=e;l.splice(l.findIndex(c=>c.key===s),1)}function i(){Object.values(t).forEach(s=>{s.hide()})}const a={create:r,destroyAll:i,info:n[0],success:n[1],warning:n[2],error:n[3]};return dt(a4,a),dt(i4,{clickedRef:A2(64),clickedPositionRef:k2()}),dt(CN,e),Object.assign(Object.assign({},a),{dialogList:e,dialogInstRefs:t,handleAfterLeave:o})},render(){var e,t;return k(st,null,[this.dialogList.map(r=>k($N,yd(r,["destroy","style"],{internalStyle:r.style,to:this.to,ref:n=>{n===null?delete this.dialogInstRefs[`n-dialog-${r.key}`]:this.dialogInstRefs[`n-dialog-${r.key}`]=n},internalKey:r.key,onInternalAfterLeave:this.handleAfterLeave}))),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)])}});function c4(){const e=Me(a4,null);return e===null&&ms("use-dialog","No outer <n-dialog-provider /> founded."),e}const u4=e=>{const{textColor1:t,dividerColor:r,fontWeightStrong:n}=e;return{textColor:t,color:r,fontWeight:n}},DN={name:"Divider",common:ke,self:u4},ON=DN,RN={name:"Divider",common:Ae,self:u4},LN=RN,d4=e=>{const{modalColor:t,textColor1:r,textColor2:n,boxShadow3:o,lineHeight:i,fontWeightStrong:a,dividerColor:s,closeColorHover:l,closeColorPressed:c,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,borderRadius:p,primaryColorHover:h}=e;return{bodyPadding:"16px 24px",borderRadius:p,headerPadding:"16px 24px",footerPadding:"16px 24px",color:t,textColor:n,titleTextColor:r,titleFontSize:"18px",titleFontWeight:a,boxShadow:o,lineHeight:i,headerBorderBottom:`1px solid ${s}`,footerBorderTop:`1px solid ${s}`,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,closeSize:"22px",closeIconSize:"18px",closeColorHover:l,closeColorPressed:c,closeBorderRadius:p,resizableTriggerColorHover:h}},FN={name:"Drawer",common:ke,peers:{Scrollbar:jr},self:d4},MN=FN,zN={name:"Drawer",common:Ae,peers:{Scrollbar:Xr},self:d4},NN=zN,f4={actionMargin:"0 0 0 20px",actionMarginRtl:"0 20px 0 0"},HN={name:"DynamicInput",common:Ae,peers:{Input:wn,Button:Zr},self(){return f4}},jN=HN,WN=()=>f4,UN={name:"DynamicInput",common:ke,peers:{Input:sn,Button:Wr},self:WN},VN=UN,h4={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"},qN={name:"Space",self(){return h4}},p4=qN,GN=()=>h4,YN={name:"Space",self:GN},qg=YN;let Yf;const KN=()=>{if(!wo)return!0;if(Yf===void 0){const e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e);const t=e.scrollHeight===1;return document.body.removeChild(e),Yf=t}return Yf},XN=Object.assign(Object.assign({},ze.props),{align:String,justify:{type:String,default:"start"},inline:Boolean,vertical:Boolean,reverse:Boolean,size:{type:[String,Number,Array],default:"medium"},wrapItem:{type:Boolean,default:!0},itemClass:String,itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}}),Md=me({name:"Space",props:XN,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:r}=ht(e),n=ze("Space","-space",void 0,qg,e,t),o=an("Space",r,t);return{useGap:KN(),rtlEnabled:o,mergedClsPrefix:t,margin:R(()=>{const{size:i}=e;if(Array.isArray(i))return{horizontal:i[0],vertical:i[1]};if(typeof i=="number")return{horizontal:i,vertical:i};const{self:{[ye("gap",i)]:a}}=n.value,{row:s,col:l}=Zk(a);return{horizontal:yh(l),vertical:yh(s)}})}},render(){const{vertical:e,reverse:t,align:r,inline:n,justify:o,itemClass:i,itemStyle:a,margin:s,wrap:l,mergedClsPrefix:c,rtlEnabled:u,useGap:d,wrapItem:f,internalUseGap:p}=this,h=po(fg(this),!1);if(!h.length)return null;const g=`${s.horizontal}px`,v=`${s.horizontal/2}px`,m=`${s.vertical}px`,b=`${s.vertical/2}px`,x=h.length-1,y=o.startsWith("space-");return k("div",{role:"none",class:[`${c}-space`,u&&`${c}-space--rtl`],style:{display:n?"inline-flex":"flex",flexDirection:(()=>e&&!t?"column":e&&t?"column-reverse":!e&&t?"row-reverse":"row")(),justifyContent:["start","end"].includes(o)?"flex-"+o:o,flexWrap:!l||e?"nowrap":"wrap",marginTop:d||e?"":`-${b}`,marginBottom:d||e?"":`-${b}`,alignItems:r,gap:d?`${s.vertical}px ${s.horizontal}px`:""}},!f&&(d||p)?h:h.map((w,C)=>w.type===Lr?w:k("div",{role:"none",class:i,style:[a,{maxWidth:"100%"},d?"":e?{marginBottom:C!==x?m:""}:u?{marginLeft:y?o==="space-between"&&C===x?"":v:C!==x?g:"",marginRight:y?o==="space-between"&&C===0?"":v:"",paddingTop:b,paddingBottom:b}:{marginRight:y?o==="space-between"&&C===x?"":v:C!==x?g:"",marginLeft:y?o==="space-between"&&C===0?"":v:"",paddingTop:b,paddingBottom:b}]},w)))}}),ZN={name:"DynamicTags",common:Ae,peers:{Input:wn,Button:Zr,Tag:ZS,Space:p4},self(){return{inputWidth:"64px"}}},QN=ZN,JN={name:"DynamicTags",common:ke,peers:{Input:sn,Button:Wr,Tag:Rg,Space:qg},self(){return{inputWidth:"64px"}}},eH=JN,tH={name:"Element",common:Ae},rH=tH,nH={name:"Element",common:ke},oH=nH,g4={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"},iH={name:"Flex",self(){return g4}},aH=iH,sH=()=>g4,lH={name:"Flex",self:sH},cH=lH,uH={feedbackPadding:"4px 0 0 2px",feedbackHeightSmall:"24px",feedbackHeightMedium:"24px",feedbackHeightLarge:"26px",feedbackFontSizeSmall:"13px",feedbackFontSizeMedium:"14px",feedbackFontSizeLarge:"14px",labelFontSizeLeftSmall:"14px",labelFontSizeLeftMedium:"14px",labelFontSizeLeftLarge:"15px",labelFontSizeTopSmall:"13px",labelFontSizeTopMedium:"14px",labelFontSizeTopLarge:"14px",labelHeightSmall:"24px",labelHeightMedium:"26px",labelHeightLarge:"28px",labelPaddingVertical:"0 0 6px 2px",labelPaddingHorizontal:"0 12px 0 0",labelTextAlignVertical:"left",labelTextAlignHorizontal:"right",labelFontWeight:"400"},m4=e=>{const{heightSmall:t,heightMedium:r,heightLarge:n,textColor1:o,errorColor:i,warningColor:a,lineHeight:s,textColor3:l}=e;return Object.assign(Object.assign({},uH),{blankHeightSmall:t,blankHeightMedium:r,blankHeightLarge:n,lineHeight:s,labelTextColor:o,asteriskColor:i,feedbackTextColorError:i,feedbackTextColorWarning:a,feedbackTextColor:l})},dH={name:"Form",common:ke,self:m4},Gg=dH,fH={name:"Form",common:Ae,self:m4},hH=fH,pH=N("form",[Q("inline",`
|
||
width: 100%;
|
||
display: inline-flex;
|
||
align-items: flex-start;
|
||
align-content: space-around;
|
||
`,[N("form-item",{width:"auto",marginRight:"18px"},[q("&:last-child",{marginRight:0})])])]),sc="n-form",v4="n-form-item-insts";var gH=globalThis&&globalThis.__awaiter||function(e,t,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{c(n.next(u))}catch(d){a(d)}}function l(u){try{c(n.throw(u))}catch(d){a(d)}}function c(u){u.done?i(u.value):o(u.value).then(s,l)}c((n=n.apply(e,t||[])).next())})};const mH=Object.assign(Object.assign({},ze.props),{inline:Boolean,labelWidth:[Number,String],labelAlign:String,labelPlacement:{type:String,default:"top"},model:{type:Object,default:()=>{}},rules:Object,disabled:Boolean,size:String,showRequireMark:{type:Boolean,default:void 0},requireMarkPlacement:String,showFeedback:{type:Boolean,default:!0},onSubmit:{type:Function,default:e=>{e.preventDefault()}},showLabel:{type:Boolean,default:void 0},validateMessages:Object}),qu=me({name:"Form",props:mH,setup(e){const{mergedClsPrefixRef:t}=ht(e);ze("Form","-form",pH,Gg,e,t);const r={},n=z(void 0),o=l=>{const c=n.value;(c===void 0||l>=c)&&(n.value=l)};function i(l,c=()=>!0){return gH(this,void 0,void 0,function*(){return yield new Promise((u,d)=>{const f=[];for(const p of Ga(r)){const h=r[p];for(const g of h)g.path&&f.push(g.internalValidate(null,c))}Promise.all(f).then(p=>{const h=p.some(m=>!m.valid),g=[],v=[];p.forEach(m=>{var b,x;!((b=m.errors)===null||b===void 0)&&b.length&&g.push(m.errors),!((x=m.warnings)===null||x===void 0)&&x.length&&v.push(m.warnings)}),l&&l(g.length?g:void 0,{warnings:v.length?v:void 0}),h?d(g.length?g:void 0):u({warnings:v.length?v:void 0})})})})}function a(){for(const l of Ga(r)){const c=r[l];for(const u of c)u.restoreValidation()}}return dt(sc,{props:e,maxChildLabelWidthRef:n,deriveMaxChildLabelWidth:o}),dt(v4,{formItems:r}),Object.assign({validate:i,restoreValidation:a},{mergedClsPrefix:t})},render(){const{mergedClsPrefix:e}=this;return k("form",{class:[`${e}-form`,this.inline&&`${e}-form--inline`],onSubmit:this.onSubmit},this.$slots)}});function Bi(){return Bi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Bi.apply(this,arguments)}function vH(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Dl(e,t)}function Nh(e){return Nh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Nh(e)}function Dl(e,t){return Dl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},Dl(e,t)}function bH(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function lu(e,t,r){return bH()?lu=Reflect.construct.bind():lu=function(o,i,a){var s=[null];s.push.apply(s,i);var l=Function.bind.apply(o,s),c=new l;return a&&Dl(c,a.prototype),c},lu.apply(null,arguments)}function xH(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Hh(e){var t=typeof Map=="function"?new Map:void 0;return Hh=function(n){if(n===null||!xH(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(n))return t.get(n);t.set(n,o)}function o(){return lu(n,arguments,Nh(this).constructor)}return o.prototype=Object.create(n.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Dl(o,n)},Hh(e)}var yH=/%[sdj%]/g,CH=function(){};typeof process<"u"&&process.env;function jh(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var n=r.field;t[n]=t[n]||[],t[n].push(r)}),t}function rn(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=0,i=r.length;if(typeof e=="function")return e.apply(null,r);if(typeof e=="string"){var a=e.replace(yH,function(s){if(s==="%%")return"%";if(o>=i)return s;switch(s){case"%s":return String(r[o++]);case"%d":return Number(r[o++]);case"%j":try{return JSON.stringify(r[o++])}catch{return"[Circular]"}break;default:return s}});return a}return e}function wH(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function wr(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||wH(t)&&typeof e=="string"&&!e)}function SH(e,t,r){var n=[],o=0,i=e.length;function a(s){n.push.apply(n,s||[]),o++,o===i&&r(n)}e.forEach(function(s){t(s,a)})}function f1(e,t,r){var n=0,o=e.length;function i(a){if(a&&a.length){r(a);return}var s=n;n=n+1,s<o?t(e[s],i):r([])}i([])}function _H(e){var t=[];return Object.keys(e).forEach(function(r){t.push.apply(t,e[r]||[])}),t}var h1=function(e){vH(t,e);function t(r,n){var o;return o=e.call(this,"Async Validation Error")||this,o.errors=r,o.fields=n,o}return t}(Hh(Error));function EH(e,t,r,n,o){if(t.first){var i=new Promise(function(f,p){var h=function(m){return n(m),m.length?p(new h1(m,jh(m))):f(o)},g=_H(e);f1(g,r,h)});return i.catch(function(f){return f}),i}var a=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],d=new Promise(function(f,p){var h=function(v){if(u.push.apply(u,v),c++,c===l)return n(u),u.length?p(new h1(u,jh(u))):f(o)};s.length||(n(u),f(o)),s.forEach(function(g){var v=e[g];a.indexOf(g)!==-1?f1(v,r,h):SH(v,r,h)})});return d.catch(function(f){return f}),d}function TH(e){return!!(e&&e.message!==void 0)}function kH(e,t){for(var r=e,n=0;n<t.length;n++){if(r==null)return r;r=r[t[n]]}return r}function p1(e,t){return function(r){var n;return e.fullFields?n=kH(t,e.fullFields):n=t[r.field||e.fullField],TH(r)?(r.field=r.field||e.fullField,r.fieldValue=n,r):{message:typeof r=="function"?r():r,fieldValue:n,field:r.field||e.fullField}}}function g1(e,t){if(t){for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];typeof n=="object"&&typeof e[r]=="object"?e[r]=Bi({},e[r],n):e[r]=n}}return e}var b4=function(t,r,n,o,i,a){t.required&&(!n.hasOwnProperty(t.field)||wr(r,a||t.type))&&o.push(rn(i.messages.required,t.fullField))},AH=function(t,r,n,o,i){(/^\s+$/.test(r)||r==="")&&o.push(rn(i.messages.whitespace,t.fullField))},Fc,PH=function(){if(Fc)return Fc;var e="[a-fA-F\\d:]",t=function(y){return y&&y.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},r="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",n="[a-fA-F\\d]{1,4}",o=(`
|
||
(?:
|
||
(?:`+n+":){7}(?:"+n+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
|
||
(?:`+n+":){6}(?:"+r+"|:"+n+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
|
||
(?:`+n+":){5}(?::"+r+"|(?::"+n+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
|
||
(?:`+n+":){4}(?:(?::"+n+"){0,1}:"+r+"|(?::"+n+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
|
||
(?:`+n+":){3}(?:(?::"+n+"){0,2}:"+r+"|(?::"+n+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
|
||
(?:`+n+":){2}(?:(?::"+n+"){0,3}:"+r+"|(?::"+n+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
|
||
(?:`+n+":){1}(?:(?::"+n+"){0,4}:"+r+"|(?::"+n+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
|
||
(?::(?:(?::`+n+"){0,5}:"+r+"|(?::"+n+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
|
||
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
|
||
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+r+"$)|(?:^"+o+"$)"),a=new RegExp("^"+r+"$"),s=new RegExp("^"+o+"$"),l=function(y){return y&&y.exact?i:new RegExp("(?:"+t(y)+r+t(y)+")|(?:"+t(y)+o+t(y)+")","g")};l.v4=function(x){return x&&x.exact?a:new RegExp(""+t(x)+r+t(x),"g")},l.v6=function(x){return x&&x.exact?s:new RegExp(""+t(x)+o+t(x),"g")};var c="(?:(?:[a-z]+:)?//)",u="(?:\\S+(?::\\S*)?@)?",d=l.v4().source,f=l.v6().source,p="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",h="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",g="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",v="(?::\\d{2,5})?",m='(?:[/?#][^\\s"]*)?',b="(?:"+c+"|www\\.)"+u+"(?:localhost|"+d+"|"+f+"|"+p+h+g+")"+v+m;return Fc=new RegExp("(?:^"+b+"$)","i"),Fc},m1={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Us={integer:function(t){return Us.number(t)&&parseInt(t,10)===t},float:function(t){return Us.number(t)&&!Us.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!Us.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(m1.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(PH())},hex:function(t){return typeof t=="string"&&!!t.match(m1.hex)}},$H=function(t,r,n,o,i){if(t.required&&r===void 0){b4(t,r,n,o,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;a.indexOf(s)>-1?Us[s](r)||o.push(rn(i.messages.types[s],t.fullField,t.type)):s&&typeof r!==t.type&&o.push(rn(i.messages.types[s],t.fullField,t.type))},IH=function(t,r,n,o,i){var a=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=r,d=null,f=typeof r=="number",p=typeof r=="string",h=Array.isArray(r);if(f?d="number":p?d="string":h&&(d="array"),!d)return!1;h&&(u=r.length),p&&(u=r.replace(c,"_").length),a?u!==t.len&&o.push(rn(i.messages[d].len,t.fullField,t.len)):s&&!l&&u<t.min?o.push(rn(i.messages[d].min,t.fullField,t.min)):l&&!s&&u>t.max?o.push(rn(i.messages[d].max,t.fullField,t.max)):s&&l&&(u<t.min||u>t.max)&&o.push(rn(i.messages[d].range,t.fullField,t.min,t.max))},ba="enum",BH=function(t,r,n,o,i){t[ba]=Array.isArray(t[ba])?t[ba]:[],t[ba].indexOf(r)===-1&&o.push(rn(i.messages[ba],t.fullField,t[ba].join(", ")))},DH=function(t,r,n,o,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||o.push(rn(i.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(r)||o.push(rn(i.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},ut={required:b4,whitespace:AH,type:$H,range:IH,enum:BH,pattern:DH},OH=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(wr(r,"string")&&!t.required)return n();ut.required(t,r,o,a,i,"string"),wr(r,"string")||(ut.type(t,r,o,a,i),ut.range(t,r,o,a,i),ut.pattern(t,r,o,a,i),t.whitespace===!0&&ut.whitespace(t,r,o,a,i))}n(a)},RH=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(wr(r)&&!t.required)return n();ut.required(t,r,o,a,i),r!==void 0&&ut.type(t,r,o,a,i)}n(a)},LH=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),wr(r)&&!t.required)return n();ut.required(t,r,o,a,i),r!==void 0&&(ut.type(t,r,o,a,i),ut.range(t,r,o,a,i))}n(a)},FH=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(wr(r)&&!t.required)return n();ut.required(t,r,o,a,i),r!==void 0&&ut.type(t,r,o,a,i)}n(a)},MH=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(wr(r)&&!t.required)return n();ut.required(t,r,o,a,i),wr(r)||ut.type(t,r,o,a,i)}n(a)},zH=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(wr(r)&&!t.required)return n();ut.required(t,r,o,a,i),r!==void 0&&(ut.type(t,r,o,a,i),ut.range(t,r,o,a,i))}n(a)},NH=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(wr(r)&&!t.required)return n();ut.required(t,r,o,a,i),r!==void 0&&(ut.type(t,r,o,a,i),ut.range(t,r,o,a,i))}n(a)},HH=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(r==null&&!t.required)return n();ut.required(t,r,o,a,i,"array"),r!=null&&(ut.type(t,r,o,a,i),ut.range(t,r,o,a,i))}n(a)},jH=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(wr(r)&&!t.required)return n();ut.required(t,r,o,a,i),r!==void 0&&ut.type(t,r,o,a,i)}n(a)},WH="enum",UH=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(wr(r)&&!t.required)return n();ut.required(t,r,o,a,i),r!==void 0&&ut[WH](t,r,o,a,i)}n(a)},VH=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(wr(r,"string")&&!t.required)return n();ut.required(t,r,o,a,i),wr(r,"string")||ut.pattern(t,r,o,a,i)}n(a)},qH=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(wr(r,"date")&&!t.required)return n();if(ut.required(t,r,o,a,i),!wr(r,"date")){var l;r instanceof Date?l=r:l=new Date(r),ut.type(t,l,o,a,i),l&&ut.range(t,l.getTime(),o,a,i)}}n(a)},GH=function(t,r,n,o,i){var a=[],s=Array.isArray(r)?"array":typeof r;ut.required(t,r,o,a,i,s),n(a)},Kf=function(t,r,n,o,i){var a=t.type,s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(wr(r,a)&&!t.required)return n();ut.required(t,r,o,s,i,a),wr(r,a)||ut.type(t,r,o,s,i)}n(s)},YH=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(wr(r)&&!t.required)return n();ut.required(t,r,o,a,i)}n(a)},nl={string:OH,method:RH,number:LH,boolean:FH,regexp:MH,integer:zH,float:NH,array:HH,object:jH,enum:UH,pattern:VH,date:qH,url:Kf,hex:Kf,email:Kf,required:GH,any:YH};function Wh(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Uh=Wh(),Qa=function(){function e(r){this.rules=null,this._messages=Uh,this.define(r)}var t=e.prototype;return t.define=function(n){var o=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(typeof n!="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(i){var a=n[i];o.rules[i]=Array.isArray(a)?a:[a]})},t.messages=function(n){return n&&(this._messages=g1(Wh(),n)),this._messages},t.validate=function(n,o,i){var a=this;o===void 0&&(o={}),i===void 0&&(i=function(){});var s=n,l=o,c=i;if(typeof l=="function"&&(c=l,l={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,s),Promise.resolve(s);function u(g){var v=[],m={};function b(y){if(Array.isArray(y)){var w;v=(w=v).concat.apply(w,y)}else v.push(y)}for(var x=0;x<g.length;x++)b(g[x]);v.length?(m=jh(v),c(v,m)):c(null,s)}if(l.messages){var d=this.messages();d===Uh&&(d=Wh()),g1(d,l.messages),l.messages=d}else l.messages=this.messages();var f={},p=l.keys||Object.keys(this.rules);p.forEach(function(g){var v=a.rules[g],m=s[g];v.forEach(function(b){var x=b;typeof x.transform=="function"&&(s===n&&(s=Bi({},s)),m=s[g]=x.transform(m)),typeof x=="function"?x={validator:x}:x=Bi({},x),x.validator=a.getValidationMethod(x),x.validator&&(x.field=g,x.fullField=x.fullField||g,x.type=a.getType(x),f[g]=f[g]||[],f[g].push({rule:x,value:m,source:s,field:g}))})});var h={};return EH(f,l,function(g,v){var m=g.rule,b=(m.type==="object"||m.type==="array")&&(typeof m.fields=="object"||typeof m.defaultField=="object");b=b&&(m.required||!m.required&&g.value),m.field=g.field;function x(C,S){return Bi({},S,{fullField:m.fullField+"."+C,fullFields:m.fullFields?[].concat(m.fullFields,[C]):[C]})}function y(C){C===void 0&&(C=[]);var S=Array.isArray(C)?C:[C];!l.suppressWarning&&S.length&&e.warning("async-validator:",S),S.length&&m.message!==void 0&&(S=[].concat(m.message));var T=S.map(p1(m,s));if(l.first&&T.length)return h[m.field]=1,v(T);if(!b)v(T);else{if(m.required&&!g.value)return m.message!==void 0?T=[].concat(m.message).map(p1(m,s)):l.error&&(T=[l.error(m,rn(l.messages.required,m.field))]),v(T);var P={};m.defaultField&&Object.keys(g.value).map(function(B){P[B]=m.defaultField}),P=Bi({},P,g.rule.fields);var A={};Object.keys(P).forEach(function(B){var D=P[B],U=Array.isArray(D)?D:[D];A[B]=U.map(x.bind(null,B))});var I=new e(A);I.messages(l.messages),g.rule.options&&(g.rule.options.messages=l.messages,g.rule.options.error=l.error),I.validate(g.value,g.rule.options||l,function(B){var D=[];T&&T.length&&D.push.apply(D,T),B&&B.length&&D.push.apply(D,B),v(D.length?D:null)})}}var w;if(m.asyncValidator)w=m.asyncValidator(m,g.value,y,g.source,l);else if(m.validator){try{w=m.validator(m,g.value,y,g.source,l)}catch(C){console.error==null||console.error(C),l.suppressValidatorError||setTimeout(function(){throw C},0),y(C.message)}w===!0?y():w===!1?y(typeof m.message=="function"?m.message(m.fullField||m.field):m.message||(m.fullField||m.field)+" fails"):w instanceof Array?y(w):w instanceof Error&&y(w.message)}w&&w.then&&w.then(function(){return y()},function(C){return y(C)})},function(g){u(g)},s)},t.getType=function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!nl.hasOwnProperty(n.type))throw new Error(rn("Unknown rule type %s",n.type));return n.type||"string"},t.getValidationMethod=function(n){if(typeof n.validator=="function")return n.validator;var o=Object.keys(n),i=o.indexOf("message");return i!==-1&&o.splice(i,1),o.length===1&&o[0]==="required"?nl.required:nl[this.getType(n)]||void 0},e}();Qa.register=function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");nl[t]=r};Qa.warning=CH;Qa.messages=Uh;Qa.validators=nl;function KH(e){const t=Me(sc,null);return{mergedSize:R(()=>e.size!==void 0?e.size:(t==null?void 0:t.props.size)!==void 0?t.props.size:"medium")}}function XH(e){const t=Me(sc,null),r=R(()=>{const{labelPlacement:h}=e;return h!==void 0?h:t!=null&&t.props.labelPlacement?t.props.labelPlacement:"top"}),n=R(()=>r.value==="left"&&(e.labelWidth==="auto"||(t==null?void 0:t.props.labelWidth)==="auto")),o=R(()=>{if(r.value==="top")return;const{labelWidth:h}=e;if(h!==void 0&&h!=="auto")return Li(h);if(n.value){const g=t==null?void 0:t.maxChildLabelWidthRef.value;return g!==void 0?Li(g):void 0}if((t==null?void 0:t.props.labelWidth)!==void 0)return Li(t.props.labelWidth)}),i=R(()=>{const{labelAlign:h}=e;if(h)return h;if(t!=null&&t.props.labelAlign)return t.props.labelAlign}),a=R(()=>{var h;return[(h=e.labelProps)===null||h===void 0?void 0:h.style,e.labelStyle,{width:o.value}]}),s=R(()=>{const{showRequireMark:h}=e;return h!==void 0?h:t==null?void 0:t.props.showRequireMark}),l=R(()=>{const{requireMarkPlacement:h}=e;return h!==void 0?h:(t==null?void 0:t.props.requireMarkPlacement)||"right"}),c=z(!1),u=z(!1),d=R(()=>{const{validationStatus:h}=e;if(h!==void 0)return h;if(c.value)return"error";if(u.value)return"warning"}),f=R(()=>{const{showFeedback:h}=e;return h!==void 0?h:(t==null?void 0:t.props.showFeedback)!==void 0?t.props.showFeedback:!0}),p=R(()=>{const{showLabel:h}=e;return h!==void 0?h:(t==null?void 0:t.props.showLabel)!==void 0?t.props.showLabel:!0});return{validationErrored:c,validationWarned:u,mergedLabelStyle:a,mergedLabelPlacement:r,mergedLabelAlign:i,mergedShowRequireMark:s,mergedRequireMarkPlacement:l,mergedValidationStatus:d,mergedShowFeedback:f,mergedShowLabel:p,isAutoLabelWidth:n}}function ZH(e){const t=Me(sc,null),r=R(()=>{const{rulePath:a}=e;if(a!==void 0)return a;const{path:s}=e;if(s!==void 0)return s}),n=R(()=>{const a=[],{rule:s}=e;if(s!==void 0&&(Array.isArray(s)?a.push(...s):a.push(s)),t){const{rules:l}=t.props,{value:c}=r;if(l!==void 0&&c!==void 0){const u=Ig(l,c);u!==void 0&&(Array.isArray(u)?a.push(...u):a.push(u))}}return a}),o=R(()=>n.value.some(a=>a.required)),i=R(()=>o.value||e.required);return{mergedRules:n,mergedRequired:i}}const{cubicBezierEaseInOut:v1}=Eo;function QH({name:e="fade-down",fromOffset:t="-4px",enterDuration:r=".3s",leaveDuration:n=".3s",enterCubicBezier:o=v1,leaveCubicBezier:i=v1}={}){return[q(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0,transform:`translateY(${t})`}),q(`&.${e}-transition-enter-to, &.${e}-transition-leave-from`,{opacity:1,transform:"translateY(0)"}),q(`&.${e}-transition-leave-active`,{transition:`opacity ${n} ${i}, transform ${n} ${i}`}),q(`&.${e}-transition-enter-active`,{transition:`opacity ${r} ${o}, transform ${r} ${o}`})]}const JH=N("form-item",`
|
||
display: grid;
|
||
line-height: var(--n-line-height);
|
||
`,[N("form-item-label",`
|
||
grid-area: label;
|
||
align-items: center;
|
||
line-height: 1.25;
|
||
text-align: var(--n-label-text-align);
|
||
font-size: var(--n-label-font-size);
|
||
min-height: var(--n-label-height);
|
||
padding: var(--n-label-padding);
|
||
color: var(--n-label-text-color);
|
||
transition: color .3s var(--n-bezier);
|
||
box-sizing: border-box;
|
||
font-weight: var(--n-label-font-weight);
|
||
`,[Z("asterisk",`
|
||
white-space: nowrap;
|
||
user-select: none;
|
||
-webkit-user-select: none;
|
||
color: var(--n-asterisk-color);
|
||
transition: color .3s var(--n-bezier);
|
||
`),Z("asterisk-placeholder",`
|
||
grid-area: mark;
|
||
user-select: none;
|
||
-webkit-user-select: none;
|
||
visibility: hidden;
|
||
`)]),N("form-item-blank",`
|
||
grid-area: blank;
|
||
min-height: var(--n-blank-height);
|
||
`),Q("auto-label-width",[N("form-item-label","white-space: nowrap;")]),Q("left-labelled",`
|
||
grid-template-areas:
|
||
"label blank"
|
||
"label feedback";
|
||
grid-template-columns: auto minmax(0, 1fr);
|
||
grid-template-rows: auto 1fr;
|
||
align-items: flex-start;
|
||
`,[N("form-item-label",`
|
||
display: grid;
|
||
grid-template-columns: 1fr auto;
|
||
min-height: var(--n-blank-height);
|
||
height: auto;
|
||
box-sizing: border-box;
|
||
flex-shrink: 0;
|
||
flex-grow: 0;
|
||
`,[Q("reverse-columns-space",`
|
||
grid-template-columns: auto 1fr;
|
||
`),Q("left-mark",`
|
||
grid-template-areas:
|
||
"mark text"
|
||
". text";
|
||
`),Q("right-mark",`
|
||
grid-template-areas:
|
||
"text mark"
|
||
"text .";
|
||
`),Q("right-hanging-mark",`
|
||
grid-template-areas:
|
||
"text mark"
|
||
"text .";
|
||
`),Z("text",`
|
||
grid-area: text;
|
||
`),Z("asterisk",`
|
||
grid-area: mark;
|
||
align-self: end;
|
||
`)])]),Q("top-labelled",`
|
||
grid-template-areas:
|
||
"label"
|
||
"blank"
|
||
"feedback";
|
||
grid-template-rows: minmax(var(--n-label-height), auto) 1fr;
|
||
grid-template-columns: minmax(0, 100%);
|
||
`,[Q("no-label",`
|
||
grid-template-areas:
|
||
"blank"
|
||
"feedback";
|
||
grid-template-rows: 1fr;
|
||
`),N("form-item-label",`
|
||
display: flex;
|
||
align-items: flex-start;
|
||
justify-content: var(--n-label-text-align);
|
||
`)]),N("form-item-blank",`
|
||
box-sizing: border-box;
|
||
display: flex;
|
||
align-items: center;
|
||
position: relative;
|
||
`),N("form-item-feedback-wrapper",`
|
||
grid-area: feedback;
|
||
box-sizing: border-box;
|
||
min-height: var(--n-feedback-height);
|
||
font-size: var(--n-feedback-font-size);
|
||
line-height: 1.25;
|
||
transform-origin: top left;
|
||
`,[q("&:not(:empty)",`
|
||
padding: var(--n-feedback-padding);
|
||
`),N("form-item-feedback",{transition:"color .3s var(--n-bezier)",color:"var(--n-feedback-text-color)"},[Q("warning",{color:"var(--n-feedback-text-color-warning)"}),Q("error",{color:"var(--n-feedback-text-color-error)"}),QH({fromOffset:"-3px",enterDuration:".3s",leaveDuration:".2s"})])])]);var b1=globalThis&&globalThis.__awaiter||function(e,t,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{c(n.next(u))}catch(d){a(d)}}function l(u){try{c(n.throw(u))}catch(d){a(d)}}function c(u){u.done?i(u.value):o(u.value).then(s,l)}c((n=n.apply(e,t||[])).next())})};const ej=Object.assign(Object.assign({},ze.props),{label:String,labelWidth:[Number,String],labelStyle:[String,Object],labelAlign:String,labelPlacement:String,path:String,first:Boolean,rulePath:String,required:Boolean,showRequireMark:{type:Boolean,default:void 0},requireMarkPlacement:String,showFeedback:{type:Boolean,default:void 0},rule:[Object,Array],size:String,ignorePathChange:Boolean,validationStatus:String,feedback:String,showLabel:{type:Boolean,default:void 0},labelProps:Object});function x1(e,t){return(...r)=>{try{const n=e(...r);return!t&&(typeof n=="boolean"||n instanceof Error||Array.isArray(n))||n!=null&&n.then?n:(n===void 0||ji("form-item/validate",`You return a ${typeof n} typed value in the validator method, which is not recommended. Please use `+(t?"`Promise`":"`boolean`, `Error` or `Promise`")+" typed value instead."),!0)}catch(n){ji("form-item/validate","An error is catched in the validation, so the validation won't be done. Your callback in `validate` method of `n-form` or `n-form-item` won't be called in this validation."),console.error(n);return}}}const br=me({name:"FormItem",props:ej,setup(e){BA(v4,"formItems",nt(e,"path"));const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=ht(e),n=Me(sc,null),o=KH(e),i=XH(e),{validationErrored:a,validationWarned:s}=i,{mergedRequired:l,mergedRules:c}=ZH(e),{mergedSize:u}=o,{mergedLabelPlacement:d,mergedLabelAlign:f,mergedRequireMarkPlacement:p}=i,h=z([]),g=z(Hi()),v=n?nt(n.props,"disabled"):z(!1),m=ze("Form","-form-item",JH,Gg,e,t);Ye(nt(e,"path"),()=>{e.ignorePathChange||b()});function b(){h.value=[],a.value=!1,s.value=!1,e.feedback&&(g.value=Hi())}function x(){T("blur")}function y(){T("change")}function w(){T("focus")}function C(){T("input")}function S(U,F){return b1(this,void 0,void 0,function*(){let j,K,ae,we;return typeof U=="string"?(j=U,K=F):U!==null&&typeof U=="object"&&(j=U.trigger,K=U.callback,ae=U.shouldRuleBeApplied,we=U.options),yield new Promise((Ce,X)=>{T(j,ae,we).then(({valid:re,errors:le,warnings:ne})=>{re?(K&&K(void 0,{warnings:ne}),Ce({warnings:ne})):(K&&K(le,{warnings:ne}),X(le))})})})}const T=(U=null,F=()=>!0,j={suppressWarning:!0})=>b1(this,void 0,void 0,function*(){const{path:K}=e;j?j.first||(j.first=e.first):j={};const{value:ae}=c,we=n?Ig(n.props.model,K||""):void 0,Ce={},X={},re=(U?ae.filter(Te=>Array.isArray(Te.trigger)?Te.trigger.includes(U):Te.trigger===U):ae).filter(F).map((Te,Pe)=>{const _=Object.assign({},Te);if(_.validator&&(_.validator=x1(_.validator,!1)),_.asyncValidator&&(_.asyncValidator=x1(_.asyncValidator,!0)),_.renderMessage){const E=`__renderMessage__${Pe}`;X[E]=_.message,_.message=E,Ce[E]=_.renderMessage}return _}),le=re.filter(Te=>Te.level!=="warning"),ne=re.filter(Te=>Te.level==="warning"),$e=K??"__n_no_path__",Se=new Qa({[$e]:le}),ee=new Qa({[$e]:ne}),{validateMessages:se}=(n==null?void 0:n.props)||{};se&&(Se.messages(se),ee.messages(se));const ce=Te=>{h.value=Te.map(Pe=>{const _=(Pe==null?void 0:Pe.message)||"";return{key:_,render:()=>_.startsWith("__renderMessage__")?Ce[_]():_}}),Te.forEach(Pe=>{var _;!((_=Pe.message)===null||_===void 0)&&_.startsWith("__renderMessage__")&&(Pe.message=X[Pe.message])})},xe={valid:!0,errors:void 0,warnings:void 0};if(le.length){const Te=yield new Promise(Pe=>{Se.validate({[$e]:we},j,Pe)});Te!=null&&Te.length&&(a.value=!0,xe.valid=!1,xe.errors=Te,ce(Te))}if(ne.length&&!xe.errors){const Te=yield new Promise(Pe=>{ee.validate({[$e]:we},j,Pe)});Te!=null&&Te.length&&(ce(Te),s.value=!0,xe.warnings=Te)}return le.length+ne.length>0&&!xe.errors&&!xe.warnings&&b(),xe});dt(Ph,{path:nt(e,"path"),disabled:v,mergedSize:o.mergedSize,mergedValidationStatus:i.mergedValidationStatus,restoreValidation:b,handleContentBlur:x,handleContentChange:y,handleContentFocus:w,handleContentInput:C});const P={validate:S,restoreValidation:b,internalValidate:T},A=z(null);St(()=>{if(!i.isAutoLabelWidth.value)return;const U=A.value;if(U!==null){const F=U.style.whiteSpace;U.style.whiteSpace="nowrap",U.style.width="",n==null||n.deriveMaxChildLabelWidth(Number(getComputedStyle(U).width.slice(0,-2))),U.style.whiteSpace=F}});const I=R(()=>{var U;const{value:F}=u,{value:j}=d,K=j==="top"?"vertical":"horizontal",{common:{cubicBezierEaseInOut:ae},self:{labelTextColor:we,asteriskColor:Ce,lineHeight:X,feedbackTextColor:re,feedbackTextColorWarning:le,feedbackTextColorError:ne,feedbackPadding:$e,labelFontWeight:Se,[ye("labelHeight",F)]:ee,[ye("blankHeight",F)]:se,[ye("feedbackFontSize",F)]:ce,[ye("feedbackHeight",F)]:xe,[ye("labelPadding",K)]:Te,[ye("labelTextAlign",K)]:Pe,[ye(ye("labelFontSize",j),F)]:_}}=m.value;let E=(U=f.value)!==null&&U!==void 0?U:Pe;return j==="top"&&(E=E==="right"?"flex-end":"flex-start"),{"--n-bezier":ae,"--n-line-height":X,"--n-blank-height":se,"--n-label-font-size":_,"--n-label-text-align":E,"--n-label-height":ee,"--n-label-padding":Te,"--n-label-font-weight":Se,"--n-asterisk-color":Ce,"--n-label-text-color":we,"--n-feedback-padding":$e,"--n-feedback-font-size":ce,"--n-feedback-height":xe,"--n-feedback-text-color":re,"--n-feedback-text-color-warning":le,"--n-feedback-text-color-error":ne}}),B=r?tr("form-item",R(()=>{var U;return`${u.value[0]}${d.value[0]}${((U=f.value)===null||U===void 0?void 0:U[0])||""}`}),I,e):void 0,D=R(()=>d.value==="left"&&p.value==="left"&&f.value==="left");return Object.assign(Object.assign(Object.assign(Object.assign({labelElementRef:A,mergedClsPrefix:t,mergedRequired:l,feedbackId:g,renderExplains:h,reverseColSpace:D},i),o),P),{cssVars:r?void 0:I,themeClass:B==null?void 0:B.themeClass,onRender:B==null?void 0:B.onRender})},render(){const{$slots:e,mergedClsPrefix:t,mergedShowLabel:r,mergedShowRequireMark:n,mergedRequireMarkPlacement:o,onRender:i}=this,a=n!==void 0?n:this.mergedRequired;i==null||i();const s=()=>{const l=this.$slots.label?this.$slots.label():this.label;if(!l)return null;const c=k("span",{class:`${t}-form-item-label__text`},l),u=a?k("span",{class:`${t}-form-item-label__asterisk`},o!=="left"?" *":"* "):o==="right-hanging"&&k("span",{class:`${t}-form-item-label__asterisk-placeholder`}," *"),{labelProps:d}=this;return k("label",Object.assign({},d,{class:[d==null?void 0:d.class,`${t}-form-item-label`,`${t}-form-item-label--${o}-mark`,this.reverseColSpace&&`${t}-form-item-label--reverse-columns-space`],style:this.mergedLabelStyle,ref:"labelElementRef"}),o==="left"?[u,c]:[c,u])};return k("div",{class:[`${t}-form-item`,this.themeClass,`${t}-form-item--${this.mergedSize}-size`,`${t}-form-item--${this.mergedLabelPlacement}-labelled`,this.isAutoLabelWidth&&`${t}-form-item--auto-label-width`,!r&&`${t}-form-item--no-label`],style:this.cssVars},r&&s(),k("div",{class:[`${t}-form-item-blank`,this.mergedValidationStatus&&`${t}-form-item-blank--${this.mergedValidationStatus}`]},e),this.mergedShowFeedback?k("div",{key:this.feedbackId,class:`${t}-form-item-feedback-wrapper`},k(Fr,{name:"fade-down-transition",mode:"out-in"},{default:()=>{const{mergedValidationStatus:l}=this;return Ft(e.feedback,c=>{var u;const{feedback:d}=this,f=c||d?k("div",{key:"__feedback__",class:`${t}-form-item-feedback__line`},c||d):this.renderExplains.length?(u=this.renderExplains)===null||u===void 0?void 0:u.map(({key:p,render:h})=>k("div",{key:p,class:`${t}-form-item-feedback__line`},h())):null;return f?l==="warning"?k("div",{key:"controlled-warning",class:`${t}-form-item-feedback ${t}-form-item-feedback--warning`},f):l==="error"?k("div",{key:"controlled-error",class:`${t}-form-item-feedback ${t}-form-item-feedback--error`},f):l==="success"?k("div",{key:"controlled-success",class:`${t}-form-item-feedback ${t}-form-item-feedback--success`},f):k("div",{key:"controlled-default",class:`${t}-form-item-feedback`},f):null})}})):null)}}),y1=1,x4="n-grid",y4=1,tj={span:{type:[Number,String],default:y4},offset:{type:[Number,String],default:0},suffix:Boolean,privateOffset:Number,privateSpan:Number,privateColStart:Number,privateShow:{type:Boolean,default:!0}},C1=me({__GRID_ITEM__:!0,name:"GridItem",alias:["Gi"],props:tj,setup(){const{isSsrRef:e,xGapRef:t,itemStyleRef:r,overflowRef:n,layoutShiftDisabledRef:o}=Me(x4),i=Er();return{overflow:n,itemStyle:r,layoutShiftDisabled:o,mergedXGap:R(()=>fo(t.value||0)),deriveStyle:()=>{e.value;const{privateSpan:a=y4,privateShow:s=!0,privateColStart:l=void 0,privateOffset:c=0}=i.vnode.props,{value:u}=t,d=fo(u||0);return{display:s?"":"none",gridColumn:`${l??`span ${a}`} / span ${a}`,marginLeft:c?`calc((100% - (${a} - 1) * ${d}) / ${a} * ${c} + ${d} * ${c})`:""}}}},render(){var e,t;if(this.layoutShiftDisabled){const{span:r,offset:n,mergedXGap:o}=this;return k("div",{style:{gridColumn:`span ${r} / span ${r}`,marginLeft:n?`calc((100% - (${r} - 1) * ${o}) / ${r} * ${n} + ${o} * ${n})`:""}},this.$slots)}return k("div",{style:[this.itemStyle,this.deriveStyle()]},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e,{overflow:this.overflow}))}}),rj={closeMargin:"16px 12px",closeSize:"20px",closeIconSize:"16px",width:"365px",padding:"16px",titleFontSize:"16px",metaFontSize:"12px",descriptionFontSize:"12px"},C4=e=>{const{textColor2:t,successColor:r,infoColor:n,warningColor:o,errorColor:i,popoverColor:a,closeIconColor:s,closeIconColorHover:l,closeIconColorPressed:c,closeColorHover:u,closeColorPressed:d,textColor1:f,textColor3:p,borderRadius:h,fontWeightStrong:g,boxShadow2:v,lineHeight:m,fontSize:b}=e;return Object.assign(Object.assign({},rj),{borderRadius:h,lineHeight:m,fontSize:b,headerFontWeight:g,iconColor:t,iconColorSuccess:r,iconColorInfo:n,iconColorWarning:o,iconColorError:i,color:a,textColor:t,closeIconColor:s,closeIconColorHover:l,closeIconColorPressed:c,closeBorderRadius:h,closeColorHover:u,closeColorPressed:d,headerTextColor:f,descriptionTextColor:p,actionTextColor:t,boxShadow:v})},nj={name:"Notification",common:ke,peers:{Scrollbar:jr},self:C4},w4=nj,oj={name:"Notification",common:Ae,peers:{Scrollbar:Xr},self:C4},ij=oj,aj={margin:"0 0 8px 0",padding:"10px 20px",maxWidth:"720px",minWidth:"420px",iconMargin:"0 10px 0 0",closeMargin:"0 0 0 10px",closeSize:"20px",closeIconSize:"16px",iconSize:"20px",fontSize:"14px"},S4=e=>{const{textColor2:t,closeIconColor:r,closeIconColorHover:n,closeIconColorPressed:o,infoColor:i,successColor:a,errorColor:s,warningColor:l,popoverColor:c,boxShadow2:u,primaryColor:d,lineHeight:f,borderRadius:p,closeColorHover:h,closeColorPressed:g}=e;return Object.assign(Object.assign({},aj),{closeBorderRadius:p,textColor:t,textColorInfo:t,textColorSuccess:t,textColorError:t,textColorWarning:t,textColorLoading:t,color:c,colorInfo:c,colorSuccess:c,colorError:c,colorWarning:c,colorLoading:c,boxShadow:u,boxShadowInfo:u,boxShadowSuccess:u,boxShadowError:u,boxShadowWarning:u,boxShadowLoading:u,iconColor:t,iconColorInfo:i,iconColorSuccess:a,iconColorWarning:l,iconColorError:s,iconColorLoading:d,closeColorHover:h,closeColorPressed:g,closeIconColor:r,closeIconColorHover:n,closeIconColorPressed:o,closeColorHoverInfo:h,closeColorPressedInfo:g,closeIconColorInfo:r,closeIconColorHoverInfo:n,closeIconColorPressedInfo:o,closeColorHoverSuccess:h,closeColorPressedSuccess:g,closeIconColorSuccess:r,closeIconColorHoverSuccess:n,closeIconColorPressedSuccess:o,closeColorHoverError:h,closeColorPressedError:g,closeIconColorError:r,closeIconColorHoverError:n,closeIconColorPressedError:o,closeColorHoverWarning:h,closeColorPressedWarning:g,closeIconColorWarning:r,closeIconColorHoverWarning:n,closeIconColorPressedWarning:o,closeColorHoverLoading:h,closeColorPressedLoading:g,closeIconColorLoading:r,closeIconColorHoverLoading:n,closeIconColorPressedLoading:o,loadingColor:d,lineHeight:f,borderRadius:p})},sj={name:"Message",common:ke,self:S4},_4=sj,lj={name:"Message",common:Ae,self:S4},cj=lj,uj={name:"ButtonGroup",common:Ae},dj=uj,fj={name:"ButtonGroup",common:ke},hj=fj,pj={name:"GradientText",common:Ae,self(e){const{primaryColor:t,successColor:r,warningColor:n,errorColor:o,infoColor:i,primaryColorSuppl:a,successColorSuppl:s,warningColorSuppl:l,errorColorSuppl:c,infoColorSuppl:u,fontWeightStrong:d}=e;return{fontWeight:d,rotate:"252deg",colorStartPrimary:t,colorEndPrimary:a,colorStartInfo:i,colorEndInfo:u,colorStartWarning:n,colorEndWarning:l,colorStartError:o,colorEndError:c,colorStartSuccess:r,colorEndSuccess:s}}},gj=pj,mj=e=>{const{primaryColor:t,successColor:r,warningColor:n,errorColor:o,infoColor:i,fontWeightStrong:a}=e;return{fontWeight:a,rotate:"252deg",colorStartPrimary:fe(t,{alpha:.6}),colorEndPrimary:t,colorStartInfo:fe(i,{alpha:.6}),colorEndInfo:i,colorStartWarning:fe(n,{alpha:.6}),colorEndWarning:n,colorStartError:fe(o,{alpha:.6}),colorEndError:o,colorStartSuccess:fe(r,{alpha:.6}),colorEndSuccess:r}},vj={name:"GradientText",common:ke,self:mj},bj=vj,xj={name:"InputNumber",common:Ae,peers:{Button:Zr,Input:wn},self(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}},yj=xj,Cj=e=>{const{textColorDisabled:t}=e;return{iconColorDisabled:t}},wj={name:"InputNumber",common:ke,peers:{Button:Wr,Input:sn},self:Cj},Sj=wj,_j={name:"Layout",common:Ae,peers:{Scrollbar:Xr},self(e){const{textColor2:t,bodyColor:r,popoverColor:n,cardColor:o,dividerColor:i,scrollbarColor:a,scrollbarColorHover:s}=e;return{textColor:t,textColorInverted:t,color:r,colorEmbedded:r,headerColor:o,headerColorInverted:o,footerColor:o,footerColorInverted:o,headerBorderColor:i,headerBorderColorInverted:i,footerBorderColor:i,footerBorderColorInverted:i,siderBorderColor:i,siderBorderColorInverted:i,siderColor:o,siderColorInverted:o,siderToggleButtonBorder:"1px solid transparent",siderToggleButtonColor:n,siderToggleButtonIconColor:t,siderToggleButtonIconColorInverted:t,siderToggleBarColor:Oe(r,a),siderToggleBarColorHover:Oe(r,s),__invertScrollbar:"false"}}},Ej=_j,Tj=e=>{const{baseColor:t,textColor2:r,bodyColor:n,cardColor:o,dividerColor:i,actionColor:a,scrollbarColor:s,scrollbarColorHover:l,invertedColor:c}=e;return{textColor:r,textColorInverted:"#FFF",color:n,colorEmbedded:a,headerColor:o,headerColorInverted:c,footerColor:a,footerColorInverted:c,headerBorderColor:i,headerBorderColorInverted:c,footerBorderColor:i,footerBorderColorInverted:c,siderBorderColor:i,siderBorderColorInverted:c,siderColor:o,siderColorInverted:c,siderToggleButtonBorder:`1px solid ${i}`,siderToggleButtonColor:t,siderToggleButtonIconColor:r,siderToggleButtonIconColorInverted:r,siderToggleBarColor:Oe(n,s),siderToggleBarColorHover:Oe(n,l),__invertScrollbar:"true"}},kj={name:"Layout",common:ke,peers:{Scrollbar:jr},self:Tj},E4=kj,T4=e=>{const{textColor2:t,cardColor:r,modalColor:n,popoverColor:o,dividerColor:i,borderRadius:a,fontSize:s,hoverColor:l}=e;return{textColor:t,color:r,colorHover:l,colorModal:n,colorHoverModal:Oe(n,l),colorPopover:o,colorHoverPopover:Oe(o,l),borderColor:i,borderColorModal:Oe(n,i),borderColorPopover:Oe(o,i),borderRadius:a,fontSize:s}},Aj={name:"List",common:ke,self:T4},Pj=Aj,$j={name:"List",common:Ae,self:T4},Ij=$j,Bj={name:"LoadingBar",common:Ae,self(e){const{primaryColor:t}=e;return{colorError:"red",colorLoading:t,height:"2px"}}},Dj=Bj,Oj=e=>{const{primaryColor:t,errorColor:r}=e;return{colorError:r,colorLoading:t,height:"2px"}},Rj={name:"LoadingBar",common:ke,self:Oj},k4=Rj,Lj={name:"Log",common:Ae,peers:{Scrollbar:Xr,Code:A_},self(e){const{textColor2:t,inputColor:r,fontSize:n,primaryColor:o}=e;return{loaderFontSize:n,loaderTextColor:t,loaderColor:r,loaderBorder:"1px solid #0000",loadingColor:o}}},Fj=Lj,Mj=e=>{const{textColor2:t,modalColor:r,borderColor:n,fontSize:o,primaryColor:i}=e;return{loaderFontSize:o,loaderTextColor:t,loaderColor:r,loaderBorder:`1px solid ${n}`,loadingColor:i}},zj={name:"Log",common:ke,peers:{Scrollbar:jr,Code:P_},self:Mj},Nj=zj,Hj={name:"Mention",common:Ae,peers:{InternalSelectMenu:ic,Input:wn},self(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}},jj=Hj,Wj=e=>{const{boxShadow2:t}=e;return{menuBoxShadow:t}},Uj={name:"Mention",common:ke,peers:{InternalSelectMenu:oc,Input:sn},self:Wj},Vj=Uj;function qj(e,t,r,n){return{itemColorHoverInverted:"#0000",itemColorActiveInverted:t,itemColorActiveHoverInverted:t,itemColorActiveCollapsedInverted:t,itemTextColorInverted:e,itemTextColorHoverInverted:r,itemTextColorChildActiveInverted:r,itemTextColorChildActiveHoverInverted:r,itemTextColorActiveInverted:r,itemTextColorActiveHoverInverted:r,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:r,itemTextColorChildActiveHorizontalInverted:r,itemTextColorChildActiveHoverHorizontalInverted:r,itemTextColorActiveHorizontalInverted:r,itemTextColorActiveHoverHorizontalInverted:r,itemIconColorInverted:e,itemIconColorHoverInverted:r,itemIconColorActiveInverted:r,itemIconColorActiveHoverInverted:r,itemIconColorChildActiveInverted:r,itemIconColorChildActiveHoverInverted:r,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:r,itemIconColorActiveHorizontalInverted:r,itemIconColorActiveHoverHorizontalInverted:r,itemIconColorChildActiveHorizontalInverted:r,itemIconColorChildActiveHoverHorizontalInverted:r,arrowColorInverted:e,arrowColorHoverInverted:r,arrowColorActiveInverted:r,arrowColorActiveHoverInverted:r,arrowColorChildActiveInverted:r,arrowColorChildActiveHoverInverted:r,groupTextColorInverted:n}}const A4=e=>{const{borderRadius:t,textColor3:r,primaryColor:n,textColor2:o,textColor1:i,fontSize:a,dividerColor:s,hoverColor:l,primaryColorHover:c}=e;return Object.assign({borderRadius:t,color:"#0000",groupTextColor:r,itemColorHover:l,itemColorActive:fe(n,{alpha:.1}),itemColorActiveHover:fe(n,{alpha:.1}),itemColorActiveCollapsed:fe(n,{alpha:.1}),itemTextColor:o,itemTextColorHover:o,itemTextColorActive:n,itemTextColorActiveHover:n,itemTextColorChildActive:n,itemTextColorChildActiveHover:n,itemTextColorHorizontal:o,itemTextColorHoverHorizontal:c,itemTextColorActiveHorizontal:n,itemTextColorActiveHoverHorizontal:n,itemTextColorChildActiveHorizontal:n,itemTextColorChildActiveHoverHorizontal:n,itemIconColor:i,itemIconColorHover:i,itemIconColorActive:n,itemIconColorActiveHover:n,itemIconColorChildActive:n,itemIconColorChildActiveHover:n,itemIconColorCollapsed:i,itemIconColorHorizontal:i,itemIconColorHoverHorizontal:c,itemIconColorActiveHorizontal:n,itemIconColorActiveHoverHorizontal:n,itemIconColorChildActiveHorizontal:n,itemIconColorChildActiveHoverHorizontal:n,itemHeight:"42px",arrowColor:o,arrowColorHover:o,arrowColorActive:n,arrowColorActiveHover:n,arrowColorChildActive:n,arrowColorChildActiveHover:n,colorInverted:"#0000",borderColorHorizontal:"#0000",fontSize:a,dividerColor:s},qj("#BBB",n,"#FFF","#AAA"))},Gj={name:"Menu",common:ke,peers:{Tooltip:ac,Dropdown:jg},self:A4},Yj=Gj,Kj={name:"Menu",common:Ae,peers:{Tooltip:Rd,Dropdown:Wg},self(e){const{primaryColor:t,primaryColorSuppl:r}=e,n=A4(e);return n.itemColorActive=fe(t,{alpha:.15}),n.itemColorActiveHover=fe(t,{alpha:.15}),n.itemColorActiveCollapsed=fe(t,{alpha:.15}),n.itemColorActiveInverted=r,n.itemColorActiveHoverInverted=r,n.itemColorActiveCollapsedInverted=r,n}},Xj=Kj,Zj={titleFontSize:"18px",backSize:"22px"};function P4(e){const{textColor1:t,textColor2:r,textColor3:n,fontSize:o,fontWeightStrong:i,primaryColorHover:a,primaryColorPressed:s}=e;return Object.assign(Object.assign({},Zj),{titleFontWeight:i,fontSize:o,titleTextColor:t,backColor:r,backColorHover:a,backColorPressed:s,subtitleTextColor:n})}const Qj={name:"PageHeader",common:ke,self:P4},Jj={name:"PageHeader",common:Ae,self:P4},eW={iconSize:"22px"},$4=e=>{const{fontSize:t,warningColor:r}=e;return Object.assign(Object.assign({},eW),{fontSize:t,iconColor:r})},tW={name:"Popconfirm",common:ke,peers:{Button:Wr,Popover:ni},self:$4},rW=tW,nW={name:"Popconfirm",common:Ae,peers:{Button:Zr,Popover:na},self:$4},oW=nW,I4=e=>{const{infoColor:t,successColor:r,warningColor:n,errorColor:o,textColor2:i,progressRailColor:a,fontSize:s,fontWeight:l}=e;return{fontSize:s,fontSizeCircle:"28px",fontWeightCircle:l,railColor:a,railHeight:"8px",iconSizeCircle:"36px",iconSizeLine:"18px",iconColor:t,iconColorInfo:t,iconColorSuccess:r,iconColorWarning:n,iconColorError:o,textColorCircle:i,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:i,fillColor:t,fillColorInfo:t,fillColorSuccess:r,fillColorWarning:n,fillColorError:o,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}},iW={name:"Progress",common:ke,self:I4},B4=iW,aW={name:"Progress",common:Ae,self(e){const t=I4(e);return t.textColorLineInner="rgb(0, 0, 0)",t.lineBgProcessing="linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)",t}},D4=aW,sW={name:"Rate",common:Ae,self(e){const{railColor:t}=e;return{itemColor:t,itemColorActive:"#CCAA33",itemSize:"20px",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}},lW=sW,cW=e=>{const{railColor:t}=e;return{itemColor:t,itemColorActive:"#FFCC33",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}},uW={name:"Rate",common:ke,self:cW},dW=uW,fW={titleFontSizeSmall:"26px",titleFontSizeMedium:"32px",titleFontSizeLarge:"40px",titleFontSizeHuge:"48px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",iconSizeSmall:"64px",iconSizeMedium:"80px",iconSizeLarge:"100px",iconSizeHuge:"125px",iconColor418:void 0,iconColor404:void 0,iconColor403:void 0,iconColor500:void 0},O4=e=>{const{textColor2:t,textColor1:r,errorColor:n,successColor:o,infoColor:i,warningColor:a,lineHeight:s,fontWeightStrong:l}=e;return Object.assign(Object.assign({},fW),{lineHeight:s,titleFontWeight:l,titleTextColor:r,textColor:t,iconColorError:n,iconColorSuccess:o,iconColorInfo:i,iconColorWarning:a})},hW={name:"Result",common:ke,self:O4},R4=hW,pW={name:"Result",common:Ae,self:O4},gW=pW,L4={railHeight:"4px",railWidthVertical:"4px",handleSize:"18px",dotHeight:"8px",dotWidth:"8px",dotBorderRadius:"4px"},mW={name:"Slider",common:Ae,self(e){const t="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:r,modalColor:n,primaryColorSuppl:o,popoverColor:i,textColor2:a,cardColor:s,borderRadius:l,fontSize:c,opacityDisabled:u}=e;return Object.assign(Object.assign({},L4),{fontSize:c,markFontSize:c,railColor:r,railColorHover:r,fillColor:o,fillColorHover:o,opacityDisabled:u,handleColor:"#FFF",dotColor:s,dotColorModal:n,dotColorPopover:i,handleBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowHover:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowActive:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowFocus:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",indicatorColor:i,indicatorBoxShadow:t,indicatorTextColor:a,indicatorBorderRadius:l,dotBorder:`2px solid ${r}`,dotBorderActive:`2px solid ${o}`,dotBoxShadow:""})}},vW=mW,bW=e=>{const t="rgba(0, 0, 0, .85)",r="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:n,primaryColor:o,baseColor:i,cardColor:a,modalColor:s,popoverColor:l,borderRadius:c,fontSize:u,opacityDisabled:d}=e;return Object.assign(Object.assign({},L4),{fontSize:u,markFontSize:u,railColor:n,railColorHover:n,fillColor:o,fillColorHover:o,opacityDisabled:d,handleColor:"#FFF",dotColor:a,dotColorModal:s,dotColorPopover:l,handleBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowHover:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowActive:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowFocus:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",indicatorColor:t,indicatorBoxShadow:r,indicatorTextColor:i,indicatorBorderRadius:c,dotBorder:`2px solid ${n}`,dotBorderActive:`2px solid ${o}`,dotBoxShadow:""})},xW={name:"Slider",common:ke,self:bW},yW=xW,F4=e=>{const{opacityDisabled:t,heightTiny:r,heightSmall:n,heightMedium:o,heightLarge:i,heightHuge:a,primaryColor:s,fontSize:l}=e;return{fontSize:l,textColor:s,sizeTiny:r,sizeSmall:n,sizeMedium:o,sizeLarge:i,sizeHuge:a,color:s,opacitySpinning:t}},CW={name:"Spin",common:ke,self:F4},M4=CW,wW={name:"Spin",common:Ae,self:F4},SW=wW,z4=e=>{const{textColor2:t,textColor3:r,fontSize:n,fontWeight:o}=e;return{labelFontSize:n,labelFontWeight:o,valueFontWeight:o,valueFontSize:"24px",labelTextColor:r,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}},_W={name:"Statistic",common:ke,self:z4},EW=_W,TW={name:"Statistic",common:Ae,self:z4},kW=TW,AW={stepHeaderFontSizeSmall:"14px",stepHeaderFontSizeMedium:"16px",indicatorIndexFontSizeSmall:"14px",indicatorIndexFontSizeMedium:"16px",indicatorSizeSmall:"22px",indicatorSizeMedium:"28px",indicatorIconSizeSmall:"14px",indicatorIconSizeMedium:"18px"},N4=e=>{const{fontWeightStrong:t,baseColor:r,textColorDisabled:n,primaryColor:o,errorColor:i,textColor1:a,textColor2:s}=e;return Object.assign(Object.assign({},AW),{stepHeaderFontWeight:t,indicatorTextColorProcess:r,indicatorTextColorWait:n,indicatorTextColorFinish:o,indicatorTextColorError:i,indicatorBorderColorProcess:o,indicatorBorderColorWait:n,indicatorBorderColorFinish:o,indicatorBorderColorError:i,indicatorColorProcess:o,indicatorColorWait:"#0000",indicatorColorFinish:"#0000",indicatorColorError:"#0000",splitorColorProcess:n,splitorColorWait:n,splitorColorFinish:o,splitorColorError:n,headerTextColorProcess:a,headerTextColorWait:n,headerTextColorFinish:n,headerTextColorError:i,descriptionTextColorProcess:s,descriptionTextColorWait:n,descriptionTextColorFinish:n,descriptionTextColorError:i})},PW={name:"Steps",common:ke,self:N4},$W=PW,IW={name:"Steps",common:Ae,self:N4},BW=IW,H4={buttonHeightSmall:"14px",buttonHeightMedium:"18px",buttonHeightLarge:"22px",buttonWidthSmall:"14px",buttonWidthMedium:"18px",buttonWidthLarge:"22px",buttonWidthPressedSmall:"20px",buttonWidthPressedMedium:"24px",buttonWidthPressedLarge:"28px",railHeightSmall:"18px",railHeightMedium:"22px",railHeightLarge:"26px",railWidthSmall:"32px",railWidthMedium:"40px",railWidthLarge:"48px"},DW={name:"Switch",common:Ae,self(e){const{primaryColorSuppl:t,opacityDisabled:r,borderRadius:n,primaryColor:o,textColor2:i,baseColor:a}=e,s="rgba(255, 255, 255, .20)";return Object.assign(Object.assign({},H4),{iconColor:a,textColor:i,loadingColor:t,opacityDisabled:r,railColor:s,railColorActive:t,buttonBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",buttonColor:"#FFF",railBorderRadiusSmall:n,railBorderRadiusMedium:n,railBorderRadiusLarge:n,buttonBorderRadiusSmall:n,buttonBorderRadiusMedium:n,buttonBorderRadiusLarge:n,boxShadowFocus:`0 0 8px 0 ${fe(o,{alpha:.3})}`})}},OW=DW,RW=e=>{const{primaryColor:t,opacityDisabled:r,borderRadius:n,textColor3:o}=e,i="rgba(0, 0, 0, .14)";return Object.assign(Object.assign({},H4),{iconColor:o,textColor:"white",loadingColor:t,opacityDisabled:r,railColor:i,railColorActive:t,buttonBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",buttonColor:"#FFF",railBorderRadiusSmall:n,railBorderRadiusMedium:n,railBorderRadiusLarge:n,buttonBorderRadiusSmall:n,buttonBorderRadiusMedium:n,buttonBorderRadiusLarge:n,boxShadowFocus:`0 0 0 2px ${fe(t,{alpha:.2})}`})},LW={name:"Switch",common:ke,self:RW},FW=LW,MW={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"},j4=e=>{const{dividerColor:t,cardColor:r,modalColor:n,popoverColor:o,tableHeaderColor:i,tableColorStriped:a,textColor1:s,textColor2:l,borderRadius:c,fontWeightStrong:u,lineHeight:d,fontSizeSmall:f,fontSizeMedium:p,fontSizeLarge:h}=e;return Object.assign(Object.assign({},MW),{fontSizeSmall:f,fontSizeMedium:p,fontSizeLarge:h,lineHeight:d,borderRadius:c,borderColor:Oe(r,t),borderColorModal:Oe(n,t),borderColorPopover:Oe(o,t),tdColor:r,tdColorModal:n,tdColorPopover:o,tdColorStriped:Oe(r,a),tdColorStripedModal:Oe(n,a),tdColorStripedPopover:Oe(o,a),thColor:Oe(r,i),thColorModal:Oe(n,i),thColorPopover:Oe(o,i),thTextColor:s,tdTextColor:l,thFontWeight:u})},zW={name:"Table",common:ke,self:j4},NW=zW,HW={name:"Table",common:Ae,self:j4},jW=HW,WW={tabFontSizeSmall:"14px",tabFontSizeMedium:"14px",tabFontSizeLarge:"16px",tabGapSmallLine:"36px",tabGapMediumLine:"36px",tabGapLargeLine:"36px",tabGapSmallLineVertical:"8px",tabGapMediumLineVertical:"8px",tabGapLargeLineVertical:"8px",tabPaddingSmallLine:"6px 0",tabPaddingMediumLine:"10px 0",tabPaddingLargeLine:"14px 0",tabPaddingVerticalSmallLine:"6px 12px",tabPaddingVerticalMediumLine:"8px 16px",tabPaddingVerticalLargeLine:"10px 20px",tabGapSmallBar:"36px",tabGapMediumBar:"36px",tabGapLargeBar:"36px",tabGapSmallBarVertical:"8px",tabGapMediumBarVertical:"8px",tabGapLargeBarVertical:"8px",tabPaddingSmallBar:"4px 0",tabPaddingMediumBar:"6px 0",tabPaddingLargeBar:"10px 0",tabPaddingVerticalSmallBar:"6px 12px",tabPaddingVerticalMediumBar:"8px 16px",tabPaddingVerticalLargeBar:"10px 20px",tabGapSmallCard:"4px",tabGapMediumCard:"4px",tabGapLargeCard:"4px",tabGapSmallCardVertical:"4px",tabGapMediumCardVertical:"4px",tabGapLargeCardVertical:"4px",tabPaddingSmallCard:"8px 16px",tabPaddingMediumCard:"10px 20px",tabPaddingLargeCard:"12px 24px",tabPaddingSmallSegment:"4px 0",tabPaddingMediumSegment:"6px 0",tabPaddingLargeSegment:"8px 0",tabPaddingVerticalLargeSegment:"0 8px",tabPaddingVerticalSmallCard:"8px 12px",tabPaddingVerticalMediumCard:"10px 16px",tabPaddingVerticalLargeCard:"12px 20px",tabPaddingVerticalSmallSegment:"0 4px",tabPaddingVerticalMediumSegment:"0 6px",tabGapSmallSegment:"0",tabGapMediumSegment:"0",tabGapLargeSegment:"0",tabGapSmallSegmentVertical:"0",tabGapMediumSegmentVertical:"0",tabGapLargeSegmentVertical:"0",panePaddingSmall:"8px 0 0 0",panePaddingMedium:"12px 0 0 0",panePaddingLarge:"16px 0 0 0",closeSize:"18px",closeIconSize:"14px"},W4=e=>{const{textColor2:t,primaryColor:r,textColorDisabled:n,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:s,closeColorPressed:l,tabColor:c,baseColor:u,dividerColor:d,fontWeight:f,textColor1:p,borderRadius:h,fontSize:g,fontWeightStrong:v}=e;return Object.assign(Object.assign({},WW),{colorSegment:c,tabFontSizeCard:g,tabTextColorLine:p,tabTextColorActiveLine:r,tabTextColorHoverLine:r,tabTextColorDisabledLine:n,tabTextColorSegment:p,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:n,tabTextColorBar:p,tabTextColorActiveBar:r,tabTextColorHoverBar:r,tabTextColorDisabledBar:n,tabTextColorCard:p,tabTextColorHoverCard:p,tabTextColorActiveCard:r,tabTextColorDisabledCard:n,barColor:r,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:s,closeColorPressed:l,closeBorderRadius:h,tabColor:c,tabColorSegment:u,tabBorderColor:d,tabFontWeightActive:f,tabFontWeight:f,tabBorderRadius:h,paneTextColor:t,fontWeightStrong:v})},UW={name:"Tabs",common:ke,self:W4},U4=UW,VW={name:"Tabs",common:Ae,self(e){const t=W4(e),{inputColor:r}=e;return t.colorSegment=r,t.tabColorSegment=r,t}},qW=VW,V4=e=>{const{textColor1:t,textColor2:r,fontWeightStrong:n,fontSize:o}=e;return{fontSize:o,titleTextColor:t,textColor:r,titleFontWeight:n}},GW={name:"Thing",common:ke,self:V4},YW=GW,KW={name:"Thing",common:Ae,self:V4},XW=KW,q4={titleMarginMedium:"0 0 6px 0",titleMarginLarge:"-2px 0 6px 0",titleFontSizeMedium:"14px",titleFontSizeLarge:"16px",iconSizeMedium:"14px",iconSizeLarge:"14px"},ZW={name:"Timeline",common:Ae,self(e){const{textColor3:t,infoColorSuppl:r,errorColorSuppl:n,successColorSuppl:o,warningColorSuppl:i,textColor1:a,textColor2:s,railColor:l,fontWeightStrong:c,fontSize:u}=e;return Object.assign(Object.assign({},q4),{contentFontSize:u,titleFontWeight:c,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${r}`,circleBorderError:`2px solid ${n}`,circleBorderSuccess:`2px solid ${o}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:r,iconColorError:n,iconColorSuccess:o,iconColorWarning:i,titleTextColor:a,contentTextColor:s,metaTextColor:t,lineColor:l})}},QW=ZW,JW=e=>{const{textColor3:t,infoColor:r,errorColor:n,successColor:o,warningColor:i,textColor1:a,textColor2:s,railColor:l,fontWeightStrong:c,fontSize:u}=e;return Object.assign(Object.assign({},q4),{contentFontSize:u,titleFontWeight:c,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${r}`,circleBorderError:`2px solid ${n}`,circleBorderSuccess:`2px solid ${o}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:r,iconColorError:n,iconColorSuccess:o,iconColorWarning:i,titleTextColor:a,contentTextColor:s,metaTextColor:t,lineColor:l})},eU={name:"Timeline",common:ke,self:JW},tU=eU,G4={extraFontSizeSmall:"12px",extraFontSizeMedium:"12px",extraFontSizeLarge:"14px",titleFontSizeSmall:"14px",titleFontSizeMedium:"16px",titleFontSizeLarge:"16px",closeSize:"20px",closeIconSize:"16px",headerHeightSmall:"44px",headerHeightMedium:"44px",headerHeightLarge:"50px"},rU={name:"Transfer",common:Ae,peers:{Checkbox:ws,Scrollbar:Xr,Input:wn,Empty:ra,Button:Zr},self(e){const{fontWeight:t,fontSizeLarge:r,fontSizeMedium:n,fontSizeSmall:o,heightLarge:i,heightMedium:a,borderRadius:s,inputColor:l,tableHeaderColor:c,textColor1:u,textColorDisabled:d,textColor2:f,textColor3:p,hoverColor:h,closeColorHover:g,closeColorPressed:v,closeIconColor:m,closeIconColorHover:b,closeIconColorPressed:x,dividerColor:y}=e;return Object.assign(Object.assign({},G4),{itemHeightSmall:a,itemHeightMedium:a,itemHeightLarge:i,fontSizeSmall:o,fontSizeMedium:n,fontSizeLarge:r,borderRadius:s,dividerColor:y,borderColor:"#0000",listColor:l,headerColor:c,titleTextColor:u,titleTextColorDisabled:d,extraTextColor:p,extraTextColorDisabled:d,itemTextColor:f,itemTextColorDisabled:d,itemColorPending:h,titleFontWeight:t,closeColorHover:g,closeColorPressed:v,closeIconColor:m,closeIconColorHover:b,closeIconColorPressed:x})}},nU=rU,oU=e=>{const{fontWeight:t,fontSizeLarge:r,fontSizeMedium:n,fontSizeSmall:o,heightLarge:i,heightMedium:a,borderRadius:s,cardColor:l,tableHeaderColor:c,textColor1:u,textColorDisabled:d,textColor2:f,textColor3:p,borderColor:h,hoverColor:g,closeColorHover:v,closeColorPressed:m,closeIconColor:b,closeIconColorHover:x,closeIconColorPressed:y}=e;return Object.assign(Object.assign({},G4),{itemHeightSmall:a,itemHeightMedium:a,itemHeightLarge:i,fontSizeSmall:o,fontSizeMedium:n,fontSizeLarge:r,borderRadius:s,dividerColor:h,borderColor:h,listColor:l,headerColor:Oe(l,c),titleTextColor:u,titleTextColorDisabled:d,extraTextColor:p,extraTextColorDisabled:d,itemTextColor:f,itemTextColorDisabled:d,itemColorPending:g,titleFontWeight:t,closeColorHover:v,closeColorPressed:m,closeIconColor:b,closeIconColorHover:x,closeIconColorPressed:y})},iU={name:"Transfer",common:ke,peers:{Checkbox:Cs,Scrollbar:jr,Input:sn,Empty:To,Button:Wr},self:oU},aU=iU,Y4=e=>{const{borderRadiusSmall:t,dividerColor:r,hoverColor:n,pressedColor:o,primaryColor:i,textColor3:a,textColor2:s,textColorDisabled:l,fontSize:c}=e;return{fontSize:c,lineHeight:"1.5",nodeHeight:"30px",nodeWrapperPadding:"3px 0",nodeBorderRadius:t,nodeColorHover:n,nodeColorPressed:o,nodeColorActive:fe(i,{alpha:.1}),arrowColor:a,nodeTextColor:s,nodeTextColorDisabled:l,loadingColor:i,dropMarkColor:i,lineColor:r}},sU={name:"Tree",common:ke,peers:{Checkbox:Cs,Scrollbar:jr,Empty:To},self:Y4},K4=sU,lU={name:"Tree",common:Ae,peers:{Checkbox:ws,Scrollbar:Xr,Empty:ra},self(e){const{primaryColor:t}=e,r=Y4(e);return r.nodeColorActive=fe(t,{alpha:.15}),r}},X4=lU,cU={name:"TreeSelect",common:Ae,peers:{Tree:X4,Empty:ra,InternalSelection:Fg}},uU=cU,dU=e=>{const{popoverColor:t,boxShadow2:r,borderRadius:n,heightMedium:o,dividerColor:i,textColor2:a}=e;return{menuPadding:"4px",menuColor:t,menuBoxShadow:r,menuBorderRadius:n,menuHeight:`calc(${o} * 7.6)`,actionDividerColor:i,actionTextColor:a,actionPadding:"8px 12px"}},fU={name:"TreeSelect",common:ke,peers:{Tree:K4,Empty:To,InternalSelection:Lg},self:dU},hU=fU,pU={headerFontSize1:"30px",headerFontSize2:"22px",headerFontSize3:"18px",headerFontSize4:"16px",headerFontSize5:"16px",headerFontSize6:"16px",headerMargin1:"28px 0 20px 0",headerMargin2:"28px 0 20px 0",headerMargin3:"28px 0 20px 0",headerMargin4:"28px 0 18px 0",headerMargin5:"28px 0 18px 0",headerMargin6:"28px 0 18px 0",headerPrefixWidth1:"16px",headerPrefixWidth2:"16px",headerPrefixWidth3:"12px",headerPrefixWidth4:"12px",headerPrefixWidth5:"12px",headerPrefixWidth6:"12px",headerBarWidth1:"4px",headerBarWidth2:"4px",headerBarWidth3:"3px",headerBarWidth4:"3px",headerBarWidth5:"3px",headerBarWidth6:"3px",pMargin:"16px 0 16px 0",liMargin:".25em 0 0 0",olPadding:"0 0 0 2em",ulPadding:"0 0 0 2em"},Z4=e=>{const{primaryColor:t,textColor2:r,borderColor:n,lineHeight:o,fontSize:i,borderRadiusSmall:a,dividerColor:s,fontWeightStrong:l,textColor1:c,textColor3:u,infoColor:d,warningColor:f,errorColor:p,successColor:h,codeColor:g}=e;return Object.assign(Object.assign({},pU),{aTextColor:t,blockquoteTextColor:r,blockquotePrefixColor:n,blockquoteLineHeight:o,blockquoteFontSize:i,codeBorderRadius:a,liTextColor:r,liLineHeight:o,liFontSize:i,hrColor:s,headerFontWeight:l,headerTextColor:c,pTextColor:r,pTextColor1Depth:c,pTextColor2Depth:r,pTextColor3Depth:u,pLineHeight:o,pFontSize:i,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:d,headerBarColorError:p,headerBarColorWarning:f,headerBarColorSuccess:h,textColor:r,textColor1Depth:c,textColor2Depth:r,textColor3Depth:u,textColorPrimary:t,textColorInfo:d,textColorSuccess:h,textColorWarning:f,textColorError:p,codeTextColor:r,codeColor:g,codeBorder:"1px solid #0000"})},gU={name:"Typography",common:ke,self:Z4},mU=gU,vU={name:"Typography",common:Ae,self:Z4},bU=vU,Q4=e=>{const{iconColor:t,primaryColor:r,errorColor:n,textColor2:o,successColor:i,opacityDisabled:a,actionColor:s,borderColor:l,hoverColor:c,lineHeight:u,borderRadius:d,fontSize:f}=e;return{fontSize:f,lineHeight:u,borderRadius:d,draggerColor:s,draggerBorder:`1px dashed ${l}`,draggerBorderHover:`1px dashed ${r}`,itemColorHover:c,itemColorHoverError:fe(n,{alpha:.06}),itemTextColor:o,itemTextColorError:n,itemTextColorSuccess:i,itemIconColor:t,itemDisabledOpacity:a,itemBorderImageCardError:`1px solid ${n}`,itemBorderImageCard:`1px solid ${l}`}},xU={name:"Upload",common:ke,peers:{Button:Wr,Progress:B4},self:Q4},yU=xU,CU={name:"Upload",common:Ae,peers:{Button:Zr,Progress:D4},self(e){const{errorColor:t}=e,r=Q4(e);return r.itemColorHoverError=fe(t,{alpha:.09}),r}},wU=CU,SU={name:"Watermark",common:Ae,self(e){const{fontFamily:t}=e;return{fontFamily:t}}},_U=SU,EU={name:"Watermark",common:ke,self(e){const{fontFamily:t}=e;return{fontFamily:t}}},TU=EU,kU={name:"Row",common:ke},AU=kU,PU={name:"Row",common:Ae},$U=PU,IU=e=>{const{popoverColor:t,dividerColor:r,borderRadius:n}=e;return{color:t,buttonBorderColor:r,borderRadiusSquare:n,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)"}},BU={name:"FloatButtonGroup",common:ke,self:IU},DU=BU,OU={name:"FloatButton",common:Ae,self(e){const{popoverColor:t,textColor2:r,buttonColor2Hover:n,buttonColor2Pressed:o,primaryColor:i,primaryColorHover:a,primaryColorPressed:s,baseColor:l,borderRadius:c}=e;return{color:t,textColor:r,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)",colorHover:n,colorPressed:o,colorPrimary:i,colorPrimaryHover:a,colorPrimaryPressed:s,textColorPrimary:l,borderRadiusSquare:c}}},RU=OU,LU=e=>{const{popoverColor:t,textColor2:r,buttonColor2Hover:n,buttonColor2Pressed:o,primaryColor:i,primaryColorHover:a,primaryColorPressed:s,borderRadius:l}=e;return{color:t,colorHover:n,colorPressed:o,colorPrimary:i,colorPrimaryHover:a,colorPrimaryPressed:s,textColor:r,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .16)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .24)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .24)",textColorPrimary:"#fff",borderRadiusSquare:l}},FU={name:"FloatButton",common:ke,self:LU},MU=FU,zU=me({name:"GlobalStyle",setup(){if(typeof document>"u")return;const e=Me(Jn,null),{body:t}=document,{style:r}=t;let n=!1,o=!0;Rn(()=>{$r(()=>{var i,a;const{textColor2:s,fontSize:l,fontFamily:c,bodyColor:u,cubicBezierEaseInOut:d,lineHeight:f}=e?ka({},((i=e.mergedThemeRef.value)===null||i===void 0?void 0:i.common)||ke,(a=e.mergedThemeOverridesRef.value)===null||a===void 0?void 0:a.common):ke;if(n||!t.hasAttribute("n-styled")){r.setProperty("-webkit-text-size-adjust","100%"),r.setProperty("-webkit-tap-highlight-color","transparent"),r.padding="0",r.margin="0",r.backgroundColor=u,r.color=s,r.fontSize=l,r.fontFamily=c,r.lineHeight=f;const p=`color .3s ${d}, background-color .3s ${d}`;o?setTimeout(()=>{r.transition=p},0):r.transition=p,t.setAttribute("n-styled",""),n=!0,o=!1}})}),Xi(()=>{n&&t.removeAttribute("n-styled")})},render(){return null}}),NU={xs:0,s:640,m:1024,l:1280,xl:1536,xxl:1920},J4=24,Xf="__ssr__",HU={layoutShiftDisabled:Boolean,responsive:{type:[String,Boolean],default:"self"},cols:{type:[Number,String],default:J4},itemResponsive:Boolean,collapsed:Boolean,collapsedRows:{type:Number,default:1},itemStyle:[Object,String],xGap:{type:[Number,String],default:0},yGap:{type:[Number,String],default:0}},w1=me({name:"Grid",inheritAttrs:!1,props:HU,setup(e){const{mergedClsPrefixRef:t,mergedBreakpointsRef:r}=ht(e),n=/^\d+$/,o=z(void 0),i=KA((r==null?void 0:r.value)||NU),a=Rr(()=>!!(e.itemResponsive||!n.test(e.cols.toString())||!n.test(e.xGap.toString())||!n.test(e.yGap.toString()))),s=R(()=>{if(a.value)return e.responsive==="self"?o.value:i.value}),l=Rr(()=>{var m;return(m=Number(ua(e.cols.toString(),s.value)))!==null&&m!==void 0?m:J4}),c=Rr(()=>ua(e.xGap.toString(),s.value)),u=Rr(()=>ua(e.yGap.toString(),s.value)),d=m=>{o.value=m.contentRect.width},f=m=>{dg(d,m)},p=z(!1),h=R(()=>{if(e.responsive==="self")return f}),g=z(!1),v=z();return St(()=>{const{value:m}=v;m&&m.hasAttribute(Xf)&&(m.removeAttribute(Xf),g.value=!0)}),dt(x4,{layoutShiftDisabledRef:nt(e,"layoutShiftDisabled"),isSsrRef:g,itemStyleRef:nt(e,"itemStyle"),xGapRef:c,overflowRef:p}),{isSsr:!wo,contentEl:v,mergedClsPrefix:t,style:R(()=>e.layoutShiftDisabled?{width:"100%",display:"grid",gridTemplateColumns:`repeat(${e.cols}, minmax(0, 1fr))`,columnGap:fo(e.xGap),rowGap:fo(e.yGap)}:{width:"100%",display:"grid",gridTemplateColumns:`repeat(${l.value}, minmax(0, 1fr))`,columnGap:fo(c.value),rowGap:fo(u.value)}),isResponsive:a,responsiveQuery:s,responsiveCols:l,handleResize:h,overflow:p}},render(){if(this.layoutShiftDisabled)return k("div",Dn({ref:"contentEl",class:`${this.mergedClsPrefix}-grid`,style:this.style},this.$attrs),this.$slots);const e=()=>{var t,r,n,o,i,a,s;this.overflow=!1;const l=po(fg(this)),c=[],{collapsed:u,collapsedRows:d,responsiveCols:f,responsiveQuery:p}=this;l.forEach(b=>{var x,y,w,C,S;if(((x=b==null?void 0:b.type)===null||x===void 0?void 0:x.__GRID_ITEM__)!==!0)return;if(sA(b)){const A=on(b);A.props?A.props.privateShow=!1:A.props={privateShow:!1},c.push({child:A,rawChildSpan:0});return}b.dirs=((y=b.dirs)===null||y===void 0?void 0:y.filter(({dir:A})=>A!==Zo))||null,((w=b.dirs)===null||w===void 0?void 0:w.length)===0&&(b.dirs=null);const T=on(b),P=Number((S=ua((C=T.props)===null||C===void 0?void 0:C.span,p))!==null&&S!==void 0?S:y1);P!==0&&c.push({child:T,rawChildSpan:P})});let h=0;const g=(t=c[c.length-1])===null||t===void 0?void 0:t.child;if(g!=null&&g.props){const b=(r=g.props)===null||r===void 0?void 0:r.suffix;b!==void 0&&b!==!1&&(h=Number((o=ua((n=g.props)===null||n===void 0?void 0:n.span,p))!==null&&o!==void 0?o:y1),g.props.privateSpan=h,g.props.privateColStart=f+1-h,g.props.privateShow=(i=g.props.privateShow)!==null&&i!==void 0?i:!0)}let v=0,m=!1;for(const{child:b,rawChildSpan:x}of c){if(m&&(this.overflow=!0),!m){const y=Number((s=ua((a=b.props)===null||a===void 0?void 0:a.offset,p))!==null&&s!==void 0?s:0),w=Math.min(x+y,f);if(b.props?(b.props.privateSpan=w,b.props.privateOffset=y):b.props={privateSpan:w,privateOffset:y},u){const C=v%f;w+C>f&&(v+=f-C),w+v+h>d*f?m=!0:v+=w}}m&&(b.props?b.props.privateShow!==!0&&(b.props.privateShow=!1):b.props={privateShow:!1})}return k("div",Dn({ref:"contentEl",class:`${this.mergedClsPrefix}-grid`,style:this.style,[Xf]:this.isSsr||void 0},this.$attrs),c.map(({child:b})=>b))};return this.isResponsive&&this.responsive==="self"?k(Ko,{onResize:this.handleResize},{default:e}):e()}}),eE=e=>{const{primaryColor:t,baseColor:r}=e;return{color:t,iconColor:r}},jU={name:"IconWrapper",common:ke,self:eE},WU=jU,UU={name:"IconWrapper",common:Ae,self:eE},VU=UU,Yg=Object.assign(Object.assign({},ze.props),{onPreviewPrev:Function,onPreviewNext:Function,showToolbar:{type:Boolean,default:!0},showToolbarTooltip:Boolean}),tE="n-image";function qU(){return{toolbarIconColor:"rgba(255, 255, 255, .9)",toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}const rE={name:"Image",common:ke,peers:{Tooltip:ac},self:qU},GU={name:"Image",common:Ae,peers:{Tooltip:Rd},self:e=>{const{textColor2:t}=e;return{toolbarIconColor:t,toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}},YU=k("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},k("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"})),KU=k("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},k("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"})),XU=k("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},k("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"})),ZU=k("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 1024 1024"},k("path",{fill:"currentColor",d:"M505.7 661a8 8 0 0 0 12.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"})),QU=q([q("body >",[N("image-container","position: fixed;")]),N("image-preview-container",`
|
||
position: fixed;
|
||
left: 0;
|
||
right: 0;
|
||
top: 0;
|
||
bottom: 0;
|
||
display: flex;
|
||
`),N("image-preview-overlay",`
|
||
z-index: -1;
|
||
position: absolute;
|
||
left: 0;
|
||
right: 0;
|
||
top: 0;
|
||
bottom: 0;
|
||
background: rgba(0, 0, 0, .3);
|
||
`,[Za()]),N("image-preview-toolbar",`
|
||
z-index: 1;
|
||
position: absolute;
|
||
left: 50%;
|
||
transform: translateX(-50%);
|
||
border-radius: var(--n-toolbar-border-radius);
|
||
height: 48px;
|
||
bottom: 40px;
|
||
padding: 0 12px;
|
||
background: var(--n-toolbar-color);
|
||
box-shadow: var(--n-toolbar-box-shadow);
|
||
color: var(--n-toolbar-icon-color);
|
||
transition: color .3s var(--n-bezier);
|
||
display: flex;
|
||
align-items: center;
|
||
`,[N("base-icon",`
|
||
padding: 0 8px;
|
||
font-size: 28px;
|
||
cursor: pointer;
|
||
`),Za()]),N("image-preview-wrapper",`
|
||
position: absolute;
|
||
left: 0;
|
||
right: 0;
|
||
top: 0;
|
||
bottom: 0;
|
||
display: flex;
|
||
pointer-events: none;
|
||
`,[qS()]),N("image-preview",`
|
||
user-select: none;
|
||
-webkit-user-select: none;
|
||
pointer-events: all;
|
||
margin: auto;
|
||
max-height: calc(100vh - 32px);
|
||
max-width: calc(100vw - 32px);
|
||
transition: transform .3s var(--n-bezier);
|
||
`),N("image",`
|
||
display: inline-flex;
|
||
max-height: 100%;
|
||
max-width: 100%;
|
||
`,[ir("preview-disabled",`
|
||
cursor: pointer;
|
||
`),q("img",`
|
||
border-radius: inherit;
|
||
`)])]),Mc=32,nE=me({name:"ImagePreview",props:Object.assign(Object.assign({},Yg),{onNext:Function,onPrev:Function,clsPrefix:{type:String,required:!0}}),setup(e){const t=ze("Image","-image",QU,rE,e,nt(e,"clsPrefix"));let r=null;const n=z(null),o=z(null),i=z(void 0),a=z(!1),s=z(!1),{localeRef:l}=Dg("Image");function c(){const{value:_}=o;if(!r||!_)return;const{style:E}=_,$=r.getBoundingClientRect(),L=$.left+$.width/2,M=$.top+$.height/2;E.transformOrigin=`${L}px ${M}px`}function u(_){var E,$;switch(_.key){case" ":_.preventDefault();break;case"ArrowLeft":(E=e.onPrev)===null||E===void 0||E.call(e);break;case"ArrowRight":($=e.onNext)===null||$===void 0||$.call(e);break;case"Escape":Se();break}}Ye(a,_=>{_?er("keydown",document,u):kt("keydown",document,u)}),Kt(()=>{kt("keydown",document,u)});let d=0,f=0,p=0,h=0,g=0,v=0,m=0,b=0,x=!1;function y(_){const{clientX:E,clientY:$}=_;p=E-d,h=$-f,dg($e)}function w(_){const{mouseUpClientX:E,mouseUpClientY:$,mouseDownClientX:L,mouseDownClientY:M}=_,J=L-E,oe=M-$,O=`vertical${oe>0?"Top":"Bottom"}`,H=`horizontal${J>0?"Left":"Right"}`;return{moveVerticalDirection:O,moveHorizontalDirection:H,deltaHorizontal:J,deltaVertical:oe}}function C(_){const{value:E}=n;if(!E)return{offsetX:0,offsetY:0};const $=E.getBoundingClientRect(),{moveVerticalDirection:L,moveHorizontalDirection:M,deltaHorizontal:J,deltaVertical:oe}=_||{};let O=0,H=0;return $.width<=window.innerWidth?O=0:$.left>0?O=($.width-window.innerWidth)/2:$.right<window.innerWidth?O=-($.width-window.innerWidth)/2:M==="horizontalRight"?O=Math.min(($.width-window.innerWidth)/2,g-(J??0)):O=Math.max(-(($.width-window.innerWidth)/2),g-(J??0)),$.height<=window.innerHeight?H=0:$.top>0?H=($.height-window.innerHeight)/2:$.bottom<window.innerHeight?H=-($.height-window.innerHeight)/2:L==="verticalBottom"?H=Math.min(($.height-window.innerHeight)/2,v-(oe??0)):H=Math.max(-(($.height-window.innerHeight)/2),v-(oe??0)),{offsetX:O,offsetY:H}}function S(_){kt("mousemove",document,y),kt("mouseup",document,S);const{clientX:E,clientY:$}=_;x=!1;const L=w({mouseUpClientX:E,mouseUpClientY:$,mouseDownClientX:m,mouseDownClientY:b}),M=C(L);p=M.offsetX,h=M.offsetY,$e()}const T=Me(tE,null);function P(_){var E,$;if(($=(E=T==null?void 0:T.previewedImgPropsRef.value)===null||E===void 0?void 0:E.onMousedown)===null||$===void 0||$.call(E,_),_.button!==0)return;const{clientX:L,clientY:M}=_;x=!0,d=L-p,f=M-h,g=p,v=h,m=L,b=M,$e(),er("mousemove",document,y),er("mouseup",document,S)}function A(_){var E,$;($=(E=T==null?void 0:T.previewedImgPropsRef.value)===null||E===void 0?void 0:E.onDblclick)===null||$===void 0||$.call(E,_);const L=X();D=D===L?1:L,$e()}const I=1.5;let B=0,D=1,U=0;function F(){D=1,B=0}function j(){var _;F(),U=0,(_=e.onPrev)===null||_===void 0||_.call(e)}function K(){var _;F(),U=0,(_=e.onNext)===null||_===void 0||_.call(e)}function ae(){U-=90,$e()}function we(){U+=90,$e()}function Ce(){const{value:_}=n;if(!_)return 1;const{innerWidth:E,innerHeight:$}=window,L=Math.max(1,_.naturalHeight/($-Mc)),M=Math.max(1,_.naturalWidth/(E-Mc));return Math.max(3,L*2,M*2)}function X(){const{value:_}=n;if(!_)return 1;const{innerWidth:E,innerHeight:$}=window,L=_.naturalHeight/($-Mc),M=_.naturalWidth/(E-Mc);return L<1&&M<1?1:Math.max(L,M)}function re(){const _=Ce();D<_&&(B+=1,D=Math.min(_,Math.pow(I,B)),$e())}function le(){if(D>.5){const _=D;B-=1,D=Math.max(.5,Math.pow(I,B));const E=_-D;$e(!1);const $=C();D+=E,$e(!1),D-=E,p=$.offsetX,h=$.offsetY,$e()}}function ne(){const _=i.value;_&&YP(_,void 0)}function $e(_=!0){var E;const{value:$}=n;if(!$)return;const{style:L}=$,M=Bn((E=T==null?void 0:T.previewedImgPropsRef.value)===null||E===void 0?void 0:E.style);let J="";if(typeof M=="string")J=M+";";else for(const O in M)J+=`${GR(O)}: ${M[O]};`;const oe=`transform-origin: center; transform: translateX(${p}px) translateY(${h}px) rotate(${U}deg) scale(${D});`;x?L.cssText=J+"cursor: grabbing; transition: none;"+oe:L.cssText=J+"cursor: grab;"+oe+(_?"":"transition: none;"),_||$.offsetHeight}function Se(){a.value=!a.value,s.value=!0}function ee(){D=X(),B=Math.ceil(Math.log(D)/Math.log(I)),p=0,h=0,$e()}const se={setPreviewSrc:_=>{i.value=_},setThumbnailEl:_=>{r=_},toggleShow:Se};function ce(_,E){if(e.showToolbarTooltip){const{value:$}=t;return k(rl,{to:!1,theme:$.peers.Tooltip,themeOverrides:$.peerOverrides.Tooltip,keepAliveOnHover:!1},{default:()=>l.value[E],trigger:()=>_})}else return _}const xe=R(()=>{const{common:{cubicBezierEaseInOut:_},self:{toolbarIconColor:E,toolbarBorderRadius:$,toolbarBoxShadow:L,toolbarColor:M}}=t.value;return{"--n-bezier":_,"--n-toolbar-icon-color":E,"--n-toolbar-color":M,"--n-toolbar-border-radius":$,"--n-toolbar-box-shadow":L}}),{inlineThemeDisabled:Te}=ht(),Pe=Te?tr("image-preview",void 0,xe,e):void 0;return Object.assign({previewRef:n,previewWrapperRef:o,previewSrc:i,show:a,appear:bs(),displayed:s,previewedImgProps:T==null?void 0:T.previewedImgPropsRef,handleWheel(_){_.preventDefault()},handlePreviewMousedown:P,handlePreviewDblclick:A,syncTransformOrigin:c,handleAfterLeave:()=>{F(),U=0,s.value=!1},handleDragStart:_=>{var E,$;($=(E=T==null?void 0:T.previewedImgPropsRef.value)===null||E===void 0?void 0:E.onDragstart)===null||$===void 0||$.call(E,_),_.preventDefault()},zoomIn:re,zoomOut:le,handleDownloadClick:ne,rotateCounterclockwise:ae,rotateClockwise:we,handleSwitchPrev:j,handleSwitchNext:K,withTooltip:ce,resizeToOrignalImageSize:ee,cssVars:Te?void 0:xe,themeClass:Pe==null?void 0:Pe.themeClass,onRender:Pe==null?void 0:Pe.onRender},se)},render(){var e,t;const{clsPrefix:r}=this;return k(st,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),k(bg,{show:this.show},{default:()=>{var n;return this.show||this.displayed?((n=this.onRender)===null||n===void 0||n.call(this),bn(k("div",{class:[`${r}-image-preview-container`,this.themeClass],style:this.cssVars,onWheel:this.handleWheel},k(Fr,{name:"fade-in-transition",appear:this.appear},{default:()=>this.show?k("div",{class:`${r}-image-preview-overlay`,onClick:this.toggleShow}):null}),this.showToolbar?k(Fr,{name:"fade-in-transition",appear:this.appear},{default:()=>{if(!this.show)return null;const{withTooltip:o}=this;return k("div",{class:`${r}-image-preview-toolbar`},this.onPrev?k(st,null,o(k(or,{clsPrefix:r,onClick:this.handleSwitchPrev},{default:()=>YU}),"tipPrevious"),o(k(or,{clsPrefix:r,onClick:this.handleSwitchNext},{default:()=>KU}),"tipNext")):null,o(k(or,{clsPrefix:r,onClick:this.rotateCounterclockwise},{default:()=>k(xM,null)}),"tipCounterclockwise"),o(k(or,{clsPrefix:r,onClick:this.rotateClockwise},{default:()=>k(bM,null)}),"tipClockwise"),o(k(or,{clsPrefix:r,onClick:this.resizeToOrignalImageSize},{default:()=>k(wM,null)}),"tipOriginalSize"),o(k(or,{clsPrefix:r,onClick:this.zoomOut},{default:()=>k(CM,null)}),"tipZoomOut"),o(k(or,{clsPrefix:r,onClick:this.zoomIn},{default:()=>k(yM,null)}),"tipZoomIn"),o(k(or,{clsPrefix:r,onClick:this.handleDownloadClick},{default:()=>ZU}),"tipDownload"),o(k(or,{clsPrefix:r,onClick:this.toggleShow},{default:()=>XU}),"tipClose"))}}):null,k(Fr,{name:"fade-in-scale-up-transition",onAfterLeave:this.handleAfterLeave,appear:this.appear,onEnter:this.syncTransformOrigin,onBeforeLeave:this.syncTransformOrigin},{default:()=>{const{previewedImgProps:o={}}=this;return bn(k("div",{class:`${r}-image-preview-wrapper`,ref:"previewWrapperRef"},k("img",Object.assign({},o,{draggable:!1,onMousedown:this.handlePreviewMousedown,onDblclick:this.handlePreviewDblclick,class:[`${r}-image-preview`,o.class],key:this.previewSrc,src:this.previewSrc,ref:"previewRef",onDragstart:this.handleDragStart}))),[[Zo,this.show]])}})),[[_d,{enabled:this.show}]])):null}}))}}),oE="n-image-group",JU=Yg,Vde=me({name:"ImageGroup",props:JU,setup(e){let t;const{mergedClsPrefixRef:r}=ht(e),n=`c${Hi()}`,o=Er(),i=l=>{var c;t=l,(c=s.value)===null||c===void 0||c.setPreviewSrc(l)};function a(l){var c,u;if(!(o!=null&&o.proxy))return;const f=o.proxy.$el.parentElement.querySelectorAll(`[data-group-id=${n}]:not([data-error=true])`);if(!f.length)return;const p=Array.from(f).findIndex(h=>h.dataset.previewSrc===t);~p?i(f[(p+l+f.length)%f.length].dataset.previewSrc):i(f[0].dataset.previewSrc),l===1?(c=e.onPreviewNext)===null||c===void 0||c.call(e):(u=e.onPreviewPrev)===null||u===void 0||u.call(e)}dt(oE,{mergedClsPrefixRef:r,setPreviewSrc:i,setThumbnailEl:l=>{var c;(c=s.value)===null||c===void 0||c.setThumbnailEl(l)},toggleShow:()=>{var l;(l=s.value)===null||l===void 0||l.toggleShow()},groupId:n});const s=z(null);return{mergedClsPrefix:r,previewInstRef:s,next:()=>{a(1)},prev:()=>{a(-1)}}},render(){return k(nE,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:this.mergedClsPrefix,ref:"previewInstRef",onPrev:this.prev,onNext:this.next,showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip},this.$slots)}}),eV=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},Yg),iE=me({name:"Image",props:eV,inheritAttrs:!1,setup(e){const t=z(null),r=z(!1),n=z(null),o=Me(oE,null),{mergedClsPrefixRef:i}=o||ht(e),a={click:()=>{if(e.previewDisabled||r.value)return;const c=e.previewSrc||e.src;if(o){o.setPreviewSrc(c),o.setThumbnailEl(t.value),o.toggleShow();return}const{value:u}=n;u&&(u.setPreviewSrc(c),u.setThumbnailEl(t.value),u.toggleShow())}},s=z(!e.lazy);St(()=>{var c;(c=t.value)===null||c===void 0||c.setAttribute("data-group-id",(o==null?void 0:o.groupId)||"")}),St(()=>{if(e.lazy&&e.intersectionObserverOptions){let c;const u=$r(()=>{c==null||c(),c=void 0,c=u_(t.value,e.intersectionObserverOptions,s)});Kt(()=>{u(),c==null||c()})}}),$r(()=>{var c;e.src||((c=e.imgProps)===null||c===void 0||c.src),r.value=!1});const l=z(!1);return dt(tE,{previewedImgPropsRef:nt(e,"previewedImgProps")}),Object.assign({mergedClsPrefix:i,groupId:o==null?void 0:o.groupId,previewInstRef:n,imageRef:t,showError:r,shouldStartLoading:s,loaded:l,mergedOnClick:c=>{var u,d;a.click(),(d=(u=e.imgProps)===null||u===void 0?void 0:u.onClick)===null||d===void 0||d.call(u,c)},mergedOnError:c=>{if(!s.value)return;r.value=!0;const{onError:u,imgProps:{onError:d}={}}=e;u==null||u(c),d==null||d(c)},mergedOnLoad:c=>{const{onLoad:u,imgProps:{onLoad:d}={}}=e;u==null||u(c),d==null||d(c),l.value=!0}},a)},render(){var e,t;const{mergedClsPrefix:r,imgProps:n={},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||n.src,c=k("img",Object.assign(Object.assign({},n),{ref:"imageRef",width:this.width||n.width,height:this.height||n.height,src:this.showError?this.fallbackSrc:a&&this.intersectionObserverOptions?this.shouldStartLoading?l:void 0:l,alt:this.alt||n.alt,"aria-label":this.alt||n.alt,onClick:this.mergedOnClick,onError:this.mergedOnError,onLoad:this.mergedOnLoad,loading:c_&&a&&!this.intersectionObserverOptions?"lazy":"eager",style:[n.style||"",s&&!o?{height:"0",width:"0",visibility:"hidden"}:"",{objectFit:this.objectFit}],"data-error":this.showError,"data-preview-src":this.previewSrc||this.src}));return k("div",Object.assign({},i,{role:"none",class:[i.class,`${r}-image`,(this.previewDisabled||this.showError)&&`${r}-image--preview-disabled`]}),this.groupId?c:k(nE,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:r,ref:"previewInstRef",showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip},{default:()=>c}),!o&&s)}}),qde="n-layout-sider",tV={type:String,default:"static"},rV=N("layout",`
|
||
color: var(--n-text-color);
|
||
background-color: var(--n-color);
|
||
box-sizing: border-box;
|
||
position: relative;
|
||
z-index: auto;
|
||
flex: auto;
|
||
overflow: hidden;
|
||
transition:
|
||
box-shadow .3s var(--n-bezier),
|
||
background-color .3s var(--n-bezier),
|
||
color .3s var(--n-bezier);
|
||
`,[N("layout-scroll-container",`
|
||
overflow-x: hidden;
|
||
box-sizing: border-box;
|
||
height: 100%;
|
||
`),Q("absolute-positioned",`
|
||
position: absolute;
|
||
left: 0;
|
||
right: 0;
|
||
top: 0;
|
||
bottom: 0;
|
||
`)]),nV={embedded:Boolean,position:tV,nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,onScroll:Function,contentClass:String,contentStyle:{type:[String,Object],default:""},hasSider:Boolean,siderPlacement:{type:String,default:"left"}},oV="n-layout";function aE(e){return me({name:e?"LayoutContent":"Layout",props:Object.assign(Object.assign({},ze.props),nV),setup(t){const r=z(null),n=z(null),{mergedClsPrefixRef:o,inlineThemeDisabled:i}=ht(t),a=ze("Layout","-layout",rV,E4,t,o);function s(g,v){if(t.nativeScrollbar){const{value:m}=r;m&&(v===void 0?m.scrollTo(g):m.scrollTo(g,v))}else{const{value:m}=n;m&&m.scrollTo(g,v)}}dt(oV,t);let l=0,c=0;const u=g=>{var v;const m=g.target;l=m.scrollLeft,c=m.scrollTop,(v=t.onScroll)===null||v===void 0||v.call(t,g)};q2(()=>{if(t.nativeScrollbar){const g=r.value;g&&(g.scrollTop=c,g.scrollLeft=l)}});const d={display:"flex",flexWrap:"nowrap",width:"100%",flexDirection:"row"},f={scrollTo:s},p=R(()=>{const{common:{cubicBezierEaseInOut:g},self:v}=a.value;return{"--n-bezier":g,"--n-color":t.embedded?v.colorEmbedded:v.color,"--n-text-color":v.textColor}}),h=i?tr("layout",R(()=>t.embedded?"e":""),p,t):void 0;return Object.assign({mergedClsPrefix:o,scrollableElRef:r,scrollbarInstRef:n,hasSiderStyle:d,mergedTheme:a,handleNativeElScroll:u,cssVars:i?void 0:p,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender},f)},render(){var t;const{mergedClsPrefix:r,hasSider:n}=this;(t=this.onRender)===null||t===void 0||t.call(this);const o=n?this.hasSiderStyle:void 0,i=[this.themeClass,e&&`${r}-layout-content`,`${r}-layout`,`${r}-layout--${this.position}-positioned`];return k("div",{class:i,style:this.cssVars},this.nativeScrollbar?k("div",{ref:"scrollableElRef",class:[`${r}-layout-scroll-container`,this.contentClass],style:[this.contentStyle,o],onScroll:this.handleNativeElScroll},this.$slots):k(nc,Object.assign({},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:this.contentClass,contentStyle:[this.contentStyle,o]}),this.$slots))}})}const Gde=aE(!1),iV=aE(!0),sE={extraFontSize:"12px",width:"440px"},aV={name:"Transfer",common:Ae,peers:{Checkbox:ws,Scrollbar:Xr,Input:wn,Empty:ra,Button:Zr},self(e){const{iconColorDisabled:t,iconColor:r,fontWeight:n,fontSizeLarge:o,fontSizeMedium:i,fontSizeSmall:a,heightLarge:s,heightMedium:l,heightSmall:c,borderRadius:u,inputColor:d,tableHeaderColor:f,textColor1:p,textColorDisabled:h,textColor2:g,hoverColor:v}=e;return Object.assign(Object.assign({},sE),{itemHeightSmall:c,itemHeightMedium:l,itemHeightLarge:s,fontSizeSmall:a,fontSizeMedium:i,fontSizeLarge:o,borderRadius:u,borderColor:"#0000",listColor:d,headerColor:f,titleTextColor:p,titleTextColorDisabled:h,extraTextColor:g,filterDividerColor:"#0000",itemTextColor:g,itemTextColorDisabled:h,itemColorPending:v,titleFontWeight:n,iconColor:r,iconColorDisabled:t})}},sV=aV,lV=e=>{const{fontWeight:t,iconColorDisabled:r,iconColor:n,fontSizeLarge:o,fontSizeMedium:i,fontSizeSmall:a,heightLarge:s,heightMedium:l,heightSmall:c,borderRadius:u,cardColor:d,tableHeaderColor:f,textColor1:p,textColorDisabled:h,textColor2:g,borderColor:v,hoverColor:m}=e;return Object.assign(Object.assign({},sE),{itemHeightSmall:c,itemHeightMedium:l,itemHeightLarge:s,fontSizeSmall:a,fontSizeMedium:i,fontSizeLarge:o,borderRadius:u,borderColor:v,listColor:d,headerColor:Oe(d,f),titleTextColor:p,titleTextColorDisabled:h,extraTextColor:g,filterDividerColor:v,itemTextColor:g,itemTextColorDisabled:h,itemColorPending:m,titleFontWeight:t,iconColor:n,iconColorDisabled:r})},cV={name:"Transfer",common:ke,peers:{Checkbox:Cs,Scrollbar:jr,Input:sn,Empty:To,Button:Wr},self:lV},uV=cV,lE="n-loading-bar",cE="n-loading-bar-api",dV=N("loading-bar-container",`
|
||
z-index: 5999;
|
||
position: fixed;
|
||
top: 0;
|
||
left: 0;
|
||
right: 0;
|
||
height: 2px;
|
||
`,[Za({enterDuration:"0.3s",leaveDuration:"0.8s"}),N("loading-bar",`
|
||
width: 100%;
|
||
transition:
|
||
max-width 4s linear,
|
||
background .2s linear;
|
||
height: var(--n-height);
|
||
`,[Q("starting",`
|
||
background: var(--n-color-loading);
|
||
`),Q("finishing",`
|
||
background: var(--n-color-loading);
|
||
transition:
|
||
max-width .2s linear,
|
||
background .2s linear;
|
||
`),Q("error",`
|
||
background: var(--n-color-error);
|
||
transition:
|
||
max-width .2s linear,
|
||
background .2s linear;
|
||
`)])]);var zc=globalThis&&globalThis.__awaiter||function(e,t,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{c(n.next(u))}catch(d){a(d)}}function l(u){try{c(n.throw(u))}catch(d){a(d)}}function c(u){u.done?i(u.value):o(u.value).then(s,l)}c((n=n.apply(e,t||[])).next())})};function Nc(e,t){return`${t}-loading-bar ${t}-loading-bar--${e}`}const fV=me({name:"LoadingBar",props:{containerClass:String,containerStyle:[String,Object]},setup(){const{inlineThemeDisabled:e}=ht(),{props:t,mergedClsPrefixRef:r}=Me(lE),n=z(null),o=z(!1),i=z(!1),a=z(!1),s=z(!1);let l=!1;const c=z(!1),u=R(()=>{const{loadingBarStyle:w}=t;return w?w[c.value?"error":"loading"]:""});function d(){return zc(this,void 0,void 0,function*(){o.value=!1,a.value=!1,l=!1,c.value=!1,s.value=!0,yield zt(),s.value=!1})}function f(w=0,C=80,S="starting"){return zc(this,void 0,void 0,function*(){if(i.value=!0,yield d(),l)return;a.value=!0,yield zt();const T=n.value;T&&(T.style.maxWidth=`${w}%`,T.style.transition="none",T.offsetWidth,T.className=Nc(S,r.value),T.style.transition="",T.style.maxWidth=`${C}%`)})}function p(){return zc(this,void 0,void 0,function*(){if(l||c.value)return;i.value&&(yield zt()),l=!0;const w=n.value;w&&(w.className=Nc("finishing",r.value),w.style.maxWidth="100%",w.offsetWidth,a.value=!1)})}function h(){if(!(l||c.value))if(!a.value)f(100,100,"error").then(()=>{c.value=!0;const w=n.value;w&&(w.className=Nc("error",r.value),w.offsetWidth,a.value=!1)});else{c.value=!0;const w=n.value;if(!w)return;w.className=Nc("error",r.value),w.style.maxWidth="100%",w.offsetWidth,a.value=!1}}function g(){o.value=!0}function v(){o.value=!1}function m(){return zc(this,void 0,void 0,function*(){yield d()})}const b=ze("LoadingBar","-loading-bar",dV,k4,t,r),x=R(()=>{const{self:{height:w,colorError:C,colorLoading:S}}=b.value;return{"--n-height":w,"--n-color-loading":S,"--n-color-error":C}}),y=e?tr("loading-bar",void 0,x,t):void 0;return{mergedClsPrefix:r,loadingBarRef:n,started:i,loading:a,entering:o,transitionDisabled:s,start:f,error:h,finish:p,handleEnter:g,handleAfterEnter:v,handleAfterLeave:m,mergedLoadingBarStyle:u,cssVars:e?void 0:x,themeClass:y==null?void 0:y.themeClass,onRender:y==null?void 0:y.onRender}},render(){if(!this.started)return null;const{mergedClsPrefix:e}=this;return k(Fr,{name:"fade-in-transition",appear:!0,onEnter:this.handleEnter,onAfterEnter:this.handleAfterEnter,onAfterLeave:this.handleAfterLeave,css:!this.transitionDisabled},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),bn(k("div",{class:[`${e}-loading-bar-container`,this.themeClass,this.containerClass],style:this.containerStyle},k("div",{ref:"loadingBarRef",class:[`${e}-loading-bar`],style:[this.cssVars,this.mergedLoadingBarStyle]})),[[Zo,this.loading||!this.loading&&this.entering]])}})}}),hV=Object.assign(Object.assign({},ze.props),{to:{type:[String,Object,Boolean],default:void 0},containerClass:String,containerStyle:[String,Object],loadingBarStyle:{type:Object}}),pV=me({name:"LoadingBarProvider",props:hV,setup(e){const t=bs(),r=z(null),n={start(){var i;t.value?(i=r.value)===null||i===void 0||i.start():zt(()=>{var a;(a=r.value)===null||a===void 0||a.start()})},error(){var i;t.value?(i=r.value)===null||i===void 0||i.error():zt(()=>{var a;(a=r.value)===null||a===void 0||a.error()})},finish(){var i;t.value?(i=r.value)===null||i===void 0||i.finish():zt(()=>{var a;(a=r.value)===null||a===void 0||a.finish()})}},{mergedClsPrefixRef:o}=ht(e);return dt(cE,n),dt(lE,{props:e,mergedClsPrefixRef:o}),Object.assign(n,{loadingBarRef:r})},render(){var e,t;return k(st,null,k(vd,{disabled:this.to===!1,to:this.to||"body"},k(fV,{ref:"loadingBarRef",containerStyle:this.containerStyle,containerClass:this.containerClass})),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}});function gV(){const e=Me(cE,null);return e===null&&ms("use-loading-bar","No outer <n-loading-bar-provider /> founded."),e}const uE={icon:Function,type:{type:String,default:"info"},content:[String,Number,Function],showIcon:{type:Boolean,default:!0},closable:Boolean,keepAliveOnHover:Boolean,onClose:Function,onMouseenter:Function,onMouseleave:Function},dE="n-message-api",fE="n-message-provider",mV=q([N("message-wrapper",`
|
||
margin: var(--n-margin);
|
||
z-index: 0;
|
||
transform-origin: top center;
|
||
display: flex;
|
||
`,[r_({overflow:"visible",originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.85)"}})]),N("message",`
|
||
box-sizing: border-box;
|
||
display: flex;
|
||
align-items: center;
|
||
transition:
|
||
color .3s var(--n-bezier),
|
||
box-shadow .3s var(--n-bezier),
|
||
background-color .3s var(--n-bezier),
|
||
opacity .3s var(--n-bezier),
|
||
transform .3s var(--n-bezier),
|
||
margin-bottom .3s var(--n-bezier);
|
||
padding: var(--n-padding);
|
||
border-radius: var(--n-border-radius);
|
||
flex-wrap: nowrap;
|
||
overflow: hidden;
|
||
max-width: var(--n-max-width);
|
||
color: var(--n-text-color);
|
||
background-color: var(--n-color);
|
||
box-shadow: var(--n-box-shadow);
|
||
`,[Z("content",`
|
||
display: inline-block;
|
||
line-height: var(--n-line-height);
|
||
font-size: var(--n-font-size);
|
||
`),Z("icon",`
|
||
position: relative;
|
||
margin: var(--n-icon-margin);
|
||
height: var(--n-icon-size);
|
||
width: var(--n-icon-size);
|
||
font-size: var(--n-icon-size);
|
||
flex-shrink: 0;
|
||
`,[["default","info","success","warning","error","loading"].map(e=>Q(`${e}-type`,[q("> *",`
|
||
color: var(--n-icon-color-${e});
|
||
transition: color .3s var(--n-bezier);
|
||
`)])),q("> *",`
|
||
position: absolute;
|
||
left: 0;
|
||
top: 0;
|
||
right: 0;
|
||
bottom: 0;
|
||
`,[Bl()])]),Z("close",`
|
||
margin: var(--n-close-margin);
|
||
transition:
|
||
background-color .3s var(--n-bezier),
|
||
color .3s var(--n-bezier);
|
||
flex-shrink: 0;
|
||
`,[q("&:hover",`
|
||
color: var(--n-close-icon-color-hover);
|
||
`),q("&:active",`
|
||
color: var(--n-close-icon-color-pressed);
|
||
`)])]),N("message-container",`
|
||
z-index: 6000;
|
||
position: fixed;
|
||
height: 0;
|
||
overflow: visible;
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
`,[Q("top",`
|
||
top: 12px;
|
||
left: 0;
|
||
right: 0;
|
||
`),Q("top-left",`
|
||
top: 12px;
|
||
left: 12px;
|
||
right: 0;
|
||
align-items: flex-start;
|
||
`),Q("top-right",`
|
||
top: 12px;
|
||
left: 0;
|
||
right: 12px;
|
||
align-items: flex-end;
|
||
`),Q("bottom",`
|
||
bottom: 4px;
|
||
left: 0;
|
||
right: 0;
|
||
justify-content: flex-end;
|
||
`),Q("bottom-left",`
|
||
bottom: 4px;
|
||
left: 12px;
|
||
right: 0;
|
||
justify-content: flex-end;
|
||
align-items: flex-start;
|
||
`),Q("bottom-right",`
|
||
bottom: 4px;
|
||
left: 0;
|
||
right: 12px;
|
||
justify-content: flex-end;
|
||
align-items: flex-end;
|
||
`)])]),vV={info:()=>k(Xa,null),success:()=>k(tc,null),warning:()=>k(rc,null),error:()=>k(ec,null),default:()=>null},bV=me({name:"Message",props:Object.assign(Object.assign({},uE),{render:Function}),setup(e){const{inlineThemeDisabled:t,mergedRtlRef:r}=ht(e),{props:n,mergedClsPrefixRef:o}=Me(fE),i=an("Message",r,o),a=ze("Message","-message",mV,_4,n,o),s=R(()=>{const{type:c}=e,{common:{cubicBezierEaseInOut:u},self:{padding:d,margin:f,maxWidth:p,iconMargin:h,closeMargin:g,closeSize:v,iconSize:m,fontSize:b,lineHeight:x,borderRadius:y,iconColorInfo:w,iconColorSuccess:C,iconColorWarning:S,iconColorError:T,iconColorLoading:P,closeIconSize:A,closeBorderRadius:I,[ye("textColor",c)]:B,[ye("boxShadow",c)]:D,[ye("color",c)]:U,[ye("closeColorHover",c)]:F,[ye("closeColorPressed",c)]:j,[ye("closeIconColor",c)]:K,[ye("closeIconColorPressed",c)]:ae,[ye("closeIconColorHover",c)]:we}}=a.value;return{"--n-bezier":u,"--n-margin":f,"--n-padding":d,"--n-max-width":p,"--n-font-size":b,"--n-icon-margin":h,"--n-icon-size":m,"--n-close-icon-size":A,"--n-close-border-radius":I,"--n-close-size":v,"--n-close-margin":g,"--n-text-color":B,"--n-color":U,"--n-box-shadow":D,"--n-icon-color-info":w,"--n-icon-color-success":C,"--n-icon-color-warning":S,"--n-icon-color-error":T,"--n-icon-color-loading":P,"--n-close-color-hover":F,"--n-close-color-pressed":j,"--n-close-icon-color":K,"--n-close-icon-color-pressed":ae,"--n-close-icon-color-hover":we,"--n-line-height":x,"--n-border-radius":y}}),l=t?tr("message",R(()=>e.type[0]),s,{}):void 0;return{mergedClsPrefix:o,rtlEnabled:i,messageProviderProps:n,handleClose(){var c;(c=e.onClose)===null||c===void 0||c.call(e)},cssVars:t?void 0:s,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender,placement:n.placement}},render(){const{render:e,type:t,closable:r,content:n,mergedClsPrefix:o,cssVars:i,themeClass:a,onRender:s,icon:l,handleClose:c,showIcon:u}=this;s==null||s();let d;return k("div",{class:[`${o}-message-wrapper`,a],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:[{alignItems:this.placement.startsWith("top")?"flex-start":"flex-end"},i]},e?e(this.$props):k("div",{class:[`${o}-message ${o}-message--${t}-type`,this.rtlEnabled&&`${o}-message--rtl`]},(d=xV(l,t,o))&&u?k("div",{class:`${o}-message__icon ${o}-message__icon--${t}-type`},k(Bd,null,{default:()=>d})):null,k("div",{class:`${o}-message__content`},Yr(n)),r?k(ta,{clsPrefix:o,class:`${o}-message__close`,onClick:c,absolute:!0}):null))}});function xV(e,t,r){if(typeof e=="function")return e();{const n=t==="loading"?k(Dd,{clsPrefix:r,strokeWidth:24,scale:.85}):vV[t]();return n?k(or,{clsPrefix:r,key:t},{default:()=>n}):null}}const yV=me({name:"MessageEnvironment",props:Object.assign(Object.assign({},uE),{duration:{type:Number,default:3e3},onAfterLeave:Function,onLeave:Function,internalKey:{type:String,required:!0},onInternalAfterLeave:Function,onHide:Function,onAfterHide:Function}),setup(e){let t=null;const r=z(!0);St(()=>{n()});function n(){const{duration:u}=e;u&&(t=window.setTimeout(a,u))}function o(u){u.currentTarget===u.target&&t!==null&&(window.clearTimeout(t),t=null)}function i(u){u.currentTarget===u.target&&n()}function a(){const{onHide:u}=e;r.value=!1,t&&(window.clearTimeout(t),t=null),u&&u()}function s(){const{onClose:u}=e;u&&u(),a()}function l(){const{onAfterLeave:u,onInternalAfterLeave:d,onAfterHide:f,internalKey:p}=e;u&&u(),d&&d(p),f&&f()}function c(){a()}return{show:r,hide:a,handleClose:s,handleAfterLeave:l,handleMouseleave:i,handleMouseenter:o,deactivate:c}},render(){return k(Og,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{default:()=>[this.show?k(bV,{content:this.content,type:this.type,icon:this.icon,showIcon:this.showIcon,closable:this.closable,onClose:this.handleClose,onMouseenter:this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.keepAliveOnHover?this.handleMouseleave:void 0}):null]})}}),CV=Object.assign(Object.assign({},ze.props),{to:[String,Object],duration:{type:Number,default:3e3},keepAliveOnHover:Boolean,max:Number,placement:{type:String,default:"top"},closable:Boolean,containerClass:String,containerStyle:[String,Object]}),wV=me({name:"MessageProvider",props:CV,setup(e){const{mergedClsPrefixRef:t}=ht(e),r=z([]),n=z({}),o={create(l,c){return i(l,Object.assign({type:"default"},c))},info(l,c){return i(l,Object.assign(Object.assign({},c),{type:"info"}))},success(l,c){return i(l,Object.assign(Object.assign({},c),{type:"success"}))},warning(l,c){return i(l,Object.assign(Object.assign({},c),{type:"warning"}))},error(l,c){return i(l,Object.assign(Object.assign({},c),{type:"error"}))},loading(l,c){return i(l,Object.assign(Object.assign({},c),{type:"loading"}))},destroyAll:s};dt(fE,{props:e,mergedClsPrefixRef:t}),dt(dE,o);function i(l,c){const u=Hi(),d=Cn(Object.assign(Object.assign({},c),{content:l,key:u,destroy:()=>{var p;(p=n.value[u])===null||p===void 0||p.hide()}})),{max:f}=e;return f&&r.value.length>=f&&r.value.shift(),r.value.push(d),d}function a(l){r.value.splice(r.value.findIndex(c=>c.key===l),1),delete n.value[l]}function s(){Object.values(n.value).forEach(l=>{l.hide()})}return Object.assign({mergedClsPrefix:t,messageRefs:n,messageList:r,handleAfterLeave:a},o)},render(){var e,t,r;return k(st,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.messageList.length?k(vd,{to:(r=this.to)!==null&&r!==void 0?r:"body"},k("div",{class:[`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`,this.containerClass],key:"message-container",style:this.containerStyle},this.messageList.map(n=>k(yV,Object.assign({ref:o=>{o&&(this.messageRefs[n.key]=o)},internalKey:n.key,onInternalAfterLeave:this.handleAfterLeave},yd(n,["destroy"],void 0),{duration:n.duration===void 0?this.duration:n.duration,keepAliveOnHover:n.keepAliveOnHover===void 0?this.keepAliveOnHover:n.keepAliveOnHover,closable:n.closable===void 0?this.closable:n.closable}))))):null)}});function Sn(){const e=Me(dE,null);return e===null&&ms("use-message","No outer <n-message-provider /> founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A."),e}const zd="n-notification-provider",SV=me({name:"NotificationContainer",props:{scrollable:{type:Boolean,required:!0},placement:{type:String,required:!0}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t,wipTransitionCountRef:r}=Me(zd),n=z(null);return $r(()=>{var o,i;r.value>0?(o=n==null?void 0:n.value)===null||o===void 0||o.classList.add("transitioning"):(i=n==null?void 0:n.value)===null||i===void 0||i.classList.remove("transitioning")}),{selfRef:n,mergedTheme:e,mergedClsPrefix:t,transitioning:r}},render(){const{$slots:e,scrollable:t,mergedClsPrefix:r,mergedTheme:n,placement:o}=this;return k("div",{ref:"selfRef",class:[`${r}-notification-container`,t&&`${r}-notification-container--scrollable`,`${r}-notification-container--${o}`]},t?k(nc,{theme:n.peers.Scrollbar,themeOverrides:n.peerOverrides.Scrollbar,contentStyle:{overflow:"hidden"}},e):e)}}),_V={info:()=>k(Xa,null),success:()=>k(tc,null),warning:()=>k(rc,null),error:()=>k(ec,null),default:()=>null},Kg={closable:{type:Boolean,default:!0},type:{type:String,default:"default"},avatar:Function,title:[String,Function],description:[String,Function],content:[String,Function],meta:[String,Function],action:[String,Function],onClose:{type:Function,required:!0},keepAliveOnHover:Boolean,onMouseenter:Function,onMouseleave:Function},EV=Ga(Kg),TV=me({name:"Notification",props:Kg,setup(e){const{mergedClsPrefixRef:t,mergedThemeRef:r,props:n}=Me(zd),{inlineThemeDisabled:o,mergedRtlRef:i}=ht(),a=an("Notification",i,t),s=R(()=>{const{type:c}=e,{self:{color:u,textColor:d,closeIconColor:f,closeIconColorHover:p,closeIconColorPressed:h,headerTextColor:g,descriptionTextColor:v,actionTextColor:m,borderRadius:b,headerFontWeight:x,boxShadow:y,lineHeight:w,fontSize:C,closeMargin:S,closeSize:T,width:P,padding:A,closeIconSize:I,closeBorderRadius:B,closeColorHover:D,closeColorPressed:U,titleFontSize:F,metaFontSize:j,descriptionFontSize:K,[ye("iconColor",c)]:ae},common:{cubicBezierEaseOut:we,cubicBezierEaseIn:Ce,cubicBezierEaseInOut:X}}=r.value,{left:re,right:le,top:ne,bottom:$e}=Yn(A);return{"--n-color":u,"--n-font-size":C,"--n-text-color":d,"--n-description-text-color":v,"--n-action-text-color":m,"--n-title-text-color":g,"--n-title-font-weight":x,"--n-bezier":X,"--n-bezier-ease-out":we,"--n-bezier-ease-in":Ce,"--n-border-radius":b,"--n-box-shadow":y,"--n-close-border-radius":B,"--n-close-color-hover":D,"--n-close-color-pressed":U,"--n-close-icon-color":f,"--n-close-icon-color-hover":p,"--n-close-icon-color-pressed":h,"--n-line-height":w,"--n-icon-color":ae,"--n-close-margin":S,"--n-close-size":T,"--n-close-icon-size":I,"--n-width":P,"--n-padding-left":re,"--n-padding-right":le,"--n-padding-top":ne,"--n-padding-bottom":$e,"--n-title-font-size":F,"--n-meta-font-size":j,"--n-description-font-size":K}}),l=o?tr("notification",R(()=>e.type[0]),s,n):void 0;return{mergedClsPrefix:t,showAvatar:R(()=>e.avatar||e.type!=="default"),handleCloseClick(){e.onClose()},rtlEnabled:a,cssVars:o?void 0:s,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),k("div",{class:[`${t}-notification-wrapper`,this.themeClass],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:this.cssVars},k("div",{class:[`${t}-notification`,this.rtlEnabled&&`${t}-notification--rtl`,this.themeClass,{[`${t}-notification--closable`]:this.closable,[`${t}-notification--show-avatar`]:this.showAvatar}],style:this.cssVars},this.showAvatar?k("div",{class:`${t}-notification__avatar`},this.avatar?Yr(this.avatar):this.type!=="default"?k(or,{clsPrefix:t},{default:()=>_V[this.type]()}):null):null,this.closable?k(ta,{clsPrefix:t,class:`${t}-notification__close`,onClick:this.handleCloseClick}):null,k("div",{ref:"bodyRef",class:`${t}-notification-main`},this.title?k("div",{class:`${t}-notification-main__header`},Yr(this.title)):null,this.description?k("div",{class:`${t}-notification-main__description`},Yr(this.description)):null,this.content?k("pre",{class:`${t}-notification-main__content`},Yr(this.content)):null,this.meta||this.action?k("div",{class:`${t}-notification-main-footer`},this.meta?k("div",{class:`${t}-notification-main-footer__meta`},Yr(this.meta)):null,this.action?k("div",{class:`${t}-notification-main-footer__action`},Yr(this.action)):null):null)))}}),kV=Object.assign(Object.assign({},Kg),{duration:Number,onClose:Function,onLeave:Function,onAfterEnter:Function,onAfterLeave:Function,onHide:Function,onAfterShow:Function,onAfterHide:Function}),AV=me({name:"NotificationEnvironment",props:Object.assign(Object.assign({},kV),{internalKey:{type:String,required:!0},onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const{wipTransitionCountRef:t}=Me(zd),r=z(!0);let n=null;function o(){r.value=!1,n&&window.clearTimeout(n)}function i(h){t.value++,zt(()=>{h.style.height=`${h.offsetHeight}px`,h.style.maxHeight="0",h.style.transition="none",h.offsetHeight,h.style.transition="",h.style.maxHeight=h.style.height})}function a(h){t.value--,h.style.height="",h.style.maxHeight="";const{onAfterEnter:g,onAfterShow:v}=e;g&&g(),v&&v()}function s(h){t.value++,h.style.maxHeight=`${h.offsetHeight}px`,h.style.height=`${h.offsetHeight}px`,h.offsetHeight}function l(h){const{onHide:g}=e;g&&g(),h.style.maxHeight="0",h.offsetHeight}function c(){t.value--;const{onAfterLeave:h,onInternalAfterLeave:g,onAfterHide:v,internalKey:m}=e;h&&h(),g(m),v&&v()}function u(){const{duration:h}=e;h&&(n=window.setTimeout(o,h))}function d(h){h.currentTarget===h.target&&n!==null&&(window.clearTimeout(n),n=null)}function f(h){h.currentTarget===h.target&&u()}function p(){const{onClose:h}=e;h?Promise.resolve(h()).then(g=>{g!==!1&&o()}):o()}return St(()=>{e.duration&&(n=window.setTimeout(o,e.duration))}),{show:r,hide:o,handleClose:p,handleAfterLeave:c,handleLeave:l,handleBeforeLeave:s,handleAfterEnter:a,handleBeforeEnter:i,handleMouseenter:d,handleMouseleave:f}},render(){return k(Fr,{name:"notification-transition",appear:!0,onBeforeEnter:this.handleBeforeEnter,onAfterEnter:this.handleAfterEnter,onBeforeLeave:this.handleBeforeLeave,onLeave:this.handleLeave,onAfterLeave:this.handleAfterLeave},{default:()=>this.show?k(TV,Object.assign({},qa(this.$props,EV),{onClose:this.handleClose,onMouseenter:this.duration&&this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.duration&&this.keepAliveOnHover?this.handleMouseleave:void 0})):null})}}),PV=q([N("notification-container",`
|
||
z-index: 4000;
|
||
position: fixed;
|
||
overflow: visible;
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: flex-end;
|
||
`,[q(">",[N("scrollbar",`
|
||
width: initial;
|
||
overflow: visible;
|
||
height: -moz-fit-content !important;
|
||
height: fit-content !important;
|
||
max-height: 100vh !important;
|
||
`,[q(">",[N("scrollbar-container",`
|
||
height: -moz-fit-content !important;
|
||
height: fit-content !important;
|
||
max-height: 100vh !important;
|
||
`,[N("scrollbar-content",`
|
||
padding-top: 12px;
|
||
padding-bottom: 33px;
|
||
`)])])])]),Q("top, top-right, top-left",`
|
||
top: 12px;
|
||
`,[q("&.transitioning >",[N("scrollbar",[q(">",[N("scrollbar-container",`
|
||
min-height: 100vh !important;
|
||
`)])])])]),Q("bottom, bottom-right, bottom-left",`
|
||
bottom: 12px;
|
||
`,[q(">",[N("scrollbar",[q(">",[N("scrollbar-container",[N("scrollbar-content",`
|
||
padding-bottom: 12px;
|
||
`)])])])]),N("notification-wrapper",`
|
||
display: flex;
|
||
align-items: flex-end;
|
||
margin-bottom: 0;
|
||
margin-top: 12px;
|
||
`)]),Q("top, bottom",`
|
||
left: 50%;
|
||
transform: translateX(-50%);
|
||
`,[N("notification-wrapper",[q("&.notification-transition-enter-from, &.notification-transition-leave-to",`
|
||
transform: scale(0.85);
|
||
`),q("&.notification-transition-leave-from, &.notification-transition-enter-to",`
|
||
transform: scale(1);
|
||
`)])]),Q("top",[N("notification-wrapper",`
|
||
transform-origin: top center;
|
||
`)]),Q("bottom",[N("notification-wrapper",`
|
||
transform-origin: bottom center;
|
||
`)]),Q("top-right, bottom-right",[N("notification",`
|
||
margin-left: 28px;
|
||
margin-right: 16px;
|
||
`)]),Q("top-left, bottom-left",[N("notification",`
|
||
margin-left: 16px;
|
||
margin-right: 28px;
|
||
`)]),Q("top-right",`
|
||
right: 0;
|
||
`,[Hc("top-right")]),Q("top-left",`
|
||
left: 0;
|
||
`,[Hc("top-left")]),Q("bottom-right",`
|
||
right: 0;
|
||
`,[Hc("bottom-right")]),Q("bottom-left",`
|
||
left: 0;
|
||
`,[Hc("bottom-left")]),Q("scrollable",[Q("top-right",`
|
||
top: 0;
|
||
`),Q("top-left",`
|
||
top: 0;
|
||
`),Q("bottom-right",`
|
||
bottom: 0;
|
||
`),Q("bottom-left",`
|
||
bottom: 0;
|
||
`)]),N("notification-wrapper",`
|
||
margin-bottom: 12px;
|
||
`,[q("&.notification-transition-enter-from, &.notification-transition-leave-to",`
|
||
opacity: 0;
|
||
margin-top: 0 !important;
|
||
margin-bottom: 0 !important;
|
||
`),q("&.notification-transition-leave-from, &.notification-transition-enter-to",`
|
||
opacity: 1;
|
||
`),q("&.notification-transition-leave-active",`
|
||
transition:
|
||
background-color .3s var(--n-bezier),
|
||
color .3s var(--n-bezier),
|
||
opacity .3s var(--n-bezier),
|
||
transform .3s var(--n-bezier-ease-in),
|
||
max-height .3s var(--n-bezier),
|
||
margin-top .3s linear,
|
||
margin-bottom .3s linear,
|
||
box-shadow .3s var(--n-bezier);
|
||
`),q("&.notification-transition-enter-active",`
|
||
transition:
|
||
background-color .3s var(--n-bezier),
|
||
color .3s var(--n-bezier),
|
||
opacity .3s var(--n-bezier),
|
||
transform .3s var(--n-bezier-ease-out),
|
||
max-height .3s var(--n-bezier),
|
||
margin-top .3s linear,
|
||
margin-bottom .3s linear,
|
||
box-shadow .3s var(--n-bezier);
|
||
`)]),N("notification",`
|
||
background-color: var(--n-color);
|
||
color: var(--n-text-color);
|
||
transition:
|
||
background-color .3s var(--n-bezier),
|
||
color .3s var(--n-bezier),
|
||
opacity .3s var(--n-bezier),
|
||
box-shadow .3s var(--n-bezier);
|
||
font-family: inherit;
|
||
font-size: var(--n-font-size);
|
||
font-weight: 400;
|
||
position: relative;
|
||
display: flex;
|
||
overflow: hidden;
|
||
flex-shrink: 0;
|
||
padding-left: var(--n-padding-left);
|
||
padding-right: var(--n-padding-right);
|
||
width: var(--n-width);
|
||
max-width: calc(100vw - 16px - 16px);
|
||
border-radius: var(--n-border-radius);
|
||
box-shadow: var(--n-box-shadow);
|
||
box-sizing: border-box;
|
||
opacity: 1;
|
||
`,[Z("avatar",[N("icon",`
|
||
color: var(--n-icon-color);
|
||
`),N("base-icon",`
|
||
color: var(--n-icon-color);
|
||
`)]),Q("show-avatar",[N("notification-main",`
|
||
margin-left: 40px;
|
||
width: calc(100% - 40px);
|
||
`)]),Q("closable",[N("notification-main",[q("> *:first-child",`
|
||
padding-right: 20px;
|
||
`)]),Z("close",`
|
||
position: absolute;
|
||
top: 0;
|
||
right: 0;
|
||
margin: var(--n-close-margin);
|
||
transition:
|
||
background-color .3s var(--n-bezier),
|
||
color .3s var(--n-bezier);
|
||
`)]),Z("avatar",`
|
||
position: absolute;
|
||
top: var(--n-padding-top);
|
||
left: var(--n-padding-left);
|
||
width: 28px;
|
||
height: 28px;
|
||
font-size: 28px;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
`,[N("icon","transition: color .3s var(--n-bezier);")]),N("notification-main",`
|
||
padding-top: var(--n-padding-top);
|
||
padding-bottom: var(--n-padding-bottom);
|
||
box-sizing: border-box;
|
||
display: flex;
|
||
flex-direction: column;
|
||
margin-left: 8px;
|
||
width: calc(100% - 8px);
|
||
`,[N("notification-main-footer",`
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
margin-top: 12px;
|
||
`,[Z("meta",`
|
||
font-size: var(--n-meta-font-size);
|
||
transition: color .3s var(--n-bezier-ease-out);
|
||
color: var(--n-description-text-color);
|
||
`),Z("action",`
|
||
cursor: pointer;
|
||
transition: color .3s var(--n-bezier-ease-out);
|
||
color: var(--n-action-text-color);
|
||
`)]),Z("header",`
|
||
font-weight: var(--n-title-font-weight);
|
||
font-size: var(--n-title-font-size);
|
||
transition: color .3s var(--n-bezier-ease-out);
|
||
color: var(--n-title-text-color);
|
||
`),Z("description",`
|
||
margin-top: 8px;
|
||
font-size: var(--n-description-font-size);
|
||
white-space: pre-wrap;
|
||
word-wrap: break-word;
|
||
transition: color .3s var(--n-bezier-ease-out);
|
||
color: var(--n-description-text-color);
|
||
`),Z("content",`
|
||
line-height: var(--n-line-height);
|
||
margin: 12px 0 0 0;
|
||
font-family: inherit;
|
||
white-space: pre-wrap;
|
||
word-wrap: break-word;
|
||
transition: color .3s var(--n-bezier-ease-out);
|
||
color: var(--n-text-color);
|
||
`,[q("&:first-child","margin: 0;")])])])])]);function Hc(e){const r=e.split("-")[1]==="left"?"calc(-100%)":"calc(100%)",n="0";return N("notification-wrapper",[q("&.notification-transition-enter-from, &.notification-transition-leave-to",`
|
||
transform: translate(${r}, 0);
|
||
`),q("&.notification-transition-leave-from, &.notification-transition-enter-to",`
|
||
transform: translate(${n}, 0);
|
||
`)])}const hE="n-notification-api",$V=Object.assign(Object.assign({},ze.props),{containerClass:String,containerStyle:[String,Object],to:[String,Object],scrollable:{type:Boolean,default:!0},max:Number,placement:{type:String,default:"top-right"},keepAliveOnHover:Boolean}),IV=me({name:"NotificationProvider",props:$V,setup(e){const{mergedClsPrefixRef:t}=ht(e),r=z([]),n={},o=new Set;function i(p){const h=Hi(),g=()=>{o.add(h),n[h]&&n[h].hide()},v=Cn(Object.assign(Object.assign({},p),{key:h,destroy:g,hide:g,deactivate:g})),{max:m}=e;if(m&&r.value.length-o.size>=m){let b=!1,x=0;for(const y of r.value){if(!o.has(y.key)){n[y.key]&&(y.destroy(),b=!0);break}x++}b||r.value.splice(x,1)}return r.value.push(v),v}const a=["info","success","warning","error"].map(p=>h=>i(Object.assign(Object.assign({},h),{type:p})));function s(p){o.delete(p),r.value.splice(r.value.findIndex(h=>h.key===p),1)}const l=ze("Notification","-notification",PV,w4,e,t),c={create:i,info:a[0],success:a[1],warning:a[2],error:a[3],open:d,destroyAll:f},u=z(0);dt(hE,c),dt(zd,{props:e,mergedClsPrefixRef:t,mergedThemeRef:l,wipTransitionCountRef:u});function d(p){return i(p)}function f(){Object.values(r.value).forEach(p=>{p.hide()})}return Object.assign({mergedClsPrefix:t,notificationList:r,notificationRefs:n,handleAfterLeave:s},c)},render(){var e,t,r;const{placement:n}=this;return k(st,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.notificationList.length?k(vd,{to:(r=this.to)!==null&&r!==void 0?r:"body"},k(SV,{class:this.containerClass,style:this.containerStyle,scrollable:this.scrollable&&n!=="top"&&n!=="bottom",placement:n},{default:()=>this.notificationList.map(o=>k(AV,Object.assign({ref:i=>{const a=o.key;i===null?delete this.notificationRefs[a]:this.notificationRefs[a]=i}},yd(o,["destroy","hide","deactivate"]),{internalKey:o.key,onInternalAfterLeave:this.handleAfterLeave,keepAliveOnHover:o.keepAliveOnHover===void 0?this.keepAliveOnHover:o.keepAliveOnHover})))})):null)}});function BV(){const e=Me(hE,null);return e===null&&ms("use-notification","No outer `n-notification-provider` found."),e}const DV={name:"QrCode",common:Ae,self:e=>({borderRadius:e.borderRadius})},OV=DV,RV=e=>({borderRadius:e.borderRadius}),LV={name:"QrCode",common:ke,self:RV},FV=LV,MV=k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},k("circle",{fill:"#FFCB4C",cx:"18",cy:"17.018",r:"17"}),k("path",{fill:"#65471B",d:"M14.524 21.036c-.145-.116-.258-.274-.312-.464-.134-.46.13-.918.59-1.021 4.528-1.021 7.577 1.363 7.706 1.465.384.306.459.845.173 1.205-.286.358-.828.401-1.211.097-.11-.084-2.523-1.923-6.182-1.098-.274.061-.554-.016-.764-.184z"}),k("ellipse",{fill:"#65471B",cx:"13.119",cy:"11.174",rx:"2.125",ry:"2.656"}),k("ellipse",{fill:"#65471B",cx:"24.375",cy:"12.236",rx:"2.125",ry:"2.656"}),k("path",{fill:"#F19020",d:"M17.276 35.149s1.265-.411 1.429-1.352c.173-.972-.624-1.167-.624-1.167s1.041-.208 1.172-1.376c.123-1.101-.861-1.363-.861-1.363s.97-.4 1.016-1.539c.038-.959-.995-1.428-.995-1.428s5.038-1.221 5.556-1.341c.516-.12 1.32-.615 1.069-1.694-.249-1.08-1.204-1.118-1.697-1.003-.494.115-6.744 1.566-8.9 2.068l-1.439.334c-.54.127-.785-.11-.404-.512.508-.536.833-1.129.946-2.113.119-1.035-.232-2.313-.433-2.809-.374-.921-1.005-1.649-1.734-1.899-1.137-.39-1.945.321-1.542 1.561.604 1.854.208 3.375-.833 4.293-2.449 2.157-3.588 3.695-2.83 6.973.828 3.575 4.377 5.876 7.952 5.048l3.152-.681z"}),k("path",{fill:"#65471B",d:"M9.296 6.351c-.164-.088-.303-.224-.391-.399-.216-.428-.04-.927.393-1.112 4.266-1.831 7.699-.043 7.843.034.433.231.608.747.391 1.154-.216.405-.74.546-1.173.318-.123-.063-2.832-1.432-6.278.047-.257.109-.547.085-.785-.042zm12.135 3.75c-.156-.098-.286-.243-.362-.424-.187-.442.023-.927.468-1.084 4.381-1.536 7.685.48 7.823.567.415.26.555.787.312 1.178-.242.39-.776.495-1.191.238-.12-.072-2.727-1.621-6.267-.379-.266.091-.553.046-.783-.096z"})),zV=k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},k("path",{fill:"#FFCC4D",d:"M36 18c0 9.941-8.059 18-18 18-9.94 0-18-8.059-18-18C0 8.06 8.06 0 18 0c9.941 0 18 8.06 18 18"}),k("ellipse",{fill:"#664500",cx:"18",cy:"27",rx:"5",ry:"6"}),k("path",{fill:"#664500",d:"M5.999 11c-.208 0-.419-.065-.599-.2-.442-.331-.531-.958-.2-1.4C8.462 5.05 12.816 5 13 5c.552 0 1 .448 1 1 0 .551-.445.998-.996 1-.155.002-3.568.086-6.204 3.6-.196.262-.497.4-.801.4zm24.002 0c-.305 0-.604-.138-.801-.4-2.64-3.521-6.061-3.598-6.206-3.6-.55-.006-.994-.456-.991-1.005C22.006 5.444 22.45 5 23 5c.184 0 4.537.05 7.8 4.4.332.442.242 1.069-.2 1.4-.18.135-.39.2-.599.2zm-16.087 4.5l1.793-1.793c.391-.391.391-1.023 0-1.414s-1.023-.391-1.414 0L12.5 14.086l-1.793-1.793c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l1.793 1.793-1.793 1.793c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293s.512-.098.707-.293l1.793-1.793 1.793 1.793c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023 0-1.414L13.914 15.5zm11 0l1.793-1.793c.391-.391.391-1.023 0-1.414s-1.023-.391-1.414 0L23.5 14.086l-1.793-1.793c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l1.793 1.793-1.793 1.793c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293s.512-.098.707-.293l1.793-1.793 1.793 1.793c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023 0-1.414L24.914 15.5z"})),NV=k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},k("ellipse",{fill:"#292F33",cx:"18",cy:"26",rx:"18",ry:"10"}),k("ellipse",{fill:"#66757F",cx:"18",cy:"24",rx:"18",ry:"10"}),k("path",{fill:"#E1E8ED",d:"M18 31C3.042 31 1 16 1 12h34c0 2-1.958 19-17 19z"}),k("path",{fill:"#77B255",d:"M35 12.056c0 5.216-7.611 9.444-17 9.444S1 17.271 1 12.056C1 6.84 8.611 3.611 18 3.611s17 3.229 17 8.445z"}),k("ellipse",{fill:"#A6D388",cx:"18",cy:"13",rx:"15",ry:"7"}),k("path",{d:"M21 17c-.256 0-.512-.098-.707-.293-2.337-2.337-2.376-4.885-.125-8.262.739-1.109.9-2.246.478-3.377-.461-1.236-1.438-1.996-1.731-2.077-.553 0-.958-.443-.958-.996 0-.552.491-.995 1.043-.995.997 0 2.395 1.153 3.183 2.625 1.034 1.933.91 4.039-.351 5.929-1.961 2.942-1.531 4.332-.125 5.738.391.391.391 1.023 0 1.414-.195.196-.451.294-.707.294zm-6-2c-.256 0-.512-.098-.707-.293-2.337-2.337-2.376-4.885-.125-8.262.727-1.091.893-2.083.494-2.947-.444-.961-1.431-1.469-1.684-1.499-.552 0-.989-.447-.989-1 0-.552.458-1 1.011-1 .997 0 2.585.974 3.36 2.423.481.899 1.052 2.761-.528 5.131-1.961 2.942-1.531 4.332-.125 5.738.391.391.391 1.023 0 1.414-.195.197-.451.295-.707.295z",fill:"#5C913B"})),HV=k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},k("path",{fill:"#EF9645",d:"M15.5 2.965c1.381 0 2.5 1.119 2.5 2.5v.005L20.5.465c1.381 0 2.5 1.119 2.5 2.5V4.25l2.5-1.535c1.381 0 2.5 1.119 2.5 2.5V8.75L29 18H15.458L15.5 2.965z"}),k("path",{fill:"#FFDC5D",d:"M4.625 16.219c1.381-.611 3.354.208 4.75 2.188.917 1.3 1.187 3.151 2.391 3.344.46.073 1.234-.313 1.234-1.397V4.5s0-2 2-2 2 2 2 2v11.633c0-.029 1-.064 1-.082V2s0-2 2-2 2 2 2 2v14.053c0 .017 1 .041 1 .069V4.25s0-2 2-2 2 2 2 2v12.638c0 .118 1 .251 1 .398V8.75s0-2 2-2 2 2 2 2V24c0 6.627-5.373 12-12 12-4.775 0-8.06-2.598-9.896-5.292C8.547 28.423 8.096 26.051 8 25.334c0 0-.123-1.479-1.156-2.865-1.469-1.969-2.5-3.156-3.125-3.866-.317-.359-.625-1.707.906-2.384z"})),jV=N("result",`
|
||
color: var(--n-text-color);
|
||
line-height: var(--n-line-height);
|
||
font-size: var(--n-font-size);
|
||
transition:
|
||
color .3s var(--n-bezier);
|
||
`,[N("result-icon",`
|
||
display: flex;
|
||
justify-content: center;
|
||
transition: color .3s var(--n-bezier);
|
||
`,[Z("status-image",`
|
||
font-size: var(--n-icon-size);
|
||
width: 1em;
|
||
height: 1em;
|
||
`),N("base-icon",`
|
||
color: var(--n-icon-color);
|
||
font-size: var(--n-icon-size);
|
||
`)]),N("result-content",{marginTop:"24px"}),N("result-footer",`
|
||
margin-top: 24px;
|
||
text-align: center;
|
||
`),N("result-header",[Z("title",`
|
||
margin-top: 16px;
|
||
font-weight: var(--n-title-font-weight);
|
||
transition: color .3s var(--n-bezier);
|
||
text-align: center;
|
||
color: var(--n-title-text-color);
|
||
font-size: var(--n-title-font-size);
|
||
`),Z("description",`
|
||
margin-top: 4px;
|
||
text-align: center;
|
||
font-size: var(--n-font-size);
|
||
`)])]),WV={403:()=>HV,404:()=>MV,418:()=>NV,500:()=>zV,info:()=>k(Xa,null),success:()=>k(tc,null),warning:()=>k(rc,null),error:()=>k(ec,null)},UV=Object.assign(Object.assign({},ze.props),{size:{type:String,default:"medium"},status:{type:String,default:"info"},title:String,description:String}),VV=me({name:"Result",props:UV,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=ht(e),n=ze("Result","-result",jV,R4,e,t),o=R(()=>{const{size:a,status:s}=e,{common:{cubicBezierEaseInOut:l},self:{textColor:c,lineHeight:u,titleTextColor:d,titleFontWeight:f,[ye("iconColor",s)]:p,[ye("fontSize",a)]:h,[ye("titleFontSize",a)]:g,[ye("iconSize",a)]:v}}=n.value;return{"--n-bezier":l,"--n-font-size":h,"--n-icon-size":v,"--n-line-height":u,"--n-text-color":c,"--n-title-font-size":g,"--n-title-font-weight":f,"--n-title-text-color":d,"--n-icon-color":p||""}}),i=r?tr("result",R(()=>{const{size:a,status:s}=e;let l="";return a&&(l+=a[0]),s&&(l+=s[0]),l}),o,e):void 0;return{mergedClsPrefix:t,cssVars:r?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{status:t,$slots:r,mergedClsPrefix:n,onRender:o}=this;return o==null||o(),k("div",{class:[`${n}-result`,this.themeClass],style:this.cssVars},k("div",{class:`${n}-result-icon`},((e=r.icon)===null||e===void 0?void 0:e.call(r))||k(or,{clsPrefix:n},{default:()=>WV[t]()})),k("div",{class:`${n}-result-header`},this.title?k("div",{class:`${n}-result-header__title`},this.title):null,this.description?k("div",{class:`${n}-result-header__description`},this.description):null),r.default&&k("div",{class:`${n}-result-content`},r),r.footer&&k("div",{class:`${n}-result-footer`},r.footer()))}}),qV=Object.assign(Object.assign({},ze.props),{trigger:String,xScrollable:Boolean,onScroll:Function,size:Number}),GV=me({name:"Scrollbar",props:qV,setup(){const e=z(null);return Object.assign(Object.assign({},{scrollTo:(...r)=>{var n;(n=e.value)===null||n===void 0||n.scrollTo(r[0],r[1])},scrollBy:(...r)=>{var n;(n=e.value)===null||n===void 0||n.scrollBy(r[0],r[1])}}),{scrollbarInstRef:e})},render(){return k(nc,Object.assign({ref:"scrollbarInstRef"},this.$props),this.$slots)}}),YV=GV,KV={name:"Skeleton",common:Ae,self(e){const{heightSmall:t,heightMedium:r,heightLarge:n,borderRadius:o}=e;return{color:"rgba(255, 255, 255, 0.12)",colorEnd:"rgba(255, 255, 255, 0.18)",borderRadius:o,heightSmall:t,heightMedium:r,heightLarge:n}}},XV=e=>{const{heightSmall:t,heightMedium:r,heightLarge:n,borderRadius:o}=e;return{color:"#eee",colorEnd:"#ddd",borderRadius:o,heightSmall:t,heightMedium:r,heightLarge:n}},pE={name:"Skeleton",common:ke,self:XV},ZV=q([N("skeleton",`
|
||
height: 1em;
|
||
width: 100%;
|
||
transition:
|
||
--n-color-start .3s var(--n-bezier),
|
||
--n-color-end .3s var(--n-bezier),
|
||
background-color .3s var(--n-bezier);
|
||
animation: 2s skeleton-loading infinite cubic-bezier(0.36, 0, 0.64, 1);
|
||
background-color: var(--n-color-start);
|
||
`),q("@keyframes skeleton-loading",`
|
||
0% {
|
||
background: var(--n-color-start);
|
||
}
|
||
40% {
|
||
background: var(--n-color-end);
|
||
}
|
||
80% {
|
||
background: var(--n-color-start);
|
||
}
|
||
100% {
|
||
background: var(--n-color-start);
|
||
}
|
||
`)]),QV=Object.assign(Object.assign({},ze.props),{text:Boolean,round:Boolean,circle:Boolean,height:[String,Number],width:[String,Number],size:String,repeat:{type:Number,default:1},animated:{type:Boolean,default:!0},sharp:{type:Boolean,default:!0}}),Vi=me({name:"Skeleton",inheritAttrs:!1,props:QV,setup(e){QA();const{mergedClsPrefixRef:t}=ht(e),r=ze("Skeleton","-skeleton",ZV,pE,e,t);return{mergedClsPrefix:t,style:R(()=>{var n,o;const i=r.value,{common:{cubicBezierEaseInOut:a}}=i,s=i.self,{color:l,colorEnd:c,borderRadius:u}=s;let d;const{circle:f,sharp:p,round:h,width:g,height:v,size:m,text:b,animated:x}=e;m!==void 0&&(d=s[ye("height",m)]);const y=f?(n=g??v)!==null&&n!==void 0?n:d:g,w=(o=f?g??v:v)!==null&&o!==void 0?o:d;return{display:b?"inline-block":"",verticalAlign:b?"-0.125em":"",borderRadius:f?"50%":h?"4096px":p?"":u,width:typeof y=="number"?fo(y):y,height:typeof w=="number"?fo(w):w,animation:x?"":"none","--n-bezier":a,"--n-color-start":l,"--n-color-end":c}})}},render(){const{repeat:e,style:t,mergedClsPrefix:r,$attrs:n}=this,o=k("div",Dn({class:`${r}-skeleton`,style:t},n));return e>1?k(st,null,aA(e,null).map(i=>[o,`
|
||
`])):o}}),JV=q([q("@keyframes spin-rotate",`
|
||
from {
|
||
transform: rotate(0);
|
||
}
|
||
to {
|
||
transform: rotate(360deg);
|
||
}
|
||
`),N("spin-container",`
|
||
position: relative;
|
||
`,[N("spin-body",`
|
||
position: absolute;
|
||
top: 50%;
|
||
left: 50%;
|
||
transform: translateX(-50%) translateY(-50%);
|
||
`,[Za()])]),N("spin-body",`
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
flex-direction: column;
|
||
`),N("spin",`
|
||
display: inline-flex;
|
||
height: var(--n-size);
|
||
width: var(--n-size);
|
||
font-size: var(--n-size);
|
||
color: var(--n-color);
|
||
`,[Q("rotate",`
|
||
animation: spin-rotate 2s linear infinite;
|
||
`)]),N("spin-description",`
|
||
display: inline-block;
|
||
font-size: var(--n-font-size);
|
||
color: var(--n-text-color);
|
||
transition: color .3s var(--n-bezier);
|
||
margin-top: 8px;
|
||
`),N("spin-content",`
|
||
opacity: 1;
|
||
transition: opacity .3s var(--n-bezier);
|
||
pointer-events: all;
|
||
`,[Q("spinning",`
|
||
user-select: none;
|
||
-webkit-user-select: none;
|
||
pointer-events: none;
|
||
opacity: var(--n-opacity-spinning);
|
||
`)])]),eq={small:20,medium:18,large:16},tq=Object.assign(Object.assign({},ze.props),{contentClass:String,contentStyle:[Object,String],description:String,stroke:String,size:{type:[String,Number],default:"medium"},show:{type:Boolean,default:!0},strokeWidth:Number,rotate:{type:Boolean,default:!0},spinning:{type:Boolean,validator:()=>!0,default:void 0},delay:Number}),Nd=me({name:"Spin",props:tq,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=ht(e),n=ze("Spin","-spin",JV,M4,e,t),o=R(()=>{const{size:l}=e,{common:{cubicBezierEaseInOut:c},self:u}=n.value,{opacitySpinning:d,color:f,textColor:p}=u,h=typeof l=="number"?fo(l):u[ye("size",l)];return{"--n-bezier":c,"--n-opacity-spinning":d,"--n-size":h,"--n-color":f,"--n-text-color":p}}),i=r?tr("spin",R(()=>{const{size:l}=e;return typeof l=="number"?String(l):l[0]}),o,e):void 0,a=Fu(e,["spinning","show"]),s=z(!1);return $r(l=>{let c;if(a.value){const{delay:u}=e;if(u){c=window.setTimeout(()=>{s.value=!0},u),l(()=>{clearTimeout(c)});return}}s.value=a.value}),{mergedClsPrefix:t,active:s,mergedStrokeWidth:R(()=>{const{strokeWidth:l}=e;if(l!==void 0)return l;const{size:c}=e;return eq[typeof c=="number"?"medium":c]}),cssVars:r?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e,t;const{$slots:r,mergedClsPrefix:n,description:o}=this,i=r.icon&&this.rotate,a=(o||r.description)&&k("div",{class:`${n}-spin-description`},o||((e=r.description)===null||e===void 0?void 0:e.call(r))),s=r.icon?k("div",{class:[`${n}-spin-body`,this.themeClass]},k("div",{class:[`${n}-spin`,i&&`${n}-spin--rotate`],style:r.default?"":this.cssVars},r.icon()),a):k("div",{class:[`${n}-spin-body`,this.themeClass]},k(Dd,{clsPrefix:n,style:r.default?"":this.cssVars,stroke:this.stroke,"stroke-width":this.mergedStrokeWidth,class:`${n}-spin`}),a);return(t=this.onRender)===null||t===void 0||t.call(this),r.default?k("div",{class:[`${n}-spin-container`,this.themeClass],style:this.cssVars},k("div",{class:[`${n}-spin-content`,this.active&&`${n}-spin-content--spinning`,this.contentClass],style:this.contentStyle},r),k(Fr,{name:"fade-in-transition"},{default:()=>this.active?s:null})):s}}),rq={name:"Split",common:Ae},nq=rq,oq=e=>{const{primaryColorHover:t,borderColor:r}=e;return{resizableTriggerColorHover:t,resizableTriggerColor:r}},iq={name:"Split",common:ke,self:oq},aq=iq,Xg="n-tabs",gE={tab:[String,Number,Object,Function],name:{type:[String,Number],required:!0},disabled:Boolean,displayDirective:{type:String,default:"if"},closable:{type:Boolean,default:void 0},tabProps:Object,label:[String,Number,Object,Function]},S1=me({__TAB_PANE__:!0,name:"TabPane",alias:["TabPanel"],props:gE,setup(e){const t=Me(Xg,null);return t||ms("tab-pane","`n-tab-pane` must be placed inside `n-tabs`."),{style:t.paneStyleRef,class:t.paneClassRef,mergedClsPrefix:t.mergedClsPrefixRef}},render(){return k("div",{class:[`${this.mergedClsPrefix}-tab-pane`,this.class],style:this.style},this.$slots)}}),sq=Object.assign({internalLeftPadded:Boolean,internalAddable:Boolean,internalCreatedByPane:Boolean},yd(gE,["displayDirective"])),Vh=me({__TAB__:!0,inheritAttrs:!1,name:"Tab",props:sq,setup(e){const{mergedClsPrefixRef:t,valueRef:r,typeRef:n,closableRef:o,tabStyleRef:i,addTabStyleRef:a,tabClassRef:s,addTabClassRef:l,tabChangeIdRef:c,onBeforeLeaveRef:u,triggerRef:d,handleAdd:f,activateTab:p,handleClose:h}=Me(Xg);return{trigger:d,mergedClosable:R(()=>{if(e.internalAddable)return!1;const{closable:g}=e;return g===void 0?o.value:g}),style:i,addStyle:a,tabClass:s,addTabClass:l,clsPrefix:t,value:r,type:n,handleClose(g){g.stopPropagation(),!e.disabled&&h(e.name)},activateTab(){if(e.disabled)return;if(e.internalAddable){f();return}const{name:g}=e,v=++c.id;if(g!==r.value){const{value:m}=u;m?Promise.resolve(m(e.name,r.value)).then(b=>{b&&c.id===v&&p(g)}):p(g)}}}},render(){const{internalAddable:e,clsPrefix:t,name:r,disabled:n,label:o,tab:i,value:a,mergedClosable:s,trigger:l,$slots:{default:c}}=this,u=o??i;return k("div",{class:`${t}-tabs-tab-wrapper`},this.internalLeftPadded?k("div",{class:`${t}-tabs-tab-pad`}):null,k("div",Object.assign({key:r,"data-name":r,"data-disabled":n?!0:void 0},Dn({class:[`${t}-tabs-tab`,a===r&&`${t}-tabs-tab--active`,n&&`${t}-tabs-tab--disabled`,s&&`${t}-tabs-tab--closable`,e&&`${t}-tabs-tab--addable`,e?this.addTabClass:this.tabClass],onClick:l==="click"?this.activateTab:void 0,onMouseenter:l==="hover"?this.activateTab:void 0,style:e?this.addStyle:this.style},this.internalCreatedByPane?this.tabProps||{}:this.$attrs)),k("span",{class:`${t}-tabs-tab__label`},e?k(st,null,k("div",{class:`${t}-tabs-tab__height-placeholder`}," "),k(or,{clsPrefix:t},{default:()=>k(uM,null)})):c?c():typeof u=="object"?u:Yr(u??r)),s&&this.type==="card"?k(ta,{clsPrefix:t,class:`${t}-tabs-tab__close`,onClick:this.handleClose,disabled:n}):null))}}),lq=N("tabs",`
|
||
box-sizing: border-box;
|
||
width: 100%;
|
||
display: flex;
|
||
flex-direction: column;
|
||
transition:
|
||
background-color .3s var(--n-bezier),
|
||
border-color .3s var(--n-bezier);
|
||
`,[Q("segment-type",[N("tabs-rail",[q("&.transition-disabled",[N("tabs-capsule",`
|
||
transition: none;
|
||
`)])])]),Q("top",[N("tab-pane",`
|
||
padding: var(--n-pane-padding-top) var(--n-pane-padding-right) var(--n-pane-padding-bottom) var(--n-pane-padding-left);
|
||
`)]),Q("left",[N("tab-pane",`
|
||
padding: var(--n-pane-padding-right) var(--n-pane-padding-bottom) var(--n-pane-padding-left) var(--n-pane-padding-top);
|
||
`)]),Q("left, right",`
|
||
flex-direction: row;
|
||
`,[N("tabs-bar",`
|
||
width: 2px;
|
||
right: 0;
|
||
transition:
|
||
top .2s var(--n-bezier),
|
||
max-height .2s var(--n-bezier),
|
||
background-color .3s var(--n-bezier);
|
||
`),N("tabs-tab",`
|
||
padding: var(--n-tab-padding-vertical);
|
||
`)]),Q("right",`
|
||
flex-direction: row-reverse;
|
||
`,[N("tab-pane",`
|
||
padding: var(--n-pane-padding-left) var(--n-pane-padding-top) var(--n-pane-padding-right) var(--n-pane-padding-bottom);
|
||
`),N("tabs-bar",`
|
||
left: 0;
|
||
`)]),Q("bottom",`
|
||
flex-direction: column-reverse;
|
||
justify-content: flex-end;
|
||
`,[N("tab-pane",`
|
||
padding: var(--n-pane-padding-bottom) var(--n-pane-padding-right) var(--n-pane-padding-top) var(--n-pane-padding-left);
|
||
`),N("tabs-bar",`
|
||
top: 0;
|
||
`)]),N("tabs-rail",`
|
||
padding: 3px;
|
||
border-radius: var(--n-tab-border-radius);
|
||
width: 100%;
|
||
background-color: var(--n-color-segment);
|
||
transition: background-color .3s var(--n-bezier);
|
||
display: flex;
|
||
align-items: center;
|
||
`,[N("tabs-capsule",`
|
||
border-radius: var(--n-tab-border-radius);
|
||
position: absolute;
|
||
pointer-events: none;
|
||
background-color: var(--n-tab-color-segment);
|
||
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .08);
|
||
transition: transform 0.3s var(--n-bezier);
|
||
`),N("tabs-tab-wrapper",`
|
||
flex-basis: 0;
|
||
flex-grow: 1;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
`,[N("tabs-tab",`
|
||
overflow: hidden;
|
||
border-radius: var(--n-tab-border-radius);
|
||
width: 100%;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
`,[Q("active",`
|
||
font-weight: var(--n-font-weight-strong);
|
||
color: var(--n-tab-text-color-active);
|
||
`),q("&:hover",`
|
||
color: var(--n-tab-text-color-hover);
|
||
`)])])]),Q("flex",[N("tabs-nav",`
|
||
width: 100%;
|
||
position: relative;
|
||
`,[N("tabs-wrapper",`
|
||
width: 100%;
|
||
`,[N("tabs-tab",`
|
||
margin-right: 0;
|
||
`)])])]),N("tabs-nav",`
|
||
box-sizing: border-box;
|
||
line-height: 1.5;
|
||
display: flex;
|
||
transition: border-color .3s var(--n-bezier);
|
||
`,[Z("prefix, suffix",`
|
||
display: flex;
|
||
align-items: center;
|
||
`),Z("prefix","padding-right: 16px;"),Z("suffix","padding-left: 16px;")]),Q("top, bottom",[N("tabs-nav-scroll-wrapper",[q("&::before",`
|
||
top: 0;
|
||
bottom: 0;
|
||
left: 0;
|
||
width: 20px;
|
||
`),q("&::after",`
|
||
top: 0;
|
||
bottom: 0;
|
||
right: 0;
|
||
width: 20px;
|
||
`),Q("shadow-start",[q("&::before",`
|
||
box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, .12);
|
||
`)]),Q("shadow-end",[q("&::after",`
|
||
box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, .12);
|
||
`)])])]),Q("left, right",[N("tabs-nav-scroll-content",`
|
||
flex-direction: column;
|
||
`),N("tabs-nav-scroll-wrapper",[q("&::before",`
|
||
top: 0;
|
||
left: 0;
|
||
right: 0;
|
||
height: 20px;
|
||
`),q("&::after",`
|
||
bottom: 0;
|
||
left: 0;
|
||
right: 0;
|
||
height: 20px;
|
||
`),Q("shadow-start",[q("&::before",`
|
||
box-shadow: inset 0 10px 8px -8px rgba(0, 0, 0, .12);
|
||
`)]),Q("shadow-end",[q("&::after",`
|
||
box-shadow: inset 0 -10px 8px -8px rgba(0, 0, 0, .12);
|
||
`)])])]),N("tabs-nav-scroll-wrapper",`
|
||
flex: 1;
|
||
position: relative;
|
||
overflow: hidden;
|
||
`,[N("tabs-nav-y-scroll",`
|
||
height: 100%;
|
||
width: 100%;
|
||
overflow-y: auto;
|
||
scrollbar-width: none;
|
||
`,[q("&::-webkit-scrollbar",`
|
||
width: 0;
|
||
height: 0;
|
||
`)]),q("&::before, &::after",`
|
||
transition: box-shadow .3s var(--n-bezier);
|
||
pointer-events: none;
|
||
content: "";
|
||
position: absolute;
|
||
z-index: 1;
|
||
`)]),N("tabs-nav-scroll-content",`
|
||
display: flex;
|
||
position: relative;
|
||
min-width: 100%;
|
||
min-height: 100%;
|
||
width: fit-content;
|
||
box-sizing: border-box;
|
||
`),N("tabs-wrapper",`
|
||
display: inline-flex;
|
||
flex-wrap: nowrap;
|
||
position: relative;
|
||
`),N("tabs-tab-wrapper",`
|
||
display: flex;
|
||
flex-wrap: nowrap;
|
||
flex-shrink: 0;
|
||
flex-grow: 0;
|
||
`),N("tabs-tab",`
|
||
cursor: pointer;
|
||
white-space: nowrap;
|
||
flex-wrap: nowrap;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
color: var(--n-tab-text-color);
|
||
font-size: var(--n-tab-font-size);
|
||
background-clip: padding-box;
|
||
padding: var(--n-tab-padding);
|
||
transition:
|
||
box-shadow .3s var(--n-bezier),
|
||
color .3s var(--n-bezier),
|
||
background-color .3s var(--n-bezier),
|
||
border-color .3s var(--n-bezier);
|
||
`,[Q("disabled",{cursor:"not-allowed"}),Z("close",`
|
||
margin-left: 6px;
|
||
transition:
|
||
background-color .3s var(--n-bezier),
|
||
color .3s var(--n-bezier);
|
||
`),Z("label",`
|
||
display: flex;
|
||
align-items: center;
|
||
z-index: 1;
|
||
`)]),N("tabs-bar",`
|
||
position: absolute;
|
||
bottom: 0;
|
||
height: 2px;
|
||
border-radius: 1px;
|
||
background-color: var(--n-bar-color);
|
||
transition:
|
||
left .2s var(--n-bezier),
|
||
max-width .2s var(--n-bezier),
|
||
opacity .3s var(--n-bezier),
|
||
background-color .3s var(--n-bezier);
|
||
`,[q("&.transition-disabled",`
|
||
transition: none;
|
||
`),Q("disabled",`
|
||
background-color: var(--n-tab-text-color-disabled)
|
||
`)]),N("tabs-pane-wrapper",`
|
||
position: relative;
|
||
overflow: hidden;
|
||
transition: max-height .2s var(--n-bezier);
|
||
`),N("tab-pane",`
|
||
color: var(--n-pane-text-color);
|
||
width: 100%;
|
||
transition:
|
||
color .3s var(--n-bezier),
|
||
background-color .3s var(--n-bezier),
|
||
opacity .2s var(--n-bezier);
|
||
left: 0;
|
||
right: 0;
|
||
top: 0;
|
||
`,[q("&.next-transition-leave-active, &.prev-transition-leave-active, &.next-transition-enter-active, &.prev-transition-enter-active",`
|
||
transition:
|
||
color .3s var(--n-bezier),
|
||
background-color .3s var(--n-bezier),
|
||
transform .2s var(--n-bezier),
|
||
opacity .2s var(--n-bezier);
|
||
`),q("&.next-transition-leave-active, &.prev-transition-leave-active",`
|
||
position: absolute;
|
||
`),q("&.next-transition-enter-from, &.prev-transition-leave-to",`
|
||
transform: translateX(32px);
|
||
opacity: 0;
|
||
`),q("&.next-transition-leave-to, &.prev-transition-enter-from",`
|
||
transform: translateX(-32px);
|
||
opacity: 0;
|
||
`),q("&.next-transition-leave-from, &.next-transition-enter-to, &.prev-transition-leave-from, &.prev-transition-enter-to",`
|
||
transform: translateX(0);
|
||
opacity: 1;
|
||
`)]),N("tabs-tab-pad",`
|
||
box-sizing: border-box;
|
||
width: var(--n-tab-gap);
|
||
flex-grow: 0;
|
||
flex-shrink: 0;
|
||
`),Q("line-type, bar-type",[N("tabs-tab",`
|
||
font-weight: var(--n-tab-font-weight);
|
||
box-sizing: border-box;
|
||
vertical-align: bottom;
|
||
`,[q("&:hover",{color:"var(--n-tab-text-color-hover)"}),Q("active",`
|
||
color: var(--n-tab-text-color-active);
|
||
font-weight: var(--n-tab-font-weight-active);
|
||
`),Q("disabled",{color:"var(--n-tab-text-color-disabled)"})])]),N("tabs-nav",[Q("line-type",[Q("top",[Z("prefix, suffix",`
|
||
border-bottom: 1px solid var(--n-tab-border-color);
|
||
`),N("tabs-nav-scroll-content",`
|
||
border-bottom: 1px solid var(--n-tab-border-color);
|
||
`),N("tabs-bar",`
|
||
bottom: -1px;
|
||
`)]),Q("left",[Z("prefix, suffix",`
|
||
border-right: 1px solid var(--n-tab-border-color);
|
||
`),N("tabs-nav-scroll-content",`
|
||
border-right: 1px solid var(--n-tab-border-color);
|
||
`),N("tabs-bar",`
|
||
right: -1px;
|
||
`)]),Q("right",[Z("prefix, suffix",`
|
||
border-left: 1px solid var(--n-tab-border-color);
|
||
`),N("tabs-nav-scroll-content",`
|
||
border-left: 1px solid var(--n-tab-border-color);
|
||
`),N("tabs-bar",`
|
||
left: -1px;
|
||
`)]),Q("bottom",[Z("prefix, suffix",`
|
||
border-top: 1px solid var(--n-tab-border-color);
|
||
`),N("tabs-nav-scroll-content",`
|
||
border-top: 1px solid var(--n-tab-border-color);
|
||
`),N("tabs-bar",`
|
||
top: -1px;
|
||
`)]),Z("prefix, suffix",`
|
||
transition: border-color .3s var(--n-bezier);
|
||
`),N("tabs-nav-scroll-content",`
|
||
transition: border-color .3s var(--n-bezier);
|
||
`),N("tabs-bar",`
|
||
border-radius: 0;
|
||
`)]),Q("card-type",[Z("prefix, suffix",`
|
||
transition: border-color .3s var(--n-bezier);
|
||
border-bottom: 1px solid var(--n-tab-border-color);
|
||
`),N("tabs-pad",`
|
||
flex-grow: 1;
|
||
transition: border-color .3s var(--n-bezier);
|
||
`),N("tabs-tab-pad",`
|
||
transition: border-color .3s var(--n-bezier);
|
||
`),N("tabs-tab",`
|
||
font-weight: var(--n-tab-font-weight);
|
||
border: 1px solid var(--n-tab-border-color);
|
||
background-color: var(--n-tab-color);
|
||
box-sizing: border-box;
|
||
position: relative;
|
||
vertical-align: bottom;
|
||
display: flex;
|
||
justify-content: space-between;
|
||
font-size: var(--n-tab-font-size);
|
||
color: var(--n-tab-text-color);
|
||
`,[Q("addable",`
|
||
padding-left: 8px;
|
||
padding-right: 8px;
|
||
font-size: 16px;
|
||
`,[Z("height-placeholder",`
|
||
width: 0;
|
||
font-size: var(--n-tab-font-size);
|
||
`),ir("disabled",[q("&:hover",`
|
||
color: var(--n-tab-text-color-hover);
|
||
`)])]),Q("closable","padding-right: 8px;"),Q("active",`
|
||
background-color: #0000;
|
||
font-weight: var(--n-tab-font-weight-active);
|
||
color: var(--n-tab-text-color-active);
|
||
`),Q("disabled","color: var(--n-tab-text-color-disabled);")]),N("tabs-scroll-padding","border-bottom: 1px solid var(--n-tab-border-color);")]),Q("left, right",[N("tabs-wrapper",`
|
||
flex-direction: column;
|
||
`,[N("tabs-tab-wrapper",`
|
||
flex-direction: column;
|
||
`,[N("tabs-tab-pad",`
|
||
height: var(--n-tab-gap-vertical);
|
||
width: 100%;
|
||
`)])])]),Q("top",[Q("card-type",[N("tabs-tab",`
|
||
border-top-left-radius: var(--n-tab-border-radius);
|
||
border-top-right-radius: var(--n-tab-border-radius);
|
||
`,[Q("active",`
|
||
border-bottom: 1px solid #0000;
|
||
`)]),N("tabs-tab-pad",`
|
||
border-bottom: 1px solid var(--n-tab-border-color);
|
||
`),N("tabs-pad",`
|
||
border-bottom: 1px solid var(--n-tab-border-color);
|
||
`)])]),Q("left",[Q("card-type",[N("tabs-tab",`
|
||
border-top-left-radius: var(--n-tab-border-radius);
|
||
border-bottom-left-radius: var(--n-tab-border-radius);
|
||
`,[Q("active",`
|
||
border-right: 1px solid #0000;
|
||
`)]),N("tabs-tab-pad",`
|
||
border-right: 1px solid var(--n-tab-border-color);
|
||
`),N("tabs-pad",`
|
||
border-right: 1px solid var(--n-tab-border-color);
|
||
`)])]),Q("right",[Q("card-type",[N("tabs-tab",`
|
||
border-top-right-radius: var(--n-tab-border-radius);
|
||
border-bottom-right-radius: var(--n-tab-border-radius);
|
||
`,[Q("active",`
|
||
border-left: 1px solid #0000;
|
||
`)]),N("tabs-tab-pad",`
|
||
border-left: 1px solid var(--n-tab-border-color);
|
||
`),N("tabs-pad",`
|
||
border-left: 1px solid var(--n-tab-border-color);
|
||
`)])]),Q("bottom",[Q("card-type",[N("tabs-tab",`
|
||
border-bottom-left-radius: var(--n-tab-border-radius);
|
||
border-bottom-right-radius: var(--n-tab-border-radius);
|
||
`,[Q("active",`
|
||
border-top: 1px solid #0000;
|
||
`)]),N("tabs-tab-pad",`
|
||
border-top: 1px solid var(--n-tab-border-color);
|
||
`),N("tabs-pad",`
|
||
border-top: 1px solid var(--n-tab-border-color);
|
||
`)])])])]),cq=Object.assign(Object.assign({},ze.props),{value:[String,Number],defaultValue:[String,Number],trigger:{type:String,default:"click"},type:{type:String,default:"bar"},closable:Boolean,justifyContent:String,size:{type:String,default:"medium"},placement:{type:String,default:"top"},tabStyle:[String,Object],tabClass:String,addTabStyle:[String,Object],addTabClass:String,barWidth:Number,paneClass:String,paneStyle:[String,Object],paneWrapperClass:String,paneWrapperStyle:[String,Object],addable:[Boolean,Object],tabsPadding:{type:Number,default:0},animated:Boolean,onBeforeLeave:Function,onAdd:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onClose:[Function,Array],labelSize:String,activeName:[String,Number],onActiveNameChange:[Function,Array]}),uq=me({name:"Tabs",props:cq,setup(e,{slots:t}){var r,n,o,i;const{mergedClsPrefixRef:a,inlineThemeDisabled:s}=ht(e),l=ze("Tabs","-tabs",lq,U4,e,a),c=z(null),u=z(null),d=z(null),f=z(null),p=z(null),h=z(null),g=z(!0),v=z(!0),m=Fu(e,["labelSize","size"]),b=Fu(e,["activeName","value"]),x=z((n=(r=b.value)!==null&&r!==void 0?r:e.defaultValue)!==null&&n!==void 0?n:t.default?(i=(o=po(t.default())[0])===null||o===void 0?void 0:o.props)===null||i===void 0?void 0:i.name:null),y=vs(b,x),w={id:0},C=R(()=>{if(!(!e.justifyContent||e.type==="card"))return{display:"flex",justifyContent:e.justifyContent}});Ye(y,()=>{w.id=0,I(),B()});function S(){var O;const{value:H}=y;return H===null?null:(O=c.value)===null||O===void 0?void 0:O.querySelector(`[data-name="${H}"]`)}function T(O){if(e.type==="card")return;const{value:H}=u;if(!H)return;const V=H.style.opacity==="0";if(O){const ue=`${a.value}-tabs-bar--disabled`,{barWidth:_e,placement:Ee}=e;if(O.dataset.disabled==="true"?H.classList.add(ue):H.classList.remove(ue),["top","bottom"].includes(Ee)){if(A(["top","maxHeight","height"]),typeof _e=="number"&&O.offsetWidth>=_e){const G=Math.floor((O.offsetWidth-_e)/2)+O.offsetLeft;H.style.left=`${G}px`,H.style.maxWidth=`${_e}px`}else H.style.left=`${O.offsetLeft}px`,H.style.maxWidth=`${O.offsetWidth}px`;H.style.width="8192px",V&&(H.style.transition="none"),H.offsetWidth,V&&(H.style.transition="",H.style.opacity="1")}else{if(A(["left","maxWidth","width"]),typeof _e=="number"&&O.offsetHeight>=_e){const G=Math.floor((O.offsetHeight-_e)/2)+O.offsetTop;H.style.top=`${G}px`,H.style.maxHeight=`${_e}px`}else H.style.top=`${O.offsetTop}px`,H.style.maxHeight=`${O.offsetHeight}px`;H.style.height="8192px",V&&(H.style.transition="none"),H.offsetHeight,V&&(H.style.transition="",H.style.opacity="1")}}}function P(){if(e.type==="card")return;const{value:O}=u;O&&(O.style.opacity="0")}function A(O){const{value:H}=u;if(H)for(const V of O)H.style[V]=""}function I(){if(e.type==="card")return;const O=S();O?T(O):P()}function B(O){var H;const V=(H=p.value)===null||H===void 0?void 0:H.$el;if(!V)return;const ue=S();if(!ue)return;const{scrollLeft:_e,offsetWidth:Ee}=V,{offsetLeft:G,offsetWidth:ie}=ue;_e>G?V.scrollTo({top:0,left:G,behavior:"smooth"}):G+ie>_e+Ee&&V.scrollTo({top:0,left:G+ie-Ee,behavior:"smooth"})}const D=z(null);let U=0,F=null;function j(O){const H=D.value;if(H){U=O.getBoundingClientRect().height;const V=`${U}px`,ue=()=>{H.style.height=V,H.style.maxHeight=V};F?(ue(),F(),F=null):F=ue}}function K(O){const H=D.value;if(H){const V=O.getBoundingClientRect().height,ue=()=>{document.body.offsetHeight,H.style.maxHeight=`${V}px`,H.style.height=`${Math.max(U,V)}px`};F?(F(),F=null,ue()):F=ue}}function ae(){const O=D.value;if(O){O.style.maxHeight="",O.style.height="";const{paneWrapperStyle:H}=e;if(typeof H=="string")O.style.cssText=H;else if(H){const{maxHeight:V,height:ue}=H;V!==void 0&&(O.style.maxHeight=V),ue!==void 0&&(O.style.height=ue)}}}const we={value:[]},Ce=z("next");function X(O){const H=y.value;let V="next";for(const ue of we.value){if(ue===H)break;if(ue===O){V="prev";break}}Ce.value=V,re(O)}function re(O){const{onActiveNameChange:H,onUpdateValue:V,"onUpdate:value":ue}=e;H&&at(H,O),V&&at(V,O),ue&&at(ue,O),x.value=O}function le(O){const{onClose:H}=e;H&&at(H,O)}function ne(){const{value:O}=u;if(!O)return;const H="transition-disabled";O.classList.add(H),I(),O.classList.remove(H)}const $e=z(null);function Se({transitionDisabled:O}){const H=c.value;if(!H)return;O&&H.classList.add("transition-disabled");const V=S();V&&$e.value&&($e.value.style.width=`${V.offsetWidth}px`,$e.value.style.height=`${V.offsetHeight}px`,$e.value.style.transform=`translateX(${V.offsetLeft-H.offsetLeft-yh(getComputedStyle(H).paddingLeft)}px)`,O&&$e.value.offsetWidth),O&&H.classList.remove("transition-disabled")}Ye([y],()=>{e.type==="segment"&&zt(()=>{Se({transitionDisabled:!1})})}),St(()=>{e.type==="segment"&&Se({transitionDisabled:!0})});let ee=0;function se(O){var H;if(O.contentRect.width===0&&O.contentRect.height===0||ee===O.contentRect.width)return;ee=O.contentRect.width;const{type:V}=e;if((V==="line"||V==="bar")&&ne(),V!=="segment"){const{placement:ue}=e;E((ue==="top"||ue==="bottom"?(H=p.value)===null||H===void 0?void 0:H.$el:h.value)||null)}}const ce=Nf(se,64);Ye([()=>e.justifyContent,()=>e.size],()=>{zt(()=>{const{type:O}=e;(O==="line"||O==="bar")&&ne()})});const xe=z(!1);function Te(O){var H;const{target:V,contentRect:{width:ue}}=O,_e=V.parentElement.offsetWidth;if(!xe.value)_e<ue&&(xe.value=!0);else{const{value:Ee}=f;if(!Ee)return;_e-ue>Ee.$el.offsetWidth&&(xe.value=!1)}E(((H=p.value)===null||H===void 0?void 0:H.$el)||null)}const Pe=Nf(Te,64);function _(){const{onAdd:O}=e;O&&O(),zt(()=>{const H=S(),{value:V}=p;!H||!V||V.scrollTo({left:H.offsetLeft,top:0,behavior:"smooth"})})}function E(O){if(!O)return;const{placement:H}=e;if(H==="top"||H==="bottom"){const{scrollLeft:V,scrollWidth:ue,offsetWidth:_e}=O;g.value=V<=0,v.value=V+_e>=ue}else{const{scrollTop:V,scrollHeight:ue,offsetHeight:_e}=O;g.value=V<=0,v.value=V+_e>=ue}}const $=Nf(O=>{E(O.target)},64);dt(Xg,{triggerRef:nt(e,"trigger"),tabStyleRef:nt(e,"tabStyle"),tabClassRef:nt(e,"tabClass"),addTabStyleRef:nt(e,"addTabStyle"),addTabClassRef:nt(e,"addTabClass"),paneClassRef:nt(e,"paneClass"),paneStyleRef:nt(e,"paneStyle"),mergedClsPrefixRef:a,typeRef:nt(e,"type"),closableRef:nt(e,"closable"),valueRef:y,tabChangeIdRef:w,onBeforeLeaveRef:nt(e,"onBeforeLeave"),activateTab:X,handleClose:le,handleAdd:_}),E2(()=>{I(),B()}),$r(()=>{const{value:O}=d;if(!O)return;const{value:H}=a,V=`${H}-tabs-nav-scroll-wrapper--shadow-start`,ue=`${H}-tabs-nav-scroll-wrapper--shadow-end`;g.value?O.classList.remove(V):O.classList.add(V),v.value?O.classList.remove(ue):O.classList.add(ue)});const L={syncBarPosition:()=>{I()}},M=()=>{Se({transitionDisabled:!0})},J=R(()=>{const{value:O}=m,{type:H}=e,V={card:"Card",bar:"Bar",line:"Line",segment:"Segment"}[H],ue=`${O}${V}`,{self:{barColor:_e,closeIconColor:Ee,closeIconColorHover:G,closeIconColorPressed:ie,tabColor:Re,tabBorderColor:Ne,paneTextColor:lt,tabFontWeight:yt,tabBorderRadius:jt,tabFontWeightActive:Qr,colorSegment:ur,fontWeightStrong:Fn,tabColorSegment:be,closeSize:Ie,closeIconSize:He,closeColorHover:Ct,closeColorPressed:Ot,closeBorderRadius:dr,[ye("panePadding",O)]:mr,[ye("tabPadding",ue)]:At,[ye("tabPaddingVertical",ue)]:Ar,[ye("tabGap",ue)]:_n,[ye("tabGap",`${ue}Vertical`)]:ui,[ye("tabTextColor",H)]:Ts,[ye("tabTextColorActive",H)]:ko,[ye("tabTextColorHover",H)]:oo,[ye("tabTextColorDisabled",H)]:ks,[ye("tabFontSize",O)]:ca},common:{cubicBezierEaseInOut:Sr}}=l.value;return{"--n-bezier":Sr,"--n-color-segment":ur,"--n-bar-color":_e,"--n-tab-font-size":ca,"--n-tab-text-color":Ts,"--n-tab-text-color-active":ko,"--n-tab-text-color-disabled":ks,"--n-tab-text-color-hover":oo,"--n-pane-text-color":lt,"--n-tab-border-color":Ne,"--n-tab-border-radius":jt,"--n-close-size":Ie,"--n-close-icon-size":He,"--n-close-color-hover":Ct,"--n-close-color-pressed":Ot,"--n-close-border-radius":dr,"--n-close-icon-color":Ee,"--n-close-icon-color-hover":G,"--n-close-icon-color-pressed":ie,"--n-tab-color":Re,"--n-tab-font-weight":yt,"--n-tab-font-weight-active":Qr,"--n-tab-padding":At,"--n-tab-padding-vertical":Ar,"--n-tab-gap":_n,"--n-tab-gap-vertical":ui,"--n-pane-padding-left":Yn(mr,"left"),"--n-pane-padding-right":Yn(mr,"right"),"--n-pane-padding-top":Yn(mr,"top"),"--n-pane-padding-bottom":Yn(mr,"bottom"),"--n-font-weight-strong":Fn,"--n-tab-color-segment":be}}),oe=s?tr("tabs",R(()=>`${m.value[0]}${e.type[0]}`),J,e):void 0;return Object.assign({mergedClsPrefix:a,mergedValue:y,renderedNames:new Set,segmentCapsuleElRef:$e,tabsPaneWrapperRef:D,tabsElRef:c,barElRef:u,addTabInstRef:f,xScrollInstRef:p,scrollWrapperElRef:d,addTabFixed:xe,tabWrapperStyle:C,handleNavResize:ce,mergedSize:m,handleScroll:$,handleTabsResize:Pe,cssVars:s?void 0:J,themeClass:oe==null?void 0:oe.themeClass,animationDirection:Ce,renderNameListRef:we,yScrollElRef:h,handleSegmentResize:M,onAnimationBeforeLeave:j,onAnimationEnter:K,onAnimationAfterEnter:ae,onRender:oe==null?void 0:oe.onRender},L)},render(){const{mergedClsPrefix:e,type:t,placement:r,addTabFixed:n,addable:o,mergedSize:i,renderNameListRef:a,onRender:s,paneWrapperClass:l,paneWrapperStyle:c,$slots:{default:u,prefix:d,suffix:f}}=this;s==null||s();const p=u?po(u()).filter(w=>w.type.__TAB_PANE__===!0):[],h=u?po(u()).filter(w=>w.type.__TAB__===!0):[],g=!h.length,v=t==="card",m=t==="segment",b=!v&&!m&&this.justifyContent;a.value=[];const x=()=>{const w=k("div",{style:this.tabWrapperStyle,class:[`${e}-tabs-wrapper`]},b?null:k("div",{class:`${e}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}),g?p.map((C,S)=>(a.value.push(C.props.name),Zf(k(Vh,Object.assign({},C.props,{internalCreatedByPane:!0,internalLeftPadded:S!==0&&(!b||b==="center"||b==="start"||b==="end")}),C.children?{default:C.children.tab}:void 0)))):h.map((C,S)=>(a.value.push(C.props.name),Zf(S!==0&&!b?T1(C):C))),!n&&o&&v?E1(o,(g?p.length:h.length)!==0):null,b?null:k("div",{class:`${e}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}));return k("div",{ref:"tabsElRef",class:`${e}-tabs-nav-scroll-content`},v&&o?k(Ko,{onResize:this.handleTabsResize},{default:()=>w}):w,v?k("div",{class:`${e}-tabs-pad`}):null,v?null:k("div",{ref:"barElRef",class:`${e}-tabs-bar`}))},y=m?"top":r;return k("div",{class:[`${e}-tabs`,this.themeClass,`${e}-tabs--${t}-type`,`${e}-tabs--${i}-size`,b&&`${e}-tabs--flex`,`${e}-tabs--${y}`],style:this.cssVars},k("div",{class:[`${e}-tabs-nav--${t}-type`,`${e}-tabs-nav--${y}`,`${e}-tabs-nav`]},Ft(d,w=>w&&k("div",{class:`${e}-tabs-nav__prefix`},w)),m?k(Ko,{onResize:this.handleSegmentResize},{default:()=>k("div",{class:`${e}-tabs-rail`,ref:"tabsElRef"},k("div",{class:`${e}-tabs-capsule`,ref:"segmentCapsuleElRef"},k("div",{class:`${e}-tabs-wrapper`},k("div",{class:`${e}-tabs-tab`}))),g?p.map((w,C)=>(a.value.push(w.props.name),k(Vh,Object.assign({},w.props,{internalCreatedByPane:!0,internalLeftPadded:C!==0}),w.children?{default:w.children.tab}:void 0))):h.map((w,C)=>(a.value.push(w.props.name),C===0?w:T1(w))))}):k(Ko,{onResize:this.handleNavResize},{default:()=>k("div",{class:`${e}-tabs-nav-scroll-wrapper`,ref:"scrollWrapperElRef"},["top","bottom"].includes(y)?k(UP,{ref:"xScrollInstRef",onScroll:this.handleScroll},{default:x}):k("div",{class:`${e}-tabs-nav-y-scroll`,onScroll:this.handleScroll,ref:"yScrollElRef"},x()))}),n&&o&&v?E1(o,!0):null,Ft(f,w=>w&&k("div",{class:`${e}-tabs-nav__suffix`},w))),g&&(this.animated&&(y==="top"||y==="bottom")?k("div",{ref:"tabsPaneWrapperRef",style:c,class:[`${e}-tabs-pane-wrapper`,l]},_1(p,this.mergedValue,this.renderedNames,this.onAnimationBeforeLeave,this.onAnimationEnter,this.onAnimationAfterEnter,this.animationDirection)):_1(p,this.mergedValue,this.renderedNames)))}});function _1(e,t,r,n,o,i,a){const s=[];return e.forEach(l=>{const{name:c,displayDirective:u,"display-directive":d}=l.props,f=h=>u===h||d===h,p=t===c;if(l.key!==void 0&&(l.key=c),p||f("show")||f("show:lazy")&&r.has(c)){r.has(c)||r.add(c);const h=!f("if");s.push(h?bn(l,[[Zo,p]]):l)}}),a?k(f2,{name:`${a}-transition`,onBeforeLeave:n,onEnter:o,onAfterEnter:i},{default:()=>s}):s}function E1(e,t){return k(Vh,{ref:"addTabInstRef",key:"__addable",name:"__addable",internalCreatedByPane:!0,internalAddable:!0,internalLeftPadded:t,disabled:typeof e=="object"&&e.disabled})}function T1(e){const t=on(e);return t.props?t.props.internalLeftPadded=!0:t.props={internalLeftPadded:!0},t}function Zf(e){return Array.isArray(e.dynamicProps)?e.dynamicProps.includes("internalLeftPadded")||e.dynamicProps.push("internalLeftPadded"):e.dynamicProps=["internalLeftPadded"],e}const mE=()=>({}),dq={name:"Equation",common:ke,self:mE},fq=dq,hq={name:"Equation",common:Ae,self:mE},pq=hq,gq={name:"FloatButtonGroup",common:Ae,self(e){const{popoverColor:t,dividerColor:r,borderRadius:n}=e;return{color:t,buttonBorderColor:r,borderRadiusSquare:n,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)"}}},mq=gq,cu={name:"dark",common:Ae,Alert:b9,Anchor:P9,AutoComplete:j9,Avatar:f_,AvatarGroup:J9,BackTop:t7,Badge:a7,Breadcrumb:p7,Button:Zr,ButtonGroup:dj,Calendar:I7,Card:__,Carousel:Y7,Cascader:tz,Checkbox:ws,Code:A_,Collapse:lz,CollapseTransition:fz,ColorPicker:M7,DataTable:zz,DatePicker:lN,Descriptions:gN,Dialog:r4,Divider:LN,Drawer:NN,Dropdown:Wg,DynamicInput:jN,DynamicTags:QN,Element:rH,Empty:ra,Ellipsis:H_,Equation:pq,Flex:aH,Form:hH,GradientText:gj,Icon:Qz,IconWrapper:VU,Image:GU,Input:wn,InputNumber:yj,LegacyTransfer:sV,Layout:Ej,List:Ij,LoadingBar:Dj,Log:Fj,Menu:Xj,Mention:jj,Message:cj,Modal:_N,Notification:ij,PageHeader:Jj,Pagination:z_,Popconfirm:oW,Popover:na,Popselect:B_,Progress:D4,QrCode:OV,Radio:U_,Rate:lW,Result:gW,Row:$U,Scrollbar:Xr,Select:L_,Skeleton:KV,Slider:vW,Space:p4,Spin:SW,Statistic:kW,Steps:BW,Switch:OW,Table:jW,Tabs:qW,Tag:ZS,Thing:XW,TimePicker:Q_,Timeline:QW,Tooltip:Rd,Transfer:nU,Tree:X4,TreeSelect:uU,Typography:bU,Upload:wU,Watermark:_U,Split:nq,FloatButton:RU,FloatButtonGroup:mq},Qf={name:"light",common:ke,Alert:t_,Anchor:k9,AutoComplete:N9,Avatar:Mg,AvatarGroup:Z9,BackTop:o7,Badge:c7,Breadcrumb:f7,Button:Wr,ButtonGroup:hj,Calendar:C_,Card:zg,Carousel:q7,Cascader:J7,Checkbox:Cs,Code:P_,Collapse:az,CollapseTransition:uz,ColorPicker:L7,DataTable:Fz,DatePicker:aN,Descriptions:hN,Dialog:Ug,Divider:ON,Drawer:MN,Dropdown:jg,DynamicInput:VN,DynamicTags:eH,Element:oH,Empty:To,Equation:fq,Ellipsis:j_,Flex:cH,Form:Gg,GradientText:bj,Icon:K_,IconWrapper:WU,Image:rE,Input:sn,InputNumber:Sj,Layout:E4,LegacyTransfer:uV,List:Pj,LoadingBar:k4,Log:Nj,Menu:Yj,Mention:Vj,Message:_4,Modal:l4,Notification:w4,PageHeader:Qj,Pagination:M_,Popconfirm:rW,Popover:ni,Popselect:D_,Progress:B4,QrCode:FV,Radio:Ld,Rate:dW,Row:AU,Result:R4,Scrollbar:jr,Skeleton:pE,Select:R_,Slider:yW,Space:qg,Spin:M4,Statistic:EW,Steps:$W,Switch:FW,Table:NW,Tabs:U4,Tag:Rg,Thing:YW,TimePicker:Z_,Timeline:tU,Tooltip:ac,Transfer:aU,Tree:K4,TreeSelect:hU,Typography:mU,Upload:yU,Watermark:TU,Split:aq,FloatButton:MU,FloatButtonGroup:DU};/*!
|
||
* Viewer.js v1.11.6
|
||
* https://fengyuanchen.github.io/viewerjs
|
||
*
|
||
* Copyright 2015-present Chen Fengyuan
|
||
* Released under the MIT license
|
||
*
|
||
* Date: 2023-09-17T03:16:38.052Z
|
||
*/function k1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Zg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?k1(Object(r),!0).forEach(function(n){xq(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):k1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function qh(e){"@babel/helpers - typeof";return qh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qh(e)}function vq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function A1(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,vE(n.key),n)}}function bq(e,t,r){return t&&A1(e.prototype,t),r&&A1(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function xq(e,t,r){return t=vE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yq(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vE(e){var t=yq(e,"string");return typeof t=="symbol"?t:String(t)}var P1={backdrop:!0,button:!0,navbar:!0,title:!0,toolbar:!0,className:"",container:"body",filter:null,fullscreen:!0,inheritedAttributes:["crossOrigin","decoding","isMap","loading","referrerPolicy","sizes","srcset","useMap"],initialCoverage:.9,initialViewIndex:0,inline:!1,interval:5e3,keyboard:!0,focus:!0,loading:!0,loop:!0,minWidth:200,minHeight:100,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,slideOnTouch:!0,toggleOnDblclick:!0,tooltip:!0,transition:!0,zIndex:2015,zIndexInline:0,zoomRatio:.1,minZoomRatio:.01,maxZoomRatio:100,url:"src",ready:null,show:null,shown:null,hide:null,hidden:null,view:null,viewed:null,move:null,moved:null,rotate:null,rotated:null,scale:null,scaled:null,zoom:null,zoomed:null,play:null,stop:null},Cq='<div class="viewer-container" tabindex="-1" touch-action="none"><div class="viewer-canvas"></div><div class="viewer-footer"><div class="viewer-title"></div><div class="viewer-toolbar"></div><div class="viewer-navbar"><ul class="viewer-list" role="navigation"></ul></div></div><div class="viewer-tooltip" role="alert" aria-hidden="true"></div><div class="viewer-button" data-viewer-action="mix" role="button"></div><div class="viewer-player"></div></div>',Hd=typeof window<"u"&&typeof window.document<"u",xo=Hd?window:{},za=Hd&&xo.document.documentElement?"ontouchstart"in xo.document.documentElement:!1,Qg=Hd?"PointerEvent"in xo:!1,it="viewer",uu="move",bE="switch",Vs="zoom",jc="".concat(it,"-active"),wq="".concat(it,"-close"),du="".concat(it,"-fade"),Gh="".concat(it,"-fixed"),Sq="".concat(it,"-fullscreen"),$1="".concat(it,"-fullscreen-exit"),Ti="".concat(it,"-hide"),_q="".concat(it,"-hide-md-down"),Eq="".concat(it,"-hide-sm-down"),Tq="".concat(it,"-hide-xs-down"),dn="".concat(it,"-in"),ol="".concat(it,"-invisible"),Na="".concat(it,"-loading"),kq="".concat(it,"-move"),I1="".concat(it,"-open"),xa="".concat(it,"-show"),nr="".concat(it,"-transition"),Ja="click",Yh="dblclick",B1="dragstart",D1="focusin",O1="keydown",pn="load",Ni="error",Aq=za?"touchend touchcancel":"mouseup",Pq=za?"touchmove":"mousemove",$q=za?"touchstart":"mousedown",R1=Qg?"pointerdown":$q,L1=Qg?"pointermove":Pq,F1=Qg?"pointerup pointercancel":Aq,M1="resize",Tn="transitionend",z1="wheel",N1="ready",H1="show",j1="shown",W1="hide",U1="hidden",V1="view",Ol="viewed",q1="move",G1="moved",Y1="rotate",K1="rotated",X1="scale",Z1="scaled",Q1="zoom",J1="zoomed",ex="play",tx="stop",Gu="".concat(it,"Action"),Jg=/\s\s*/,Wc=["zoom-in","zoom-out","one-to-one","reset","prev","play","next","rotate-left","rotate-right","flip-horizontal","flip-vertical"];function Rl(e){return typeof e=="string"}var Iq=Number.isNaN||xo.isNaN;function Zt(e){return typeof e=="number"&&!Iq(e)}function Aa(e){return typeof e>"u"}function es(e){return qh(e)==="object"&&e!==null}var Bq=Object.prototype.hasOwnProperty;function Pa(e){if(!es(e))return!1;try{var t=e.constructor,r=t.prototype;return t&&r&&Bq.call(r,"isPrototypeOf")}catch{return!1}}function $t(e){return typeof e=="function"}function Mt(e,t){if(e&&$t(t))if(Array.isArray(e)||Zt(e.length)){var r=e.length,n;for(n=0;n<r&&t.call(e,e[n],n,e)!==!1;n+=1);}else es(e)&&Object.keys(e).forEach(function(o){t.call(e,e[o],o,e)});return e}var nn=Object.assign||function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return es(t)&&n.length>0&&n.forEach(function(i){es(i)&&Object.keys(i).forEach(function(a){t[a]=i[a]})}),t},Dq=/^(?:width|height|left|top|marginLeft|marginTop)$/;function Pn(e,t){var r=e.style;Mt(t,function(n,o){Dq.test(o)&&Zt(n)&&(n+="px"),r[o]=n})}function Oq(e){return Rl(e)?e.replace(/&(?!amp;|quot;|#39;|lt;|gt;)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">"):e}function Sa(e,t){return!e||!t?!1:e.classList?e.classList.contains(t):e.className.indexOf(t)>-1}function Ze(e,t){if(!(!e||!t)){if(Zt(e.length)){Mt(e,function(n){Ze(n,t)});return}if(e.classList){e.classList.add(t);return}var r=e.className.trim();r?r.indexOf(t)<0&&(e.className="".concat(r," ").concat(t)):e.className=t}}function wt(e,t){if(!(!e||!t)){if(Zt(e.length)){Mt(e,function(r){wt(r,t)});return}if(e.classList){e.classList.remove(t);return}e.className.indexOf(t)>=0&&(e.className=e.className.replace(t,""))}}function Ll(e,t,r){if(t){if(Zt(e.length)){Mt(e,function(n){Ll(n,t,r)});return}r?Ze(e,t):wt(e,t)}}var Rq=/([a-z\d])([A-Z])/g;function em(e){return e.replace(Rq,"$1-$2").toLowerCase()}function $a(e,t){return es(e[t])?e[t]:e.dataset?e.dataset[t]:e.getAttribute("data-".concat(em(t)))}function Kh(e,t,r){es(r)?e[t]=r:e.dataset?e.dataset[t]=r:e.setAttribute("data-".concat(em(t)),r)}var xE=function(){var e=!1;if(Hd){var t=!1,r=function(){},n=Object.defineProperty({},"once",{get:function(){return e=!0,t},set:function(i){t=i}});xo.addEventListener("test",r,n),xo.removeEventListener("test",r,n)}return e}();function It(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=r;t.trim().split(Jg).forEach(function(i){if(!xE){var a=e.listeners;a&&a[i]&&a[i][r]&&(o=a[i][r],delete a[i][r],Object.keys(a[i]).length===0&&delete a[i],Object.keys(a).length===0&&delete e.listeners)}e.removeEventListener(i,o,n)})}function et(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=r;t.trim().split(Jg).forEach(function(i){if(n.once&&!xE){var a=e.listeners,s=a===void 0?{}:a;o=function(){delete s[i][r],e.removeEventListener(i,o,n);for(var c=arguments.length,u=new Array(c),d=0;d<c;d++)u[d]=arguments[d];r.apply(e,u)},s[i]||(s[i]={}),s[i][r]&&e.removeEventListener(i,s[i][r],n),s[i][r]=o,e.listeners=s}e.addEventListener(i,o,n)})}function cr(e,t,r,n){var o;return $t(Event)&&$t(CustomEvent)?o=new CustomEvent(t,Zg({bubbles:!0,cancelable:!0,detail:r},n)):(o=document.createEvent("CustomEvent"),o.initCustomEvent(t,!0,!0,r)),e.dispatchEvent(o)}function Lq(e){var t=e.getBoundingClientRect();return{left:t.left+(window.pageXOffset-document.documentElement.clientLeft),top:t.top+(window.pageYOffset-document.documentElement.clientTop)}}function fu(e){var t=e.rotate,r=e.scaleX,n=e.scaleY,o=e.translateX,i=e.translateY,a=[];Zt(o)&&o!==0&&a.push("translateX(".concat(o,"px)")),Zt(i)&&i!==0&&a.push("translateY(".concat(i,"px)")),Zt(t)&&t!==0&&a.push("rotate(".concat(t,"deg)")),Zt(r)&&r!==1&&a.push("scaleX(".concat(r,")")),Zt(n)&&n!==1&&a.push("scaleY(".concat(n,")"));var s=a.length?a.join(" "):"none";return{WebkitTransform:s,msTransform:s,transform:s}}function Fq(e){return Rl(e)?decodeURIComponent(e.replace(/^.*\//,"").replace(/[?&#].*$/,"")):""}var Jf=xo.navigator&&/Version\/\d+(\.\d+)+?\s+Safari/i.test(xo.navigator.userAgent);function yE(e,t,r){var n=document.createElement("img");if(e.naturalWidth&&!Jf)return r(e.naturalWidth,e.naturalHeight),n;var o=document.body||document.documentElement;return n.onload=function(){r(n.width,n.height),Jf||o.removeChild(n)},Mt(t.inheritedAttributes,function(i){var a=e.getAttribute(i);a!==null&&n.setAttribute(i,a)}),n.src=e.src,Jf||(n.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",o.appendChild(n)),n}function Uc(e){switch(e){case 2:return Tq;case 3:return Eq;case 4:return _q;default:return""}}function Mq(e){var t=Zg({},e),r=[];return Mt(e,function(n,o){delete t[o],Mt(t,function(i){var a=Math.abs(n.startX-i.startX),s=Math.abs(n.startY-i.startY),l=Math.abs(n.endX-i.endX),c=Math.abs(n.endY-i.endY),u=Math.sqrt(a*a+s*s),d=Math.sqrt(l*l+c*c),f=(d-u)/u;r.push(f)})}),r.sort(function(n,o){return Math.abs(n)<Math.abs(o)}),r[0]}function Vc(e,t){var r=e.pageX,n=e.pageY,o={endX:r,endY:n};return t?o:Zg({timeStamp:Date.now(),startX:r,startY:n},o)}function zq(e){var t=0,r=0,n=0;return Mt(e,function(o){var i=o.startX,a=o.startY;t+=i,r+=a,n+=1}),t/=n,r/=n,{pageX:t,pageY:r}}var Nq={render:function(){this.initContainer(),this.initViewer(),this.initList(),this.renderViewer()},initBody:function(){var t=this.element.ownerDocument,r=t.body||t.documentElement;this.body=r,this.scrollbarWidth=window.innerWidth-t.documentElement.clientWidth,this.initialBodyPaddingRight=r.style.paddingRight,this.initialBodyComputedPaddingRight=window.getComputedStyle(r).paddingRight},initContainer:function(){this.containerData={width:window.innerWidth,height:window.innerHeight}},initViewer:function(){var t=this.options,r=this.parent,n;t.inline&&(n={width:Math.max(r.offsetWidth,t.minWidth),height:Math.max(r.offsetHeight,t.minHeight)},this.parentData=n),(this.fulled||!n)&&(n=this.containerData),this.viewerData=nn({},n)},renderViewer:function(){this.options.inline&&!this.fulled&&Pn(this.viewer,this.viewerData)},initList:function(){var t=this,r=this.element,n=this.options,o=this.list,i=[];o.innerHTML="",Mt(this.images,function(a,s){var l=a.src,c=a.alt||Fq(l),u=t.getImageURL(a);if(l||u){var d=document.createElement("li"),f=document.createElement("img");Mt(n.inheritedAttributes,function(p){var h=a.getAttribute(p);h!==null&&f.setAttribute(p,h)}),n.navbar&&(f.src=l||u),f.alt=c,f.setAttribute("data-original-url",u||l),d.setAttribute("data-index",s),d.setAttribute("data-viewer-action","view"),d.setAttribute("role","button"),n.keyboard&&d.setAttribute("tabindex",0),d.appendChild(f),o.appendChild(d),i.push(d)}}),this.items=i,Mt(i,function(a){var s=a.firstElementChild,l,c;Kh(s,"filled",!0),n.loading&&Ze(a,Na),et(s,pn,l=function(d){It(s,Ni,c),n.loading&&wt(a,Na),t.loadImage(d)},{once:!0}),et(s,Ni,c=function(){It(s,pn,l),n.loading&&wt(a,Na)},{once:!0})}),n.transition&&et(r,Ol,function(){Ze(o,nr)},{once:!0})},renderList:function(){var t=this.index,r=this.items[t];if(r){var n=r.nextElementSibling,o=parseInt(window.getComputedStyle(n||r).marginLeft,10),i=r.offsetWidth,a=i+o;Pn(this.list,nn({width:a*this.length-o},fu({translateX:(this.viewerData.width-i)/2-a*t})))}},resetList:function(){var t=this.list;t.innerHTML="",wt(t,nr),Pn(t,fu({translateX:0}))},initImage:function(t){var r=this,n=this.options,o=this.image,i=this.viewerData,a=this.footer.offsetHeight,s=i.width,l=Math.max(i.height-a,a),c=this.imageData||{},u;this.imageInitializing={abort:function(){u.onload=null}},u=yE(o,n,function(d,f){var p=d/f,h=Math.max(0,Math.min(1,n.initialCoverage)),g=s,v=l;r.imageInitializing=!1,l*p>s?v=s/p:g=l*p,h=Zt(h)?h:.9,g=Math.min(g*h,d),v=Math.min(v*h,f);var m=(s-g)/2,b=(l-v)/2,x={left:m,top:b,x:m,y:b,width:g,height:v,oldRatio:1,ratio:g/d,aspectRatio:p,naturalWidth:d,naturalHeight:f},y=nn({},x);n.rotatable&&(x.rotate=c.rotate||0,y.rotate=0),n.scalable&&(x.scaleX=c.scaleX||1,x.scaleY=c.scaleY||1,y.scaleX=1,y.scaleY=1),r.imageData=x,r.initialImageData=y,t&&t()})},renderImage:function(t){var r=this,n=this.image,o=this.imageData;if(Pn(n,nn({width:o.width,height:o.height,marginLeft:o.x,marginTop:o.y},fu(o))),t)if((this.viewing||this.moving||this.rotating||this.scaling||this.zooming)&&this.options.transition&&Sa(n,nr)){var i=function(){r.imageRendering=!1,t()};this.imageRendering={abort:function(){It(n,Tn,i)}},et(n,Tn,i,{once:!0})}else t()},resetImage:function(){var t=this.image;t&&(this.viewing&&this.viewing.abort(),t.parentNode.removeChild(t),this.image=null,this.title.innerHTML="")}},Hq={bind:function(){var t=this.options,r=this.viewer,n=this.canvas,o=this.element.ownerDocument;et(r,Ja,this.onClick=this.click.bind(this)),et(r,B1,this.onDragStart=this.dragstart.bind(this)),et(n,R1,this.onPointerDown=this.pointerdown.bind(this)),et(o,L1,this.onPointerMove=this.pointermove.bind(this)),et(o,F1,this.onPointerUp=this.pointerup.bind(this)),et(o,O1,this.onKeyDown=this.keydown.bind(this)),et(window,M1,this.onResize=this.resize.bind(this)),t.zoomable&&t.zoomOnWheel&&et(r,z1,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),t.toggleOnDblclick&&et(n,Yh,this.onDblclick=this.dblclick.bind(this))},unbind:function(){var t=this.options,r=this.viewer,n=this.canvas,o=this.element.ownerDocument;It(r,Ja,this.onClick),It(r,B1,this.onDragStart),It(n,R1,this.onPointerDown),It(o,L1,this.onPointerMove),It(o,F1,this.onPointerUp),It(o,O1,this.onKeyDown),It(window,M1,this.onResize),t.zoomable&&t.zoomOnWheel&&It(r,z1,this.onWheel,{passive:!1,capture:!0}),t.toggleOnDblclick&&It(n,Yh,this.onDblclick)}},jq={click:function(t){var r=this.options,n=this.imageData,o=t.target,i=$a(o,Gu);switch(!i&&o.localName==="img"&&o.parentElement.localName==="li"&&(o=o.parentElement,i=$a(o,Gu)),za&&t.isTrusted&&o===this.canvas&&clearTimeout(this.clickCanvasTimeout),i){case"mix":this.played?this.stop():r.inline?this.fulled?this.exit():this.full():this.hide();break;case"hide":this.pointerMoved||this.hide();break;case"view":this.view($a(o,"index"));break;case"zoom-in":this.zoom(.1,!0);break;case"zoom-out":this.zoom(-.1,!0);break;case"one-to-one":this.toggle();break;case"reset":this.reset();break;case"prev":this.prev(r.loop);break;case"play":this.play(r.fullscreen);break;case"next":this.next(r.loop);break;case"rotate-left":this.rotate(-90);break;case"rotate-right":this.rotate(90);break;case"flip-horizontal":this.scaleX(-n.scaleX||-1);break;case"flip-vertical":this.scaleY(-n.scaleY||-1);break;default:this.played&&this.stop()}},dblclick:function(t){t.preventDefault(),this.viewed&&t.target===this.image&&(za&&t.isTrusted&&clearTimeout(this.doubleClickImageTimeout),this.toggle(t.isTrusted?t:t.detail&&t.detail.originalEvent))},load:function(){var t=this;this.timeout&&(clearTimeout(this.timeout),this.timeout=!1);var r=this.element,n=this.options,o=this.image,i=this.index,a=this.viewerData;wt(o,ol),n.loading&&wt(this.canvas,Na),o.style.cssText="height:0;"+"margin-left:".concat(a.width/2,"px;")+"margin-top:".concat(a.height/2,"px;")+"max-width:none!important;position:relative;width:0;",this.initImage(function(){Ll(o,kq,n.movable),Ll(o,nr,n.transition),t.renderImage(function(){t.viewed=!0,t.viewing=!1,$t(n.viewed)&&et(r,Ol,n.viewed,{once:!0}),cr(r,Ol,{originalImage:t.images[i],index:i,image:o},{cancelable:!1})})})},loadImage:function(t){var r=t.target,n=r.parentNode,o=n.offsetWidth||30,i=n.offsetHeight||50,a=!!$a(r,"filled");yE(r,this.options,function(s,l){var c=s/l,u=o,d=i;i*c>o?a?u=i*c:d=o/c:a?d=o/c:u=i*c,Pn(r,nn({width:u,height:d},fu({translateX:(o-u)/2,translateY:(i-d)/2})))})},keydown:function(t){var r=this.options;if(r.keyboard){var n=t.keyCode||t.which||t.charCode;switch(n){case 13:this.viewer.contains(t.target)&&this.click(t);break}if(this.fulled)switch(n){case 27:this.played?this.stop():r.inline?this.fulled&&this.exit():this.hide();break;case 32:this.played&&this.stop();break;case 37:this.played&&this.playing?this.playing.prev():this.prev(r.loop);break;case 38:t.preventDefault(),this.zoom(r.zoomRatio,!0);break;case 39:this.played&&this.playing?this.playing.next():this.next(r.loop);break;case 40:t.preventDefault(),this.zoom(-r.zoomRatio,!0);break;case 48:case 49:t.ctrlKey&&(t.preventDefault(),this.toggle());break}}},dragstart:function(t){t.target.localName==="img"&&t.preventDefault()},pointerdown:function(t){var r=this.options,n=this.pointers,o=t.buttons,i=t.button;if(this.pointerMoved=!1,!(!this.viewed||this.showing||this.viewing||this.hiding||(t.type==="mousedown"||t.type==="pointerdown"&&t.pointerType==="mouse")&&(Zt(o)&&o!==1||Zt(i)&&i!==0||t.ctrlKey))){t.preventDefault(),t.changedTouches?Mt(t.changedTouches,function(s){n[s.identifier]=Vc(s)}):n[t.pointerId||0]=Vc(t);var a=r.movable?uu:!1;r.zoomOnTouch&&r.zoomable&&Object.keys(n).length>1?a=Vs:r.slideOnTouch&&(t.pointerType==="touch"||t.type==="touchstart")&&this.isSwitchable()&&(a=bE),r.transition&&(a===uu||a===Vs)&&wt(this.image,nr),this.action=a}},pointermove:function(t){var r=this.pointers,n=this.action;!this.viewed||!n||(t.preventDefault(),t.changedTouches?Mt(t.changedTouches,function(o){nn(r[o.identifier]||{},Vc(o,!0))}):nn(r[t.pointerId||0]||{},Vc(t,!0)),this.change(t))},pointerup:function(t){var r=this,n=this.options,o=this.action,i=this.pointers,a;t.changedTouches?Mt(t.changedTouches,function(s){a=i[s.identifier],delete i[s.identifier]}):(a=i[t.pointerId||0],delete i[t.pointerId||0]),o&&(t.preventDefault(),n.transition&&(o===uu||o===Vs)&&Ze(this.image,nr),this.action=!1,za&&o!==Vs&&a&&Date.now()-a.timeStamp<500&&(clearTimeout(this.clickCanvasTimeout),clearTimeout(this.doubleClickImageTimeout),n.toggleOnDblclick&&this.viewed&&t.target===this.image?this.imageClicked?(this.imageClicked=!1,this.doubleClickImageTimeout=setTimeout(function(){cr(r.image,Yh,{originalEvent:t})},50)):(this.imageClicked=!0,this.doubleClickImageTimeout=setTimeout(function(){r.imageClicked=!1},500)):(this.imageClicked=!1,n.backdrop&&n.backdrop!=="static"&&t.target===this.canvas&&(this.clickCanvasTimeout=setTimeout(function(){cr(r.canvas,Ja,{originalEvent:t})},50)))))},resize:function(){var t=this;if(!(!this.isShown||this.hiding)&&(this.fulled&&(this.close(),this.initBody(),this.open()),this.initContainer(),this.initViewer(),this.renderViewer(),this.renderList(),this.viewed&&this.initImage(function(){t.renderImage()}),this.played)){if(this.options.fullscreen&&this.fulled&&!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement)){this.stop();return}Mt(this.player.getElementsByTagName("img"),function(r){et(r,pn,t.loadImage.bind(t),{once:!0}),cr(r,pn)})}},wheel:function(t){var r=this;if(this.viewed&&(t.preventDefault(),!this.wheeling)){this.wheeling=!0,setTimeout(function(){r.wheeling=!1},50);var n=Number(this.options.zoomRatio)||.1,o=1;t.deltaY?o=t.deltaY>0?1:-1:t.wheelDelta?o=-t.wheelDelta/120:t.detail&&(o=t.detail>0?1:-1),this.zoom(-o*n,!0,null,t)}}},Wq={show:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,r=this.element,n=this.options;if(n.inline||this.showing||this.isShown||this.showing)return this;if(!this.ready)return this.build(),this.ready&&this.show(t),this;if($t(n.show)&&et(r,H1,n.show,{once:!0}),cr(r,H1)===!1||!this.ready)return this;this.hiding&&this.transitioning.abort(),this.showing=!0,this.open();var o=this.viewer;if(wt(o,Ti),o.setAttribute("role","dialog"),o.setAttribute("aria-labelledby",this.title.id),o.setAttribute("aria-modal",!0),o.removeAttribute("aria-hidden"),n.transition&&!t){var i=this.shown.bind(this);this.transitioning={abort:function(){It(o,Tn,i),wt(o,dn)}},Ze(o,nr),o.initialOffsetWidth=o.offsetWidth,et(o,Tn,i,{once:!0}),Ze(o,dn)}else Ze(o,dn),this.shown();return this},hide:function(){var t=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n=this.element,o=this.options;if(o.inline||this.hiding||!(this.isShown||this.showing))return this;if($t(o.hide)&&et(n,W1,o.hide,{once:!0}),cr(n,W1)===!1)return this;this.showing&&this.transitioning.abort(),this.hiding=!0,this.played?this.stop():this.viewing&&this.viewing.abort();var i=this.viewer,a=this.image,s=function(){wt(i,dn),t.hidden()};if(o.transition&&!r){var l=function u(d){d&&d.target===i&&(It(i,Tn,u),t.hidden())},c=function(){Sa(i,nr)?(et(i,Tn,l),wt(i,dn)):s()};this.transitioning={abort:function(){t.viewed&&Sa(a,nr)?It(a,Tn,c):Sa(i,nr)&&It(i,Tn,l)}},this.viewed&&Sa(a,nr)?(et(a,Tn,c,{once:!0}),this.zoomTo(0,!1,null,null,!0)):c()}else s();return this},view:function(){var t=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.initialViewIndex;if(r=Number(r)||0,this.hiding||this.played||r<0||r>=this.length||this.viewed&&r===this.index)return this;if(!this.isShown)return this.index=r,this.show();this.viewing&&this.viewing.abort();var n=this.element,o=this.options,i=this.title,a=this.canvas,s=this.items[r],l=s.querySelector("img"),c=$a(l,"originalUrl"),u=l.getAttribute("alt"),d=document.createElement("img");if(Mt(o.inheritedAttributes,function(v){var m=l.getAttribute(v);m!==null&&d.setAttribute(v,m)}),d.src=c,d.alt=u,$t(o.view)&&et(n,V1,o.view,{once:!0}),cr(n,V1,{originalImage:this.images[r],index:r,image:d})===!1||!this.isShown||this.hiding||this.played)return this;var f=this.items[this.index];f&&(wt(f,jc),f.removeAttribute("aria-selected")),Ze(s,jc),s.setAttribute("aria-selected",!0),o.focus&&s.focus(),this.image=d,this.viewed=!1,this.index=r,this.imageData={},Ze(d,ol),o.loading&&Ze(a,Na),a.innerHTML="",a.appendChild(d),this.renderList(),i.innerHTML="";var p=function(){var m=t.imageData,b=Array.isArray(o.title)?o.title[1]:o.title;i.innerHTML=Oq($t(b)?b.call(t,d,m):"".concat(u," (").concat(m.naturalWidth," × ").concat(m.naturalHeight,")"))},h,g;return et(n,Ol,p,{once:!0}),this.viewing={abort:function(){It(n,Ol,p),d.complete?t.imageRendering?t.imageRendering.abort():t.imageInitializing&&t.imageInitializing.abort():(d.src="",It(d,pn,h),t.timeout&&clearTimeout(t.timeout))}},d.complete?this.load():(et(d,pn,h=function(){It(d,Ni,g),t.load()},{once:!0}),et(d,Ni,g=function(){It(d,pn,h),t.timeout&&(clearTimeout(t.timeout),t.timeout=!1),wt(d,ol),o.loading&&wt(t.canvas,Na)},{once:!0}),this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(function(){wt(d,ol),t.timeout=!1},1e3)),this},prev:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,r=this.index-1;return r<0&&(r=t?this.length-1:0),this.view(r),this},next:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,r=this.length-1,n=this.index+1;return n>r&&(n=t?0:r),this.view(n),this},move:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,n=this.imageData;return this.moveTo(Aa(t)?t:n.x+Number(t),Aa(r)?r:n.y+Number(r)),this},moveTo:function(t){var r=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,i=this.element,a=this.options,s=this.imageData;if(t=Number(t),n=Number(n),this.viewed&&!this.played&&a.movable){var l=s.x,c=s.y,u=!1;if(Zt(t)?u=!0:t=l,Zt(n)?u=!0:n=c,u){if($t(a.move)&&et(i,q1,a.move,{once:!0}),cr(i,q1,{x:t,y:n,oldX:l,oldY:c,originalEvent:o})===!1)return this;s.x=t,s.y=n,s.left=t,s.top=n,this.moving=!0,this.renderImage(function(){r.moving=!1,$t(a.moved)&&et(i,G1,a.moved,{once:!0}),cr(i,G1,{x:t,y:n,oldX:l,oldY:c,originalEvent:o},{cancelable:!1})})}}return this},rotate:function(t){return this.rotateTo((this.imageData.rotate||0)+Number(t)),this},rotateTo:function(t){var r=this,n=this.element,o=this.options,i=this.imageData;if(t=Number(t),Zt(t)&&this.viewed&&!this.played&&o.rotatable){var a=i.rotate;if($t(o.rotate)&&et(n,Y1,o.rotate,{once:!0}),cr(n,Y1,{degree:t,oldDegree:a})===!1)return this;i.rotate=t,this.rotating=!0,this.renderImage(function(){r.rotating=!1,$t(o.rotated)&&et(n,K1,o.rotated,{once:!0}),cr(n,K1,{degree:t,oldDegree:a},{cancelable:!1})})}return this},scaleX:function(t){return this.scale(t,this.imageData.scaleY),this},scaleY:function(t){return this.scale(this.imageData.scaleX,t),this},scale:function(t){var r=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,o=this.element,i=this.options,a=this.imageData;if(t=Number(t),n=Number(n),this.viewed&&!this.played&&i.scalable){var s=a.scaleX,l=a.scaleY,c=!1;if(Zt(t)?c=!0:t=s,Zt(n)?c=!0:n=l,c){if($t(i.scale)&&et(o,X1,i.scale,{once:!0}),cr(o,X1,{scaleX:t,scaleY:n,oldScaleX:s,oldScaleY:l})===!1)return this;a.scaleX=t,a.scaleY=n,this.scaling=!0,this.renderImage(function(){r.scaling=!1,$t(i.scaled)&&et(o,Z1,i.scaled,{once:!0}),cr(o,Z1,{scaleX:t,scaleY:n,oldScaleX:s,oldScaleY:l},{cancelable:!1})})}}return this},zoom:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,i=this.imageData;return t=Number(t),t<0?t=1/(1-t):t=1+t,this.zoomTo(i.width*t/i.naturalWidth,r,n,o),this},zoomTo:function(t){var r=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,s=this.element,l=this.options,c=this.pointers,u=this.imageData,d=u.x,f=u.y,p=u.width,h=u.height,g=u.naturalWidth,v=u.naturalHeight;if(t=Math.max(0,t),Zt(t)&&this.viewed&&!this.played&&(a||l.zoomable)){if(!a){var m=Math.max(.01,l.minZoomRatio),b=Math.min(100,l.maxZoomRatio);t=Math.min(Math.max(t,m),b)}if(i)switch(i.type){case"wheel":l.zoomRatio>=.055&&t>.95&&t<1.05&&(t=1);break;case"pointermove":case"touchmove":case"mousemove":t>.99&&t<1.01&&(t=1);break}var x=g*t,y=v*t,w=x-p,C=y-h,S=u.ratio;if($t(l.zoom)&&et(s,Q1,l.zoom,{once:!0}),cr(s,Q1,{ratio:t,oldRatio:S,originalEvent:i})===!1)return this;if(this.zooming=!0,i){var T=Lq(this.viewer),P=c&&Object.keys(c).length>0?zq(c):{pageX:i.pageX,pageY:i.pageY};u.x-=w*((P.pageX-T.left-d)/p),u.y-=C*((P.pageY-T.top-f)/h)}else Pa(o)&&Zt(o.x)&&Zt(o.y)?(u.x-=w*((o.x-d)/p),u.y-=C*((o.y-f)/h)):(u.x-=w/2,u.y-=C/2);u.left=u.x,u.top=u.y,u.width=x,u.height=y,u.oldRatio=S,u.ratio=t,this.renderImage(function(){r.zooming=!1,$t(l.zoomed)&&et(s,J1,l.zoomed,{once:!0}),cr(s,J1,{ratio:t,oldRatio:S,originalEvent:i},{cancelable:!1})}),n&&this.tooltip()}return this},play:function(){var t=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!this.isShown||this.played)return this;var n=this.element,o=this.options;if($t(o.play)&&et(n,ex,o.play,{once:!0}),cr(n,ex)===!1)return this;var i=this.player,a=this.loadImage.bind(this),s=[],l=0,c=0;if(this.played=!0,this.onLoadWhenPlay=a,r&&this.requestFullscreen(r),Ze(i,xa),Mt(this.items,function(f,p){var h=f.querySelector("img"),g=document.createElement("img");g.src=$a(h,"originalUrl"),g.alt=h.getAttribute("alt"),g.referrerPolicy=h.referrerPolicy,l+=1,Ze(g,du),Ll(g,nr,o.transition),Sa(f,jc)&&(Ze(g,dn),c=p),s.push(g),et(g,pn,a,{once:!0}),i.appendChild(g)}),Zt(o.interval)&&o.interval>0){var u=function f(){clearTimeout(t.playing.timeout),wt(s[c],dn),c-=1,c=c>=0?c:l-1,Ze(s[c],dn),t.playing.timeout=setTimeout(f,o.interval)},d=function f(){clearTimeout(t.playing.timeout),wt(s[c],dn),c+=1,c=c<l?c:0,Ze(s[c],dn),t.playing.timeout=setTimeout(f,o.interval)};l>1&&(this.playing={prev:u,next:d,timeout:setTimeout(d,o.interval)})}return this},stop:function(){var t=this;if(!this.played)return this;var r=this.element,n=this.options;if($t(n.stop)&&et(r,tx,n.stop,{once:!0}),cr(r,tx)===!1)return this;var o=this.player;return clearTimeout(this.playing.timeout),this.playing=!1,this.played=!1,Mt(o.getElementsByTagName("img"),function(i){It(i,pn,t.onLoadWhenPlay)}),wt(o,xa),o.innerHTML="",this.exitFullscreen(),this},full:function(){var t=this,r=this.options,n=this.viewer,o=this.image,i=this.list;return!this.isShown||this.played||this.fulled||!r.inline?this:(this.fulled=!0,this.open(),Ze(this.button,$1),r.transition&&(wt(i,nr),this.viewed&&wt(o,nr)),Ze(n,Gh),n.setAttribute("role","dialog"),n.setAttribute("aria-labelledby",this.title.id),n.setAttribute("aria-modal",!0),n.removeAttribute("style"),Pn(n,{zIndex:r.zIndex}),r.focus&&this.enforceFocus(),this.initContainer(),this.viewerData=nn({},this.containerData),this.renderList(),this.viewed&&this.initImage(function(){t.renderImage(function(){r.transition&&setTimeout(function(){Ze(o,nr),Ze(i,nr)},0)})}),this)},exit:function(){var t=this,r=this.options,n=this.viewer,o=this.image,i=this.list;return!this.isShown||this.played||!this.fulled||!r.inline?this:(this.fulled=!1,this.close(),wt(this.button,$1),r.transition&&(wt(i,nr),this.viewed&&wt(o,nr)),r.focus&&this.clearEnforceFocus(),n.removeAttribute("role"),n.removeAttribute("aria-labelledby"),n.removeAttribute("aria-modal"),wt(n,Gh),Pn(n,{zIndex:r.zIndexInline}),this.viewerData=nn({},this.parentData),this.renderViewer(),this.renderList(),this.viewed&&this.initImage(function(){t.renderImage(function(){r.transition&&setTimeout(function(){Ze(o,nr),Ze(i,nr)},0)})}),this)},tooltip:function(){var t=this,r=this.options,n=this.tooltipBox,o=this.imageData;return!this.viewed||this.played||!r.tooltip?this:(n.textContent="".concat(Math.round(o.ratio*100),"%"),this.tooltipping?clearTimeout(this.tooltipping):r.transition?(this.fading&&cr(n,Tn),Ze(n,xa),Ze(n,du),Ze(n,nr),n.removeAttribute("aria-hidden"),n.initialOffsetWidth=n.offsetWidth,Ze(n,dn)):(Ze(n,xa),n.removeAttribute("aria-hidden")),this.tooltipping=setTimeout(function(){r.transition?(et(n,Tn,function(){wt(n,xa),wt(n,du),wt(n,nr),n.setAttribute("aria-hidden",!0),t.fading=!1},{once:!0}),wt(n,dn),t.fading=!0):(wt(n,xa),n.setAttribute("aria-hidden",!0)),t.tooltipping=!1},1e3),this)},toggle:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return this.imageData.ratio===1?this.zoomTo(this.imageData.oldRatio,!0,null,t):this.zoomTo(1,!0,null,t),this},reset:function(){return this.viewed&&!this.played&&(this.imageData=nn({},this.initialImageData),this.renderImage()),this},update:function(){var t=this,r=this.element,n=this.options,o=this.isImg;if(o&&!r.parentNode)return this.destroy();var i=[];if(Mt(o?[r]:r.querySelectorAll("img"),function(c){$t(n.filter)?n.filter.call(t,c)&&i.push(c):t.getImageURL(c)&&i.push(c)}),!i.length)return this;if(this.images=i,this.length=i.length,this.ready){var a=[];if(Mt(this.items,function(c,u){var d=c.querySelector("img"),f=i[u];f&&d?(f.src!==d.src||f.alt!==d.alt)&&a.push(u):a.push(u)}),Pn(this.list,{width:"auto"}),this.initList(),this.isShown)if(this.length){if(this.viewed){var s=a.indexOf(this.index);if(s>=0)this.viewed=!1,this.view(Math.max(Math.min(this.index-s,this.length-1),0));else{var l=this.items[this.index];Ze(l,jc),l.setAttribute("aria-selected",!0)}}}else this.image=null,this.viewed=!1,this.index=0,this.imageData={},this.canvas.innerHTML="",this.title.innerHTML=""}else this.build();return this},destroy:function(){var t=this.element,r=this.options;return t[it]?(this.destroyed=!0,this.ready?(this.played&&this.stop(),r.inline?(this.fulled&&this.exit(),this.unbind()):this.isShown?(this.viewing&&(this.imageRendering?this.imageRendering.abort():this.imageInitializing&&this.imageInitializing.abort()),this.hiding&&this.transitioning.abort(),this.hidden()):this.showing&&(this.transitioning.abort(),this.hidden()),this.ready=!1,this.viewer.parentNode.removeChild(this.viewer)):r.inline&&(this.delaying?this.delaying.abort():this.initializing&&this.initializing.abort()),r.inline||It(t,Ja,this.onStart),t[it]=void 0,this):this}},Uq={getImageURL:function(t){var r=this.options.url;return Rl(r)?r=t.getAttribute(r):$t(r)?r=r.call(this,t):r="",r},enforceFocus:function(){var t=this;this.clearEnforceFocus(),et(document,D1,this.onFocusin=function(r){var n=t.viewer,o=r.target;if(!(o===document||o===n||n.contains(o))){for(;o;){if(o.getAttribute("tabindex")!==null||o.getAttribute("aria-modal")==="true")return;o=o.parentElement}n.focus()}})},clearEnforceFocus:function(){this.onFocusin&&(It(document,D1,this.onFocusin),this.onFocusin=null)},open:function(){var t=this.body;Ze(t,I1),this.scrollbarWidth>0&&(t.style.paddingRight="".concat(this.scrollbarWidth+(parseFloat(this.initialBodyComputedPaddingRight)||0),"px"))},close:function(){var t=this.body;wt(t,I1),this.scrollbarWidth>0&&(t.style.paddingRight=this.initialBodyPaddingRight)},shown:function(){var t=this.element,r=this.options,n=this.viewer;this.fulled=!0,this.isShown=!0,this.render(),this.bind(),this.showing=!1,r.focus&&(n.focus(),this.enforceFocus()),$t(r.shown)&&et(t,j1,r.shown,{once:!0}),cr(t,j1)!==!1&&this.ready&&this.isShown&&!this.hiding&&this.view(this.index)},hidden:function(){var t=this.element,r=this.options,n=this.viewer;r.fucus&&this.clearEnforceFocus(),this.close(),this.unbind(),Ze(n,Ti),n.removeAttribute("role"),n.removeAttribute("aria-labelledby"),n.removeAttribute("aria-modal"),n.setAttribute("aria-hidden",!0),this.resetList(),this.resetImage(),this.fulled=!1,this.viewed=!1,this.isShown=!1,this.hiding=!1,this.destroyed||($t(r.hidden)&&et(t,U1,r.hidden,{once:!0}),cr(t,U1,null,{cancelable:!1}))},requestFullscreen:function(t){var r=this.element.ownerDocument;if(this.fulled&&!(r.fullscreenElement||r.webkitFullscreenElement||r.mozFullScreenElement||r.msFullscreenElement)){var n=r.documentElement;n.requestFullscreen?Pa(t)?n.requestFullscreen(t):n.requestFullscreen():n.webkitRequestFullscreen?n.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):n.mozRequestFullScreen?n.mozRequestFullScreen():n.msRequestFullscreen&&n.msRequestFullscreen()}},exitFullscreen:function(){var t=this.element.ownerDocument;this.fulled&&(t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement)&&(t.exitFullscreen?t.exitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():t.msExitFullscreen&&t.msExitFullscreen())},change:function(t){var r=this.options,n=this.pointers,o=n[Object.keys(n)[0]];if(o){var i=o.endX-o.startX,a=o.endY-o.startY;switch(this.action){case uu:(i!==0||a!==0)&&(this.pointerMoved=!0,this.move(i,a,t));break;case Vs:this.zoom(Mq(n),!1,null,t);break;case bE:{this.action="switched";var s=Math.abs(i);s>1&&s>Math.abs(a)&&(this.pointers={},i>1?this.prev(r.loop):i<-1&&this.next(r.loop));break}}Mt(n,function(l){l.startX=l.endX,l.startY=l.endY})}},isSwitchable:function(){var t=this.imageData,r=this.viewerData;return this.length>1&&t.x>=0&&t.y>=0&&t.width<=r.width&&t.height<=r.height}},Vq=xo.Viewer,qq=function(e){return function(){return e+=1,e}}(-1),ts=function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(vq(this,e),!t||t.nodeType!==1)throw new Error("The first argument is required and must be an element.");this.element=t,this.options=nn({},P1,Pa(r)&&r),this.action=!1,this.fading=!1,this.fulled=!1,this.hiding=!1,this.imageClicked=!1,this.imageData={},this.index=this.options.initialViewIndex,this.isImg=!1,this.isShown=!1,this.length=0,this.moving=!1,this.played=!1,this.playing=!1,this.pointers={},this.ready=!1,this.rotating=!1,this.scaling=!1,this.showing=!1,this.timeout=!1,this.tooltipping=!1,this.viewed=!1,this.viewing=!1,this.wheeling=!1,this.zooming=!1,this.pointerMoved=!1,this.id=qq(),this.init()}return bq(e,[{key:"init",value:function(){var r=this,n=this.element,o=this.options;if(!n[it]){n[it]=this,o.focus&&!o.keyboard&&(o.focus=!1);var i=n.localName==="img",a=[];if(Mt(i?[n]:n.querySelectorAll("img"),function(c){$t(o.filter)?o.filter.call(r,c)&&a.push(c):r.getImageURL(c)&&a.push(c)}),this.isImg=i,this.length=a.length,this.images=a,this.initBody(),Aa(document.createElement(it).style.transition)&&(o.transition=!1),o.inline){var s=0,l=function(){if(s+=1,s===r.length){var u;r.initializing=!1,r.delaying={abort:function(){clearTimeout(u)}},u=setTimeout(function(){r.delaying=!1,r.build()},0)}};this.initializing={abort:function(){Mt(a,function(u){u.complete||(It(u,pn,l),It(u,Ni,l))})}},Mt(a,function(c){if(c.complete)l();else{var u,d;et(c,pn,u=function(){It(c,Ni,d),l()},{once:!0}),et(c,Ni,d=function(){It(c,pn,u),l()},{once:!0})}})}else et(n,Ja,this.onStart=function(c){var u=c.target;u.localName==="img"&&(!$t(o.filter)||o.filter.call(r,u))&&r.view(r.images.indexOf(u))})}}},{key:"build",value:function(){if(!this.ready){var r=this.element,n=this.options,o=r.parentNode,i=document.createElement("div");i.innerHTML=Cq;var a=i.querySelector(".".concat(it,"-container")),s=a.querySelector(".".concat(it,"-title")),l=a.querySelector(".".concat(it,"-toolbar")),c=a.querySelector(".".concat(it,"-navbar")),u=a.querySelector(".".concat(it,"-button")),d=a.querySelector(".".concat(it,"-canvas"));if(this.parent=o,this.viewer=a,this.title=s,this.toolbar=l,this.navbar=c,this.button=u,this.canvas=d,this.footer=a.querySelector(".".concat(it,"-footer")),this.tooltipBox=a.querySelector(".".concat(it,"-tooltip")),this.player=a.querySelector(".".concat(it,"-player")),this.list=a.querySelector(".".concat(it,"-list")),a.id="".concat(it).concat(this.id),s.id="".concat(it,"Title").concat(this.id),Ze(s,n.title?Uc(Array.isArray(n.title)?n.title[0]:n.title):Ti),Ze(c,n.navbar?Uc(n.navbar):Ti),Ll(u,Ti,!n.button),n.keyboard&&u.setAttribute("tabindex",0),n.backdrop&&(Ze(a,"".concat(it,"-backdrop")),!n.inline&&n.backdrop!=="static"&&Kh(d,Gu,"hide")),Rl(n.className)&&n.className&&n.className.split(Jg).forEach(function(x){Ze(a,x)}),n.toolbar){var f=document.createElement("ul"),p=Pa(n.toolbar),h=Wc.slice(0,3),g=Wc.slice(7,9),v=Wc.slice(9);p||Ze(l,Uc(n.toolbar)),Mt(p?n.toolbar:Wc,function(x,y){var w=p&&Pa(x),C=p?em(y):x,S=w&&!Aa(x.show)?x.show:x;if(!(!S||!n.zoomable&&h.indexOf(C)!==-1||!n.rotatable&&g.indexOf(C)!==-1||!n.scalable&&v.indexOf(C)!==-1)){var T=w&&!Aa(x.size)?x.size:x,P=w&&!Aa(x.click)?x.click:x,A=document.createElement("li");n.keyboard&&A.setAttribute("tabindex",0),A.setAttribute("role","button"),Ze(A,"".concat(it,"-").concat(C)),$t(P)||Kh(A,Gu,C),Zt(S)&&Ze(A,Uc(S)),["small","large"].indexOf(T)!==-1?Ze(A,"".concat(it,"-").concat(T)):C==="play"&&Ze(A,"".concat(it,"-large")),$t(P)&&et(A,Ja,P),f.appendChild(A)}}),l.appendChild(f)}else Ze(l,Ti);if(!n.rotatable){var m=l.querySelectorAll('li[class*="rotate"]');Ze(m,ol),Mt(m,function(x){l.appendChild(x)})}if(n.inline)Ze(u,Sq),Pn(a,{zIndex:n.zIndexInline}),window.getComputedStyle(o).position==="static"&&Pn(o,{position:"relative"}),o.insertBefore(a,r.nextSibling);else{Ze(u,wq),Ze(a,Gh),Ze(a,du),Ze(a,Ti),Pn(a,{zIndex:n.zIndex});var b=n.container;Rl(b)&&(b=r.ownerDocument.querySelector(b)),b||(b=this.body),b.appendChild(a)}if(n.inline&&(this.render(),this.bind(),this.isShown=!0),this.ready=!0,$t(n.ready)&&et(r,N1,n.ready,{once:!0}),cr(r,N1)===!1){this.ready=!1;return}this.ready&&n.inline&&this.view(this.index)}}}],[{key:"noConflict",value:function(){return window.Viewer=Vq,e}},{key:"setDefaults",value:function(r){nn(P1,Pa(r)&&r)}}]),e}();nn(ts.prototype,Nq,Hq,jq,Wq,Uq);/*!
|
||
* v-viewer v3.0.11
|
||
* https://github.com/mirari/v-viewer#readme
|
||
*
|
||
* Copyright 2022 mirari
|
||
* Released under the MIT license
|
||
*
|
||
* Date: 2022-10-25T08:49:33.301Z
|
||
*/var qc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Gq(e){return e}var CE=Gq;function Yq(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var Kq=Yq,Xq=Kq,rx=Math.max;function Zq(e,t,r){return t=rx(t===void 0?e.length-1:t,0),function(){for(var n=arguments,o=-1,i=rx(n.length-t,0),a=Array(i);++o<i;)a[o]=n[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=n[o];return s[t]=r(a),Xq(e,this,s)}}var Qq=Zq;function Jq(e){return function(){return e}}var eG=Jq,tG=typeof qc=="object"&&qc&&qc.Object===Object&&qc,wE=tG,rG=wE,nG=typeof self=="object"&&self&&self.Object===Object&&self,oG=rG||nG||Function("return this")(),jd=oG,iG=jd,aG=iG.Symbol,SE=aG,nx=SE,_E=Object.prototype,sG=_E.hasOwnProperty,lG=_E.toString,Ls=nx?nx.toStringTag:void 0;function cG(e){var t=sG.call(e,Ls),r=e[Ls];try{e[Ls]=void 0;var n=!0}catch{}var o=lG.call(e);return n&&(t?e[Ls]=r:delete e[Ls]),o}var uG=cG,dG=Object.prototype,fG=dG.toString;function hG(e){return fG.call(e)}var pG=hG,ox=SE,gG=uG,mG=pG,vG="[object Null]",bG="[object Undefined]",ix=ox?ox.toStringTag:void 0;function xG(e){return e==null?e===void 0?bG:vG:ix&&ix in Object(e)?gG(e):mG(e)}var Wd=xG;function yG(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Ss=yG,CG=Wd,wG=Ss,SG="[object AsyncFunction]",_G="[object Function]",EG="[object GeneratorFunction]",TG="[object Proxy]";function kG(e){if(!wG(e))return!1;var t=CG(e);return t==_G||t==EG||t==SG||t==TG}var EE=kG,AG=jd,PG=AG["__core-js_shared__"],$G=PG,e0=$G,ax=function(){var e=/[^.]+$/.exec(e0&&e0.keys&&e0.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function IG(e){return!!ax&&ax in e}var BG=IG,DG=Function.prototype,OG=DG.toString;function RG(e){if(e!=null){try{return OG.call(e)}catch{}try{return e+""}catch{}}return""}var LG=RG,FG=EE,MG=BG,zG=Ss,NG=LG,HG=/[\\^$.*+?()[\]{}|]/g,jG=/^\[object .+?Constructor\]$/,WG=Function.prototype,UG=Object.prototype,VG=WG.toString,qG=UG.hasOwnProperty,GG=RegExp("^"+VG.call(qG).replace(HG,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function YG(e){if(!zG(e)||MG(e))return!1;var t=FG(e)?GG:jG;return t.test(NG(e))}var KG=YG;function XG(e,t){return e==null?void 0:e[t]}var ZG=XG,QG=KG,JG=ZG;function eY(e,t){var r=JG(e,t);return QG(r)?r:void 0}var tY=eY,rY=tY,nY=function(){try{var e=rY(Object,"defineProperty");return e({},"",{}),e}catch{}}(),oY=nY,iY=eG,sx=oY,aY=CE,sY=sx?function(e,t){return sx(e,"toString",{configurable:!0,enumerable:!1,value:iY(t),writable:!0})}:aY,lY=sY,cY=800,uY=16,dY=Date.now;function fY(e){var t=0,r=0;return function(){var n=dY(),o=uY-(n-r);if(r=n,o>0){if(++t>=cY)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var hY=fY,pY=lY,gY=hY,mY=gY(pY),vY=mY,bY=CE,xY=Qq,yY=vY;function CY(e,t){return yY(xY(e,t,bY),e+"")}var wY=CY;function SY(e,t){return e===t||e!==e&&t!==t}var TE=SY,_Y=9007199254740991;function EY(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=_Y}var kE=EY,TY=EE,kY=kE;function AY(e){return e!=null&&kY(e.length)&&!TY(e)}var AE=AY,PY=9007199254740991,$Y=/^(?:0|[1-9]\d*)$/;function IY(e,t){var r=typeof e;return t=t??PY,!!t&&(r=="number"||r!="symbol"&&$Y.test(e))&&e>-1&&e%1==0&&e<t}var PE=IY,BY=TE,DY=AE,OY=PE,RY=Ss;function LY(e,t,r){if(!RY(r))return!1;var n=typeof t;return(n=="number"?DY(r)&&OY(t,r.length):n=="string"&&t in r)?BY(r[t],e):!1}var FY=LY;function MY(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var zY=MY;function NY(e){return e!=null&&typeof e=="object"}var Ud=NY,HY=Wd,jY=Ud,WY="[object Arguments]";function UY(e){return jY(e)&&HY(e)==WY}var VY=UY,lx=VY,qY=Ud,$E=Object.prototype,GY=$E.hasOwnProperty,YY=$E.propertyIsEnumerable,KY=lx(function(){return arguments}())?lx:function(e){return qY(e)&&GY.call(e,"callee")&&!YY.call(e,"callee")},XY=KY,ZY=Array.isArray,QY=ZY,Xh={exports:{}};function JY(){return!1}var eK=JY;(function(e,t){var r=jd,n=eK,o=t&&!t.nodeType&&t,i=o&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===o,s=a?r.Buffer:void 0,l=s?s.isBuffer:void 0,c=l||n;e.exports=c})(Xh,Xh.exports);var tK=Wd,rK=kE,nK=Ud,oK="[object Arguments]",iK="[object Array]",aK="[object Boolean]",sK="[object Date]",lK="[object Error]",cK="[object Function]",uK="[object Map]",dK="[object Number]",fK="[object Object]",hK="[object RegExp]",pK="[object Set]",gK="[object String]",mK="[object WeakMap]",vK="[object ArrayBuffer]",bK="[object DataView]",xK="[object Float32Array]",yK="[object Float64Array]",CK="[object Int8Array]",wK="[object Int16Array]",SK="[object Int32Array]",_K="[object Uint8Array]",EK="[object Uint8ClampedArray]",TK="[object Uint16Array]",kK="[object Uint32Array]",Ut={};Ut[xK]=Ut[yK]=Ut[CK]=Ut[wK]=Ut[SK]=Ut[_K]=Ut[EK]=Ut[TK]=Ut[kK]=!0;Ut[oK]=Ut[iK]=Ut[vK]=Ut[aK]=Ut[bK]=Ut[sK]=Ut[lK]=Ut[cK]=Ut[uK]=Ut[dK]=Ut[fK]=Ut[hK]=Ut[pK]=Ut[gK]=Ut[mK]=!1;function AK(e){return nK(e)&&rK(e.length)&&!!Ut[tK(e)]}var PK=AK;function $K(e){return function(t){return e(t)}}var IK=$K,Zh={exports:{}};(function(e,t){var r=wE,n=t&&!t.nodeType&&t,o=n&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===n,a=i&&r.process,s=function(){try{var l=o&&o.require&&o.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s})(Zh,Zh.exports);var BK=PK,DK=IK,cx=Zh.exports,ux=cx&&cx.isTypedArray,OK=ux?DK(ux):BK,RK=OK,LK=zY,FK=XY,MK=QY,zK=Xh.exports,NK=PE,HK=RK,jK=Object.prototype,WK=jK.hasOwnProperty;function UK(e,t){var r=MK(e),n=!r&&FK(e),o=!r&&!n&&zK(e),i=!r&&!n&&!o&&HK(e),a=r||n||o||i,s=a?LK(e.length,String):[],l=s.length;for(var c in e)(t||WK.call(e,c))&&!(a&&(c=="length"||o&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||NK(c,l)))&&s.push(c);return s}var VK=UK,qK=Object.prototype;function GK(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||qK;return e===r}var YK=GK;function KK(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var XK=KK,ZK=Ss,QK=YK,JK=XK,eX=Object.prototype,tX=eX.hasOwnProperty;function rX(e){if(!ZK(e))return JK(e);var t=QK(e),r=[];for(var n in e)n=="constructor"&&(t||!tX.call(e,n))||r.push(n);return r}var nX=rX,oX=VK,iX=nX,aX=AE;function sX(e){return aX(e)?oX(e,!0):iX(e)}var lX=sX,cX=wY,uX=TE,dX=FY,fX=lX,IE=Object.prototype,hX=IE.hasOwnProperty,pX=cX(function(e,t){e=Object(e);var r=-1,n=t.length,o=n>2?t[2]:void 0;for(o&&dX(t[0],t[1],o)&&(n=1);++r<n;)for(var i=t[r],a=fX(i),s=-1,l=a.length;++s<l;){var c=a[s],u=e[c];(u===void 0||uX(u,IE[c])&&!hX.call(e,c))&&(e[c]=i[c])}return e}),gX=pX;const mX=typeof window<"u"&&window!==null;yX();const vX=Object.prototype.propertyIsEnumerable,dx=Object.getOwnPropertySymbols;function hu(e){return typeof e=="function"||toString.call(e)==="[object Object]"}function bX(e){return typeof e=="object"?e===null:typeof e!="function"}function xX(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"}function yX(){return mX&&"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype?("isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get(){return this.intersectionRatio>0}}),!0):!1}function CX(e,...t){if(!hu(e))throw new TypeError("expected the first argument to be an object");if(t.length===0||typeof Symbol!="function"||typeof dx!="function")return e;for(const r of t){const n=dx(r);for(const o of n)vX.call(r,o)&&(e[o]=r[o])}return e}function BE(e,...t){let r=0;for(bX(e)&&(e=t[r++]),e||(e={});r<t.length;r++)if(hu(t[r])){for(const n of Object.keys(t[r]))xX(n)&&(hu(e[n])&&hu(t[r][n])?BE(e[n],t[r][n]):e[n]=t[r][n]);CX(e,t[r])}return e}const wX=({images:e=[],options:t})=>{t=BE(t,{inline:!1});const r=document.createElement("div"),n=k("div",{style:{display:"none"},class:["__viewer-token"]},e.map(s=>k("img",typeof s=="string"?{src:s}:s)));zv(n,r);const o=r.firstElementChild;document.body.appendChild(o);const i=new ts(o,t),a=i.destroy.bind(i);return i.destroy=function(){return a(),zv(null,r),i},i.show(),o.addEventListener("hidden",function(){this.viewer===i&&i.destroy()}),i};var SX=jd,_X=function(){return SX.Date.now()},EX=_X,TX=/\s/;function kX(e){for(var t=e.length;t--&&TX.test(e.charAt(t)););return t}var AX=kX,PX=AX,$X=/^\s+/;function IX(e){return e&&e.slice(0,PX(e)+1).replace($X,"")}var BX=IX,DX=Wd,OX=Ud,RX="[object Symbol]";function LX(e){return typeof e=="symbol"||OX(e)&&DX(e)==RX}var FX=LX,MX=BX,fx=Ss,zX=FX,hx=0/0,NX=/^[-+]0x[0-9a-f]+$/i,HX=/^0b[01]+$/i,jX=/^0o[0-7]+$/i,WX=parseInt;function UX(e){if(typeof e=="number")return e;if(zX(e))return hx;if(fx(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=fx(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=MX(e);var r=HX.test(e);return r||jX.test(e)?WX(e.slice(2),r?2:8):NX.test(e)?hx:+e}var VX=UX,qX=Ss,t0=EX,px=VX,GX="Expected a function",YX=Math.max,KX=Math.min;function XX(e,t,r){var n,o,i,a,s,l,c=0,u=!1,d=!1,f=!0;if(typeof e!="function")throw new TypeError(GX);t=px(t)||0,qX(r)&&(u=!!r.leading,d="maxWait"in r,i=d?YX(px(r.maxWait)||0,t):i,f="trailing"in r?!!r.trailing:f);function p(C){var S=n,T=o;return n=o=void 0,c=C,a=e.apply(T,S),a}function h(C){return c=C,s=setTimeout(m,t),u?p(C):a}function g(C){var S=C-l,T=C-c,P=t-S;return d?KX(P,i-T):P}function v(C){var S=C-l,T=C-c;return l===void 0||S>=t||S<0||d&&T>=i}function m(){var C=t0();if(v(C))return b(C);s=setTimeout(m,g(C))}function b(C){return s=void 0,f&&n?p(C):(n=o=void 0,a)}function x(){s!==void 0&&clearTimeout(s),c=0,n=l=o=s=void 0}function y(){return s===void 0?a:b(t0())}function w(){var C=t0(),S=v(C);if(n=arguments,o=this,l=C,S){if(s===void 0)return h(l);if(d)return clearTimeout(s),s=setTimeout(m,t),p(l)}return s===void 0&&(s=setTimeout(m,t)),a}return w.cancel=x,w.flush=y,w}var ZX=XX;const QX=({name:e="viewer",debug:t=!1}={})=>{async function r(d,f,p=!1,h=!1){await zt(),!(h&&!n(d))&&(p||!d[`$${e}`]?(a(d),d[`$${e}`]=new ts(d,f),c("Viewer created")):(d[`$${e}`].update(),c("Viewer updated")))}function n(d){const f=d.innerHTML.match(/<img([\w\W]+?)[\\/]?>/g),p=f?f.join(""):void 0;return d.__viewerImageDiffCache===p?(c("Element change detected, but image(s) has not changed"),!1):(c("Image change detected"),d.__viewerImageDiffCache=p,!0)}function o(d,f,p,h){s(d);const g=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;if(!g){c("Observer not supported");return}const v=new g(b=>{b.forEach(x=>{c(`Viewer mutation:${x.type}`),p(d,f,h,!0)})}),m={attributes:!0,childList:!0,characterData:!0,subtree:!0};v.observe(d,m),d.__viewerMutationObserver=v,c("Observer created")}function i(d,f,p,h){d.__viewerUnwatch=Ye(()=>f.value,(g,v)=>{c("Change detected by watcher: ",f.value),h(d,g,!0,!1)},{deep:!0}),c("Watcher created, expression: ",f.value)}function a(d){d[`$${e}`]&&(d[`$${e}`].destroy(),delete d[`$${e}`],c("Viewer destroyed"))}function s(d){d.__viewerMutationObserver&&(d.__viewerMutationObserver.disconnect(),delete d.__viewerMutationObserver,c("observer destroyed"))}function l(d){d.__viewerUnwatch&&(d.__viewerUnwatch(),delete d.__viewerUnwatch,c("Watcher destroyed"))}function c(...d){t&&console.log(...d)}return{mounted(d,f,p){c("Viewer bind");const h=ZX(r,50);h(d,f.value),i(d,f,p,h),f.modifiers.static||o(d,f.value,h,f.modifiers.rebuild)},unmounted(d){c("Viewer unbind"),s(d),l(d),a(d)}}};var JX=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r};const eZ=me({name:"Viewer",props:{images:{type:Array,default:()=>[]},rebuild:{type:Boolean,default:!1},trigger:{type:Object,default:null},options:{type:Object,default:()=>null}},emits:["inited"],setup(e,{emit:t}){let r;const n=z();function o(){r=new ts(n.value,e.options),t("inited",r)}function i(){r&&r.destroy()}function a(){i(),o()}function s(){r?(r.update(),t("inited",r)):o()}function l(){e.rebuild?a():s()}const c={deep:!0};return Ye(()=>e.images,()=>zt(()=>l()),c),Ye(()=>e.trigger,()=>zt(()=>l()),c),Ye(()=>e.options,()=>zt(()=>a()),c),St(()=>o()),Xi(()=>i()),{root:n,createViewer:o,rebuildViewer:a,updateViewer:s,destroyViewer:i}}}),tZ={ref:"root"};function rZ(e,t,r,n,o,i){return ge(),je("div",tZ,[Ua(e.$slots,"default",{images:e.images,options:e.options})],512)}var nZ=JX(eZ,[["render",rZ]]),oZ={install(e,{name:t="viewer",debug:r=!1,defaultOptions:n}={}){n&&ts.setDefaults(n),e.config.globalProperties[`$${t}Api`]=wX,e.component(t,gX(nZ,{name:t})),e.directive(t,QX({name:t,debug:r}))},setDefaults(e){ts.setDefaults(e)}};/*!
|
||
* vue-router v4.3.0
|
||
* (c) 2024 Eduardo San Martin Morote
|
||
* @license MIT
|
||
*/const _a=typeof document<"u";function iZ(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Tt=Object.assign;function r0(e,t){const r={};for(const n in t){const o=t[n];r[n]=On(o)?o.map(e):e(o)}return r}const il=()=>{},On=Array.isArray,DE=/#/g,aZ=/&/g,sZ=/\//g,lZ=/=/g,cZ=/\?/g,OE=/\+/g,uZ=/%5B/g,dZ=/%5D/g,RE=/%5E/g,fZ=/%60/g,LE=/%7B/g,hZ=/%7C/g,FE=/%7D/g,pZ=/%20/g;function tm(e){return encodeURI(""+e).replace(hZ,"|").replace(uZ,"[").replace(dZ,"]")}function gZ(e){return tm(e).replace(LE,"{").replace(FE,"}").replace(RE,"^")}function Qh(e){return tm(e).replace(OE,"%2B").replace(pZ,"+").replace(DE,"%23").replace(aZ,"%26").replace(fZ,"`").replace(LE,"{").replace(FE,"}").replace(RE,"^")}function mZ(e){return Qh(e).replace(lZ,"%3D")}function vZ(e){return tm(e).replace(DE,"%23").replace(cZ,"%3F")}function bZ(e){return e==null?"":vZ(e).replace(sZ,"%2F")}function Fl(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const xZ=/\/$/,yZ=e=>e.replace(xZ,"");function n0(e,t,r="/"){let n,o={},i="",a="";const s=t.indexOf("#");let l=t.indexOf("?");return s<l&&s>=0&&(l=-1),l>-1&&(n=t.slice(0,l),i=t.slice(l+1,s>-1?s:t.length),o=e(i)),s>-1&&(n=n||t.slice(0,s),a=t.slice(s,t.length)),n=_Z(n??t,r),{fullPath:n+(i&&"?")+i+a,path:n,query:o,hash:Fl(a)}}function CZ(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function gx(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function wZ(e,t,r){const n=t.matched.length-1,o=r.matched.length-1;return n>-1&&n===o&&rs(t.matched[n],r.matched[o])&&ME(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function rs(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function ME(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!SZ(e[r],t[r]))return!1;return!0}function SZ(e,t){return On(e)?mx(e,t):On(t)?mx(t,e):e===t}function mx(e,t){return On(t)?e.length===t.length&&e.every((r,n)=>r===t[n]):e.length===1&&e[0]===t}function _Z(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),n=e.split("/"),o=n[n.length-1];(o===".."||o===".")&&n.push("");let i=r.length-1,a,s;for(a=0;a<n.length;a++)if(s=n[a],s!==".")if(s==="..")i>1&&i--;else break;return r.slice(0,i).join("/")+"/"+n.slice(a).join("/")}var Ml;(function(e){e.pop="pop",e.push="push"})(Ml||(Ml={}));var al;(function(e){e.back="back",e.forward="forward",e.unknown=""})(al||(al={}));function EZ(e){if(!e)if(_a){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),yZ(e)}const TZ=/^[^#]+#/;function kZ(e,t){return e.replace(TZ,"#")+t}function AZ(e,t){const r=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-r.left-(t.left||0),top:n.top-r.top-(t.top||0)}}const Vd=()=>({left:window.scrollX,top:window.scrollY});function PZ(e){let t;if("el"in e){const r=e.el,n=typeof r=="string"&&r.startsWith("#"),o=typeof r=="string"?n?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!o)return;t=AZ(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function vx(e,t){return(history.state?history.state.position-t:-1)+e}const Jh=new Map;function $Z(e,t){Jh.set(e,t)}function IZ(e){const t=Jh.get(e);return Jh.delete(e),t}let BZ=()=>location.protocol+"//"+location.host;function zE(e,t){const{pathname:r,search:n,hash:o}=t,i=e.indexOf("#");if(i>-1){let s=o.includes(e.slice(i))?e.slice(i).length:1,l=o.slice(s);return l[0]!=="/"&&(l="/"+l),gx(l,"")}return gx(r,e)+n+o}function DZ(e,t,r,n){let o=[],i=[],a=null;const s=({state:f})=>{const p=zE(e,location),h=r.value,g=t.value;let v=0;if(f){if(r.value=p,t.value=f,a&&a===h){a=null;return}v=g?f.position-g.position:0}else n(p);o.forEach(m=>{m(r.value,h,{delta:v,type:Ml.pop,direction:v?v>0?al.forward:al.back:al.unknown})})};function l(){a=r.value}function c(f){o.push(f);const p=()=>{const h=o.indexOf(f);h>-1&&o.splice(h,1)};return i.push(p),p}function u(){const{history:f}=window;f.state&&f.replaceState(Tt({},f.state,{scroll:Vd()}),"")}function d(){for(const f of i)f();i=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:c,destroy:d}}function bx(e,t,r,n=!1,o=!1){return{back:e,current:t,forward:r,replaced:n,position:window.history.length,scroll:o?Vd():null}}function OZ(e){const{history:t,location:r}=window,n={value:zE(e,r)},o={value:t.state};o.value||i(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(l,c,u){const d=e.indexOf("#"),f=d>-1?(r.host&&document.querySelector("base")?e:e.slice(d))+l:BZ()+e+l;try{t[u?"replaceState":"pushState"](c,"",f),o.value=c}catch(p){console.error(p),r[u?"replace":"assign"](f)}}function a(l,c){const u=Tt({},t.state,bx(o.value.back,l,o.value.forward,!0),c,{position:o.value.position});i(l,u,!0),n.value=l}function s(l,c){const u=Tt({},o.value,t.state,{forward:l,scroll:Vd()});i(u.current,u,!0);const d=Tt({},bx(n.value,l,null),{position:u.position+1},c);i(l,d,!1),n.value=l}return{location:n,state:o,push:s,replace:a}}function RZ(e){e=EZ(e);const t=OZ(e),r=DZ(e,t.state,t.location,t.replace);function n(i,a=!0){a||r.pauseListeners(),history.go(i)}const o=Tt({location:"",base:e,go:n,createHref:kZ.bind(null,e)},t,r);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function LZ(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),RZ(e)}function FZ(e){return typeof e=="string"||e&&typeof e=="object"}function NE(e){return typeof e=="string"||typeof e=="symbol"}const Do={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},HE=Symbol("");var xx;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(xx||(xx={}));function ns(e,t){return Tt(new Error,{type:e,[HE]:!0},t)}function ao(e,t){return e instanceof Error&&HE in e&&(t==null||!!(e.type&t))}const yx="[^/]+?",MZ={sensitive:!1,strict:!1,start:!0,end:!0},zZ=/[.+*?^${}()[\]/\\]/g;function NZ(e,t){const r=Tt({},MZ,t),n=[];let o=r.start?"^":"";const i=[];for(const c of e){const u=c.length?[]:[90];r.strict&&!c.length&&(o+="/");for(let d=0;d<c.length;d++){const f=c[d];let p=40+(r.sensitive?.25:0);if(f.type===0)d||(o+="/"),o+=f.value.replace(zZ,"\\$&"),p+=40;else if(f.type===1){const{value:h,repeatable:g,optional:v,regexp:m}=f;i.push({name:h,repeatable:g,optional:v});const b=m||yx;if(b!==yx){p+=10;try{new RegExp(`(${b})`)}catch(y){throw new Error(`Invalid custom RegExp for param "${h}" (${b}): `+y.message)}}let x=g?`((?:${b})(?:/(?:${b}))*)`:`(${b})`;d||(x=v&&c.length<2?`(?:/${x})`:"/"+x),v&&(x+="?"),o+=x,p+=20,v&&(p+=-8),g&&(p+=-20),b===".*"&&(p+=-50)}u.push(p)}n.push(u)}if(r.strict&&r.end){const c=n.length-1;n[c][n[c].length-1]+=.7000000000000001}r.strict||(o+="/?"),r.end?o+="$":r.strict&&(o+="(?:/|$)");const a=new RegExp(o,r.sensitive?"":"i");function s(c){const u=c.match(a),d={};if(!u)return null;for(let f=1;f<u.length;f++){const p=u[f]||"",h=i[f-1];d[h.name]=p&&h.repeatable?p.split("/"):p}return d}function l(c){let u="",d=!1;for(const f of e){(!d||!u.endsWith("/"))&&(u+="/"),d=!1;for(const p of f)if(p.type===0)u+=p.value;else if(p.type===1){const{value:h,repeatable:g,optional:v}=p,m=h in c?c[h]:"";if(On(m)&&!g)throw new Error(`Provided param "${h}" is an array but it is not repeatable (* or + modifiers)`);const b=On(m)?m.join("/"):m;if(!b)if(v)f.length<2&&(u.endsWith("/")?u=u.slice(0,-1):d=!0);else throw new Error(`Missing required param "${h}"`);u+=b}}return u||"/"}return{re:a,score:n,keys:i,parse:s,stringify:l}}function HZ(e,t){let r=0;for(;r<e.length&&r<t.length;){const n=t[r]-e[r];if(n)return n;r++}return e.length<t.length?e.length===1&&e[0]===40+40?-1:1:e.length>t.length?t.length===1&&t[0]===40+40?1:-1:0}function jZ(e,t){let r=0;const n=e.score,o=t.score;for(;r<n.length&&r<o.length;){const i=HZ(n[r],o[r]);if(i)return i;r++}if(Math.abs(o.length-n.length)===1){if(Cx(n))return 1;if(Cx(o))return-1}return o.length-n.length}function Cx(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const WZ={type:0,value:""},UZ=/[a-zA-Z0-9_]/;function VZ(e){if(!e)return[[]];if(e==="/")return[[WZ]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${r})/"${c}": ${p}`)}let r=0,n=r;const o=[];let i;function a(){i&&o.push(i),i=[]}let s=0,l,c="",u="";function d(){c&&(r===0?i.push({type:0,value:c}):r===1||r===2||r===3?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),c="")}function f(){c+=l}for(;s<e.length;){if(l=e[s++],l==="\\"&&r!==2){n=r,r=4;continue}switch(r){case 0:l==="/"?(c&&d(),a()):l===":"?(d(),r=1):f();break;case 4:f(),r=n;break;case 1:l==="("?r=2:UZ.test(l)?f():(d(),r=0,l!=="*"&&l!=="?"&&l!=="+"&&s--);break;case 2:l===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+l:r=3:u+=l;break;case 3:d(),r=0,l!=="*"&&l!=="?"&&l!=="+"&&s--,u="";break;default:t("Unknown state");break}}return r===2&&t(`Unfinished custom RegExp for param "${c}"`),d(),a(),o}function qZ(e,t,r){const n=NZ(VZ(e.path),r),o=Tt(n,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function GZ(e,t){const r=[],n=new Map;t=Ex({strict:!1,end:!0,sensitive:!1},t);function o(u){return n.get(u)}function i(u,d,f){const p=!f,h=YZ(u);h.aliasOf=f&&f.record;const g=Ex(t,u),v=[h];if("alias"in u){const x=typeof u.alias=="string"?[u.alias]:u.alias;for(const y of x)v.push(Tt({},h,{components:f?f.record.components:h.components,path:y,aliasOf:f?f.record:h}))}let m,b;for(const x of v){const{path:y}=x;if(d&&y[0]!=="/"){const w=d.record.path,C=w[w.length-1]==="/"?"":"/";x.path=d.record.path+(y&&C+y)}if(m=qZ(x,d,g),f?f.alias.push(m):(b=b||m,b!==m&&b.alias.push(m),p&&u.name&&!_x(m)&&a(u.name)),h.children){const w=h.children;for(let C=0;C<w.length;C++)i(w[C],m,f&&f.children[C])}f=f||m,(m.record.components&&Object.keys(m.record.components).length||m.record.name||m.record.redirect)&&l(m)}return b?()=>{a(b)}:il}function a(u){if(NE(u)){const d=n.get(u);d&&(n.delete(u),r.splice(r.indexOf(d),1),d.children.forEach(a),d.alias.forEach(a))}else{const d=r.indexOf(u);d>-1&&(r.splice(d,1),u.record.name&&n.delete(u.record.name),u.children.forEach(a),u.alias.forEach(a))}}function s(){return r}function l(u){let d=0;for(;d<r.length&&jZ(u,r[d])>=0&&(u.record.path!==r[d].record.path||!jE(u,r[d]));)d++;r.splice(d,0,u),u.record.name&&!_x(u)&&n.set(u.record.name,u)}function c(u,d){let f,p={},h,g;if("name"in u&&u.name){if(f=n.get(u.name),!f)throw ns(1,{location:u});g=f.record.name,p=Tt(Sx(d.params,f.keys.filter(b=>!b.optional).concat(f.parent?f.parent.keys.filter(b=>b.optional):[]).map(b=>b.name)),u.params&&Sx(u.params,f.keys.map(b=>b.name))),h=f.stringify(p)}else if(u.path!=null)h=u.path,f=r.find(b=>b.re.test(h)),f&&(p=f.parse(h),g=f.record.name);else{if(f=d.name?n.get(d.name):r.find(b=>b.re.test(d.path)),!f)throw ns(1,{location:u,currentLocation:d});g=f.record.name,p=Tt({},d.params,u.params),h=f.stringify(p)}const v=[];let m=f;for(;m;)v.unshift(m.record),m=m.parent;return{name:g,path:h,params:p,matched:v,meta:XZ(v)}}return e.forEach(u=>i(u)),{addRoute:i,resolve:c,removeRoute:a,getRoutes:s,getRecordMatcher:o}}function Sx(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function YZ(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:KZ(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function KZ(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const n in e.components)t[n]=typeof r=="object"?r[n]:r;return t}function _x(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function XZ(e){return e.reduce((t,r)=>Tt(t,r.meta),{})}function Ex(e,t){const r={};for(const n in e)r[n]=n in t?t[n]:e[n];return r}function jE(e,t){return t.children.some(r=>r===e||jE(e,r))}function ZZ(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;o<n.length;++o){const i=n[o].replace(OE," "),a=i.indexOf("="),s=Fl(a<0?i:i.slice(0,a)),l=a<0?null:Fl(i.slice(a+1));if(s in t){let c=t[s];On(c)||(c=t[s]=[c]),c.push(l)}else t[s]=l}return t}function Tx(e){let t="";for(let r in e){const n=e[r];if(r=mZ(r),n==null){n!==void 0&&(t+=(t.length?"&":"")+r);continue}(On(n)?n.map(i=>i&&Qh(i)):[n&&Qh(n)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+r,i!=null&&(t+="="+i))})}return t}function QZ(e){const t={};for(const r in e){const n=e[r];n!==void 0&&(t[r]=On(n)?n.map(o=>o==null?null:""+o):n==null?n:""+n)}return t}const JZ=Symbol(""),kx=Symbol(""),qd=Symbol(""),rm=Symbol(""),ep=Symbol("");function Fs(){let e=[];function t(n){return e.push(n),()=>{const o=e.indexOf(n);o>-1&&e.splice(o,1)}}function r(){e=[]}return{add:t,list:()=>e.slice(),reset:r}}function Wo(e,t,r,n,o,i=a=>a()){const a=n&&(n.enterCallbacks[o]=n.enterCallbacks[o]||[]);return()=>new Promise((s,l)=>{const c=f=>{f===!1?l(ns(4,{from:r,to:t})):f instanceof Error?l(f):FZ(f)?l(ns(2,{from:t,to:f})):(a&&n.enterCallbacks[o]===a&&typeof f=="function"&&a.push(f),s())},u=i(()=>e.call(n&&n.instances[o],t,r,c));let d=Promise.resolve(u);e.length<3&&(d=d.then(c)),d.catch(f=>l(f))})}function o0(e,t,r,n,o=i=>i()){const i=[];for(const a of e)for(const s in a.components){let l=a.components[s];if(!(t!=="beforeRouteEnter"&&!a.instances[s]))if(eQ(l)){const u=(l.__vccOpts||l)[t];u&&i.push(Wo(u,r,n,a,s,o))}else{let c=l();i.push(()=>c.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${s}" at "${a.path}"`));const d=iZ(u)?u.default:u;a.components[s]=d;const p=(d.__vccOpts||d)[t];return p&&Wo(p,r,n,a,s,o)()}))}}return i}function eQ(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Ax(e){const t=Me(qd),r=Me(rm),n=R(()=>t.resolve(W(e.to))),o=R(()=>{const{matched:l}=n.value,{length:c}=l,u=l[c-1],d=r.matched;if(!u||!d.length)return-1;const f=d.findIndex(rs.bind(null,u));if(f>-1)return f;const p=Px(l[c-2]);return c>1&&Px(u)===p&&d[d.length-1].path!==p?d.findIndex(rs.bind(null,l[c-2])):f}),i=R(()=>o.value>-1&&nQ(r.params,n.value.params)),a=R(()=>o.value>-1&&o.value===r.matched.length-1&&ME(r.params,n.value.params));function s(l={}){return rQ(l)?t[W(e.replace)?"replace":"push"](W(e.to)).catch(il):Promise.resolve()}return{route:n,href:R(()=>n.value.href),isActive:i,isExactActive:a,navigate:s}}const tQ=me({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Ax,setup(e,{slots:t}){const r=Cn(Ax(e)),{options:n}=Me(qd),o=R(()=>({[$x(e.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[$x(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const i=t.default&&t.default(r);return e.custom?i:k("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:o.value},i)}}}),WE=tQ;function rQ(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function nQ(e,t){for(const r in t){const n=t[r],o=e[r];if(typeof n=="string"){if(n!==o)return!1}else if(!On(o)||o.length!==n.length||n.some((i,a)=>i!==o[a]))return!1}return!0}function Px(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const $x=(e,t,r)=>e??t??r,oQ=me({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const n=Me(ep),o=R(()=>e.route||n.value),i=Me(kx,0),a=R(()=>{let c=W(i);const{matched:u}=o.value;let d;for(;(d=u[c])&&!d.components;)c++;return c}),s=R(()=>o.value.matched[a.value]);dt(kx,R(()=>a.value+1)),dt(JZ,s),dt(ep,o);const l=z();return Ye(()=>[l.value,s.value,e.name],([c,u,d],[f,p,h])=>{u&&(u.instances[d]=c,p&&p!==u&&c&&c===f&&(u.leaveGuards.size||(u.leaveGuards=p.leaveGuards),u.updateGuards.size||(u.updateGuards=p.updateGuards))),c&&u&&(!p||!rs(u,p)||!f)&&(u.enterCallbacks[d]||[]).forEach(g=>g(c))},{flush:"post"}),()=>{const c=o.value,u=e.name,d=s.value,f=d&&d.components[u];if(!f)return Ix(r.default,{Component:f,route:c});const p=d.props[u],h=p?p===!0?c.params:typeof p=="function"?p(c):p:null,v=k(f,Tt({},h,t,{onVnodeUnmounted:m=>{m.component.isUnmounted&&(d.instances[u]=null)},ref:l}));return Ix(r.default,{Component:v,route:c})||v}}});function Ix(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const iQ=oQ;function aQ(e){const t=GZ(e.routes,e),r=e.parseQuery||ZZ,n=e.stringifyQuery||Tx,o=e.history,i=Fs(),a=Fs(),s=Fs(),l=vo(Do);let c=Do;_a&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=r0.bind(null,ee=>""+ee),d=r0.bind(null,bZ),f=r0.bind(null,Fl);function p(ee,se){let ce,xe;return NE(ee)?(ce=t.getRecordMatcher(ee),xe=se):xe=ee,t.addRoute(xe,ce)}function h(ee){const se=t.getRecordMatcher(ee);se&&t.removeRoute(se)}function g(){return t.getRoutes().map(ee=>ee.record)}function v(ee){return!!t.getRecordMatcher(ee)}function m(ee,se){if(se=Tt({},se||l.value),typeof ee=="string"){const E=n0(r,ee,se.path),$=t.resolve({path:E.path},se),L=o.createHref(E.fullPath);return Tt(E,$,{params:f($.params),hash:Fl(E.hash),redirectedFrom:void 0,href:L})}let ce;if(ee.path!=null)ce=Tt({},ee,{path:n0(r,ee.path,se.path).path});else{const E=Tt({},ee.params);for(const $ in E)E[$]==null&&delete E[$];ce=Tt({},ee,{params:d(E)}),se.params=d(se.params)}const xe=t.resolve(ce,se),Te=ee.hash||"";xe.params=u(f(xe.params));const Pe=CZ(n,Tt({},ee,{hash:gZ(Te),path:xe.path})),_=o.createHref(Pe);return Tt({fullPath:Pe,hash:Te,query:n===Tx?QZ(ee.query):ee.query||{}},xe,{redirectedFrom:void 0,href:_})}function b(ee){return typeof ee=="string"?n0(r,ee,l.value.path):Tt({},ee)}function x(ee,se){if(c!==ee)return ns(8,{from:se,to:ee})}function y(ee){return S(ee)}function w(ee){return y(Tt(b(ee),{replace:!0}))}function C(ee){const se=ee.matched[ee.matched.length-1];if(se&&se.redirect){const{redirect:ce}=se;let xe=typeof ce=="function"?ce(ee):ce;return typeof xe=="string"&&(xe=xe.includes("?")||xe.includes("#")?xe=b(xe):{path:xe},xe.params={}),Tt({query:ee.query,hash:ee.hash,params:xe.path!=null?{}:ee.params},xe)}}function S(ee,se){const ce=c=m(ee),xe=l.value,Te=ee.state,Pe=ee.force,_=ee.replace===!0,E=C(ce);if(E)return S(Tt(b(E),{state:typeof E=="object"?Tt({},Te,E.state):Te,force:Pe,replace:_}),se||ce);const $=ce;$.redirectedFrom=se;let L;return!Pe&&wZ(n,xe,ce)&&(L=ns(16,{to:$,from:xe}),X(xe,xe,!0,!1)),(L?Promise.resolve(L):A($,xe)).catch(M=>ao(M)?ao(M,2)?M:Ce(M):ae(M,$,xe)).then(M=>{if(M){if(ao(M,2))return S(Tt({replace:_},b(M.to),{state:typeof M.to=="object"?Tt({},Te,M.to.state):Te,force:Pe}),se||$)}else M=B($,xe,!0,_,Te);return I($,xe,M),M})}function T(ee,se){const ce=x(ee,se);return ce?Promise.reject(ce):Promise.resolve()}function P(ee){const se=ne.values().next().value;return se&&typeof se.runWithContext=="function"?se.runWithContext(ee):ee()}function A(ee,se){let ce;const[xe,Te,Pe]=sQ(ee,se);ce=o0(xe.reverse(),"beforeRouteLeave",ee,se);for(const E of xe)E.leaveGuards.forEach($=>{ce.push(Wo($,ee,se))});const _=T.bind(null,ee,se);return ce.push(_),Se(ce).then(()=>{ce=[];for(const E of i.list())ce.push(Wo(E,ee,se));return ce.push(_),Se(ce)}).then(()=>{ce=o0(Te,"beforeRouteUpdate",ee,se);for(const E of Te)E.updateGuards.forEach($=>{ce.push(Wo($,ee,se))});return ce.push(_),Se(ce)}).then(()=>{ce=[];for(const E of Pe)if(E.beforeEnter)if(On(E.beforeEnter))for(const $ of E.beforeEnter)ce.push(Wo($,ee,se));else ce.push(Wo(E.beforeEnter,ee,se));return ce.push(_),Se(ce)}).then(()=>(ee.matched.forEach(E=>E.enterCallbacks={}),ce=o0(Pe,"beforeRouteEnter",ee,se,P),ce.push(_),Se(ce))).then(()=>{ce=[];for(const E of a.list())ce.push(Wo(E,ee,se));return ce.push(_),Se(ce)}).catch(E=>ao(E,8)?E:Promise.reject(E))}function I(ee,se,ce){s.list().forEach(xe=>P(()=>xe(ee,se,ce)))}function B(ee,se,ce,xe,Te){const Pe=x(ee,se);if(Pe)return Pe;const _=se===Do,E=_a?history.state:{};ce&&(xe||_?o.replace(ee.fullPath,Tt({scroll:_&&E&&E.scroll},Te)):o.push(ee.fullPath,Te)),l.value=ee,X(ee,se,ce,_),Ce()}let D;function U(){D||(D=o.listen((ee,se,ce)=>{if(!$e.listening)return;const xe=m(ee),Te=C(xe);if(Te){S(Tt(Te,{replace:!0}),xe).catch(il);return}c=xe;const Pe=l.value;_a&&$Z(vx(Pe.fullPath,ce.delta),Vd()),A(xe,Pe).catch(_=>ao(_,12)?_:ao(_,2)?(S(_.to,xe).then(E=>{ao(E,20)&&!ce.delta&&ce.type===Ml.pop&&o.go(-1,!1)}).catch(il),Promise.reject()):(ce.delta&&o.go(-ce.delta,!1),ae(_,xe,Pe))).then(_=>{_=_||B(xe,Pe,!1),_&&(ce.delta&&!ao(_,8)?o.go(-ce.delta,!1):ce.type===Ml.pop&&ao(_,20)&&o.go(-1,!1)),I(xe,Pe,_)}).catch(il)}))}let F=Fs(),j=Fs(),K;function ae(ee,se,ce){Ce(ee);const xe=j.list();return xe.length?xe.forEach(Te=>Te(ee,se,ce)):console.error(ee),Promise.reject(ee)}function we(){return K&&l.value!==Do?Promise.resolve():new Promise((ee,se)=>{F.add([ee,se])})}function Ce(ee){return K||(K=!ee,U(),F.list().forEach(([se,ce])=>ee?ce(ee):se()),F.reset()),ee}function X(ee,se,ce,xe){const{scrollBehavior:Te}=e;if(!_a||!Te)return Promise.resolve();const Pe=!ce&&IZ(vx(ee.fullPath,0))||(xe||!ce)&&history.state&&history.state.scroll||null;return zt().then(()=>Te(ee,se,Pe)).then(_=>_&&PZ(_)).catch(_=>ae(_,ee,se))}const re=ee=>o.go(ee);let le;const ne=new Set,$e={currentRoute:l,listening:!0,addRoute:p,removeRoute:h,hasRoute:v,getRoutes:g,resolve:m,options:e,push:y,replace:w,go:re,back:()=>re(-1),forward:()=>re(1),beforeEach:i.add,beforeResolve:a.add,afterEach:s.add,onError:j.add,isReady:we,install(ee){const se=this;ee.component("RouterLink",WE),ee.component("RouterView",iQ),ee.config.globalProperties.$router=se,Object.defineProperty(ee.config.globalProperties,"$route",{enumerable:!0,get:()=>W(l)}),_a&&!le&&l.value===Do&&(le=!0,y(o.location).catch(Te=>{}));const ce={};for(const Te in Do)Object.defineProperty(ce,Te,{get:()=>l.value[Te],enumerable:!0});ee.provide(qd,se),ee.provide(rm,ww(ce)),ee.provide(ep,l);const xe=ee.unmount;ne.add(ee),ee.unmount=function(){ne.delete(ee),ne.size<1&&(c=Do,D&&D(),D=null,l.value=Do,le=!1,K=!1),xe()}}};function Se(ee){return ee.reduce((se,ce)=>se.then(()=>P(ce)),Promise.resolve())}return $e}function sQ(e,t){const r=[],n=[],o=[],i=Math.max(t.matched.length,e.matched.length);for(let a=0;a<i;a++){const s=t.matched[a];s&&(e.matched.find(c=>rs(c,s))?n.push(s):r.push(s));const l=e.matched[a];l&&(t.matched.find(c=>rs(c,l))||o.push(l))}return[r,n,o]}function Gd(){return Me(qd)}function nm(){return Me(rm)}var UE={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Qe,function(){return function(r){var n={};function o(i){if(n[i])return n[i].exports;var a=n[i]={i,l:!1,exports:{}};return r[i].call(a.exports,a,a.exports,o),a.l=!0,a.exports}return o.m=r,o.c=n,o.d=function(i,a,s){o.o(i,a)||Object.defineProperty(i,a,{enumerable:!0,get:s})},o.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},o.t=function(i,a){if(1&a&&(i=o(i)),8&a||4&a&&typeof i=="object"&&i&&i.__esModule)return i;var s=Object.create(null);if(o.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:i}),2&a&&typeof i!="string")for(var l in i)o.d(s,l,(function(c){return i[c]}).bind(null,l));return s},o.n=function(i){var a=i&&i.__esModule?function(){return i.default}:function(){return i};return o.d(a,"a",a),a},o.o=function(i,a){return Object.prototype.hasOwnProperty.call(i,a)},o.p="",o(o.s=0)}([function(r,n,o){var i,a,s=o(1)(),l=o(3),c=o(4),u=o(6),d=function(){var f=new c;return i=f.getResult(),a=new u,this};d.prototype={getSoftwareVersion:function(){return"0.1.11"},getBrowserData:function(){return i},getFingerprint:function(){var f="|",p=i.ua,h=this.getScreenPrint(),g=this.getPlugins(),v=this.getFonts(),m=this.isLocalStorage(),b=this.isSessionStorage(),x=this.getTimeZone(),y=this.getLanguage(),w=this.getSystemLanguage(),C=this.isCookie(),S=this.getCanvasPrint();return l(p+f+h+f+g+f+v+f+m+f+b+f+x+f+y+f+w+f+C+f+S,256)},getCustomFingerprint:function(){for(var f="|",p="",h=0;h<arguments.length;h++)p+=arguments[h]+f;return l(p,256)},getUserAgent:function(){return i.ua},getUserAgentLowerCase:function(){return i.ua.toLowerCase()},getBrowser:function(){return i.browser.name},getBrowserVersion:function(){return i.browser.version},getBrowserMajorVersion:function(){return i.browser.major},isIE:function(){return/IE/i.test(i.browser.name)},isChrome:function(){return/Chrome/i.test(i.browser.name)},isFirefox:function(){return/Firefox/i.test(i.browser.name)},isSafari:function(){return/Safari/i.test(i.browser.name)},isMobileSafari:function(){return/Mobile\sSafari/i.test(i.browser.name)},isOpera:function(){return/Opera/i.test(i.browser.name)},getEngine:function(){return i.engine.name},getEngineVersion:function(){return i.engine.version},getOS:function(){return i.os.name},getOSVersion:function(){return i.os.version},isWindows:function(){return/Windows/i.test(i.os.name)},isMac:function(){return/Mac/i.test(i.os.name)},isLinux:function(){return/Linux/i.test(i.os.name)},isUbuntu:function(){return/Ubuntu/i.test(i.os.name)},isSolaris:function(){return/Solaris/i.test(i.os.name)},getDevice:function(){return i.device.model},getDeviceType:function(){return i.device.type},getDeviceVendor:function(){return i.device.vendor},getCPU:function(){return i.cpu.architecture},isMobile:function(){var f=i.ua||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(f)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(f.substr(0,4))},isMobileMajor:function(){return this.isMobileAndroid()||this.isMobileBlackBerry()||this.isMobileIOS()||this.isMobileOpera()||this.isMobileWindows()},isMobileAndroid:function(){return!!i.ua.match(/Android/i)},isMobileOpera:function(){return!!i.ua.match(/Opera Mini/i)},isMobileWindows:function(){return!!i.ua.match(/IEMobile/i)},isMobileBlackBerry:function(){return!!i.ua.match(/BlackBerry/i)},isMobileIOS:function(){return!!i.ua.match(/iPhone|iPad|iPod/i)},isIphone:function(){return!!i.ua.match(/iPhone/i)},isIpad:function(){return!!i.ua.match(/iPad/i)},isIpod:function(){return!!i.ua.match(/iPod/i)},getScreenPrint:function(){return"Current Resolution: "+this.getCurrentResolution()+", Available Resolution: "+this.getAvailableResolution()+", Color Depth: "+this.getColorDepth()+", Device XDPI: "+this.getDeviceXDPI()+", Device YDPI: "+this.getDeviceYDPI()},getColorDepth:function(){return screen.colorDepth},getCurrentResolution:function(){return screen.width+"x"+screen.height},getAvailableResolution:function(){return screen.availWidth+"x"+screen.availHeight},getDeviceXDPI:function(){return screen.deviceXDPI},getDeviceYDPI:function(){return screen.deviceYDPI},getPlugins:function(){for(var f="",p=0;p<navigator.plugins.length;p++)p==navigator.plugins.length-1?f+=navigator.plugins[p].name:f+=navigator.plugins[p].name+", ";return f},isJava:function(){return navigator.javaEnabled()},getJavaVersion:function(){throw new Error("Please use client.java.js or client.js if you need this functionality!")},isFlash:function(){return!!navigator.plugins["Shockwave Flash"]},getFlashVersion:function(){throw new Error("Please use client.flash.js or client.js if you need this functionality!")},isSilverlight:function(){return!!navigator.plugins["Silverlight Plug-In"]},getSilverlightVersion:function(){return this.isSilverlight()?navigator.plugins["Silverlight Plug-In"].description:""},isMimeTypes:function(){return!(!navigator.mimeTypes||!navigator.mimeTypes.length)},getMimeTypes:function(){var f="";if(navigator.mimeTypes)for(var p=0;p<navigator.mimeTypes.length;p++)p==navigator.mimeTypes.length-1?f+=navigator.mimeTypes[p].description:f+=navigator.mimeTypes[p].description+", ";return f},isFont:function(f){return a.detect(f)},getFonts:function(){for(var f=["Abadi MT Condensed Light","Adobe Fangsong Std","Adobe Hebrew","Adobe Ming Std","Agency FB","Aharoni","Andalus","Angsana New","AngsanaUPC","Aparajita","Arab","Arabic Transparent","Arabic Typesetting","Arial Baltic","Arial Black","Arial CE","Arial CYR","Arial Greek","Arial TUR","Arial","Batang","BatangChe","Bauhaus 93","Bell MT","Bitstream Vera Serif","Bodoni MT","Bookman Old Style","Braggadocio","Broadway","Browallia New","BrowalliaUPC","Calibri Light","Calibri","Californian FB","Cambria Math","Cambria","Candara","Castellar","Casual","Centaur","Century Gothic","Chalkduster","Colonna MT","Comic Sans MS","Consolas","Constantia","Copperplate Gothic Light","Corbel","Cordia New","CordiaUPC","Courier New Baltic","Courier New CE","Courier New CYR","Courier New Greek","Courier New TUR","Courier New","DFKai-SB","DaunPenh","David","DejaVu LGC Sans Mono","Desdemona","DilleniaUPC","DokChampa","Dotum","DotumChe","Ebrima","Engravers MT","Eras Bold ITC","Estrangelo Edessa","EucrosiaUPC","Euphemia","Eurostile","FangSong","Forte","FrankRuehl","Franklin Gothic Heavy","Franklin Gothic Medium","FreesiaUPC","French Script MT","Gabriola","Gautami","Georgia","Gigi","Gisha","Goudy Old Style","Gulim","GulimChe","GungSeo","Gungsuh","GungsuhChe","Haettenschweiler","Harrington","Hei S","HeiT","Heisei Kaku Gothic","Hiragino Sans GB","Impact","Informal Roman","IrisUPC","Iskoola Pota","JasmineUPC","KacstOne","KaiTi","Kalinga","Kartika","Khmer UI","Kino MT","KodchiangUPC","Kokila","Kozuka Gothic Pr6N","Lao UI","Latha","Leelawadee","Levenim MT","LilyUPC","Lohit Gujarati","Loma","Lucida Bright","Lucida Console","Lucida Fax","Lucida Sans Unicode","MS Gothic","MS Mincho","MS PGothic","MS PMincho","MS Reference Sans Serif","MS UI Gothic","MV Boli","Magneto","Malgun Gothic","Mangal","Marlett","Matura MT Script Capitals","Meiryo UI","Meiryo","Menlo","Microsoft Himalaya","Microsoft JhengHei","Microsoft New Tai Lue","Microsoft PhagsPa","Microsoft Sans Serif","Microsoft Tai Le","Microsoft Uighur","Microsoft YaHei","Microsoft Yi Baiti","MingLiU","MingLiU-ExtB","MingLiU_HKSCS","MingLiU_HKSCS-ExtB","Miriam Fixed","Miriam","Mongolian Baiti","MoolBoran","NSimSun","Narkisim","News Gothic MT","Niagara Solid","Nyala","PMingLiU","PMingLiU-ExtB","Palace Script MT","Palatino Linotype","Papyrus","Perpetua","Plantagenet Cherokee","Playbill","Prelude Bold","Prelude Condensed Bold","Prelude Condensed Medium","Prelude Medium","PreludeCompressedWGL Black","PreludeCompressedWGL Bold","PreludeCompressedWGL Light","PreludeCompressedWGL Medium","PreludeCondensedWGL Black","PreludeCondensedWGL Bold","PreludeCondensedWGL Light","PreludeCondensedWGL Medium","PreludeWGL Black","PreludeWGL Bold","PreludeWGL Light","PreludeWGL Medium","Raavi","Rachana","Rockwell","Rod","Sakkal Majalla","Sawasdee","Script MT Bold","Segoe Print","Segoe Script","Segoe UI Light","Segoe UI Semibold","Segoe UI Symbol","Segoe UI","Shonar Bangla","Showcard Gothic","Shruti","SimHei","SimSun","SimSun-ExtB","Simplified Arabic Fixed","Simplified Arabic","Snap ITC","Sylfaen","Symbol","Tahoma","Times New Roman Baltic","Times New Roman CE","Times New Roman CYR","Times New Roman Greek","Times New Roman TUR","Times New Roman","TlwgMono","Traditional Arabic","Trebuchet MS","Tunga","Tw Cen MT Condensed Extra Bold","Ubuntu","Umpush","Univers","Utopia","Utsaah","Vani","Verdana","Vijaya","Vladimir Script","Vrinda","Webdings","Wide Latin","Wingdings"],p="",h=0;h<f.length;h++)a.detect(f[h])&&(p+=h==f.length-1?f[h]:f[h]+", ");return p},isLocalStorage:function(){try{return!!s.localStorage}catch{return!0}},isSessionStorage:function(){try{return!!s.sessionStorage}catch{return!0}},isCookie:function(){return navigator.cookieEnabled},getTimeZone:function(){var f,p;return f=new Date,(p=String(-f.getTimezoneOffset()/60))<0?"-"+("0"+(p*=-1)).slice(-2):"+"+("0"+p).slice(-2)},getLanguage:function(){return navigator.language},getSystemLanguage:function(){return navigator.systemLanguage||window.navigator.language},isCanvas:function(){var f=document.createElement("canvas");try{return!(!f.getContext||!f.getContext("2d"))}catch{return!1}},getCanvasPrint:function(){var f,p=document.createElement("canvas");try{f=p.getContext("2d")}catch{return""}var h="ClientJS,org <canvas> 1.0";return f.textBaseline="top",f.font="14px 'Arial'",f.textBaseline="alphabetic",f.fillStyle="#f60",f.fillRect(125,1,62,20),f.fillStyle="#069",f.fillText(h,2,15),f.fillStyle="rgba(102, 204, 0, 0.7)",f.fillText(h,4,17),p.toDataURL()}},n.ClientJS=d},function(r,n,o){var i=o(2);r.exports=function(){return typeof Qe=="object"&&Qe&&Qe.Math===Math&&Qe.Array===Array?Qe:i}},function(r,n,o){typeof self<"u"?r.exports=self:typeof window<"u"?r.exports=window:r.exports=Function("return this")()},function(r,n,o){r.exports=function(i,a){var s,l,c,u,d,f,p,h;for(s=3&i.length,l=i.length-s,c=a,d=3432918353,f=461845907,h=0;h<l;)p=255&i.charCodeAt(h)|(255&i.charCodeAt(++h))<<8|(255&i.charCodeAt(++h))<<16|(255&i.charCodeAt(++h))<<24,++h,c=27492+(65535&(u=5*(65535&(c=(c^=p=(65535&(p=(p=(65535&p)*d+(((p>>>16)*d&65535)<<16)&4294967295)<<15|p>>>17))*f+(((p>>>16)*f&65535)<<16)&4294967295)<<13|c>>>19))+((5*(c>>>16)&65535)<<16)&4294967295))+((58964+(u>>>16)&65535)<<16);switch(p=0,s){case 3:p^=(255&i.charCodeAt(h+2))<<16;case 2:p^=(255&i.charCodeAt(h+1))<<8;case 1:c^=p=(65535&(p=(p=(65535&(p^=255&i.charCodeAt(h)))*d+(((p>>>16)*d&65535)<<16)&4294967295)<<15|p>>>17))*f+(((p>>>16)*f&65535)<<16)&4294967295}return c^=i.length,c=2246822507*(65535&(c^=c>>>16))+((2246822507*(c>>>16)&65535)<<16)&4294967295,c=3266489909*(65535&(c^=c>>>13))+((3266489909*(c>>>16)&65535)<<16)&4294967295,(c^=c>>>16)>>>0}},function(r,n,o){var i;(function(a,s){var l="function",c="undefined",u="object",d="string",f="model",p="name",h="type",g="vendor",v="version",m="architecture",b="console",x="mobile",y="tablet",w="smarttv",C="wearable",S="embedded",T="Amazon",P="Apple",A="ASUS",I="BlackBerry",B="Firefox",D="Google",U="Huawei",F="LG",j="Microsoft",K="Motorola",ae="Opera",we="Samsung",Ce="Sony",X="Xiaomi",re="Zebra",le="Facebook",ne=function($){var L={};for(var M in $)L[$[M].toUpperCase()]=$[M];return L},$e=function($,L){return typeof $===d&&Se(L).indexOf(Se($))!==-1},Se=function($){return $.toLowerCase()},ee=function($,L){if(typeof $===d)return $=$.replace(/^\s\s*/,"").replace(/\s\s*$/,""),typeof L===c?$:$.substring(0,255)},se=function($,L){for(var M,J,oe,O,H,V,ue=0;ue<L.length&&!H;){var _e=L[ue],Ee=L[ue+1];for(M=J=0;M<_e.length&&!H;)if(H=_e[M++].exec($))for(oe=0;oe<Ee.length;oe++)V=H[++J],typeof(O=Ee[oe])===u&&O.length>0?O.length==2?typeof O[1]==l?this[O[0]]=O[1].call(this,V):this[O[0]]=O[1]:O.length==3?typeof O[1]!==l||O[1].exec&&O[1].test?this[O[0]]=V?V.replace(O[1],O[2]):s:this[O[0]]=V?O[1].call(this,V,O[2]):s:O.length==4&&(this[O[0]]=V?O[3].call(this,V.replace(O[1],O[2])):s):this[O]=V||s;ue+=2}},ce=function($,L){for(var M in L)if(typeof L[M]===u&&L[M].length>0){for(var J=0;J<L[M].length;J++)if($e(L[M][J],$))return M==="?"?s:M}else if($e(L[M],$))return M==="?"?s:M;return $},xe={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Te={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[v,[p,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[v,[p,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[p,v],[/opios[\/ ]+([\w\.]+)/i],[v,[p,"Opera Mini"]],[/\bopr\/([\w\.]+)/i],[v,[p,ae]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[p,v],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[v,[p,"UCBrowser"]],[/\bqbcore\/([\w\.]+)/i],[v,[p,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[v,[p,"WeChat"]],[/konqueror\/([\w\.]+)/i],[v,[p,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[v,[p,"IE"]],[/yabrowser\/([\w\.]+)/i],[v,[p,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[p,/(.+)/,"$1 Secure Browser"],v],[/\bfocus\/([\w\.]+)/i],[v,[p,"Firefox Focus"]],[/\bopt\/([\w\.]+)/i],[v,[p,"Opera Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[v,[p,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[v,[p,"Dolphin"]],[/coast\/([\w\.]+)/i],[v,[p,"Opera Coast"]],[/miuibrowser\/([\w\.]+)/i],[v,[p,"MIUI Browser"]],[/fxios\/([-\w\.]+)/i],[v,[p,B]],[/\bqihu|(qi?ho?o?|360)browser/i],[[p,"360 Browser"]],[/(oculus|samsung|sailfish)browser\/([\w\.]+)/i],[[p,/(.+)/,"$1 Browser"],v],[/(comodo_dragon)\/([\w\.]+)/i],[[p,/_/g," "],v],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[p,v],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i],[p],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[p,le],v],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[p,v],[/\bgsa\/([\w\.]+) .*safari\//i],[v,[p,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[v,[p,"Chrome Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[p,"Chrome WebView"],v],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[v,[p,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[p,v],[/version\/([\w\.]+) .*mobile\/\w+ (safari)/i],[v,[p,"Mobile Safari"]],[/version\/([\w\.]+) .*(mobile ?safari|safari)/i],[v,p],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[p,[v,ce,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[p,v],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[p,"Netscape"],v],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[v,[p,"Firefox Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[p,v]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[m,"amd64"]],[/(ia32(?=;))/i],[[m,Se]],[/((?:i[346]|x)86)[;\)]/i],[[m,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[m,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[m,"armhf"]],[/windows (ce|mobile); ppc;/i],[[m,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[m,/ower/,"",Se]],[/(sun4\w)[;\)]/i],[[m,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[m,Se]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[pt]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[f,[g,we],[h,y]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[f,[g,we],[h,x]],[/\((ip(?:hone|od)[\w ]*);/i],[f,[g,P],[h,x]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[f,[g,P],[h,y]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[f,[g,U],[h,y]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}-[atu]?[ln][01259x][012359][an]?)\b(?!.+d\/s)/i],[f,[g,U],[h,x]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[f,/_/g," "],[g,X],[h,x]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[f,/_/g," "],[g,X],[h,y]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007)\b/i],[f,[g,"OPPO"],[h,x]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[f,[g,"Vivo"],[h,x]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[f,[g,"Realme"],[h,x]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[f,[g,K],[h,x]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[f,[g,K],[h,y]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[f,[g,F],[h,y]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[f,[g,F],[h,x]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[f,[g,"Lenovo"],[h,y]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[f,/_/g," "],[g,"Nokia"],[h,x]],[/(pixel c)\b/i],[f,[g,D],[h,y]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[f,[g,D],[h,x]],[/droid.+ ([c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[f,[g,Ce],[h,x]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[f,"Xperia Tablet"],[g,Ce],[h,y]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[f,[g,"OnePlus"],[h,x]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[f,[g,T],[h,y]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[f,/(.+)/g,"Fire Phone $1"],[g,T],[h,x]],[/(playbook);[-\w\),; ]+(rim)/i],[f,g,[h,y]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[f,[g,I],[h,x]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[f,[g,A],[h,y]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[f,[g,A],[h,x]],[/(nexus 9)/i],[f,[g,"HTC"],[h,y]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony)[-_ ]?([-\w]*)/i],[g,[f,/_/g," "],[h,x]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[f,[g,"Acer"],[h,y]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[f,[g,"Meizu"],[h,x]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[f,[g,"Sharp"],[h,x]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[g,f,[h,x]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[g,f,[h,y]],[/(surface duo)/i],[f,[g,j],[h,y]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[f,[g,"Fairphone"],[h,x]],[/(u304aa)/i],[f,[g,"AT&T"],[h,x]],[/\bsie-(\w*)/i],[f,[g,"Siemens"],[h,x]],[/\b(rct\w+) b/i],[f,[g,"RCA"],[h,y]],[/\b(venue[\d ]{2,7}) b/i],[f,[g,"Dell"],[h,y]],[/\b(q(?:mv|ta)\w+) b/i],[f,[g,"Verizon"],[h,y]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[f,[g,"Barnes & Noble"],[h,y]],[/\b(tm\d{3}\w+) b/i],[f,[g,"NuVision"],[h,y]],[/\b(k88) b/i],[f,[g,"ZTE"],[h,y]],[/\b(nx\d{3}j) b/i],[f,[g,"ZTE"],[h,x]],[/\b(gen\d{3}) b.+49h/i],[f,[g,"Swiss"],[h,x]],[/\b(zur\d{3}) b/i],[f,[g,"Swiss"],[h,y]],[/\b((zeki)?tb.*\b) b/i],[f,[g,"Zeki"],[h,y]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[g,"Dragon Touch"],f,[h,y]],[/\b(ns-?\w{0,9}) b/i],[f,[g,"Insignia"],[h,y]],[/\b((nxa|next)-?\w{0,9}) b/i],[f,[g,"NextBook"],[h,y]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[g,"Voice"],f,[h,x]],[/\b(lvtel\-)?(v1[12]) b/i],[[g,"LvTel"],f,[h,x]],[/\b(ph-1) /i],[f,[g,"Essential"],[h,x]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[f,[g,"Envizen"],[h,y]],[/\b(trio[-\w\. ]+) b/i],[f,[g,"MachSpeed"],[h,y]],[/\btu_(1491) b/i],[f,[g,"Rotor"],[h,y]],[/(shield[\w ]+) b/i],[f,[g,"Nvidia"],[h,y]],[/(sprint) (\w+)/i],[g,f,[h,x]],[/(kin\.[onetw]{3})/i],[[f,/\./g," "],[g,j],[h,x]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[f,[g,re],[h,y]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[f,[g,re],[h,x]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[g,f,[h,b]],[/droid.+; (shield) bui/i],[f,[g,"Nvidia"],[h,b]],[/(playstation [345portablevi]+)/i],[f,[g,Ce],[h,b]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[f,[g,j],[h,b]],[/smart-tv.+(samsung)/i],[g,[h,w]],[/hbbtv.+maple;(\d+)/i],[[f,/^/,"SmartTV"],[g,we],[h,w]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[g,F],[h,w]],[/(apple) ?tv/i],[g,[f,"Apple TV"],[h,w]],[/crkey/i],[[f,"Chromecast"],[g,D],[h,w]],[/droid.+aft(\w)( bui|\))/i],[f,[g,T],[h,w]],[/\(dtv[\);].+(aquos)/i],[f,[g,"Sharp"],[h,w]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[g,ee],[f,ee],[h,w]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[h,w]],[/((pebble))app/i],[g,f,[h,C]],[/droid.+; (glass) \d/i],[f,[g,D],[h,C]],[/droid.+; (wt63?0{2,3})\)/i],[f,[g,re],[h,C]],[/(quest( 2)?)/i],[f,[g,le],[h,C]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[g,[h,S]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[f,[h,x]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[f,[h,y]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[h,y]],[/(phone|mobile(?:[;\/]| safari)|pda(?=.+windows ce))/i],[[h,x]],[/(android[-\w\. ]{0,9});.+buil/i],[f,[g,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[v,[p,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[v,[p,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[p,v],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[v,p]],os:[[/microsoft (windows) (vista|xp)/i],[p,v],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[p,[v,ce,xe]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[p,"Windows"],[v,ce,xe]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[v,/_/g,"."],[p,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[p,"Mac OS"],[v,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[v,p],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[p,v],[/\(bb(10);/i],[v,[p,I]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[v,[p,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[v,[p,"Firefox OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[v,[p,"webOS"]],[/crkey\/([\d\.]+)/i],[v,[p,"Chromecast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[p,"Chromium OS"],v],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[p,v],[/(sunos) ?([\w\.\d]*)/i],[[p,"Solaris"],v],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[p,v]]},Pe=function($,L){if(typeof $===u&&(L=$,$=s),!(this instanceof Pe))return new Pe($,L).getResult();var M=$||(typeof a!==c&&a.navigator&&a.navigator.userAgent?a.navigator.userAgent:""),J=L?function(oe,O){var H={};for(var V in oe)O[V]&&O[V].length%2==0?H[V]=O[V].concat(oe[V]):H[V]=oe[V];return H}(Te,L):Te;return this.getBrowser=function(){var oe,O={};return O.name=s,O.version=s,se.call(O,M,J.browser),O.major=typeof(oe=O.version)===d?oe.replace(/[^\d\.]/g,"").split(".")[0]:s,O},this.getCPU=function(){var oe={};return oe.architecture=s,se.call(oe,M,J.cpu),oe},this.getDevice=function(){var oe={};return oe.vendor=s,oe.model=s,oe.type=s,se.call(oe,M,J.device),oe},this.getEngine=function(){var oe={};return oe.name=s,oe.version=s,se.call(oe,M,J.engine),oe},this.getOS=function(){var oe={};return oe.name=s,oe.version=s,se.call(oe,M,J.os),oe},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return M},this.setUA=function(oe){return M=typeof oe===d&&oe.length>255?ee(oe,255):oe,this},this.setUA(M),this};Pe.VERSION="0.7.30",Pe.BROWSER=ne([p,v,"major"]),Pe.CPU=ne([m]),Pe.DEVICE=ne([f,g,h,b,x,w,y,C,S]),Pe.ENGINE=Pe.OS=ne([p,v]),typeof n!==c?(typeof r!==c&&r.exports&&(n=r.exports=Pe),n.UAParser=Pe):o(5)?(i=(function(){return Pe}).call(n,o,n,r))===s||(r.exports=i):typeof a!==c&&(a.UAParser=Pe);var _=typeof a!==c&&(a.jQuery||a.Zepto);if(_&&!_.ua){var E=new Pe;_.ua=E.getResult(),_.ua.get=function(){return E.getUA()},_.ua.set=function($){E.setUA($);var L=E.getResult();for(var M in L)_.ua[M]=L[M]}}})(typeof window=="object"?window:this)},function(r,n){(function(o){r.exports=o}).call(this,{})},function(r,n){r.exports=function(){var o=["monospace","sans-serif","serif"],i=document.getElementsByTagName("body")[0],a=document.createElement("span");a.style.fontSize="72px",a.innerHTML="mmmmmmmmmmlli";var s={},l={};for(var c in o)a.style.fontFamily=o[c],i.appendChild(a),s[o[c]]=a.offsetWidth,l[o[c]]=a.offsetHeight,i.removeChild(a);this.detect=function(u){var d=!1;for(var f in o){a.style.fontFamily=u+","+o[f],i.appendChild(a);var p=a.offsetWidth!=s[o[f]]||a.offsetHeight!=l[o[f]];i.removeChild(a),d=d||p}return d}}}])})})(UE);var lQ=UE.exports,VE={exports:{}};function cQ(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var i0={exports:{}};const uQ={},dQ=Object.freeze(Object.defineProperty({__proto__:null,default:uQ},Symbol.toStringTag,{value:"Module"})),fQ=uN(dQ);var Bx;function pt(){return Bx||(Bx=1,function(e,t){(function(r,n){e.exports=n()})(Qe,function(){var r=r||function(n,o){var i;if(typeof window<"u"&&window.crypto&&(i=window.crypto),typeof self<"u"&&self.crypto&&(i=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(i=globalThis.crypto),!i&&typeof window<"u"&&window.msCrypto&&(i=window.msCrypto),!i&&typeof Qe<"u"&&Qe.crypto&&(i=Qe.crypto),!i&&typeof cQ=="function")try{i=fQ}catch{}var a=function(){if(i){if(typeof i.getRandomValues=="function")try{return i.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof i.randomBytes=="function")try{return i.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},s=Object.create||function(){function b(){}return function(x){var y;return b.prototype=x,y=new b,b.prototype=null,y}}(),l={},c=l.lib={},u=c.Base=function(){return{extend:function(b){var x=s(this);return b&&x.mixIn(b),(!x.hasOwnProperty("init")||this.init===x.init)&&(x.init=function(){x.$super.init.apply(this,arguments)}),x.init.prototype=x,x.$super=this,x},create:function(){var b=this.extend();return b.init.apply(b,arguments),b},init:function(){},mixIn:function(b){for(var x in b)b.hasOwnProperty(x)&&(this[x]=b[x]);b.hasOwnProperty("toString")&&(this.toString=b.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),d=c.WordArray=u.extend({init:function(b,x){b=this.words=b||[],x!=o?this.sigBytes=x:this.sigBytes=b.length*4},toString:function(b){return(b||p).stringify(this)},concat:function(b){var x=this.words,y=b.words,w=this.sigBytes,C=b.sigBytes;if(this.clamp(),w%4)for(var S=0;S<C;S++){var T=y[S>>>2]>>>24-S%4*8&255;x[w+S>>>2]|=T<<24-(w+S)%4*8}else for(var P=0;P<C;P+=4)x[w+P>>>2]=y[P>>>2];return this.sigBytes+=C,this},clamp:function(){var b=this.words,x=this.sigBytes;b[x>>>2]&=4294967295<<32-x%4*8,b.length=n.ceil(x/4)},clone:function(){var b=u.clone.call(this);return b.words=this.words.slice(0),b},random:function(b){for(var x=[],y=0;y<b;y+=4)x.push(a());return new d.init(x,b)}}),f=l.enc={},p=f.Hex={stringify:function(b){for(var x=b.words,y=b.sigBytes,w=[],C=0;C<y;C++){var S=x[C>>>2]>>>24-C%4*8&255;w.push((S>>>4).toString(16)),w.push((S&15).toString(16))}return w.join("")},parse:function(b){for(var x=b.length,y=[],w=0;w<x;w+=2)y[w>>>3]|=parseInt(b.substr(w,2),16)<<24-w%8*4;return new d.init(y,x/2)}},h=f.Latin1={stringify:function(b){for(var x=b.words,y=b.sigBytes,w=[],C=0;C<y;C++){var S=x[C>>>2]>>>24-C%4*8&255;w.push(String.fromCharCode(S))}return w.join("")},parse:function(b){for(var x=b.length,y=[],w=0;w<x;w++)y[w>>>2]|=(b.charCodeAt(w)&255)<<24-w%4*8;return new d.init(y,x)}},g=f.Utf8={stringify:function(b){try{return decodeURIComponent(escape(h.stringify(b)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(b){return h.parse(unescape(encodeURIComponent(b)))}},v=c.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new d.init,this._nDataBytes=0},_append:function(b){typeof b=="string"&&(b=g.parse(b)),this._data.concat(b),this._nDataBytes+=b.sigBytes},_process:function(b){var x,y=this._data,w=y.words,C=y.sigBytes,S=this.blockSize,T=S*4,P=C/T;b?P=n.ceil(P):P=n.max((P|0)-this._minBufferSize,0);var A=P*S,I=n.min(A*4,C);if(A){for(var B=0;B<A;B+=S)this._doProcessBlock(w,B);x=w.splice(0,A),y.sigBytes-=I}return new d.init(x,I)},clone:function(){var b=u.clone.call(this);return b._data=this._data.clone(),b},_minBufferSize:0});c.Hasher=v.extend({cfg:u.extend(),init:function(b){this.cfg=this.cfg.extend(b),this.reset()},reset:function(){v.reset.call(this),this._doReset()},update:function(b){return this._append(b),this._process(),this},finalize:function(b){b&&this._append(b);var x=this._doFinalize();return x},blockSize:16,_createHelper:function(b){return function(x,y){return new b.init(y).finalize(x)}},_createHmacHelper:function(b){return function(x,y){return new m.HMAC.init(b,y).finalize(x)}}});var m=l.algo={};return l}(Math);return r})}(i0)),i0.exports}var a0={exports:{}},Dx;function Yd(){return Dx||(Dx=1,function(e,t){(function(r,n){e.exports=n(pt())})(Qe,function(r){return function(n){var o=r,i=o.lib,a=i.Base,s=i.WordArray,l=o.x64={};l.Word=a.extend({init:function(c,u){this.high=c,this.low=u}}),l.WordArray=a.extend({init:function(c,u){c=this.words=c||[],u!=n?this.sigBytes=u:this.sigBytes=c.length*8},toX32:function(){for(var c=this.words,u=c.length,d=[],f=0;f<u;f++){var p=c[f];d.push(p.high),d.push(p.low)}return s.create(d,this.sigBytes)},clone:function(){for(var c=a.clone.call(this),u=c.words=this.words.slice(0),d=u.length,f=0;f<d;f++)u[f]=u[f].clone();return c}})}(),r})}(a0)),a0.exports}var s0={exports:{}},Ox;function hQ(){return Ox||(Ox=1,function(e,t){(function(r,n){e.exports=n(pt())})(Qe,function(r){return function(){if(typeof ArrayBuffer=="function"){var n=r,o=n.lib,i=o.WordArray,a=i.init,s=i.init=function(l){if(l instanceof ArrayBuffer&&(l=new Uint8Array(l)),(l instanceof Int8Array||typeof Uint8ClampedArray<"u"&&l instanceof Uint8ClampedArray||l instanceof Int16Array||l instanceof Uint16Array||l instanceof Int32Array||l instanceof Uint32Array||l instanceof Float32Array||l instanceof Float64Array)&&(l=new Uint8Array(l.buffer,l.byteOffset,l.byteLength)),l instanceof Uint8Array){for(var c=l.byteLength,u=[],d=0;d<c;d++)u[d>>>2]|=l[d]<<24-d%4*8;a.call(this,u,c)}else a.apply(this,arguments)};s.prototype=i}}(),r.lib.WordArray})}(s0)),s0.exports}var l0={exports:{}},Rx;function pQ(){return Rx||(Rx=1,function(e,t){(function(r,n){e.exports=n(pt())})(Qe,function(r){return function(){var n=r,o=n.lib,i=o.WordArray,a=n.enc;a.Utf16=a.Utf16BE={stringify:function(l){for(var c=l.words,u=l.sigBytes,d=[],f=0;f<u;f+=2){var p=c[f>>>2]>>>16-f%4*8&65535;d.push(String.fromCharCode(p))}return d.join("")},parse:function(l){for(var c=l.length,u=[],d=0;d<c;d++)u[d>>>1]|=l.charCodeAt(d)<<16-d%2*16;return i.create(u,c*2)}},a.Utf16LE={stringify:function(l){for(var c=l.words,u=l.sigBytes,d=[],f=0;f<u;f+=2){var p=s(c[f>>>2]>>>16-f%4*8&65535);d.push(String.fromCharCode(p))}return d.join("")},parse:function(l){for(var c=l.length,u=[],d=0;d<c;d++)u[d>>>1]|=s(l.charCodeAt(d)<<16-d%2*16);return i.create(u,c*2)}};function s(l){return l<<8&4278255360|l>>>8&16711935}}(),r.enc.Utf16})}(l0)),l0.exports}var c0={exports:{}},Lx;function ia(){return Lx||(Lx=1,function(e,t){(function(r,n){e.exports=n(pt())})(Qe,function(r){return function(){var n=r,o=n.lib,i=o.WordArray,a=n.enc;a.Base64={stringify:function(l){var c=l.words,u=l.sigBytes,d=this._map;l.clamp();for(var f=[],p=0;p<u;p+=3)for(var h=c[p>>>2]>>>24-p%4*8&255,g=c[p+1>>>2]>>>24-(p+1)%4*8&255,v=c[p+2>>>2]>>>24-(p+2)%4*8&255,m=h<<16|g<<8|v,b=0;b<4&&p+b*.75<u;b++)f.push(d.charAt(m>>>6*(3-b)&63));var x=d.charAt(64);if(x)for(;f.length%4;)f.push(x);return f.join("")},parse:function(l){var c=l.length,u=this._map,d=this._reverseMap;if(!d){d=this._reverseMap=[];for(var f=0;f<u.length;f++)d[u.charCodeAt(f)]=f}var p=u.charAt(64);if(p){var h=l.indexOf(p);h!==-1&&(c=h)}return s(l,c,d)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function s(l,c,u){for(var d=[],f=0,p=0;p<c;p++)if(p%4){var h=u[l.charCodeAt(p-1)]<<p%4*2,g=u[l.charCodeAt(p)]>>>6-p%4*2,v=h|g;d[f>>>2]|=v<<24-f%4*8,f++}return i.create(d,f)}}(),r.enc.Base64})}(c0)),c0.exports}var u0={exports:{}},Fx;function gQ(){return Fx||(Fx=1,function(e,t){(function(r,n){e.exports=n(pt())})(Qe,function(r){return function(){var n=r,o=n.lib,i=o.WordArray,a=n.enc;a.Base64url={stringify:function(l,c){c===void 0&&(c=!0);var u=l.words,d=l.sigBytes,f=c?this._safe_map:this._map;l.clamp();for(var p=[],h=0;h<d;h+=3)for(var g=u[h>>>2]>>>24-h%4*8&255,v=u[h+1>>>2]>>>24-(h+1)%4*8&255,m=u[h+2>>>2]>>>24-(h+2)%4*8&255,b=g<<16|v<<8|m,x=0;x<4&&h+x*.75<d;x++)p.push(f.charAt(b>>>6*(3-x)&63));var y=f.charAt(64);if(y)for(;p.length%4;)p.push(y);return p.join("")},parse:function(l,c){c===void 0&&(c=!0);var u=l.length,d=c?this._safe_map:this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var p=0;p<d.length;p++)f[d.charCodeAt(p)]=p}var h=d.charAt(64);if(h){var g=l.indexOf(h);g!==-1&&(u=g)}return s(l,u,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function s(l,c,u){for(var d=[],f=0,p=0;p<c;p++)if(p%4){var h=u[l.charCodeAt(p-1)]<<p%4*2,g=u[l.charCodeAt(p)]>>>6-p%4*2,v=h|g;d[f>>>2]|=v<<24-f%4*8,f++}return i.create(d,f)}}(),r.enc.Base64url})}(u0)),u0.exports}var d0={exports:{}},Mx;function aa(){return Mx||(Mx=1,function(e,t){(function(r,n){e.exports=n(pt())})(Qe,function(r){return function(n){var o=r,i=o.lib,a=i.WordArray,s=i.Hasher,l=o.algo,c=[];(function(){for(var g=0;g<64;g++)c[g]=n.abs(n.sin(g+1))*4294967296|0})();var u=l.MD5=s.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(g,v){for(var m=0;m<16;m++){var b=v+m,x=g[b];g[b]=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360}var y=this._hash.words,w=g[v+0],C=g[v+1],S=g[v+2],T=g[v+3],P=g[v+4],A=g[v+5],I=g[v+6],B=g[v+7],D=g[v+8],U=g[v+9],F=g[v+10],j=g[v+11],K=g[v+12],ae=g[v+13],we=g[v+14],Ce=g[v+15],X=y[0],re=y[1],le=y[2],ne=y[3];X=d(X,re,le,ne,w,7,c[0]),ne=d(ne,X,re,le,C,12,c[1]),le=d(le,ne,X,re,S,17,c[2]),re=d(re,le,ne,X,T,22,c[3]),X=d(X,re,le,ne,P,7,c[4]),ne=d(ne,X,re,le,A,12,c[5]),le=d(le,ne,X,re,I,17,c[6]),re=d(re,le,ne,X,B,22,c[7]),X=d(X,re,le,ne,D,7,c[8]),ne=d(ne,X,re,le,U,12,c[9]),le=d(le,ne,X,re,F,17,c[10]),re=d(re,le,ne,X,j,22,c[11]),X=d(X,re,le,ne,K,7,c[12]),ne=d(ne,X,re,le,ae,12,c[13]),le=d(le,ne,X,re,we,17,c[14]),re=d(re,le,ne,X,Ce,22,c[15]),X=f(X,re,le,ne,C,5,c[16]),ne=f(ne,X,re,le,I,9,c[17]),le=f(le,ne,X,re,j,14,c[18]),re=f(re,le,ne,X,w,20,c[19]),X=f(X,re,le,ne,A,5,c[20]),ne=f(ne,X,re,le,F,9,c[21]),le=f(le,ne,X,re,Ce,14,c[22]),re=f(re,le,ne,X,P,20,c[23]),X=f(X,re,le,ne,U,5,c[24]),ne=f(ne,X,re,le,we,9,c[25]),le=f(le,ne,X,re,T,14,c[26]),re=f(re,le,ne,X,D,20,c[27]),X=f(X,re,le,ne,ae,5,c[28]),ne=f(ne,X,re,le,S,9,c[29]),le=f(le,ne,X,re,B,14,c[30]),re=f(re,le,ne,X,K,20,c[31]),X=p(X,re,le,ne,A,4,c[32]),ne=p(ne,X,re,le,D,11,c[33]),le=p(le,ne,X,re,j,16,c[34]),re=p(re,le,ne,X,we,23,c[35]),X=p(X,re,le,ne,C,4,c[36]),ne=p(ne,X,re,le,P,11,c[37]),le=p(le,ne,X,re,B,16,c[38]),re=p(re,le,ne,X,F,23,c[39]),X=p(X,re,le,ne,ae,4,c[40]),ne=p(ne,X,re,le,w,11,c[41]),le=p(le,ne,X,re,T,16,c[42]),re=p(re,le,ne,X,I,23,c[43]),X=p(X,re,le,ne,U,4,c[44]),ne=p(ne,X,re,le,K,11,c[45]),le=p(le,ne,X,re,Ce,16,c[46]),re=p(re,le,ne,X,S,23,c[47]),X=h(X,re,le,ne,w,6,c[48]),ne=h(ne,X,re,le,B,10,c[49]),le=h(le,ne,X,re,we,15,c[50]),re=h(re,le,ne,X,A,21,c[51]),X=h(X,re,le,ne,K,6,c[52]),ne=h(ne,X,re,le,T,10,c[53]),le=h(le,ne,X,re,F,15,c[54]),re=h(re,le,ne,X,C,21,c[55]),X=h(X,re,le,ne,D,6,c[56]),ne=h(ne,X,re,le,Ce,10,c[57]),le=h(le,ne,X,re,I,15,c[58]),re=h(re,le,ne,X,ae,21,c[59]),X=h(X,re,le,ne,P,6,c[60]),ne=h(ne,X,re,le,j,10,c[61]),le=h(le,ne,X,re,S,15,c[62]),re=h(re,le,ne,X,U,21,c[63]),y[0]=y[0]+X|0,y[1]=y[1]+re|0,y[2]=y[2]+le|0,y[3]=y[3]+ne|0},_doFinalize:function(){var g=this._data,v=g.words,m=this._nDataBytes*8,b=g.sigBytes*8;v[b>>>5]|=128<<24-b%32;var x=n.floor(m/4294967296),y=m;v[(b+64>>>9<<4)+15]=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,v[(b+64>>>9<<4)+14]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,g.sigBytes=(v.length+1)*4,this._process();for(var w=this._hash,C=w.words,S=0;S<4;S++){var T=C[S];C[S]=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360}return w},clone:function(){var g=s.clone.call(this);return g._hash=this._hash.clone(),g}});function d(g,v,m,b,x,y,w){var C=g+(v&m|~v&b)+x+w;return(C<<y|C>>>32-y)+v}function f(g,v,m,b,x,y,w){var C=g+(v&b|m&~b)+x+w;return(C<<y|C>>>32-y)+v}function p(g,v,m,b,x,y,w){var C=g+(v^m^b)+x+w;return(C<<y|C>>>32-y)+v}function h(g,v,m,b,x,y,w){var C=g+(m^(v|~b))+x+w;return(C<<y|C>>>32-y)+v}o.MD5=s._createHelper(u),o.HmacMD5=s._createHmacHelper(u)}(Math),r.MD5})}(d0)),d0.exports}var f0={exports:{}},zx;function qE(){return zx||(zx=1,function(e,t){(function(r,n){e.exports=n(pt())})(Qe,function(r){return function(){var n=r,o=n.lib,i=o.WordArray,a=o.Hasher,s=n.algo,l=[],c=s.SHA1=a.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(u,d){for(var f=this._hash.words,p=f[0],h=f[1],g=f[2],v=f[3],m=f[4],b=0;b<80;b++){if(b<16)l[b]=u[d+b]|0;else{var x=l[b-3]^l[b-8]^l[b-14]^l[b-16];l[b]=x<<1|x>>>31}var y=(p<<5|p>>>27)+m+l[b];b<20?y+=(h&g|~h&v)+1518500249:b<40?y+=(h^g^v)+1859775393:b<60?y+=(h&g|h&v|g&v)-1894007588:y+=(h^g^v)-899497514,m=v,v=g,g=h<<30|h>>>2,h=p,p=y}f[0]=f[0]+p|0,f[1]=f[1]+h|0,f[2]=f[2]+g|0,f[3]=f[3]+v|0,f[4]=f[4]+m|0},_doFinalize:function(){var u=this._data,d=u.words,f=this._nDataBytes*8,p=u.sigBytes*8;return d[p>>>5]|=128<<24-p%32,d[(p+64>>>9<<4)+14]=Math.floor(f/4294967296),d[(p+64>>>9<<4)+15]=f,u.sigBytes=d.length*4,this._process(),this._hash},clone:function(){var u=a.clone.call(this);return u._hash=this._hash.clone(),u}});n.SHA1=a._createHelper(c),n.HmacSHA1=a._createHmacHelper(c)}(),r.SHA1})}(f0)),f0.exports}var h0={exports:{}},Nx;function om(){return Nx||(Nx=1,function(e,t){(function(r,n){e.exports=n(pt())})(Qe,function(r){return function(n){var o=r,i=o.lib,a=i.WordArray,s=i.Hasher,l=o.algo,c=[],u=[];(function(){function p(m){for(var b=n.sqrt(m),x=2;x<=b;x++)if(!(m%x))return!1;return!0}function h(m){return(m-(m|0))*4294967296|0}for(var g=2,v=0;v<64;)p(g)&&(v<8&&(c[v]=h(n.pow(g,1/2))),u[v]=h(n.pow(g,1/3)),v++),g++})();var d=[],f=l.SHA256=s.extend({_doReset:function(){this._hash=new a.init(c.slice(0))},_doProcessBlock:function(p,h){for(var g=this._hash.words,v=g[0],m=g[1],b=g[2],x=g[3],y=g[4],w=g[5],C=g[6],S=g[7],T=0;T<64;T++){if(T<16)d[T]=p[h+T]|0;else{var P=d[T-15],A=(P<<25|P>>>7)^(P<<14|P>>>18)^P>>>3,I=d[T-2],B=(I<<15|I>>>17)^(I<<13|I>>>19)^I>>>10;d[T]=A+d[T-7]+B+d[T-16]}var D=y&w^~y&C,U=v&m^v&b^m&b,F=(v<<30|v>>>2)^(v<<19|v>>>13)^(v<<10|v>>>22),j=(y<<26|y>>>6)^(y<<21|y>>>11)^(y<<7|y>>>25),K=S+j+D+u[T]+d[T],ae=F+U;S=C,C=w,w=y,y=x+K|0,x=b,b=m,m=v,v=K+ae|0}g[0]=g[0]+v|0,g[1]=g[1]+m|0,g[2]=g[2]+b|0,g[3]=g[3]+x|0,g[4]=g[4]+y|0,g[5]=g[5]+w|0,g[6]=g[6]+C|0,g[7]=g[7]+S|0},_doFinalize:function(){var p=this._data,h=p.words,g=this._nDataBytes*8,v=p.sigBytes*8;return h[v>>>5]|=128<<24-v%32,h[(v+64>>>9<<4)+14]=n.floor(g/4294967296),h[(v+64>>>9<<4)+15]=g,p.sigBytes=h.length*4,this._process(),this._hash},clone:function(){var p=s.clone.call(this);return p._hash=this._hash.clone(),p}});o.SHA256=s._createHelper(f),o.HmacSHA256=s._createHmacHelper(f)}(Math),r.SHA256})}(h0)),h0.exports}var p0={exports:{}},Hx;function mQ(){return Hx||(Hx=1,function(e,t){(function(r,n,o){e.exports=n(pt(),om())})(Qe,function(r){return function(){var n=r,o=n.lib,i=o.WordArray,a=n.algo,s=a.SHA256,l=a.SHA224=s.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var c=s._doFinalize.call(this);return c.sigBytes-=4,c}});n.SHA224=s._createHelper(l),n.HmacSHA224=s._createHmacHelper(l)}(),r.SHA224})}(p0)),p0.exports}var g0={exports:{}},jx;function GE(){return jx||(jx=1,function(e,t){(function(r,n,o){e.exports=n(pt(),Yd())})(Qe,function(r){return function(){var n=r,o=n.lib,i=o.Hasher,a=n.x64,s=a.Word,l=a.WordArray,c=n.algo;function u(){return s.create.apply(s,arguments)}var d=[u(1116352408,3609767458),u(1899447441,602891725),u(3049323471,3964484399),u(3921009573,2173295548),u(961987163,4081628472),u(1508970993,3053834265),u(2453635748,2937671579),u(2870763221,3664609560),u(3624381080,2734883394),u(310598401,1164996542),u(607225278,1323610764),u(1426881987,3590304994),u(1925078388,4068182383),u(2162078206,991336113),u(2614888103,633803317),u(3248222580,3479774868),u(3835390401,2666613458),u(4022224774,944711139),u(264347078,2341262773),u(604807628,2007800933),u(770255983,1495990901),u(1249150122,1856431235),u(1555081692,3175218132),u(1996064986,2198950837),u(2554220882,3999719339),u(2821834349,766784016),u(2952996808,2566594879),u(3210313671,3203337956),u(3336571891,1034457026),u(3584528711,2466948901),u(113926993,3758326383),u(338241895,168717936),u(666307205,1188179964),u(773529912,1546045734),u(1294757372,1522805485),u(1396182291,2643833823),u(1695183700,2343527390),u(1986661051,1014477480),u(2177026350,1206759142),u(2456956037,344077627),u(2730485921,1290863460),u(2820302411,3158454273),u(3259730800,3505952657),u(3345764771,106217008),u(3516065817,3606008344),u(3600352804,1432725776),u(4094571909,1467031594),u(275423344,851169720),u(430227734,3100823752),u(506948616,1363258195),u(659060556,3750685593),u(883997877,3785050280),u(958139571,3318307427),u(1322822218,3812723403),u(1537002063,2003034995),u(1747873779,3602036899),u(1955562222,1575990012),u(2024104815,1125592928),u(2227730452,2716904306),u(2361852424,442776044),u(2428436474,593698344),u(2756734187,3733110249),u(3204031479,2999351573),u(3329325298,3815920427),u(3391569614,3928383900),u(3515267271,566280711),u(3940187606,3454069534),u(4118630271,4000239992),u(116418474,1914138554),u(174292421,2731055270),u(289380356,3203993006),u(460393269,320620315),u(685471733,587496836),u(852142971,1086792851),u(1017036298,365543100),u(1126000580,2618297676),u(1288033470,3409855158),u(1501505948,4234509866),u(1607167915,987167468),u(1816402316,1246189591)],f=[];(function(){for(var h=0;h<80;h++)f[h]=u()})();var p=c.SHA512=i.extend({_doReset:function(){this._hash=new l.init([new s.init(1779033703,4089235720),new s.init(3144134277,2227873595),new s.init(1013904242,4271175723),new s.init(2773480762,1595750129),new s.init(1359893119,2917565137),new s.init(2600822924,725511199),new s.init(528734635,4215389547),new s.init(1541459225,327033209)])},_doProcessBlock:function(h,g){for(var v=this._hash.words,m=v[0],b=v[1],x=v[2],y=v[3],w=v[4],C=v[5],S=v[6],T=v[7],P=m.high,A=m.low,I=b.high,B=b.low,D=x.high,U=x.low,F=y.high,j=y.low,K=w.high,ae=w.low,we=C.high,Ce=C.low,X=S.high,re=S.low,le=T.high,ne=T.low,$e=P,Se=A,ee=I,se=B,ce=D,xe=U,Te=F,Pe=j,_=K,E=ae,$=we,L=Ce,M=X,J=re,oe=le,O=ne,H=0;H<80;H++){var V,ue,_e=f[H];if(H<16)ue=_e.high=h[g+H*2]|0,V=_e.low=h[g+H*2+1]|0;else{var Ee=f[H-15],G=Ee.high,ie=Ee.low,Re=(G>>>1|ie<<31)^(G>>>8|ie<<24)^G>>>7,Ne=(ie>>>1|G<<31)^(ie>>>8|G<<24)^(ie>>>7|G<<25),lt=f[H-2],yt=lt.high,jt=lt.low,Qr=(yt>>>19|jt<<13)^(yt<<3|jt>>>29)^yt>>>6,ur=(jt>>>19|yt<<13)^(jt<<3|yt>>>29)^(jt>>>6|yt<<26),Fn=f[H-7],be=Fn.high,Ie=Fn.low,He=f[H-16],Ct=He.high,Ot=He.low;V=Ne+Ie,ue=Re+be+(V>>>0<Ne>>>0?1:0),V=V+ur,ue=ue+Qr+(V>>>0<ur>>>0?1:0),V=V+Ot,ue=ue+Ct+(V>>>0<Ot>>>0?1:0),_e.high=ue,_e.low=V}var dr=_&$^~_&M,mr=E&L^~E&J,At=$e&ee^$e&ce^ee&ce,Ar=Se&se^Se&xe^se&xe,_n=($e>>>28|Se<<4)^($e<<30|Se>>>2)^($e<<25|Se>>>7),ui=(Se>>>28|$e<<4)^(Se<<30|$e>>>2)^(Se<<25|$e>>>7),Ts=(_>>>14|E<<18)^(_>>>18|E<<14)^(_<<23|E>>>9),ko=(E>>>14|_<<18)^(E>>>18|_<<14)^(E<<23|_>>>9),oo=d[H],ks=oo.high,ca=oo.low,Sr=O+ko,Mr=oe+Ts+(Sr>>>0<O>>>0?1:0),Sr=Sr+mr,Mr=Mr+dr+(Sr>>>0<mr>>>0?1:0),Sr=Sr+ca,Mr=Mr+ks+(Sr>>>0<ca>>>0?1:0),Sr=Sr+V,Mr=Mr+ue+(Sr>>>0<V>>>0?1:0),Y=ui+Ar,pe=_n+At+(Y>>>0<ui>>>0?1:0);oe=M,O=J,M=$,J=L,$=_,L=E,E=Pe+Sr|0,_=Te+Mr+(E>>>0<Pe>>>0?1:0)|0,Te=ce,Pe=xe,ce=ee,xe=se,ee=$e,se=Se,Se=Sr+Y|0,$e=Mr+pe+(Se>>>0<Sr>>>0?1:0)|0}A=m.low=A+Se,m.high=P+$e+(A>>>0<Se>>>0?1:0),B=b.low=B+se,b.high=I+ee+(B>>>0<se>>>0?1:0),U=x.low=U+xe,x.high=D+ce+(U>>>0<xe>>>0?1:0),j=y.low=j+Pe,y.high=F+Te+(j>>>0<Pe>>>0?1:0),ae=w.low=ae+E,w.high=K+_+(ae>>>0<E>>>0?1:0),Ce=C.low=Ce+L,C.high=we+$+(Ce>>>0<L>>>0?1:0),re=S.low=re+J,S.high=X+M+(re>>>0<J>>>0?1:0),ne=T.low=ne+O,T.high=le+oe+(ne>>>0<O>>>0?1:0)},_doFinalize:function(){var h=this._data,g=h.words,v=this._nDataBytes*8,m=h.sigBytes*8;g[m>>>5]|=128<<24-m%32,g[(m+128>>>10<<5)+30]=Math.floor(v/4294967296),g[(m+128>>>10<<5)+31]=v,h.sigBytes=g.length*4,this._process();var b=this._hash.toX32();return b},clone:function(){var h=i.clone.call(this);return h._hash=this._hash.clone(),h},blockSize:1024/32});n.SHA512=i._createHelper(p),n.HmacSHA512=i._createHmacHelper(p)}(),r.SHA512})}(g0)),g0.exports}var m0={exports:{}},Wx;function vQ(){return Wx||(Wx=1,function(e,t){(function(r,n,o){e.exports=n(pt(),Yd(),GE())})(Qe,function(r){return function(){var n=r,o=n.x64,i=o.Word,a=o.WordArray,s=n.algo,l=s.SHA512,c=s.SHA384=l.extend({_doReset:function(){this._hash=new a.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var u=l._doFinalize.call(this);return u.sigBytes-=16,u}});n.SHA384=l._createHelper(c),n.HmacSHA384=l._createHmacHelper(c)}(),r.SHA384})}(m0)),m0.exports}var v0={exports:{}},Ux;function bQ(){return Ux||(Ux=1,function(e,t){(function(r,n,o){e.exports=n(pt(),Yd())})(Qe,function(r){return function(n){var o=r,i=o.lib,a=i.WordArray,s=i.Hasher,l=o.x64,c=l.Word,u=o.algo,d=[],f=[],p=[];(function(){for(var v=1,m=0,b=0;b<24;b++){d[v+5*m]=(b+1)*(b+2)/2%64;var x=m%5,y=(2*v+3*m)%5;v=x,m=y}for(var v=0;v<5;v++)for(var m=0;m<5;m++)f[v+5*m]=m+(2*v+3*m)%5*5;for(var w=1,C=0;C<24;C++){for(var S=0,T=0,P=0;P<7;P++){if(w&1){var A=(1<<P)-1;A<32?T^=1<<A:S^=1<<A-32}w&128?w=w<<1^113:w<<=1}p[C]=c.create(S,T)}})();var h=[];(function(){for(var v=0;v<25;v++)h[v]=c.create()})();var g=u.SHA3=s.extend({cfg:s.cfg.extend({outputLength:512}),_doReset:function(){for(var v=this._state=[],m=0;m<25;m++)v[m]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(v,m){for(var b=this._state,x=this.blockSize/2,y=0;y<x;y++){var w=v[m+2*y],C=v[m+2*y+1];w=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,C=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360;var S=b[y];S.high^=C,S.low^=w}for(var T=0;T<24;T++){for(var P=0;P<5;P++){for(var A=0,I=0,B=0;B<5;B++){var S=b[P+5*B];A^=S.high,I^=S.low}var D=h[P];D.high=A,D.low=I}for(var P=0;P<5;P++)for(var U=h[(P+4)%5],F=h[(P+1)%5],j=F.high,K=F.low,A=U.high^(j<<1|K>>>31),I=U.low^(K<<1|j>>>31),B=0;B<5;B++){var S=b[P+5*B];S.high^=A,S.low^=I}for(var ae=1;ae<25;ae++){var A,I,S=b[ae],we=S.high,Ce=S.low,X=d[ae];X<32?(A=we<<X|Ce>>>32-X,I=Ce<<X|we>>>32-X):(A=Ce<<X-32|we>>>64-X,I=we<<X-32|Ce>>>64-X);var re=h[f[ae]];re.high=A,re.low=I}var le=h[0],ne=b[0];le.high=ne.high,le.low=ne.low;for(var P=0;P<5;P++)for(var B=0;B<5;B++){var ae=P+5*B,S=b[ae],$e=h[ae],Se=h[(P+1)%5+5*B],ee=h[(P+2)%5+5*B];S.high=$e.high^~Se.high&ee.high,S.low=$e.low^~Se.low&ee.low}var S=b[0],se=p[T];S.high^=se.high,S.low^=se.low}},_doFinalize:function(){var v=this._data,m=v.words;this._nDataBytes*8;var b=v.sigBytes*8,x=this.blockSize*32;m[b>>>5]|=1<<24-b%32,m[(n.ceil((b+1)/x)*x>>>5)-1]|=128,v.sigBytes=m.length*4,this._process();for(var y=this._state,w=this.cfg.outputLength/8,C=w/8,S=[],T=0;T<C;T++){var P=y[T],A=P.high,I=P.low;A=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,I=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360,S.push(I),S.push(A)}return new a.init(S,w)},clone:function(){for(var v=s.clone.call(this),m=v._state=this._state.slice(0),b=0;b<25;b++)m[b]=m[b].clone();return v}});o.SHA3=s._createHelper(g),o.HmacSHA3=s._createHmacHelper(g)}(Math),r.SHA3})}(v0)),v0.exports}var b0={exports:{}},Vx;function xQ(){return Vx||(Vx=1,function(e,t){(function(r,n){e.exports=n(pt())})(Qe,function(r){/** @preserve
|
||
(c) 2012 by Cédric Mesnil. All rights reserved.
|
||
|
||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||
|
||
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
||
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||
*/return function(n){var o=r,i=o.lib,a=i.WordArray,s=i.Hasher,l=o.algo,c=a.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),u=a.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),d=a.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),f=a.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),p=a.create([0,1518500249,1859775393,2400959708,2840853838]),h=a.create([1352829926,1548603684,1836072691,2053994217,0]),g=l.RIPEMD160=s.extend({_doReset:function(){this._hash=a.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(C,S){for(var T=0;T<16;T++){var P=S+T,A=C[P];C[P]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360}var I=this._hash.words,B=p.words,D=h.words,U=c.words,F=u.words,j=d.words,K=f.words,ae,we,Ce,X,re,le,ne,$e,Se,ee;le=ae=I[0],ne=we=I[1],$e=Ce=I[2],Se=X=I[3],ee=re=I[4];for(var se,T=0;T<80;T+=1)se=ae+C[S+U[T]]|0,T<16?se+=v(we,Ce,X)+B[0]:T<32?se+=m(we,Ce,X)+B[1]:T<48?se+=b(we,Ce,X)+B[2]:T<64?se+=x(we,Ce,X)+B[3]:se+=y(we,Ce,X)+B[4],se=se|0,se=w(se,j[T]),se=se+re|0,ae=re,re=X,X=w(Ce,10),Ce=we,we=se,se=le+C[S+F[T]]|0,T<16?se+=y(ne,$e,Se)+D[0]:T<32?se+=x(ne,$e,Se)+D[1]:T<48?se+=b(ne,$e,Se)+D[2]:T<64?se+=m(ne,$e,Se)+D[3]:se+=v(ne,$e,Se)+D[4],se=se|0,se=w(se,K[T]),se=se+ee|0,le=ee,ee=Se,Se=w($e,10),$e=ne,ne=se;se=I[1]+Ce+Se|0,I[1]=I[2]+X+ee|0,I[2]=I[3]+re+le|0,I[3]=I[4]+ae+ne|0,I[4]=I[0]+we+$e|0,I[0]=se},_doFinalize:function(){var C=this._data,S=C.words,T=this._nDataBytes*8,P=C.sigBytes*8;S[P>>>5]|=128<<24-P%32,S[(P+64>>>9<<4)+14]=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360,C.sigBytes=(S.length+1)*4,this._process();for(var A=this._hash,I=A.words,B=0;B<5;B++){var D=I[B];I[B]=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360}return A},clone:function(){var C=s.clone.call(this);return C._hash=this._hash.clone(),C}});function v(C,S,T){return C^S^T}function m(C,S,T){return C&S|~C&T}function b(C,S,T){return(C|~S)^T}function x(C,S,T){return C&T|S&~T}function y(C,S,T){return C^(S|~T)}function w(C,S){return C<<S|C>>>32-S}o.RIPEMD160=s._createHelper(g),o.HmacRIPEMD160=s._createHmacHelper(g)}(),r.RIPEMD160})}(b0)),b0.exports}var x0={exports:{}},qx;function im(){return qx||(qx=1,function(e,t){(function(r,n){e.exports=n(pt())})(Qe,function(r){(function(){var n=r,o=n.lib,i=o.Base,a=n.enc,s=a.Utf8,l=n.algo;l.HMAC=i.extend({init:function(c,u){c=this._hasher=new c.init,typeof u=="string"&&(u=s.parse(u));var d=c.blockSize,f=d*4;u.sigBytes>f&&(u=c.finalize(u)),u.clamp();for(var p=this._oKey=u.clone(),h=this._iKey=u.clone(),g=p.words,v=h.words,m=0;m<d;m++)g[m]^=1549556828,v[m]^=909522486;p.sigBytes=h.sigBytes=f,this.reset()},reset:function(){var c=this._hasher;c.reset(),c.update(this._iKey)},update:function(c){return this._hasher.update(c),this},finalize:function(c){var u=this._hasher,d=u.finalize(c);u.reset();var f=u.finalize(this._oKey.clone().concat(d));return f}})})()})}(x0)),x0.exports}var y0={exports:{}},Gx;function yQ(){return Gx||(Gx=1,function(e,t){(function(r,n,o){e.exports=n(pt(),om(),im())})(Qe,function(r){return function(){var n=r,o=n.lib,i=o.Base,a=o.WordArray,s=n.algo,l=s.SHA256,c=s.HMAC,u=s.PBKDF2=i.extend({cfg:i.extend({keySize:128/32,hasher:l,iterations:25e4}),init:function(d){this.cfg=this.cfg.extend(d)},compute:function(d,f){for(var p=this.cfg,h=c.create(p.hasher,d),g=a.create(),v=a.create([1]),m=g.words,b=v.words,x=p.keySize,y=p.iterations;m.length<x;){var w=h.update(f).finalize(v);h.reset();for(var C=w.words,S=C.length,T=w,P=1;P<y;P++){T=h.finalize(T),h.reset();for(var A=T.words,I=0;I<S;I++)C[I]^=A[I]}g.concat(w),b[0]++}return g.sigBytes=x*4,g}});n.PBKDF2=function(d,f,p){return u.create(p).compute(d,f)}}(),r.PBKDF2})}(y0)),y0.exports}var C0={exports:{}},Yx;function oi(){return Yx||(Yx=1,function(e,t){(function(r,n,o){e.exports=n(pt(),qE(),im())})(Qe,function(r){return function(){var n=r,o=n.lib,i=o.Base,a=o.WordArray,s=n.algo,l=s.MD5,c=s.EvpKDF=i.extend({cfg:i.extend({keySize:128/32,hasher:l,iterations:1}),init:function(u){this.cfg=this.cfg.extend(u)},compute:function(u,d){for(var f,p=this.cfg,h=p.hasher.create(),g=a.create(),v=g.words,m=p.keySize,b=p.iterations;v.length<m;){f&&h.update(f),f=h.update(u).finalize(d),h.reset();for(var x=1;x<b;x++)f=h.finalize(f),h.reset();g.concat(f)}return g.sigBytes=m*4,g}});n.EvpKDF=function(u,d,f){return c.create(f).compute(u,d)}}(),r.EvpKDF})}(C0)),C0.exports}var w0={exports:{}},Kx;function kr(){return Kx||(Kx=1,function(e,t){(function(r,n,o){e.exports=n(pt(),oi())})(Qe,function(r){r.lib.Cipher||function(n){var o=r,i=o.lib,a=i.Base,s=i.WordArray,l=i.BufferedBlockAlgorithm,c=o.enc;c.Utf8;var u=c.Base64,d=o.algo,f=d.EvpKDF,p=i.Cipher=l.extend({cfg:a.extend(),createEncryptor:function(A,I){return this.create(this._ENC_XFORM_MODE,A,I)},createDecryptor:function(A,I){return this.create(this._DEC_XFORM_MODE,A,I)},init:function(A,I,B){this.cfg=this.cfg.extend(B),this._xformMode=A,this._key=I,this.reset()},reset:function(){l.reset.call(this),this._doReset()},process:function(A){return this._append(A),this._process()},finalize:function(A){A&&this._append(A);var I=this._doFinalize();return I},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function A(I){return typeof I=="string"?P:C}return function(I){return{encrypt:function(B,D,U){return A(D).encrypt(I,B,D,U)},decrypt:function(B,D,U){return A(D).decrypt(I,B,D,U)}}}}()});i.StreamCipher=p.extend({_doFinalize:function(){var A=this._process(!0);return A},blockSize:1});var h=o.mode={},g=i.BlockCipherMode=a.extend({createEncryptor:function(A,I){return this.Encryptor.create(A,I)},createDecryptor:function(A,I){return this.Decryptor.create(A,I)},init:function(A,I){this._cipher=A,this._iv=I}}),v=h.CBC=function(){var A=g.extend();A.Encryptor=A.extend({processBlock:function(B,D){var U=this._cipher,F=U.blockSize;I.call(this,B,D,F),U.encryptBlock(B,D),this._prevBlock=B.slice(D,D+F)}}),A.Decryptor=A.extend({processBlock:function(B,D){var U=this._cipher,F=U.blockSize,j=B.slice(D,D+F);U.decryptBlock(B,D),I.call(this,B,D,F),this._prevBlock=j}});function I(B,D,U){var F,j=this._iv;j?(F=j,this._iv=n):F=this._prevBlock;for(var K=0;K<U;K++)B[D+K]^=F[K]}return A}(),m=o.pad={},b=m.Pkcs7={pad:function(A,I){for(var B=I*4,D=B-A.sigBytes%B,U=D<<24|D<<16|D<<8|D,F=[],j=0;j<D;j+=4)F.push(U);var K=s.create(F,D);A.concat(K)},unpad:function(A){var I=A.words[A.sigBytes-1>>>2]&255;A.sigBytes-=I}};i.BlockCipher=p.extend({cfg:p.cfg.extend({mode:v,padding:b}),reset:function(){var A;p.reset.call(this);var I=this.cfg,B=I.iv,D=I.mode;this._xformMode==this._ENC_XFORM_MODE?A=D.createEncryptor:(A=D.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==A?this._mode.init(this,B&&B.words):(this._mode=A.call(D,this,B&&B.words),this._mode.__creator=A)},_doProcessBlock:function(A,I){this._mode.processBlock(A,I)},_doFinalize:function(){var A,I=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(I.pad(this._data,this.blockSize),A=this._process(!0)):(A=this._process(!0),I.unpad(A)),A},blockSize:128/32});var x=i.CipherParams=a.extend({init:function(A){this.mixIn(A)},toString:function(A){return(A||this.formatter).stringify(this)}}),y=o.format={},w=y.OpenSSL={stringify:function(A){var I,B=A.ciphertext,D=A.salt;return D?I=s.create([1398893684,1701076831]).concat(D).concat(B):I=B,I.toString(u)},parse:function(A){var I,B=u.parse(A),D=B.words;return D[0]==1398893684&&D[1]==1701076831&&(I=s.create(D.slice(2,4)),D.splice(0,4),B.sigBytes-=16),x.create({ciphertext:B,salt:I})}},C=i.SerializableCipher=a.extend({cfg:a.extend({format:w}),encrypt:function(A,I,B,D){D=this.cfg.extend(D);var U=A.createEncryptor(B,D),F=U.finalize(I),j=U.cfg;return x.create({ciphertext:F,key:B,iv:j.iv,algorithm:A,mode:j.mode,padding:j.padding,blockSize:A.blockSize,formatter:D.format})},decrypt:function(A,I,B,D){D=this.cfg.extend(D),I=this._parse(I,D.format);var U=A.createDecryptor(B,D).finalize(I.ciphertext);return U},_parse:function(A,I){return typeof A=="string"?I.parse(A,this):A}}),S=o.kdf={},T=S.OpenSSL={execute:function(A,I,B,D,U){if(D||(D=s.random(64/8)),U)var F=f.create({keySize:I+B,hasher:U}).compute(A,D);else var F=f.create({keySize:I+B}).compute(A,D);var j=s.create(F.words.slice(I),B*4);return F.sigBytes=I*4,x.create({key:F,iv:j,salt:D})}},P=i.PasswordBasedCipher=C.extend({cfg:C.cfg.extend({kdf:T}),encrypt:function(A,I,B,D){D=this.cfg.extend(D);var U=D.kdf.execute(B,A.keySize,A.ivSize,D.salt,D.hasher);D.iv=U.iv;var F=C.encrypt.call(this,A,I,U.key,D);return F.mixIn(U),F},decrypt:function(A,I,B,D){D=this.cfg.extend(D),I=this._parse(I,D.format);var U=D.kdf.execute(B,A.keySize,A.ivSize,I.salt,D.hasher);D.iv=U.iv;var F=C.decrypt.call(this,A,I,U.key,D);return F}})}()})}(w0)),w0.exports}var S0={exports:{}},Xx;function CQ(){return Xx||(Xx=1,function(e,t){(function(r,n,o){e.exports=n(pt(),kr())})(Qe,function(r){return r.mode.CFB=function(){var n=r.lib.BlockCipherMode.extend();n.Encryptor=n.extend({processBlock:function(i,a){var s=this._cipher,l=s.blockSize;o.call(this,i,a,l,s),this._prevBlock=i.slice(a,a+l)}}),n.Decryptor=n.extend({processBlock:function(i,a){var s=this._cipher,l=s.blockSize,c=i.slice(a,a+l);o.call(this,i,a,l,s),this._prevBlock=c}});function o(i,a,s,l){var c,u=this._iv;u?(c=u.slice(0),this._iv=void 0):c=this._prevBlock,l.encryptBlock(c,0);for(var d=0;d<s;d++)i[a+d]^=c[d]}return n}(),r.mode.CFB})}(S0)),S0.exports}var _0={exports:{}},Zx;function wQ(){return Zx||(Zx=1,function(e,t){(function(r,n,o){e.exports=n(pt(),kr())})(Qe,function(r){return r.mode.CTR=function(){var n=r.lib.BlockCipherMode.extend(),o=n.Encryptor=n.extend({processBlock:function(i,a){var s=this._cipher,l=s.blockSize,c=this._iv,u=this._counter;c&&(u=this._counter=c.slice(0),this._iv=void 0);var d=u.slice(0);s.encryptBlock(d,0),u[l-1]=u[l-1]+1|0;for(var f=0;f<l;f++)i[a+f]^=d[f]}});return n.Decryptor=o,n}(),r.mode.CTR})}(_0)),_0.exports}var E0={exports:{}},Qx;function SQ(){return Qx||(Qx=1,function(e,t){(function(r,n,o){e.exports=n(pt(),kr())})(Qe,function(r){/** @preserve
|
||
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
||
* derived from CryptoJS.mode.CTR
|
||
* Jan Hruby jhruby.web@gmail.com
|
||
*/return r.mode.CTRGladman=function(){var n=r.lib.BlockCipherMode.extend();function o(s){if((s>>24&255)===255){var l=s>>16&255,c=s>>8&255,u=s&255;l===255?(l=0,c===255?(c=0,u===255?u=0:++u):++c):++l,s=0,s+=l<<16,s+=c<<8,s+=u}else s+=1<<24;return s}function i(s){return(s[0]=o(s[0]))===0&&(s[1]=o(s[1])),s}var a=n.Encryptor=n.extend({processBlock:function(s,l){var c=this._cipher,u=c.blockSize,d=this._iv,f=this._counter;d&&(f=this._counter=d.slice(0),this._iv=void 0),i(f);var p=f.slice(0);c.encryptBlock(p,0);for(var h=0;h<u;h++)s[l+h]^=p[h]}});return n.Decryptor=a,n}(),r.mode.CTRGladman})}(E0)),E0.exports}var T0={exports:{}},Jx;function _Q(){return Jx||(Jx=1,function(e,t){(function(r,n,o){e.exports=n(pt(),kr())})(Qe,function(r){return r.mode.OFB=function(){var n=r.lib.BlockCipherMode.extend(),o=n.Encryptor=n.extend({processBlock:function(i,a){var s=this._cipher,l=s.blockSize,c=this._iv,u=this._keystream;c&&(u=this._keystream=c.slice(0),this._iv=void 0),s.encryptBlock(u,0);for(var d=0;d<l;d++)i[a+d]^=u[d]}});return n.Decryptor=o,n}(),r.mode.OFB})}(T0)),T0.exports}var k0={exports:{}},ey;function EQ(){return ey||(ey=1,function(e,t){(function(r,n,o){e.exports=n(pt(),kr())})(Qe,function(r){return r.mode.ECB=function(){var n=r.lib.BlockCipherMode.extend();return n.Encryptor=n.extend({processBlock:function(o,i){this._cipher.encryptBlock(o,i)}}),n.Decryptor=n.extend({processBlock:function(o,i){this._cipher.decryptBlock(o,i)}}),n}(),r.mode.ECB})}(k0)),k0.exports}var A0={exports:{}},ty;function TQ(){return ty||(ty=1,function(e,t){(function(r,n,o){e.exports=n(pt(),kr())})(Qe,function(r){return r.pad.AnsiX923={pad:function(n,o){var i=n.sigBytes,a=o*4,s=a-i%a,l=i+s-1;n.clamp(),n.words[l>>>2]|=s<<24-l%4*8,n.sigBytes+=s},unpad:function(n){var o=n.words[n.sigBytes-1>>>2]&255;n.sigBytes-=o}},r.pad.Ansix923})}(A0)),A0.exports}var P0={exports:{}},ry;function kQ(){return ry||(ry=1,function(e,t){(function(r,n,o){e.exports=n(pt(),kr())})(Qe,function(r){return r.pad.Iso10126={pad:function(n,o){var i=o*4,a=i-n.sigBytes%i;n.concat(r.lib.WordArray.random(a-1)).concat(r.lib.WordArray.create([a<<24],1))},unpad:function(n){var o=n.words[n.sigBytes-1>>>2]&255;n.sigBytes-=o}},r.pad.Iso10126})}(P0)),P0.exports}var $0={exports:{}},ny;function AQ(){return ny||(ny=1,function(e,t){(function(r,n,o){e.exports=n(pt(),kr())})(Qe,function(r){return r.pad.Iso97971={pad:function(n,o){n.concat(r.lib.WordArray.create([2147483648],1)),r.pad.ZeroPadding.pad(n,o)},unpad:function(n){r.pad.ZeroPadding.unpad(n),n.sigBytes--}},r.pad.Iso97971})}($0)),$0.exports}var I0={exports:{}},oy;function PQ(){return oy||(oy=1,function(e,t){(function(r,n,o){e.exports=n(pt(),kr())})(Qe,function(r){return r.pad.ZeroPadding={pad:function(n,o){var i=o*4;n.clamp(),n.sigBytes+=i-(n.sigBytes%i||i)},unpad:function(n){for(var o=n.words,i=n.sigBytes-1,i=n.sigBytes-1;i>=0;i--)if(o[i>>>2]>>>24-i%4*8&255){n.sigBytes=i+1;break}}},r.pad.ZeroPadding})}(I0)),I0.exports}var B0={exports:{}},iy;function $Q(){return iy||(iy=1,function(e,t){(function(r,n,o){e.exports=n(pt(),kr())})(Qe,function(r){return r.pad.NoPadding={pad:function(){},unpad:function(){}},r.pad.NoPadding})}(B0)),B0.exports}var D0={exports:{}},ay;function IQ(){return ay||(ay=1,function(e,t){(function(r,n,o){e.exports=n(pt(),kr())})(Qe,function(r){return function(n){var o=r,i=o.lib,a=i.CipherParams,s=o.enc,l=s.Hex,c=o.format;c.Hex={stringify:function(u){return u.ciphertext.toString(l)},parse:function(u){var d=l.parse(u);return a.create({ciphertext:d})}}}(),r.format.Hex})}(D0)),D0.exports}var O0={exports:{}},sy;function BQ(){return sy||(sy=1,function(e,t){(function(r,n,o){e.exports=n(pt(),ia(),aa(),oi(),kr())})(Qe,function(r){return function(){var n=r,o=n.lib,i=o.BlockCipher,a=n.algo,s=[],l=[],c=[],u=[],d=[],f=[],p=[],h=[],g=[],v=[];(function(){for(var x=[],y=0;y<256;y++)y<128?x[y]=y<<1:x[y]=y<<1^283;for(var w=0,C=0,y=0;y<256;y++){var S=C^C<<1^C<<2^C<<3^C<<4;S=S>>>8^S&255^99,s[w]=S,l[S]=w;var T=x[w],P=x[T],A=x[P],I=x[S]*257^S*16843008;c[w]=I<<24|I>>>8,u[w]=I<<16|I>>>16,d[w]=I<<8|I>>>24,f[w]=I;var I=A*16843009^P*65537^T*257^w*16843008;p[S]=I<<24|I>>>8,h[S]=I<<16|I>>>16,g[S]=I<<8|I>>>24,v[S]=I,w?(w=T^x[x[x[A^T]]],C^=x[x[C]]):w=C=1}})();var m=[0,1,2,4,8,16,32,64,128,27,54],b=a.AES=i.extend({_doReset:function(){var x;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var y=this._keyPriorReset=this._key,w=y.words,C=y.sigBytes/4,S=this._nRounds=C+6,T=(S+1)*4,P=this._keySchedule=[],A=0;A<T;A++)A<C?P[A]=w[A]:(x=P[A-1],A%C?C>6&&A%C==4&&(x=s[x>>>24]<<24|s[x>>>16&255]<<16|s[x>>>8&255]<<8|s[x&255]):(x=x<<8|x>>>24,x=s[x>>>24]<<24|s[x>>>16&255]<<16|s[x>>>8&255]<<8|s[x&255],x^=m[A/C|0]<<24),P[A]=P[A-C]^x);for(var I=this._invKeySchedule=[],B=0;B<T;B++){var A=T-B;if(B%4)var x=P[A];else var x=P[A-4];B<4||A<=4?I[B]=x:I[B]=p[s[x>>>24]]^h[s[x>>>16&255]]^g[s[x>>>8&255]]^v[s[x&255]]}}},encryptBlock:function(x,y){this._doCryptBlock(x,y,this._keySchedule,c,u,d,f,s)},decryptBlock:function(x,y){var w=x[y+1];x[y+1]=x[y+3],x[y+3]=w,this._doCryptBlock(x,y,this._invKeySchedule,p,h,g,v,l);var w=x[y+1];x[y+1]=x[y+3],x[y+3]=w},_doCryptBlock:function(x,y,w,C,S,T,P,A){for(var I=this._nRounds,B=x[y]^w[0],D=x[y+1]^w[1],U=x[y+2]^w[2],F=x[y+3]^w[3],j=4,K=1;K<I;K++){var ae=C[B>>>24]^S[D>>>16&255]^T[U>>>8&255]^P[F&255]^w[j++],we=C[D>>>24]^S[U>>>16&255]^T[F>>>8&255]^P[B&255]^w[j++],Ce=C[U>>>24]^S[F>>>16&255]^T[B>>>8&255]^P[D&255]^w[j++],X=C[F>>>24]^S[B>>>16&255]^T[D>>>8&255]^P[U&255]^w[j++];B=ae,D=we,U=Ce,F=X}var ae=(A[B>>>24]<<24|A[D>>>16&255]<<16|A[U>>>8&255]<<8|A[F&255])^w[j++],we=(A[D>>>24]<<24|A[U>>>16&255]<<16|A[F>>>8&255]<<8|A[B&255])^w[j++],Ce=(A[U>>>24]<<24|A[F>>>16&255]<<16|A[B>>>8&255]<<8|A[D&255])^w[j++],X=(A[F>>>24]<<24|A[B>>>16&255]<<16|A[D>>>8&255]<<8|A[U&255])^w[j++];x[y]=ae,x[y+1]=we,x[y+2]=Ce,x[y+3]=X},keySize:256/32});n.AES=i._createHelper(b)}(),r.AES})}(O0)),O0.exports}var R0={exports:{}},ly;function DQ(){return ly||(ly=1,function(e,t){(function(r,n,o){e.exports=n(pt(),ia(),aa(),oi(),kr())})(Qe,function(r){return function(){var n=r,o=n.lib,i=o.WordArray,a=o.BlockCipher,s=n.algo,l=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],c=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],d=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],f=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],p=s.DES=a.extend({_doReset:function(){for(var m=this._key,b=m.words,x=[],y=0;y<56;y++){var w=l[y]-1;x[y]=b[w>>>5]>>>31-w%32&1}for(var C=this._subKeys=[],S=0;S<16;S++){for(var T=C[S]=[],P=u[S],y=0;y<24;y++)T[y/6|0]|=x[(c[y]-1+P)%28]<<31-y%6,T[4+(y/6|0)]|=x[28+(c[y+24]-1+P)%28]<<31-y%6;T[0]=T[0]<<1|T[0]>>>31;for(var y=1;y<7;y++)T[y]=T[y]>>>(y-1)*4+3;T[7]=T[7]<<5|T[7]>>>27}for(var A=this._invSubKeys=[],y=0;y<16;y++)A[y]=C[15-y]},encryptBlock:function(m,b){this._doCryptBlock(m,b,this._subKeys)},decryptBlock:function(m,b){this._doCryptBlock(m,b,this._invSubKeys)},_doCryptBlock:function(m,b,x){this._lBlock=m[b],this._rBlock=m[b+1],h.call(this,4,252645135),h.call(this,16,65535),g.call(this,2,858993459),g.call(this,8,16711935),h.call(this,1,1431655765);for(var y=0;y<16;y++){for(var w=x[y],C=this._lBlock,S=this._rBlock,T=0,P=0;P<8;P++)T|=d[P][((S^w[P])&f[P])>>>0];this._lBlock=S,this._rBlock=C^T}var A=this._lBlock;this._lBlock=this._rBlock,this._rBlock=A,h.call(this,1,1431655765),g.call(this,8,16711935),g.call(this,2,858993459),h.call(this,16,65535),h.call(this,4,252645135),m[b]=this._lBlock,m[b+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function h(m,b){var x=(this._lBlock>>>m^this._rBlock)&b;this._rBlock^=x,this._lBlock^=x<<m}function g(m,b){var x=(this._rBlock>>>m^this._lBlock)&b;this._lBlock^=x,this._rBlock^=x<<m}n.DES=a._createHelper(p);var v=s.TripleDES=a.extend({_doReset:function(){var m=this._key,b=m.words;if(b.length!==2&&b.length!==4&&b.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var x=b.slice(0,2),y=b.length<4?b.slice(0,2):b.slice(2,4),w=b.length<6?b.slice(0,2):b.slice(4,6);this._des1=p.createEncryptor(i.create(x)),this._des2=p.createEncryptor(i.create(y)),this._des3=p.createEncryptor(i.create(w))},encryptBlock:function(m,b){this._des1.encryptBlock(m,b),this._des2.decryptBlock(m,b),this._des3.encryptBlock(m,b)},decryptBlock:function(m,b){this._des3.decryptBlock(m,b),this._des2.encryptBlock(m,b),this._des1.decryptBlock(m,b)},keySize:192/32,ivSize:64/32,blockSize:64/32});n.TripleDES=a._createHelper(v)}(),r.TripleDES})}(R0)),R0.exports}var L0={exports:{}},cy;function OQ(){return cy||(cy=1,function(e,t){(function(r,n,o){e.exports=n(pt(),ia(),aa(),oi(),kr())})(Qe,function(r){return function(){var n=r,o=n.lib,i=o.StreamCipher,a=n.algo,s=a.RC4=i.extend({_doReset:function(){for(var u=this._key,d=u.words,f=u.sigBytes,p=this._S=[],h=0;h<256;h++)p[h]=h;for(var h=0,g=0;h<256;h++){var v=h%f,m=d[v>>>2]>>>24-v%4*8&255;g=(g+p[h]+m)%256;var b=p[h];p[h]=p[g],p[g]=b}this._i=this._j=0},_doProcessBlock:function(u,d){u[d]^=l.call(this)},keySize:256/32,ivSize:0});function l(){for(var u=this._S,d=this._i,f=this._j,p=0,h=0;h<4;h++){d=(d+1)%256,f=(f+u[d])%256;var g=u[d];u[d]=u[f],u[f]=g,p|=u[(u[d]+u[f])%256]<<24-h*8}return this._i=d,this._j=f,p}n.RC4=i._createHelper(s);var c=a.RC4Drop=s.extend({cfg:s.cfg.extend({drop:192}),_doReset:function(){s._doReset.call(this);for(var u=this.cfg.drop;u>0;u--)l.call(this)}});n.RC4Drop=i._createHelper(c)}(),r.RC4})}(L0)),L0.exports}var F0={exports:{}},uy;function RQ(){return uy||(uy=1,function(e,t){(function(r,n,o){e.exports=n(pt(),ia(),aa(),oi(),kr())})(Qe,function(r){return function(){var n=r,o=n.lib,i=o.StreamCipher,a=n.algo,s=[],l=[],c=[],u=a.Rabbit=i.extend({_doReset:function(){for(var f=this._key.words,p=this.cfg.iv,h=0;h<4;h++)f[h]=(f[h]<<8|f[h]>>>24)&16711935|(f[h]<<24|f[h]>>>8)&4278255360;var g=this._X=[f[0],f[3]<<16|f[2]>>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],v=this._C=[f[2]<<16|f[2]>>>16,f[0]&4294901760|f[1]&65535,f[3]<<16|f[3]>>>16,f[1]&4294901760|f[2]&65535,f[0]<<16|f[0]>>>16,f[2]&4294901760|f[3]&65535,f[1]<<16|f[1]>>>16,f[3]&4294901760|f[0]&65535];this._b=0;for(var h=0;h<4;h++)d.call(this);for(var h=0;h<8;h++)v[h]^=g[h+4&7];if(p){var m=p.words,b=m[0],x=m[1],y=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,w=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,C=y>>>16|w&4294901760,S=w<<16|y&65535;v[0]^=y,v[1]^=C,v[2]^=w,v[3]^=S,v[4]^=y,v[5]^=C,v[6]^=w,v[7]^=S;for(var h=0;h<4;h++)d.call(this)}},_doProcessBlock:function(f,p){var h=this._X;d.call(this),s[0]=h[0]^h[5]>>>16^h[3]<<16,s[1]=h[2]^h[7]>>>16^h[5]<<16,s[2]=h[4]^h[1]>>>16^h[7]<<16,s[3]=h[6]^h[3]>>>16^h[1]<<16;for(var g=0;g<4;g++)s[g]=(s[g]<<8|s[g]>>>24)&16711935|(s[g]<<24|s[g]>>>8)&4278255360,f[p+g]^=s[g]},blockSize:128/32,ivSize:64/32});function d(){for(var f=this._X,p=this._C,h=0;h<8;h++)l[h]=p[h];p[0]=p[0]+1295307597+this._b|0,p[1]=p[1]+3545052371+(p[0]>>>0<l[0]>>>0?1:0)|0,p[2]=p[2]+886263092+(p[1]>>>0<l[1]>>>0?1:0)|0,p[3]=p[3]+1295307597+(p[2]>>>0<l[2]>>>0?1:0)|0,p[4]=p[4]+3545052371+(p[3]>>>0<l[3]>>>0?1:0)|0,p[5]=p[5]+886263092+(p[4]>>>0<l[4]>>>0?1:0)|0,p[6]=p[6]+1295307597+(p[5]>>>0<l[5]>>>0?1:0)|0,p[7]=p[7]+3545052371+(p[6]>>>0<l[6]>>>0?1:0)|0,this._b=p[7]>>>0<l[7]>>>0?1:0;for(var h=0;h<8;h++){var g=f[h]+p[h],v=g&65535,m=g>>>16,b=((v*v>>>17)+v*m>>>15)+m*m,x=((g&4294901760)*g|0)+((g&65535)*g|0);c[h]=b^x}f[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,f[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,f[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,f[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,f[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,f[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,f[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,f[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}n.Rabbit=i._createHelper(u)}(),r.Rabbit})}(F0)),F0.exports}var M0={exports:{}},dy;function LQ(){return dy||(dy=1,function(e,t){(function(r,n,o){e.exports=n(pt(),ia(),aa(),oi(),kr())})(Qe,function(r){return function(){var n=r,o=n.lib,i=o.StreamCipher,a=n.algo,s=[],l=[],c=[],u=a.RabbitLegacy=i.extend({_doReset:function(){var f=this._key.words,p=this.cfg.iv,h=this._X=[f[0],f[3]<<16|f[2]>>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],g=this._C=[f[2]<<16|f[2]>>>16,f[0]&4294901760|f[1]&65535,f[3]<<16|f[3]>>>16,f[1]&4294901760|f[2]&65535,f[0]<<16|f[0]>>>16,f[2]&4294901760|f[3]&65535,f[1]<<16|f[1]>>>16,f[3]&4294901760|f[0]&65535];this._b=0;for(var v=0;v<4;v++)d.call(this);for(var v=0;v<8;v++)g[v]^=h[v+4&7];if(p){var m=p.words,b=m[0],x=m[1],y=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,w=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,C=y>>>16|w&4294901760,S=w<<16|y&65535;g[0]^=y,g[1]^=C,g[2]^=w,g[3]^=S,g[4]^=y,g[5]^=C,g[6]^=w,g[7]^=S;for(var v=0;v<4;v++)d.call(this)}},_doProcessBlock:function(f,p){var h=this._X;d.call(this),s[0]=h[0]^h[5]>>>16^h[3]<<16,s[1]=h[2]^h[7]>>>16^h[5]<<16,s[2]=h[4]^h[1]>>>16^h[7]<<16,s[3]=h[6]^h[3]>>>16^h[1]<<16;for(var g=0;g<4;g++)s[g]=(s[g]<<8|s[g]>>>24)&16711935|(s[g]<<24|s[g]>>>8)&4278255360,f[p+g]^=s[g]},blockSize:128/32,ivSize:64/32});function d(){for(var f=this._X,p=this._C,h=0;h<8;h++)l[h]=p[h];p[0]=p[0]+1295307597+this._b|0,p[1]=p[1]+3545052371+(p[0]>>>0<l[0]>>>0?1:0)|0,p[2]=p[2]+886263092+(p[1]>>>0<l[1]>>>0?1:0)|0,p[3]=p[3]+1295307597+(p[2]>>>0<l[2]>>>0?1:0)|0,p[4]=p[4]+3545052371+(p[3]>>>0<l[3]>>>0?1:0)|0,p[5]=p[5]+886263092+(p[4]>>>0<l[4]>>>0?1:0)|0,p[6]=p[6]+1295307597+(p[5]>>>0<l[5]>>>0?1:0)|0,p[7]=p[7]+3545052371+(p[6]>>>0<l[6]>>>0?1:0)|0,this._b=p[7]>>>0<l[7]>>>0?1:0;for(var h=0;h<8;h++){var g=f[h]+p[h],v=g&65535,m=g>>>16,b=((v*v>>>17)+v*m>>>15)+m*m,x=((g&4294901760)*g|0)+((g&65535)*g|0);c[h]=b^x}f[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,f[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,f[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,f[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,f[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,f[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,f[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,f[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}n.RabbitLegacy=i._createHelper(u)}(),r.RabbitLegacy})}(M0)),M0.exports}var z0={exports:{}},fy;function FQ(){return fy||(fy=1,function(e,t){(function(r,n,o){e.exports=n(pt(),ia(),aa(),oi(),kr())})(Qe,function(r){return function(){var n=r,o=n.lib,i=o.BlockCipher,a=n.algo;const s=16,l=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],c=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var u={pbox:[],sbox:[]};function d(v,m){let b=m>>24&255,x=m>>16&255,y=m>>8&255,w=m&255,C=v.sbox[0][b]+v.sbox[1][x];return C=C^v.sbox[2][y],C=C+v.sbox[3][w],C}function f(v,m,b){let x=m,y=b,w;for(let C=0;C<s;++C)x=x^v.pbox[C],y=d(v,x)^y,w=x,x=y,y=w;return w=x,x=y,y=w,y=y^v.pbox[s],x=x^v.pbox[s+1],{left:x,right:y}}function p(v,m,b){let x=m,y=b,w;for(let C=s+1;C>1;--C)x=x^v.pbox[C],y=d(v,x)^y,w=x,x=y,y=w;return w=x,x=y,y=w,y=y^v.pbox[1],x=x^v.pbox[0],{left:x,right:y}}function h(v,m,b){for(let S=0;S<4;S++){v.sbox[S]=[];for(let T=0;T<256;T++)v.sbox[S][T]=c[S][T]}let x=0;for(let S=0;S<s+2;S++)v.pbox[S]=l[S]^m[x],x++,x>=b&&(x=0);let y=0,w=0,C=0;for(let S=0;S<s+2;S+=2)C=f(v,y,w),y=C.left,w=C.right,v.pbox[S]=y,v.pbox[S+1]=w;for(let S=0;S<4;S++)for(let T=0;T<256;T+=2)C=f(v,y,w),y=C.left,w=C.right,v.sbox[S][T]=y,v.sbox[S][T+1]=w;return!0}var g=a.Blowfish=i.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var v=this._keyPriorReset=this._key,m=v.words,b=v.sigBytes/4;h(u,m,b)}},encryptBlock:function(v,m){var b=f(u,v[m],v[m+1]);v[m]=b.left,v[m+1]=b.right},decryptBlock:function(v,m){var b=p(u,v[m],v[m+1]);v[m]=b.left,v[m+1]=b.right},blockSize:64/32,keySize:128/32,ivSize:64/32});n.Blowfish=i._createHelper(g)}(),r.Blowfish})}(z0)),z0.exports}(function(e,t){(function(r,n,o){e.exports=n(pt(),Yd(),hQ(),pQ(),ia(),gQ(),aa(),qE(),om(),mQ(),GE(),vQ(),bQ(),xQ(),im(),yQ(),oi(),kr(),CQ(),wQ(),SQ(),_Q(),EQ(),TQ(),kQ(),AQ(),PQ(),$Q(),IQ(),BQ(),DQ(),OQ(),RQ(),LQ(),FQ())})(Qe,function(r){return r})})(VE);var MQ=VE.exports;const tp=cN(MQ),YE="__CRYPTO_SECRET__";function zQ(e){const t=JSON.stringify(e);return tp.AES.encrypt(t,YE).toString()}function NQ(e){const r=tp.AES.decrypt(e,YE).toString(tp.enc.Utf8);return r?JSON.parse(r):null}function KE(e){const{expire:r,crypto:n}=Object.assign({expire:604800,crypto:!0},e);function o(l,c){const u={data:c,expire:r!==null?new Date().getTime()+r*1e3:null},d=n?zQ(u):JSON.stringify(u);window.localStorage.setItem(l,d)}function i(l){const c=window.localStorage.getItem(l);if(c){let u=null;try{u=n?NQ(c):JSON.parse(c)}catch{}if(u){const{data:d,expire:f}=u;if(f===null||f>=Date.now())return d}return a(l),null}}function a(l){window.localStorage.removeItem(l)}function s(){window.localStorage.clear()}return{set:o,get:i,remove:a,clear:s}}KE();const Nt=KE({expire:null,crypto:!1}),hy=me({__name:"Button",emits:["click"],setup(e,{emit:t}){const r=t;function n(){r("click")}return(o,i)=>(ge(),je("button",{class:"flex items-center justify-center w-10 h-8 transition rounded-md hover:bg-neutral-100 dark:hover:bg-[#414755]",onClick:n},[Ua(o.$slots,"default")]))}}),HQ={key:0},jQ={key:1},WQ=me({__name:"index",props:{tooltip:{default:""},placement:{default:"bottom"}},emits:["click"],setup(e,{emit:t}){const r=e,n=t,o=R(()=>!!r.tooltip);function i(){n("click")}return(a,s)=>o.value?(ge(),je("div",HQ,[te(W(rl),{placement:a.placement,trigger:"hover"},{trigger:de(()=>[te(hy,{onClick:i},{default:de(()=>[Ua(a.$slots,"default")]),_:3})]),default:de(()=>[tt(" "+Qt(a.tooltip),1)]),_:3},8,["placement"])])):(ge(),je("div",jQ,[te(hy,{onClick:i},{default:de(()=>[Ua(a.$slots,"default")]),_:3})]))}}),UQ=me({__name:"index",setup(e){function t(){window.$loadingBar=gV(),window.$dialog=c4(),window.$message=Sn(),window.$notification=BV()}const r=me({name:"NaiveProviderContent",setup(){t()},render(){return k("div")}});return(n,o)=>(ge(),We(W(pV),null,{default:de(()=>[te(W(BN),null,{default:de(()=>[te(W(IV),null,{default:de(()=>[te(W(wV),null,{default:de(()=>[Ua(n.$slots,"default"),te(W(r))]),_:3})]),_:3})]),_:3})]),_:3}))}}),sl=/^[a-z0-9]+(-[a-z0-9]+)*$/,Kd=(e,t,r,n="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;n=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const s=o.pop(),l=o.pop(),c={provider:o.length>0?o[0]:n,prefix:l,name:s};return t&&!pu(c)?null:c}const i=o[0],a=i.split("-");if(a.length>1){const s={provider:n,prefix:a.shift(),name:a.join("-")};return t&&!pu(s)?null:s}if(r&&n===""){const s={provider:n,prefix:"",name:i};return t&&!pu(s,r)?null:s}return null},pu=(e,t)=>e?!!((e.provider===""||e.provider.match(sl))&&(t&&e.prefix===""||e.prefix.match(sl))&&e.name.match(sl)):!1,XE=Object.freeze({left:0,top:0,width:16,height:16}),Yu=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Xd=Object.freeze({...XE,...Yu}),rp=Object.freeze({...Xd,body:"",hidden:!1});function VQ(e,t){const r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);const n=((e.rotate||0)+(t.rotate||0))%4;return n&&(r.rotate=n),r}function py(e,t){const r=VQ(e,t);for(const n in rp)n in Yu?n in e&&!(n in r)&&(r[n]=Yu[n]):n in t?r[n]=t[n]:n in e&&(r[n]=e[n]);return r}function qQ(e,t){const r=e.icons,n=e.aliases||Object.create(null),o=Object.create(null);function i(a){if(r[a])return o[a]=[];if(!(a in o)){o[a]=null;const s=n[a]&&n[a].parent,l=s&&i(s);l&&(o[a]=[s].concat(l))}return o[a]}return(t||Object.keys(r).concat(Object.keys(n))).forEach(i),o}function GQ(e,t,r){const n=e.icons,o=e.aliases||Object.create(null);let i={};function a(s){i=py(n[s]||o[s],i)}return a(t),r.forEach(a),py(e,i)}function ZE(e,t){const r=[];if(typeof e!="object"||typeof e.icons!="object")return r;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),r.push(o)});const n=qQ(e);for(const o in n){const i=n[o];i&&(t(o,GQ(e,o,i)),r.push(o))}return r}const YQ={provider:"",aliases:{},not_found:{},...XE};function N0(e,t){for(const r in t)if(r in e&&typeof e[r]!=typeof t[r])return!1;return!0}function QE(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!N0(e,YQ))return null;const r=t.icons;for(const o in r){const i=r[o];if(!o.match(sl)||typeof i.body!="string"||!N0(i,rp))return null}const n=t.aliases||Object.create(null);for(const o in n){const i=n[o],a=i.parent;if(!o.match(sl)||typeof a!="string"||!r[a]&&!n[a]||!N0(i,rp))return null}return t}const gy=Object.create(null);function KQ(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function qi(e,t){const r=gy[e]||(gy[e]=Object.create(null));return r[t]||(r[t]=KQ(e,t))}function am(e,t){return QE(t)?ZE(t,(r,n)=>{n?e.icons[r]=n:e.missing.add(r)}):[]}function XQ(e,t,r){try{if(typeof r.body=="string")return e.icons[t]={...r},!0}catch{}return!1}let zl=!1;function JE(e){return typeof e=="boolean"&&(zl=e),zl}function ZQ(e){const t=typeof e=="string"?Kd(e,!0,zl):e;if(t){const r=qi(t.provider,t.prefix),n=t.name;return r.icons[n]||(r.missing.has(n)?null:void 0)}}function QQ(e,t){const r=Kd(e,!0,zl);if(!r)return!1;const n=qi(r.provider,r.prefix);return XQ(n,r.name,t)}function JQ(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),zl&&!t&&!e.prefix){let o=!1;return QE(e)&&(e.prefix="",ZE(e,(i,a)=>{a&&QQ(i,a)&&(o=!0)})),o}const r=e.prefix;if(!pu({provider:t,prefix:r,name:"a"}))return!1;const n=qi(t,r);return!!am(n,e)}const e3=Object.freeze({width:null,height:null}),t3=Object.freeze({...e3,...Yu}),eJ=/(-?[0-9.]*[0-9]+[0-9.]*)/g,tJ=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function my(e,t,r){if(t===1)return e;if(r=r||100,typeof e=="number")return Math.ceil(e*t*r)/r;if(typeof e!="string")return e;const n=e.split(eJ);if(n===null||!n.length)return e;const o=[];let i=n.shift(),a=tJ.test(i);for(;;){if(a){const s=parseFloat(i);isNaN(s)?o.push(i):o.push(Math.ceil(s*t*r)/r)}else o.push(i);if(i=n.shift(),i===void 0)return o.join("");a=!a}}const rJ=e=>e==="unset"||e==="undefined"||e==="none";function nJ(e,t){const r={...Xd,...e},n={...t3,...t},o={left:r.left,top:r.top,width:r.width,height:r.height};let i=r.body;[r,n].forEach(h=>{const g=[],v=h.hFlip,m=h.vFlip;let b=h.rotate;v?m?b+=2:(g.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),g.push("scale(-1 1)"),o.top=o.left=0):m&&(g.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),g.push("scale(1 -1)"),o.top=o.left=0);let x;switch(b<0&&(b-=Math.floor(b/4)*4),b=b%4,b){case 1:x=o.height/2+o.top,g.unshift("rotate(90 "+x.toString()+" "+x.toString()+")");break;case 2:g.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:x=o.width/2+o.left,g.unshift("rotate(-90 "+x.toString()+" "+x.toString()+")");break}b%2===1&&(o.left!==o.top&&(x=o.left,o.left=o.top,o.top=x),o.width!==o.height&&(x=o.width,o.width=o.height,o.height=x)),g.length&&(i='<g transform="'+g.join(" ")+'">'+i+"</g>")});const a=n.width,s=n.height,l=o.width,c=o.height;let u,d;a===null?(d=s===null?"1em":s==="auto"?c:s,u=my(d,l/c)):(u=a==="auto"?l:a,d=s===null?my(u,c/l):s==="auto"?c:s);const f={},p=(h,g)=>{rJ(g)||(f[h]=g.toString())};return p("width",u),p("height",d),f.viewBox=o.left.toString()+" "+o.top.toString()+" "+l.toString()+" "+c.toString(),{attributes:f,body:i}}const oJ=/\sid="(\S+)"/g,iJ="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let aJ=0;function sJ(e,t=iJ){const r=[];let n;for(;n=oJ.exec(e);)r.push(n[1]);if(!r.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return r.forEach(i=>{const a=typeof t=="function"?t(i):t+(aJ++).toString(),s=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+a+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}const np=Object.create(null);function lJ(e,t){np[e]=t}function op(e){return np[e]||np[""]}function sm(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const lm=Object.create(null),Ms=["https://api.simplesvg.com","https://api.unisvg.com"],gu=[];for(;Ms.length>0;)Ms.length===1||Math.random()>.5?gu.push(Ms.shift()):gu.push(Ms.pop());lm[""]=sm({resources:["https://api.iconify.design"].concat(gu)});function cJ(e,t){const r=sm(t);return r===null?!1:(lm[e]=r,!0)}function cm(e){return lm[e]}const uJ=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let vy=uJ();function dJ(e,t){const r=cm(e);if(!r)return 0;let n;if(!r.maxURL)n=0;else{let o=0;r.resources.forEach(a=>{o=Math.max(o,a.length)});const i=t+".json?icons=";n=r.maxURL-o-r.path.length-i.length}return n}function fJ(e){return e===404}const hJ=(e,t,r)=>{const n=[],o=dJ(e,t),i="icons";let a={type:i,provider:e,prefix:t,icons:[]},s=0;return r.forEach((l,c)=>{s+=l.length+1,s>=o&&c>0&&(n.push(a),a={type:i,provider:e,prefix:t,icons:[]},s=l.length),a.icons.push(l)}),n.push(a),n};function pJ(e){if(typeof e=="string"){const t=cm(e);if(t)return t.path}return"/"}const gJ=(e,t,r)=>{if(!vy){r("abort",424);return}let n=pJ(t.provider);switch(t.type){case"icons":{const i=t.prefix,s=t.icons.join(","),l=new URLSearchParams({icons:s});n+=i+".json?"+l.toString();break}case"custom":{const i=t.uri;n+=i.slice(0,1)==="/"?i.slice(1):i;break}default:r("abort",400);return}let o=503;vy(e+n).then(i=>{const a=i.status;if(a!==200){setTimeout(()=>{r(fJ(a)?"abort":"next",a)});return}return o=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?r("abort",i):r("next",o)});return}setTimeout(()=>{r("success",i)})}).catch(()=>{r("next",o)})},mJ={prepare:hJ,send:gJ};function vJ(e){const t={loaded:[],missing:[],pending:[]},r=Object.create(null);e.sort((o,i)=>o.provider!==i.provider?o.provider.localeCompare(i.provider):o.prefix!==i.prefix?o.prefix.localeCompare(i.prefix):o.name.localeCompare(i.name));let n={provider:"",prefix:"",name:""};return e.forEach(o=>{if(n.name===o.name&&n.prefix===o.prefix&&n.provider===o.provider)return;n=o;const i=o.provider,a=o.prefix,s=o.name,l=r[i]||(r[i]=Object.create(null)),c=l[a]||(l[a]=qi(i,a));let u;s in c.icons?u=t.loaded:a===""||c.missing.has(s)?u=t.missing:u=t.pending;const d={provider:i,prefix:a,name:s};u.push(d)}),t}function r3(e,t){e.forEach(r=>{const n=r.loaderCallbacks;n&&(r.loaderCallbacks=n.filter(o=>o.id!==t))})}function bJ(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let r=!1;const n=e.provider,o=e.prefix;t.forEach(i=>{const a=i.icons,s=a.pending.length;a.pending=a.pending.filter(l=>{if(l.prefix!==o)return!0;const c=l.name;if(e.icons[c])a.loaded.push({provider:n,prefix:o,name:c});else if(e.missing.has(c))a.missing.push({provider:n,prefix:o,name:c});else return r=!0,!0;return!1}),a.pending.length!==s&&(r||r3([e],i.id),i.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),i.abort))})}))}let xJ=0;function yJ(e,t,r){const n=xJ++,o=r3.bind(null,r,n);if(!t.pending.length)return o;const i={id:n,icons:t,callback:e,abort:o};return r.forEach(a=>{(a.loaderCallbacks||(a.loaderCallbacks=[])).push(i)}),o}function CJ(e,t=!0,r=!1){const n=[];return e.forEach(o=>{const i=typeof o=="string"?Kd(o,t,r):o;i&&n.push(i)}),n}var wJ={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function SJ(e,t,r,n){const o=e.resources.length,i=e.random?Math.floor(Math.random()*o):e.index;let a;if(e.random){let C=e.resources.slice(0);for(a=[];C.length>1;){const S=Math.floor(Math.random()*C.length);a.push(C[S]),C=C.slice(0,S).concat(C.slice(S+1))}a=a.concat(C)}else a=e.resources.slice(i).concat(e.resources.slice(0,i));const s=Date.now();let l="pending",c=0,u,d=null,f=[],p=[];typeof n=="function"&&p.push(n);function h(){d&&(clearTimeout(d),d=null)}function g(){l==="pending"&&(l="aborted"),h(),f.forEach(C=>{C.status==="pending"&&(C.status="aborted")}),f=[]}function v(C,S){S&&(p=[]),typeof C=="function"&&p.push(C)}function m(){return{startTime:s,payload:t,status:l,queriesSent:c,queriesPending:f.length,subscribe:v,abort:g}}function b(){l="failed",p.forEach(C=>{C(void 0,u)})}function x(){f.forEach(C=>{C.status==="pending"&&(C.status="aborted")}),f=[]}function y(C,S,T){const P=S!=="success";switch(f=f.filter(A=>A!==C),l){case"pending":break;case"failed":if(P||!e.dataAfterTimeout)return;break;default:return}if(S==="abort"){u=T,b();return}if(P){u=T,f.length||(a.length?w():b());return}if(h(),x(),!e.random){const A=e.resources.indexOf(C.resource);A!==-1&&A!==e.index&&(e.index=A)}l="completed",p.forEach(A=>{A(T)})}function w(){if(l!=="pending")return;h();const C=a.shift();if(C===void 0){if(f.length){d=setTimeout(()=>{h(),l==="pending"&&(x(),b())},e.timeout);return}b();return}const S={status:"pending",resource:C,callback:(T,P)=>{y(S,T,P)}};f.push(S),c++,d=setTimeout(w,e.rotate),r(C,t,S.callback)}return setTimeout(w),m}function n3(e){const t={...wJ,...e};let r=[];function n(){r=r.filter(s=>s().status==="pending")}function o(s,l,c){const u=SJ(t,s,l,(d,f)=>{n(),c&&c(d,f)});return r.push(u),u}function i(s){return r.find(l=>s(l))||null}return{query:o,find:i,setIndex:s=>{t.index=s},getIndex:()=>t.index,cleanup:n}}function by(){}const H0=Object.create(null);function _J(e){if(!H0[e]){const t=cm(e);if(!t)return;const r=n3(t),n={config:t,redundancy:r};H0[e]=n}return H0[e]}function EJ(e,t,r){let n,o;if(typeof e=="string"){const i=op(e);if(!i)return r(void 0,424),by;o=i.send;const a=_J(e);a&&(n=a.redundancy)}else{const i=sm(e);if(i){n=n3(i);const a=e.resources?e.resources[0]:"",s=op(a);s&&(o=s.send)}}return!n||!o?(r(void 0,424),by):n.query(t,o,r)().abort}const xy="iconify2",Nl="iconify",o3=Nl+"-count",yy=Nl+"-version",i3=36e5,TJ=168;function ip(e,t){try{return e.getItem(t)}catch{}}function um(e,t,r){try{return e.setItem(t,r),!0}catch{}}function Cy(e,t){try{e.removeItem(t)}catch{}}function ap(e,t){return um(e,o3,t.toString())}function sp(e){return parseInt(ip(e,o3))||0}const Zd={local:!0,session:!0},a3={local:new Set,session:new Set};let dm=!1;function kJ(e){dm=e}let Gc=typeof window>"u"?{}:window;function s3(e){const t=e+"Storage";try{if(Gc&&Gc[t]&&typeof Gc[t].length=="number")return Gc[t]}catch{}Zd[e]=!1}function l3(e,t){const r=s3(e);if(!r)return;const n=ip(r,yy);if(n!==xy){if(n){const s=sp(r);for(let l=0;l<s;l++)Cy(r,Nl+l.toString())}um(r,yy,xy),ap(r,0);return}const o=Math.floor(Date.now()/i3)-TJ,i=s=>{const l=Nl+s.toString(),c=ip(r,l);if(typeof c=="string"){try{const u=JSON.parse(c);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>o&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,s))return!0}catch{}Cy(r,l)}};let a=sp(r);for(let s=a-1;s>=0;s--)i(s)||(s===a-1?(a--,ap(r,a)):a3[e].add(s))}function c3(){if(!dm){kJ(!0);for(const e in Zd)l3(e,t=>{const r=t.data,n=t.provider,o=r.prefix,i=qi(n,o);if(!am(i,r).length)return!1;const a=r.lastModified||-1;return i.lastModifiedCached=i.lastModifiedCached?Math.min(i.lastModifiedCached,a):a,!0})}}function AJ(e,t){const r=e.lastModifiedCached;if(r&&r>=t)return r===t;if(e.lastModifiedCached=t,r)for(const n in Zd)l3(n,o=>{const i=o.data;return o.provider!==e.provider||i.prefix!==e.prefix||i.lastModified===t});return!0}function PJ(e,t){dm||c3();function r(n){let o;if(!Zd[n]||!(o=s3(n)))return;const i=a3[n];let a;if(i.size)i.delete(a=Array.from(i).shift());else if(a=sp(o),!ap(o,a+1))return;const s={cached:Math.floor(Date.now()/i3),provider:e.provider,data:t};return um(o,Nl+a.toString(),JSON.stringify(s))}t.lastModified&&!AJ(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),r("local")||r("session"))}function wy(){}function $J(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,bJ(e)}))}function IJ(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:r,prefix:n}=e,o=e.iconsToLoad;delete e.iconsToLoad;let i;if(!o||!(i=op(r)))return;i.prepare(r,n,o).forEach(s=>{EJ(r,s,l=>{if(typeof l!="object")s.icons.forEach(c=>{e.missing.add(c)});else try{const c=am(e,l);if(!c.length)return;const u=e.pendingIcons;u&&c.forEach(d=>{u.delete(d)}),PJ(e,l)}catch(c){console.error(c)}$J(e)})})}))}const BJ=(e,t)=>{const r=CJ(e,!0,JE()),n=vJ(r);if(!n.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(n.loaded,n.missing,n.pending,wy)}),()=>{l=!1}}const o=Object.create(null),i=[];let a,s;return n.pending.forEach(l=>{const{provider:c,prefix:u}=l;if(u===s&&c===a)return;a=c,s=u,i.push(qi(c,u));const d=o[c]||(o[c]=Object.create(null));d[u]||(d[u]=[])}),n.pending.forEach(l=>{const{provider:c,prefix:u,name:d}=l,f=qi(c,u),p=f.pendingIcons||(f.pendingIcons=new Set);p.has(d)||(p.add(d),o[c][u].push(d))}),i.forEach(l=>{const{provider:c,prefix:u}=l;o[c][u].length&&IJ(l,o[c][u])}),t?yJ(t,n,i):wy};function DJ(e,t){const r={...e};for(const n in t){const o=t[n],i=typeof o;n in e3?(o===null||o&&(i==="string"||i==="number"))&&(r[n]=o):i===typeof r[n]&&(r[n]=n==="rotate"?o%4:o)}return r}const OJ=/[\s,]+/;function RJ(e,t){t.split(OJ).forEach(r=>{switch(r.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function LJ(e,t=0){const r=e.replace(/^-?[0-9.]*/,"");function n(o){for(;o<0;)o+=4;return o%4}if(r===""){const o=parseInt(e);return isNaN(o)?0:n(o)}else if(r!==e){let o=0;switch(r){case"%":o=25;break;case"deg":o=90}if(o){let i=parseFloat(e.slice(0,e.length-r.length));return isNaN(i)?0:(i=i/o,i%1===0?n(i):0)}}return t}function FJ(e,t){let r=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const n in t)r+=" "+n+'="'+t[n]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+e+"</svg>"}function MJ(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function zJ(e){return"data:image/svg+xml,"+MJ(e)}function NJ(e){return'url("'+zJ(e)+'")'}const Sy={...t3,inline:!1},HJ={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},jJ={display:"inline-block"},lp={backgroundColor:"currentColor"},u3={backgroundColor:"transparent"},_y={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Ey={webkitMask:lp,mask:lp,background:u3};for(const e in Ey){const t=Ey[e];for(const r in _y)t[e+r]=_y[r]}const mu={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";mu[e+"-flip"]=t,mu[e.slice(0,1)+"-flip"]=t,mu[e+"Flip"]=t});function Ty(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const ky=(e,t)=>{const r=DJ(Sy,t),n={...HJ},o=t.mode||"svg",i={},a=t.style,s=typeof a=="object"&&!(a instanceof Array)?a:{};for(let g in t){const v=t[g];if(v!==void 0)switch(g){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":r[g]=v===!0||v==="true"||v===1;break;case"flip":typeof v=="string"&&RJ(r,v);break;case"color":i.color=v;break;case"rotate":typeof v=="string"?r[g]=LJ(v):typeof v=="number"&&(r[g]=v);break;case"ariaHidden":case"aria-hidden":v!==!0&&v!=="true"&&delete n["aria-hidden"];break;default:{const m=mu[g];m?(v===!0||v==="true"||v===1)&&(r[m]=!0):Sy[g]===void 0&&(n[g]=v)}}}const l=nJ(e,r),c=l.attributes;if(r.inline&&(i.verticalAlign="-0.125em"),o==="svg"){n.style={...i,...s},Object.assign(n,c);let g=0,v=t.id;return typeof v=="string"&&(v=v.replace(/-/g,"_")),n.innerHTML=sJ(l.body,v?()=>v+"ID"+g++:"iconifyVue"),k("svg",n)}const{body:u,width:d,height:f}=e,p=o==="mask"||(o==="bg"?!1:u.indexOf("currentColor")!==-1),h=FJ(u,{...c,width:d+"",height:f+""});return n.style={...i,"--svg":NJ(h),width:Ty(c.width),height:Ty(c.height),...jJ,...p?lp:u3,...s},k("span",n)};JE(!0);lJ("",mJ);if(typeof document<"u"&&typeof window<"u"){c3();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,r="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(n=>{try{(typeof n!="object"||n===null||n instanceof Array||typeof n.icons!="object"||typeof n.prefix!="string"||!JQ(n))&&console.error(r)}catch{console.error(r)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let r in t){const n="IconifyProviders["+r+"] is invalid.";try{const o=t[r];if(typeof o!="object"||!o||o.resources===void 0)continue;cJ(r,o)||console.error(n)}catch{console.error(n)}}}}const WJ={...Xd,body:""},UJ=me({inheritAttrs:!1,data(){return{iconMounted:!1,counter:0}},mounted(){this._name="",this._loadingIcon=null,this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(e,t){if(typeof e=="object"&&e!==null&&typeof e.body=="string")return this._name="",this.abortLoading(),{data:e};let r;if(typeof e!="string"||(r=Kd(e,!1,!0))===null)return this.abortLoading(),null;const n=ZQ(r);if(!n)return(!this._loadingIcon||this._loadingIcon.name!==e)&&(this.abortLoading(),this._name="",n!==null&&(this._loadingIcon={name:e,abort:BJ([r],()=>{this.counter++})})),null;this.abortLoading(),this._name!==e&&(this._name=e,t&&t(e));const o=["iconify"];return r.prefix!==""&&o.push("iconify--"+r.prefix),r.provider!==""&&o.push("iconify--"+r.provider),{data:n,classes:o}}},render(){this.counter;const e=this.$attrs,t=this.iconMounted?this.getIcon(e.icon,e.onLoad):null;if(!t)return ky(WJ,e);let r=e;return t.classes&&(r={...e,class:(typeof e.class=="string"?e.class+" ":"")+t.classes.join(" ")}),ky({...Xd,...t.data},r)}}),In=me({__name:"index",props:{icon:{}},setup(e){const t=RT(),r=R(()=>({class:t.class||"",style:t.style||"width: 1em, height: 1em"}));return(n,o)=>(ge(),We(W(UJ),Dn({icon:n.icon},r.value),null,16,["icon"]))}}),VJ="modulepreload",qJ=function(e){return"/"+e},Ay={},Jr=function(t,r,n){if(!r||r.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(r.map(i=>{if(i=qJ(i),i in Ay)return;Ay[i]=!0;const a=i.endsWith(".css"),s=a?'[rel="stylesheet"]':"";if(!!n)for(let u=o.length-1;u>=0;u--){const d=o[u];if(d.href===i&&(!a||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${s}`))return;const c=document.createElement("link");if(c.rel=a?"stylesheet":VJ,a||(c.as="script",c.crossOrigin=""),c.href=i,document.head.appendChild(c),a)return new Promise((u,d)=>{c.addEventListener("load",u),c.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t()).catch(i=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i})};var GJ=!1;/*!
|
||
* pinia v2.1.7
|
||
* (c) 2023 Eduardo San Martin Morote
|
||
* @license MIT
|
||
*/let d3;const Qd=e=>d3=e,f3=Symbol();function cp(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var ll;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(ll||(ll={}));function YJ(){const e=Vp(!0),t=e.run(()=>z({}));let r=[],n=[];const o=Wa({install(i){Qd(o),o._a=i,i.provide(f3,o),i.config.globalProperties.$pinia=o,n.forEach(a=>r.push(a)),n=[]},use(i){return!this._a&&!GJ?n.push(i):r.push(i),this},_p:r,_a:null,_e:e,_s:new Map,state:t});return o}const h3=()=>{};function Py(e,t,r,n=h3){e.push(t);const o=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),n())};return!r&&dd()&&qp(o),o}function ya(e,...t){e.slice().forEach(r=>{r(...t)})}const KJ=e=>e();function up(e,t){e instanceof Map&&t instanceof Map&&t.forEach((r,n)=>e.set(n,r)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const r in t){if(!t.hasOwnProperty(r))continue;const n=t[r],o=e[r];cp(o)&&cp(n)&&e.hasOwnProperty(r)&&!sr(n)&&!Go(n)?e[r]=up(o,n):e[r]=n}return e}const XJ=Symbol();function ZJ(e){return!cp(e)||!e.hasOwnProperty(XJ)}const{assign:Fo}=Object;function QJ(e){return!!(sr(e)&&e.effect)}function JJ(e,t,r,n){const{state:o,actions:i,getters:a}=t,s=r.state.value[e];let l;function c(){s||(r.state.value[e]=o?o():{});const u=oT(r.state.value[e]);return Fo(u,i,Object.keys(a||{}).reduce((d,f)=>(d[f]=Wa(R(()=>{Qd(r);const p=r._s.get(e);return a[f].call(p,p)})),d),{}))}return l=p3(e,c,t,r,n,!0),l}function p3(e,t,r={},n,o,i){let a;const s=Fo({actions:{}},r),l={deep:!0};let c,u,d=[],f=[],p;const h=n.state.value[e];!i&&!h&&(n.state.value[e]={}),z({});let g;function v(T){let P;c=u=!1,typeof T=="function"?(T(n.state.value[e]),P={type:ll.patchFunction,storeId:e,events:p}):(up(n.state.value[e],T),P={type:ll.patchObject,payload:T,storeId:e,events:p});const A=g=Symbol();zt().then(()=>{g===A&&(c=!0)}),u=!0,ya(d,P,n.state.value[e])}const m=i?function(){const{state:P}=r,A=P?P():{};this.$patch(I=>{Fo(I,A)})}:h3;function b(){a.stop(),d=[],f=[],n._s.delete(e)}function x(T,P){return function(){Qd(n);const A=Array.from(arguments),I=[],B=[];function D(j){I.push(j)}function U(j){B.push(j)}ya(f,{args:A,name:T,store:w,after:D,onError:U});let F;try{F=P.apply(this&&this.$id===e?this:w,A)}catch(j){throw ya(B,j),j}return F instanceof Promise?F.then(j=>(ya(I,j),j)).catch(j=>(ya(B,j),Promise.reject(j))):(ya(I,F),F)}}const y={_p:n,$id:e,$onAction:Py.bind(null,f),$patch:v,$reset:m,$subscribe(T,P={}){const A=Py(d,T,P.detached,()=>I()),I=a.run(()=>Ye(()=>n.state.value[e],B=>{(P.flush==="sync"?u:c)&&T({storeId:e,type:ll.direct,events:p},B)},Fo({},l,P)));return A},$dispose:b},w=Cn(y);n._s.set(e,w);const S=(n._a&&n._a.runWithContext||KJ)(()=>n._e.run(()=>(a=Vp()).run(t)));for(const T in S){const P=S[T];if(sr(P)&&!QJ(P)||Go(P))i||(h&&ZJ(P)&&(sr(P)?P.value=h[T]:up(P,h[T])),n.state.value[e][T]=P);else if(typeof P=="function"){const A=x(T,P);S[T]=A,s.actions[T]=P}}return Fo(w,S),Fo(ft(w),S),Object.defineProperty(w,"$state",{get:()=>n.state.value[e],set:T=>{v(P=>{Fo(P,T)})}}),n._p.forEach(T=>{Fo(w,a.run(()=>T({store:w,app:n._a,pinia:n,options:s})))}),h&&i&&r.hydrate&&r.hydrate(w.$state,h),c=!0,u=!0,w}function sa(e,t,r){let n,o;const i=typeof t=="function";typeof e=="string"?(n=e,o=i?r:t):(o=e,n=e.id);function a(s,l){const c=WT();return s=s||(c?Me(f3,null):null),s&&Qd(s),s=d3,s._s.has(n)||(i?p3(n,t,o,s):JJ(n,o,s)),s._s.get(n)}return a.$id=n,a}function eee(){return typeof process<"u"&&(process==null?void 0:process.type)==="renderer"?"electron":typeof wx<"u"?"wechat":typeof window<"u"&&window.matchMedia("(display-mode: standalone)").matches?"webApp":/(Android|webOS|iPhone|iPad|iPod|BlackBerry|Windows Phone)/i.test(navigator.userAgent)?"mobile":"webBrowser"}const g3="appSetting";function tee(){return{siderCollapsed:!1,theme:"auto",language:"zh-CN",env:eee()}}function ree(){const e=Nt.get(g3);return{...tee(),...e}}function nee(e){Nt.set(g3,e)}const ii=sa("app-store",{state:()=>ree(),actions:{setSiderCollapsed(e){this.siderCollapsed=e,this.recordState()},setTheme(e){localStorage.theme=e,this.theme=e,window.theme=e,this.recordState()},setLanguage(e){this.language!==e&&(this.language=e,this.recordState())},recordState(){nee(this.$state)},setEnv(){const e=/micromessenger/i.test(navigator.userAgent),t=navigator.userAgent.includes("Electron"),r=/(iPhone|iPad|iPod|Android|webOS|BlackBerry|Windows Phone)/i.test(navigator.userAgent);e?this.env="wechat":t?this.env="electron":r?this.env="mobile":!e&&!t&&(this.env="web")}}});function oee(){return ii(af)}const dp="chatStorage";function iee(){return{active:0,usingContext:!0,usingNetwork:!1,groupList:[],chatList:[],chatPreList:[],groupKeyWord:"",baseConfig:null}}function aee(){const e=Nt.get(dp);return{...iee(),...e}}function see({active:e}){Nt.set(dp,{...Nt.get(dp),active:e})}function lee(e){return e.map(t=>{const{name:r,childList:n,id:o}=t;return{label:r,value:o,children:n.map(i=>({label:i.title,value:i.prompt}))}})}function m3(e,t){return function(){return e.apply(t,arguments)}}const{toString:cee}=Object.prototype,{getPrototypeOf:fm}=Object,Jd=(e=>t=>{const r=cee.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),ro=e=>(e=e.toLowerCase(),t=>Jd(t)===e),ef=e=>t=>typeof t===e,{isArray:_s}=Array,Hl=ef("undefined");function uee(e){return e!==null&&!Hl(e)&&e.constructor!==null&&!Hl(e.constructor)&&mn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const v3=ro("ArrayBuffer");function dee(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&v3(e.buffer),t}const fee=ef("string"),mn=ef("function"),b3=ef("number"),tf=e=>e!==null&&typeof e=="object",hee=e=>e===!0||e===!1,vu=e=>{if(Jd(e)!=="object")return!1;const t=fm(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},pee=ro("Date"),gee=ro("File"),mee=ro("Blob"),vee=ro("FileList"),bee=e=>tf(e)&&mn(e.pipe),xee=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||mn(e.append)&&((t=Jd(e))==="formdata"||t==="object"&&mn(e.toString)&&e.toString()==="[object FormData]"))},yee=ro("URLSearchParams"),Cee=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function lc(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),_s(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const i=r?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let s;for(n=0;n<a;n++)s=i[n],t.call(null,e[s],s,e)}}function x3(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const y3=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),C3=e=>!Hl(e)&&e!==y3;function fp(){const{caseless:e}=C3(this)&&this||{},t={},r=(n,o)=>{const i=e&&x3(t,o)||o;vu(t[i])&&vu(n)?t[i]=fp(t[i],n):vu(n)?t[i]=fp({},n):_s(n)?t[i]=n.slice():t[i]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&lc(arguments[n],r);return t}const wee=(e,t,r,{allOwnKeys:n}={})=>(lc(t,(o,i)=>{r&&mn(o)?e[i]=m3(o,r):e[i]=o},{allOwnKeys:n}),e),See=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),_ee=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},Eee=(e,t,r,n)=>{let o,i,a;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!n||n(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=r!==!1&&fm(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Tee=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},kee=e=>{if(!e)return null;if(_s(e))return e;let t=e.length;if(!b3(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Aee=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&fm(Uint8Array)),Pee=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=n.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},$ee=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},Iee=ro("HTMLFormElement"),Bee=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),$y=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Dee=ro("RegExp"),w3=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};lc(r,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(n[i]=a||o)}),Object.defineProperties(e,n)},Oee=e=>{w3(e,(t,r)=>{if(mn(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(mn(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Ree=(e,t)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return _s(e)?n(e):n(String(e).split(t)),r},Lee=()=>{},Fee=(e,t)=>(e=+e,Number.isFinite(e)?e:t),j0="abcdefghijklmnopqrstuvwxyz",Iy="0123456789",S3={DIGIT:Iy,ALPHA:j0,ALPHA_DIGIT:j0+j0.toUpperCase()+Iy},Mee=(e=16,t=S3.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function zee(e){return!!(e&&mn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Nee=e=>{const t=new Array(10),r=(n,o)=>{if(tf(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[o]=n;const i=_s(n)?[]:{};return lc(n,(a,s)=>{const l=r(a,o+1);!Hl(l)&&(i[s]=l)}),t[o]=void 0,i}}return n};return r(e,0)},Hee=ro("AsyncFunction"),jee=e=>e&&(tf(e)||mn(e))&&mn(e.then)&&mn(e.catch),he={isArray:_s,isArrayBuffer:v3,isBuffer:uee,isFormData:xee,isArrayBufferView:dee,isString:fee,isNumber:b3,isBoolean:hee,isObject:tf,isPlainObject:vu,isUndefined:Hl,isDate:pee,isFile:gee,isBlob:mee,isRegExp:Dee,isFunction:mn,isStream:bee,isURLSearchParams:yee,isTypedArray:Aee,isFileList:vee,forEach:lc,merge:fp,extend:wee,trim:Cee,stripBOM:See,inherits:_ee,toFlatObject:Eee,kindOf:Jd,kindOfTest:ro,endsWith:Tee,toArray:kee,forEachEntry:Pee,matchAll:$ee,isHTMLForm:Iee,hasOwnProperty:$y,hasOwnProp:$y,reduceDescriptors:w3,freezeMethods:Oee,toObjectSet:Ree,toCamelCase:Bee,noop:Lee,toFiniteNumber:Fee,findKey:x3,global:y3,isContextDefined:C3,ALPHABET:S3,generateString:Mee,isSpecCompliantForm:zee,toJSONObject:Nee,isAsyncFn:Hee,isThenable:jee};function gt(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}he.inherits(gt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:he.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const _3=gt.prototype,E3={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{E3[e]={value:e}});Object.defineProperties(gt,E3);Object.defineProperty(_3,"isAxiosError",{value:!0});gt.from=(e,t,r,n,o,i)=>{const a=Object.create(_3);return he.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),gt.call(a,e.message,t,r,n,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const Wee=null;function hp(e){return he.isPlainObject(e)||he.isArray(e)}function T3(e){return he.endsWith(e,"[]")?e.slice(0,-2):e}function By(e,t,r){return e?e.concat(t).map(function(o,i){return o=T3(o),!r&&i?"["+o+"]":o}).join(r?".":""):t}function Uee(e){return he.isArray(e)&&!e.some(hp)}const Vee=he.toFlatObject(he,{},null,function(t){return/^is[A-Z]/.test(t)});function rf(e,t,r){if(!he.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=he.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,v){return!he.isUndefined(v[g])});const n=r.metaTokens,o=r.visitor||u,i=r.dots,a=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&he.isSpecCompliantForm(t);if(!he.isFunction(o))throw new TypeError("visitor must be a function");function c(h){if(h===null)return"";if(he.isDate(h))return h.toISOString();if(!l&&he.isBlob(h))throw new gt("Blob is not supported. Use a Buffer instead.");return he.isArrayBuffer(h)||he.isTypedArray(h)?l&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function u(h,g,v){let m=h;if(h&&!v&&typeof h=="object"){if(he.endsWith(g,"{}"))g=n?g:g.slice(0,-2),h=JSON.stringify(h);else if(he.isArray(h)&&Uee(h)||(he.isFileList(h)||he.endsWith(g,"[]"))&&(m=he.toArray(h)))return g=T3(g),m.forEach(function(x,y){!(he.isUndefined(x)||x===null)&&t.append(a===!0?By([g],y,i):a===null?g:g+"[]",c(x))}),!1}return hp(h)?!0:(t.append(By(v,g,i),c(h)),!1)}const d=[],f=Object.assign(Vee,{defaultVisitor:u,convertValue:c,isVisitable:hp});function p(h,g){if(!he.isUndefined(h)){if(d.indexOf(h)!==-1)throw Error("Circular reference detected in "+g.join("."));d.push(h),he.forEach(h,function(m,b){(!(he.isUndefined(m)||m===null)&&o.call(t,m,he.isString(b)?b.trim():b,g,f))===!0&&p(m,g?g.concat(b):[b])}),d.pop()}}if(!he.isObject(e))throw new TypeError("data must be an object");return p(e),t}function Dy(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function hm(e,t){this._pairs=[],e&&rf(e,this,t)}const k3=hm.prototype;k3.append=function(t,r){this._pairs.push([t,r])};k3.toString=function(t){const r=t?function(n){return t.call(this,n,Dy)}:Dy;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function qee(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function A3(e,t,r){if(!t)return e;const n=r&&r.encode||qee,o=r&&r.serialize;let i;if(o?i=o(t,r):i=he.isURLSearchParams(t)?t.toString():new hm(t,r).toString(n),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Gee{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){he.forEach(this.handlers,function(n){n!==null&&t(n)})}}const Oy=Gee,P3={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Yee=typeof URLSearchParams<"u"?URLSearchParams:hm,Kee=typeof FormData<"u"?FormData:null,Xee=typeof Blob<"u"?Blob:null,Zee={isBrowser:!0,classes:{URLSearchParams:Yee,FormData:Kee,Blob:Xee},protocols:["http","https","file","blob","url","data"]},$3=typeof window<"u"&&typeof document<"u",Qee=(e=>$3&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Jee=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),ete=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:$3,hasStandardBrowserEnv:Qee,hasStandardBrowserWebWorkerEnv:Jee},Symbol.toStringTag,{value:"Module"})),Kn={...ete,...Zee};function tte(e,t){return rf(e,new Kn.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,i){return Kn.isNode&&he.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function rte(e){return he.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function nte(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}function I3(e){function t(r,n,o,i){let a=r[i++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),l=i>=r.length;return a=!a&&he.isArray(o)?o.length:a,l?(he.hasOwnProp(o,a)?o[a]=[o[a],n]:o[a]=n,!s):((!o[a]||!he.isObject(o[a]))&&(o[a]=[]),t(r,n,o[a],i)&&he.isArray(o[a])&&(o[a]=nte(o[a])),!s)}if(he.isFormData(e)&&he.isFunction(e.entries)){const r={};return he.forEachEntry(e,(n,o)=>{t(rte(n),o,r,0)}),r}return null}function ote(e,t,r){if(he.isString(e))try{return(t||JSON.parse)(e),he.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const pm={transitional:P3,adapter:["xhr","http"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=he.isObject(t);if(i&&he.isHTMLForm(t)&&(t=new FormData(t)),he.isFormData(t))return o?JSON.stringify(I3(t)):t;if(he.isArrayBuffer(t)||he.isBuffer(t)||he.isStream(t)||he.isFile(t)||he.isBlob(t))return t;if(he.isArrayBufferView(t))return t.buffer;if(he.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return tte(t,this.formSerializer).toString();if((s=he.isFileList(t))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return rf(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),ote(t)):t}],transformResponse:[function(t){const r=this.transitional||pm.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(t&&he.isString(t)&&(n&&!this.responseType||o)){const a=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?gt.from(s,gt.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Kn.classes.FormData,Blob:Kn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};he.forEach(["delete","get","head","post","put","patch"],e=>{pm.headers[e]={}});const gm=pm,ite=he.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ate=e=>{const t={};let r,n,o;return e&&e.split(`
|
||
`).forEach(function(a){o=a.indexOf(":"),r=a.substring(0,o).trim().toLowerCase(),n=a.substring(o+1).trim(),!(!r||t[r]&&ite[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},Ry=Symbol("internals");function zs(e){return e&&String(e).trim().toLowerCase()}function bu(e){return e===!1||e==null?e:he.isArray(e)?e.map(bu):String(e)}function ste(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const lte=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function W0(e,t,r,n,o){if(he.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!he.isString(t)){if(he.isString(n))return t.indexOf(n)!==-1;if(he.isRegExp(n))return n.test(t)}}function cte(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function ute(e,t){const r=he.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,i,a){return this[n].call(this,t,o,i,a)},configurable:!0})})}class nf{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function i(s,l,c){const u=zs(l);if(!u)throw new Error("header name must be a non-empty string");const d=he.findKey(o,u);(!d||o[d]===void 0||c===!0||c===void 0&&o[d]!==!1)&&(o[d||l]=bu(s))}const a=(s,l)=>he.forEach(s,(c,u)=>i(c,u,l));return he.isPlainObject(t)||t instanceof this.constructor?a(t,r):he.isString(t)&&(t=t.trim())&&!lte(t)?a(ate(t),r):t!=null&&i(r,t,n),this}get(t,r){if(t=zs(t),t){const n=he.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return ste(o);if(he.isFunction(r))return r.call(this,o,n);if(he.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=zs(t),t){const n=he.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||W0(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function i(a){if(a=zs(a),a){const s=he.findKey(n,a);s&&(!r||W0(n,n[s],s,r))&&(delete n[s],o=!0)}}return he.isArray(t)?t.forEach(i):i(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const i=r[n];(!t||W0(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const r=this,n={};return he.forEach(this,(o,i)=>{const a=he.findKey(n,i);if(a){r[a]=bu(o),delete r[i];return}const s=t?cte(i):String(i).trim();s!==i&&delete r[i],r[s]=bu(o),n[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return he.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&he.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
|
||
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[Ry]=this[Ry]={accessors:{}}).accessors,o=this.prototype;function i(a){const s=zs(a);n[s]||(ute(o,a),n[s]=!0)}return he.isArray(t)?t.forEach(i):i(t),this}}nf.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);he.reduceDescriptors(nf.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});he.freezeMethods(nf);const mo=nf;function U0(e,t){const r=this||gm,n=t||r,o=mo.from(n.headers);let i=n.data;return he.forEach(e,function(s){i=s.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function B3(e){return!!(e&&e.__CANCEL__)}function cc(e,t,r){gt.call(this,e??"canceled",gt.ERR_CANCELED,t,r),this.name="CanceledError"}he.inherits(cc,gt,{__CANCEL__:!0});function dte(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new gt("Request failed with status code "+r.status,[gt.ERR_BAD_REQUEST,gt.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const fte=Kn.hasStandardBrowserEnv?{write(e,t,r,n,o,i){const a=[e+"="+encodeURIComponent(t)];he.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),he.isString(n)&&a.push("path="+n),he.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function hte(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function pte(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function D3(e,t){return e&&!hte(t)?pte(e,t):t}const gte=Kn.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function o(i){let a=i;return t&&(r.setAttribute("href",a),a=r.href),r.setAttribute("href",a),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=o(window.location.href),function(a){const s=he.isString(a)?o(a):a;return s.protocol===n.protocol&&s.host===n.host}}():function(){return function(){return!0}}();function mte(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function vte(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=n[i];a||(a=c),r[o]=l,n[o]=c;let d=i,f=0;for(;d!==o;)f+=r[d++],d=d%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),c-a<t)return;const p=u&&c-u;return p?Math.round(f*1e3/p):void 0}}function Ly(e,t){let r=0;const n=vte(50,250);return o=>{const i=o.loaded,a=o.lengthComputable?o.total:void 0,s=i-r,l=n(s),c=i<=a;r=i;const u={loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&c?(a-i)/l:void 0,event:o};u[t?"download":"upload"]=!0,e(u)}}const bte=typeof XMLHttpRequest<"u",xte=bte&&function(e){return new Promise(function(r,n){let o=e.data;const i=mo.from(e.headers).normalize();let{responseType:a,withXSRFToken:s}=e,l;function c(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}let u;if(he.isFormData(o)){if(Kn.hasStandardBrowserEnv||Kn.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((u=i.getContentType())!==!1){const[g,...v]=u?u.split(";").map(m=>m.trim()).filter(Boolean):[];i.setContentType([g||"multipart/form-data",...v].join("; "))}}let d=new XMLHttpRequest;if(e.auth){const g=e.auth.username||"",v=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(g+":"+v))}const f=D3(e.baseURL,e.url);d.open(e.method.toUpperCase(),A3(f,e.params,e.paramsSerializer),!0),d.timeout=e.timeout;function p(){if(!d)return;const g=mo.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),m={data:!a||a==="text"||a==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:g,config:e,request:d};dte(function(x){r(x),c()},function(x){n(x),c()},m),d=null}if("onloadend"in d?d.onloadend=p:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(p)},d.onabort=function(){d&&(n(new gt("Request aborted",gt.ECONNABORTED,e,d)),d=null)},d.onerror=function(){n(new gt("Network Error",gt.ERR_NETWORK,e,d)),d=null},d.ontimeout=function(){let v=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const m=e.transitional||P3;e.timeoutErrorMessage&&(v=e.timeoutErrorMessage),n(new gt(v,m.clarifyTimeoutError?gt.ETIMEDOUT:gt.ECONNABORTED,e,d)),d=null},Kn.hasStandardBrowserEnv&&(s&&he.isFunction(s)&&(s=s(e)),s||s!==!1&>e(f))){const g=e.xsrfHeaderName&&e.xsrfCookieName&&fte.read(e.xsrfCookieName);g&&i.set(e.xsrfHeaderName,g)}o===void 0&&i.setContentType(null),"setRequestHeader"in d&&he.forEach(i.toJSON(),function(v,m){d.setRequestHeader(m,v)}),he.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),a&&a!=="json"&&(d.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&d.addEventListener("progress",Ly(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",Ly(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=g=>{d&&(n(!g||g.type?new cc(null,e,d):g),d.abort(),d=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const h=mte(f);if(h&&Kn.protocols.indexOf(h)===-1){n(new gt("Unsupported protocol "+h+":",gt.ERR_BAD_REQUEST,e));return}d.send(o||null)})},pp={http:Wee,xhr:xte};he.forEach(pp,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Fy=e=>`- ${e}`,yte=e=>he.isFunction(e)||e===null||e===!1,O3={getAdapter:e=>{e=he.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let i=0;i<t;i++){r=e[i];let a;if(n=r,!yte(r)&&(n=pp[(a=String(r)).toLowerCase()],n===void 0))throw new gt(`Unknown adapter '${a}'`);if(n)break;o[a||"#"+i]=n}if(!n){const i=Object.entries(o).map(([s,l])=>`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since :
|
||
`+i.map(Fy).join(`
|
||
`):" "+Fy(i[0]):"as no adapter specified";throw new gt("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return n},adapters:pp};function V0(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new cc(null,e)}function My(e){return V0(e),e.headers=mo.from(e.headers),e.data=U0.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),O3.getAdapter(e.adapter||gm.adapter)(e).then(function(n){return V0(e),n.data=U0.call(e,e.transformResponse,n),n.headers=mo.from(n.headers),n},function(n){return B3(n)||(V0(e),n&&n.response&&(n.response.data=U0.call(e,e.transformResponse,n.response),n.response.headers=mo.from(n.response.headers))),Promise.reject(n)})}const zy=e=>e instanceof mo?e.toJSON():e;function os(e,t){t=t||{};const r={};function n(c,u,d){return he.isPlainObject(c)&&he.isPlainObject(u)?he.merge.call({caseless:d},c,u):he.isPlainObject(u)?he.merge({},u):he.isArray(u)?u.slice():u}function o(c,u,d){if(he.isUndefined(u)){if(!he.isUndefined(c))return n(void 0,c,d)}else return n(c,u,d)}function i(c,u){if(!he.isUndefined(u))return n(void 0,u)}function a(c,u){if(he.isUndefined(u)){if(!he.isUndefined(c))return n(void 0,c)}else return n(void 0,u)}function s(c,u,d){if(d in t)return n(c,u);if(d in e)return n(void 0,c)}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(c,u)=>o(zy(c),zy(u),!0)};return he.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=l[u]||o,f=d(e[u],t[u],u);he.isUndefined(f)&&d!==s||(r[u]=f)}),r}const R3="1.6.7",mm={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{mm[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Ny={};mm.transitional=function(t,r,n){function o(i,a){return"[Axios v"+R3+"] Transitional option '"+i+"'"+a+(n?". "+n:"")}return(i,a,s)=>{if(t===!1)throw new gt(o(a," has been removed"+(r?" in "+r:"")),gt.ERR_DEPRECATED);return r&&!Ny[a]&&(Ny[a]=!0,console.warn(o(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,a,s):!0}};function Cte(e,t,r){if(typeof e!="object")throw new gt("options must be an object",gt.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],a=t[i];if(a){const s=e[i],l=s===void 0||a(s,i,e);if(l!==!0)throw new gt("option "+i+" must be "+l,gt.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new gt("Unknown option "+i,gt.ERR_BAD_OPTION)}}const gp={assertOptions:Cte,validators:mm},Oo=gp.validators;class Ku{constructor(t){this.defaults=t,this.interceptors={request:new Oy,response:new Oy}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
|
||
`+i):n.stack=i}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=os(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&gp.assertOptions(n,{silentJSONParsing:Oo.transitional(Oo.boolean),forcedJSONParsing:Oo.transitional(Oo.boolean),clarifyTimeoutError:Oo.transitional(Oo.boolean)},!1),o!=null&&(he.isFunction(o)?r.paramsSerializer={serialize:o}:gp.assertOptions(o,{encode:Oo.function,serialize:Oo.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let a=i&&he.merge(i.common,i[r.method]);i&&he.forEach(["delete","get","head","post","put","patch","common"],h=>{delete i[h]}),r.headers=mo.concat(a,i);const s=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(r)===!1||(l=l&&g.synchronous,s.unshift(g.fulfilled,g.rejected))});const c=[];this.interceptors.response.forEach(function(g){c.push(g.fulfilled,g.rejected)});let u,d=0,f;if(!l){const h=[My.bind(this),void 0];for(h.unshift.apply(h,s),h.push.apply(h,c),f=h.length,u=Promise.resolve(r);d<f;)u=u.then(h[d++],h[d++]);return u}f=s.length;let p=r;for(d=0;d<f;){const h=s[d++],g=s[d++];try{p=h(p)}catch(v){g.call(this,v);break}}try{u=My.call(this,p)}catch(h){return Promise.reject(h)}for(d=0,f=c.length;d<f;)u=u.then(c[d++],c[d++]);return u}getUri(t){t=os(this.defaults,t);const r=D3(t.baseURL,t.url);return A3(r,t.params,t.paramsSerializer)}}he.forEach(["delete","get","head","options"],function(t){Ku.prototype[t]=function(r,n){return this.request(os(n||{},{method:t,url:r,data:(n||{}).data}))}});he.forEach(["post","put","patch"],function(t){function r(n){return function(i,a,s){return this.request(os(s||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}Ku.prototype[t]=r(),Ku.prototype[t+"Form"]=r(!0)});const xu=Ku;class vm{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(o=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(s=>{n.subscribe(s),i=s}).then(o);return a.cancel=function(){n.unsubscribe(i)},a},t(function(i,a,s){n.reason||(n.reason=new cc(i,a,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new vm(function(o){t=o}),cancel:t}}}const wte=vm;function Ste(e){return function(r){return e.apply(null,r)}}function _te(e){return he.isObject(e)&&e.isAxiosError===!0}const mp={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(mp).forEach(([e,t])=>{mp[t]=e});const Ete=mp;function L3(e){const t=new xu(e),r=m3(xu.prototype.request,t);return he.extend(r,xu.prototype,t,{allOwnKeys:!0}),he.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return L3(os(e,o))},r}const gr=L3(gm);gr.Axios=xu;gr.CanceledError=cc;gr.CancelToken=wte;gr.isCancel=B3;gr.VERSION=R3;gr.toFormData=rf;gr.AxiosError=gt;gr.Cancel=gr.CanceledError;gr.all=function(t){return Promise.all(t)};gr.spread=Ste;gr.isAxiosError=_te;gr.mergeConfig=os;gr.AxiosHeaders=mo;gr.formToJSON=e=>I3(he.isHTMLForm(e)?new FormData(e):e);gr.getAdapter=O3.getAdapter;gr.HttpStatusCode=Ete;gr.default=gr;const Tte=gr,Xu=Tte.create({baseURL:"/api",timeout:2400*1e3});Xu.interceptors.request.use(e=>{var o;const t=Tr().token,r=(o=of())==null?void 0:o.fingerprint,n=window.location.origin;return e.headers["X-Website-Domain"]=n,r&&(e.headers.Fingerprint=r),t&&(e.headers.Authorization=`Bearer ${t}`),e},e=>Promise.reject(e.response));Xu.interceptors.response.use(e=>{if([200,201].includes(e.status))return e;throw new Error(e.status.toString())},e=>Promise.reject(e));let Hy=0;const kte=["/chatlog/chatList","/group/query"];function Ate(e){return e?kte.some(t=>e.includes(t)):!1}function F3({url:e,data:t,method:r,headers:n,onDownloadProgress:o,signal:i,beforeRequest:a,afterRequest:s}){const l=d=>{const f=Tr(),{code:p}=d.data;return p>=200&&p<300||!p?d.data:(p===401&&(f.removeToken(),window.location.reload()),Promise.reject(d.data))},c=d=>{var g,v,m,b,x,y;const f=Tr();let p="";if((g=d.response)!=null&&g.data&&(p=d.response.data),s==null||s(),((v=d==null?void 0:d.response)==null?void 0:v.status)===401){if(f.removeToken(),!Ate((m=d==null?void 0:d.request)==null?void 0:m.responseURL)){f.loadInit&&f.setLoginDialog(!0);const w=((b=d.response.data)==null?void 0:b.message)||"请先登录后再进行使用!";Date.now()-Hy>3e3&&window.$message.error(w)}Hy=Date.now()}else p&&!(p!=null&&p.success)&&window.$message.error((p==null?void 0:p.message)||"请求接口错误!");throw new Error(((y=(x=d.response)==null?void 0:x.data)==null?void 0:y.message)||d||"Error")};a==null||a(),r=r||"GET";const u=Object.assign(typeof t=="function"?t():t??{},{});return r==="GET"?Xu.get(e,{params:u,signal:i,onDownloadProgress:o}).then(l,c):Xu.post(e,u,{headers:n,signal:i,onDownloadProgress:o}).then(l,c)}function Dt({url:e,data:t,method:r="GET",onDownloadProgress:n,signal:o,beforeRequest:i,afterRequest:a}){return F3({url:e,method:r,data:t,onDownloadProgress:n,signal:o,beforeRequest:i,afterRequest:a})}function mt({url:e,data:t,method:r="POST",headers:n,onDownloadProgress:o,signal:i,beforeRequest:a,afterRequest:s}){return F3({url:e,method:r,data:t,headers:n,onDownloadProgress:o,signal:i,beforeRequest:a,afterRequest:s})}function Pte(e){return mt({url:"/group/create",data:e})}function $te(){return Dt({url:"/group/query"})}function Ite(e){return mt({url:"/group/update",data:e})}function Bte(e){return mt({url:"/group/del",data:e})}function Dte(e){return mt({url:"/group/delAll",data:e})}function Ote(e){return mt({url:"/chatlog/del",data:e})}function Rte(e){return mt({url:"/chatlog/delByGroupId",data:e})}function Lte(e){return Dt({url:"/chatlog/chatList",data:e})}function Yde(){return Dt({url:"/models/list"})}function Fte(){return Dt({url:"/models/baseConfig"})}function Kde(e){return mt({url:"/chatgpt/chat-process",data:{model:e.model,modelName:e.modelName,modelType:e.modelType,prompt:e.prompt,fileInfo:e==null?void 0:e.fileInfo,extraParam:e==null?void 0:e.extraParam,appId:e==null?void 0:e.appId,options:e.options,action:e==null?void 0:e.action,customId:e==null?void 0:e.customId,drawId:e==null?void 0:e.drawId},signal:e.signal,onDownloadProgress:e.onDownloadProgress})}function Mte(){return Dt({url:"/auth/getInfo"})}function zte(e){return mt({url:"/auth/register",data:e})}function Nte(e){return mt({url:"/auth/registerByPhone",data:e})}function jy(e){return mt({url:"/auth/login",data:e})}function Hte(e){return mt({url:"/auth/loginByPhone",data:e})}function Xde(e){return mt({url:"/user/update",data:e})}function Zde(e){return mt({url:"/auth/updatePassword",data:e})}function Qde(e){return mt({url:"/chatgpt/chat-sync",data:{prompt:e.prompt,options:e.options},signal:e.signal,onDownloadProgress:e.onDownloadProgress})}function Jde(e){return mt({url:"/chatgpt/chat-mind",data:{prompt:e.prompt,options:e.options},signal:e.signal,onDownloadProgress:e.onDownloadProgress})}function efe(e){return mt({url:"/chatgpt/mj-fy",data:e})}function tfe(e){return Dt({url:"/midjourney/drawList",data:e})}function rfe(){return Dt({url:"/midjourney/queryPrompts"})}function nfe(e){return Dt({url:"/midjourney/getFullPrompt",data:e})}function ofe(e){return mt({url:"/midjourney/delete",data:e})}function ife(e){return Dt({url:"/midjourney/getList",data:e})}function M3(e){return mt({url:"/auth/captcha",data:e})}function jte(e){return mt({url:"/auth/sendPhoneCode",data:e})}function afe(){return Dt({url:"/chatgpt/queryChatBoxFrontend"})}function Wte(){return Dt({url:"/chatgpt/queryChatPreList"})}const z3=sa("chat-store",{state:()=>aee(),getters:{activeConfig:e=>{var o;const t=e.active;if(!t)return{};const r=(o=e.groupList.find(i=>i.uuid===t))==null?void 0:o.config;return r?JSON.parse(r):e.baseConfig},activeGroupAppId:e=>{var r;const t=e.active;return t?(r=e.groupList.find(n=>n.uuid===t))==null?void 0:r.appId:null},activeModel(e){var t,r;return(r=(t=this.activeConfig)==null?void 0:t.modelInfo)==null?void 0:r.model},activeModelName(e){var t,r;return(r=(t=this.activeConfig)==null?void 0:t.modelInfo)==null?void 0:r.modelName},activeModelAvatar(e){var t,r;return(r=(t=this.activeConfig)==null?void 0:t.modelInfo)==null?void 0:r.modelAvatar},activeModelDeductType(e){var t,r;return(r=(t=this.activeConfig)==null?void 0:t.modelInfo)==null?void 0:r.deductType},activeModelKeyType(e){var t,r;return(r=(t=this.activeConfig)==null?void 0:t.modelInfo)==null?void 0:r.keyType},activeModelFileUpload(e){var t,r;return(r=(t=this.activeConfig)==null?void 0:t.modelInfo)==null?void 0:r.isFileUpload},activeModelPrice(e){var t,r;return(r=(t=this.activeConfig)==null?void 0:t.modelInfo)==null?void 0:r.deduct}},actions:{setGroupKeyWord(e){this.groupKeyWord=e},getChatByGroupInfo(){if(this.active)return this.groupList.find(e=>e.uuid===this.active)||{}},getConfigFromUuid(e){var t;return(t=this.groupList.find(r=>r.uuid===e))==null?void 0:t.config},async addNewChatGroup(e=0){const t=await Pte({appId:e}),{id:r}=t.data;this.chatList=[],await this.setActiveGroup(r),this.recordState()},async getBaseModelConfig(){const e=await Fte();this.baseConfig=e==null?void 0:e.data},async queryMyGroup(){const e=await $te();this.groupList=[...e.data.map(r=>{const{id:n,title:o,isSticky:i,createdAt:a,updatedAt:s,appId:l,config:c,appLogo:u,isFixedModel:d,isGpts:f}=r;return{uuid:n,title:o,isEdit:!1,appId:l,config:c,isSticky:i,appLogo:u,createdAt:a,isFixedModel:d,isGpts:f,updatedAt:new Date(s).getTime()}})];const t=this.groupList.some(r=>Number(r.uuid)===Number(this.active));(!this.active||!t)&&this.groupList.length&&this.setActiveGroup(this.groupList[0].uuid)},async updateGroupInfo(e){await Ite(e)},async setActiveGroup(e){this.active=e,this.active?await this.queryActiveChatLogList():this.chatList=[],this.groupList.forEach(t=>t.isEdit=!1),this.recordState(),console.log("激活对话组设置完成")},async deleteGroup(e){const t=this.groupList.findIndex(n=>n.uuid===e.uuid),{uuid:r}=e;await Bte({groupId:r}),await this.queryMyGroup(),this.groupList.length===0&&await this.setActiveGroup(0),t>0&&t<this.groupList.length&&await this.setActiveGroup(this.groupList[t].uuid),t===0&&this.groupList.length>0&&await this.setActiveGroup(this.groupList[0].uuid),(t>this.groupList.length||t===0&&this.groupList.length===0)&&await this.setActiveGroup(0),t>0&&t===this.groupList.length&&await this.setActiveGroup(this.groupList[t-1].uuid),this.recordState()},async delAllGroup(){!this.active||!this.groupList.length||(await Dte(),await this.queryMyGroup(),this.groupList.length===0?await this.setActiveGroup(0):await this.setActiveGroup(this.groupList[0].uuid))},async queryActiveChatLogList(){if(!this.active||Number(this.active)===0)return;const e=await Lte({groupId:this.active});this.chatList=e.data},addGroupChat(e){this.chatList=[...this.chatList,e]},updateGroupChat(e,t){this.chatList[e]={...this.chatList[e],...t}},updateGroupChatSome(e,t){this.chatList[e]={...this.chatList[e],...t}},async deleteChatById(e){e&&(await Ote({id:e}),await this.queryActiveChatLogList())},async queryChatPre(){const e=await Wte();e.data&&(this.chatPreList=lee(e.data))},setUsingContext(e){this.usingContext=e,this.recordState()},setUsingNetwork(e){this.usingNetwork=e,this.recordState()},async clearChatByGroupId(){this.active&&(await Rte({groupId:this.active}),await this.queryActiveChatLogList())},recordState(){see(this.$state)},clearChat(){this.chatList=[],this.groupList=[],this.active=0,this.recordState()}}}),N3="promptStore";function Ute(){return Nt.get(N3)??{promptList:[]}}function Vte(e){Nt.set(N3,e)}sa("prompt-store",{state:()=>Ute(),actions:{updatePromptList(e){this.$patch({promptList:e}),Vte({promptList:e})},getPromptList(){return this.$state}}});const bm="settingsStorage";function H3(){return{systemMessage:""}}function qte(){const e=Nt.get(bm);return{...H3(),...e}}function Gte(e){Nt.set(bm,e)}function Yte(){Nt.remove(bm)}sa("setting-store",{state:()=>qte(),actions:{updateSetting(e){this.$state={...this.$state,...e},this.recordState()},resetSetting(){this.$state=H3(),Yte()},recordState(){Gte(this.$state)}}});const xm="SECRET_TOKEN";function Kte(){return Nt.get(xm)}function Xte(e){return Nt.set(xm,e)}function q0(){return Nt.remove(xm)}function Zte(e){return Dt({url:"/config/queryFronet",data:e})}function j3(e){return Dt({url:"/menu/list",data:e})}function sfe(e){return Dt({url:"/balance/rechargeLog",data:e})}function Qte(){return Dt({url:"/balance/query"})}function lfe(){return Dt({url:"/balance/getVisitorCount"})}function cfe(){return mt({url:"/balance/inheritVisitorData"})}const Tr=sa("auth-store",{state:()=>({token:Kte(),loginDialog:!1,globalConfigLoading:!0,userInfo:{},userBalance:{},globalConfig:{},loadInit:!1}),getters:{isLogin:e=>!!e.token},actions:{async getUserInfo(){try{this.loadInit||await this.getglobalConfig();const e=await Mte();if(!e)return Promise.resolve(e);const{data:t}=e,{userInfo:r,userBalance:n}=t;return this.userInfo={...r},this.userBalance={...n},Promise.resolve(t)}catch(e){return Promise.reject(e)}},updateUserBalance(e){this.userBalance=e},async getUserBalance(){const e=await Qte(),{success:t,data:r}=e;t&&(this.userBalance=r)},async getglobalConfig(e=""){const t=await Zte({domain:e});this.globalConfig=t.data,this.globalConfigLoading=!1,this.loadInit=!0},setToken(e){this.token=e,Xte(e)},removeToken(){this.token=void 0,q0()},setLoginDialog(e){this.loginDialog=e},logOut(){this.token=void 0,q0(),this.userInfo={},this.userBalance={},window.$message.success("登出账户成功!"),z3().clearChat()},updatePasswordSuccess(){this.token=void 0,q0(),this.userInfo={},this.userBalance={},this.loginDialog=!0}}});function Jte(){return Tr(af)}const of=sa("global-store",{state:()=>({payDialog:!1,goodsDialog:!1,noticeDialog:!1,bindWxDialog:!1,signInDialog:!1,modelDialog:!1,isChatIn:!1,fingerprint:0,model:Nt.get("model")||3,orderInfo:{},iframeUrl:"",clipboardText:""}),actions:{updateClipboardText(e){this.clipboardText=e},updateFingerprint(e){let t=e;t>2147483647&&(t=Number(t.toString().slice(-9)),t=Number(String(Number(t)))),Nt.set("fingerprint",t),this.fingerprint=t},updateIframeUrl(e){this.iframeUrl=e},updatePayDialog(e){this.payDialog=e},updateIsChatIn(e){this.isChatIn=e},updateGoodsDialog(e){this.goodsDialog=e},updateBindwxDialog(e){this.bindWxDialog=e},updateSignInDialog(e){this.signInDialog=e},updateNoticeDialog(e){this.noticeDialog=e},updateOrderInfo(e){this.orderInfo=e},updateModel(e){Nt.set("model",e),this.model=e}}});function ai(){return of(af)}function ufe(){return Dt({url:"/app/queryCats"})}function dfe(){return Dt({url:"/app/list"})}function ere(){return Dt({url:"/app/mineApps"})}function ffe(e){return mt({url:"/app/collect",data:e})}function hfe(e){return mt({url:"/app/customApp",data:e})}function pfe(e){return mt({url:"/app/delMineApp",data:e})}function gfe(e){return Dt({url:"/app/queryOneCat",data:e})}const mfe=sa("app-cat-store",{state:()=>({catId:0,mineApps:[]}),actions:{setCatId(e){this.catId=e},async queryMineApps(){var t;const e=await ere();this.mineApps=((t=e==null?void 0:e.data)==null?void 0:t.rows)||[]}}}),af=YJ();function tre(e){e.use(af)}const rre="/assets/avatar-e985e5ec.png";var Wy;const W3=typeof window<"u";W3&&((Wy=window==null?void 0:window.navigator)!=null&&Wy.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function nre(e){return e}function ore(e,t){var r;if(typeof e=="number")return e+t;const n=((r=e.match(/^-?[0-9]+\.?[0-9]*/))==null?void 0:r[0])||"",o=e.slice(n.length),i=parseFloat(n)+t;return Number.isNaN(i)?e:i+o}function ire(e){return dd()?(qp(e),!0):!1}function are(e){return typeof e=="function"?R(e):z(e)}function sre(e,t=!0){Er()?St(e):t?e():zt(e)}const U3=W3?window:void 0;function lre(e,t=!1){const r=z(),n=()=>r.value=!!e();return n(),sre(n,t),r}function Ns(e,t={}){const{window:r=U3}=t,n=lre(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function");let o;const i=z(!1),a=()=>{o&&("removeEventListener"in o?o.removeEventListener("change",s):o.removeListener(s))},s=()=>{n.value&&(a(),o=r.matchMedia(are(e).value),i.value=o.matches,"addEventListener"in o?o.addEventListener("change",s):o.addListener(s))};return $r(s),ire(()=>a()),i}const cre={sm:640,md:768,lg:1024,xl:1280,"2xl":1536};var ure=Object.defineProperty,Uy=Object.getOwnPropertySymbols,dre=Object.prototype.hasOwnProperty,fre=Object.prototype.propertyIsEnumerable,Vy=(e,t,r)=>t in e?ure(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,hre=(e,t)=>{for(var r in t||(t={}))dre.call(t,r)&&Vy(e,r,t[r]);if(Uy)for(var r of Uy(t))fre.call(t,r)&&Vy(e,r,t[r]);return e};function pre(e,t={}){function r(s,l){let c=e[s];return l!=null&&(c=ore(c,l)),typeof c=="number"&&(c=`${c}px`),c}const{window:n=U3}=t;function o(s){return n?n.matchMedia(s).matches:!1}const i=s=>Ns(`(min-width: ${r(s)})`,t),a=Object.keys(e).reduce((s,l)=>(Object.defineProperty(s,l,{get:()=>i(l),enumerable:!0,configurable:!0}),s),{});return hre({greater(s){return Ns(`(min-width: ${r(s,.1)})`,t)},greaterOrEqual:i,smaller(s){return Ns(`(max-width: ${r(s,-.1)})`,t)},smallerOrEqual(s){return Ns(`(max-width: ${r(s)})`,t)},between(s,l){return Ns(`(min-width: ${r(s)}) and (max-width: ${r(l,-.1)})`,t)},isGreater(s){return o(`(min-width: ${r(s,.1)})`)},isGreaterOrEqual(s){return o(`(min-width: ${r(s)})`)},isSmaller(s){return o(`(max-width: ${r(s,-.1)})`)},isSmallerOrEqual(s){return o(`(max-width: ${r(s)})`)},isInBetween(s,l){return o(`(min-width: ${r(s)}) and (max-width: ${r(l,-.1)})`)}},a)}const qy=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Gy="__vueuse_ssr_handlers__";qy[Gy]=qy[Gy]||{};var Yy;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Yy||(Yy={}));var gre=Object.defineProperty,Ky=Object.getOwnPropertySymbols,mre=Object.prototype.hasOwnProperty,vre=Object.prototype.propertyIsEnumerable,Xy=(e,t,r)=>t in e?gre(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,bre=(e,t)=>{for(var r in t||(t={}))mre.call(t,r)&&Xy(e,r,t[r]);if(Ky)for(var r of Ky(t))vre.call(t,r)&&Xy(e,r,t[r]);return e};const xre={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};bre({linear:nre},xre);function yo(){const e=pre(cre),t=e.smaller("sm"),r=e.smaller("md"),n=e.smaller("lg"),o=e.smaller("xl");return{isMobile:t,isSmallMd:r,isSmallLg:n,isSmallXl:o}}/*!
|
||
* shared v9.10.1
|
||
* (c) 2024 kazuya kawaguchi
|
||
* Released under the MIT License.
|
||
*/const Zu=typeof window<"u",si=(e,t=!1)=>t?Symbol.for(e):Symbol(e),yre=(e,t,r)=>Cre({l:e,k:t,s:r}),Cre=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),yr=e=>typeof e=="number"&&isFinite(e),wre=e=>q3(e)==="[object Date]",ei=e=>q3(e)==="[object RegExp]",sf=e=>Je(e)&&Object.keys(e).length===0,Pr=Object.assign;let Zy;const uo=()=>Zy||(Zy=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Qy(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const Sre=Object.prototype.hasOwnProperty;function Qu(e,t){return Sre.call(e,t)}const Gt=Array.isArray,Lt=e=>typeof e=="function",Be=e=>typeof e=="string",ct=e=>typeof e=="boolean",_t=e=>e!==null&&typeof e=="object",_re=e=>_t(e)&&Lt(e.then)&&Lt(e.catch),V3=Object.prototype.toString,q3=e=>V3.call(e),Je=e=>{if(!_t(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},Ere=e=>e==null?"":Gt(e)||Je(e)&&e.toString===V3?JSON.stringify(e,null,2):String(e);function Tre(e,t=""){return e.reduce((r,n,o)=>o===0?r+n:r+t+n,"")}function ym(e){let t=e;return()=>++t}function kre(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Yc=e=>!_t(e)||Gt(e);function yu(e,t){if(Yc(e)||Yc(t))throw new Error("Invalid value");const r=[{src:e,des:t}];for(;r.length;){const{src:n,des:o}=r.pop();Object.keys(n).forEach(i=>{Yc(n[i])||Yc(o[i])?o[i]=n[i]:r.push({src:n[i],des:o[i]})})}}/*!
|
||
* message-compiler v9.10.1
|
||
* (c) 2024 kazuya kawaguchi
|
||
* Released under the MIT License.
|
||
*/function Are(e,t,r){return{line:e,column:t,offset:r}}function vp(e,t,r){const n={start:e,end:t};return r!=null&&(n.source=r),n}const Pre=/\{([0-9a-zA-Z]+)\}/g;function $re(e,...t){return t.length===1&&Ire(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(Pre,(r,n)=>t.hasOwnProperty(n)?t[n]:"")}const G3=Object.assign,Jy=e=>typeof e=="string",Ire=e=>e!==null&&typeof e=="object";function Y3(e,t=""){return e.reduce((r,n,o)=>o===0?r+n:r+t+n,"")}const Ke={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},Bre={[Ke.EXPECTED_TOKEN]:"Expected token: '{0}'",[Ke.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[Ke.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[Ke.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[Ke.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[Ke.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[Ke.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[Ke.EMPTY_PLACEHOLDER]:"Empty placeholder",[Ke.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[Ke.INVALID_LINKED_FORMAT]:"Invalid linked format",[Ke.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[Ke.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[Ke.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[Ke.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[Ke.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[Ke.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Es(e,t,r={}){const{domain:n,messages:o,args:i}=r,a=$re((o||Bre)[e]||"",...i||[]),s=new SyntaxError(String(a));return s.code=e,t&&(s.location=t),s.domain=n,s}function Dre(e){throw e}const so=" ",Ore="\r",Nr=`
|
||
`,Rre=String.fromCharCode(8232),Lre=String.fromCharCode(8233);function Fre(e){const t=e;let r=0,n=1,o=1,i=0;const a=S=>t[S]===Ore&&t[S+1]===Nr,s=S=>t[S]===Nr,l=S=>t[S]===Lre,c=S=>t[S]===Rre,u=S=>a(S)||s(S)||l(S)||c(S),d=()=>r,f=()=>n,p=()=>o,h=()=>i,g=S=>a(S)||l(S)||c(S)?Nr:t[S],v=()=>g(r),m=()=>g(r+i);function b(){return i=0,u(r)&&(n++,o=0),a(r)&&r++,r++,o++,t[r]}function x(){return a(r+i)&&i++,i++,t[r+i]}function y(){r=0,n=1,o=1,i=0}function w(S=0){i=S}function C(){const S=r+i;for(;S!==r;)b();i=0}return{index:d,line:f,column:p,peekOffset:h,charAt:g,currentChar:v,currentPeek:m,next:b,peek:x,reset:y,resetPeek:w,skipToPeek:C}}const Ro=void 0,Mre=".",eC="'",zre="tokenizer";function Nre(e,t={}){const r=t.location!==!1,n=Fre(e),o=()=>n.index(),i=()=>Are(n.line(),n.column(),n.index()),a=i(),s=o(),l={currentType:14,offset:s,startLoc:a,endLoc:a,lastType:14,lastOffset:s,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},c=()=>l,{onError:u}=t;function d(_,E,$,...L){const M=c();if(E.column+=$,E.offset+=$,u){const J=r?vp(M.startLoc,E):null,oe=Es(_,J,{domain:zre,args:L});u(oe)}}function f(_,E,$){_.endLoc=i(),_.currentType=E;const L={type:E};return r&&(L.loc=vp(_.startLoc,_.endLoc)),$!=null&&(L.value=$),L}const p=_=>f(_,14);function h(_,E){return _.currentChar()===E?(_.next(),E):(d(Ke.EXPECTED_TOKEN,i(),0,E),"")}function g(_){let E="";for(;_.currentPeek()===so||_.currentPeek()===Nr;)E+=_.currentPeek(),_.peek();return E}function v(_){const E=g(_);return _.skipToPeek(),E}function m(_){if(_===Ro)return!1;const E=_.charCodeAt(0);return E>=97&&E<=122||E>=65&&E<=90||E===95}function b(_){if(_===Ro)return!1;const E=_.charCodeAt(0);return E>=48&&E<=57}function x(_,E){const{currentType:$}=E;if($!==2)return!1;g(_);const L=m(_.currentPeek());return _.resetPeek(),L}function y(_,E){const{currentType:$}=E;if($!==2)return!1;g(_);const L=_.currentPeek()==="-"?_.peek():_.currentPeek(),M=b(L);return _.resetPeek(),M}function w(_,E){const{currentType:$}=E;if($!==2)return!1;g(_);const L=_.currentPeek()===eC;return _.resetPeek(),L}function C(_,E){const{currentType:$}=E;if($!==8)return!1;g(_);const L=_.currentPeek()===".";return _.resetPeek(),L}function S(_,E){const{currentType:$}=E;if($!==9)return!1;g(_);const L=m(_.currentPeek());return _.resetPeek(),L}function T(_,E){const{currentType:$}=E;if(!($===8||$===12))return!1;g(_);const L=_.currentPeek()===":";return _.resetPeek(),L}function P(_,E){const{currentType:$}=E;if($!==10)return!1;const L=()=>{const J=_.currentPeek();return J==="{"?m(_.peek()):J==="@"||J==="%"||J==="|"||J===":"||J==="."||J===so||!J?!1:J===Nr?(_.peek(),L()):m(J)},M=L();return _.resetPeek(),M}function A(_){g(_);const E=_.currentPeek()==="|";return _.resetPeek(),E}function I(_){const E=g(_),$=_.currentPeek()==="%"&&_.peek()==="{";return _.resetPeek(),{isModulo:$,hasSpace:E.length>0}}function B(_,E=!0){const $=(M=!1,J="",oe=!1)=>{const O=_.currentPeek();return O==="{"?J==="%"?!1:M:O==="@"||!O?J==="%"?!0:M:O==="%"?(_.peek(),$(M,"%",!0)):O==="|"?J==="%"||oe?!0:!(J===so||J===Nr):O===so?(_.peek(),$(!0,so,oe)):O===Nr?(_.peek(),$(!0,Nr,oe)):!0},L=$();return E&&_.resetPeek(),L}function D(_,E){const $=_.currentChar();return $===Ro?Ro:E($)?(_.next(),$):null}function U(_){return D(_,$=>{const L=$.charCodeAt(0);return L>=97&&L<=122||L>=65&&L<=90||L>=48&&L<=57||L===95||L===36})}function F(_){return D(_,$=>{const L=$.charCodeAt(0);return L>=48&&L<=57})}function j(_){return D(_,$=>{const L=$.charCodeAt(0);return L>=48&&L<=57||L>=65&&L<=70||L>=97&&L<=102})}function K(_){let E="",$="";for(;E=F(_);)$+=E;return $}function ae(_){v(_);const E=_.currentChar();return E!=="%"&&d(Ke.EXPECTED_TOKEN,i(),0,E),_.next(),"%"}function we(_){let E="";for(;;){const $=_.currentChar();if($==="{"||$==="}"||$==="@"||$==="|"||!$)break;if($==="%")if(B(_))E+=$,_.next();else break;else if($===so||$===Nr)if(B(_))E+=$,_.next();else{if(A(_))break;E+=$,_.next()}else E+=$,_.next()}return E}function Ce(_){v(_);let E="",$="";for(;E=U(_);)$+=E;return _.currentChar()===Ro&&d(Ke.UNTERMINATED_CLOSING_BRACE,i(),0),$}function X(_){v(_);let E="";return _.currentChar()==="-"?(_.next(),E+=`-${K(_)}`):E+=K(_),_.currentChar()===Ro&&d(Ke.UNTERMINATED_CLOSING_BRACE,i(),0),E}function re(_){v(_),h(_,"'");let E="",$="";const L=J=>J!==eC&&J!==Nr;for(;E=D(_,L);)E==="\\"?$+=le(_):$+=E;const M=_.currentChar();return M===Nr||M===Ro?(d(Ke.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),M===Nr&&(_.next(),h(_,"'")),$):(h(_,"'"),$)}function le(_){const E=_.currentChar();switch(E){case"\\":case"'":return _.next(),`\\${E}`;case"u":return ne(_,E,4);case"U":return ne(_,E,6);default:return d(Ke.UNKNOWN_ESCAPE_SEQUENCE,i(),0,E),""}}function ne(_,E,$){h(_,E);let L="";for(let M=0;M<$;M++){const J=j(_);if(!J){d(Ke.INVALID_UNICODE_ESCAPE_SEQUENCE,i(),0,`\\${E}${L}${_.currentChar()}`);break}L+=J}return`\\${E}${L}`}function $e(_){v(_);let E="",$="";const L=M=>M!=="{"&&M!=="}"&&M!==so&&M!==Nr;for(;E=D(_,L);)$+=E;return $}function Se(_){let E="",$="";for(;E=U(_);)$+=E;return $}function ee(_){const E=($=!1,L)=>{const M=_.currentChar();return M==="{"||M==="%"||M==="@"||M==="|"||M==="("||M===")"||!M||M===so?L:M===Nr||M===Mre?(L+=M,_.next(),E($,L)):(L+=M,_.next(),E(!0,L))};return E(!1,"")}function se(_){v(_);const E=h(_,"|");return v(_),E}function ce(_,E){let $=null;switch(_.currentChar()){case"{":return E.braceNest>=1&&d(Ke.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),_.next(),$=f(E,2,"{"),v(_),E.braceNest++,$;case"}":return E.braceNest>0&&E.currentType===2&&d(Ke.EMPTY_PLACEHOLDER,i(),0),_.next(),$=f(E,3,"}"),E.braceNest--,E.braceNest>0&&v(_),E.inLinked&&E.braceNest===0&&(E.inLinked=!1),$;case"@":return E.braceNest>0&&d(Ke.UNTERMINATED_CLOSING_BRACE,i(),0),$=xe(_,E)||p(E),E.braceNest=0,$;default:let M=!0,J=!0,oe=!0;if(A(_))return E.braceNest>0&&d(Ke.UNTERMINATED_CLOSING_BRACE,i(),0),$=f(E,1,se(_)),E.braceNest=0,E.inLinked=!1,$;if(E.braceNest>0&&(E.currentType===5||E.currentType===6||E.currentType===7))return d(Ke.UNTERMINATED_CLOSING_BRACE,i(),0),E.braceNest=0,Te(_,E);if(M=x(_,E))return $=f(E,5,Ce(_)),v(_),$;if(J=y(_,E))return $=f(E,6,X(_)),v(_),$;if(oe=w(_,E))return $=f(E,7,re(_)),v(_),$;if(!M&&!J&&!oe)return $=f(E,13,$e(_)),d(Ke.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,$.value),v(_),$;break}return $}function xe(_,E){const{currentType:$}=E;let L=null;const M=_.currentChar();switch(($===8||$===9||$===12||$===10)&&(M===Nr||M===so)&&d(Ke.INVALID_LINKED_FORMAT,i(),0),M){case"@":return _.next(),L=f(E,8,"@"),E.inLinked=!0,L;case".":return v(_),_.next(),f(E,9,".");case":":return v(_),_.next(),f(E,10,":");default:return A(_)?(L=f(E,1,se(_)),E.braceNest=0,E.inLinked=!1,L):C(_,E)||T(_,E)?(v(_),xe(_,E)):S(_,E)?(v(_),f(E,12,Se(_))):P(_,E)?(v(_),M==="{"?ce(_,E)||L:f(E,11,ee(_))):($===8&&d(Ke.INVALID_LINKED_FORMAT,i(),0),E.braceNest=0,E.inLinked=!1,Te(_,E))}}function Te(_,E){let $={type:14};if(E.braceNest>0)return ce(_,E)||p(E);if(E.inLinked)return xe(_,E)||p(E);switch(_.currentChar()){case"{":return ce(_,E)||p(E);case"}":return d(Ke.UNBALANCED_CLOSING_BRACE,i(),0),_.next(),f(E,3,"}");case"@":return xe(_,E)||p(E);default:if(A(_))return $=f(E,1,se(_)),E.braceNest=0,E.inLinked=!1,$;const{isModulo:M,hasSpace:J}=I(_);if(M)return J?f(E,0,we(_)):f(E,4,ae(_));if(B(_))return f(E,0,we(_));break}return $}function Pe(){const{currentType:_,offset:E,startLoc:$,endLoc:L}=l;return l.lastType=_,l.lastOffset=E,l.lastStartLoc=$,l.lastEndLoc=L,l.offset=o(),l.startLoc=i(),n.currentChar()===Ro?f(l,14):Te(n,l)}return{nextToken:Pe,currentOffset:o,currentPosition:i,context:c}}const Hre="parser",jre=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Wre(e,t,r){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const n=parseInt(t||r,16);return n<=55295||n>=57344?String.fromCodePoint(n):"<22>"}}}function Ure(e={}){const t=e.location!==!1,{onError:r}=e;function n(m,b,x,y,...w){const C=m.currentPosition();if(C.offset+=y,C.column+=y,r){const S=t?vp(x,C):null,T=Es(b,S,{domain:Hre,args:w});r(T)}}function o(m,b,x){const y={type:m};return t&&(y.start=b,y.end=b,y.loc={start:x,end:x}),y}function i(m,b,x,y){y&&(m.type=y),t&&(m.end=b,m.loc&&(m.loc.end=x))}function a(m,b){const x=m.context(),y=o(3,x.offset,x.startLoc);return y.value=b,i(y,m.currentOffset(),m.currentPosition()),y}function s(m,b){const x=m.context(),{lastOffset:y,lastStartLoc:w}=x,C=o(5,y,w);return C.index=parseInt(b,10),m.nextToken(),i(C,m.currentOffset(),m.currentPosition()),C}function l(m,b){const x=m.context(),{lastOffset:y,lastStartLoc:w}=x,C=o(4,y,w);return C.key=b,m.nextToken(),i(C,m.currentOffset(),m.currentPosition()),C}function c(m,b){const x=m.context(),{lastOffset:y,lastStartLoc:w}=x,C=o(9,y,w);return C.value=b.replace(jre,Wre),m.nextToken(),i(C,m.currentOffset(),m.currentPosition()),C}function u(m){const b=m.nextToken(),x=m.context(),{lastOffset:y,lastStartLoc:w}=x,C=o(8,y,w);return b.type!==12?(n(m,Ke.UNEXPECTED_EMPTY_LINKED_MODIFIER,x.lastStartLoc,0),C.value="",i(C,y,w),{nextConsumeToken:b,node:C}):(b.value==null&&n(m,Ke.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,Hn(b)),C.value=b.value||"",i(C,m.currentOffset(),m.currentPosition()),{node:C})}function d(m,b){const x=m.context(),y=o(7,x.offset,x.startLoc);return y.value=b,i(y,m.currentOffset(),m.currentPosition()),y}function f(m){const b=m.context(),x=o(6,b.offset,b.startLoc);let y=m.nextToken();if(y.type===9){const w=u(m);x.modifier=w.node,y=w.nextConsumeToken||m.nextToken()}switch(y.type!==10&&n(m,Ke.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Hn(y)),y=m.nextToken(),y.type===2&&(y=m.nextToken()),y.type){case 11:y.value==null&&n(m,Ke.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Hn(y)),x.key=d(m,y.value||"");break;case 5:y.value==null&&n(m,Ke.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Hn(y)),x.key=l(m,y.value||"");break;case 6:y.value==null&&n(m,Ke.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Hn(y)),x.key=s(m,y.value||"");break;case 7:y.value==null&&n(m,Ke.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Hn(y)),x.key=c(m,y.value||"");break;default:n(m,Ke.UNEXPECTED_EMPTY_LINKED_KEY,b.lastStartLoc,0);const w=m.context(),C=o(7,w.offset,w.startLoc);return C.value="",i(C,w.offset,w.startLoc),x.key=C,i(x,w.offset,w.startLoc),{nextConsumeToken:y,node:x}}return i(x,m.currentOffset(),m.currentPosition()),{node:x}}function p(m){const b=m.context(),x=b.currentType===1?m.currentOffset():b.offset,y=b.currentType===1?b.endLoc:b.startLoc,w=o(2,x,y);w.items=[];let C=null;do{const P=C||m.nextToken();switch(C=null,P.type){case 0:P.value==null&&n(m,Ke.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Hn(P)),w.items.push(a(m,P.value||""));break;case 6:P.value==null&&n(m,Ke.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Hn(P)),w.items.push(s(m,P.value||""));break;case 5:P.value==null&&n(m,Ke.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Hn(P)),w.items.push(l(m,P.value||""));break;case 7:P.value==null&&n(m,Ke.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Hn(P)),w.items.push(c(m,P.value||""));break;case 8:const A=f(m);w.items.push(A.node),C=A.nextConsumeToken||null;break}}while(b.currentType!==14&&b.currentType!==1);const S=b.currentType===1?b.lastOffset:m.currentOffset(),T=b.currentType===1?b.lastEndLoc:m.currentPosition();return i(w,S,T),w}function h(m,b,x,y){const w=m.context();let C=y.items.length===0;const S=o(1,b,x);S.cases=[],S.cases.push(y);do{const T=p(m);C||(C=T.items.length===0),S.cases.push(T)}while(w.currentType!==14);return C&&n(m,Ke.MUST_HAVE_MESSAGES_IN_PLURAL,x,0),i(S,m.currentOffset(),m.currentPosition()),S}function g(m){const b=m.context(),{offset:x,startLoc:y}=b,w=p(m);return b.currentType===14?w:h(m,x,y,w)}function v(m){const b=Nre(m,G3({},e)),x=b.context(),y=o(0,x.offset,x.startLoc);return t&&y.loc&&(y.loc.source=m),y.body=g(b),e.onCacheKey&&(y.cacheKey=e.onCacheKey(m)),x.currentType!==14&&n(b,Ke.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,m[x.offset]||""),i(y,b.currentOffset(),b.currentPosition()),y}return{parse:v}}function Hn(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function Vre(e,t={}){const r={ast:e,helpers:new Set};return{context:()=>r,helper:i=>(r.helpers.add(i),i)}}function tC(e,t){for(let r=0;r<e.length;r++)Cm(e[r],t)}function Cm(e,t){switch(e.type){case 1:tC(e.cases,t),t.helper("plural");break;case 2:tC(e.items,t);break;case 6:Cm(e.key,t),t.helper("linked"),t.helper("type");break;case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function qre(e,t={}){const r=Vre(e);r.helper("normalize"),e.body&&Cm(e.body,r);const n=r.context();e.helpers=Array.from(n.helpers)}function Gre(e){const t=e.body;return t.type===2?rC(t):t.cases.forEach(r=>rC(r)),e}function rC(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let r=0;r<e.items.length;r++){const n=e.items[r];if(!(n.type===3||n.type===9)||n.value==null)break;t.push(n.value)}if(t.length===e.items.length){e.static=Y3(t);for(let r=0;r<e.items.length;r++){const n=e.items[r];(n.type===3||n.type===9)&&delete n.value}}}}const Yre="minifier";function Ea(e){switch(e.t=e.type,e.type){case 0:const t=e;Ea(t.body),t.b=t.body,delete t.body;break;case 1:const r=e,n=r.cases;for(let u=0;u<n.length;u++)Ea(n[u]);r.c=n,delete r.cases;break;case 2:const o=e,i=o.items;for(let u=0;u<i.length;u++)Ea(i[u]);o.i=i,delete o.items,o.static&&(o.s=o.static,delete o.static);break;case 3:case 9:case 8:case 7:const a=e;a.value&&(a.v=a.value,delete a.value);break;case 6:const s=e;Ea(s.key),s.k=s.key,delete s.key,s.modifier&&(Ea(s.modifier),s.m=s.modifier,delete s.modifier);break;case 5:const l=e;l.i=l.index,delete l.index;break;case 4:const c=e;c.k=c.key,delete c.key;break;default:throw Es(Ke.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:Yre,args:[e.type]})}delete e.type}const Kre="parser";function Xre(e,t){const{sourceMap:r,filename:n,breakLineCode:o,needIndent:i}=t,a=t.location!==!1,s={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:o,needIndent:i,indentLevel:0};a&&e.loc&&(s.source=e.loc.source);const l=()=>s;function c(v,m){s.code+=v}function u(v,m=!0){const b=m?o:"";c(i?b+" ".repeat(v):b)}function d(v=!0){const m=++s.indentLevel;v&&u(m)}function f(v=!0){const m=--s.indentLevel;v&&u(m)}function p(){u(s.indentLevel)}return{context:l,push:c,indent:d,deindent:f,newline:p,helper:v=>`_${v}`,needIndent:()=>s.needIndent}}function Zre(e,t){const{helper:r}=e;e.push(`${r("linked")}(`),is(e,t.key),t.modifier?(e.push(", "),is(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function Qre(e,t){const{helper:r,needIndent:n}=e;e.push(`${r("normalize")}([`),e.indent(n());const o=t.items.length;for(let i=0;i<o&&(is(e,t.items[i]),i!==o-1);i++)e.push(", ");e.deindent(n()),e.push("])")}function Jre(e,t){const{helper:r,needIndent:n}=e;if(t.cases.length>1){e.push(`${r("plural")}([`),e.indent(n());const o=t.cases.length;for(let i=0;i<o&&(is(e,t.cases[i]),i!==o-1);i++)e.push(", ");e.deindent(n()),e.push("])")}}function ene(e,t){t.body?is(e,t.body):e.push("null")}function is(e,t){const{helper:r}=e;switch(t.type){case 0:ene(e,t);break;case 1:Jre(e,t);break;case 2:Qre(e,t);break;case 6:Zre(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${r("interpolate")}(${r("list")}(${t.index}))`,t);break;case 4:e.push(`${r("interpolate")}(${r("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:throw Es(Ke.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:Kre,args:[t.type]})}}const tne=(e,t={})=>{const r=Jy(t.mode)?t.mode:"normal",n=Jy(t.filename)?t.filename:"message.intl",o=!!t.sourceMap,i=t.breakLineCode!=null?t.breakLineCode:r==="arrow"?";":`
|
||
`,a=t.needIndent?t.needIndent:r!=="arrow",s=e.helpers||[],l=Xre(e,{mode:r,filename:n,sourceMap:o,breakLineCode:i,needIndent:a});l.push(r==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(a),s.length>0&&(l.push(`const { ${Y3(s.map(d=>`${d}: _${d}`),", ")} } = ctx`),l.newline()),l.push("return "),is(l,e),l.deindent(a),l.push("}"),delete e.helpers;const{code:c,map:u}=l.context();return{ast:e,code:c,map:u?u.toJSON():void 0}};function rne(e,t={}){const r=G3({},t),n=!!r.jit,o=!!r.minify,i=r.optimize==null?!0:r.optimize,s=Ure(r).parse(e);return n?(i&&Gre(s),o&&Ea(s),{ast:s,code:""}):(qre(s,r),tne(s,r))}/*!
|
||
* core-base v9.10.1
|
||
* (c) 2024 kazuya kawaguchi
|
||
* Released under the MIT License.
|
||
*/function nne(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(uo().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(uo().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(uo().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const li=[];li[0]={w:[0],i:[3,0],"[":[4],o:[7]};li[1]={w:[1],".":[2],"[":[4],o:[7]};li[2]={w:[2],i:[3,0],0:[3,0]};li[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};li[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};li[5]={"'":[4,0],o:8,l:[5,0]};li[6]={'"':[4,0],o:8,l:[6,0]};const one=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function ine(e){return one.test(e)}function ane(e){const t=e.charCodeAt(0),r=e.charCodeAt(e.length-1);return t===r&&(t===34||t===39)?e.slice(1,-1):e}function sne(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function lne(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:ine(t)?ane(t):"*"+t}function cne(e){const t=[];let r=-1,n=0,o=0,i,a,s,l,c,u,d;const f=[];f[0]=()=>{a===void 0?a=s:a+=s},f[1]=()=>{a!==void 0&&(t.push(a),a=void 0)},f[2]=()=>{f[0](),o++},f[3]=()=>{if(o>0)o--,n=4,f[0]();else{if(o=0,a===void 0||(a=lne(a),a===!1))return!1;f[1]()}};function p(){const h=e[r+1];if(n===5&&h==="'"||n===6&&h==='"')return r++,s="\\"+h,f[0](),!0}for(;n!==null;)if(r++,i=e[r],!(i==="\\"&&p())){if(l=sne(i),d=li[n],c=d[l]||d.l||8,c===8||(n=c[0],c[1]!==void 0&&(u=f[c[1]],u&&(s=i,u()===!1))))return;if(n===7)return t}}const nC=new Map;function une(e,t){return _t(e)?e[t]:null}function dne(e,t){if(!_t(e))return null;let r=nC.get(t);if(r||(r=cne(t),r&&nC.set(t,r)),!r)return null;const n=r.length;let o=e,i=0;for(;i<n;){const a=o[r[i]];if(a===void 0||Lt(o))return null;o=a,i++}return o}const fne=e=>e,hne=e=>"",pne="text",gne=e=>e.length===0?"":Tre(e),mne=Ere;function oC(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function vne(e){const t=yr(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(yr(e.named.count)||yr(e.named.n))?yr(e.named.count)?e.named.count:yr(e.named.n)?e.named.n:t:t}function bne(e,t){t.count||(t.count=e),t.n||(t.n=e)}function xne(e={}){const t=e.locale,r=vne(e),n=_t(e.pluralRules)&&Be(t)&&Lt(e.pluralRules[t])?e.pluralRules[t]:oC,o=_t(e.pluralRules)&&Be(t)&&Lt(e.pluralRules[t])?oC:void 0,i=m=>m[n(r,m.length,o)],a=e.list||[],s=m=>a[m],l=e.named||{};yr(e.pluralIndex)&&bne(r,l);const c=m=>l[m];function u(m){const b=Lt(e.messages)?e.messages(m):_t(e.messages)?e.messages[m]:!1;return b||(e.parent?e.parent.message(m):hne)}const d=m=>e.modifiers?e.modifiers[m]:fne,f=Je(e.processor)&&Lt(e.processor.normalize)?e.processor.normalize:gne,p=Je(e.processor)&&Lt(e.processor.interpolate)?e.processor.interpolate:mne,h=Je(e.processor)&&Be(e.processor.type)?e.processor.type:pne,v={list:s,named:c,plural:i,linked:(m,...b)=>{const[x,y]=b;let w="text",C="";b.length===1?_t(x)?(C=x.modifier||C,w=x.type||w):Be(x)&&(C=x||C):b.length===2&&(Be(x)&&(C=x||C),Be(y)&&(w=y||w));const S=u(m)(v),T=w==="vnode"&&Gt(S)&&C?S[0]:S;return C?d(C)(T,w):T},message:u,type:h,interpolate:p,normalize:f,values:Pr({},a,l)};return v}let jl=null;function yne(e){jl=e}function Cne(e,t,r){jl&&jl.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:r})}const wne=Sne("function:translate");function Sne(e){return t=>jl&&jl.emit(e,t)}const _ne={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7,__EXTEND_POINT__:8},K3=Ke.__EXTEND_POINT__,bi=ym(K3),$n={INVALID_ARGUMENT:K3,INVALID_DATE_ARGUMENT:bi(),INVALID_ISO_DATE_ARGUMENT:bi(),NOT_SUPPORT_NON_STRING_MESSAGE:bi(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:bi(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:bi(),NOT_SUPPORT_LOCALE_TYPE:bi(),__EXTEND_POINT__:bi()};function Xn(e){return Es(e,null,void 0)}function wm(e,t){return t.locale!=null?iC(t.locale):iC(e.locale)}let G0;function iC(e){if(Be(e))return e;if(Lt(e)){if(e.resolvedOnce&&G0!=null)return G0;if(e.constructor.name==="Function"){const t=e();if(_re(t))throw Xn($n.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return G0=t}else throw Xn($n.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Xn($n.NOT_SUPPORT_LOCALE_TYPE)}function Ene(e,t,r){return[...new Set([r,...Gt(t)?t:_t(t)?Object.keys(t):Be(t)?[t]:[r]])]}function X3(e,t,r){const n=Be(r)?r:as,o=e;o.__localeChainCache||(o.__localeChainCache=new Map);let i=o.__localeChainCache.get(n);if(!i){i=[];let a=[r];for(;Gt(a);)a=aC(i,a,t);const s=Gt(t)||!Je(t)?t:t.default?t.default:null;a=Be(s)?[s]:s,Gt(a)&&aC(i,a,!1),o.__localeChainCache.set(n,i)}return i}function aC(e,t,r){let n=!0;for(let o=0;o<t.length&&ct(n);o++){const i=t[o];Be(i)&&(n=Tne(e,t[o],r))}return n}function Tne(e,t,r){let n;const o=t.split("-");do{const i=o.join("-");n=kne(e,i,r),o.splice(-1,1)}while(o.length&&n===!0);return n}function kne(e,t,r){let n=!1;if(!e.includes(t)&&(n=!0,t)){n=t[t.length-1]!=="!";const o=t.replace(/!/g,"");e.push(o),(Gt(r)||Je(r))&&r[o]&&(n=r[o])}return n}const Ane="9.10.1",lf=-1,as="en-US",sC="",lC=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Pne(){return{upper:(e,t)=>t==="text"&&Be(e)?e.toUpperCase():t==="vnode"&&_t(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&Be(e)?e.toLowerCase():t==="vnode"&&_t(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&Be(e)?lC(e):t==="vnode"&&_t(e)&&"__v_isVNode"in e?lC(e.children):e}}let Z3;function cC(e){Z3=e}let Q3;function $ne(e){Q3=e}let J3;function Ine(e){J3=e}let e5=null;const Bne=e=>{e5=e},Dne=()=>e5;let t5=null;const uC=e=>{t5=e},One=()=>t5;let dC=0;function Rne(e={}){const t=Lt(e.onWarn)?e.onWarn:kre,r=Be(e.version)?e.version:Ane,n=Be(e.locale)||Lt(e.locale)?e.locale:as,o=Lt(n)?as:n,i=Gt(e.fallbackLocale)||Je(e.fallbackLocale)||Be(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:o,a=Je(e.messages)?e.messages:{[o]:{}},s=Je(e.datetimeFormats)?e.datetimeFormats:{[o]:{}},l=Je(e.numberFormats)?e.numberFormats:{[o]:{}},c=Pr({},e.modifiers||{},Pne()),u=e.pluralRules||{},d=Lt(e.missing)?e.missing:null,f=ct(e.missingWarn)||ei(e.missingWarn)?e.missingWarn:!0,p=ct(e.fallbackWarn)||ei(e.fallbackWarn)?e.fallbackWarn:!0,h=!!e.fallbackFormat,g=!!e.unresolving,v=Lt(e.postTranslation)?e.postTranslation:null,m=Je(e.processor)?e.processor:null,b=ct(e.warnHtmlMessage)?e.warnHtmlMessage:!0,x=!!e.escapeParameter,y=Lt(e.messageCompiler)?e.messageCompiler:Z3,w=Lt(e.messageResolver)?e.messageResolver:Q3||une,C=Lt(e.localeFallbacker)?e.localeFallbacker:J3||Ene,S=_t(e.fallbackContext)?e.fallbackContext:void 0,T=e,P=_t(T.__datetimeFormatters)?T.__datetimeFormatters:new Map,A=_t(T.__numberFormatters)?T.__numberFormatters:new Map,I=_t(T.__meta)?T.__meta:{};dC++;const B={version:r,cid:dC,locale:n,fallbackLocale:i,messages:a,modifiers:c,pluralRules:u,missing:d,missingWarn:f,fallbackWarn:p,fallbackFormat:h,unresolving:g,postTranslation:v,processor:m,warnHtmlMessage:b,escapeParameter:x,messageCompiler:y,messageResolver:w,localeFallbacker:C,fallbackContext:S,onWarn:t,__meta:I};return B.datetimeFormats=s,B.numberFormats=l,B.__datetimeFormatters=P,B.__numberFormatters=A,__INTLIFY_PROD_DEVTOOLS__&&Cne(B,r,I),B}function Sm(e,t,r,n,o){const{missing:i,onWarn:a}=e;if(i!==null){const s=i(e,r,t,o);return Be(s)?s:t}else return t}function Hs(e,t,r){const n=e;n.__localeChainCache=new Map,e.localeFallbacker(e,r,t)}function Y0(e){return r=>Lne(r,e)}function Lne(e,t){const r=t.b||t.body;if((r.t||r.type)===1){const n=r,o=n.c||n.cases;return e.plural(o.reduce((i,a)=>[...i,fC(e,a)],[]))}else return fC(e,r)}function fC(e,t){const r=t.s||t.static;if(r)return e.type==="text"?r:e.normalize([r]);{const n=(t.i||t.items).reduce((o,i)=>[...o,bp(e,i)],[]);return e.normalize(n)}}function bp(e,t){const r=t.t||t.type;switch(r){case 3:const n=t;return n.v||n.value;case 9:const o=t;return o.v||o.value;case 4:const i=t;return e.interpolate(e.named(i.k||i.key));case 5:const a=t;return e.interpolate(e.list(a.i!=null?a.i:a.index));case 6:const s=t,l=s.m||s.modifier;return e.linked(bp(e,s.k||s.key),l?bp(e,l):void 0,e.type);case 7:const c=t;return c.v||c.value;case 8:const u=t;return u.v||u.value;default:throw new Error(`unhandled node type on format message part: ${r}`)}}const r5=e=>e;let Ia=Object.create(null);const ss=e=>_t(e)&&(e.t===0||e.type===0)&&("b"in e||"body"in e);function n5(e,t={}){let r=!1;const n=t.onError||Dre;return t.onError=o=>{r=!0,n(o)},{...rne(e,t),detectError:r}}const Fne=(e,t)=>{if(!Be(e))throw Xn($n.NOT_SUPPORT_NON_STRING_MESSAGE);{ct(t.warnHtmlMessage)&&t.warnHtmlMessage;const n=(t.onCacheKey||r5)(e),o=Ia[n];if(o)return o;const{code:i,detectError:a}=n5(e,t),s=new Function(`return ${i}`)();return a?s:Ia[n]=s}};function Mne(e,t){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&Be(e)){ct(t.warnHtmlMessage)&&t.warnHtmlMessage;const n=(t.onCacheKey||r5)(e),o=Ia[n];if(o)return o;const{ast:i,detectError:a}=n5(e,{...t,location:!1,jit:!0}),s=Y0(i);return a?s:Ia[n]=s}else{const r=e.cacheKey;if(r){const n=Ia[r];return n||(Ia[r]=Y0(e))}else return Y0(e)}}const hC=()=>"",hn=e=>Lt(e);function pC(e,...t){const{fallbackFormat:r,postTranslation:n,unresolving:o,messageCompiler:i,fallbackLocale:a,messages:s}=e,[l,c]=xp(...t),u=ct(c.missingWarn)?c.missingWarn:e.missingWarn,d=ct(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,f=ct(c.escapeParameter)?c.escapeParameter:e.escapeParameter,p=!!c.resolvedMessage,h=Be(c.default)||ct(c.default)?ct(c.default)?i?l:()=>l:c.default:r?i?l:()=>l:"",g=r||h!=="",v=wm(e,c);f&&zne(c);let[m,b,x]=p?[l,v,s[v]||{}]:o5(e,l,v,a,d,u),y=m,w=l;if(!p&&!(Be(y)||ss(y)||hn(y))&&g&&(y=h,w=y),!p&&(!(Be(y)||ss(y)||hn(y))||!Be(b)))return o?lf:l;let C=!1;const S=()=>{C=!0},T=hn(y)?y:i5(e,l,b,y,w,S);if(C)return y;const P=jne(e,b,x,c),A=xne(P),I=Nne(e,T,A),B=n?n(I,l):I;if(__INTLIFY_PROD_DEVTOOLS__){const D={timestamp:Date.now(),key:Be(l)?l:hn(y)?y.key:"",locale:b||(hn(y)?y.locale:""),format:Be(y)?y:hn(y)?y.source:"",message:B};D.meta=Pr({},e.__meta,Dne()||{}),wne(D)}return B}function zne(e){Gt(e.list)?e.list=e.list.map(t=>Be(t)?Qy(t):t):_t(e.named)&&Object.keys(e.named).forEach(t=>{Be(e.named[t])&&(e.named[t]=Qy(e.named[t]))})}function o5(e,t,r,n,o,i){const{messages:a,onWarn:s,messageResolver:l,localeFallbacker:c}=e,u=c(e,n,r);let d={},f,p=null;const h="translate";for(let g=0;g<u.length&&(f=u[g],d=a[f]||{},(p=l(d,t))===null&&(p=d[t]),!(Be(p)||ss(p)||hn(p)));g++){const v=Sm(e,t,f,i,h);v!==t&&(p=v)}return[p,f,d]}function i5(e,t,r,n,o,i){const{messageCompiler:a,warnHtmlMessage:s}=e;if(hn(n)){const c=n;return c.locale=c.locale||r,c.key=c.key||t,c}if(a==null){const c=()=>n;return c.locale=r,c.key=t,c}const l=a(n,Hne(e,r,o,n,s,i));return l.locale=r,l.key=t,l.source=n,l}function Nne(e,t,r){return t(r)}function xp(...e){const[t,r,n]=e,o={};if(!Be(t)&&!yr(t)&&!hn(t)&&!ss(t))throw Xn($n.INVALID_ARGUMENT);const i=yr(t)?String(t):(hn(t),t);return yr(r)?o.plural=r:Be(r)?o.default=r:Je(r)&&!sf(r)?o.named=r:Gt(r)&&(o.list=r),yr(n)?o.plural=n:Be(n)?o.default=n:Je(n)&&Pr(o,n),[i,o]}function Hne(e,t,r,n,o,i){return{locale:t,key:r,warnHtmlMessage:o,onError:a=>{throw i&&i(a),a},onCacheKey:a=>yre(t,r,a)}}function jne(e,t,r,n){const{modifiers:o,pluralRules:i,messageResolver:a,fallbackLocale:s,fallbackWarn:l,missingWarn:c,fallbackContext:u}=e,f={locale:t,modifiers:o,pluralRules:i,messages:p=>{let h=a(r,p);if(h==null&&u){const[,,g]=o5(u,p,t,s,l,c);h=a(g,p)}if(Be(h)||ss(h)){let g=!1;const m=i5(e,p,t,h,p,()=>{g=!0});return g?hC:m}else return hn(h)?h:hC}};return e.processor&&(f.processor=e.processor),n.list&&(f.list=n.list),n.named&&(f.named=n.named),yr(n.plural)&&(f.pluralIndex=n.plural),f}function gC(e,...t){const{datetimeFormats:r,unresolving:n,fallbackLocale:o,onWarn:i,localeFallbacker:a}=e,{__datetimeFormatters:s}=e,[l,c,u,d]=yp(...t),f=ct(u.missingWarn)?u.missingWarn:e.missingWarn;ct(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const p=!!u.part,h=wm(e,u),g=a(e,o,h);if(!Be(l)||l==="")return new Intl.DateTimeFormat(h,d).format(c);let v={},m,b=null;const x="datetime format";for(let C=0;C<g.length&&(m=g[C],v=r[m]||{},b=v[l],!Je(b));C++)Sm(e,l,m,f,x);if(!Je(b)||!Be(m))return n?lf:l;let y=`${m}__${l}`;sf(d)||(y=`${y}__${JSON.stringify(d)}`);let w=s.get(y);return w||(w=new Intl.DateTimeFormat(m,Pr({},b,d)),s.set(y,w)),p?w.formatToParts(c):w.format(c)}const a5=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function yp(...e){const[t,r,n,o]=e,i={};let a={},s;if(Be(t)){const l=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw Xn($n.INVALID_ISO_DATE_ARGUMENT);const c=l[3]?l[3].trim().startsWith("T")?`${l[1].trim()}${l[3].trim()}`:`${l[1].trim()}T${l[3].trim()}`:l[1].trim();s=new Date(c);try{s.toISOString()}catch{throw Xn($n.INVALID_ISO_DATE_ARGUMENT)}}else if(wre(t)){if(isNaN(t.getTime()))throw Xn($n.INVALID_DATE_ARGUMENT);s=t}else if(yr(t))s=t;else throw Xn($n.INVALID_ARGUMENT);return Be(r)?i.key=r:Je(r)&&Object.keys(r).forEach(l=>{a5.includes(l)?a[l]=r[l]:i[l]=r[l]}),Be(n)?i.locale=n:Je(n)&&(a=n),Je(o)&&(a=o),[i.key||"",s,i,a]}function mC(e,t,r){const n=e;for(const o in r){const i=`${t}__${o}`;n.__datetimeFormatters.has(i)&&n.__datetimeFormatters.delete(i)}}function vC(e,...t){const{numberFormats:r,unresolving:n,fallbackLocale:o,onWarn:i,localeFallbacker:a}=e,{__numberFormatters:s}=e,[l,c,u,d]=Cp(...t),f=ct(u.missingWarn)?u.missingWarn:e.missingWarn;ct(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const p=!!u.part,h=wm(e,u),g=a(e,o,h);if(!Be(l)||l==="")return new Intl.NumberFormat(h,d).format(c);let v={},m,b=null;const x="number format";for(let C=0;C<g.length&&(m=g[C],v=r[m]||{},b=v[l],!Je(b));C++)Sm(e,l,m,f,x);if(!Je(b)||!Be(m))return n?lf:l;let y=`${m}__${l}`;sf(d)||(y=`${y}__${JSON.stringify(d)}`);let w=s.get(y);return w||(w=new Intl.NumberFormat(m,Pr({},b,d)),s.set(y,w)),p?w.formatToParts(c):w.format(c)}const s5=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Cp(...e){const[t,r,n,o]=e,i={};let a={};if(!yr(t))throw Xn($n.INVALID_ARGUMENT);const s=t;return Be(r)?i.key=r:Je(r)&&Object.keys(r).forEach(l=>{s5.includes(l)?a[l]=r[l]:i[l]=r[l]}),Be(n)?i.locale=n:Je(n)&&(a=n),Je(o)&&(a=o),[i.key||"",s,i,a]}function bC(e,t,r){const n=e;for(const o in r){const i=`${t}__${o}`;n.__numberFormatters.has(i)&&n.__numberFormatters.delete(i)}}nne();/*!
|
||
* vue-i18n v9.10.1
|
||
* (c) 2024 kazuya kawaguchi
|
||
* Released under the MIT License.
|
||
*/const Wne="9.10.1";function Une(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(uo().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(uo().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(uo().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(uo().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(uo().__INTLIFY_PROD_DEVTOOLS__=!1)}const l5=_ne.__EXTEND_POINT__,lo=ym(l5);lo(),lo(),lo(),lo(),lo(),lo(),lo(),lo(),lo();const c5=$n.__EXTEND_POINT__,Vr=ym(c5),Cr={UNEXPECTED_RETURN_TYPE:c5,INVALID_ARGUMENT:Vr(),MUST_BE_CALL_SETUP_TOP:Vr(),NOT_INSTALLED:Vr(),NOT_AVAILABLE_IN_LEGACY_MODE:Vr(),REQUIRED_VALUE:Vr(),INVALID_VALUE:Vr(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Vr(),NOT_INSTALLED_WITH_PROVIDE:Vr(),UNEXPECTED_ERROR:Vr(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Vr(),BRIDGE_SUPPORT_VUE_2_ONLY:Vr(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Vr(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Vr(),__EXTEND_POINT__:Vr()};function _r(e,...t){return Es(e,null,void 0)}const wp=si("__translateVNode"),Sp=si("__datetimeParts"),_p=si("__numberParts"),u5=si("__setPluralRules"),d5=si("__injectWithOption"),Ep=si("__dispose");function Wl(e){if(!_t(e))return e;for(const t in e)if(Qu(e,t))if(!t.includes("."))_t(e[t])&&Wl(e[t]);else{const r=t.split("."),n=r.length-1;let o=e,i=!1;for(let a=0;a<n;a++){if(r[a]in o||(o[r[a]]={}),!_t(o[r[a]])){i=!0;break}o=o[r[a]]}i||(o[r[n]]=e[t],delete e[t]),_t(o[r[n]])&&Wl(o[r[n]])}return e}function cf(e,t){const{messages:r,__i18n:n,messageResolver:o,flatJson:i}=t,a=Je(r)?r:Gt(n)?{}:{[e]:{}};if(Gt(n)&&n.forEach(s=>{if("locale"in s&&"resource"in s){const{locale:l,resource:c}=s;l?(a[l]=a[l]||{},yu(c,a[l])):yu(c,a)}else Be(s)&&yu(JSON.parse(s),a)}),o==null&&i)for(const s in a)Qu(a,s)&&Wl(a[s]);return a}function f5(e){return e.type}function h5(e,t,r){let n=_t(t.messages)?t.messages:{};"__i18nGlobal"in r&&(n=cf(e.locale.value,{messages:n,__i18n:r.__i18nGlobal}));const o=Object.keys(n);o.length&&o.forEach(i=>{e.mergeLocaleMessage(i,n[i])});{if(_t(t.datetimeFormats)){const i=Object.keys(t.datetimeFormats);i.length&&i.forEach(a=>{e.mergeDateTimeFormat(a,t.datetimeFormats[a])})}if(_t(t.numberFormats)){const i=Object.keys(t.numberFormats);i.length&&i.forEach(a=>{e.mergeNumberFormat(a,t.numberFormats[a])})}}}function xC(e){return te(hs,null,e,0)}const yC="__INTLIFY_META__",CC=()=>[],Vne=()=>!1;let wC=0;function SC(e){return(t,r,n,o)=>e(r,n,Er()||void 0,o)}const qne=()=>{const e=Er();let t=null;return e&&(t=f5(e)[yC])?{[yC]:t}:null};function _m(e={},t){const{__root:r,__injectWithOption:n}=e,o=r===void 0,i=e.flatJson,a=Zu?z:vo,s=!!e.translateExistCompatible;let l=ct(e.inheritLocale)?e.inheritLocale:!0;const c=a(r&&l?r.locale.value:Be(e.locale)?e.locale:as),u=a(r&&l?r.fallbackLocale.value:Be(e.fallbackLocale)||Gt(e.fallbackLocale)||Je(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:c.value),d=a(cf(c.value,e)),f=a(Je(e.datetimeFormats)?e.datetimeFormats:{[c.value]:{}}),p=a(Je(e.numberFormats)?e.numberFormats:{[c.value]:{}});let h=r?r.missingWarn:ct(e.missingWarn)||ei(e.missingWarn)?e.missingWarn:!0,g=r?r.fallbackWarn:ct(e.fallbackWarn)||ei(e.fallbackWarn)?e.fallbackWarn:!0,v=r?r.fallbackRoot:ct(e.fallbackRoot)?e.fallbackRoot:!0,m=!!e.fallbackFormat,b=Lt(e.missing)?e.missing:null,x=Lt(e.missing)?SC(e.missing):null,y=Lt(e.postTranslation)?e.postTranslation:null,w=r?r.warnHtmlMessage:ct(e.warnHtmlMessage)?e.warnHtmlMessage:!0,C=!!e.escapeParameter;const S=r?r.modifiers:Je(e.modifiers)?e.modifiers:{};let T=e.pluralRules||r&&r.pluralRules,P;P=(()=>{o&&uC(null);const G={version:Wne,locale:c.value,fallbackLocale:u.value,messages:d.value,modifiers:S,pluralRules:T,missing:x===null?void 0:x,missingWarn:h,fallbackWarn:g,fallbackFormat:m,unresolving:!0,postTranslation:y===null?void 0:y,warnHtmlMessage:w,escapeParameter:C,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};G.datetimeFormats=f.value,G.numberFormats=p.value,G.__datetimeFormatters=Je(P)?P.__datetimeFormatters:void 0,G.__numberFormatters=Je(P)?P.__numberFormatters:void 0;const ie=Rne(G);return o&&uC(ie),ie})(),Hs(P,c.value,u.value);function I(){return[c.value,u.value,d.value,f.value,p.value]}const B=R({get:()=>c.value,set:G=>{c.value=G,P.locale=c.value}}),D=R({get:()=>u.value,set:G=>{u.value=G,P.fallbackLocale=u.value,Hs(P,c.value,G)}}),U=R(()=>d.value),F=R(()=>f.value),j=R(()=>p.value);function K(){return Lt(y)?y:null}function ae(G){y=G,P.postTranslation=G}function we(){return b}function Ce(G){G!==null&&(x=SC(G)),b=G,P.missing=x}const X=(G,ie,Re,Ne,lt,yt)=>{I();let jt;try{__INTLIFY_PROD_DEVTOOLS__,o||(P.fallbackContext=r?One():void 0),jt=G(P)}finally{__INTLIFY_PROD_DEVTOOLS__,o||(P.fallbackContext=void 0)}if(Re!=="translate exists"&&yr(jt)&&jt===lf||Re==="translate exists"&&!jt){const[Qr,ur]=ie();return r&&v?Ne(r):lt(Qr)}else{if(yt(jt))return jt;throw _r(Cr.UNEXPECTED_RETURN_TYPE)}};function re(...G){return X(ie=>Reflect.apply(pC,null,[ie,...G]),()=>xp(...G),"translate",ie=>Reflect.apply(ie.t,ie,[...G]),ie=>ie,ie=>Be(ie))}function le(...G){const[ie,Re,Ne]=G;if(Ne&&!_t(Ne))throw _r(Cr.INVALID_ARGUMENT);return re(ie,Re,Pr({resolvedMessage:!0},Ne||{}))}function ne(...G){return X(ie=>Reflect.apply(gC,null,[ie,...G]),()=>yp(...G),"datetime format",ie=>Reflect.apply(ie.d,ie,[...G]),()=>sC,ie=>Be(ie))}function $e(...G){return X(ie=>Reflect.apply(vC,null,[ie,...G]),()=>Cp(...G),"number format",ie=>Reflect.apply(ie.n,ie,[...G]),()=>sC,ie=>Be(ie))}function Se(G){return G.map(ie=>Be(ie)||yr(ie)||ct(ie)?xC(String(ie)):ie)}const se={normalize:Se,interpolate:G=>G,type:"vnode"};function ce(...G){return X(ie=>{let Re;const Ne=ie;try{Ne.processor=se,Re=Reflect.apply(pC,null,[Ne,...G])}finally{Ne.processor=null}return Re},()=>xp(...G),"translate",ie=>ie[wp](...G),ie=>[xC(ie)],ie=>Gt(ie))}function xe(...G){return X(ie=>Reflect.apply(vC,null,[ie,...G]),()=>Cp(...G),"number format",ie=>ie[_p](...G),CC,ie=>Be(ie)||Gt(ie))}function Te(...G){return X(ie=>Reflect.apply(gC,null,[ie,...G]),()=>yp(...G),"datetime format",ie=>ie[Sp](...G),CC,ie=>Be(ie)||Gt(ie))}function Pe(G){T=G,P.pluralRules=T}function _(G,ie){return X(()=>{if(!G)return!1;const Re=Be(ie)?ie:c.value,Ne=L(Re),lt=P.messageResolver(Ne,G);return s?lt!=null:ss(lt)||hn(lt)||Be(lt)},()=>[G],"translate exists",Re=>Reflect.apply(Re.te,Re,[G,ie]),Vne,Re=>ct(Re))}function E(G){let ie=null;const Re=X3(P,u.value,c.value);for(let Ne=0;Ne<Re.length;Ne++){const lt=d.value[Re[Ne]]||{},yt=P.messageResolver(lt,G);if(yt!=null){ie=yt;break}}return ie}function $(G){const ie=E(G);return ie??(r?r.tm(G)||{}:{})}function L(G){return d.value[G]||{}}function M(G,ie){if(i){const Re={[G]:ie};for(const Ne in Re)Qu(Re,Ne)&&Wl(Re[Ne]);ie=Re[G]}d.value[G]=ie,P.messages=d.value}function J(G,ie){d.value[G]=d.value[G]||{};const Re={[G]:ie};if(i)for(const Ne in Re)Qu(Re,Ne)&&Wl(Re[Ne]);ie=Re[G],yu(ie,d.value[G]),P.messages=d.value}function oe(G){return f.value[G]||{}}function O(G,ie){f.value[G]=ie,P.datetimeFormats=f.value,mC(P,G,ie)}function H(G,ie){f.value[G]=Pr(f.value[G]||{},ie),P.datetimeFormats=f.value,mC(P,G,ie)}function V(G){return p.value[G]||{}}function ue(G,ie){p.value[G]=ie,P.numberFormats=p.value,bC(P,G,ie)}function _e(G,ie){p.value[G]=Pr(p.value[G]||{},ie),P.numberFormats=p.value,bC(P,G,ie)}wC++,r&&Zu&&(Ye(r.locale,G=>{l&&(c.value=G,P.locale=G,Hs(P,c.value,u.value))}),Ye(r.fallbackLocale,G=>{l&&(u.value=G,P.fallbackLocale=G,Hs(P,c.value,u.value))}));const Ee={id:wC,locale:B,fallbackLocale:D,get inheritLocale(){return l},set inheritLocale(G){l=G,G&&r&&(c.value=r.locale.value,u.value=r.fallbackLocale.value,Hs(P,c.value,u.value))},get availableLocales(){return Object.keys(d.value).sort()},messages:U,get modifiers(){return S},get pluralRules(){return T||{}},get isGlobal(){return o},get missingWarn(){return h},set missingWarn(G){h=G,P.missingWarn=h},get fallbackWarn(){return g},set fallbackWarn(G){g=G,P.fallbackWarn=g},get fallbackRoot(){return v},set fallbackRoot(G){v=G},get fallbackFormat(){return m},set fallbackFormat(G){m=G,P.fallbackFormat=m},get warnHtmlMessage(){return w},set warnHtmlMessage(G){w=G,P.warnHtmlMessage=G},get escapeParameter(){return C},set escapeParameter(G){C=G,P.escapeParameter=G},t:re,getLocaleMessage:L,setLocaleMessage:M,mergeLocaleMessage:J,getPostTranslationHandler:K,setPostTranslationHandler:ae,getMissingHandler:we,setMissingHandler:Ce,[u5]:Pe};return Ee.datetimeFormats=F,Ee.numberFormats=j,Ee.rt=le,Ee.te=_,Ee.tm=$,Ee.d=ne,Ee.n=$e,Ee.getDateTimeFormat=oe,Ee.setDateTimeFormat=O,Ee.mergeDateTimeFormat=H,Ee.getNumberFormat=V,Ee.setNumberFormat=ue,Ee.mergeNumberFormat=_e,Ee[d5]=n,Ee[wp]=ce,Ee[Sp]=Te,Ee[_p]=xe,Ee}function Gne(e){const t=Be(e.locale)?e.locale:as,r=Be(e.fallbackLocale)||Gt(e.fallbackLocale)||Je(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,n=Lt(e.missing)?e.missing:void 0,o=ct(e.silentTranslationWarn)||ei(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,i=ct(e.silentFallbackWarn)||ei(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,a=ct(e.fallbackRoot)?e.fallbackRoot:!0,s=!!e.formatFallbackMessages,l=Je(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,u=Lt(e.postTranslation)?e.postTranslation:void 0,d=Be(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,f=!!e.escapeParameterHtml,p=ct(e.sync)?e.sync:!0;let h=e.messages;if(Je(e.sharedMessages)){const C=e.sharedMessages;h=Object.keys(C).reduce((T,P)=>{const A=T[P]||(T[P]={});return Pr(A,C[P]),T},h||{})}const{__i18n:g,__root:v,__injectWithOption:m}=e,b=e.datetimeFormats,x=e.numberFormats,y=e.flatJson,w=e.translateExistCompatible;return{locale:t,fallbackLocale:r,messages:h,flatJson:y,datetimeFormats:b,numberFormats:x,missing:n,missingWarn:o,fallbackWarn:i,fallbackRoot:a,fallbackFormat:s,modifiers:l,pluralRules:c,postTranslation:u,warnHtmlMessage:d,escapeParameter:f,messageResolver:e.messageResolver,inheritLocale:p,translateExistCompatible:w,__i18n:g,__root:v,__injectWithOption:m}}function Tp(e={},t){{const r=_m(Gne(e)),{__extender:n}=e,o={id:r.id,get locale(){return r.locale.value},set locale(i){r.locale.value=i},get fallbackLocale(){return r.fallbackLocale.value},set fallbackLocale(i){r.fallbackLocale.value=i},get messages(){return r.messages.value},get datetimeFormats(){return r.datetimeFormats.value},get numberFormats(){return r.numberFormats.value},get availableLocales(){return r.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(i){},get missing(){return r.getMissingHandler()},set missing(i){r.setMissingHandler(i)},get silentTranslationWarn(){return ct(r.missingWarn)?!r.missingWarn:r.missingWarn},set silentTranslationWarn(i){r.missingWarn=ct(i)?!i:i},get silentFallbackWarn(){return ct(r.fallbackWarn)?!r.fallbackWarn:r.fallbackWarn},set silentFallbackWarn(i){r.fallbackWarn=ct(i)?!i:i},get modifiers(){return r.modifiers},get formatFallbackMessages(){return r.fallbackFormat},set formatFallbackMessages(i){r.fallbackFormat=i},get postTranslation(){return r.getPostTranslationHandler()},set postTranslation(i){r.setPostTranslationHandler(i)},get sync(){return r.inheritLocale},set sync(i){r.inheritLocale=i},get warnHtmlInMessage(){return r.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(i){r.warnHtmlMessage=i!=="off"},get escapeParameterHtml(){return r.escapeParameter},set escapeParameterHtml(i){r.escapeParameter=i},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(i){},get pluralizationRules(){return r.pluralRules||{}},__composer:r,t(...i){const[a,s,l]=i,c={};let u=null,d=null;if(!Be(a))throw _r(Cr.INVALID_ARGUMENT);const f=a;return Be(s)?c.locale=s:Gt(s)?u=s:Je(s)&&(d=s),Gt(l)?u=l:Je(l)&&(d=l),Reflect.apply(r.t,r,[f,u||d||{},c])},rt(...i){return Reflect.apply(r.rt,r,[...i])},tc(...i){const[a,s,l]=i,c={plural:1};let u=null,d=null;if(!Be(a))throw _r(Cr.INVALID_ARGUMENT);const f=a;return Be(s)?c.locale=s:yr(s)?c.plural=s:Gt(s)?u=s:Je(s)&&(d=s),Be(l)?c.locale=l:Gt(l)?u=l:Je(l)&&(d=l),Reflect.apply(r.t,r,[f,u||d||{},c])},te(i,a){return r.te(i,a)},tm(i){return r.tm(i)},getLocaleMessage(i){return r.getLocaleMessage(i)},setLocaleMessage(i,a){r.setLocaleMessage(i,a)},mergeLocaleMessage(i,a){r.mergeLocaleMessage(i,a)},d(...i){return Reflect.apply(r.d,r,[...i])},getDateTimeFormat(i){return r.getDateTimeFormat(i)},setDateTimeFormat(i,a){r.setDateTimeFormat(i,a)},mergeDateTimeFormat(i,a){r.mergeDateTimeFormat(i,a)},n(...i){return Reflect.apply(r.n,r,[...i])},getNumberFormat(i){return r.getNumberFormat(i)},setNumberFormat(i,a){r.setNumberFormat(i,a)},mergeNumberFormat(i,a){r.mergeNumberFormat(i,a)},getChoiceIndex(i,a){return-1}};return o.__extender=n,o}}const Em={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Yne({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((n,o)=>[...n,...o.type===st?o.children:[o]],[]):t.reduce((r,n)=>{const o=e[n];return o&&(r[n]=o()),r},{})}function p5(e){return st}const Kne=me({name:"i18n-t",props:Pr({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>yr(e)||!isNaN(e)}},Em),setup(e,t){const{slots:r,attrs:n}=t,o=e.i18n||Tm({useScope:e.scope,__useComponent:!0});return()=>{const i=Object.keys(r).filter(d=>d!=="_"),a={};e.locale&&(a.locale=e.locale),e.plural!==void 0&&(a.plural=Be(e.plural)?+e.plural:e.plural);const s=Yne(t,i),l=o[wp](e.keypath,s,a),c=Pr({},n),u=Be(e.tag)||_t(e.tag)?e.tag:p5();return k(u,c,l)}}}),_C=Kne;function Xne(e){return Gt(e)&&!Be(e[0])}function g5(e,t,r,n){const{slots:o,attrs:i}=t;return()=>{const a={part:!0};let s={};e.locale&&(a.locale=e.locale),Be(e.format)?a.key=e.format:_t(e.format)&&(Be(e.format.key)&&(a.key=e.format.key),s=Object.keys(e.format).reduce((f,p)=>r.includes(p)?Pr({},f,{[p]:e.format[p]}):f,{}));const l=n(e.value,a,s);let c=[a.key];Gt(l)?c=l.map((f,p)=>{const h=o[f.type],g=h?h({[f.type]:f.value,index:p,parts:l}):[f.value];return Xne(g)&&(g[0].key=`${f.type}-${p}`),g}):Be(l)&&(c=[l]);const u=Pr({},i),d=Be(e.tag)||_t(e.tag)?e.tag:p5();return k(d,u,c)}}const Zne=me({name:"i18n-n",props:Pr({value:{type:Number,required:!0},format:{type:[String,Object]}},Em),setup(e,t){const r=e.i18n||Tm({useScope:"parent",__useComponent:!0});return g5(e,t,s5,(...n)=>r[_p](...n))}}),EC=Zne,Qne=me({name:"i18n-d",props:Pr({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Em),setup(e,t){const r=e.i18n||Tm({useScope:"parent",__useComponent:!0});return g5(e,t,a5,(...n)=>r[Sp](...n))}}),TC=Qne;function Jne(e,t){const r=e;if(e.mode==="composition")return r.__getInstance(t)||e.global;{const n=r.__getInstance(t);return n!=null?n.__composer:e.global.__composer}}function eoe(e){const t=a=>{const{instance:s,modifiers:l,value:c}=a;if(!s||!s.$)throw _r(Cr.UNEXPECTED_ERROR);const u=Jne(e,s.$),d=kC(c);return[Reflect.apply(u.t,u,[...AC(d)]),u]};return{created:(a,s)=>{const[l,c]=t(s);Zu&&e.global===c&&(a.__i18nWatcher=Ye(c.locale,()=>{s.instance&&s.instance.$forceUpdate()})),a.__composer=c,a.textContent=l},unmounted:a=>{Zu&&a.__i18nWatcher&&(a.__i18nWatcher(),a.__i18nWatcher=void 0,delete a.__i18nWatcher),a.__composer&&(a.__composer=void 0,delete a.__composer)},beforeUpdate:(a,{value:s})=>{if(a.__composer){const l=a.__composer,c=kC(s);a.textContent=Reflect.apply(l.t,l,[...AC(c)])}},getSSRProps:a=>{const[s]=t(a);return{textContent:s}}}}function kC(e){if(Be(e))return{path:e};if(Je(e)){if(!("path"in e))throw _r(Cr.REQUIRED_VALUE,"path");return e}else throw _r(Cr.INVALID_VALUE)}function AC(e){const{path:t,locale:r,args:n,choice:o,plural:i}=e,a={},s=n||{};return Be(r)&&(a.locale=r),yr(o)&&(a.plural=o),yr(i)&&(a.plural=i),[t,s,a]}function toe(e,t,...r){const n=Je(r[0])?r[0]:{},o=!!n.useI18nComponentName;(ct(n.globalInstall)?n.globalInstall:!0)&&([o?"i18n":_C.name,"I18nT"].forEach(a=>e.component(a,_C)),[EC.name,"I18nN"].forEach(a=>e.component(a,EC)),[TC.name,"I18nD"].forEach(a=>e.component(a,TC))),e.directive("t",eoe(t))}function roe(e,t,r){return{beforeCreate(){const n=Er();if(!n)throw _r(Cr.UNEXPECTED_ERROR);const o=this.$options;if(o.i18n){const i=o.i18n;if(o.__i18n&&(i.__i18n=o.__i18n),i.__root=t,this===this.$root)this.$i18n=PC(e,i);else{i.__injectWithOption=!0,i.__extender=r.__vueI18nExtend,this.$i18n=Tp(i);const a=this.$i18n;a.__extender&&(a.__disposer=a.__extender(this.$i18n))}}else if(o.__i18n)if(this===this.$root)this.$i18n=PC(e,o);else{this.$i18n=Tp({__i18n:o.__i18n,__injectWithOption:!0,__extender:r.__vueI18nExtend,__root:t});const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}else this.$i18n=e;o.__i18nGlobal&&h5(t,o,o),this.$t=(...i)=>this.$i18n.t(...i),this.$rt=(...i)=>this.$i18n.rt(...i),this.$tc=(...i)=>this.$i18n.tc(...i),this.$te=(i,a)=>this.$i18n.te(i,a),this.$d=(...i)=>this.$i18n.d(...i),this.$n=(...i)=>this.$i18n.n(...i),this.$tm=i=>this.$i18n.tm(i),r.__setInstance(n,this.$i18n)},mounted(){},unmounted(){const n=Er();if(!n)throw _r(Cr.UNEXPECTED_ERROR);const o=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,o.__disposer&&(o.__disposer(),delete o.__disposer,delete o.__extender),r.__deleteInstance(n),delete this.$i18n}}}function PC(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[u5](t.pluralizationRules||e.pluralizationRules);const r=cf(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(r).forEach(n=>e.mergeLocaleMessage(n,r[n])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(n=>e.mergeDateTimeFormat(n,t.datetimeFormats[n])),t.numberFormats&&Object.keys(t.numberFormats).forEach(n=>e.mergeNumberFormat(n,t.numberFormats[n])),e}const noe=si("global-vue-i18n");function ooe(e={},t){const r=__VUE_I18N_LEGACY_API__&&ct(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,n=ct(e.globalInjection)?e.globalInjection:!0,o=__VUE_I18N_LEGACY_API__&&r?!!e.allowComposition:!0,i=new Map,[a,s]=ioe(e,r),l=si("");function c(f){return i.get(f)||null}function u(f,p){i.set(f,p)}function d(f){i.delete(f)}{const f={get mode(){return __VUE_I18N_LEGACY_API__&&r?"legacy":"composition"},get allowComposition(){return o},async install(p,...h){if(p.__VUE_I18N_SYMBOL__=l,p.provide(p.__VUE_I18N_SYMBOL__,f),Je(h[0])){const m=h[0];f.__composerExtend=m.__composerExtend,f.__vueI18nExtend=m.__vueI18nExtend}let g=null;!r&&n&&(g=poe(p,f.global)),__VUE_I18N_FULL_INSTALL__&&toe(p,f,...h),__VUE_I18N_LEGACY_API__&&r&&p.mixin(roe(s,s.__composer,f));const v=p.unmount;p.unmount=()=>{g&&g(),f.dispose(),v()}},get global(){return s},dispose(){a.stop()},__instances:i,__getInstance:c,__setInstance:u,__deleteInstance:d};return f}}function Tm(e={}){const t=Er();if(t==null)throw _r(Cr.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw _r(Cr.NOT_INSTALLED);const r=aoe(t),n=loe(r),o=f5(t),i=soe(e,o);if(__VUE_I18N_LEGACY_API__&&r.mode==="legacy"&&!e.__useComponent){if(!r.allowComposition)throw _r(Cr.NOT_AVAILABLE_IN_LEGACY_MODE);return foe(t,i,n,e)}if(i==="global")return h5(n,e,o),n;if(i==="parent"){let l=coe(r,t,e.__useComponent);return l==null&&(l=n),l}const a=r;let s=a.__getInstance(t);if(s==null){const l=Pr({},e);"__i18n"in o&&(l.__i18n=o.__i18n),n&&(l.__root=n),s=_m(l),a.__composerExtend&&(s[Ep]=a.__composerExtend(s)),doe(a,t,s),a.__setInstance(t,s)}return s}function ioe(e,t,r){const n=Vp();{const o=__VUE_I18N_LEGACY_API__&&t?n.run(()=>Tp(e)):n.run(()=>_m(e));if(o==null)throw _r(Cr.UNEXPECTED_ERROR);return[n,o]}}function aoe(e){{const t=Me(e.isCE?noe:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw _r(e.isCE?Cr.NOT_INSTALLED_WITH_PROVIDE:Cr.UNEXPECTED_ERROR);return t}}function soe(e,t){return sf(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function loe(e){return e.mode==="composition"?e.global:e.global.__composer}function coe(e,t,r=!1){let n=null;const o=t.root;let i=uoe(t,r);for(;i!=null;){const a=e;if(e.mode==="composition")n=a.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const s=a.__getInstance(i);s!=null&&(n=s.__composer,r&&n&&!n[d5]&&(n=null))}if(n!=null||o===i)break;i=i.parent}return n}function uoe(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function doe(e,t,r){St(()=>{},t),Xi(()=>{const n=r;e.__deleteInstance(t);const o=n[Ep];o&&(o(),delete n[Ep])},t)}function foe(e,t,r,n={}){const o=t==="local",i=vo(null);if(o&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw _r(Cr.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const a=ct(n.inheritLocale)?n.inheritLocale:!Be(n.locale),s=z(!o||a?r.locale.value:Be(n.locale)?n.locale:as),l=z(!o||a?r.fallbackLocale.value:Be(n.fallbackLocale)||Gt(n.fallbackLocale)||Je(n.fallbackLocale)||n.fallbackLocale===!1?n.fallbackLocale:s.value),c=z(cf(s.value,n)),u=z(Je(n.datetimeFormats)?n.datetimeFormats:{[s.value]:{}}),d=z(Je(n.numberFormats)?n.numberFormats:{[s.value]:{}}),f=o?r.missingWarn:ct(n.missingWarn)||ei(n.missingWarn)?n.missingWarn:!0,p=o?r.fallbackWarn:ct(n.fallbackWarn)||ei(n.fallbackWarn)?n.fallbackWarn:!0,h=o?r.fallbackRoot:ct(n.fallbackRoot)?n.fallbackRoot:!0,g=!!n.fallbackFormat,v=Lt(n.missing)?n.missing:null,m=Lt(n.postTranslation)?n.postTranslation:null,b=o?r.warnHtmlMessage:ct(n.warnHtmlMessage)?n.warnHtmlMessage:!0,x=!!n.escapeParameter,y=o?r.modifiers:Je(n.modifiers)?n.modifiers:{},w=n.pluralRules||o&&r.pluralRules;function C(){return[s.value,l.value,c.value,u.value,d.value]}const S=R({get:()=>i.value?i.value.locale.value:s.value,set:E=>{i.value&&(i.value.locale.value=E),s.value=E}}),T=R({get:()=>i.value?i.value.fallbackLocale.value:l.value,set:E=>{i.value&&(i.value.fallbackLocale.value=E),l.value=E}}),P=R(()=>i.value?i.value.messages.value:c.value),A=R(()=>u.value),I=R(()=>d.value);function B(){return i.value?i.value.getPostTranslationHandler():m}function D(E){i.value&&i.value.setPostTranslationHandler(E)}function U(){return i.value?i.value.getMissingHandler():v}function F(E){i.value&&i.value.setMissingHandler(E)}function j(E){return C(),E()}function K(...E){return i.value?j(()=>Reflect.apply(i.value.t,null,[...E])):j(()=>"")}function ae(...E){return i.value?Reflect.apply(i.value.rt,null,[...E]):""}function we(...E){return i.value?j(()=>Reflect.apply(i.value.d,null,[...E])):j(()=>"")}function Ce(...E){return i.value?j(()=>Reflect.apply(i.value.n,null,[...E])):j(()=>"")}function X(E){return i.value?i.value.tm(E):{}}function re(E,$){return i.value?i.value.te(E,$):!1}function le(E){return i.value?i.value.getLocaleMessage(E):{}}function ne(E,$){i.value&&(i.value.setLocaleMessage(E,$),c.value[E]=$)}function $e(E,$){i.value&&i.value.mergeLocaleMessage(E,$)}function Se(E){return i.value?i.value.getDateTimeFormat(E):{}}function ee(E,$){i.value&&(i.value.setDateTimeFormat(E,$),u.value[E]=$)}function se(E,$){i.value&&i.value.mergeDateTimeFormat(E,$)}function ce(E){return i.value?i.value.getNumberFormat(E):{}}function xe(E,$){i.value&&(i.value.setNumberFormat(E,$),d.value[E]=$)}function Te(E,$){i.value&&i.value.mergeNumberFormat(E,$)}const Pe={get id(){return i.value?i.value.id:-1},locale:S,fallbackLocale:T,messages:P,datetimeFormats:A,numberFormats:I,get inheritLocale(){return i.value?i.value.inheritLocale:a},set inheritLocale(E){i.value&&(i.value.inheritLocale=E)},get availableLocales(){return i.value?i.value.availableLocales:Object.keys(c.value)},get modifiers(){return i.value?i.value.modifiers:y},get pluralRules(){return i.value?i.value.pluralRules:w},get isGlobal(){return i.value?i.value.isGlobal:!1},get missingWarn(){return i.value?i.value.missingWarn:f},set missingWarn(E){i.value&&(i.value.missingWarn=E)},get fallbackWarn(){return i.value?i.value.fallbackWarn:p},set fallbackWarn(E){i.value&&(i.value.missingWarn=E)},get fallbackRoot(){return i.value?i.value.fallbackRoot:h},set fallbackRoot(E){i.value&&(i.value.fallbackRoot=E)},get fallbackFormat(){return i.value?i.value.fallbackFormat:g},set fallbackFormat(E){i.value&&(i.value.fallbackFormat=E)},get warnHtmlMessage(){return i.value?i.value.warnHtmlMessage:b},set warnHtmlMessage(E){i.value&&(i.value.warnHtmlMessage=E)},get escapeParameter(){return i.value?i.value.escapeParameter:x},set escapeParameter(E){i.value&&(i.value.escapeParameter=E)},t:K,getPostTranslationHandler:B,setPostTranslationHandler:D,getMissingHandler:U,setMissingHandler:F,rt:ae,d:we,n:Ce,tm:X,te:re,getLocaleMessage:le,setLocaleMessage:ne,mergeLocaleMessage:$e,getDateTimeFormat:Se,setDateTimeFormat:ee,mergeDateTimeFormat:se,getNumberFormat:ce,setNumberFormat:xe,mergeNumberFormat:Te};function _(E){E.locale.value=s.value,E.fallbackLocale.value=l.value,Object.keys(c.value).forEach($=>{E.mergeLocaleMessage($,c.value[$])}),Object.keys(u.value).forEach($=>{E.mergeDateTimeFormat($,u.value[$])}),Object.keys(d.value).forEach($=>{E.mergeNumberFormat($,d.value[$])}),E.escapeParameter=x,E.fallbackFormat=g,E.fallbackRoot=h,E.fallbackWarn=p,E.missingWarn=f,E.warnHtmlMessage=b}return Rn(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw _r(Cr.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const E=i.value=e.proxy.$i18n.__composer;t==="global"?(s.value=E.locale.value,l.value=E.fallbackLocale.value,c.value=E.messages.value,u.value=E.datetimeFormats.value,d.value=E.numberFormats.value):o&&_(E)}),Pe}const hoe=["locale","fallbackLocale","availableLocales"],$C=["t","rt","d","n","tm","te"];function poe(e,t){const r=Object.create(null);return hoe.forEach(o=>{const i=Object.getOwnPropertyDescriptor(t,o);if(!i)throw _r(Cr.UNEXPECTED_ERROR);const a=sr(i.value)?{get(){return i.value.value},set(s){i.value.value=s}}:{get(){return i.get&&i.get()}};Object.defineProperty(r,o,a)}),e.config.globalProperties.$i18n=r,$C.forEach(o=>{const i=Object.getOwnPropertyDescriptor(t,o);if(!i||!i.value)throw _r(Cr.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${o}`,i)}),()=>{delete e.config.globalProperties.$i18n,$C.forEach(o=>{delete e.config.globalProperties[`$${o}`]})}}Une();__INTLIFY_JIT_COMPILATION__?cC(Mne):cC(Fne);$ne(dne);Ine(X3);if(__INTLIFY_PROD_DEVTOOLS__){const e=uo();e.__INTLIFY__=!0,yne(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const goe={common:{add:"Add",addSuccess:"Add Success",edit:"Edit",editSuccess:"Edit Success",delete:"Delete",deleteSuccess:"Delete Success",save:"Save",saveSuccess:"Save Success",reset:"Reset",action:"Action",export:"Export",exportSuccess:"Export Success",import:"Import",importSuccess:"Import Success",clear:"Clear",clearSuccess:"Clear Success",yes:"Yes",no:"No",confirm:"Confirm",download:"Download",noData:"No Data",wrong:"Something went wrong, please try again later.",success:"Success",failed:"Failed",verify:"Verify",unauthorizedTips:"Unauthorized, please verify first."},chat:{newChatButton:"New Chat",placeholder:"Ask me anything...(Shift + Enter = line break)",placeholderMobile:"Ask me anything...",copy:"Copy",copied:"Copied",copyCode:"Copy Code",clearChat:"Clear Chat",clearChatConfirm:"Are you sure to clear this chat?",exportImage:"Export Image",exportImageConfirm:"Are you sure to export this chat to png?",exportSuccess:"Export Success",exportFailed:"Export Failed",usingContext:"Context Mode",turnOnContext:"In the current mode, sending messages will carry previous chat records.",turnOffContext:"In the current mode, sending messages will not carry previous chat records.",deleteMessage:"Delete Message",deleteMessageConfirm:"Are you sure to delete this message?",deleteHistoryConfirm:"Are you sure to clear this history?",clearHistoryConfirm:"Are you sure to clear chat history?",preview:"Preview",showRawText:"Show as raw text"},setting:{setting:"Setting",general:"General",advanced:"Advanced",config:"Config",avatarLink:"Avatar Link",name:"Name",description:"Description",role:"Role",resetUserInfo:"Reset UserInfo",chatHistory:"ChatHistory",theme:"Theme",language:"Language",api:"API",reverseProxy:"Reverse Proxy",timeout:"Timeout",socks:"Socks",httpsProxy:"HTTPS Proxy",balance:"API Balance"},store:{siderButton:"Prompt Store",local:"Local",online:"Online",title:"Title",description:"Description",clearStoreConfirm:"Whether to clear the data?",importPlaceholder:"Please paste the JSON data here",addRepeatTitleTips:"Title duplicate, please re-enter",addRepeatContentTips:"Content duplicate: {msg}, please re-enter",editRepeatTitleTips:"Title conflict, please revise",editRepeatContentTips:"Content conflict {msg} , please re-modify",importError:"Key value mismatch",importRepeatTitle:"Title repeatedly skipped: {msg}",importRepeatContent:"Content is repeatedly skipped: {msg}",onlineImportWarning:"Note: Please check the JSON file source!",downloadError:"Please check the network status and JSON file validity"}},moe={common:{add:"添加",addSuccess:"添加成功",edit:"编辑",editSuccess:"编辑成功",delete:"删除",deleteSuccess:"删除成功",update:"修改",saveSuccess:"保存成功",updateUserSuccess:"修改用户信息成功",reset:"重置",action:"操作",export:"导出",exportSuccess:"导出成功",import:"导入",importSuccess:"导入成功",clear:"清空",clearSuccess:"清空成功",yes:"是",no:"否",confirm:"确定",download:"下载",noData:"暂无数据",wrong:"好像出错了,请稍后再试。",success:"操作成功",failed:"操作失败",verify:"验证",unauthorizedTips:"未经授权,请先进行验证。"},chat:{newChatButton:"新建聊天",placeholder:"来说点什么吧...(Shift + Enter = 换行)",placeholderMobile:"来说点什么...",copy:"复制",copied:"复制成功",copyCode:"复制代码",clearChat:"清空会话",clearChatConfirm:"是否清空会话?",exportImage:"保存会话到图片",exportImageConfirm:"是否将会话保存为图片?",exportSuccess:"保存成功",exportFailed:"保存失败",usingContext:"上下文模式",turnOnContext:"当前模式下, 发送消息会携带之前的聊天记录",turnOffContext:"当前模式下, 发送消息不会携带之前的聊天记录",deleteMessage:"删除消息",deleteMessageConfirm:"删除此条对话?",deleteHistoryConfirm:"确定删除此记录?",clearHistoryConfirm:"确定清空聊天记录?",preview:"预览",showRawText:"显示原文",regenerate:"重新生成"},setting:{setting:"设置",general:"总览",advanced:"高级",personalInfo:"个人信息",avatarLink:"头像链接",name:"用户名称",sign:"用户签名",role:"角色设定",resetUserInfo:"重置用户信息",chatHistory:"聊天记录",theme:"主题",language:"语言",api:"API",reverseProxy:"反向代理",timeout:"超时",socks:"Socks",httpsProxy:"HTTPS Proxy",balance:"API余额"},store:{siderButton:"提示词商店",local:"本地",online:"在线",title:"标题",description:"描述",clearStoreConfirm:"是否清空数据?",importPlaceholder:"请粘贴 JSON 数据到此处",addRepeatTitleTips:"标题重复,请重新输入",addRepeatContentTips:"内容重复:{msg},请重新输入",editRepeatTitleTips:"标题冲突,请重新修改",editRepeatContentTips:"内容冲突{msg} ,请重新修改",importError:"键值不匹配",importRepeatTitle:"标题重复跳过:{msg}",importRepeatContent:"内容重复跳过:{msg}",onlineImportWarning:"注意:请检查 JSON 文件来源!",downloadError:"请检查网络状态与 JSON 文件有效性"}},voe={common:{add:"新增",addSuccess:"新增成功",edit:"編輯",editSuccess:"編輯成功",delete:"刪除",deleteSuccess:"刪除成功",save:"儲存",saveSuccess:"儲存成功",reset:"重設",action:"操作",export:"匯出",exportSuccess:"匯出成功",import:"匯入",importSuccess:"匯入成功",clear:"清除",clearSuccess:"清除成功",yes:"是",no:"否",confirm:"確認",download:"下載",noData:"目前無資料",wrong:"發生錯誤,請稍後再試。",success:"操作成功",failed:"操作失敗",verify:"驗證",unauthorizedTips:"未經授權,請先進行驗證。"},chat:{newChatButton:"新建對話",placeholder:"來說點什麼...(Shift + Enter = 換行)",placeholderMobile:"來說點什麼...",copy:"複製",copied:"複製成功",copyCode:"複製代碼",clearChat:"清除對話",clearChatConfirm:"是否清空對話?",exportImage:"儲存對話為圖片",exportImageConfirm:"是否將對話儲存為圖片?",exportSuccess:"儲存成功",exportFailed:"儲存失敗",usingContext:"上下文模式",turnOnContext:"啟用上下文模式,在此模式下,發送訊息會包含之前的聊天記錄。",turnOffContext:"關閉上下文模式,在此模式下,發送訊息不會包含之前的聊天記錄。",deleteMessage:"刪除訊息",deleteMessageConfirm:"是否刪除此訊息?",deleteHistoryConfirm:"確定刪除此紀錄?",clearHistoryConfirm:"確定清除紀錄?",preview:"預覽",showRawText:"顯示原文"},setting:{setting:"設定",general:"總覽",advanced:"高級",config:"設定",avatarLink:"頭貼連結",name:"名稱",description:"描述",role:"角色設定",resetUserInfo:"重設使用者資訊",chatHistory:"紀錄",theme:"主題",language:"語言",api:"API",reverseProxy:"反向代理",timeout:"逾時",socks:"Socks",httpsProxy:"HTTPS Proxy",balance:"API余額"},store:{siderButton:"提示詞商店",local:"本機",online:"線上",title:"標題",description:"描述",clearStoreConfirm:"是否清除資料?",importPlaceholder:"請將 JSON 資料貼在此處",addRepeatTitleTips:"標題重複,請重新輸入",addRepeatContentTips:"內容重複:{msg},請重新輸入",editRepeatTitleTips:"標題衝突,請重新修改",editRepeatContentTips:"內容衝突{msg} ,請重新修改",importError:"鍵值不符合",importRepeatTitle:"因標題重複跳過:{msg}",importRepeatContent:"因內容重複跳過:{msg}",onlineImportWarning:"注意:請檢查 JSON 檔案來源!",downloadError:"請檢查網路狀態與 JSON 檔案有效性"}},boe=oee(),xoe=boe.language||"zh-CN",km=ooe({locale:xoe,fallbackLocale:"en-US",allowComposition:!0,messages:{"en-US":goe,"zh-CN":moe,"zh-TW":voe}}),vfe=km.global.t;function Kc(e){km.global.locale=e}function yoe(e){e.use(km)}function Coe(){const e=ii(),t=UA(),r=R(()=>e.theme==="auto"?t.value==="dark":e.theme==="dark"),n=R(()=>r.value?cu:void 0),o=R(()=>r.value?{common:{}}:{common:{primaryColor:"#409eff"}}),i={common:{primaryColor:"#5A91FCFF",primaryColorHover:"#3074F8FF",primaryColorPressed:"#3671E4FF",baseColor:"#ffffff"},Switch:{railColorActive:"#5A91FCFF"},Layout:{}},a={common:{primaryColor:"#5A91FCFF",primaryColorHover:"#3074F8FF",primaryColorPressed:"#3671E4FF"},Skeleton:{color:"#F4F3F3FF",colorEnd:"#F1F0F0FF"},Layout:{}};return Ye(()=>r.value,s=>{s?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")},{immediate:!0}),{theme:n,themeOverrides:o,lightThemeOverrides:a,darkThemeOverrides:i}}function woe(){const e=ii();return{language:R(()=>{switch(e.language){case"en-US":return Kc("en-US"),Mh;case"zh-CN":return Kc("zh-CN"),eL;case"zh-TW":return Kc("zh-TW"),rL;default:return Kc("zh-CN"),Mh}})}}const Soe=me({__name:"App",setup(e){const t=new lQ.ClientJS,r=z3(),n=t.getFingerprint(),o=Tr(),i=ai(),a=Gd();i.updateFingerprint(n);const{theme:s,lightThemeOverrides:l,darkThemeOverrides:c}=Coe(),{language:u}=woe(),d=R(()=>{var y;return(y=o.globalConfig)==null?void 0:y.clientHomePath}),f=R(()=>{var y;return((y=o.globalConfig)==null?void 0:y.clientFavoIconPath)||"/favicon.svg"}),p=R(()=>{var y;return Number((y=o.globalConfig)==null?void 0:y.isAutoOpenNotice)===1});async function h(){var S;const y=((S=o.globalConfig)==null?void 0:S.baiduCode)||"";if(!y)return;const w=document.createElement("script"),C=y.replace(/<script[\s\S]*?>([\s\S]*?)<\/script>/gi,"$1");w.innerHTML=C,document.head.appendChild(w)}function g(){var y;document.title=((y=o.globalConfig)==null?void 0:y.siteName)||"AI"}const v=R(()=>s.value?c:l);function m(){d.value&&a.push(d.value)}function b(){const y=Nt.get("showNotice");(!y&&p.value||Date.now()>Number(y)&&p.value)&&i.updateNoticeDialog(!0)}const x=document.createElement("link");return x.rel="shortcut icon",x.href=f.value,x.type="image/svg+xml",document.getElementsByTagName("head")[0].appendChild(x),St(async()=>{m(),await r.getBaseModelConfig(),h(),g(),b()}),(y,w)=>{const C=Au("RouterView");return ge(),We(W(pz),{class:"h-full",theme:W(s),"theme-overrides":v.value,locale:W(u),"date-locale":W(VL),"preflight-style-disabled":""},{default:de(()=>[te(W(UQ),null,{default:de(()=>[te(C)]),_:1}),te(W(zU))]),_:1},8,["theme","theme-overrides","locale","date-locale"])}}});function _oe(){const e=document.createElement("meta");e.name="naive-ui-style",document.head.appendChild(e)}function Eoe(){_oe()}const Toe=()=>{var r,n,o,i,a,s;const e=document.createElement("style"),t=`
|
||
::-webkit-scrollbar {
|
||
background-color: transparent;
|
||
width: ${(r=Qf.Scrollbar.common)==null?void 0:r.scrollbarWidth};
|
||
}
|
||
::-webkit-scrollbar-thumb {
|
||
background-color: ${(n=Qf.Scrollbar.common)==null?void 0:n.scrollbarColor};
|
||
border-radius: ${(o=Qf.Scrollbar.common)==null?void 0:o.scrollbarBorderRadius};
|
||
}
|
||
html.dark ::-webkit-scrollbar {
|
||
background-color: transparent;
|
||
width: ${(i=cu.Scrollbar.common)==null?void 0:i.scrollbarWidth};
|
||
}
|
||
html.dark ::-webkit-scrollbar-thumb {
|
||
background-color: ${(a=cu.Scrollbar.common)==null?void 0:a.scrollbarColor};
|
||
border-radius: ${(s=cu.Scrollbar.common)==null?void 0:s.scrollbarBorderRadius};
|
||
}
|
||
`;e.innerHTML=t,document.head.appendChild(e)};function bfe(){return mt({url:"/user/genInviteCode"})}function xfe(e){return Dt({url:"/user/inviteRecord",data:e})}function koe(e){return mt({url:"/official/getQRSceneStr",data:e})}function m5(e){return Dt({url:"/official/getQRCode",data:e})}function Aoe(e){return mt({url:"/official/loginBySceneStr",data:e})}function Poe(e){return mt({url:"/official/loginByCode",data:e})}function $oe(e){return mt({url:"/official/getJsapiTicket",data:e})}function Ioe(){return mt({url:"/official/getQRSceneStrByBind"})}function Boe(e){return mt({url:"/official/bindWxBySceneStr",data:e})}function Doe(e){return mt({url:"/official/getRedirectUrl",data:e})}function Ooe(e){return Dt({url:"/user/inviteLink",data:e})}function Roe(e){e.beforeEach(async(t,r,n)=>{var a,s;const{inVitecode:o}=t.query;o&&Nt.set("invitedBy",o),o&&(await Ooe({code:o}),e.replace({path:t.path,query:{}})),(a=window.$loadingBar)==null||a.start();const i=Jte();if(i.userInfo.username){const l=(s=i.globalConfig)==null?void 0:s.clientMenuList,c=l?JSON.parse(l):[];c.length&&!c.includes(t.name)&&["Chat","Draw","Midjourney"].includes(t.name)&&(i.globalConfig.clientHomePath&&i.globalConfig.clientHomePath!==""?n({path:i.globalConfig.clientHomePath}):n()),n()}else try{if(i.token&&await i.getUserInfo(),i.globalConfigLoading){let l=`${window.location.protocol}//${window.location.hostname}`;window.location.port&&(l+=`:${window.location.port}`),await i.getglobalConfig(l),i.globalConfig.clientHomePath?n({path:i.globalConfig.clientHomePath}):n()}t.path==="/500"?n({path:"/"}):n()}catch{t.path==="/500"?n({path:"/"}):n()}}),e.afterEach(t=>{var r;(r=window.$loadingBar)==null||r.finish()})}const Loe={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Foe=ve("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M368 368L144 144"},null,-1),Moe=ve("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M368 144L144 368"},null,-1),zoe=[Foe,Moe],uf=me({name:"CloseOutline",render:function(t,r){return ge(),je("svg",Loe,zoe)}}),Noe={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Hoe=ve("path",{d:"M53.12 199.94l400-151.39a8 8 0 0 1 10.33 10.33l-151.39 400a8 8 0 0 1-15-.34l-67.4-166.09a16 16 0 0 0-10.11-10.11L53.46 215a8 8 0 0 1-.34-15.06z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),joe=ve("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M460 52L227 285"},null,-1),Woe=[Hoe,joe],v5=me({name:"PaperPlaneOutline",render:function(t,r){return ge(),je("svg",Noe,Woe)}}),Uoe={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Voe=ve("path",{d:"M376 144c-3.92 52.87-44 96-88 96s-84.15-43.12-88-96c-4-55 35-96 88-96s92 42 88 96z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),qoe=ve("path",{d:"M288 304c-87 0-175.3 48-191.64 138.6c-2 10.92 4.21 21.4 15.65 21.4H464c11.44 0 17.62-10.48 15.65-21.4C463.3 352 375 304 288 304z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1),Goe=ve("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M88 176v112"},null,-1),Yoe=ve("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M144 232H32"},null,-1),Koe=[Voe,qoe,Goe,Yoe],Xoe=me({name:"PersonAddOutline",render:function(t,r){return ge(),je("svg",Uoe,Koe)}}),Zoe={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Qoe=ve("path",{d:"M376 144c-3.92 52.87-44 96-88 96s-84.15-43.12-88-96c-4-55 35-96 88-96s92 42 88 96z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),Joe=ve("path",{d:"M288 304c-87 0-175.3 48-191.64 138.6c-2 10.92 4.21 21.4 15.65 21.4H464c11.44 0 17.62-10.48 15.65-21.4C463.3 352 375 304 288 304z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1),eie=ve("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M144 232H32"},null,-1),tie=[Qoe,Joe,eie],rie=me({name:"PersonRemoveOutline",render:function(t,r){return ge(),je("svg",Zoe,tie)}}),nie="/logo.ico",oie=["src"],iie=me({__name:"Logo",setup(e){const t=Tr(),r=R(()=>t.globalConfig.clientLogoPath),n=R(()=>t.globalConfig.clientHomePath||"/"),{isMobile:o}=yo(),i=R(()=>o.value?["py-2","w-8","ml-3"]:["py-4","px-2","w-full"]);return(a,s)=>(ge(),We(W(WE),{to:n.value},{default:de(()=>[r.value?Fe("",!0):(ge(),je("img",{key:0,src:nie,class:Jt([i.value,"cursor-pointer px-0 dark:border-[#ffffff17] border-#ebebeb-400"]),alt:""},null,2)),r.value?(ge(),je("img",{key:1,src:r.value,class:Jt([i.value,"cursor-pointer px-0 dark:border-[#ffffff17] border-#ebebeb-400"]),alt:""},null,10,oie)):Fe("",!0)]),_:1},8,["to"]))}});function Am(e){return dd()?(qp(e),!0):!1}function Pm(e){return typeof e=="function"?e():W(e)}const b5=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const aie=e=>e!=null,sie=Object.prototype.toString,Ju=e=>sie.call(e)==="[object Object]",cl=()=>{};function lie(e){return e||Er()}function cie(...e){if(e.length!==1)return nt(...e);const t=e[0];return typeof t=="function"?vn(nT(()=>({get:t,set:cl}))):z(t)}function uie(e,t){lie(t)&&Xi(e,t)}function die(...e){let t,r,n;if(typeof e[0]=="string"?([r,...n]=e,t=window.require?window.require("electron").ipcRenderer:void 0):[t,r,...n]=e,!t)throw new Error("please provide IpcRenderer module or enable nodeIntegration");const o=vo(null);return t.invoke(r,...n).then(i=>{o.value=i}),o}function fie(...e){let t,r,n;if(typeof e[0]=="string"?([r,n]=e,t=window.require?window.require("electron").ipcRenderer:void 0):[t,r,n]=e,!t)throw new Error("please provide IpcRenderer module or enable nodeIntegration");return Am(()=>{t.removeListener(r,n)}),t.on(r,n)}function hie(e){return(t,...r)=>{const n=vo(null);return n.value=e.sendSync(t,...r),n}}function pie(e){if(e||(e=window==null?void 0:window.require("electron").ipcRenderer),!e)throw new Error("provide IpcRenderer module or enable nodeIntegration");return{on:(t,r)=>fie(t,r),once:e.once.bind(e),removeListener:e.removeListener.bind(e),removeAllListeners:e.removeAllListeners.bind(e),send:e.send,invoke:(t,...r)=>die(e,t,...r),sendSync:hie(e),postMessage:e.postMessage,sendTo:e.sendTo,sendToHost:e.sendToHost}}const gie={class:"wrapper"},mie={key:0,class:"btn disabled"},vie=me({__name:"macTablebar",props:{title:{}},setup(e){const t=pie(),r=z(!1),n=of(),o=()=>{t.send("check-window-maximized")},i=(u,d)=>{r.value=d};St(()=>{t.on("window-maximized-status",i),t.on("clipboard-content",c),o()}),Xi(()=>{t.removeListener("window-maximized-status",i)});const a=()=>{t.invoke("closeWindow")},s=()=>{t.invoke(r.value?"unmaximizeWindow":"maxmizeWindow"),r.value=!r.value},l=()=>{t.invoke("minimizeWindow")},c=(u,d)=>{n.updateClipboardText(d)};return(u,d)=>(ge(),je("div",gie,[ve("div",{class:"btn close-btn",onClick:a}),r.value?(ge(),je("div",mie)):Fe("",!0),r.value?Fe("",!0):(ge(),je("div",{key:1,class:"btn min-btn",onClick:l})),ve("div",{class:"btn max-btn",onClick:s})]))}});const $m=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r},bie=$m(vie,[["__scopeId","data-v-a0547cf5"]]),xie={class:"px-2 w-full ele-drag"},yie={class:"flex h-full flex-col items-center space-y-3"},Cie=["onClick"],wie={class:"flex flex-col justify-between items-center"},Sie=me({__name:"index",setup(e){const t=TT(()=>Jr(()=>import("./index-f5d9853d.js"),["assets/index-f5d9853d.js","assets/Popconfirm-44d41587.js","assets/Select-39d6ffd8.js"])),r=ii(),n=Tr(),o=ai(),i=Sn(),a=z(null);r.setEnv();const s=R(()=>n.userInfo.avatar),l=nm(),c=Gd(),u=z(!1),d=R(()=>n.isLogin),f=R(()=>r.theme==="dark"),p=R(()=>r.env),h=vo(Xoe);vo(rie);async function g(){const j=await j3({menuPlatform:1});j.success&&(v.value=j.data,zt(()=>{U()}))}const v=z([]),m=z(!1);St(()=>{g()});const b=R(()=>{var j;return Number((j=n.globalConfig)==null?void 0:j.signInStatus)===1});function x(){d.value?n.logOut():n.setLoginDialog(!0)}function y(){const j=f.value?"light":"dark";r.setTheme(j)}const{isMobile:w}=yo(),C=R(()=>l.path);function S(j){c.push({name:j})}const T=R(()=>w.value?{paddingBottom:"env(safe-area-inset-bottom)"}:{}),P=R(()=>w.value?["flex-rol","w-full","border-0"]:["flex-col","w-sider","h-full","border-r"]),A=R(()=>w.value?["flex","flex-rol","items-center","pt-0","w-full"]:["flex","flex-col","pt-1","items-center"]),I=R(()=>o.iframeUrl);function B(j){const{menuPath:K,isJump:ae,menuIframeUrl:we,isNeedAuth:Ce}=j;if(Ce&&!d.value){i.warning("请先登录后访问!"),n.setLoginDialog(!0);return}if(o.updateIframeUrl(""),K)return c.push({path:K});ae?window.open(we):(o.updateIframeUrl(we),c.push({path:"/extend"}))}function D(){if(!d.value){n.setLoginDialog(!0);return}o.updateSignInDialog(!0)}function U(){if(!a.value)return;const{clientHeight:j=0,scrollHeight:K=0}=a.value;m.value=K>j}function F(j){const{menuIframeUrl:K,menuPath:ae}=j;if(K)return K===I.value;if(ae)return ae===C.value}return Ye(w,j=>{r.setSiderCollapsed(j)},{immediate:!0,flush:"post"}),(j,K)=>(ge(),je(st,null,[ve("div",{class:Jt(["flex min-w-sm bg-gray-50 pb-2 dark:bg-gray-900 border-gray-100 dark:border-gray-800",P.value]),style:Bn(T.value)},[p.value==="electron"?(ge(),We(bie,{key:0})):Fe("",!0),ve("div",xie,[te(iie)]),ve("main",{ref_key:"track",ref:a,class:Jt(["flex-1 flex-grow-1 mb-5 overflow-auto",A.value])},[te(W(YV),{size:1},{default:de(()=>[ve("div",yie,[(ge(!0),je(st,null,yl(v.value,ae=>(ge(),je("div",{key:ae.menuName,class:Jt(["flex justify-center flex-col items-center",W(w)?"mt-0":"mt-3"]),onClick:we=>B(ae)},[ve("div",{class:Jt(["relative flex items-center justify-center h-10 w-10 rounded-md cursor-pointer duration-300",[F(ae)?["bg-white","text-primary-600","dark:bg-gray-800","dark:text-white"]:["bg-gray-50","dark:bg-gray-900","dark:text-gray-400"],"hover:bg-white","hover:text-primary-600","dark:hover:bg-gray-800","dark:hover:text-white"]])},[te(W(In),{icon:ae.menuIcon,class:"text-2xl"},null,8,["icon"])],2)],10,Cie))),128))])]),_:1})],2),ve("div",wie,[!W(w)&&b.value?(ge(),We(W(rl),{key:0,trigger:"hover",placement:"right"},{trigger:de(()=>[te(W(In),{class:"text-xl cursor-pointer mb-5",icon:"mynaui:gift",onClick:D})]),default:de(()=>[tt(" 签到奖励 ")]),_:1})):Fe("",!0),W(w)?Fe("",!0):(ge(),We(W(rl),{key:1,trigger:"hover",placement:"right"},{trigger:de(()=>[te(W(In),{class:"text-xl cursor-pointer mb-5",icon:f.value?"line-md:sunny-outline-to-moon-transition":"line-md:moon-to-sunny-outline-transition",onClick:y},null,8,["icon"])]),default:de(()=>[tt(" 主题切换 ")]),_:1})),d.value?(ge(),We(W(rl),{key:2,trigger:"hover",placement:"right"},{trigger:de(()=>[te(W(K9),{size:42,src:s.value,round:"",bordered:"","fallback-src":W(rre),class:"cursor-pointer",onClick:K[0]||(K[0]=ae=>S("UserCenter"))},null,8,["src","fallback-src"])]),default:de(()=>[tt(" 个人中心 ")]),_:1})):Fe("",!0),d.value?Fe("",!0):(ge(),We(W(WQ),{key:3,tooltip:"登录账户",placement:W(w)?"bottom":"right",class:Jt(W(w)?"mb-0":"mb-5"),onClick:x},{default:de(()=>[te(W(Ui),{size:"20",color:"#555"},{default:de(()=>[(ge(),We(Ow(h.value)))]),_:1})]),_:1},8,["placement","class"]))])],6),u.value?(ge(),We(W(t),{key:0,visible:u.value,"onUpdate:visible":K[1]||(K[1]=ae=>u.value=ae)},null,8,["visible"])):Fe("",!0)],64))}});const _ie={class:"bg-white dark:bg-[#25272c]"},Eie=["onClick"],Tie={class:"inline-block text-xl"},kie={class:"text-xs"},Aie=me({__name:"index",setup(e){const t=z([]),r=Sn();async function n(){const p=await j3({menuPlatform:0});p.success&&(t.value=p.data)}const o=ai(),i=Gd(),a=nm(),s=R(()=>a.path),l=Tr(),c=R(()=>o.iframeUrl),u=R(()=>l.isLogin);function d(p,h){p.stopPropagation();const{menuPath:g,isJump:v,menuIframeUrl:m,isNeedAuth:b}=h;if(b&&!u.value){r.warning("请先登录后访问!"),l.setLoginDialog(!0);return}if(o.updateIframeUrl(""),g)return i.replace({path:g});v?window.open(m):(o.updateIframeUrl(m),i.push({path:"/extend"}))}function f(p){const{menuIframeUrl:h,menuPath:g}=p;if(h)return h===c.value;if(g)return g===s.value}return Rn(()=>{n()}),(p,h)=>(ge(),je("footer",_ie,[ve("div",{class:"grid border-t py-1 dark:border-t-neutral-800 grid-cols-2",style:Bn({gridTemplateColumns:`repeat(${t.value.length}, minmax(0, 1fr))`})},[(ge(!0),je(st,null,yl(t.value,g=>(ge(),je("a",{key:g.id,class:Jt([[f(g)?"text-[#3076fd] dark:text-[#3076fd]":""],"cursor-pointer text-center leading-4"]),onClick:v=>d(v,g)},[ve("span",Tie,[te(W(In),{icon:g.menuIcon,class:"mb-1 inline-block text-lg"},null,8,["icon"])]),ve("p",kie,Qt(g.menuTipText),1)],10,Eie))),128))],4)]))}}),Pie={key:0},Im=me({__name:"send",setup(e){const t=Tr(),r=R(()=>Number(t.globalConfig.registerSendStatus)),n=R(()=>Number(t.globalConfig.registerSendModel3Count)),o=R(()=>Number(t.globalConfig.registerSendModel4Count)),i=R(()=>Number(t.globalConfig.registerSendDrawMjCount)),a=R(()=>`首次认证:赠送${n.value}积分基础模型余额 | ${o.value}积分高级模型余额 | ${i.value}积分绘画余额`);return(s,l)=>r.value?(ge(),je("div",Pie,[te(W(n_),{type:"error","show-icon":!1,class:"mt-5"},{default:de(()=>[tt(Qt(a.value),1)]),_:1})])):Fe("",!0)}}),fr=me({name:"Motion",props:{delay:{type:Number,default:50},y:{type:Number,default:50},opacity:{type:Number,default:.5},scale:{type:Number,default:1},duration:{type:Number,default:350}},setup(e,{slots:t}){return()=>{const r=bT("motion");return bn(k("div",{},{default:()=>{var n;return[(n=t.default)==null?void 0:n.call(t)]}}),[[r,{initial:{opacity:e.opacity,y:e.y,scale:e.scale},enter:{opacity:1,y:0,scale:1,transition:{delay:e.delay,duration:e.duration}}}]])}}}),$ie={class:"flex items-center w-full space-x-4"},Iie={key:0},Bie=["innerHTML"],Die={key:1,class:"flex space-x-2 w-full"},Oie={key:0,class:"flex justify-center cursor-pointer"},Rie={class:"px-8"},Lie=me({__name:"Phone",emits:["changeLoginType"],setup(e,{emit:t}){const r=t,n=ii(),o=z(null),i=Sn(),a=z(!0),s=z(!1),l=Tr(),c=z(""),u=R(()=>n.theme),d=z(!1),f=z(0),p=R(()=>u.value==="dark"?"#363f4f":"#fff"),h=z({username:"",password:"",phone:"",phoneCode:"",invitedBy:"",captchaCode:"",captchaId:null}),g=z({password:"",phone:""}),v={username:[{required:!0,message:"请输入用户名",trigger:"blur"},{min:2,max:30,message:"用户名长度应为 2 到 30 个字符",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"},{min:6,max:30,message:"密码长度应为 6 到 30 个字符",trigger:"blur"}],phone:[{required:!0,trigger:"blur",validator(P,A){if(A){if(!/^1[3,4,5,6,7,8,9][0-9]{9}$/.test(A))return new Error("请输入正确格式的手机号")}else return new Error("请输入手机号");return!0}}],captchaCode:[{required:!0,message:"请填写图形验证码结果",trigger:"blur"}],phoneCode:[{required:!0,message:"请填写手机验证码",trigger:"blur"}]},m=R(()=>a.value?"还没账号?去注册!":"已有账户去登录!"),b=R(()=>Number(l.globalConfig.wechatRegisterStatus)===1),x=R(()=>Number(l.globalConfig.phoneRegisterStatus)===1);R(()=>Number(l.globalConfig.phoneLoginStatus)===1);const y=R(()=>Number(l.globalConfig.emailLoginStatus)===1);function w(){f.value>0&&setTimeout(()=>{f.value--,w()},1e3)}async function C(){var P;(P=o.value)==null||P.validate(async A=>{if(!A)try{const{phone:I,captchaCode:B,captchaId:D}=h.value,F=await jte({phone:I,captchaCode:B,captchaId:D});T();const{success:j,message:K}=F;j?(i.success(F.data),d.value=!0,f.value=60,w()):(d.value=!1,i.error(K))}catch{T()}})}function S(){var P;(P=o.value)==null||P.validate(async A=>{if(!A)try{s.value=!0;const I=a.value?Hte:Nte,B=a.value?{phone:g.value.phone,password:g.value.password}:h.value,D=await I(B);s.value=!1,T();const{success:U,message:F}=D;if(!U)return i.error(F);if(a.value)i.success("账户登录成功、开始体验吧!"),l.setToken(D.data),l.getUserInfo(),l.setLoginDialog(!1),Nt.remove("invitedBy");else{i.success("账户注册成功、开始体验吧!");const{phone:j,password:K}=h.value;g.value.phone=j,g.value.password=K,a.value=!a.value}}catch{T(),s.value=!1}})}async function T(){const P=await M3({color:p.value});c.value=P.data.svgCode,h.value.captchaId=P.data.code}return St(()=>{const P=Nt.get("invitedBy");P&&(h.value.invitedBy=P),T()}),(P,A)=>(ge(),je(st,null,[ve("div",{class:Jt(["px-[65px]",a.value?"pt-[40px]":"pt-5"])},[a.value?Fe("",!0):(ge(),We(W(qu),{key:0,ref_key:"formRef",ref:o,model:h.value,rules:v,"label-placement":"left","label-width":"auto","require-mark-placement":"right-hanging",style:{maxWidth:"640px"}},{default:de(()=>[te(W(fr),{delay:50},{default:de(()=>[te(W(br),{path:"username"},{default:de(()=>[te(W(Hr),{value:h.value.username,"onUpdate:value":A[0]||(A[0]=I=>h.value.username=I),placeholder:"请输入您的用户名昵称"},null,8,["value"])]),_:1})]),_:1}),te(W(fr),{delay:120},{default:de(()=>[te(W(br),{path:"password"},{default:de(()=>[te(W(Hr),{value:h.value.password,"onUpdate:value":A[1]||(A[1]=I=>h.value.password=I),placeholder:"请输入您的账户密码",type:"password",maxlength:30,"show-password-on":"click",tabindex:"0",onKeyup:Du(S,["enter"])},null,8,["value"])]),_:1})]),_:1}),te(W(fr),{delay:190},{default:de(()=>[te(W(br),{path:"phone"},{default:de(()=>[te(W(Hr),{value:h.value.phone,"onUpdate:value":A[2]||(A[2]=I=>h.value.phone=I),placeholder:"请填写您的手机号"},null,8,["value"])]),_:1})]),_:1}),te(W(fr),{delay:260},{default:de(()=>[d.value?Fe("",!0):(ge(),We(W(br),{key:0,path:"captchaCode"},{default:de(()=>[ve("div",$ie,[te(W(Hr),{value:h.value.captchaCode,"onUpdate:value":A[3]||(A[3]=I=>h.value.captchaCode=I),class:"flex-1",placeholder:"请填写图中验证码结果"},null,8,["value"]),c.value?(ge(),je("div",Iie,[ve("span",{class:"cursor-pointer rounded",onClick:T,innerHTML:c.value},null,8,Bie)])):Fe("",!0)])]),_:1}))]),_:1}),te(W(fr),{delay:330},{default:de(()=>[d.value?(ge(),We(W(br),{key:0,path:"phoneCode"},{default:de(()=>[te(W(Hr),{value:h.value.phoneCode,"onUpdate:value":A[4]||(A[4]=I=>h.value.phoneCode=I),class:"flex-1",placeholder:"请填写手机验证码"},null,8,["value"])]),_:1})):Fe("",!0)]),_:1}),te(W(fr),{delay:400},{default:de(()=>[te(W(br),{path:"invitedBy"},{default:de(()=>[te(W(Hr),{value:h.value.invitedBy,"onUpdate:value":A[5]||(A[5]=I=>h.value.invitedBy=I),placeholder:"邀请码[非必填]"},null,8,["value"])]),_:1})]),_:1}),te(W(br),null,{default:de(()=>[d.value?(ge(),je("div",Die,[te(W(qt),{block:"",type:"primary",disabled:s.value,loading:s.value,class:"flex-1",onClick:S},{default:de(()=>[tt(" 注册账户 ")]),_:1},8,["disabled","loading"]),te(W(qt),{block:"",class:"flex-1",disabled:f.value>0,onClick:A[6]||(A[6]=I=>d.value=!1)},{default:de(()=>[tt(" 重新发送"+Qt(f.value?`(${f.value}S)`:""),1)]),_:1},8,["disabled"])])):(ge(),We(W(qt),{key:0,block:"",type:"primary",disabled:s.value,loading:s.value,onClick:C},{default:de(()=>[tt(" 发送验证码 ")]),_:1},8,["disabled","loading"]))]),_:1})]),_:1},8,["model"])),a.value?(ge(),We(W(qu),{key:1,ref_key:"formRef",ref:o,model:g.value,size:"large",rules:v,"label-placement":"left","label-width":"auto","require-mark-placement":"right-hanging",style:{maxWidth:"640px"}},{default:de(()=>[te(W(fr),{delay:50},{default:de(()=>[te(W(br),{path:"phone"},{default:de(()=>[te(W(Hr),{value:g.value.phone,"onUpdate:value":A[7]||(A[7]=I=>g.value.phone=I),placeholder:"请输入手机号"},null,8,["value"])]),_:1})]),_:1}),te(W(fr),{delay:120},{default:de(()=>[te(W(br),{path:"password"},{default:de(()=>[te(W(Hr),{value:g.value.password,"onUpdate:value":A[8]||(A[8]=I=>g.value.password=I),placeholder:"请输入您的账户密码",type:"password",maxlength:30,"show-password-on":"click",tabindex:"0",onKeyup:Du(S,["enter"])},null,8,["value"])]),_:1})]),_:1}),te(W(br),null,{default:de(()=>[te(W(qt),{block:"",type:"primary",disabled:s.value,loading:s.value,onClick:S,class:"!mt-[50px]"},{default:de(()=>[tt(" 登录账户 ")]),_:1},8,["disabled","loading"])]),_:1})]),_:1},8,["model"])):Fe("",!0)],2),x.value?(ge(),je("span",Oie,[te(W(qt),{text:"",onClick:A[9]||(A[9]=I=>a.value=!a.value)},{default:de(()=>[tt(Qt(m.value),1)]),_:1})])):Fe("",!0),ve("div",{class:Jt(["flex items-center justify-center space-x-5",x.value?"mt-[16px]":"mt-[36px]"])},[b.value?(ge(),We(W(qt),{key:0,ghost:"",class:"!px-10",onClick:A[10]||(A[10]=I=>r("changeLoginType","wechat"))},{default:de(()=>[te(W(In),{class:"text-xl mr-2 text-[#3076fd]",icon:"ph:wechat-logo"}),tt(" 微信登录 ")]),_:1})):Fe("",!0),y.value?(ge(),We(W(qt),{key:1,ghost:"",class:"!px-10",onClick:A[11]||(A[11]=I=>r("changeLoginType","email"))},{default:de(()=>[te(W(In),{class:"text-xl mr-2 text-[#3076fd]",icon:"clarity:email-line"}),tt(" 邮箱号登录 ")]),_:1})):Fe("",!0)],2),te(W(fr),{delay:800},{default:de(()=>[ve("div",Rie,[a.value?(ge(),We(Im,{key:0})):Fe("",!0)])]),_:1})],64))}}),Fie={class:"flex items-center w-full space-x-4"},Mie={key:0},zie=["innerHTML"],Nie={key:0,class:"flex justify-center cursor-pointer"},Hie={class:"px-8"},jie=me({__name:"Email",emits:["changeLoginType"],setup(e,{emit:t}){const r=t,n=ii(),o=z(null),i=Sn(),a=z(!0),s=z(!1),l=Tr(),c=z(""),u=R(()=>n.theme),d=R(()=>l.globalConfig.isVerifyEmail?Number(l.globalConfig.isVerifyEmail):1),f=R(()=>d.value?"发送激活账户邮件":"立即注册"),p=R(()=>u.value==="dark"?"#363f4f":"#fff"),h=z({username:"",password:"",email:"",invitedBy:"",captchaCode:"",captchaId:null}),g=z({username:"",password:"",email:"",invitedBy:""}),v={username:[{required:!0,message:"请输入用户名",trigger:"blur"},{min:2,max:30,message:"用户名长度应为 2 到 30 个字符",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"},{min:6,max:30,message:"密码长度应为 6 到 30 个字符",trigger:"blur"}],email:[{required:!0,message:"请输入邮箱地址",trigger:"blur"},{type:"email",message:"请输入正确的邮箱地址",trigger:["blur","change"]}],captchaCode:[{required:!0,message:"请填写验证码",trigger:"blur"}]},m=R(()=>a.value?"还没账号? 去注册!":"已有账户去登录!"),b=R(()=>Number(l.globalConfig.wechatRegisterStatus)===1),x=R(()=>Number(l.globalConfig.phoneLoginStatus)===1),y=R(()=>Number(l.globalConfig.emailRegisterStatus)===1);function w(){var T;(T=o.value)==null||T.validate(async P=>{if(!P)try{s.value=!0;const A=a.value?jy:zte,I=a.value?{username:g.value.username,password:g.value.password}:h.value,B=await A(I);s.value=!1,S();const{success:D,message:U}=B;if(!D)return i.error(U);if(a.value)i.success("账户登录成功、开始体验吧!"),l.setToken(B.data),l.getUserInfo(),l.setLoginDialog(!1),Nt.remove("invitedBy");else{const F=Number(d)?"您的账号激活邮件已经发送,请前往邮箱激活您的账户!":"您的账号已成功注册、请登录使用吧!";i.success(F);const{email:j,password:K}=h.value;g.value.username=j,g.value.password=K,a.value=!a.value,d.value||C()}}catch{S(),s.value=!1}})}async function C(){const T={username:g.value.username,password:g.value.password},P=await jy(T),{success:A,message:I}=P;if(!A)return i.error(I);i.success("账户登录成功、开始体验吧!"),l.setToken(P.data),l.getUserInfo(),l.setLoginDialog(!1),Nt.remove("invitedBy")}async function S(){const T=await M3({color:p.value});c.value=T.data.svgCode,h.value.captchaId=T.data.code}return St(()=>{const T=Nt.get("invitedBy");T&&(h.value.invitedBy=T),S()}),(T,P)=>(ge(),je(st,null,[ve("div",{class:Jt(["px-[65px]",a.value?"pt-[40px]":"pt-5"])},[a.value?Fe("",!0):(ge(),We(W(qu),{key:0,ref_key:"formRef",ref:o,model:h.value,rules:v,"label-placement":"left","label-width":"auto","require-mark-placement":"right-hanging",style:{maxWidth:"640px"}},{default:de(()=>[te(W(fr),{delay:50},{default:de(()=>[te(W(br),{path:"username"},{default:de(()=>[te(W(Hr),{value:h.value.username,"onUpdate:value":P[0]||(P[0]=A=>h.value.username=A),placeholder:"请输入您的用户名昵称"},null,8,["value"])]),_:1})]),_:1}),te(W(fr),{delay:120},{default:de(()=>[te(W(br),{path:"password"},{default:de(()=>[te(W(Hr),{value:h.value.password,"onUpdate:value":P[1]||(P[1]=A=>h.value.password=A),placeholder:"请输入您的账户密码",type:"password",maxlength:30,"show-password-on":"click",tabindex:"0",onKeyup:Du(w,["enter"])},null,8,["value"])]),_:1})]),_:1}),te(W(fr),{delay:190},{default:de(()=>[te(W(br),{path:"email"},{default:de(()=>[te(W(Hr),{value:h.value.email,"onUpdate:value":P[2]||(P[2]=A=>h.value.email=A),placeholder:"请填写您的邮箱账号"},null,8,["value"])]),_:1})]),_:1}),te(W(fr),{delay:260},{default:de(()=>[te(W(br),{path:"captchaCode"},{default:de(()=>[ve("div",Fie,[te(W(Hr),{value:h.value.captchaCode,"onUpdate:value":P[3]||(P[3]=A=>h.value.captchaCode=A),class:"flex-1",placeholder:"请填写图中验证码结果"},null,8,["value"]),c.value?(ge(),je("div",Mie,[ve("span",{class:"cursor-pointer rounded",onClick:S,innerHTML:c.value},null,8,zie)])):Fe("",!0)])]),_:1})]),_:1}),te(W(fr),{delay:330},{default:de(()=>[te(W(br),{path:"invitedBy"},{default:de(()=>[te(W(Hr),{value:h.value.invitedBy,"onUpdate:value":P[4]||(P[4]=A=>h.value.invitedBy=A),placeholder:"邀请码[非必填]"},null,8,["value"])]),_:1})]),_:1}),te(W(br),null,{default:de(()=>[te(W(qt),{block:"",type:"primary",disabled:s.value,loading:s.value,onClick:w},{default:de(()=>[tt(Qt(f.value),1)]),_:1},8,["disabled","loading"])]),_:1})]),_:1},8,["model"])),a.value?(ge(),We(W(qu),{key:1,size:"large",ref_key:"formRef",ref:o,model:g.value,rules:v,"label-placement":"left","label-width":"auto","require-mark-placement":"right-hanging",style:{maxWidth:"640px"}},{default:de(()=>[te(W(fr),{delay:50},{default:de(()=>[te(W(br),{path:"username"},{default:de(()=>[te(W(Hr),{value:g.value.username,"onUpdate:value":P[5]||(P[5]=A=>g.value.username=A),placeholder:"请输入用户名/邮箱号"},null,8,["value"])]),_:1})]),_:1}),te(W(fr),{delay:120},{default:de(()=>[te(W(br),{path:"password"},{default:de(()=>[te(W(Hr),{value:g.value.password,"onUpdate:value":P[6]||(P[6]=A=>g.value.password=A),placeholder:"请输入您的账户密码",type:"password",maxlength:30,"show-password-on":"click",tabindex:"0",onKeyup:Du(w,["enter"])},null,8,["value"])]),_:1})]),_:1}),te(W(br),null,{default:de(()=>[te(W(qt),{block:"",type:"primary",disabled:s.value,loading:s.value,onClick:w,class:"!mt-[50px]"},{default:de(()=>[tt(" 登录账户 ")]),_:1},8,["disabled","loading"])]),_:1})]),_:1},8,["model"])):Fe("",!0)],2),y.value?(ge(),je("span",Nie,[te(W(qt),{text:"",onClick:P[7]||(P[7]=A=>a.value=!a.value)},{default:de(()=>[tt(Qt(m.value),1)]),_:1})])):Fe("",!0),ve("div",{class:Jt(["flex items-center justify-center space-x-5",y.value?"mt-[16px]":"mt-[36px]"])},[b.value?(ge(),We(W(qt),{key:0,ghost:"",class:"!px-10",onClick:P[8]||(P[8]=A=>r("changeLoginType","wechat"))},{default:de(()=>[te(W(In),{class:"text-xl mr-2 text-[#3076fd]",icon:"ph:wechat-logo"}),tt(" 微信登录 ")]),_:1})):Fe("",!0),x.value?(ge(),We(W(qt),{key:1,ghost:"",class:"!px-10",onClick:P[9]||(P[9]=A=>r("changeLoginType","phone"))},{default:de(()=>[te(W(In),{class:"text-xl mr-2 text-[#3076fd]",icon:"clarity:mobile-phone-solid"}),tt(" 手机号登录 ")]),_:1})):Fe("",!0)],2),te(W(fr),{delay:800},{default:de(()=>[ve("div",Hie,[a.value?(ge(),We(Im,{key:0})):Fe("",!0)])]),_:1})],64))}}),Wie="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAZCAYAAAAmNZ4aAAAAAXNSR0IArs4c6QAAAlBJREFUSEu1lv152kAMxn+6BUonKJmgZIJiZwHDAiETFCZIM0HpBIUFsDsA2ExQMkHdDegCpz5n82VsY3Da+8uPdadXJ72vdELdioMe1jwi2gN6IJ18q6aobDA2AeZ40bbWxwWDlGxxEKDyDOIAm5cyw9jJrQEUgZeDKSKfm9HOd+gW0Se8KLr27BF4NZiBPF57sHKf8sTDYnaNjxx4OfyC8Fw4oPxGNAX5VHKk/EF0U7ZlN/fwok0TuBAHXdT8KoEa28vqVpV+sXd4UcpyOEL4XgTRBD/0moEr66ob/PB+l40xwteCI7Hvs6AyIpqwBLIP7CKrV4OkJp2OKCmio6OU9p50g0iEZrbuTmavwBaVBGOjpnQLq6E2paXW7ngAU4x1Nf2INT1E80AyrTse6Dory9lqD6z6DaMJ6uQn/YvB51p/OQ1AqEv1JU9ONtAtKeEyuivDZC83qZTSZdAX0E67RgOIHbhGUy2nOmBXU2Mdk38etjhNGzvCGpeBI/vr/pNp/a6+gVSBK5N8aJx2OF3jh3mNC0St+++Ix+S2linWQ01c0cmmu5oHZ42o+j+6Lg6Jpn7tL9qroBjRGXApXWd3+2/AcdA/pNLpFHFE6KPiiPMBl2prZtn3m5bOz+axm1Lqus+4qtvU9u5bgxB7X36BXONkOUzb31rn+OGoHXD+HksQ3l0T53GPvmal86JtO2DnKQ46qESVk60yGv2BHx7k1h547zwjpIxR6ZcykE8v8rL8a+DT27nXjBse+UoPBHVPKxjxsNjbePuNbyvyYfdfPDkKItnJNCsAAAAASUVORK5CYII=",Uie={class:"w-full h-full flex flex-col items-center"},Vie=ve("div",{class:"text-[#374151] dark:text-white font-bold text-[20px] mt-[50px]"},"微信扫码登录",-1),qie={style:{"white-space":"nowrap"},class:"mt-[20px] w-full text-center font-bold text-sm"},Gie={class:"w-[65px] inline-block font-normal text-[#FF505C] text-left"},Yie={class:"w-[280px] h-[280px] wechat-shadow flex flex-col justify-center items-center relative select-none mt-[20px]"},Kie={class:"mt-2 text-[#222222] dark:text-white font-normal flex items-center"},Xie=["src"],Zie={class:"flex items-center justify-center space-x-5 mt-[36px]"},Qie=me({__name:"Wechat",emits:["changeLoginType"],setup(e,{emit:t}){let r;const n=t,o=z(""),i=z(""),a=z(!1),s=Sn(),l=Tr(),c=z(),u=R(()=>Number(l.globalConfig.phoneLoginStatus)===1),d=R(()=>Number(l.globalConfig.emailLoginStatus)===1);function f(m){return new Promise((b,x)=>{const y=new Image;y.onload=()=>b(y),y.onerror=x,y.src=m})}async function p(){const m={invitedBy:Nt.get("invitedBy")},b=await koe(m);b.success&&(i.value=b.data,g())}async function h(){if(!i.value)return;const m=await Aoe({sceneStr:i.value});m.data&&(clearInterval(r),s.success("账户登录成功、开始体验吧!"),l.setToken(m.data),l.getUserInfo(),l.setLoginDialog(!1),Nt.remove("invitedBy"))}async function g(){const m=await m5({sceneStr:i.value});m.success&&(a.value=!0,await f(m.data),o.value=m.data,r=setInterval(()=>{h()},1e3))}function v(){var m;clearInterval(r),p(),(m=c.value)==null||m.reset()}return St(()=>{p()}),Kt(()=>{clearInterval(r)}),(m,b)=>(ge(),je("div",Uie,[Vie,ve("div",qie,[ve("p",null,[ve("span",Gie,[te(W(Hg),{ref_key:"countdownRef",ref:c,active:a.value,duration:60*1e3,"on-finish":v},null,8,["active"])]),tt(" 秒后二维码将刷新 ")])]),te(W(fr),{delay:200,scale:.5,duration:500},{default:de(()=>[ve("div",Yie,[o.value?(ge(),We(W(iE),{key:0,"preview-disabled":"",class:"w-[220px] h-[220px] select-none",src:o.value},null,8,["src"])):(ge(),We(W(Vi),{key:1,height:"230px",width:"220px",animated:""})),o.value?Fe("",!0):(ge(),We(W(Nd),{key:2,size:"large",class:"absolute left-1/2 top-1/2 transform -translate-x-1/2 -translate-y-1/2"})),ve("div",Kie,[ve("img",{src:W(Wie),class:"w-[16px] mr-1",alt:""},null,8,Xie),tt(" 微信扫码 ")])])]),_:1}),te(W(fr),{delay:200},{default:de(()=>[ve("div",Zie,[d.value?(ge(),We(W(qt),{key:0,ghost:"",class:"!px-10",onClick:b[0]||(b[0]=x=>n("changeLoginType","email"))},{default:de(()=>[te(W(In),{class:"text-xl mr-2 text-[#3076fd]",icon:"clarity:email-line"}),tt(" 邮箱号登录 ")]),_:1})):Fe("",!0),u.value?(ge(),We(W(qt),{key:1,ghost:"",class:"!px-10",onClick:b[1]||(b[1]=x=>n("changeLoginType","phone"))},{default:de(()=>[te(W(In),{class:"text-xl mr-2 text-[#3076fd]",icon:"clarity:mobile-phone-solid"}),tt(" 手机号登录 ")]),_:1})):Fe("",!0)])]),_:1}),te(W(fr),{delay:400},{default:de(()=>[te(Im)]),_:1})]))}});const Jie={class:"w-auto h-[600px] bg-transparent rounded-md overflow-hidden dark:bg-slate-800"},eae={class:"bg-transparent m-0 flex"},tae={key:0,class:"flex-1 bg-white flex justify-center items-center dark:bg-[#34373c] h-[600px]"},rae={key:1,class:"flex-1 bg-white dark:bg-[#34373c] h-[600px]"},nae={class:"mt-[50px]"},oae=me({__name:"Login",props:{visible:{type:Boolean}},setup(e){let t;const r=Tr(),n=z(!1),o=z(""),i=z(""),a=z(null),s=z(!0),l=z("email");yo();const c=R(()=>Number(r.globalConfig.emailLoginStatus)===1),u=R(()=>Number(r.globalConfig.wechatRegisterStatus)===1),d=R(()=>Number(r.globalConfig.phoneLoginStatus)===1),f=R(()=>!u.value&&!d.value&&!c.value);function p(){u.value||(s.value=!1,d.value&&g("phone"),c.value&&g("email"))}function h(){clearInterval(t),o.value="",i.value="",n.value=!1}function g(v){v==="wechat"?s.value=!0:(s.value=!1,l.value=v,zt(()=>{var m;(m=a.value)==null||m.syncBarPosition()}))}return(v,m)=>(ge(),We(W(oa),{show:v.visible,"on-after-enter":p,"on-after-leave":h},{default:de(()=>[ve("div",Jie,[ve("div",{class:"absolute top-5 right-5 cursor-pointer z-30",onClick:m[0]||(m[0]=b=>W(r).setLoginDialog(!1))},[te(W(Ui),{size:"20",color:"#0e7a0d"},{default:de(()=>[te(W(uf))]),_:1})]),ve("div",eae,[f.value?(ge(),je("div",tae,[te(W(VV),{size:"small",status:"403",title:"网站已经关闭注册通道",description:"请联系管理员开通吧"},{footer:de(()=>[te(W(qt),{size:"small",onClick:m[1]||(m[1]=b=>W(r).setLoginDialog(!1))},{default:de(()=>[tt(" 知道了 ")]),_:1})]),_:1})])):Fe("",!0),f.value?Fe("",!0):(ge(),je("div",rae,[u.value&&s.value?(ge(),We(Qie,{key:0,onChangeLoginType:g})):Fe("",!0),ve("div",nae,[s.value?Fe("",!0):(ge(),We(W(uq),{key:0,ref_key:"tabsRef",ref:a,value:l.value,"onUpdate:value":m[2]||(m[2]=b=>l.value=b),animated:"","justify-content":"space-evenly"},{default:de(()=>[c.value?(ge(),We(W(S1),{key:0,name:"email",tab:"邮箱号登录"},{default:de(()=>[te(jie,{onChangeLoginType:g})]),_:1})):Fe("",!0),d.value?(ge(),We(W(S1),{key:1,name:"phone",tab:"手机号登录"},{default:de(()=>[te(Lie,{onChangeLoginType:g})]),_:1})):Fe("",!0)]),_:1},8,["value"]))])]))])])]),_:1},8,["show"]))}});function x5(e){return mt({url:"/order/buy",data:e})}function iae(e){return Dt({url:"/order/queryByOrderId",data:e})}var uc={},aae=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},y5={},ln={};let Bm;const sae=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];ln.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};ln.getSymbolTotalCodewords=function(t){return sae[t]};ln.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};ln.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');Bm=t};ln.isKanjiModeEnabled=function(){return typeof Bm<"u"};ln.toSJIS=function(t){return Bm(t)};var df={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(r){if(typeof r!="string")throw new Error("Param is not a string");switch(r.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+r)}}e.isValid=function(n){return n&&typeof n.bit<"u"&&n.bit>=0&&n.bit<4},e.from=function(n,o){if(e.isValid(n))return n;try{return t(n)}catch{return o}}})(df);function C5(){this.buffer=[],this.length=0}C5.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let r=0;r<t;r++)this.putBit((e>>>t-r-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var lae=C5;function dc(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}dc.prototype.set=function(e,t,r,n){const o=e*this.size+t;this.data[o]=r,n&&(this.reservedBit[o]=!0)};dc.prototype.get=function(e,t){return this.data[e*this.size+t]};dc.prototype.xor=function(e,t,r){this.data[e*this.size+t]^=r};dc.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var cae=dc,w5={};(function(e){const t=ln.getSymbolSize;e.getRowColCoords=function(n){if(n===1)return[];const o=Math.floor(n/7)+2,i=t(n),a=i===145?26:Math.ceil((i-13)/(2*o-2))*2,s=[i-7];for(let l=1;l<o-1;l++)s[l]=s[l-1]-a;return s.push(6),s.reverse()},e.getPositions=function(n){const o=[],i=e.getRowColCoords(n),a=i.length;for(let s=0;s<a;s++)for(let l=0;l<a;l++)s===0&&l===0||s===0&&l===a-1||s===a-1&&l===0||o.push([i[s],i[l]]);return o}})(w5);var S5={};const uae=ln.getSymbolSize,IC=7;S5.getPositions=function(t){const r=uae(t);return[[0,0],[r-IC,0],[0,r-IC]]};var _5={};(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(o){return o!=null&&o!==""&&!isNaN(o)&&o>=0&&o<=7},e.from=function(o){return e.isValid(o)?parseInt(o,10):void 0},e.getPenaltyN1=function(o){const i=o.size;let a=0,s=0,l=0,c=null,u=null;for(let d=0;d<i;d++){s=l=0,c=u=null;for(let f=0;f<i;f++){let p=o.get(d,f);p===c?s++:(s>=5&&(a+=t.N1+(s-5)),c=p,s=1),p=o.get(f,d),p===u?l++:(l>=5&&(a+=t.N1+(l-5)),u=p,l=1)}s>=5&&(a+=t.N1+(s-5)),l>=5&&(a+=t.N1+(l-5))}return a},e.getPenaltyN2=function(o){const i=o.size;let a=0;for(let s=0;s<i-1;s++)for(let l=0;l<i-1;l++){const c=o.get(s,l)+o.get(s,l+1)+o.get(s+1,l)+o.get(s+1,l+1);(c===4||c===0)&&a++}return a*t.N2},e.getPenaltyN3=function(o){const i=o.size;let a=0,s=0,l=0;for(let c=0;c<i;c++){s=l=0;for(let u=0;u<i;u++)s=s<<1&2047|o.get(c,u),u>=10&&(s===1488||s===93)&&a++,l=l<<1&2047|o.get(u,c),u>=10&&(l===1488||l===93)&&a++}return a*t.N3},e.getPenaltyN4=function(o){let i=0;const a=o.data.length;for(let l=0;l<a;l++)i+=o.data[l];return Math.abs(Math.ceil(i*100/a/5)-10)*t.N4};function r(n,o,i){switch(n){case e.Patterns.PATTERN000:return(o+i)%2===0;case e.Patterns.PATTERN001:return o%2===0;case e.Patterns.PATTERN010:return i%3===0;case e.Patterns.PATTERN011:return(o+i)%3===0;case e.Patterns.PATTERN100:return(Math.floor(o/2)+Math.floor(i/3))%2===0;case e.Patterns.PATTERN101:return o*i%2+o*i%3===0;case e.Patterns.PATTERN110:return(o*i%2+o*i%3)%2===0;case e.Patterns.PATTERN111:return(o*i%3+(o+i)%2)%2===0;default:throw new Error("bad maskPattern:"+n)}}e.applyMask=function(o,i){const a=i.size;for(let s=0;s<a;s++)for(let l=0;l<a;l++)i.isReserved(l,s)||i.xor(l,s,r(o,l,s))},e.getBestMask=function(o,i){const a=Object.keys(e.Patterns).length;let s=0,l=1/0;for(let c=0;c<a;c++){i(c),e.applyMask(c,o);const u=e.getPenaltyN1(o)+e.getPenaltyN2(o)+e.getPenaltyN3(o)+e.getPenaltyN4(o);e.applyMask(c,o),u<l&&(l=u,s=c)}return s}})(_5);var ff={};const Uo=df,Xc=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],Zc=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];ff.getBlocksCount=function(t,r){switch(r){case Uo.L:return Xc[(t-1)*4+0];case Uo.M:return Xc[(t-1)*4+1];case Uo.Q:return Xc[(t-1)*4+2];case Uo.H:return Xc[(t-1)*4+3];default:return}};ff.getTotalCodewordsCount=function(t,r){switch(r){case Uo.L:return Zc[(t-1)*4+0];case Uo.M:return Zc[(t-1)*4+1];case Uo.Q:return Zc[(t-1)*4+2];case Uo.H:return Zc[(t-1)*4+3];default:return}};var E5={},hf={};const ul=new Uint8Array(512),ed=new Uint8Array(256);(function(){let t=1;for(let r=0;r<255;r++)ul[r]=t,ed[t]=r,t<<=1,t&256&&(t^=285);for(let r=255;r<512;r++)ul[r]=ul[r-255]})();hf.log=function(t){if(t<1)throw new Error("log("+t+")");return ed[t]};hf.exp=function(t){return ul[t]};hf.mul=function(t,r){return t===0||r===0?0:ul[ed[t]+ed[r]]};(function(e){const t=hf;e.mul=function(n,o){const i=new Uint8Array(n.length+o.length-1);for(let a=0;a<n.length;a++)for(let s=0;s<o.length;s++)i[a+s]^=t.mul(n[a],o[s]);return i},e.mod=function(n,o){let i=new Uint8Array(n);for(;i.length-o.length>=0;){const a=i[0];for(let l=0;l<o.length;l++)i[l]^=t.mul(o[l],a);let s=0;for(;s<i.length&&i[s]===0;)s++;i=i.slice(s)}return i},e.generateECPolynomial=function(n){let o=new Uint8Array([1]);for(let i=0;i<n;i++)o=e.mul(o,new Uint8Array([1,t.exp(i)]));return o}})(E5);const T5=E5;function Dm(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}Dm.prototype.initialize=function(t){this.degree=t,this.genPoly=T5.generateECPolynomial(this.degree)};Dm.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const r=new Uint8Array(t.length+this.degree);r.set(t);const n=T5.mod(r,this.genPoly),o=this.degree-n.length;if(o>0){const i=new Uint8Array(this.degree);return i.set(n,o),i}return n};var dae=Dm,k5={},ci={},Om={};Om.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var no={};const A5="[0-9]+",fae="[A-Z $%*+\\-./:]+";let Ul="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Ul=Ul.replace(/u/g,"\\u");const hae="(?:(?![A-Z0-9 $%*+\\-./:]|"+Ul+`)(?:.|[\r
|
||
]))+`;no.KANJI=new RegExp(Ul,"g");no.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");no.BYTE=new RegExp(hae,"g");no.NUMERIC=new RegExp(A5,"g");no.ALPHANUMERIC=new RegExp(fae,"g");const pae=new RegExp("^"+Ul+"$"),gae=new RegExp("^"+A5+"$"),mae=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");no.testKanji=function(t){return pae.test(t)};no.testNumeric=function(t){return gae.test(t)};no.testAlphanumeric=function(t){return mae.test(t)};(function(e){const t=Om,r=no;e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(i,a){if(!i.ccBits)throw new Error("Invalid mode: "+i);if(!t.isValid(a))throw new Error("Invalid version: "+a);return a>=1&&a<10?i.ccBits[0]:a<27?i.ccBits[1]:i.ccBits[2]},e.getBestModeForData=function(i){return r.testNumeric(i)?e.NUMERIC:r.testAlphanumeric(i)?e.ALPHANUMERIC:r.testKanji(i)?e.KANJI:e.BYTE},e.toString=function(i){if(i&&i.id)return i.id;throw new Error("Invalid mode")},e.isValid=function(i){return i&&i.bit&&i.ccBits};function n(o){if(typeof o!="string")throw new Error("Param is not a string");switch(o.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+o)}}e.from=function(i,a){if(e.isValid(i))return i;try{return n(i)}catch{return a}}})(ci);(function(e){const t=ln,r=ff,n=df,o=ci,i=Om,a=7973,s=t.getBCHDigit(a);function l(f,p,h){for(let g=1;g<=40;g++)if(p<=e.getCapacity(g,h,f))return g}function c(f,p){return o.getCharCountIndicator(f,p)+4}function u(f,p){let h=0;return f.forEach(function(g){const v=c(g.mode,p);h+=v+g.getBitsLength()}),h}function d(f,p){for(let h=1;h<=40;h++)if(u(f,h)<=e.getCapacity(h,p,o.MIXED))return h}e.from=function(p,h){return i.isValid(p)?parseInt(p,10):h},e.getCapacity=function(p,h,g){if(!i.isValid(p))throw new Error("Invalid QR Code version");typeof g>"u"&&(g=o.BYTE);const v=t.getSymbolTotalCodewords(p),m=r.getTotalCodewordsCount(p,h),b=(v-m)*8;if(g===o.MIXED)return b;const x=b-c(g,p);switch(g){case o.NUMERIC:return Math.floor(x/10*3);case o.ALPHANUMERIC:return Math.floor(x/11*2);case o.KANJI:return Math.floor(x/13);case o.BYTE:default:return Math.floor(x/8)}},e.getBestVersionForData=function(p,h){let g;const v=n.from(h,n.M);if(Array.isArray(p)){if(p.length>1)return d(p,v);if(p.length===0)return 1;g=p[0]}else g=p;return l(g.mode,g.getLength(),v)},e.getEncodedBits=function(p){if(!i.isValid(p)||p<7)throw new Error("Invalid QR Code version");let h=p<<12;for(;t.getBCHDigit(h)-s>=0;)h^=a<<t.getBCHDigit(h)-s;return p<<12|h}})(k5);var P5={};const kp=ln,$5=1335,vae=21522,BC=kp.getBCHDigit($5);P5.getEncodedBits=function(t,r){const n=t.bit<<3|r;let o=n<<10;for(;kp.getBCHDigit(o)-BC>=0;)o^=$5<<kp.getBCHDigit(o)-BC;return(n<<10|o)^vae};var I5={};const bae=ci;function ls(e){this.mode=bae.NUMERIC,this.data=e.toString()}ls.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};ls.prototype.getLength=function(){return this.data.length};ls.prototype.getBitsLength=function(){return ls.getBitsLength(this.data.length)};ls.prototype.write=function(t){let r,n,o;for(r=0;r+3<=this.data.length;r+=3)n=this.data.substr(r,3),o=parseInt(n,10),t.put(o,10);const i=this.data.length-r;i>0&&(n=this.data.substr(r),o=parseInt(n,10),t.put(o,i*3+1))};var xae=ls;const yae=ci,K0=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function cs(e){this.mode=yae.ALPHANUMERIC,this.data=e}cs.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};cs.prototype.getLength=function(){return this.data.length};cs.prototype.getBitsLength=function(){return cs.getBitsLength(this.data.length)};cs.prototype.write=function(t){let r;for(r=0;r+2<=this.data.length;r+=2){let n=K0.indexOf(this.data[r])*45;n+=K0.indexOf(this.data[r+1]),t.put(n,11)}this.data.length%2&&t.put(K0.indexOf(this.data[r]),6)};var Cae=cs,wae=function(t){for(var r=[],n=t.length,o=0;o<n;o++){var i=t.charCodeAt(o);if(i>=55296&&i<=56319&&n>o+1){var a=t.charCodeAt(o+1);a>=56320&&a<=57343&&(i=(i-55296)*1024+a-56320+65536,o+=1)}if(i<128){r.push(i);continue}if(i<2048){r.push(i>>6|192),r.push(i&63|128);continue}if(i<55296||i>=57344&&i<65536){r.push(i>>12|224),r.push(i>>6&63|128),r.push(i&63|128);continue}if(i>=65536&&i<=1114111){r.push(i>>18|240),r.push(i>>12&63|128),r.push(i>>6&63|128),r.push(i&63|128);continue}r.push(239,191,189)}return new Uint8Array(r).buffer};const Sae=wae,_ae=ci;function us(e){this.mode=_ae.BYTE,typeof e=="string"&&(e=Sae(e)),this.data=new Uint8Array(e)}us.getBitsLength=function(t){return t*8};us.prototype.getLength=function(){return this.data.length};us.prototype.getBitsLength=function(){return us.getBitsLength(this.data.length)};us.prototype.write=function(e){for(let t=0,r=this.data.length;t<r;t++)e.put(this.data[t],8)};var Eae=us;const Tae=ci,kae=ln;function ds(e){this.mode=Tae.KANJI,this.data=e}ds.getBitsLength=function(t){return t*13};ds.prototype.getLength=function(){return this.data.length};ds.prototype.getBitsLength=function(){return ds.getBitsLength(this.data.length)};ds.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let r=kae.toSJIS(this.data[t]);if(r>=33088&&r<=40956)r-=33088;else if(r>=57408&&r<=60351)r-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
|
||
Make sure your charset is UTF-8`);r=(r>>>8&255)*192+(r&255),e.put(r,13)}};var Aae=ds,B5={exports:{}};(function(e){var t={single_source_shortest_paths:function(r,n,o){var i={},a={};a[n]=0;var s=t.PriorityQueue.make();s.push(n,0);for(var l,c,u,d,f,p,h,g,v;!s.empty();){l=s.pop(),c=l.value,d=l.cost,f=r[c]||{};for(u in f)f.hasOwnProperty(u)&&(p=f[u],h=d+p,g=a[u],v=typeof a[u]>"u",(v||g>h)&&(a[u]=h,s.push(u,h),i[u]=c))}if(typeof o<"u"&&typeof a[o]>"u"){var m=["Could not find a path from ",n," to ",o,"."].join("");throw new Error(m)}return i},extract_shortest_path_from_predecessor_list:function(r,n){for(var o=[],i=n;i;)o.push(i),r[i],i=r[i];return o.reverse(),o},find_path:function(r,n,o){var i=t.single_source_shortest_paths(r,n,o);return t.extract_shortest_path_from_predecessor_list(i,o)},PriorityQueue:{make:function(r){var n=t.PriorityQueue,o={},i;r=r||{};for(i in n)n.hasOwnProperty(i)&&(o[i]=n[i]);return o.queue=[],o.sorter=r.sorter||n.default_sorter,o},default_sorter:function(r,n){return r.cost-n.cost},push:function(r,n){var o={value:r,cost:n};this.queue.push(o),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(B5);var Pae=B5.exports;(function(e){const t=ci,r=xae,n=Cae,o=Eae,i=Aae,a=no,s=ln,l=Pae;function c(m){return unescape(encodeURIComponent(m)).length}function u(m,b,x){const y=[];let w;for(;(w=m.exec(x))!==null;)y.push({data:w[0],index:w.index,mode:b,length:w[0].length});return y}function d(m){const b=u(a.NUMERIC,t.NUMERIC,m),x=u(a.ALPHANUMERIC,t.ALPHANUMERIC,m);let y,w;return s.isKanjiModeEnabled()?(y=u(a.BYTE,t.BYTE,m),w=u(a.KANJI,t.KANJI,m)):(y=u(a.BYTE_KANJI,t.BYTE,m),w=[]),b.concat(x,y,w).sort(function(S,T){return S.index-T.index}).map(function(S){return{data:S.data,mode:S.mode,length:S.length}})}function f(m,b){switch(b){case t.NUMERIC:return r.getBitsLength(m);case t.ALPHANUMERIC:return n.getBitsLength(m);case t.KANJI:return i.getBitsLength(m);case t.BYTE:return o.getBitsLength(m)}}function p(m){return m.reduce(function(b,x){const y=b.length-1>=0?b[b.length-1]:null;return y&&y.mode===x.mode?(b[b.length-1].data+=x.data,b):(b.push(x),b)},[])}function h(m){const b=[];for(let x=0;x<m.length;x++){const y=m[x];switch(y.mode){case t.NUMERIC:b.push([y,{data:y.data,mode:t.ALPHANUMERIC,length:y.length},{data:y.data,mode:t.BYTE,length:y.length}]);break;case t.ALPHANUMERIC:b.push([y,{data:y.data,mode:t.BYTE,length:y.length}]);break;case t.KANJI:b.push([y,{data:y.data,mode:t.BYTE,length:c(y.data)}]);break;case t.BYTE:b.push([{data:y.data,mode:t.BYTE,length:c(y.data)}])}}return b}function g(m,b){const x={},y={start:{}};let w=["start"];for(let C=0;C<m.length;C++){const S=m[C],T=[];for(let P=0;P<S.length;P++){const A=S[P],I=""+C+P;T.push(I),x[I]={node:A,lastCount:0},y[I]={};for(let B=0;B<w.length;B++){const D=w[B];x[D]&&x[D].node.mode===A.mode?(y[D][I]=f(x[D].lastCount+A.length,A.mode)-f(x[D].lastCount,A.mode),x[D].lastCount+=A.length):(x[D]&&(x[D].lastCount=A.length),y[D][I]=f(A.length,A.mode)+4+t.getCharCountIndicator(A.mode,b))}}w=T}for(let C=0;C<w.length;C++)y[w[C]].end=0;return{map:y,table:x}}function v(m,b){let x;const y=t.getBestModeForData(m);if(x=t.from(b,y),x!==t.BYTE&&x.bit<y.bit)throw new Error('"'+m+'" cannot be encoded with mode '+t.toString(x)+`.
|
||
Suggested mode is: `+t.toString(y));switch(x===t.KANJI&&!s.isKanjiModeEnabled()&&(x=t.BYTE),x){case t.NUMERIC:return new r(m);case t.ALPHANUMERIC:return new n(m);case t.KANJI:return new i(m);case t.BYTE:return new o(m)}}e.fromArray=function(b){return b.reduce(function(x,y){return typeof y=="string"?x.push(v(y,null)):y.data&&x.push(v(y.data,y.mode)),x},[])},e.fromString=function(b,x){const y=d(b,s.isKanjiModeEnabled()),w=h(y),C=g(w,x),S=l.find_path(C.map,"start","end"),T=[];for(let P=1;P<S.length-1;P++)T.push(C.table[S[P]].node);return e.fromArray(p(T))},e.rawSplit=function(b){return e.fromArray(d(b,s.isKanjiModeEnabled()))}})(I5);const pf=ln,X0=df,$ae=lae,Iae=cae,Bae=w5,Dae=S5,Ap=_5,Pp=ff,Oae=dae,td=k5,Rae=P5,Lae=ci,Z0=I5;function Fae(e,t){const r=e.size,n=Dae.getPositions(t);for(let o=0;o<n.length;o++){const i=n[o][0],a=n[o][1];for(let s=-1;s<=7;s++)if(!(i+s<=-1||r<=i+s))for(let l=-1;l<=7;l++)a+l<=-1||r<=a+l||(s>=0&&s<=6&&(l===0||l===6)||l>=0&&l<=6&&(s===0||s===6)||s>=2&&s<=4&&l>=2&&l<=4?e.set(i+s,a+l,!0,!0):e.set(i+s,a+l,!1,!0))}}function Mae(e){const t=e.size;for(let r=8;r<t-8;r++){const n=r%2===0;e.set(r,6,n,!0),e.set(6,r,n,!0)}}function zae(e,t){const r=Bae.getPositions(t);for(let n=0;n<r.length;n++){const o=r[n][0],i=r[n][1];for(let a=-2;a<=2;a++)for(let s=-2;s<=2;s++)a===-2||a===2||s===-2||s===2||a===0&&s===0?e.set(o+a,i+s,!0,!0):e.set(o+a,i+s,!1,!0)}}function Nae(e,t){const r=e.size,n=td.getEncodedBits(t);let o,i,a;for(let s=0;s<18;s++)o=Math.floor(s/3),i=s%3+r-8-3,a=(n>>s&1)===1,e.set(o,i,a,!0),e.set(i,o,a,!0)}function Q0(e,t,r){const n=e.size,o=Rae.getEncodedBits(t,r);let i,a;for(i=0;i<15;i++)a=(o>>i&1)===1,i<6?e.set(i,8,a,!0):i<8?e.set(i+1,8,a,!0):e.set(n-15+i,8,a,!0),i<8?e.set(8,n-i-1,a,!0):i<9?e.set(8,15-i-1+1,a,!0):e.set(8,15-i-1,a,!0);e.set(n-8,8,1,!0)}function Hae(e,t){const r=e.size;let n=-1,o=r-1,i=7,a=0;for(let s=r-1;s>0;s-=2)for(s===6&&s--;;){for(let l=0;l<2;l++)if(!e.isReserved(o,s-l)){let c=!1;a<t.length&&(c=(t[a]>>>i&1)===1),e.set(o,s-l,c),i--,i===-1&&(a++,i=7)}if(o+=n,o<0||r<=o){o-=n,n=-n;break}}}function jae(e,t,r){const n=new $ae;r.forEach(function(l){n.put(l.mode.bit,4),n.put(l.getLength(),Lae.getCharCountIndicator(l.mode,e)),l.write(n)});const o=pf.getSymbolTotalCodewords(e),i=Pp.getTotalCodewordsCount(e,t),a=(o-i)*8;for(n.getLengthInBits()+4<=a&&n.put(0,4);n.getLengthInBits()%8!==0;)n.putBit(0);const s=(a-n.getLengthInBits())/8;for(let l=0;l<s;l++)n.put(l%2?17:236,8);return Wae(n,e,t)}function Wae(e,t,r){const n=pf.getSymbolTotalCodewords(t),o=Pp.getTotalCodewordsCount(t,r),i=n-o,a=Pp.getBlocksCount(t,r),s=n%a,l=a-s,c=Math.floor(n/a),u=Math.floor(i/a),d=u+1,f=c-u,p=new Oae(f);let h=0;const g=new Array(a),v=new Array(a);let m=0;const b=new Uint8Array(e.buffer);for(let S=0;S<a;S++){const T=S<l?u:d;g[S]=b.slice(h,h+T),v[S]=p.encode(g[S]),h+=T,m=Math.max(m,T)}const x=new Uint8Array(n);let y=0,w,C;for(w=0;w<m;w++)for(C=0;C<a;C++)w<g[C].length&&(x[y++]=g[C][w]);for(w=0;w<f;w++)for(C=0;C<a;C++)x[y++]=v[C][w];return x}function Uae(e,t,r,n){let o;if(Array.isArray(e))o=Z0.fromArray(e);else if(typeof e=="string"){let c=t;if(!c){const u=Z0.rawSplit(e);c=td.getBestVersionForData(u,r)}o=Z0.fromString(e,c||40)}else throw new Error("Invalid data");const i=td.getBestVersionForData(o,r);if(!i)throw new Error("The amount of data is too big to be stored in a QR Code");if(!t)t=i;else if(t<i)throw new Error(`
|
||
The chosen QR Code version cannot contain this amount of data.
|
||
Minimum version required to store current data is: `+i+`.
|
||
`);const a=jae(t,r,o),s=pf.getSymbolSize(t),l=new Iae(s);return Fae(l,t),Mae(l),zae(l,t),Q0(l,r,0),t>=7&&Nae(l,t),Hae(l,a),isNaN(n)&&(n=Ap.getBestMask(l,Q0.bind(null,l,r))),Ap.applyMask(n,l),Q0(l,r,n),{modules:l,version:t,errorCorrectionLevel:r,maskPattern:n,segments:o}}y5.create=function(t,r){if(typeof t>"u"||t==="")throw new Error("No input text");let n=X0.M,o,i;return typeof r<"u"&&(n=X0.from(r.errorCorrectionLevel,X0.M),o=td.from(r.version),i=Ap.from(r.maskPattern),r.toSJISFunc&&pf.setToSJISFunction(r.toSJISFunc)),Uae(t,o,n,i)};var D5={},Rm={};(function(e){function t(r){if(typeof r=="number"&&(r=r.toString()),typeof r!="string")throw new Error("Color should be defined as hex string");let n=r.slice().replace("#","").split("");if(n.length<3||n.length===5||n.length>8)throw new Error("Invalid hex color: "+r);(n.length===3||n.length===4)&&(n=Array.prototype.concat.apply([],n.map(function(i){return[i,i]}))),n.length===6&&n.push("F","F");const o=parseInt(n.join(""),16);return{r:o>>24&255,g:o>>16&255,b:o>>8&255,a:o&255,hex:"#"+n.slice(0,6).join("")}}e.getOptions=function(n){n||(n={}),n.color||(n.color={});const o=typeof n.margin>"u"||n.margin===null||n.margin<0?4:n.margin,i=n.width&&n.width>=21?n.width:void 0,a=n.scale||4;return{width:i,scale:i?4:a,margin:o,color:{dark:t(n.color.dark||"#000000ff"),light:t(n.color.light||"#ffffffff")},type:n.type,rendererOpts:n.rendererOpts||{}}},e.getScale=function(n,o){return o.width&&o.width>=n+o.margin*2?o.width/(n+o.margin*2):o.scale},e.getImageWidth=function(n,o){const i=e.getScale(n,o);return Math.floor((n+o.margin*2)*i)},e.qrToImageData=function(n,o,i){const a=o.modules.size,s=o.modules.data,l=e.getScale(a,i),c=Math.floor((a+i.margin*2)*l),u=i.margin*l,d=[i.color.light,i.color.dark];for(let f=0;f<c;f++)for(let p=0;p<c;p++){let h=(f*c+p)*4,g=i.color.light;if(f>=u&&p>=u&&f<c-u&&p<c-u){const v=Math.floor((f-u)/l),m=Math.floor((p-u)/l);g=d[s[v*a+m]?1:0]}n[h++]=g.r,n[h++]=g.g,n[h++]=g.b,n[h]=g.a}}})(Rm);(function(e){const t=Rm;function r(o,i,a){o.clearRect(0,0,i.width,i.height),i.style||(i.style={}),i.height=a,i.width=a,i.style.height=a+"px",i.style.width=a+"px"}function n(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}e.render=function(i,a,s){let l=s,c=a;typeof l>"u"&&(!a||!a.getContext)&&(l=a,a=void 0),a||(c=n()),l=t.getOptions(l);const u=t.getImageWidth(i.modules.size,l),d=c.getContext("2d"),f=d.createImageData(u,u);return t.qrToImageData(f.data,i,l),r(d,c,u),d.putImageData(f,0,0),c},e.renderToDataURL=function(i,a,s){let l=s;typeof l>"u"&&(!a||!a.getContext)&&(l=a,a=void 0),l||(l={});const c=e.render(i,a,l),u=l.type||"image/png",d=l.rendererOpts||{};return c.toDataURL(u,d.quality)}})(D5);var O5={};const Vae=Rm;function DC(e,t){const r=e.a/255,n=t+'="'+e.hex+'"';return r<1?n+" "+t+'-opacity="'+r.toFixed(2).slice(1)+'"':n}function J0(e,t,r){let n=e+t;return typeof r<"u"&&(n+=" "+r),n}function qae(e,t,r){let n="",o=0,i=!1,a=0;for(let s=0;s<e.length;s++){const l=Math.floor(s%t),c=Math.floor(s/t);!l&&!i&&(i=!0),e[s]?(a++,s>0&&l>0&&e[s-1]||(n+=i?J0("M",l+r,.5+c+r):J0("m",o,0),o=0,i=!1),l+1<t&&e[s+1]||(n+=J0("h",a),a=0)):o++}return n}O5.render=function(t,r,n){const o=Vae.getOptions(r),i=t.modules.size,a=t.modules.data,s=i+o.margin*2,l=o.color.light.a?"<path "+DC(o.color.light,"fill")+' d="M0 0h'+s+"v"+s+'H0z"/>':"",c="<path "+DC(o.color.dark,"stroke")+' d="'+qae(a,i,o.margin)+'"/>',u='viewBox="0 0 '+s+" "+s+'"',f='<svg xmlns="http://www.w3.org/2000/svg" '+(o.width?'width="'+o.width+'" height="'+o.width+'" ':"")+u+' shape-rendering="crispEdges">'+l+c+`</svg>
|
||
`;return typeof n=="function"&&n(null,f),f};const Gae=aae,$p=y5,R5=D5,Yae=O5;function Lm(e,t,r,n,o){const i=[].slice.call(arguments,1),a=i.length,s=typeof i[a-1]=="function";if(!s&&!Gae())throw new Error("Callback required as last argument");if(s){if(a<2)throw new Error("Too few arguments provided");a===2?(o=r,r=t,t=n=void 0):a===3&&(t.getContext&&typeof o>"u"?(o=n,n=void 0):(o=n,n=r,r=t,t=void 0))}else{if(a<1)throw new Error("Too few arguments provided");return a===1?(r=t,t=n=void 0):a===2&&!t.getContext&&(n=r,r=t,t=void 0),new Promise(function(l,c){try{const u=$p.create(r,n);l(e(u,t,n))}catch(u){c(u)}})}try{const l=$p.create(r,n);o(null,e(l,t,n))}catch(l){o(l)}}uc.create=$p.create;uc.toCanvas=Lm.bind(null,R5.render);uc.toDataURL=Lm.bind(null,R5.renderToDataURL);uc.toString=Lm.bind(null,function(e,t,r){return Yae.render(e,r)});function Kae(e,t){const r=cie(e),n=z("");return Ye(r,async o=>{r.value&&b5&&(n.value=await uc.toDataURL(o,t))},{immediate:!0}),n}const Xae=["src"],Zae=me({__name:"index",props:{value:{default:""},size:{default:160},color:{default:"#000"},backgroundColor:{default:"#FFF"},bordered:{type:Boolean,default:!0},borderColor:{default:"#0505050f"},scale:{default:8},errorLevel:{default:"H"}},setup(e){const t=e,r=Kae(t.value,{errorCorrectionLevel:t.errorLevel,type:"image/png",quality:1,margin:3,scale:t.scale,color:{dark:t.color,light:t.backgroundColor}});return(n,o)=>(ge(),je("div",{class:Jt(["m-qrcode",{bordered:n.bordered}]),style:Bn(`width: ${n.size}px; height: ${n.size}px; border-color: ${n.borderColor};`)},[ve("img",{src:W(r),class:"u-qrcode",alt:"QRCode"},null,8,Xae)],6))}});const OC=$m(Zae,[["__scopeId","data-v-56c01def"]]),RC="/assets/alipay-eab94eb8.png",LC="/assets/wxpay-2d8f84af.png",Qae={class:"p-4 bg-white rounded dark:bg-slate-800"},Jae={class:"flex text-xl font-bold mb-[20px] bg-currentflex items-center"},ese=ve("span",{class:"ml-[8px]"},"商品支付",-1),tse={class:"p-4"},rse=ve("span",{class:"whitespace-nowrap font-bold"},"需要支付:",-1),nse={class:"text-xl text-[red] font-bold"},ose={class:"mt-2 flex"},ise=ve("span",{class:"whitespace-nowrap font-bold"},"套餐名称:",-1),ase={class:"ml-2"},sse={class:"mt-2 flex"},lse=ve("span",{class:"whitespace-nowrap font-bold"},"套餐描述:",-1),cse={class:"ml-2"},use={class:"flex items-center justify-center my-3 relative"},dse=["src"],fse=["src"],hse=ve("span",{class:"mb-10 mt-5 text-base"},"当前站长开通了跳转支付",-1),pse=["src"],gse=["src"],mse={key:0,class:"flex items-center justify-center text-lg"},vse={class:"w-[60px] inline-block text-[red] text-left"},bse={class:"flex items-center"},xse=["src"],yse=1e3,Cse=me({__name:"PayDialog",props:{visible:{type:Boolean}},setup(e){const{isMobile:t}=yo(),r=Tr(),n=of(),o=Sn(),i=z(!0),a=z("wxpay"),s=R(()=>{var B;const I=window.navigator.userAgent.toLowerCase();return I.match(/MicroMessenger/i)&&((B=I==null?void 0:I.match(/MicroMessenger/i))==null?void 0:B[0])==="micromessenger"}),l=R(()=>{const{payHupiStatus:I,payEpayStatus:B,payMpayStatus:D,payWechatStatus:U,payLtzfStatus:F}=r.globalConfig;return Number(U)===1?"wechat":Number(B)===1?"epay":Number(D)===1?"mpay":Number(I)===1?"hupi":Number(F)===1?"ltzf":null}),c=R(()=>{const{payEpayChannel:I,payMpayChannel:B}=r.globalConfig;return l.value==="mpay"?B?JSON.parse(B):[]:l.value==="epay"?I?JSON.parse(I):[]:l.value==="wechat"?["wxpay"]:l.value==="hupi"?["wxpay"]:l.value==="ltzf"?["wxpay"]:[]}),u=R(()=>a.value==="wxpay"?"微信":"支付宝"),d=z(),f=R(()=>{const{payEpayApiPayUrl:I}=r.globalConfig;return l.value==="epay"&&I.includes("submit")||l.value==="mpay"});Ye(a,()=>{var I;S(),(I=d.value)==null||I.reset()});const p=z("");let h;const g=R(()=>[{label:"微信支付",value:"wxpay",icon:LC,payChannel:"wxpay"},{label:"支付宝支付",value:"alipay",icon:RC,payChannel:"alipay"}].filter(I=>c.value.includes(I.payChannel))),v=async()=>{if(!p.value)return;const I=await iae({orderId:p.value}),{success:B,data:D}=I;if(B){const{status:U}=D;U===1&&(clearInterval(h),o.success("恭喜你支付成功、祝您使用愉快!"),i.value=!1,r.getUserInfo(),setTimeout(()=>{n.updatePayDialog(!1)},2e3))}},m=R(()=>n==null?void 0:n.orderInfo),b=z(""),x=z(!0),y=z(!0),w=z("");function C(){n.updateOrderInfo({}),clearInterval(h)}async function S(){!f.value&&(x.value=!0),f.value&&(y.value=!0);let I=null;I=a.value,l.value==="wechat"&&(I=s.value?"jsapi":"native");try{const B=await x5({goodsId:m.value.pkgInfo.id,payType:I}),{data:D,success:U,message:F}=B;if(!U)return o.error(F);const{url_qrcode:j,orderId:K,redirectUrl:ae}=D;w.value=ae,p.value=K,b.value=j,x.value=!1,y.value=!1}catch{n.updatePayDialog(!1),x.value=!1,y.value=!1}}function T(){window.open(w.value)}async function P(){await S(),h=setInterval(()=>{v()},yse)}function A(){o.error("支付超时,请重新下单!"),clearInterval(h),n.updatePayDialog(!1)}return(I,B)=>(ge(),We(W(oa),{show:I.visible,style:{width:"90%","max-width":"750px"},"on-after-enter":P,"on-after-leave":C},{default:de(()=>{var D,U,F;return[ve("div",Qae,[ve("div",{class:"flex justify-between",onClick:B[0]||(B[0]=j=>W(n).updatePayDialog(!1))},[ve("div",Jae,[te(W(Ui),{size:"25",color:"#0e7a0d"},{default:de(()=>[te(W(v5))]),_:1}),ese]),te(W(Ui),{size:"20",color:"#0e7a0d",class:"cursor-pointer"},{default:de(()=>[te(W(uf))]),_:1})]),ve("div",tse,[ve("div",null,[rse,ve("i",nse,Qt(`¥${(D=m.value.pkgInfo)==null?void 0:D.price}`),1)]),ve("div",ose,[ise,ve("span",ase,Qt((U=m.value.pkgInfo)==null?void 0:U.name),1)]),ve("div",sse,[lse,ve("span",cse,Qt((F=m.value.pkgInfo)==null?void 0:F.des),1)]),ve("div",{class:Jt(["flex justify-center",[W(t)?"flex-col":"flex-row",f.value?"flex-row-reverse":""]])},[ve("div",null,[ve("div",use,[x.value&&!f.value?(ge(),We(W(Nd),{key:0,size:"large",class:"absolute left-1/2 top-1/2 transform -translate-x-1/2 -translate-y-1/2"})):Fe("",!0),x.value?(ge(),We(W(Vi),{key:1,width:240,height:240,sharp:!1,size:"medium"})):Fe("",!0),l.value==="epay"&&!x.value&&!y.value&&!f.value?(ge(),We(OC,{key:2,value:b.value,size:240},null,8,["value"])):Fe("",!0),a.value==="wxpay"&&!x.value&&!f.value?(ge(),je("img",{key:3,src:W(LC),class:"absolute left-1/2 top-1/2 transform -translate-x-1/2 -translate-y-1/2 w-10 bg-[#fff]"},null,8,dse)):Fe("",!0),a.value==="alipay"&&!x.value&&!f.value?(ge(),je("img",{key:4,src:W(RC),class:"absolute left-1/2 top-1/2 transform -translate-x-1/2 -translate-y-1/2 w-10 bg-[#fff]"},null,8,fse)):Fe("",!0),l.value==="wechat"&&!x.value?(ge(),We(OC,{key:5,value:b.value,size:240},null,8,["value"])):Fe("",!0),f.value?(ge(),je("div",{key:6,class:Jt(["flex flex-col",[f.value&&W(t)?"ml-0":"ml-20"]])},[hse,f.value?(ge(),We(W(qt),{key:0,type:"primary",ghost:"",disabled:y.value,loading:y.value,onClick:T},{default:de(()=>[tt(" 点击前往支付 ")]),_:1},8,["disabled","loading"])):Fe("",!0)],2)):Fe("",!0),l.value==="hupi"&&!y.value?(ge(),je("iframe",{key:7,class:"w-[280px] h-[280px] scale-90",src:b.value,frameborder:"0"},null,8,pse)):Fe("",!0),l.value==="ltzf"&&!y.value?(ge(),je("img",{key:8,src:b.value,class:"w-[280px] h-[280px] scale-90",alt:"QRCode"},null,8,gse)):Fe("",!0)]),f.value?Fe("",!0):(ge(),je("span",mse,Qt(`打开${u.value}扫码支付`),1))]),ve("div",{class:Jt(["flex flex-col",[W(t)?"w-full ":" ml-10 w-[200] "]])},[ve("div",{style:{"white-space":"nowrap"},class:Jt(["mt-6 w-full text-center font-bold text-sm",[W(t)?"mb-2":"mb-10"]])},[tt(" 请在 "),ve("span",vse,[te(W(Hg),{ref_key:"countdownRef",ref:d,active:i.value,duration:300*1e3,"on-finish":A},null,8,["active"])]),tt(" 时间内完成支付! ")],2),te(W(Kz),{value:a.value,"onUpdate:value":B[1]||(B[1]=j=>a.value=j),name:"radiogroup",class:"flex"},{default:de(()=>[te(W(Md),{vertical:!W(t),justify:"center",size:W(t)?10:35,class:"w-full"},{default:de(()=>[(ge(!0),je(st,null,yl(g.value,j=>(ge(),We(W(Vz),{key:j.value,value:j.value},{default:de(()=>[ve("div",bse,[ve("img",{class:"h-4 object-contain mr-2",src:j.icon,alt:""},null,8,xse),tt(" "+Qt(j.label),1)])]),_:2},1032,["value"]))),128))]),_:1},8,["vertical","size"])]),_:1},8,["value"])],2)],2)])])]}),_:1},8,["show"]))}});function yfe(e){return mt({url:"/crami/useCrami",data:e})}function wse(e){return Dt({url:"/crami/queryAllPackage",data:e})}const Sse="/assets/preferential-0ee5bc79.png",_se={class:"p-4 bg-white rounded dark:bg-slate-800 max-h-4/5"},Ese={class:"flex cursor-pointer justify-between"},Tse=ve("span",{class:"text-xl"},"选购商品",-1),kse={key:0,class:"p-4"},Ase={class:"relative"},Pse=["src"],$se=["src"],Ise={class:"flex justify-between items-end min-h-28"},Bse=ve("span",{class:"text-sm font-bold mr-1 w-[120px]"},"基础模型额度",-1),Dse={class:"font-bold"},Ose={class:"flex justify-between items-end min-h-28"},Rse=ve("span",{class:"text-sm font-bold mr-1 w-[120px]"},"高级模型额度",-1),Lse={class:"font-bold"},Fse={class:"flex justify-between items-end min-h-28"},Mse=ve("span",{class:"text-sm font-bold mr-1 w-[120px]"},"MJ绘画额度",-1),zse={class:"font-bold"},Nse={class:"flex justify-between items-end mt-5"},Hse={class:"text-xl text-[red] font-bold"},jse={key:1,class:"p-4"},Wse=me({__name:"GoodsDialog",props:{visible:{type:Boolean}},setup(e){const t=Tr(),r=ai(),n=z(!0),{isSmallMd:o}=yo(),i=z([]),a=Sn(),s=c4(),l=z(!1),c=R(()=>{var y;const x=window.navigator.userAgent.toLowerCase();return x.match(/MicroMessenger/i)&&((y=x==null?void 0:x.match(/MicroMessenger/i))==null?void 0:y[0])==="micromessenger"}),u=R(()=>{const{payHupiStatus:x,payEpayStatus:y,payMpayStatus:w,payWechatStatus:C,payLtzfStatus:S}=t.globalConfig;return Number(C)===1?"wechat":Number(w)===1?"mpay":Number(x)===1?"hupi":Number(y)===1?"epay":Number(S)===1?"ltzf":null}),d=R(()=>{const{payEpayChannel:x,payMpayChannel:y}=t.globalConfig;return u.value==="mpay"?y?JSON.parse(y):[]:u.value==="epay"?x?JSON.parse(x):[]:u.value==="wechat"?["wxpay"]:u.value==="hupi"?["wxpay"]:u.value==="ltzf"?["wxpay"]:[]});function f(){m(),c.value&&h()}function p(){i.value=[],n.value=!0}async function h(){const x=window.location.href.replace(/#.*$/,""),y=await $oe({url:x}),{appId:w,nonceStr:C,timestamp:S,signature:T}=y.data;w&&(wx.config({debug:!1,appId:w,timestamp:S,nonceStr:C,signature:T,jsApiList:["chooseWXPay"]}),wx.ready(()=>{}),wx.error(()=>{}))}function g(x){const{appId:y,timeStamp:w,nonceStr:C,package:S,signType:T,paySign:P}=x;WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:y,timeStamp:w,nonceStr:C,package:S,signType:T,paySign:P},A=>{A.err_msg==="get_brand_wcpay_request:ok"?(a.success("购买成功、祝您使用愉快!"),setTimeout(()=>{t.getUserInfo(),r.updateGoodsDialog(!1)},500)):a.warning("您还没有支付成功哟!")})}async function v(x){if(!l.value){if(c.value&&u.value==="wechat"&&Number(t.globalConfig.payWechatStatus)===1){if(typeof WeixinJSBridge>"u")document.addEventListener?document.addEventListener("WeixinJSBridgeReady",g,!1):document.attachEvent&&(document.attachEvent("WeixinJSBridgeReady",g),document.attachEvent("onWeixinJSBridgeReady",g));else{const y=await x5({goodsId:x.id,payType:"jsapi"}),{success:w,data:C}=y;w&&g(C)}return}r.updateOrderInfo({pkgInfo:x}),r.updateGoodsDialog(!1),r.updatePayDialog(!0)}}async function m(){n.value=!0;try{const x=await wse({status:1,size:30});i.value=x.data.rows,n.value=!1}catch{n.value=!1}}function b(x){const{name:y}=x;s.success({title:"订单确认",content:`欢迎选购、确定购买${y}么!`,negativeText:"我再想想",positiveText:"确认购买",onPositiveClick:()=>{d.value.length||a.warning("管理员还未开启支付!"),v(x)}})}return(x,y)=>(ge(),We(W(oa),{show:x.visible,style:Bn({maxWidth:`${i.value.length>4?1200:i.value.length*250}px`,minWidth:W(o)?"100%":"1000px"}),"on-after-enter":f,"on-after-leave":p},{default:de(()=>[ve("div",_se,[ve("div",Ese,[Tse,te(W(Ui),{size:"20",color:"#0e7a0d",onClick:y[0]||(y[0]=w=>W(r).updateGoodsDialog(!1))},{default:de(()=>[te(W(uf))]),_:1})]),n.value?Fe("",!0):(ge(),je("div",kse,[te(W(w1),{"x-gap":15,"y-gap":15,cols:W(o)?1:i.value.length>4?4:i.value.length,class:"mt-3"},{default:de(()=>[(ge(!0),je(st,null,yl(i.value,(w,C)=>(ge(),We(W(C1),{key:C},{default:de(()=>[te(W(Od),{size:"small",embedded:""},{header:de(()=>[ve("div",Ase,[ve("b",null,Qt(w.name),1),w.extraReward===1?(ge(),je("img",{key:0,src:W(Sse),class:"w-8 absolute -right-4 -top-3"},null,8,Pse)):Fe("",!0)])]),cover:de(()=>[ve("img",{src:w.coverImg,class:"h-[130px] object-cover"},null,8,$se)]),default:de(()=>[ve("div",null,[ve("p",null,Qt(w.des),1),ve("div",Ise,[Bse,ve("span",Dse,Qt(w.model3Count),1)]),ve("div",Ose,[Rse,ve("span",Lse,Qt(w.model4Count),1)]),ve("div",Fse,[Mse,ve("span",zse,Qt(w.drawMjCount),1)]),ve("div",Nse,[ve("i",Hse,Qt(`¥${w.price}`),1),te(W(qt),{type:"primary",dashed:"",size:"small",onClick:S=>b(w)},{default:de(()=>[tt(" 购买套餐 ")]),_:2},1032,["onClick"])])])]),_:2},1024)]),_:2},1024))),128))]),_:1},8,["cols"])])),n.value?(ge(),je("div",jse,[te(W(w1),{"x-gap":15,"y-gap":15,cols:W(o)?1:4,class:"mt-3"},{default:de(()=>[(ge(),je(st,null,yl(4,w=>te(W(C1),{key:w},{default:de(()=>[te(W(Md),{vertical:""},{default:de(()=>[te(W(Vi),{height:"130px",width:"100%"}),te(W(Vi),{height:"210px",width:"100%",sharp:!1})]),_:1})]),_:2},1024)),64))]),_:1},8,["cols"])])):Fe("",!0)])]),_:1},8,["show","style"]))}});function L5(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let la=L5();function Use(e){la=e}const F5=/[&<>"']/,Vse=new RegExp(F5.source,"g"),M5=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,qse=new RegExp(M5.source,"g"),Gse={"&":"&","<":"<",">":">",'"':""","'":"'"},FC=e=>Gse[e];function Br(e,t){if(t){if(F5.test(e))return e.replace(Vse,FC)}else if(M5.test(e))return e.replace(qse,FC);return e}const Yse=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function z5(e){return e.replace(Yse,(t,r)=>(r=r.toLowerCase(),r==="colon"?":":r.charAt(0)==="#"?r.charAt(1)==="x"?String.fromCharCode(parseInt(r.substring(2),16)):String.fromCharCode(+r.substring(1)):""))}const Kse=/(^|[^\[])\^/g;function Bt(e,t){e=typeof e=="string"?e:e.source,t=t||"";const r={replace:(n,o)=>(o=o.source||o,o=o.replace(Kse,"$1"),e=e.replace(n,o),r),getRegex:()=>new RegExp(e,t)};return r}const Xse=/[^\w:]/g,Zse=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function MC(e,t,r){if(e){let n;try{n=decodeURIComponent(z5(r)).replace(Xse,"").toLowerCase()}catch{return null}if(n.indexOf("javascript:")===0||n.indexOf("vbscript:")===0||n.indexOf("data:")===0)return null}t&&!Zse.test(r)&&(r=tle(t,r));try{r=encodeURI(r).replace(/%25/g,"%")}catch{return null}return r}const Qc={},Qse=/^[^:]+:\/*[^/]*$/,Jse=/^([^:]+:)[\s\S]*$/,ele=/^([^:]+:\/*[^/]*)[\s\S]*$/;function tle(e,t){Qc[" "+e]||(Qse.test(e)?Qc[" "+e]=e+"/":Qc[" "+e]=Cu(e,"/",!0)),e=Qc[" "+e];const r=e.indexOf(":")===-1;return t.substring(0,2)==="//"?r?t:e.replace(Jse,"$1")+t:t.charAt(0)==="/"?r?t:e.replace(ele,"$1")+t:e+t}const rd={exec:function(){}};function zC(e,t){const r=e.replace(/\|/g,(i,a,s)=>{let l=!1,c=a;for(;--c>=0&&s[c]==="\\";)l=!l;return l?"|":" |"}),n=r.split(/ \|/);let o=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;o<n.length;o++)n[o]=n[o].trim().replace(/\\\|/g,"|");return n}function Cu(e,t,r){const n=e.length;if(n===0)return"";let o=0;for(;o<n;){const i=e.charAt(n-o-1);if(i===t&&!r)o++;else if(i!==t&&r)o++;else break}return e.slice(0,n-o)}function rle(e,t){if(e.indexOf(t[1])===-1)return-1;const r=e.length;let n=0,o=0;for(;o<r;o++)if(e[o]==="\\")o++;else if(e[o]===t[0])n++;else if(e[o]===t[1]&&(n--,n<0))return o;return-1}function nle(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function NC(e,t){if(t<1)return"";let r="";for(;t>1;)t&1&&(r+=e),t>>=1,e+=e;return r+e}function HC(e,t,r,n){const o=t.href,i=t.title?Br(t.title):null,a=e[1].replace(/\\([\[\]])/g,"$1");if(e[0].charAt(0)!=="!"){n.state.inLink=!0;const s={type:"link",raw:r,href:o,title:i,text:a,tokens:n.inlineTokens(a)};return n.state.inLink=!1,s}return{type:"image",raw:r,href:o,title:i,text:Br(a)}}function ole(e,t){const r=e.match(/^(\s+)(?:```)/);if(r===null)return t;const n=r[1];return t.split(`
|
||
`).map(o=>{const i=o.match(/^\s+/);if(i===null)return o;const[a]=i;return a.length>=n.length?o.slice(n.length):o}).join(`
|
||
`)}class Fm{constructor(t){this.options=t||la}space(t){const r=this.rules.block.newline.exec(t);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(t){const r=this.rules.block.code.exec(t);if(r){const n=r[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?n:Cu(n,`
|
||
`)}}}fences(t){const r=this.rules.block.fences.exec(t);if(r){const n=r[0],o=ole(n,r[3]||"");return{type:"code",raw:n,lang:r[2]?r[2].trim().replace(this.rules.inline._escapes,"$1"):r[2],text:o}}}heading(t){const r=this.rules.block.heading.exec(t);if(r){let n=r[2].trim();if(/#$/.test(n)){const o=Cu(n,"#");(this.options.pedantic||!o||/ $/.test(o))&&(n=o.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(t){const r=this.rules.block.hr.exec(t);if(r)return{type:"hr",raw:r[0]}}blockquote(t){const r=this.rules.block.blockquote.exec(t);if(r){const n=r[0].replace(/^ *>[ \t]?/gm,""),o=this.lexer.state.top;this.lexer.state.top=!0;const i=this.lexer.blockTokens(n);return this.lexer.state.top=o,{type:"blockquote",raw:r[0],tokens:i,text:n}}}list(t){let r=this.rules.block.list.exec(t);if(r){let n,o,i,a,s,l,c,u,d,f,p,h,g=r[1].trim();const v=g.length>1,m={type:"list",raw:"",ordered:v,start:v?+g.slice(0,-1):"",loose:!1,items:[]};g=v?`\\d{1,9}\\${g.slice(-1)}`:`\\${g}`,this.options.pedantic&&(g=v?g:"[*+-]");const b=new RegExp(`^( {0,3}${g})((?:[ ][^\\n]*)?(?:\\n|$))`);for(;t&&(h=!1,!(!(r=b.exec(t))||this.rules.block.hr.test(t)));){if(n=r[0],t=t.substring(n.length),u=r[2].split(`
|
||
`,1)[0].replace(/^\t+/,y=>" ".repeat(3*y.length)),d=t.split(`
|
||
`,1)[0],this.options.pedantic?(a=2,p=u.trimLeft()):(a=r[2].search(/[^ ]/),a=a>4?1:a,p=u.slice(a),a+=r[1].length),l=!1,!u&&/^ *$/.test(d)&&(n+=d+`
|
||
`,t=t.substring(d.length+1),h=!0),!h){const y=new RegExp(`^ {0,${Math.min(3,a-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),w=new RegExp(`^ {0,${Math.min(3,a-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),C=new RegExp(`^ {0,${Math.min(3,a-1)}}(?:\`\`\`|~~~)`),S=new RegExp(`^ {0,${Math.min(3,a-1)}}#`);for(;t&&(f=t.split(`
|
||
`,1)[0],d=f,this.options.pedantic&&(d=d.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(C.test(d)||S.test(d)||y.test(d)||w.test(t)));){if(d.search(/[^ ]/)>=a||!d.trim())p+=`
|
||
`+d.slice(a);else{if(l||u.search(/[^ ]/)>=4||C.test(u)||S.test(u)||w.test(u))break;p+=`
|
||
`+d}!l&&!d.trim()&&(l=!0),n+=f+`
|
||
`,t=t.substring(f.length+1),u=d.slice(a)}}m.loose||(c?m.loose=!0:/\n *\n *$/.test(n)&&(c=!0)),this.options.gfm&&(o=/^\[[ xX]\] /.exec(p),o&&(i=o[0]!=="[ ] ",p=p.replace(/^\[[ xX]\] +/,""))),m.items.push({type:"list_item",raw:n,task:!!o,checked:i,loose:!1,text:p}),m.raw+=n}m.items[m.items.length-1].raw=n.trimRight(),m.items[m.items.length-1].text=p.trimRight(),m.raw=m.raw.trimRight();const x=m.items.length;for(s=0;s<x;s++)if(this.lexer.state.top=!1,m.items[s].tokens=this.lexer.blockTokens(m.items[s].text,[]),!m.loose){const y=m.items[s].tokens.filter(C=>C.type==="space"),w=y.length>0&&y.some(C=>/\n.*\n/.test(C.raw));m.loose=w}if(m.loose)for(s=0;s<x;s++)m.items[s].loose=!0;return m}}html(t){const r=this.rules.block.html.exec(t);if(r){const n={type:"html",raw:r[0],pre:!this.options.sanitizer&&(r[1]==="pre"||r[1]==="script"||r[1]==="style"),text:r[0]};if(this.options.sanitize){const o=this.options.sanitizer?this.options.sanitizer(r[0]):Br(r[0]);n.type="paragraph",n.text=o,n.tokens=this.lexer.inline(o)}return n}}def(t){const r=this.rules.block.def.exec(t);if(r){const n=r[1].toLowerCase().replace(/\s+/g," "),o=r[2]?r[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",i=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline._escapes,"$1"):r[3];return{type:"def",tag:n,raw:r[0],href:o,title:i}}}table(t){const r=this.rules.block.table.exec(t);if(r){const n={type:"table",header:zC(r[1]).map(o=>({text:o})),align:r[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:r[3]&&r[3].trim()?r[3].replace(/\n[ \t]*$/,"").split(`
|
||
`):[]};if(n.header.length===n.align.length){n.raw=r[0];let o=n.align.length,i,a,s,l;for(i=0;i<o;i++)/^ *-+: *$/.test(n.align[i])?n.align[i]="right":/^ *:-+: *$/.test(n.align[i])?n.align[i]="center":/^ *:-+ *$/.test(n.align[i])?n.align[i]="left":n.align[i]=null;for(o=n.rows.length,i=0;i<o;i++)n.rows[i]=zC(n.rows[i],n.header.length).map(c=>({text:c}));for(o=n.header.length,a=0;a<o;a++)n.header[a].tokens=this.lexer.inline(n.header[a].text);for(o=n.rows.length,a=0;a<o;a++)for(l=n.rows[a],s=0;s<l.length;s++)l[s].tokens=this.lexer.inline(l[s].text);return n}}}lheading(t){const r=this.rules.block.lheading.exec(t);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(t){const r=this.rules.block.paragraph.exec(t);if(r){const n=r[1].charAt(r[1].length-1)===`
|
||
`?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:n,tokens:this.lexer.inline(n)}}}text(t){const r=this.rules.block.text.exec(t);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(t){const r=this.rules.inline.escape.exec(t);if(r)return{type:"escape",raw:r[0],text:Br(r[1])}}tag(t){const r=this.rules.inline.tag.exec(t);if(r)return!this.lexer.state.inLink&&/^<a /i.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):Br(r[0]):r[0]}}link(t){const r=this.rules.inline.link.exec(t);if(r){const n=r[2].trim();if(!this.options.pedantic&&/^</.test(n)){if(!/>$/.test(n))return;const a=Cu(n.slice(0,-1),"\\");if((n.length-a.length)%2===0)return}else{const a=rle(r[2],"()");if(a>-1){const l=(r[0].indexOf("!")===0?5:4)+r[1].length+a;r[2]=r[2].substring(0,a),r[0]=r[0].substring(0,l).trim(),r[3]=""}}let o=r[2],i="";if(this.options.pedantic){const a=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(o);a&&(o=a[1],i=a[3])}else i=r[3]?r[3].slice(1,-1):"";return o=o.trim(),/^</.test(o)&&(this.options.pedantic&&!/>$/.test(n)?o=o.slice(1):o=o.slice(1,-1)),HC(r,{href:o&&o.replace(this.rules.inline._escapes,"$1"),title:i&&i.replace(this.rules.inline._escapes,"$1")},r[0],this.lexer)}}reflink(t,r){let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){let o=(n[2]||n[1]).replace(/\s+/g," ");if(o=r[o.toLowerCase()],!o){const i=n[0].charAt(0);return{type:"text",raw:i,text:i}}return HC(n,o,n[0],this.lexer)}}emStrong(t,r,n=""){let o=this.rules.inline.emStrong.lDelim.exec(t);if(!o||o[3]&&n.match(/[\p{L}\p{N}]/u))return;const i=o[1]||o[2]||"";if(!i||i&&(n===""||this.rules.inline.punctuation.exec(n))){const a=o[0].length-1;let s,l,c=a,u=0;const d=o[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(d.lastIndex=0,r=r.slice(-1*t.length+a);(o=d.exec(r))!=null;){if(s=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!s)continue;if(l=s.length,o[3]||o[4]){c+=l;continue}else if((o[5]||o[6])&&a%3&&!((a+l)%3)){u+=l;continue}if(c-=l,c>0)continue;l=Math.min(l,l+c+u);const f=t.slice(0,a+o.index+(o[0].length-s.length)+l);if(Math.min(a,l)%2){const h=f.slice(1,-1);return{type:"em",raw:f,text:h,tokens:this.lexer.inlineTokens(h)}}const p=f.slice(2,-2);return{type:"strong",raw:f,text:p,tokens:this.lexer.inlineTokens(p)}}}}codespan(t){const r=this.rules.inline.code.exec(t);if(r){let n=r[2].replace(/\n/g," ");const o=/[^ ]/.test(n),i=/^ /.test(n)&&/ $/.test(n);return o&&i&&(n=n.substring(1,n.length-1)),n=Br(n,!0),{type:"codespan",raw:r[0],text:n}}}br(t){const r=this.rules.inline.br.exec(t);if(r)return{type:"br",raw:r[0]}}del(t){const r=this.rules.inline.del.exec(t);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(t,r){const n=this.rules.inline.autolink.exec(t);if(n){let o,i;return n[2]==="@"?(o=Br(this.options.mangle?r(n[1]):n[1]),i="mailto:"+o):(o=Br(n[1]),i=o),{type:"link",raw:n[0],text:o,href:i,tokens:[{type:"text",raw:o,text:o}]}}}url(t,r){let n;if(n=this.rules.inline.url.exec(t)){let o,i;if(n[2]==="@")o=Br(this.options.mangle?r(n[0]):n[0]),i="mailto:"+o;else{let a;do a=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0];while(a!==n[0]);o=Br(n[0]),n[1]==="www."?i="http://"+n[0]:i=n[0]}return{type:"link",raw:n[0],text:o,href:i,tokens:[{type:"text",raw:o,text:o}]}}}inlineText(t,r){const n=this.rules.inline.text.exec(t);if(n){let o;return this.lexer.state.inRawBlock?o=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):Br(n[0]):n[0]:o=Br(this.options.smartypants?r(n[0]):n[0]),{type:"text",raw:n[0],text:o}}}}const Ve={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:rd,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};Ve._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/;Ve._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;Ve.def=Bt(Ve.def).replace("label",Ve._label).replace("title",Ve._title).getRegex();Ve.bullet=/(?:[*+-]|\d{1,9}[.)])/;Ve.listItemStart=Bt(/^( *)(bull) */).replace("bull",Ve.bullet).getRegex();Ve.list=Bt(Ve.list).replace(/bull/g,Ve.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Ve.def.source+")").getRegex();Ve._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";Ve._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/;Ve.html=Bt(Ve.html,"i").replace("comment",Ve._comment).replace("tag",Ve._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();Ve.paragraph=Bt(Ve._paragraph).replace("hr",Ve.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ve._tag).getRegex();Ve.blockquote=Bt(Ve.blockquote).replace("paragraph",Ve.paragraph).getRegex();Ve.normal={...Ve};Ve.gfm={...Ve.normal,table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"};Ve.gfm.table=Bt(Ve.gfm.table).replace("hr",Ve.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ve._tag).getRegex();Ve.gfm.paragraph=Bt(Ve._paragraph).replace("hr",Ve.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",Ve.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ve._tag).getRegex();Ve.pedantic={...Ve.normal,html:Bt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Ve._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:rd,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Bt(Ve.normal._paragraph).replace("hr",Ve.hr).replace("heading",` *#{1,6} *[^
|
||
]`).replace("lheading",Ve.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const Le={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:rd,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:rd,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};Le._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~";Le.punctuation=Bt(Le.punctuation).replace(/punctuation/g,Le._punctuation).getRegex();Le.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g;Le.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g;Le._comment=Bt(Ve._comment).replace("(?:-->|$)","-->").getRegex();Le.emStrong.lDelim=Bt(Le.emStrong.lDelim).replace(/punct/g,Le._punctuation).getRegex();Le.emStrong.rDelimAst=Bt(Le.emStrong.rDelimAst,"g").replace(/punct/g,Le._punctuation).getRegex();Le.emStrong.rDelimUnd=Bt(Le.emStrong.rDelimUnd,"g").replace(/punct/g,Le._punctuation).getRegex();Le._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g;Le._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;Le._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/;Le.autolink=Bt(Le.autolink).replace("scheme",Le._scheme).replace("email",Le._email).getRegex();Le._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;Le.tag=Bt(Le.tag).replace("comment",Le._comment).replace("attribute",Le._attribute).getRegex();Le._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;Le._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;Le._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;Le.link=Bt(Le.link).replace("label",Le._label).replace("href",Le._href).replace("title",Le._title).getRegex();Le.reflink=Bt(Le.reflink).replace("label",Le._label).replace("ref",Ve._label).getRegex();Le.nolink=Bt(Le.nolink).replace("ref",Ve._label).getRegex();Le.reflinkSearch=Bt(Le.reflinkSearch,"g").replace("reflink",Le.reflink).replace("nolink",Le.nolink).getRegex();Le.normal={...Le};Le.pedantic={...Le.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:Bt(/^!?\[(label)\]\((.*?)\)/).replace("label",Le._label).getRegex(),reflink:Bt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Le._label).getRegex()};Le.gfm={...Le.normal,escape:Bt(Le.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/};Le.gfm.url=Bt(Le.gfm.url,"i").replace("email",Le.gfm._extended_email).getRegex();Le.breaks={...Le.gfm,br:Bt(Le.br).replace("{2,}","*").getRegex(),text:Bt(Le.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()};function ile(e){return e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function jC(e){let t="",r,n;const o=e.length;for(r=0;r<o;r++)n=e.charCodeAt(r),Math.random()>.5&&(n="x"+n.toString(16)),t+="&#"+n+";";return t}class ti{constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||la,this.options.tokenizer=this.options.tokenizer||new Fm,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const r={block:Ve.normal,inline:Le.normal};this.options.pedantic?(r.block=Ve.pedantic,r.inline=Le.pedantic):this.options.gfm&&(r.block=Ve.gfm,this.options.breaks?r.inline=Le.breaks:r.inline=Le.gfm),this.tokenizer.rules=r}static get rules(){return{block:Ve,inline:Le}}static lex(t,r){return new ti(r).lex(t)}static lexInline(t,r){return new ti(r).inlineTokens(t)}lex(t){t=t.replace(/\r\n|\r/g,`
|
||
`),this.blockTokens(t,this.tokens);let r;for(;r=this.inlineQueue.shift();)this.inlineTokens(r.src,r.tokens);return this.tokens}blockTokens(t,r=[]){this.options.pedantic?t=t.replace(/\t/g," ").replace(/^ +$/gm,""):t=t.replace(/^( *)(\t+)/gm,(s,l,c)=>l+" ".repeat(c.length));let n,o,i,a;for(;t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(s=>(n=s.call({lexer:this},t,r))?(t=t.substring(n.raw.length),r.push(n),!0):!1))){if(n=this.tokenizer.space(t)){t=t.substring(n.raw.length),n.raw.length===1&&r.length>0?r[r.length-1].raw+=`
|
||
`:r.push(n);continue}if(n=this.tokenizer.code(t)){t=t.substring(n.raw.length),o=r[r.length-1],o&&(o.type==="paragraph"||o.type==="text")?(o.raw+=`
|
||
`+n.raw,o.text+=`
|
||
`+n.text,this.inlineQueue[this.inlineQueue.length-1].src=o.text):r.push(n);continue}if(n=this.tokenizer.fences(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.heading(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.hr(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.blockquote(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.list(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.html(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.def(t)){t=t.substring(n.raw.length),o=r[r.length-1],o&&(o.type==="paragraph"||o.type==="text")?(o.raw+=`
|
||
`+n.raw,o.text+=`
|
||
`+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=o.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title});continue}if(n=this.tokenizer.table(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.lheading(t)){t=t.substring(n.raw.length),r.push(n);continue}if(i=t,this.options.extensions&&this.options.extensions.startBlock){let s=1/0;const l=t.slice(1);let c;this.options.extensions.startBlock.forEach(function(u){c=u.call({lexer:this},l),typeof c=="number"&&c>=0&&(s=Math.min(s,c))}),s<1/0&&s>=0&&(i=t.substring(0,s+1))}if(this.state.top&&(n=this.tokenizer.paragraph(i))){o=r[r.length-1],a&&o.type==="paragraph"?(o.raw+=`
|
||
`+n.raw,o.text+=`
|
||
`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):r.push(n),a=i.length!==t.length,t=t.substring(n.raw.length);continue}if(n=this.tokenizer.text(t)){t=t.substring(n.raw.length),o=r[r.length-1],o&&o.type==="text"?(o.raw+=`
|
||
`+n.raw,o.text+=`
|
||
`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):r.push(n);continue}if(t){const s="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(s);break}else throw new Error(s)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){let n,o,i,a=t,s,l,c;if(this.tokens.links){const u=Object.keys(this.tokens.links);if(u.length>0)for(;(s=this.tokenizer.rules.inline.reflinkSearch.exec(a))!=null;)u.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,s.index)+"["+NC("a",s[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(s=this.tokenizer.rules.inline.blockSkip.exec(a))!=null;)a=a.slice(0,s.index)+"["+NC("a",s[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(s=this.tokenizer.rules.inline.escapedEmSt.exec(a))!=null;)a=a.slice(0,s.index+s[0].length-2)+"++"+a.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;t;)if(l||(c=""),l=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(u=>(n=u.call({lexer:this},t,r))?(t=t.substring(n.raw.length),r.push(n),!0):!1))){if(n=this.tokenizer.escape(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.tag(t)){t=t.substring(n.raw.length),o=r[r.length-1],o&&n.type==="text"&&o.type==="text"?(o.raw+=n.raw,o.text+=n.text):r.push(n);continue}if(n=this.tokenizer.link(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(n.raw.length),o=r[r.length-1],o&&n.type==="text"&&o.type==="text"?(o.raw+=n.raw,o.text+=n.text):r.push(n);continue}if(n=this.tokenizer.emStrong(t,a,c)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.codespan(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.br(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.del(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.autolink(t,jC)){t=t.substring(n.raw.length),r.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(t,jC))){t=t.substring(n.raw.length),r.push(n);continue}if(i=t,this.options.extensions&&this.options.extensions.startInline){let u=1/0;const d=t.slice(1);let f;this.options.extensions.startInline.forEach(function(p){f=p.call({lexer:this},d),typeof f=="number"&&f>=0&&(u=Math.min(u,f))}),u<1/0&&u>=0&&(i=t.substring(0,u+1))}if(n=this.tokenizer.inlineText(i,ile)){t=t.substring(n.raw.length),n.raw.slice(-1)!=="_"&&(c=n.raw.slice(-1)),l=!0,o=r[r.length-1],o&&o.type==="text"?(o.raw+=n.raw,o.text+=n.text):r.push(n);continue}if(t){const u="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(u);break}else throw new Error(u)}}return r}}class Mm{constructor(t){this.options=t||la}code(t,r,n){const o=(r||"").match(/\S*/)[0];if(this.options.highlight){const i=this.options.highlight(t,o);i!=null&&i!==t&&(n=!0,t=i)}return t=t.replace(/\n$/,"")+`
|
||
`,o?'<pre><code class="'+this.options.langPrefix+Br(o)+'">'+(n?t:Br(t,!0))+`</code></pre>
|
||
`:"<pre><code>"+(n?t:Br(t,!0))+`</code></pre>
|
||
`}blockquote(t){return`<blockquote>
|
||
${t}</blockquote>
|
||
`}html(t){return t}heading(t,r,n,o){if(this.options.headerIds){const i=this.options.headerPrefix+o.slug(n);return`<h${r} id="${i}">${t}</h${r}>
|
||
`}return`<h${r}>${t}</h${r}>
|
||
`}hr(){return this.options.xhtml?`<hr/>
|
||
`:`<hr>
|
||
`}list(t,r,n){const o=r?"ol":"ul",i=r&&n!==1?' start="'+n+'"':"";return"<"+o+i+`>
|
||
`+t+"</"+o+`>
|
||
`}listitem(t){return`<li>${t}</li>
|
||
`}checkbox(t){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(t){return`<p>${t}</p>
|
||
`}table(t,r){return r&&(r=`<tbody>${r}</tbody>`),`<table>
|
||
<thead>
|
||
`+t+`</thead>
|
||
`+r+`</table>
|
||
`}tablerow(t){return`<tr>
|
||
${t}</tr>
|
||
`}tablecell(t,r){const n=r.header?"th":"td";return(r.align?`<${n} align="${r.align}">`:`<${n}>`)+t+`</${n}>
|
||
`}strong(t){return`<strong>${t}</strong>`}em(t){return`<em>${t}</em>`}codespan(t){return`<code>${t}</code>`}br(){return this.options.xhtml?"<br/>":"<br>"}del(t){return`<del>${t}</del>`}link(t,r,n){if(t=MC(this.options.sanitize,this.options.baseUrl,t),t===null)return n;let o='<a href="'+t+'"';return r&&(o+=' title="'+r+'"'),o+=">"+n+"</a>",o}image(t,r,n){if(t=MC(this.options.sanitize,this.options.baseUrl,t),t===null)return n;let o=`<img src="${t}" alt="${n}"`;return r&&(o+=` title="${r}"`),o+=this.options.xhtml?"/>":">",o}text(t){return t}}class N5{strong(t){return t}em(t){return t}codespan(t){return t}del(t){return t}html(t){return t}text(t){return t}link(t,r,n){return""+n}image(t,r,n){return""+n}br(){return""}}class H5{constructor(){this.seen={}}serialize(t){return t.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(t,r){let n=t,o=0;if(this.seen.hasOwnProperty(n)){o=this.seen[t];do o++,n=t+"-"+o;while(this.seen.hasOwnProperty(n))}return r||(this.seen[t]=o,this.seen[n]=0),n}slug(t,r={}){const n=this.serialize(t);return this.getNextSafeSlug(n,r.dryrun)}}class ri{constructor(t){this.options=t||la,this.options.renderer=this.options.renderer||new Mm,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new N5,this.slugger=new H5}static parse(t,r){return new ri(r).parse(t)}static parseInline(t,r){return new ri(r).parseInline(t)}parse(t,r=!0){let n="",o,i,a,s,l,c,u,d,f,p,h,g,v,m,b,x,y,w,C;const S=t.length;for(o=0;o<S;o++){if(p=t[o],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[p.type]&&(C=this.options.extensions.renderers[p.type].call({parser:this},p),C!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(p.type))){n+=C||"";continue}switch(p.type){case"space":continue;case"hr":{n+=this.renderer.hr();continue}case"heading":{n+=this.renderer.heading(this.parseInline(p.tokens),p.depth,z5(this.parseInline(p.tokens,this.textRenderer)),this.slugger);continue}case"code":{n+=this.renderer.code(p.text,p.lang,p.escaped);continue}case"table":{for(d="",u="",s=p.header.length,i=0;i<s;i++)u+=this.renderer.tablecell(this.parseInline(p.header[i].tokens),{header:!0,align:p.align[i]});for(d+=this.renderer.tablerow(u),f="",s=p.rows.length,i=0;i<s;i++){for(c=p.rows[i],u="",l=c.length,a=0;a<l;a++)u+=this.renderer.tablecell(this.parseInline(c[a].tokens),{header:!1,align:p.align[a]});f+=this.renderer.tablerow(u)}n+=this.renderer.table(d,f);continue}case"blockquote":{f=this.parse(p.tokens),n+=this.renderer.blockquote(f);continue}case"list":{for(h=p.ordered,g=p.start,v=p.loose,s=p.items.length,f="",i=0;i<s;i++)b=p.items[i],x=b.checked,y=b.task,m="",b.task&&(w=this.renderer.checkbox(x),v?b.tokens.length>0&&b.tokens[0].type==="paragraph"?(b.tokens[0].text=w+" "+b.tokens[0].text,b.tokens[0].tokens&&b.tokens[0].tokens.length>0&&b.tokens[0].tokens[0].type==="text"&&(b.tokens[0].tokens[0].text=w+" "+b.tokens[0].tokens[0].text)):b.tokens.unshift({type:"text",text:w}):m+=w),m+=this.parse(b.tokens,v),f+=this.renderer.listitem(m,y,x);n+=this.renderer.list(f,h,g);continue}case"html":{n+=this.renderer.html(p.text);continue}case"paragraph":{n+=this.renderer.paragraph(this.parseInline(p.tokens));continue}case"text":{for(f=p.tokens?this.parseInline(p.tokens):p.text;o+1<S&&t[o+1].type==="text";)p=t[++o],f+=`
|
||
`+(p.tokens?this.parseInline(p.tokens):p.text);n+=r?this.renderer.paragraph(f):f;continue}default:{const T='Token with "'+p.type+'" type was not found.';if(this.options.silent){console.error(T);return}else throw new Error(T)}}}return n}parseInline(t,r){r=r||this.renderer;let n="",o,i,a;const s=t.length;for(o=0;o<s;o++){if(i=t[o],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[i.type]&&(a=this.options.extensions.renderers[i.type].call({parser:this},i),a!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type))){n+=a||"";continue}switch(i.type){case"escape":{n+=r.text(i.text);break}case"html":{n+=r.html(i.text);break}case"link":{n+=r.link(i.href,i.title,this.parseInline(i.tokens,r));break}case"image":{n+=r.image(i.href,i.title,i.text);break}case"strong":{n+=r.strong(this.parseInline(i.tokens,r));break}case"em":{n+=r.em(this.parseInline(i.tokens,r));break}case"codespan":{n+=r.codespan(i.text);break}case"br":{n+=r.br();break}case"del":{n+=r.del(this.parseInline(i.tokens,r));break}case"text":{n+=r.text(i.text);break}default:{const l='Token with "'+i.type+'" type was not found.';if(this.options.silent){console.error(l);return}else throw new Error(l)}}}return n}}class nd{constructor(t){this.options=t||la}preprocess(t){return t}postprocess(t){return t}}Xm(nd,"passThroughHooks",new Set(["preprocess","postprocess"]));function ale(e,t,r){return n=>{if(n.message+=`
|
||
Please report this to https://github.com/markedjs/marked.`,e){const o="<p>An error occurred:</p><pre>"+Br(n.message+"",!0)+"</pre>";if(t)return Promise.resolve(o);if(r){r(null,o);return}return o}if(t)return Promise.reject(n);if(r){r(n);return}throw n}}function j5(e,t){return(r,n,o)=>{typeof n=="function"&&(o=n,n=null);const i={...n};n={...Ge.defaults,...i};const a=ale(n.silent,n.async,o);if(typeof r>"u"||r===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(nle(n),n.hooks&&(n.hooks.options=n),o){const s=n.highlight;let l;try{n.hooks&&(r=n.hooks.preprocess(r)),l=e(r,n)}catch(d){return a(d)}const c=function(d){let f;if(!d)try{n.walkTokens&&Ge.walkTokens(l,n.walkTokens),f=t(l,n),n.hooks&&(f=n.hooks.postprocess(f))}catch(p){d=p}return n.highlight=s,d?a(d):o(null,f)};if(!s||s.length<3||(delete n.highlight,!l.length))return c();let u=0;Ge.walkTokens(l,function(d){d.type==="code"&&(u++,setTimeout(()=>{s(d.text,d.lang,function(f,p){if(f)return c(f);p!=null&&p!==d.text&&(d.text=p,d.escaped=!0),u--,u===0&&c()})},0))}),u===0&&c();return}if(n.async)return Promise.resolve(n.hooks?n.hooks.preprocess(r):r).then(s=>e(s,n)).then(s=>n.walkTokens?Promise.all(Ge.walkTokens(s,n.walkTokens)).then(()=>s):s).then(s=>t(s,n)).then(s=>n.hooks?n.hooks.postprocess(s):s).catch(a);try{n.hooks&&(r=n.hooks.preprocess(r));const s=e(r,n);n.walkTokens&&Ge.walkTokens(s,n.walkTokens);let l=t(s,n);return n.hooks&&(l=n.hooks.postprocess(l)),l}catch(s){return a(s)}}}function Ge(e,t,r){return j5(ti.lex,ri.parse)(e,t,r)}Ge.options=Ge.setOptions=function(e){return Ge.defaults={...Ge.defaults,...e},Use(Ge.defaults),Ge};Ge.getDefaults=L5;Ge.defaults=la;Ge.use=function(...e){const t=Ge.defaults.extensions||{renderers:{},childTokens:{}};e.forEach(r=>{const n={...r};if(n.async=Ge.defaults.async||n.async||!1,r.extensions&&(r.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if(o.renderer){const i=t.renderers[o.name];i?t.renderers[o.name]=function(...a){let s=o.renderer.apply(this,a);return s===!1&&(s=i.apply(this,a)),s}:t.renderers[o.name]=o.renderer}if(o.tokenizer){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");t[o.level]?t[o.level].unshift(o.tokenizer):t[o.level]=[o.tokenizer],o.start&&(o.level==="block"?t.startBlock?t.startBlock.push(o.start):t.startBlock=[o.start]:o.level==="inline"&&(t.startInline?t.startInline.push(o.start):t.startInline=[o.start]))}o.childTokens&&(t.childTokens[o.name]=o.childTokens)}),n.extensions=t),r.renderer){const o=Ge.defaults.renderer||new Mm;for(const i in r.renderer){const a=o[i];o[i]=(...s)=>{let l=r.renderer[i].apply(o,s);return l===!1&&(l=a.apply(o,s)),l}}n.renderer=o}if(r.tokenizer){const o=Ge.defaults.tokenizer||new Fm;for(const i in r.tokenizer){const a=o[i];o[i]=(...s)=>{let l=r.tokenizer[i].apply(o,s);return l===!1&&(l=a.apply(o,s)),l}}n.tokenizer=o}if(r.hooks){const o=Ge.defaults.hooks||new nd;for(const i in r.hooks){const a=o[i];nd.passThroughHooks.has(i)?o[i]=s=>{if(Ge.defaults.async)return Promise.resolve(r.hooks[i].call(o,s)).then(c=>a.call(o,c));const l=r.hooks[i].call(o,s);return a.call(o,l)}:o[i]=(...s)=>{let l=r.hooks[i].apply(o,s);return l===!1&&(l=a.apply(o,s)),l}}n.hooks=o}if(r.walkTokens){const o=Ge.defaults.walkTokens;n.walkTokens=function(i){let a=[];return a.push(r.walkTokens.call(this,i)),o&&(a=a.concat(o.call(this,i))),a}}Ge.setOptions(n)})};Ge.walkTokens=function(e,t){let r=[];for(const n of e)switch(r=r.concat(t.call(Ge,n)),n.type){case"table":{for(const o of n.header)r=r.concat(Ge.walkTokens(o.tokens,t));for(const o of n.rows)for(const i of o)r=r.concat(Ge.walkTokens(i.tokens,t));break}case"list":{r=r.concat(Ge.walkTokens(n.items,t));break}default:Ge.defaults.extensions&&Ge.defaults.extensions.childTokens&&Ge.defaults.extensions.childTokens[n.type]?Ge.defaults.extensions.childTokens[n.type].forEach(function(o){r=r.concat(Ge.walkTokens(n[o],t))}):n.tokens&&(r=r.concat(Ge.walkTokens(n.tokens,t)))}return r};Ge.parseInline=j5(ti.lexInline,ri.parseInline);Ge.Parser=ri;Ge.parser=ri.parse;Ge.Renderer=Mm;Ge.TextRenderer=N5;Ge.Lexer=ti;Ge.lexer=ti.lex;Ge.Tokenizer=Fm;Ge.Slugger=H5;Ge.Hooks=nd;Ge.parse=Ge;Ge.options;Ge.setOptions;Ge.use;Ge.walkTokens;Ge.parseInline;ri.parse;ti.lex;function sle(){return Dt({url:"/config/notice"})}const lle={key:0,class:"px-[20px]"},cle={key:1,class:"text-xl"},ule={key:0,class:"px-[20px]"},dle=["innerHTML"],fle={class:"flex justify-end py-3 px-5"},hle=me({__name:"NoticeDialog",props:{visible:{type:Boolean}},setup(e){const t=z({noticeInfo:"",noticeTitle:""}),r=ii(),n=ai(),o=z(!0),i=R(()=>r.theme==="dark"),{isSmallLg:a}=yo(),s=R(()=>r.theme),l=R(()=>t.value.noticeInfo?Ge(t.value.noticeInfo):"");function c(){o.value=!0}function u(){n.updateNoticeDialog(!1)}async function d(){const h=await sle(),{success:g,data:v}=h;g&&(t.value=v)}async function f(){await d(),o.value=!1}function p(){n.updateNoticeDialog(!1),Nt.set("showNotice",Date.now()+24*60*60*1e3)}return(h,g)=>(ge(),We(W(oa),{show:h.visible,class:"p-0 noticeDialog",style:Bn({maxWidth:"780px",minWidth:W(a)?"100%":"780px"}),"on-after-enter":f,"on-after-leave":c},{default:de(()=>[te(W(Md),{vertical:""},{default:de(()=>[te(W(Od),{closable:"",onClose:u},{header:de(()=>[o.value?(ge(),je("div",lle,[te(W(Vi),{text:"",width:"30%"})])):(ge(),je("span",cle,Qt(t.value.noticeTitle),1))]),default:de(()=>[o.value?(ge(),je("div",ule,[te(W(Vi),{text:"",repeat:10})])):(ge(),je("div",{key:1,class:Jt([[i.value?"text-[#fff]":"text-[#000]","pb-5"],"p-[20px] markdown-body markdown-body-generate max-h-[500px] overflow-y-auto overflow-x-hidden"]),style:Bn({background:s.value==="dark"?"#2c2c32":"#fff"}),innerHTML:l.value},null,14,dle)),ve("div",fle,[te(W(qt),{type:"primary",onClick:p},{default:de(()=>[tt(" 24小时不再提示 ")]),_:1})])]),_:1})]),_:1})]),_:1},8,["show","style"]))}});const ple=$m(hle,[["__scopeId","data-v-b1715582"]]),gle={class:"p-5 bg-white rounded dark:bg-slate-800"},mle={class:"flex text-xl font-bold mb-[20px] bg-currentflex items-center"},vle=ve("span",{class:"ml-[8px]"},"绑定微信账户",-1),ble={style:{"white-space":"nowrap"},class:"w-full text-center font-bold text-sm py-5"},xle={class:"w-[55px] inline-block text-[red] text-left"},yle={class:"my-2 flex justify-center relative"},Cle=ve("span",{class:"flex items-center justify-center text-base py-5"}," 打开微信扫码绑定账户 ",-1),wle=me({__name:"BindWx",props:{visible:{type:Boolean}},setup(e){const t=ai();let r;const n=z(),o=Tr(),i=z(!1),a=z(""),s=z(""),l=Sn();async function c(){const g=await Ioe();g.success&&(s.value=g.data,u())}async function u(){const g=await m5({sceneStr:s.value});g.success&&(i.value=!0,a.value=g.data,r=setInterval(()=>{d()},1e3))}async function d(){if(!s.value)return;const g=await Boe({sceneStr:s.value});if(g.data){clearInterval(r);const{status:v,msg:m}=g.data;v?l.success(m):l.error(m),o.getUserInfo(),t.updateBindwxDialog(!1)}}function f(){var g;clearInterval(r),c(),(g=n.value)==null||g.reset()}function p(){c()}function h(){clearInterval(r),a.value="",s.value="",i.value=!1}return(g,v)=>(ge(),We(W(oa),{show:g.visible,style:{width:"90%","max-width":"700px"},"on-after-enter":p,"on-after-leave":h},{default:de(()=>[ve("div",gle,[ve("div",{class:"absolute top-3 right-3 cursor-pointer",onClick:v[0]||(v[0]=m=>W(t).updateBindwxDialog(!1))},[te(W(Ui),{size:"20",color:"#0e7a0d"},{default:de(()=>[te(W(uf))]),_:1})]),ve("div",mle,[te(W(Ui),{size:"25",color:"#0e7a0d"},{default:de(()=>[te(W(v5))]),_:1}),vle]),ve("div",null,[ve("div",ble,[ve("p",null,[tt(" 请在 "),ve("span",xle,[te(W(Hg),{ref_key:"countdownRef",ref:n,active:i.value,duration:120*1e3,"on-finish":f},null,8,["active"])]),tt(" 时间内完成绑定 ")])]),ve("div",yle,[a.value?(ge(),We(W(iE),{key:0,"preview-disabled":"",width:"230",src:a.value},null,8,["src"])):(ge(),We(W(Vi),{key:1,height:"230px",width:"230px"})),a.value?Fe("",!0):(ge(),We(W(Nd),{key:2,size:"large",class:"absolute left-1/2 top-1/2 transform -translate-x-1/2 -translate-y-1/2"}))]),Cle])])]),_:1},8,["show"]))}});function Sle(){return mt({url:"/signin/sign"})}function _le(){return Dt({url:"/signin/signinLog"})}const Ele={class:"text-base"},Tle={class:"text-[red]"},kle={key:0},Ale={class:"text-[red]"},Ple={key:1},$le={class:"ml-2 text-[red]"},Ile={key:2},Ble={class:"ml-2 text-[red]"},Dle={key:0,class:"flex items-center w-full mt-2"},Ole={key:0,class:"ml-2 text-xs"},Rle={key:0,class:"flex mt-3 w-full mt-14"},Lle={key:1,class:"flex mt-8 w-full mt-14"},Fle=me({__name:"SignInDialog",props:{visible:{type:Boolean}},setup(e){const t=Tr(),r=ai(),n=z(!1),{isMobile:o}=yo(),i=z([]),a=Sn(),{isSmallLg:s}=yo(),l=void 0,c=z(!1);function u(){n.value=!1}function d(){r.updateSignInDialog(!1)}function f(C){return!cM(C)}const p=R(()=>t.userInfo.consecutiveDays),h=R(()=>{var C;return Number((C=t.globalConfig)==null?void 0:C.signInModel3Count)||0}),g=R(()=>{var C;return Number((C=t.globalConfig)==null?void 0:C.signInModel4Count)||0}),v=R(()=>{var C;return Number((C=t.globalConfig)==null?void 0:C.signInMjDrawToken)||0});function m(C,S){if(!i.value.length)return!1;const T=`${new Date().getFullYear()}-${C.toString().padStart(2,"0")}-${S.toString().padStart(2,"0")}`,P=i.value.find(A=>A.signInDate===T);return P?P==null?void 0:P.isSigned:!1}const b=R(()=>{if(n.value)return!1;const C=new Date().getMonth()+1,S=new Date().getDate();return!m(C,S)});async function x(){try{n.value=!0;const C=await _le();i.value=C.data,n.value=!1}catch{n.value=!1}}async function y(){try{c.value=!0,(await Sle()).success&&a.success("签到成功!"),x(),t.getUserInfo(),c.value=!1}catch{c.value=!1}}async function w(){x()}return(C,S)=>(ge(),We(W(oa),{show:C.visible,style:Bn({maxWidth:"650px",minWidth:W(s)?"100%":"650px"}),"on-after-enter":w,"on-after-leave":u},{default:de(()=>[te(W(Md),{vertical:""},{default:de(()=>[te(W(Od),{closable:"",onClose:d},{header:de(()=>[ve("span",Ele,[tt("签到奖励 "),ve("span",null,[tt("(已连续签到"),ve("b",Tle,Qt(p.value),1),tt("天)")])])]),default:de(()=>[te(W(n_),{class:"mb-5 p-0 !bg-[#ccddff]","show-icon":!1,type:"primary"},{default:de(()=>[tt(" 每日签到赠送: "),h.value>0?(ge(),je("span",kle,[ve("b",Ale,Qt(h.value),1),tt("积分基础模型对话额度")])):Fe("",!0),g.value>0?(ge(),je("span",Ple,[ve("b",$le,Qt(g.value),1),tt("积分高级模型对话额度")])):Fe("",!0),v.value>0?(ge(),je("span",Ile,[ve("b",Ble,Qt(v.value),1),tt("点绘画积分额度")])):Fe("",!0)]),_:1}),te(W(Nd),{show:n.value},{default:de(()=>[te(W(O7),{value:W(l),"onUpdate:value":S[0]||(S[0]=T=>sr(l)?l.value=T:null),style:{height:"420px"},"is-date-disabled":f},{default:de(({month:T,date:P})=>[m(T,P)?(ge(),je("div",Dle,[te(W(In),{icon:"heroicons:gift",class:"text-xl text-[#5A91FC]"}),W(o)?Fe("",!0):(ge(),je("span",Ole,"已签到"))])):Fe("",!0)]),_:1},8,["value"])]),_:1},8,["show"]),b.value?(ge(),je("div",Rle,[te(W(qt),{style:{width:"100%"},type:"primary",round:"",loading:c.value,onClick:y},{default:de(()=>[tt(" 今日尚未签到、点击签到 ")]),_:1},8,["loading"])])):Fe("",!0),b.value?Fe("",!0):(ge(),je("div",Lle,[te(W(qt),{style:{width:"100%"},type:"primary",round:"",loading:c.value},{default:de(()=>[tt(" 今日已成功签到 ")]),_:1},8,["loading"])]))]),_:1})]),_:1})]),_:1},8,["show","style"]))}});const Mle={class:"h-full dark:bg-[#24272e] transition-all p-0"},zle={class:"h-full overflow-hidden"},Nle=me({__name:"index",setup(e){const t=Tr(),r=nm(),n=Gd(),o=ai(),i=ii(),a=Sn(),s=R(()=>o.payDialog),l=R(()=>o.goodsDialog),c=R(()=>o.noticeDialog),u=R(()=>o.bindWxDialog),d=R(()=>o.signInDialog),f=R(()=>o.modelDialog),{isMobile:p}=yo(),h=R(()=>t.loginDialog),g=R(()=>i.theme);R(()=>g.value==="dark"?"#24272e":"#fff");const v=R(()=>t.isLogin),m=R(()=>{var T;return Number((T=t.globalConfig)==null?void 0:T.wechatSilentLoginStatus)===1}),b=R(()=>{var T;return(T=t.globalConfig)==null?void 0:T.clientHomePath});function x(){const{token:T}=r.query;if(T){t.setToken(T);const P=r.name;n.replace({name:P,query:{}}),a.success("账户登录成功、开始体验吧!"),t.getUserInfo()}}async function y(){if(b.value||!m.value||v.value)return;const{code:T}=r.query;if(T){const P=await Poe({code:T});P.success&&(t.setToken(P.data),t.getUserInfo())}else{const P=window.location.href.replace(/#.*$/,""),A=await Doe({url:P});A.success&&(window.location.href=A.data)}}function w(){var P;const T=window.navigator.userAgent.toLowerCase();T.match(/MicroMessenger/i)&&((P=T==null?void 0:T.match(/MicroMessenger/i))==null?void 0:P[0])==="micromessenger"&&y()}St(()=>{w(),x()});const C=R(()=>p.value?["rounded-none","shadow-none"]:["dark:border-neutral-800"]),S=R(()=>p.value?["flex-col"]:["dark:border-neutral-800"]);return(T,P)=>{const A=Au("RouterView"),I=Au("ModelDialog");return ge(),je("div",Mle,[ve("div",zle,[ve("div",{class:Jt(["z-40 transition flex h-full relative",S.value])},[W(p)?Fe("",!0):(ge(),We(Sie,{key:0})),te(W(iV),{class:Jt(["h-full",C.value]),style:{flex:"1"}},{default:de(()=>[te(A,null,{default:de(({Component:B,route:D})=>[(ge(),We(Ow(B),{key:D.fullPath}))]),_:1})]),_:1},8,["class"]),W(p)?(ge(),We(Aie,{key:1})):Fe("",!0)],2),te(oae,{visible:h.value},null,8,["visible"]),te(Cse,{visible:s.value},null,8,["visible"]),te(Wse,{visible:l.value},null,8,["visible"]),te(ple,{visible:c.value},null,8,["visible"]),te(wle,{visible:u.value},null,8,["visible"]),te(Fle,{visible:d.value},null,8,["visible"]),te(I,{visible:f.value},null,8,["visible"])])])}}}),Hle=[{path:"/",name:"Layout",component:Nle,redirect:"/chat",children:[{path:"/market",name:"Market",component:()=>Jr(()=>import("./index-58a4ab22.js"),["assets/index-58a4ab22.js","assets/index-c94da121.js","assets/index-128e54c5.css"])},{path:"/midjourney",name:"Midjourney",component:()=>Jr(()=>import("./index-75add13f.js"),["assets/index-75add13f.js","assets/Loading-e3b9f338.js","assets/Loading-c4d4d692.css","assets/InputNumber-a4453a49.js","assets/Switch-62c08010.js","assets/Select-39d6ffd8.js","assets/index-e0c1c488.css"])},{path:"/chat",name:"Chat",component:()=>Jr(()=>import("./chat-fb6fff2f.js"),["assets/chat-fb6fff2f.js","assets/index.vue_vue_type_script_setup_true_lang-98b11686.js","assets/LayoutSider-7d501b29.js","assets/katex-c6e5141e.js","assets/Loading-e3b9f338.js","assets/Loading-c4d4d692.css","assets/index-c94da121.js","assets/chat-5e76dec8.css"])},{path:"role",name:"Role",component:()=>Jr(()=>import("./role-d0308333.js"),["assets/role-d0308333.js","assets/index.vue_vue_type_script_setup_true_lang-98b11686.js","assets/LayoutSider-7d501b29.js","assets/Popconfirm-44d41587.js","assets/Select-39d6ffd8.js","assets/Switch-62c08010.js","assets/role-2e2120fd.css"])},{path:"user-center",name:"UserCenter",component:()=>Jr(()=>import("./index-d745cda4.js"),["assets/index-d745cda4.js","assets/DataTable-eb9145e8.js","assets/Select-39d6ffd8.js","assets/titleBar.vue_vue_type_script_setup_true_lang-4cc0cc4f.js","assets/LayoutSider-7d501b29.js"])},{path:"app-store",name:"AppStore",component:()=>Jr(()=>import("./index-42ed0106.js"),["assets/index-42ed0106.js","assets/index-f68bb93a.css"])},{path:"pay",name:"Pay",component:()=>Jr(()=>import("./index-76ed0609.js"),["assets/index-76ed0609.js","assets/titleBar.vue_vue_type_script_setup_true_lang-4cc0cc4f.js","assets/index-fed7b4ac.css"])},{path:"mind",name:"Mind",component:()=>Jr(()=>import("./index-f040e4c4.js"),["assets/index-f040e4c4.js","assets/katex-c6e5141e.js"])},{path:"share",name:"Share",component:()=>Jr(()=>import("./index-4b4a30f8.js"),["assets/index-4b4a30f8.js","assets/InputNumber-a4453a49.js","assets/Select-39d6ffd8.js","assets/titleBar.vue_vue_type_script_setup_true_lang-4cc0cc4f.js","assets/index-c94da121.js","assets/DataTable-eb9145e8.js","assets/index-e70b4848.css"])},{path:"extend",name:"Extend",component:()=>Jr(()=>import("./index-7412df8e.js"),["assets/index-7412df8e.js","assets/index-da1c3968.css"])}]},{path:"/404",name:"404",component:()=>Jr(()=>import("./index-a6102f20.js"),[])},{path:"/500",name:"500",component:()=>Jr(()=>import("./index-ccb6e900.js"),["assets/index-ccb6e900.js","assets/index-404bb920.css"])},{path:"/:pathMatch(.*)*",name:"notFound",redirect:"/404"}],Ip=aQ({history:LZ(),routes:Hle,scrollBehavior:()=>({left:0,top:0})});Roe(Ip);async function jle(e){e.use(Ip),await Ip.isReady()}function eh(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function Bp(e,t,r=".",n){if(!eh(t))return Bp(e,{},r,n);const o=Object.assign({},t);for(const i in e){if(i==="__proto__"||i==="constructor")continue;const a=e[i];a!=null&&(n&&n(o,i,a,r)||(Array.isArray(a)&&Array.isArray(o[i])?o[i]=[...a,...o[i]]:eh(a)&&eh(o[i])?o[i]=Bp(a,o[i],(r?`${r}.`:"")+i.toString(),n):o[i]=a))}return o}function Wle(e){return(...t)=>t.reduce((r,n)=>Bp(r,n,"",e),{})}const Ule=Wle();function dl(e){var t;const r=Pm(e);return(t=r==null?void 0:r.$el)!=null?t:r}const W5=b5?window:void 0;function En(...e){let t,r,n,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([r,n,o]=e,t=W5):[t,r,n,o]=e,!t)return cl;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const i=[],a=()=>{i.forEach(u=>u()),i.length=0},s=(u,d,f,p)=>(u.addEventListener(d,f,p),()=>u.removeEventListener(d,f,p)),l=Ye(()=>[dl(t),Pm(o)],([u,d])=>{if(a(),!u)return;const f=Ju(d)?{...d}:d;i.push(...r.flatMap(p=>n.map(h=>s(u,p,h,f))))},{immediate:!0,flush:"post"}),c=()=>{l(),a()};return Am(c),c}function Vle(){const e=z(!1),t=Er();return t&&St(()=>{e.value=!0},t),e}function qle(e){const t=Vle();return R(()=>(t.value,!!e()))}function Gle(e,t,r={}){const{root:n,rootMargin:o="0px",threshold:i=.1,window:a=W5,immediate:s=!0}=r,l=qle(()=>a&&"IntersectionObserver"in a),c=R(()=>{const h=Pm(e);return(Array.isArray(h)?h:[h]).map(dl).filter(aie)});let u=cl;const d=z(s),f=l.value?Ye(()=>[c.value,dl(n),d.value],([h,g])=>{if(u(),!d.value||!h.length)return;const v=new IntersectionObserver(t,{root:dl(g),rootMargin:o,threshold:i});h.forEach(m=>m&&v.observe(m)),u=()=>{v.disconnect(),u=cl}},{immediate:s,flush:"post"}):cl,p=()=>{u(),f(),d.value=!1};return Am(p),{isSupported:l,isActive:d,pause(){u(),d.value=!1},resume(){d.value=!0},stop:p}}const U5=1/60*1e3,Yle=typeof performance<"u"?()=>performance.now():()=>Date.now(),V5=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(Yle()),U5);function Kle(e){let t=[],r=[],n=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(l,c=!1,u=!1)=>{const d=u&&o,f=d?t:r;return c&&a.add(l),f.indexOf(l)===-1&&(f.push(l),d&&o&&(n=t.length)),l},cancel:l=>{const c=r.indexOf(l);c!==-1&&r.splice(c,1),a.delete(l)},process:l=>{if(o){i=!0;return}if(o=!0,[t,r]=[r,t],r.length=0,n=t.length,n)for(let c=0;c<n;c++){const u=t[c];u(l),a.has(u)&&(s.schedule(u),e())}o=!1,i&&(i=!1,s.process(l))}};return s}const Xle=40;let Dp=!0,Vl=!1,Op=!1;const Ha={delta:0,timestamp:0},fc=["read","update","preRender","render","postRender"],gf=fc.reduce((e,t)=>(e[t]=Kle(()=>Vl=!0),e),{}),Rp=fc.reduce((e,t)=>{const r=gf[t];return e[t]=(n,o=!1,i=!1)=>(Vl||Jle(),r.schedule(n,o,i)),e},{}),Zle=fc.reduce((e,t)=>(e[t]=gf[t].cancel,e),{});fc.reduce((e,t)=>(e[t]=()=>gf[t].process(Ha),e),{});const Qle=e=>gf[e].process(Ha),q5=e=>{Vl=!1,Ha.delta=Dp?U5:Math.max(Math.min(e-Ha.timestamp,Xle),1),Ha.timestamp=e,Op=!0,fc.forEach(Qle),Op=!1,Vl&&(Dp=!1,V5(q5))},Jle=()=>{Vl=!0,Dp=!0,Op||V5(q5)},G5=()=>Ha;function Y5(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}var ece=function(){},WC=function(){};const Lp=(e,t,r)=>Math.min(Math.max(r,e),t),th=.001,tce=.01,UC=10,rce=.05,nce=1;function oce({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let o,i;ece(e<=UC*1e3);let a=1-t;a=Lp(rce,nce,a),e=Lp(tce,UC,e/1e3),a<1?(o=c=>{const u=c*a,d=u*e,f=u-r,p=Fp(c,a),h=Math.exp(-d);return th-f/p*h},i=c=>{const d=c*a*e,f=d*r+r,p=Math.pow(a,2)*Math.pow(c,2)*e,h=Math.exp(-d),g=Fp(Math.pow(c,2),a);return(-o(c)+th>0?-1:1)*((f-p)*h)/g}):(o=c=>{const u=Math.exp(-c*e),d=(c-r)*e+1;return-th+u*d},i=c=>{const u=Math.exp(-c*e),d=(r-c)*(e*e);return u*d});const s=5/e,l=ace(o,i,s);if(e=e*1e3,isNaN(l))return{stiffness:100,damping:10,duration:e};{const c=Math.pow(l,2)*n;return{stiffness:c,damping:a*2*Math.sqrt(n*c),duration:e}}}const ice=12;function ace(e,t,r){let n=r;for(let o=1;o<ice;o++)n=n-e(n)/t(n);return n}function Fp(e,t){return e*Math.sqrt(1-t*t)}const sce=["duration","bounce"],lce=["stiffness","damping","mass"];function VC(e,t){return t.some(r=>e[r]!==void 0)}function cce(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!VC(e,lce)&&VC(e,sce)){const r=oce(e);t=Object.assign(Object.assign(Object.assign({},t),r),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function zm(e){var{from:t=0,to:r=1,restSpeed:n=2,restDelta:o}=e,i=Y5(e,["from","to","restSpeed","restDelta"]);const a={done:!1,value:t};let{stiffness:s,damping:l,mass:c,velocity:u,duration:d,isResolvedFromDuration:f}=cce(i),p=qC,h=qC;function g(){const v=u?-(u/1e3):0,m=r-t,b=l/(2*Math.sqrt(s*c)),x=Math.sqrt(s/c)/1e3;if(o===void 0&&(o=Math.min(Math.abs(r-t)/100,.4)),b<1){const y=Fp(x,b);p=w=>{const C=Math.exp(-b*x*w);return r-C*((v+b*x*m)/y*Math.sin(y*w)+m*Math.cos(y*w))},h=w=>{const C=Math.exp(-b*x*w);return b*x*C*(Math.sin(y*w)*(v+b*x*m)/y+m*Math.cos(y*w))-C*(Math.cos(y*w)*(v+b*x*m)-y*m*Math.sin(y*w))}}else if(b===1)p=y=>r-Math.exp(-x*y)*(m+(v+x*m)*y);else{const y=x*Math.sqrt(b*b-1);p=w=>{const C=Math.exp(-b*x*w),S=Math.min(y*w,300);return r-C*((v+b*x*m)*Math.sinh(S)+y*m*Math.cosh(S))/y}}}return g(),{next:v=>{const m=p(v);if(f)a.done=v>=d;else{const b=h(v)*1e3,x=Math.abs(b)<=n,y=Math.abs(r-m)<=o;a.done=x&&y}return a.value=a.done?r:m,a},flipTarget:()=>{u=-u,[t,r]=[r,t],g()}}}zm.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const qC=e=>0,K5=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},Nm=(e,t,r)=>-r*e+r*t+e,X5=(e,t)=>r=>Math.max(Math.min(r,t),e),fl=e=>e%1?Number(e.toFixed(5)):e,ql=/(-)?([\d]*\.?[\d])+/g,Mp=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,uce=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function hc(e){return typeof e=="string"}const pc={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},hl=Object.assign(Object.assign({},pc),{transform:X5(0,1)}),Jc=Object.assign(Object.assign({},pc),{default:1}),Hm=e=>({test:t=>hc(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),xi=Hm("deg"),pl=Hm("%"),ot=Hm("px"),GC=Object.assign(Object.assign({},pl),{parse:e=>pl.parse(e)/100,transform:e=>pl.transform(e*100)}),jm=(e,t)=>r=>!!(hc(r)&&uce.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),Z5=(e,t,r)=>n=>{if(!hc(n))return n;const[o,i,a,s]=n.match(ql);return{[e]:parseFloat(o),[t]:parseFloat(i),[r]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},Di={test:jm("hsl","hue"),parse:Z5("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+pl.transform(fl(t))+", "+pl.transform(fl(r))+", "+fl(hl.transform(n))+")"},dce=X5(0,255),rh=Object.assign(Object.assign({},pc),{transform:e=>Math.round(dce(e))}),Vo={test:jm("rgb","red"),parse:Z5("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+rh.transform(e)+", "+rh.transform(t)+", "+rh.transform(r)+", "+fl(hl.transform(n))+")"};function fce(e){let t="",r="",n="",o="";return e.length>5?(t=e.substr(1,2),r=e.substr(3,2),n=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),r=e.substr(2,1),n=e.substr(3,1),o=e.substr(4,1),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}}const zp={test:jm("#"),parse:fce,transform:Vo.transform},Gr={test:e=>Vo.test(e)||zp.test(e)||Di.test(e),parse:e=>Vo.test(e)?Vo.parse(e):Di.test(e)?Di.parse(e):zp.parse(e),transform:e=>hc(e)?e:e.hasOwnProperty("red")?Vo.transform(e):Di.transform(e)},Q5="${c}",J5="${n}";function hce(e){var t,r,n,o;return isNaN(e)&&hc(e)&&((r=(t=e.match(ql))===null||t===void 0?void 0:t.length)!==null&&r!==void 0?r:0)+((o=(n=e.match(Mp))===null||n===void 0?void 0:n.length)!==null&&o!==void 0?o:0)>0}function e8(e){typeof e=="number"&&(e=`${e}`);const t=[];let r=0;const n=e.match(Mp);n&&(r=n.length,e=e.replace(Mp,Q5),t.push(...n.map(Gr.parse)));const o=e.match(ql);return o&&(e=e.replace(ql,J5),t.push(...o.map(pc.parse))),{values:t,numColors:r,tokenised:e}}function t8(e){return e8(e).values}function r8(e){const{values:t,numColors:r,tokenised:n}=e8(e),o=t.length;return i=>{let a=n;for(let s=0;s<o;s++)a=a.replace(s<r?Q5:J5,s<r?Gr.transform(i[s]):fl(i[s]));return a}}const pce=e=>typeof e=="number"?0:e;function gce(e){const t=t8(e);return r8(e)(t.map(pce))}const gc={test:hce,parse:t8,createTransformer:r8,getAnimatableNone:gce},mce=new Set(["brightness","contrast","saturate","opacity"]);function vce(e){let[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(ql)||[];if(!n)return e;const o=r.replace(n,"");let i=mce.has(t)?1:0;return n!==r&&(i*=100),t+"("+i+o+")"}const bce=/([a-z-]*)\(.*?\)/g,Np=Object.assign(Object.assign({},gc),{getAnimatableNone:e=>{const t=e.match(bce);return t?t.map(vce).join(" "):e}});function nh(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function YC({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let o=0,i=0,a=0;if(!t)o=i=a=r;else{const s=r<.5?r*(1+t):r+t-r*t,l=2*r-s;o=nh(l,s,e+1/3),i=nh(l,s,e),a=nh(l,s,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:n}}const xce=(e,t,r)=>{const n=e*e,o=t*t;return Math.sqrt(Math.max(0,r*(o-n)+n))},yce=[zp,Vo,Di],KC=e=>yce.find(t=>t.test(e)),n8=(e,t)=>{let r=KC(e),n=KC(t),o=r.parse(e),i=n.parse(t);r===Di&&(o=YC(o),r=Vo),n===Di&&(i=YC(i),n=Vo);const a=Object.assign({},o);return s=>{for(const l in a)l!=="alpha"&&(a[l]=xce(o[l],i[l],s));return a.alpha=Nm(o.alpha,i.alpha,s),r.transform(a)}},Cce=e=>typeof e=="number",wce=(e,t)=>r=>t(e(r)),o8=(...e)=>e.reduce(wce);function i8(e,t){return Cce(e)?r=>Nm(e,t,r):Gr.test(e)?n8(e,t):s8(e,t)}const a8=(e,t)=>{const r=[...e],n=r.length,o=e.map((i,a)=>i8(i,t[a]));return i=>{for(let a=0;a<n;a++)r[a]=o[a](i);return r}},Sce=(e,t)=>{const r=Object.assign(Object.assign({},e),t),n={};for(const o in r)e[o]!==void 0&&t[o]!==void 0&&(n[o]=i8(e[o],t[o]));return o=>{for(const i in n)r[i]=n[i](o);return r}};function XC(e){const t=gc.parse(e),r=t.length;let n=0,o=0,i=0;for(let a=0;a<r;a++)n||typeof t[a]=="number"?n++:t[a].hue!==void 0?i++:o++;return{parsed:t,numNumbers:n,numRGB:o,numHSL:i}}const s8=(e,t)=>{const r=gc.createTransformer(t),n=XC(e),o=XC(t);return n.numHSL===o.numHSL&&n.numRGB===o.numRGB&&n.numNumbers>=o.numNumbers?o8(a8(n.parsed,o.parsed),r):a=>`${a>0?t:e}`},_ce=(e,t)=>r=>Nm(e,t,r);function Ece(e){if(typeof e=="number")return _ce;if(typeof e=="string")return Gr.test(e)?n8:s8;if(Array.isArray(e))return a8;if(typeof e=="object")return Sce}function Tce(e,t,r){const n=[],o=r||Ece(e[0]),i=e.length-1;for(let a=0;a<i;a++){let s=o(e[a],e[a+1]);if(t){const l=Array.isArray(t)?t[a]:t;s=o8(l,s)}n.push(s)}return n}function kce([e,t],[r]){return n=>r(K5(e,t,n))}function Ace(e,t){const r=e.length,n=r-1;return o=>{let i=0,a=!1;if(o<=e[0]?a=!0:o>=e[n]&&(i=n-1,a=!0),!a){let l=1;for(;l<r&&!(e[l]>o||l===n);l++);i=l-1}const s=K5(e[i],e[i+1],o);return t[i](s)}}function l8(e,t,{clamp:r=!0,ease:n,mixer:o}={}){const i=e.length;WC(i===t.length),WC(!n||!Array.isArray(n)||n.length===i-1),e[0]>e[i-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const a=Tce(t,n,o),s=i===2?kce(e,a):Ace(e,a);return r?l=>s(Lp(e[0],e[i-1],l)):s}const mf=e=>t=>1-e(1-t),Wm=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Pce=e=>t=>Math.pow(t,e),c8=e=>t=>t*t*((e+1)*t-e),$ce=e=>{const t=c8(e);return r=>(r*=2)<1?.5*t(r):.5*(2-Math.pow(2,-10*(r-1)))},u8=1.525,Ice=4/11,Bce=8/11,Dce=9/10,d8=e=>e,Um=Pce(2),Oce=mf(Um),f8=Wm(Um),h8=e=>1-Math.sin(Math.acos(e)),p8=mf(h8),Rce=Wm(p8),Vm=c8(u8),Lce=mf(Vm),Fce=Wm(Vm),Mce=$ce(u8),zce=4356/361,Nce=35442/1805,Hce=16061/1805,od=e=>{if(e===1||e===0)return e;const t=e*e;return e<Ice?7.5625*t:e<Bce?9.075*t-9.9*e+3.4:e<Dce?zce*t-Nce*e+Hce:10.8*e*e-20.52*e+10.72},jce=mf(od),Wce=e=>e<.5?.5*(1-od(1-e*2)):.5*od(e*2-1)+.5;function Uce(e,t){return e.map(()=>t||f8).splice(0,e.length-1)}function Vce(e){const t=e.length;return e.map((r,n)=>n!==0?n/(t-1):0)}function qce(e,t){return e.map(r=>r*t)}function wu({from:e=0,to:t=1,ease:r,offset:n,duration:o=300}){const i={done:!1,value:e},a=Array.isArray(t)?t:[e,t],s=qce(n&&n.length===a.length?n:Vce(a),o);function l(){return l8(s,a,{ease:Array.isArray(r)?r:Uce(a,r)})}let c=l();return{next:u=>(i.value=c(u),i.done=u>=o,i),flipTarget:()=>{a.reverse(),c=l()}}}function Gce({velocity:e=0,from:t=0,power:r=.8,timeConstant:n=350,restDelta:o=.5,modifyTarget:i}){const a={done:!1,value:t};let s=r*e;const l=t+s,c=i===void 0?l:i(l);return c!==l&&(s=c-t),{next:u=>{const d=-s*Math.exp(-u/n);return a.done=!(d>o||d<-o),a.value=a.done?c:c+d,a},flipTarget:()=>{}}}const ZC={keyframes:wu,spring:zm,decay:Gce};function Yce(e){if(Array.isArray(e.to))return wu;if(ZC[e.type])return ZC[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?wu:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?zm:wu}function g8(e,t,r=0){return e-t-r}function Kce(e,t,r=0,n=!0){return n?g8(t+-e,t,r):t-(e-t)+r}function Xce(e,t,r,n){return n?e>=t+r:e<=-r}const Zce=e=>{const t=({delta:r})=>e(r);return{start:()=>Rp.update(t,!0),stop:()=>Zle.update(t)}};function m8(e){var t,r,{from:n,autoplay:o=!0,driver:i=Zce,elapsed:a=0,repeat:s=0,repeatType:l="loop",repeatDelay:c=0,onPlay:u,onStop:d,onComplete:f,onRepeat:p,onUpdate:h}=e,g=Y5(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:v}=g,m,b=0,x=g.duration,y,w=!1,C=!0,S;const T=Yce(g);!((r=(t=T).needsInterpolation)===null||r===void 0)&&r.call(t,n,v)&&(S=l8([0,100],[n,v],{clamp:!1}),n=0,v=100);const P=T(Object.assign(Object.assign({},g),{from:n,to:v}));function A(){b++,l==="reverse"?(C=b%2===0,a=Kce(a,x,c,C)):(a=g8(a,x,c),l==="mirror"&&P.flipTarget()),w=!1,p&&p()}function I(){m.stop(),f&&f()}function B(U){if(C||(U=-U),a+=U,!w){const F=P.next(Math.max(0,a));y=F.value,S&&(y=S(y)),w=C?F.done:a<=0}h==null||h(y),w&&(b===0&&(x??(x=a)),b<s?Xce(a,x,c,C)&&A():I())}function D(){u==null||u(),m=i(B),m.start()}return o&&D(),{stop:()=>{d==null||d(),m.stop()}}}function v8(e,t){return t?e*(1e3/t):0}function Qce({from:e=0,velocity:t=0,min:r,max:n,power:o=.8,timeConstant:i=750,bounceStiffness:a=500,bounceDamping:s=10,restDelta:l=1,modifyTarget:c,driver:u,onUpdate:d,onComplete:f,onStop:p}){let h;function g(x){return r!==void 0&&x<r||n!==void 0&&x>n}function v(x){return r===void 0?n:n===void 0||Math.abs(r-x)<Math.abs(n-x)?r:n}function m(x){h==null||h.stop(),h=m8(Object.assign(Object.assign({},x),{driver:u,onUpdate:y=>{var w;d==null||d(y),(w=x.onUpdate)===null||w===void 0||w.call(x,y)},onComplete:f,onStop:p}))}function b(x){m(Object.assign({type:"spring",stiffness:a,damping:s,restDelta:l},x))}if(g(e))b({from:e,velocity:t,to:v(e)});else{let x=o*t+e;typeof c<"u"&&(x=c(x));const y=v(x),w=y===r?-1:1;let C,S;const T=P=>{C=S,S=P,t=v8(P-C,G5().delta),(w===1&&P>y||w===-1&&P<y)&&b({from:P,to:y,velocity:t})};m({type:"decay",from:e,velocity:t,timeConstant:i,power:o,restDelta:l,modifyTarget:c,onUpdate:g(x)?T:void 0})}return{stop:()=>h==null?void 0:h.stop()}}const b8=(e,t)=>1-3*t+3*e,x8=(e,t)=>3*t-6*e,y8=e=>3*e,id=(e,t,r)=>((b8(t,r)*e+x8(t,r))*e+y8(t))*e,C8=(e,t,r)=>3*b8(t,r)*e*e+2*x8(t,r)*e+y8(t),Jce=1e-7,eue=10;function tue(e,t,r,n,o){let i,a,s=0;do a=t+(r-t)/2,i=id(a,n,o)-e,i>0?r=a:t=a;while(Math.abs(i)>Jce&&++s<eue);return a}const rue=8,nue=.001;function oue(e,t,r,n){for(let o=0;o<rue;++o){const i=C8(t,r,n);if(i===0)return t;const a=id(t,r,n)-e;t-=a/i}return t}const Su=11,eu=1/(Su-1);function iue(e,t,r,n){if(e===t&&r===n)return d8;const o=new Float32Array(Su);for(let a=0;a<Su;++a)o[a]=id(a*eu,e,r);function i(a){let s=0,l=1;const c=Su-1;for(;l!==c&&o[l]<=a;++l)s+=eu;--l;const u=(a-o[l])/(o[l+1]-o[l]),d=s+u*eu,f=C8(d,e,r);return f>=nue?oue(a,d,e,r):f===0?d:tue(a,s,s+eu,e,r)}return a=>a===0||a===1?a:id(i(a),t,n)}const oh={};var aue=Object.defineProperty,sue=(e,t,r)=>t in e?aue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,lue=(e,t,r)=>(sue(e,typeof t!="symbol"?t+"":t,r),r);class cue{constructor(){lue(this,"subscriptions",new Set)}add(t){return this.subscriptions.add(t),()=>this.subscriptions.delete(t)}notify(t,r,n){if(this.subscriptions.size)for(const o of this.subscriptions)o(t,r,n)}clear(){this.subscriptions.clear()}}var uue=Object.defineProperty,due=(e,t,r)=>t in e?uue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,jn=(e,t,r)=>(due(e,typeof t!="symbol"?t+"":t,r),r);function QC(e){return!isNaN(parseFloat(e))}class fue{constructor(t){jn(this,"current"),jn(this,"prev"),jn(this,"timeDelta",0),jn(this,"lastUpdated",0),jn(this,"updateSubscribers",new cue),jn(this,"stopAnimation"),jn(this,"canTrackVelocity",!1),jn(this,"updateAndNotify",r=>{this.prev=this.current,this.current=r;const{delta:n,timestamp:o}=G5();this.lastUpdated!==o&&(this.timeDelta=n,this.lastUpdated=o),Rp.postRender(this.scheduleVelocityCheck),this.updateSubscribers.notify(this.current)}),jn(this,"scheduleVelocityCheck",()=>Rp.postRender(this.velocityCheck)),jn(this,"velocityCheck",({timestamp:r})=>{this.canTrackVelocity||(this.canTrackVelocity=QC(this.current)),r!==this.lastUpdated&&(this.prev=this.current)}),this.prev=this.current=t,this.canTrackVelocity=QC(this.current)}onChange(t){return this.updateSubscribers.add(t)}clearListeners(){this.updateSubscribers.clear()}set(t){this.updateAndNotify(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?v8(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(r=>{const{stop:n}=t(r);this.stopAnimation=n}).then(()=>this.clearAnimation())}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.stop()}}function hue(e){return new fue(e)}const{isArray:pue}=Array;function gue(){const e=z({}),t=n=>{const o=i=>{e.value[i]&&(e.value[i].stop(),e.value[i].destroy(),delete e.value[i])};n?pue(n)?n.forEach(o):o(n):Object.keys(e.value).forEach(o)},r=(n,o,i)=>{if(e.value[n])return e.value[n];const a=hue(o);return a.onChange(s=>i[n]=s),e.value[n]=a,a};return uie(t),{motionValues:e,get:r,stop:t}}function mue(e){return Array.isArray(e)}function yi(){return{type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}}function ih(e){return{type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restDelta:.01,restSpeed:10}}function vue(e){return{type:"spring",stiffness:550,damping:e===0?100:30,restDelta:.01,restSpeed:10}}function ah(){return{type:"keyframes",ease:"linear",duration:300}}function bue(e){return{type:"keyframes",duration:800,values:e}}const JC={default:vue,x:yi,y:yi,z:yi,rotate:yi,rotateX:yi,rotateY:yi,rotateZ:yi,scaleX:ih,scaleY:ih,scale:ih,backgroundColor:ah,color:ah,opacity:ah};function w8(e,t){let r;return mue(t)?r=bue:r=JC[e]||JC.default,{to:t,...r(t)}}const ew={...pc,transform:Math.round},S8={color:Gr,backgroundColor:Gr,outlineColor:Gr,fill:Gr,stroke:Gr,borderColor:Gr,borderTopColor:Gr,borderRightColor:Gr,borderBottomColor:Gr,borderLeftColor:Gr,borderWidth:ot,borderTopWidth:ot,borderRightWidth:ot,borderBottomWidth:ot,borderLeftWidth:ot,borderRadius:ot,radius:ot,borderTopLeftRadius:ot,borderTopRightRadius:ot,borderBottomRightRadius:ot,borderBottomLeftRadius:ot,width:ot,maxWidth:ot,height:ot,maxHeight:ot,size:ot,top:ot,right:ot,bottom:ot,left:ot,padding:ot,paddingTop:ot,paddingRight:ot,paddingBottom:ot,paddingLeft:ot,margin:ot,marginTop:ot,marginRight:ot,marginBottom:ot,marginLeft:ot,rotate:xi,rotateX:xi,rotateY:xi,rotateZ:xi,scale:Jc,scaleX:Jc,scaleY:Jc,scaleZ:Jc,skew:xi,skewX:xi,skewY:xi,distance:ot,translateX:ot,translateY:ot,translateZ:ot,x:ot,y:ot,z:ot,perspective:ot,transformPerspective:ot,opacity:hl,originX:GC,originY:GC,originZ:ot,zIndex:ew,filter:Np,WebkitFilter:Np,fillOpacity:hl,strokeOpacity:hl,numOctaves:ew},qm=e=>S8[e];function _8(e,t){return t&&typeof e=="number"&&t.transform?t.transform(e):e}function xue(e,t){let r=qm(e);return r!==Np&&(r=gc),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const yue={linear:d8,easeIn:Um,easeInOut:f8,easeOut:Oce,circIn:h8,circInOut:Rce,circOut:p8,backIn:Vm,backInOut:Fce,backOut:Lce,anticipate:Mce,bounceIn:jce,bounceInOut:Wce,bounceOut:od};function tw(e){if(Array.isArray(e)){const[t,r,n,o]=e;return iue(t,r,n,o)}else if(typeof e=="string")return yue[e];return e}function Cue(e){return Array.isArray(e)&&typeof e[0]!="number"}function rw(e,t){return e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&gc.test(t)&&!t.startsWith("url("))}function wue(e){return Array.isArray(e.to)&&e.to[0]===null&&(e.to=[...e.to],e.to[0]=e.from),e}function Sue({ease:e,times:t,delay:r,...n}){const o={...n};return t&&(o.offset=t),e&&(o.ease=Cue(e)?e.map(tw):tw(e)),r&&(o.elapsed=-r),o}function _ue(e,t,r){return Array.isArray(t.to)&&(e.duration||(e.duration=800)),wue(t),Eue(e)||(e={...e,...w8(r,t.to)}),{...t,...Sue(e)}}function Eue({delay:e,repeat:t,repeatType:r,repeatDelay:n,from:o,...i}){return!!Object.keys(i).length}function Tue(e,t){return e[t]||e.default||e}function kue(e,t,r,n,o){const i=Tue(n,e);let a=i.from===null||i.from===void 0?t.get():i.from;const s=rw(e,r);a==="none"&&s&&typeof r=="string"&&(a=xue(e,r));const l=rw(e,a);function c(d){const f={from:a,to:r,velocity:n.velocity?n.velocity:t.getVelocity(),onUpdate:p=>t.set(p)};return i.type==="inertia"||i.type==="decay"?Qce({...f,...i}):m8({..._ue(i,f,e),onUpdate:p=>{f.onUpdate(p),i.onUpdate&&i.onUpdate(p)},onComplete:()=>{n.onComplete&&n.onComplete(),o&&o(),d&&d()}})}function u(d){return t.set(r),n.onComplete&&n.onComplete(),o&&o(),d&&d(),{stop:()=>{}}}return!l||!s||i.type===!1?u:c}function Aue(){const{motionValues:e,stop:t,get:r}=gue();return{motionValues:e,stop:t,push:(o,i,a,s={},l)=>{const c=a[o],u=r(o,c,a);if(s&&s.immediate){u.set(i);return}const d=kue(o,u,i,s,l);u.start(d)}}}function Pue(e,t={},{motionValues:r,push:n,stop:o}=Aue()){const i=W(t),a=z(!1);Ye(r,d=>{a.value=Object.values(d).filter(f=>f.isAnimating()).length>0},{immediate:!0,deep:!0});const s=d=>{if(!i||!i[d])throw new Error(`The variant ${d} does not exist.`);return i[d]},l=d=>(typeof d=="string"&&(d=s(d)),Promise.all(Object.entries(d).map(([f,p])=>{if(f!=="transition")return new Promise(h=>n(f,p,e,d.transition||w8(f,d[f]),h))}).filter(Boolean)));return{isAnimating:a,apply:l,set:d=>{const f=Ju(d)?d:s(d);Object.entries(f).forEach(([p,h])=>{p!=="transition"&&n(p,h,e,{immediate:!0})})},leave:async d=>{let f;if(i&&(i.leave&&(f=i.leave),!i.leave&&i.initial&&(f=i.initial)),!f){d();return}await l(f),d()},stop:o}}const Gm=typeof window<"u",$ue=()=>Gm&&window.onpointerdown===null,Iue=()=>Gm&&window.ontouchstart===null,Bue=()=>Gm&&window.onmousedown===null;function Due({target:e,state:t,variants:r,apply:n}){const o=W(r),i=z(!1),a=z(!1),s=z(!1),l=R(()=>{let u=[];return o&&(o.hovered&&(u=[...u,...Object.keys(o.hovered)]),o.tapped&&(u=[...u,...Object.keys(o.tapped)]),o.focused&&(u=[...u,...Object.keys(o.focused)])),u}),c=R(()=>{const u={};Object.assign(u,t.value),i.value&&o.hovered&&Object.assign(u,o.hovered),a.value&&o.tapped&&Object.assign(u,o.tapped),s.value&&o.focused&&Object.assign(u,o.focused);for(const d in u)l.value.includes(d)||delete u[d];return u});o.hovered&&(En(e,"mouseenter",()=>i.value=!0),En(e,"mouseleave",()=>{i.value=!1,a.value=!1}),En(e,"mouseout",()=>{i.value=!1,a.value=!1})),o.tapped&&(Bue()&&(En(e,"mousedown",()=>a.value=!0),En(e,"mouseup",()=>a.value=!1)),$ue()&&(En(e,"pointerdown",()=>a.value=!0),En(e,"pointerup",()=>a.value=!1)),Iue()&&(En(e,"touchstart",()=>a.value=!0),En(e,"touchend",()=>a.value=!1))),o.focused&&(En(e,"focus",()=>s.value=!0),En(e,"blur",()=>s.value=!1)),Ye(c,n)}function Oue({set:e,target:t,variants:r,variant:n}){const o=W(r);Ye(()=>t,()=>{o&&(o.initial&&e("initial"),o.enter&&(n.value="enter"))},{immediate:!0,flush:"pre"})}function Rue({state:e,apply:t}){Ye(e,r=>{r&&t(r)},{immediate:!0})}function E8({target:e,variants:t,variant:r}){const n=W(t);n&&(n.visible||n.visibleOnce)&&Gle(e,([{isIntersecting:o}])=>{n.visible?o?r.value="visible":r.value="initial":n.visibleOnce&&(o&&r.value!=="visibleOnce"?r.value="visibleOnce":r.value||(r.value="initial"))})}function Lue(e,t={syncVariants:!0,lifeCycleHooks:!0,visibilityHooks:!0,eventListeners:!0}){t.lifeCycleHooks&&Oue(e),t.syncVariants&&Rue(e),t.visibilityHooks&&E8(e),t.eventListeners&&Due(e)}function T8(e={}){const t=Cn({...e}),r=z({});return Ye(t,()=>{const n={};for(const[o,i]of Object.entries(t)){const a=qm(o),s=_8(i,a);n[o]=s}r.value=n},{immediate:!0,deep:!0}),{state:t,style:r}}function Ym(e,t){Ye(()=>dl(e),r=>{r&&t(r)},{immediate:!0})}const Fue={x:"translateX",y:"translateY",z:"translateZ"};function k8(e={},t=!0){const r=Cn({...e}),n=z("");return Ye(r,o=>{let i="",a=!1;if(t&&(o.x||o.y||o.z)){const s=[o.x||0,o.y||0,o.z||0].map(ot.transform).join(",");i+=`translate3d(${s}) `,a=!0}for(const[s,l]of Object.entries(o)){if(t&&(s==="x"||s==="y"||s==="z"))continue;const c=qm(s),u=_8(l,c);i+=`${Fue[s]||s}(${u}) `}t&&!a&&(i+="translateZ(0px) "),n.value=i.trim()},{immediate:!0,deep:!0}),{state:r,transform:n}}const Mue=["","X","Y","Z"],zue=["perspective","translate","scale","rotate","skew"],A8=["transformPerspective","x","y","z"];zue.forEach(e=>{Mue.forEach(t=>{const r=e+t;A8.push(r)})});const Nue=new Set(A8);function Km(e){return Nue.has(e)}const Hue=new Set(["originX","originY","originZ"]);function P8(e){return Hue.has(e)}function jue(e){const t={},r={};return Object.entries(e).forEach(([n,o])=>{Km(n)||P8(n)?t[n]=o:r[n]=o}),{transform:t,style:r}}function $8(e){const{transform:t,style:r}=jue(e),{transform:n}=k8(t),{style:o}=T8(r);return n.value&&(o.value.transform=n.value),o.value}function Wue(e,t){let r,n;const{state:o,style:i}=T8();return Ym(e,a=>{n=a;for(const s of Object.keys(S8))a.style[s]===null||a.style[s]===""||Km(s)||P8(s)||(o[s]=a.style[s]);r&&Object.entries(r).forEach(([s,l])=>a.style[s]=l),t&&t(o)}),Ye(i,a=>{if(!n){r=a;return}for(const s in a)n.style[s]=a[s]},{immediate:!0}),{style:o}}function Uue(e){const t=e.trim().split(/\) |\)/);if(t.length===1)return{};const r=n=>n.endsWith("px")||n.endsWith("deg")?parseFloat(n):isNaN(Number(n))?Number(n):n;return t.reduce((n,o)=>{if(!o)return n;const[i,a]=o.split("("),l=a.split(",").map(u=>r(u.endsWith(")")?u.replace(")",""):u.trim())),c=l.length===1?l[0]:l;return{...n,[i]:c}},{})}function Vue(e,t){Object.entries(Uue(t)).forEach(([r,n])=>{const o=["x","y","z"];if(r==="translate3d"){if(n===0){o.forEach(i=>e[i]=0);return}n.forEach((i,a)=>e[o[a]]=i);return}if(n=parseFloat(n),r==="translateX"){e.x=n;return}if(r==="translateY"){e.y=n;return}if(r==="translateZ"){e.z=n;return}e[r]=n})}function que(e,t){let r,n;const{state:o,transform:i}=k8();return Ym(e,a=>{n=a,a.style.transform&&Vue(o,a.style.transform),r&&(a.style.transform=r),t&&t(o)}),Ye(i,a=>{if(!n){r=a;return}n.style.transform=a},{immediate:!0}),{transform:o}}function Gue(e,t){const r=Cn({}),n=a=>Object.entries(a).forEach(([s,l])=>r[s]=l),{style:o}=Wue(e,n),{transform:i}=que(e,n);return Ye(r,a=>{Object.entries(a).forEach(([s,l])=>{const c=Km(s)?i:o;c[s]&&c[s]===l||(c[s]=l)})},{immediate:!0,deep:!0}),Ym(e,()=>t&&n(t)),{motionProperties:r,style:o,transform:i}}function Yue(e={}){const t=W(e),r=z();return{state:R(()=>{if(r.value)return t[r.value]}),variant:r}}function I8(e,t={},r){const{motionProperties:n}=Gue(e),{variant:o,state:i}=Yue(t),a=Pue(n,t),s={target:e,variant:o,variants:t,state:i,motionProperties:n,...a};return Lue(s,r),s}const Kue=["initial","enter","leave","visible","visible-once","visibleOnce","hovered","tapped","focused","delay"];function Xue(e,t){const r=e.props?e.props:e.data&&e.data.attrs?e.data.attrs:{};r&&(r.variants&&Ju(r.variants)&&(t.value={...t.value,...r.variants}),Kue.forEach(n=>{if(n==="delay"){if(r&&r[n]&&typeof r[n]=="number"){const o=r[n];t&&t.value&&(t.value.enter&&(t.value.enter.transition||(t.value.enter.transition={}),t.value.enter.transition={delay:o,...t.value.enter.transition}),t.value.visible&&(t.value.visible.transition||(t.value.visible.transition={}),t.value.visible.transition={delay:o,...t.value.visible.transition}),t.value.visibleOnce&&(t.value.visibleOnce.transition||(t.value.visibleOnce.transition={}),t.value.visibleOnce.transition={delay:o,...t.value.visibleOnce.transition}))}return}if(r&&r[n]&&Ju(r[n])){const o=r[n];n==="visible-once"&&(n="visibleOnce"),t.value[n]=o}}))}function sh(e){return{created:(n,o,i)=>{const a=o.value&&typeof o.value=="string"?o.value:i.key;a&&oh[a]&&oh[a].stop();const s=z(e||{});typeof o.value=="object"&&(s.value=o.value),Xue(i,s);const c=I8(n,s,{eventListeners:!0,lifeCycleHooks:!0,syncVariants:!0,visibilityHooks:!1});n.motionInstance=c,a&&(oh[a]=c)},mounted:(n,o,i)=>{n.motionInstance&&E8(n.motionInstance)},getSSRProps(n,o){let{initial:i}=n.value||o&&(o==null?void 0:o.props)||{};i=W(i);const a=Ule((e==null?void 0:e.initial)||{},i||{});return!a||Object.keys(a).length===0?void 0:{style:$8(a)}}}}const Zue={initial:{opacity:0},enter:{opacity:1}},Que={initial:{opacity:0},visible:{opacity:1}},Jue={initial:{opacity:0},visibleOnce:{opacity:1}},ede={initial:{scale:0,opacity:0},enter:{scale:1,opacity:1}},tde={initial:{scale:0,opacity:0},visible:{scale:1,opacity:1}},rde={initial:{scale:0,opacity:0},visibleOnce:{scale:1,opacity:1}},nde={initial:{x:-100,rotate:90,opacity:0},enter:{x:0,rotate:0,opacity:1}},ode={initial:{x:-100,rotate:90,opacity:0},visible:{x:0,rotate:0,opacity:1}},ide={initial:{x:-100,rotate:90,opacity:0},visibleOnce:{x:0,rotate:0,opacity:1}},ade={initial:{x:100,rotate:-90,opacity:0},enter:{x:0,rotate:0,opacity:1}},sde={initial:{x:100,rotate:-90,opacity:0},visible:{x:0,rotate:0,opacity:1}},lde={initial:{x:100,rotate:-90,opacity:0},visibleOnce:{x:0,rotate:0,opacity:1}},cde={initial:{y:-100,rotate:-90,opacity:0},enter:{y:0,rotate:0,opacity:1}},ude={initial:{y:-100,rotate:-90,opacity:0},visible:{y:0,rotate:0,opacity:1}},dde={initial:{y:-100,rotate:-90,opacity:0},visibleOnce:{y:0,rotate:0,opacity:1}},fde={initial:{y:100,rotate:90,opacity:0},enter:{y:0,rotate:0,opacity:1}},hde={initial:{y:100,rotate:90,opacity:0},visible:{y:0,rotate:0,opacity:1}},pde={initial:{y:100,rotate:90,opacity:0},visibleOnce:{y:0,rotate:0,opacity:1}},gde={initial:{x:-100,opacity:0},enter:{x:0,opacity:1}},mde={initial:{x:-100,opacity:0},visible:{x:0,opacity:1}},vde={initial:{x:-100,opacity:0},visibleOnce:{x:0,opacity:1}},bde={initial:{x:100,opacity:0},enter:{x:0,opacity:1}},xde={initial:{x:100,opacity:0},visible:{x:0,opacity:1}},yde={initial:{x:100,opacity:0},visibleOnce:{x:0,opacity:1}},Cde={initial:{y:-100,opacity:0},enter:{y:0,opacity:1}},wde={initial:{y:-100,opacity:0},visible:{y:0,opacity:1}},Sde={initial:{y:-100,opacity:0},visibleOnce:{y:0,opacity:1}},_de={initial:{y:100,opacity:0},enter:{y:0,opacity:1}},Ede={initial:{y:100,opacity:0},visible:{y:0,opacity:1}},Tde={initial:{y:100,opacity:0},visibleOnce:{y:0,opacity:1}},Hp={__proto__:null,fade:Zue,fadeVisible:Que,fadeVisibleOnce:Jue,pop:ede,popVisible:tde,popVisibleOnce:rde,rollBottom:fde,rollLeft:nde,rollRight:ade,rollTop:cde,rollVisibleBottom:hde,rollVisibleLeft:ode,rollVisibleOnceBottom:pde,rollVisibleOnceLeft:ide,rollVisibleOnceRight:lde,rollVisibleOnceTop:dde,rollVisibleRight:sde,rollVisibleTop:ude,slideBottom:_de,slideLeft:gde,slideRight:bde,slideTop:Cde,slideVisibleBottom:Ede,slideVisibleLeft:mde,slideVisibleOnceBottom:Tde,slideVisibleOnceLeft:vde,slideVisibleOnceRight:yde,slideVisibleOnceTop:Sde,slideVisibleRight:xde,slideVisibleTop:wde},kde=me({props:{is:{type:[String,Object],required:!1},preset:{type:String,required:!1},instance:{type:Object,required:!1},variants:{type:Object,required:!1},initial:{type:Object,required:!1},enter:{type:Object,required:!1},leave:{type:Object,required:!1},visible:{type:Object,required:!1},visibleOnce:{type:Object,required:!1},hovered:{type:Object,required:!1},tapped:{type:Object,required:!1},focused:{type:Object,required:!1},delay:{type:[Number,String],required:!1}},setup(e){var s;const t=OT(),r=Cn({});if(!e.is&&!t.default)return()=>k("div",{});const n=R(()=>{let l;return e.preset&&(l=Hp[e.preset]),l}),o=R(()=>({initial:e.initial,enter:e.enter,leave:e.leave,visible:e.visible,visibleOnce:e.visibleOnce,hovered:e.hovered,tapped:e.tapped,focused:e.focused})),i=R(()=>{const l={...o.value,...n.value||{},...e.variants||{}};return e.delay&&(l.enter.transition={...l.enter.transition},l.enter.transition.delay=parseInt(e.delay)),l}),a=R(()=>{if(!e.is)return;let l=e.is;return typeof a.value=="string"&&!P6(l)&&(l=Au(l)),l});if(((s=process==null?void 0:process.env)==null?void 0:s.NODE_ENV)==="development"||process!=null&&process.dev){const l=c=>{var u;(u=c.variants)!=null&&u.initial&&c.set("initial"),setTimeout(()=>{var d,f,p;(d=c.variants)!=null&&d.enter&&c.apply("enter"),(f=c.variants)!=null&&f.visible&&c.apply("visible"),(p=c.variants)!=null&&p.visibleOnce&&c.apply("visibleOnce")},10)};ag(()=>Object.entries(r).forEach(([c,u])=>l(u)))}return{slots:t,component:a,motionConfig:i,instances:r}},render({slots:e,motionConfig:t,instances:r,component:n}){var s;const o=$8(t.initial||{}),i=(l,c)=>(l.props||(l.props={}),l.props.style=o,l.props.onVnodeMounted=({el:u})=>{const d=I8(u,t);r[c]=d},l);if(n){const l=k(n,void 0,e);return i(l,0),l}return(((s=e.default)==null?void 0:s.call(e))||[]).map((l,c)=>i(l,c))}});function Ade(e){const t="àáâäæãåāăąçćčđďèéêëēėęěğǵḧîïíīįìłḿñńǹňôöòóœøōõőṕŕřßśšşșťțûüùúūǘůűųẃẍÿýžźż·/_,:;",r="aaaaaaaaaacccddeeeeeeeegghiiiiiilmnnnnoooooooooprrsssssttuuuuuuuuuwxyyzzz------",n=new RegExp(t.split("").join("|"),"g");return e.toString().replace(/[A-Z]/g,o=>`-${o}`).toLowerCase().replace(/\s+/g,"-").replace(n,o=>r.charAt(t.indexOf(o))).replace(/&/g,"-and-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}const Pde={install(e,t){if(e.directive("motion",sh()),e.component("Motion",kde),!t||t&&!t.excludePresets)for(const r in Hp){const n=Hp[r];e.directive(`motion-${Ade(r)}`,sh(n))}if(t&&t.directives)for(const r in t.directives){const n=t.directives[r];!n.initial&&__DEV__&&console.warn(`Your directive v-motion-${r} is missing initial variant!`),e.directive(`motion-${r}`,sh(n))}}};window.$message=Sn();async function $de(){const e=qk(Soe);e.directive("focus",{mounted(t){t.focus()}}),e.use(oZ),e.use(Pde),Eoe(),Toe(),tre(e),yoe(e),await jle(e),e.mount("#app")}$de();export{ife as $,at as A,er as B,kt as C,zt as D,ge as E,je as F,ve as G,Tr as H,Er as I,Sn as J,Gd as K,St as L,Xi as M,Bn as N,st as O,yl as P,te as Q,de as R,Qt as S,Fr as T,We as U,rP as V,Lde as W,W as X,o9 as Y,Fe as Z,In as _,N as a,$r as a$,Ui as a0,Hr as a1,Ua as a2,Au as a3,Ow as a4,bn as a5,Zo as a6,Dn as a7,Dt as a8,mt as a9,vfe as aA,ag as aB,ai as aC,Ite as aD,Yde as aE,afe as aF,gfe as aG,dt as aH,Rde as aI,Kde as aJ,Ip as aK,Gde as aL,to as aM,Li as aN,or as aO,tc as aP,ec as aQ,rc as aR,Xa as aS,B4 as aT,ye as aU,Fde as aV,ms as aW,wo as aX,uM as aY,Og as aZ,Rr as a_,ii as aa,c4 as ab,tt as ac,Wde as ad,qt as ae,rl as af,Md as ag,iE as ah,oa as ai,Tte as aj,ofe as ak,Bde as al,Dde as am,$m as an,nm as ao,yo as ap,Jt as aq,rfe as ar,tfe as as,nfe as at,efe as au,YV as av,z3 as aw,uN as ax,cN as ay,Me as az,Q as b,cfe as b$,pM as b0,Bd as b1,ji as b2,YP as b3,Vde as b4,r_ as b5,Bl as b6,vd as b7,yU as b8,Hi as b9,gg as bA,Eo as bB,Za as bC,GP as bD,_d as bE,bg as bF,MN as bG,IA as bH,ta as bI,Cn as bJ,sfe as bK,w1 as bL,C1 as bM,Od as bN,yfe as bO,wse as bP,rre as bQ,K9 as bR,Du as bS,Zde as bT,Qe as bU,xfe as bV,bfe as bW,lfe as bX,S1 as bY,Vi as bZ,uq as b_,mfe as ba,uf as bb,qu as bc,br as bd,ffe as be,pfe as bf,hfe as bg,ufe as bh,iV as bi,ir as bj,fo as bk,yh as bl,Sh as bm,Ft as bn,FW as bo,Dd as bp,on as bq,bT as br,Hde as bs,an as bt,kh as bu,qP as bv,V2 as bw,nc as bx,mg as by,vg as bz,q as c,Yn as c$,Xde as c0,fM as c1,oV as c2,q2 as c3,qde as c4,tV as c5,E4 as c6,fr as c7,dfe as c8,j3 as c9,Kz as cA,Vz as cB,Yr as cC,QM as cD,jM as cE,jg as cF,mM as cG,Ig as cH,Ko as cI,$l as cJ,aA as cK,dg as cL,Fz as cM,Qde as cN,Kte as cO,Ode as cP,Nd as cQ,rW as cR,xs as cS,O2 as cT,zw as cU,Ta as cV,hb as cW,To as cX,Jn as cY,Nde as cZ,oc as c_,x5 as ca,Jde as cb,w7 as cc,Eb as cd,Ln as ce,Pd as cf,ea as cg,sn as ch,Dg as ci,OC as cj,bo as ck,Sj as cl,Ude as cm,pg as cn,Rn as co,vn as cp,Cs as cq,D_ as cr,Ga as cs,qa as ct,yd as cu,KS as cv,M_ as cw,jde as cx,j_ as cy,Nw as cz,Z as d,XA as d0,Lg as d1,f9 as d2,Hv as d3,Fu as d4,R_ as d5,Sl as d6,zde as d7,hg as e,qS as f,me as g,ze as h,wd as i,Ed as j,R as k,vs as l,Kt as m,tr as n,AT as o,bs as p,Ya as q,z as r,k as s,nt as t,ht as u,nP as v,Ye as w,go as x,yP as y,yW as z};
|