@i18n-micro/devtools-ui 1.2.2 → 1.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -7
- package/dist/composables/useI18nState.d.ts +16 -0
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.es.js +1961 -1938
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +7 -7
- package/dist/index.umd.js.map +1 -1
- package/dist/safe-path.d.ts +1 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/vite/plugin.mjs +44 -8
- package/dist/vite/plugin.mjs.map +1 -1
- package/package.json +21 -20
package/dist/index.umd.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
(function(We,eo){typeof exports=="object"&&typeof module<"u"?eo(exports,require("@i18n-micro/utils/merge-source"),require("@i18n-micro/utils/parse-path")):typeof define=="function"&&define.amd?define(["exports","@i18n-micro/utils/merge-source","@i18n-micro/utils/parse-path"],eo):(We=typeof globalThis<"u"?globalThis:We||self,eo(We.I18nDevToolsUI={},We.mergeSource,We.parsePath))})(this,(function(We,eo,Al){"use strict";var Ws={};function vt(e){const t=Object.create(null);for(const o of e.split(","))t[o]=1;return o=>o in t}const le=Ws.NODE_ENV!=="production"?Object.freeze({}):{},to=Ws.NODE_ENV!=="production"?Object.freeze([]):[],Se=()=>{},qs=()=>!1,mo=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Zo=e=>e.startsWith("onUpdate:"),ge=Object.assign,Rn=(e,t)=>{const o=e.indexOf(t);o>-1&&e.splice(o,1)},Il=Object.prototype.hasOwnProperty,ee=(e,t)=>Il.call(e,t),j=Array.isArray,Lt=e=>bo(e)==="[object Map]",oo=e=>bo(e)==="[object Set]",Js=e=>bo(e)==="[object Date]",z=e=>typeof e=="function",me=e=>typeof e=="string",Je=e=>typeof e=="symbol",se=e=>e!==null&&typeof e=="object",Hn=e=>(se(e)||z(e))&&z(e.then)&&z(e.catch),Gs=Object.prototype.toString,bo=e=>Gs.call(e),Un=e=>bo(e).slice(8,-1),Qo=e=>bo(e)==="[object Object]",Bn=e=>me(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,_o=vt(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Pl=vt("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),en=e=>{const t=Object.create(null);return(o=>t[o]||(t[o]=e(o)))},Ml=/-\w/g,Ve=en(e=>e.replace(Ml,t=>t.slice(1).toUpperCase())),jl=/\B([A-Z])/g,Re=en(e=>e.replace(jl,"-$1").toLowerCase()),Ft=en(e=>e.charAt(0).toUpperCase()+e.slice(1)),Rt=en(e=>e?`on${Ft(e)}`:""),Ct=(e,t)=>!Object.is(e,t),no=(e,...t)=>{for(let o=0;o<e.length;o++)e[o](...t)},tn=(e,t,o,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:o})},on=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Kn=e=>{const t=me(e)?Number(e):NaN;return isNaN(t)?e:t};let Ys;const vo=()=>Ys||(Ys=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function yt(e){if(j(e)){const t={};for(let o=0;o<e.length;o++){const n=e[o],s=me(n)?Hl(n):yt(n);if(s)for(const r in s)t[r]=s[r]}return t}else if(me(e)||se(e))return e}const Ll=/;(?![^(]*\))/g,Fl=/:([^]+)/,Rl=/\/\*[^]*?\*\//g;function Hl(e){const t={};return e.replace(Rl,"").split(Ll).forEach(o=>{if(o){const n=o.split(Fl);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function ye(e){let t="";if(me(e))t=e;else if(j(e))for(let o=0;o<e.length;o++){const n=ye(e[o]);n&&(t+=n+" ")}else if(se(e))for(const o in e)e[o]&&(t+=o+" ");return t.trim()}const Ul="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",Bl="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",Kl="annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics",zl=vt(Ul),Wl=vt(Bl),ql=vt(Kl),Jl=vt("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Xs(e){return!!e||e===""}function Gl(e,t){if(e.length!==t.length)return!1;let o=!0;for(let n=0;o&&n<e.length;n++)o=yo(e[n],t[n]);return o}function yo(e,t){if(e===t)return!0;let o=Js(e),n=Js(t);if(o||n)return o&&n?e.getTime()===t.getTime():!1;if(o=Je(e),n=Je(t),o||n)return e===t;if(o=j(e),n=j(t),o||n)return o&&n?Gl(e,t):!1;if(o=se(e),n=se(t),o||n){if(!o||!n)return!1;const s=Object.keys(e).length,r=Object.keys(t).length;if(s!==r)return!1;for(const i in e){const l=e.hasOwnProperty(i),a=t.hasOwnProperty(i);if(l&&!a||!l&&a||!yo(e[i],t[i]))return!1}}return String(e)===String(t)}function zn(e,t){return e.findIndex(o=>yo(o,t))}const Zs=e=>!!(e&&e.__v_isRef===!0),G=e=>me(e)?e:e==null?"":j(e)||se(e)&&(e.toString===Gs||!z(e.toString))?Zs(e)?G(e.value):JSON.stringify(e,Qs,2):String(e),Qs=(e,t)=>Zs(t)?Qs(e,t.value):Lt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((o,[n,s],r)=>(o[Wn(n,r)+" =>"]=s,o),{})}:oo(t)?{[`Set(${t.size})`]:[...t.values()].map(o=>Wn(o))}:Je(t)?Wn(t):se(t)&&!j(t)&&!Qo(t)?String(t):t,Wn=(e,t="")=>{var o;return Je(e)?`Symbol(${(o=e.description)!=null?o:t})`:e};var ue={};function Ge(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let He;class Yl{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=He,!t&&He&&(this.index=(He.scopes||(He.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,o;if(this.scopes)for(t=0,o=this.scopes.length;t<o;t++)this.scopes[t].pause();for(t=0,o=this.effects.length;t<o;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,o;if(this.scopes)for(t=0,o=this.scopes.length;t<o;t++)this.scopes[t].resume();for(t=0,o=this.effects.length;t<o;t++)this.effects[t].resume()}}run(t){if(this._active){const o=He;try{return He=this,t()}finally{He=o}}else ue.NODE_ENV!=="production"&&Ge("cannot run an inactive effect scope.")}on(){++this._on===1&&(this.prevScope=He,He=this)}off(){this._on>0&&--this._on===0&&(He=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let o,n;for(o=0,n=this.effects.length;o<n;o++)this.effects[o].stop();for(this.effects.length=0,o=0,n=this.cleanups.length;o<n;o++)this.cleanups[o]();if(this.cleanups.length=0,this.scopes){for(o=0,n=this.scopes.length;o<n;o++)this.scopes[o].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function Xl(){return He}let ae;const qn=new WeakSet;class er{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,He&&He.active&&He.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,qn.has(this)&&(qn.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||or(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,lr(this),nr(this);const t=ae,o=Ye;ae=this,Ye=!0;try{return this.fn()}finally{ue.NODE_ENV!=="production"&&ae!==this&&Ge("Active effect was not restored correctly - this is likely a Vue internal bug."),sr(this),ae=t,Ye=o,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Xn(t);this.deps=this.depsTail=void 0,lr(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?qn.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Yn(this)&&this.run()}get dirty(){return Yn(this)}}let tr=0,xo,wo;function or(e,t=!1){if(e.flags|=8,t){e.next=wo,wo=e;return}e.next=xo,xo=e}function Jn(){tr++}function Gn(){if(--tr>0)return;if(wo){let t=wo;for(wo=void 0;t;){const o=t.next;t.next=void 0,t.flags&=-9,t=o}}let e;for(;xo;){let t=xo;for(xo=void 0;t;){const o=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=o}}if(e)throw e}function nr(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function sr(e){let t,o=e.depsTail,n=o;for(;n;){const s=n.prevDep;n.version===-1?(n===o&&(o=s),Xn(n),Zl(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=s}e.deps=t,e.depsTail=o}function Yn(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(rr(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function rr(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Eo)||(e.globalVersion=Eo,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Yn(e))))return;e.flags|=2;const t=e.dep,o=ae,n=Ye;ae=e,Ye=!0;try{nr(e);const s=e.fn(e._value);(t.version===0||Ct(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{ae=o,Ye=n,sr(e),e.flags&=-3}}function Xn(e,t=!1){const{dep:o,prevSub:n,nextSub:s}=e;if(n&&(n.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=n,e.nextSub=void 0),ue.NODE_ENV!=="production"&&o.subsHead===e&&(o.subsHead=s),o.subs===e&&(o.subs=n,!n&&o.computed)){o.computed.flags&=-5;for(let r=o.computed.deps;r;r=r.nextDep)Xn(r,!0)}!t&&!--o.sc&&o.map&&o.map.delete(o.key)}function Zl(e){const{prevDep:t,nextDep:o}=e;t&&(t.nextDep=o,e.prevDep=void 0),o&&(o.prevDep=t,e.nextDep=void 0)}let Ye=!0;const ir=[];function Xe(){ir.push(Ye),Ye=!1}function Ze(){const e=ir.pop();Ye=e===void 0?!0:e}function lr(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const o=ae;ae=void 0;try{t()}finally{ae=o}}}let Eo=0;class Ql{constructor(t,o){this.sub=t,this.dep=o,this.version=o.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Zn{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0,ue.NODE_ENV!=="production"&&(this.subsHead=void 0)}track(t){if(!ae||!Ye||ae===this.computed)return;let o=this.activeLink;if(o===void 0||o.sub!==ae)o=this.activeLink=new Ql(ae,this),ae.deps?(o.prevDep=ae.depsTail,ae.depsTail.nextDep=o,ae.depsTail=o):ae.deps=ae.depsTail=o,ar(o);else if(o.version===-1&&(o.version=this.version,o.nextDep)){const n=o.nextDep;n.prevDep=o.prevDep,o.prevDep&&(o.prevDep.nextDep=n),o.prevDep=ae.depsTail,o.nextDep=void 0,ae.depsTail.nextDep=o,ae.depsTail=o,ae.deps===o&&(ae.deps=n)}return ue.NODE_ENV!=="production"&&ae.onTrack&&ae.onTrack(ge({effect:ae},t)),o}trigger(t){this.version++,Eo++,this.notify(t)}notify(t){Jn();try{if(ue.NODE_ENV!=="production")for(let o=this.subsHead;o;o=o.nextSub)o.sub.onTrigger&&!(o.sub.flags&8)&&o.sub.onTrigger(ge({effect:o.sub},t));for(let o=this.subs;o;o=o.prevSub)o.sub.notify()&&o.sub.dep.notify()}finally{Gn()}}}function ar(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)ar(n)}const o=e.dep.subs;o!==e&&(e.prevSub=o,o&&(o.nextSub=e)),ue.NODE_ENV!=="production"&&e.dep.subsHead===void 0&&(e.dep.subsHead=e),e.dep.subs=e}}const Qn=new WeakMap,Ht=Symbol(ue.NODE_ENV!=="production"?"Object iterate":""),es=Symbol(ue.NODE_ENV!=="production"?"Map keys iterate":""),ko=Symbol(ue.NODE_ENV!=="production"?"Array iterate":"");function Ce(e,t,o){if(Ye&&ae){let n=Qn.get(e);n||Qn.set(e,n=new Map);let s=n.get(o);s||(n.set(o,s=new Zn),s.map=n,s.key=o),ue.NODE_ENV!=="production"?s.track({target:e,type:t,key:o}):s.track()}}function it(e,t,o,n,s,r){const i=Qn.get(e);if(!i){Eo++;return}const l=a=>{a&&(ue.NODE_ENV!=="production"?a.trigger({target:e,type:t,key:o,newValue:n,oldValue:s,oldTarget:r}):a.trigger())};if(Jn(),t==="clear")i.forEach(l);else{const a=j(e),u=a&&Bn(o);if(a&&o==="length"){const c=Number(n);i.forEach((d,p)=>{(p==="length"||p===ko||!Je(p)&&p>=c)&&l(d)})}else switch((o!==void 0||i.has(void 0))&&l(i.get(o)),u&&l(i.get(ko)),t){case"add":a?u&&l(i.get("length")):(l(i.get(Ht)),Lt(e)&&l(i.get(es)));break;case"delete":a||(l(i.get(Ht)),Lt(e)&&l(i.get(es)));break;case"set":Lt(e)&&l(i.get(Ht));break}}Gn()}function so(e){const t=X(e);return t===e?t:(Ce(t,"iterate",ko),Ie(e)?t:t.map(et))}function nn(e){return Ce(e=X(e),"iterate",ko),e}function Tt(e,t){return Qe(e)?Dt(e)?ro(et(t)):ro(t):et(t)}const ea={__proto__:null,[Symbol.iterator](){return ts(this,Symbol.iterator,e=>Tt(this,e))},concat(...e){return so(this).concat(...e.map(t=>j(t)?so(t):t))},entries(){return ts(this,"entries",e=>(e[1]=Tt(this,e[1]),e))},every(e,t){return xt(this,"every",e,t,void 0,arguments)},filter(e,t){return xt(this,"filter",e,t,o=>o.map(n=>Tt(this,n)),arguments)},find(e,t){return xt(this,"find",e,t,o=>Tt(this,o),arguments)},findIndex(e,t){return xt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return xt(this,"findLast",e,t,o=>Tt(this,o),arguments)},findLastIndex(e,t){return xt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return xt(this,"forEach",e,t,void 0,arguments)},includes(...e){return os(this,"includes",e)},indexOf(...e){return os(this,"indexOf",e)},join(e){return so(this).join(e)},lastIndexOf(...e){return os(this,"lastIndexOf",e)},map(e,t){return xt(this,"map",e,t,void 0,arguments)},pop(){return No(this,"pop")},push(...e){return No(this,"push",e)},reduce(e,...t){return cr(this,"reduce",e,t)},reduceRight(e,...t){return cr(this,"reduceRight",e,t)},shift(){return No(this,"shift")},some(e,t){return xt(this,"some",e,t,void 0,arguments)},splice(...e){return No(this,"splice",e)},toReversed(){return so(this).toReversed()},toSorted(e){return so(this).toSorted(e)},toSpliced(...e){return so(this).toSpliced(...e)},unshift(...e){return No(this,"unshift",e)},values(){return ts(this,"values",e=>Tt(this,e))}};function ts(e,t,o){const n=nn(e),s=n[t]();return n!==e&&!Ie(e)&&(s._next=s.next,s.next=()=>{const r=s._next();return r.done||(r.value=o(r.value)),r}),s}const ta=Array.prototype;function xt(e,t,o,n,s,r){const i=nn(e),l=i!==e&&!Ie(e),a=i[t];if(a!==ta[t]){const d=a.apply(e,r);return l?et(d):d}let u=o;i!==e&&(l?u=function(d,p){return o.call(this,Tt(e,d),p,e)}:o.length>2&&(u=function(d,p){return o.call(this,d,p,e)}));const c=a.call(i,u,n);return l&&s?s(c):c}function cr(e,t,o,n){const s=nn(e);let r=o;return s!==e&&(Ie(e)?o.length>3&&(r=function(i,l,a){return o.call(this,i,l,a,e)}):r=function(i,l,a){return o.call(this,i,Tt(e,l),a,e)}),s[t](r,...n)}function os(e,t,o){const n=X(e);Ce(n,"iterate",ko);const s=n[t](...o);return(s===-1||s===!1)&&dn(o[0])?(o[0]=X(o[0]),n[t](...o)):s}function No(e,t,o=[]){Xe(),Jn();const n=X(e)[t].apply(e,o);return Gn(),Ze(),n}const oa=vt("__proto__,__v_isRef,__isVue"),dr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Je));function na(e){Je(e)||(e=String(e));const t=X(this);return Ce(t,"has",e),t.hasOwnProperty(e)}class ur{constructor(t=!1,o=!1){this._isReadonly=t,this._isShallow=o}get(t,o,n){if(o==="__v_skip")return t.__v_skip;const s=this._isReadonly,r=this._isShallow;if(o==="__v_isReactive")return!s;if(o==="__v_isReadonly")return s;if(o==="__v_isShallow")return r;if(o==="__v_raw")return n===(s?r?_r:br:r?mr:gr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const i=j(t);if(!s){let a;if(i&&(a=ea[o]))return a;if(o==="hasOwnProperty")return na}const l=Reflect.get(t,o,Ne(t)?t:n);if((Je(o)?dr.has(o):oa(o))||(s||Ce(t,"get",o),r))return l;if(Ne(l)){const a=i&&Bn(o)?l:l.value;return s&&se(a)?an(a):a}return se(l)?s?an(l):ss(l):l}}class fr extends ur{constructor(t=!1){super(!1,t)}set(t,o,n,s){let r=t[o];const i=j(t)&&Bn(o);if(!this._isShallow){const u=Qe(r);if(!Ie(n)&&!Qe(n)&&(r=X(r),n=X(n)),!i&&Ne(r)&&!Ne(n))return u?(ue.NODE_ENV!=="production"&&Ge(`Set operation on key "${String(o)}" failed: target is readonly.`,t[o]),!0):(r.value=n,!0)}const l=i?Number(o)<t.length:ee(t,o),a=Reflect.set(t,o,n,Ne(t)?t:s);return t===X(s)&&(l?Ct(n,r)&&it(t,"set",o,n,r):it(t,"add",o,n)),a}deleteProperty(t,o){const n=ee(t,o),s=t[o],r=Reflect.deleteProperty(t,o);return r&&n&&it(t,"delete",o,void 0,s),r}has(t,o){const n=Reflect.has(t,o);return(!Je(o)||!dr.has(o))&&Ce(t,"has",o),n}ownKeys(t){return Ce(t,"iterate",j(t)?"length":Ht),Reflect.ownKeys(t)}}class pr extends ur{constructor(t=!1){super(!0,t)}set(t,o){return ue.NODE_ENV!=="production"&&Ge(`Set operation on key "${String(o)}" failed: target is readonly.`,t),!0}deleteProperty(t,o){return ue.NODE_ENV!=="production"&&Ge(`Delete operation on key "${String(o)}" failed: target is readonly.`,t),!0}}const sa=new fr,ra=new pr,ia=new fr(!0),la=new pr(!0),ns=e=>e,sn=e=>Reflect.getPrototypeOf(e);function aa(e,t,o){return function(...n){const s=this.__v_raw,r=X(s),i=Lt(r),l=e==="entries"||e===Symbol.iterator&&i,a=e==="keys"&&i,u=s[e](...n),c=o?ns:t?ro:et;return!t&&Ce(r,"iterate",a?es:Ht),{next(){const{value:d,done:p}=u.next();return p?{value:d,done:p}:{value:l?[c(d[0]),c(d[1])]:c(d),done:p}},[Symbol.iterator](){return this}}}}function rn(e){return function(...t){if(ue.NODE_ENV!=="production"){const o=t[0]?`on key "${t[0]}" `:"";Ge(`${Ft(e)} operation ${o}failed: target is readonly.`,X(this))}return e==="delete"?!1:e==="clear"?void 0:this}}function ca(e,t){const o={get(s){const r=this.__v_raw,i=X(r),l=X(s);e||(Ct(s,l)&&Ce(i,"get",s),Ce(i,"get",l));const{has:a}=sn(i),u=t?ns:e?ro:et;if(a.call(i,s))return u(r.get(s));if(a.call(i,l))return u(r.get(l));r!==i&&r.get(s)},get size(){const s=this.__v_raw;return!e&&Ce(X(s),"iterate",Ht),s.size},has(s){const r=this.__v_raw,i=X(r),l=X(s);return e||(Ct(s,l)&&Ce(i,"has",s),Ce(i,"has",l)),s===l?r.has(s):r.has(s)||r.has(l)},forEach(s,r){const i=this,l=i.__v_raw,a=X(l),u=t?ns:e?ro:et;return!e&&Ce(a,"iterate",Ht),l.forEach((c,d)=>s.call(r,u(c),u(d),i))}};return ge(o,e?{add:rn("add"),set:rn("set"),delete:rn("delete"),clear:rn("clear")}:{add(s){!t&&!Ie(s)&&!Qe(s)&&(s=X(s));const r=X(this);return sn(r).has.call(r,s)||(r.add(s),it(r,"add",s,s)),this},set(s,r){!t&&!Ie(r)&&!Qe(r)&&(r=X(r));const i=X(this),{has:l,get:a}=sn(i);let u=l.call(i,s);u?ue.NODE_ENV!=="production"&&hr(i,l,s):(s=X(s),u=l.call(i,s));const c=a.call(i,s);return i.set(s,r),u?Ct(r,c)&&it(i,"set",s,r,c):it(i,"add",s,r),this},delete(s){const r=X(this),{has:i,get:l}=sn(r);let a=i.call(r,s);a?ue.NODE_ENV!=="production"&&hr(r,i,s):(s=X(s),a=i.call(r,s));const u=l?l.call(r,s):void 0,c=r.delete(s);return a&&it(r,"delete",s,void 0,u),c},clear(){const s=X(this),r=s.size!==0,i=ue.NODE_ENV!=="production"?Lt(s)?new Map(s):new Set(s):void 0,l=s.clear();return r&&it(s,"clear",void 0,void 0,i),l}}),["keys","values","entries",Symbol.iterator].forEach(s=>{o[s]=aa(s,e,t)}),o}function ln(e,t){const o=ca(e,t);return(n,s,r)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?n:Reflect.get(ee(o,s)&&s in n?o:n,s,r)}const da={get:ln(!1,!1)},ua={get:ln(!1,!0)},fa={get:ln(!0,!1)},pa={get:ln(!0,!0)};function hr(e,t,o){const n=X(o);if(n!==o&&t.call(e,n)){const s=Un(e);Ge(`Reactive ${s} contains both the raw and reactive versions of the same object${s==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const gr=new WeakMap,mr=new WeakMap,br=new WeakMap,_r=new WeakMap;function ha(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ga(e){return e.__v_skip||!Object.isExtensible(e)?0:ha(Un(e))}function ss(e){return Qe(e)?e:cn(e,!1,sa,da,gr)}function ma(e){return cn(e,!1,ia,ua,mr)}function an(e){return cn(e,!0,ra,fa,br)}function lt(e){return cn(e,!0,la,pa,_r)}function cn(e,t,o,n,s){if(!se(e))return ue.NODE_ENV!=="production"&&Ge(`value cannot be made ${t?"readonly":"reactive"}: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=ga(e);if(r===0)return e;const i=s.get(e);if(i)return i;const l=new Proxy(e,r===2?n:o);return s.set(e,l),l}function Dt(e){return Qe(e)?Dt(e.__v_raw):!!(e&&e.__v_isReactive)}function Qe(e){return!!(e&&e.__v_isReadonly)}function Ie(e){return!!(e&&e.__v_isShallow)}function dn(e){return e?!!e.__v_raw:!1}function X(e){const t=e&&e.__v_raw;return t?X(t):e}function ba(e){return!ee(e,"__v_skip")&&Object.isExtensible(e)&&tn(e,"__v_skip",!0),e}const et=e=>se(e)?ss(e):e,ro=e=>se(e)?an(e):e;function Ne(e){return e?e.__v_isRef===!0:!1}function re(e){return _a(e,!1)}function _a(e,t){return Ne(e)?e:new va(e,t)}class va{constructor(t,o){this.dep=new Zn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=o?t:X(t),this._value=o?t:et(t),this.__v_isShallow=o}get value(){return ue.NODE_ENV!=="production"?this.dep.track({target:this,type:"get",key:"value"}):this.dep.track(),this._value}set value(t){const o=this._rawValue,n=this.__v_isShallow||Ie(t)||Qe(t);t=n?t:X(t),Ct(t,o)&&(this._rawValue=t,this._value=n?t:et(t),ue.NODE_ENV!=="production"?this.dep.trigger({target:this,type:"set",key:"value",newValue:t,oldValue:o}):this.dep.trigger())}}function fe(e){return Ne(e)?e.value:e}const ya={get:(e,t,o)=>t==="__v_raw"?e:fe(Reflect.get(e,t,o)),set:(e,t,o,n)=>{const s=e[t];return Ne(s)&&!Ne(o)?(s.value=o,!0):Reflect.set(e,t,o,n)}};function vr(e){return Dt(e)?e:new Proxy(e,ya)}class xa{constructor(t,o,n){this.fn=t,this.setter=o,this._value=void 0,this.dep=new Zn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Eo-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!o,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&ae!==this)return or(this,!0),!0}get value(){const t=ue.NODE_ENV!=="production"?this.dep.track({target:this,type:"get",key:"value"}):this.dep.track();return rr(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter?this.setter(t):ue.NODE_ENV!=="production"&&Ge("Write operation failed: computed value is readonly")}}function wa(e,t,o=!1){let n,s;return z(e)?n=e:(n=e.get,s=e.set),new xa(n,s,o)}const un={},fn=new WeakMap;let Ut;function Ea(e,t=!1,o=Ut){if(o){let n=fn.get(o);n||fn.set(o,n=[]),n.push(e)}else ue.NODE_ENV!=="production"&&!t&&Ge("onWatcherCleanup() was called when there was no active watcher to associate with.")}function ka(e,t,o=le){const{immediate:n,deep:s,once:r,scheduler:i,augmentJob:l,call:a}=o,u=I=>{(o.onWarn||Ge)("Invalid watch source: ",I,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},c=I=>s?I:Ie(I)||s===!1||s===0?wt(I,1):wt(I);let d,p,b,N,v=!1,F=!1;if(Ne(e)?(p=()=>e.value,v=Ie(e)):Dt(e)?(p=()=>c(e),v=!0):j(e)?(F=!0,v=e.some(I=>Dt(I)||Ie(I)),p=()=>e.map(I=>{if(Ne(I))return I.value;if(Dt(I))return c(I);if(z(I))return a?a(I,2):I();ue.NODE_ENV!=="production"&&u(I)})):z(e)?t?p=a?()=>a(e,2):e:p=()=>{if(b){Xe();try{b()}finally{Ze()}}const I=Ut;Ut=d;try{return a?a(e,3,[N]):e(N)}finally{Ut=I}}:(p=Se,ue.NODE_ENV!=="production"&&u(e)),t&&s){const I=p,L=s===!0?1/0:s;p=()=>wt(I(),L)}const R=Xl(),H=()=>{d.stop(),R&&R.active&&Rn(R.effects,d)};if(r&&t){const I=t;t=(...L)=>{I(...L),H()}}let B=F?new Array(e.length).fill(un):un;const pe=I=>{if(!(!(d.flags&1)||!d.dirty&&!I))if(t){const L=d.run();if(s||v||(F?L.some((q,U)=>Ct(q,B[U])):Ct(L,B))){b&&b();const q=Ut;Ut=d;try{const U=[L,B===un?void 0:F&&B[0]===un?[]:B,N];B=L,a?a(t,3,U):t(...U)}finally{Ut=q}}}else d.run()};return l&&l(pe),d=new er(p),d.scheduler=i?()=>i(pe,!1):pe,N=I=>Ea(I,!1,d),b=d.onStop=()=>{const I=fn.get(d);if(I){if(a)a(I,4);else for(const L of I)L();fn.delete(d)}},ue.NODE_ENV!=="production"&&(d.onTrack=o.onTrack,d.onTrigger=o.onTrigger),t?n?pe(!0):B=d.run():i?i(pe.bind(null,!0),!0):d.run(),H.pause=d.pause.bind(d),H.resume=d.resume.bind(d),H.stop=H,H}function wt(e,t=1/0,o){if(t<=0||!se(e)||e.__v_skip||(o=o||new Map,(o.get(e)||0)>=t))return e;if(o.set(e,t),t--,Ne(e))wt(e.value,t,o);else if(j(e))for(let n=0;n<e.length;n++)wt(e[n],t,o);else if(oo(e)||Lt(e))e.forEach(n=>{wt(n,t,o)});else if(Qo(e)){for(const n in e)wt(e[n],t,o);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&wt(e[n],t,o)}return e}var m={};const Bt=[];function pn(e){Bt.push(e)}function hn(){Bt.pop()}let rs=!1;function O(e,...t){if(rs)return;rs=!0,Xe();const o=Bt.length?Bt[Bt.length-1].component:null,n=o&&o.appContext.config.warnHandler,s=Na();if(n)io(n,o,11,[e+t.map(r=>{var i,l;return(l=(i=r.toString)==null?void 0:i.call(r))!=null?l:JSON.stringify(r)}).join(""),o&&o.proxy,s.map(({vnode:r})=>`at <${Bo(o,r.type)}>`).join(`
|
|
1
|
+
(function(We,oo){typeof exports=="object"&&typeof module<"u"?oo(exports,require("@i18n-micro/utils/merge-source"),require("@i18n-micro/utils/parse-path")):typeof define=="function"&&define.amd?define(["exports","@i18n-micro/utils/merge-source","@i18n-micro/utils/parse-path"],oo):(We=typeof globalThis<"u"?globalThis:We||self,oo(We.I18nDevToolsUI={},We.mergeSource,We.parsePath))})(this,(function(We,oo,Al){"use strict";var qs={};function vt(e){const t=Object.create(null);for(const o of e.split(","))t[o]=1;return o=>o in t}const de=qs.NODE_ENV!=="production"?Object.freeze({}):{},no=qs.NODE_ENV!=="production"?Object.freeze([]):[],Ce=()=>{},Js=()=>!1,bo=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Qo=e=>e.startsWith("onUpdate:"),_e=Object.assign,Hn=(e,t)=>{const o=e.indexOf(t);o>-1&&e.splice(o,1)},Il=Object.prototype.hasOwnProperty,oe=(e,t)=>Il.call(e,t),j=Array.isArray,Ht=e=>_o(e)==="[object Map]",so=e=>_o(e)==="[object Set]",Gs=e=>_o(e)==="[object Date]",z=e=>typeof e=="function",ve=e=>typeof e=="string",Ye=e=>typeof e=="symbol",ce=e=>e!==null&&typeof e=="object",Un=e=>(ce(e)||z(e))&&z(e.then)&&z(e.catch),Ys=Object.prototype.toString,_o=e=>Ys.call(e),Bn=e=>_o(e).slice(8,-1),en=e=>_o(e)==="[object Object]",Kn=e=>ve(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,vo=vt(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Pl=vt("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),tn=e=>{const t=Object.create(null);return(o=>t[o]||(t[o]=e(o)))},Ml=/-\w/g,Ve=tn(e=>e.replace(Ml,t=>t.slice(1).toUpperCase())),jl=/\B([A-Z])/g,Re=tn(e=>e.replace(jl,"-$1").toLowerCase()),Ut=tn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Bt=tn(e=>e?`on${Ut(e)}`:""),Tt=(e,t)=>!Object.is(e,t),ro=(e,...t)=>{for(let o=0;o<e.length;o++)e[o](...t)},on=(e,t,o,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:o})},nn=e=>{const t=parseFloat(e);return isNaN(t)?e:t},zn=e=>{const t=ve(e)?Number(e):NaN;return isNaN(t)?e:t};let Xs;const yo=()=>Xs||(Xs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function yt(e){if(j(e)){const t={};for(let o=0;o<e.length;o++){const n=e[o],s=ve(n)?Hl(n):yt(n);if(s)for(const r in s)t[r]=s[r]}return t}else if(ve(e)||ce(e))return e}const Ll=/;(?![^(]*\))/g,Fl=/:([^]+)/,Rl=/\/\*[^]*?\*\//g;function Hl(e){const t={};return e.replace(Rl,"").split(Ll).forEach(o=>{if(o){const n=o.split(Fl);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Ee(e){let t="";if(ve(e))t=e;else if(j(e))for(let o=0;o<e.length;o++){const n=Ee(e[o]);n&&(t+=n+" ")}else if(ce(e))for(const o in e)e[o]&&(t+=o+" ");return t.trim()}const Ul="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",Bl="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",Kl="annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics",zl=vt(Ul),Wl=vt(Bl),ql=vt(Kl),Jl=vt("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Zs(e){return!!e||e===""}function Gl(e,t){if(e.length!==t.length)return!1;let o=!0;for(let n=0;o&&n<e.length;n++)o=xo(e[n],t[n]);return o}function xo(e,t){if(e===t)return!0;let o=Gs(e),n=Gs(t);if(o||n)return o&&n?e.getTime()===t.getTime():!1;if(o=Ye(e),n=Ye(t),o||n)return e===t;if(o=j(e),n=j(t),o||n)return o&&n?Gl(e,t):!1;if(o=ce(e),n=ce(t),o||n){if(!o||!n)return!1;const s=Object.keys(e).length,r=Object.keys(t).length;if(s!==r)return!1;for(const i in e){const l=e.hasOwnProperty(i),a=t.hasOwnProperty(i);if(l&&!a||!l&&a||!xo(e[i],t[i]))return!1}}return String(e)===String(t)}function Wn(e,t){return e.findIndex(o=>xo(o,t))}const Qs=e=>!!(e&&e.__v_isRef===!0),J=e=>ve(e)?e:e==null?"":j(e)||ce(e)&&(e.toString===Ys||!z(e.toString))?Qs(e)?J(e.value):JSON.stringify(e,er,2):String(e),er=(e,t)=>Qs(t)?er(e,t.value):Ht(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((o,[n,s],r)=>(o[qn(n,r)+" =>"]=s,o),{})}:so(t)?{[`Set(${t.size})`]:[...t.values()].map(o=>qn(o))}:Ye(t)?qn(t):ce(t)&&!j(t)&&!en(t)?String(t):t,qn=(e,t="")=>{var o;return Ye(e)?`Symbol(${(o=e.description)!=null?o:t})`:e};var he={};function Xe(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let He;class Yl{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=He,!t&&He&&(this.index=(He.scopes||(He.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,o;if(this.scopes)for(t=0,o=this.scopes.length;t<o;t++)this.scopes[t].pause();for(t=0,o=this.effects.length;t<o;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,o;if(this.scopes)for(t=0,o=this.scopes.length;t<o;t++)this.scopes[t].resume();for(t=0,o=this.effects.length;t<o;t++)this.effects[t].resume()}}run(t){if(this._active){const o=He;try{return He=this,t()}finally{He=o}}else he.NODE_ENV!=="production"&&Xe("cannot run an inactive effect scope.")}on(){++this._on===1&&(this.prevScope=He,He=this)}off(){this._on>0&&--this._on===0&&(He=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let o,n;for(o=0,n=this.effects.length;o<n;o++)this.effects[o].stop();for(this.effects.length=0,o=0,n=this.cleanups.length;o<n;o++)this.cleanups[o]();if(this.cleanups.length=0,this.scopes){for(o=0,n=this.scopes.length;o<n;o++)this.scopes[o].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function Xl(){return He}let ue;const Jn=new WeakSet;class tr{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,He&&He.active&&He.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Jn.has(this)&&(Jn.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||nr(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,ar(this),sr(this);const t=ue,o=Ze;ue=this,Ze=!0;try{return this.fn()}finally{he.NODE_ENV!=="production"&&ue!==this&&Xe("Active effect was not restored correctly - this is likely a Vue internal bug."),rr(this),ue=t,Ze=o,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Zn(t);this.deps=this.depsTail=void 0,ar(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Jn.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Xn(this)&&this.run()}get dirty(){return Xn(this)}}let or=0,wo,Eo;function nr(e,t=!1){if(e.flags|=8,t){e.next=Eo,Eo=e;return}e.next=wo,wo=e}function Gn(){or++}function Yn(){if(--or>0)return;if(Eo){let t=Eo;for(Eo=void 0;t;){const o=t.next;t.next=void 0,t.flags&=-9,t=o}}let e;for(;wo;){let t=wo;for(wo=void 0;t;){const o=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=o}}if(e)throw e}function sr(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function rr(e){let t,o=e.depsTail,n=o;for(;n;){const s=n.prevDep;n.version===-1?(n===o&&(o=s),Zn(n),Zl(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=s}e.deps=t,e.depsTail=o}function Xn(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ir(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ir(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ko)||(e.globalVersion=ko,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Xn(e))))return;e.flags|=2;const t=e.dep,o=ue,n=Ze;ue=e,Ze=!0;try{sr(e);const s=e.fn(e._value);(t.version===0||Tt(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{ue=o,Ze=n,rr(e),e.flags&=-3}}function Zn(e,t=!1){const{dep:o,prevSub:n,nextSub:s}=e;if(n&&(n.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=n,e.nextSub=void 0),he.NODE_ENV!=="production"&&o.subsHead===e&&(o.subsHead=s),o.subs===e&&(o.subs=n,!n&&o.computed)){o.computed.flags&=-5;for(let r=o.computed.deps;r;r=r.nextDep)Zn(r,!0)}!t&&!--o.sc&&o.map&&o.map.delete(o.key)}function Zl(e){const{prevDep:t,nextDep:o}=e;t&&(t.nextDep=o,e.prevDep=void 0),o&&(o.prevDep=t,e.nextDep=void 0)}let Ze=!0;const lr=[];function Qe(){lr.push(Ze),Ze=!1}function et(){const e=lr.pop();Ze=e===void 0?!0:e}function ar(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const o=ue;ue=void 0;try{t()}finally{ue=o}}}let ko=0;class Ql{constructor(t,o){this.sub=t,this.dep=o,this.version=o.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Qn{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0,he.NODE_ENV!=="production"&&(this.subsHead=void 0)}track(t){if(!ue||!Ze||ue===this.computed)return;let o=this.activeLink;if(o===void 0||o.sub!==ue)o=this.activeLink=new Ql(ue,this),ue.deps?(o.prevDep=ue.depsTail,ue.depsTail.nextDep=o,ue.depsTail=o):ue.deps=ue.depsTail=o,cr(o);else if(o.version===-1&&(o.version=this.version,o.nextDep)){const n=o.nextDep;n.prevDep=o.prevDep,o.prevDep&&(o.prevDep.nextDep=n),o.prevDep=ue.depsTail,o.nextDep=void 0,ue.depsTail.nextDep=o,ue.depsTail=o,ue.deps===o&&(ue.deps=n)}return he.NODE_ENV!=="production"&&ue.onTrack&&ue.onTrack(_e({effect:ue},t)),o}trigger(t){this.version++,ko++,this.notify(t)}notify(t){Gn();try{if(he.NODE_ENV!=="production")for(let o=this.subsHead;o;o=o.nextSub)o.sub.onTrigger&&!(o.sub.flags&8)&&o.sub.onTrigger(_e({effect:o.sub},t));for(let o=this.subs;o;o=o.prevSub)o.sub.notify()&&o.sub.dep.notify()}finally{Yn()}}}function cr(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)cr(n)}const o=e.dep.subs;o!==e&&(e.prevSub=o,o&&(o.nextSub=e)),he.NODE_ENV!=="production"&&e.dep.subsHead===void 0&&(e.dep.subsHead=e),e.dep.subs=e}}const es=new WeakMap,Kt=Symbol(he.NODE_ENV!=="production"?"Object iterate":""),ts=Symbol(he.NODE_ENV!=="production"?"Map keys iterate":""),No=Symbol(he.NODE_ENV!=="production"?"Array iterate":"");function Te(e,t,o){if(Ze&&ue){let n=es.get(e);n||es.set(e,n=new Map);let s=n.get(o);s||(n.set(o,s=new Qn),s.map=n,s.key=o),he.NODE_ENV!=="production"?s.track({target:e,type:t,key:o}):s.track()}}function lt(e,t,o,n,s,r){const i=es.get(e);if(!i){ko++;return}const l=a=>{a&&(he.NODE_ENV!=="production"?a.trigger({target:e,type:t,key:o,newValue:n,oldValue:s,oldTarget:r}):a.trigger())};if(Gn(),t==="clear")i.forEach(l);else{const a=j(e),u=a&&Kn(o);if(a&&o==="length"){const c=Number(n);i.forEach((d,p)=>{(p==="length"||p===No||!Ye(p)&&p>=c)&&l(d)})}else switch((o!==void 0||i.has(void 0))&&l(i.get(o)),u&&l(i.get(No)),t){case"add":a?u&&l(i.get("length")):(l(i.get(Kt)),Ht(e)&&l(i.get(ts)));break;case"delete":a||(l(i.get(Kt)),Ht(e)&&l(i.get(ts)));break;case"set":Ht(e)&&l(i.get(Kt));break}}Yn()}function io(e){const t=Z(e);return t===e?t:(Te(t,"iterate",No),Ie(e)?t:t.map(ot))}function sn(e){return Te(e=Z(e),"iterate",No),e}function Dt(e,t){return tt(e)?Vt(e)?lo(ot(t)):lo(t):ot(t)}const ea={__proto__:null,[Symbol.iterator](){return os(this,Symbol.iterator,e=>Dt(this,e))},concat(...e){return io(this).concat(...e.map(t=>j(t)?io(t):t))},entries(){return os(this,"entries",e=>(e[1]=Dt(this,e[1]),e))},every(e,t){return xt(this,"every",e,t,void 0,arguments)},filter(e,t){return xt(this,"filter",e,t,o=>o.map(n=>Dt(this,n)),arguments)},find(e,t){return xt(this,"find",e,t,o=>Dt(this,o),arguments)},findIndex(e,t){return xt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return xt(this,"findLast",e,t,o=>Dt(this,o),arguments)},findLastIndex(e,t){return xt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return xt(this,"forEach",e,t,void 0,arguments)},includes(...e){return ns(this,"includes",e)},indexOf(...e){return ns(this,"indexOf",e)},join(e){return io(this).join(e)},lastIndexOf(...e){return ns(this,"lastIndexOf",e)},map(e,t){return xt(this,"map",e,t,void 0,arguments)},pop(){return Oo(this,"pop")},push(...e){return Oo(this,"push",e)},reduce(e,...t){return dr(this,"reduce",e,t)},reduceRight(e,...t){return dr(this,"reduceRight",e,t)},shift(){return Oo(this,"shift")},some(e,t){return xt(this,"some",e,t,void 0,arguments)},splice(...e){return Oo(this,"splice",e)},toReversed(){return io(this).toReversed()},toSorted(e){return io(this).toSorted(e)},toSpliced(...e){return io(this).toSpliced(...e)},unshift(...e){return Oo(this,"unshift",e)},values(){return os(this,"values",e=>Dt(this,e))}};function os(e,t,o){const n=sn(e),s=n[t]();return n!==e&&!Ie(e)&&(s._next=s.next,s.next=()=>{const r=s._next();return r.done||(r.value=o(r.value)),r}),s}const ta=Array.prototype;function xt(e,t,o,n,s,r){const i=sn(e),l=i!==e&&!Ie(e),a=i[t];if(a!==ta[t]){const d=a.apply(e,r);return l?ot(d):d}let u=o;i!==e&&(l?u=function(d,p){return o.call(this,Dt(e,d),p,e)}:o.length>2&&(u=function(d,p){return o.call(this,d,p,e)}));const c=a.call(i,u,n);return l&&s?s(c):c}function dr(e,t,o,n){const s=sn(e);let r=o;return s!==e&&(Ie(e)?o.length>3&&(r=function(i,l,a){return o.call(this,i,l,a,e)}):r=function(i,l,a){return o.call(this,i,Dt(e,l),a,e)}),s[t](r,...n)}function ns(e,t,o){const n=Z(e);Te(n,"iterate",No);const s=n[t](...o);return(s===-1||s===!1)&&un(o[0])?(o[0]=Z(o[0]),n[t](...o)):s}function Oo(e,t,o=[]){Qe(),Gn();const n=Z(e)[t].apply(e,o);return Yn(),et(),n}const oa=vt("__proto__,__v_isRef,__isVue"),ur=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ye));function na(e){Ye(e)||(e=String(e));const t=Z(this);return Te(t,"has",e),t.hasOwnProperty(e)}class fr{constructor(t=!1,o=!1){this._isReadonly=t,this._isShallow=o}get(t,o,n){if(o==="__v_skip")return t.__v_skip;const s=this._isReadonly,r=this._isShallow;if(o==="__v_isReactive")return!s;if(o==="__v_isReadonly")return s;if(o==="__v_isShallow")return r;if(o==="__v_raw")return n===(s?r?vr:_r:r?br:mr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const i=j(t);if(!s){let a;if(i&&(a=ea[o]))return a;if(o==="hasOwnProperty")return na}const l=Reflect.get(t,o,Oe(t)?t:n);if((Ye(o)?ur.has(o):oa(o))||(s||Te(t,"get",o),r))return l;if(Oe(l)){const a=i&&Kn(o)?l:l.value;return s&&ce(a)?cn(a):a}return ce(l)?s?cn(l):rs(l):l}}class pr extends fr{constructor(t=!1){super(!1,t)}set(t,o,n,s){let r=t[o];const i=j(t)&&Kn(o);if(!this._isShallow){const u=tt(r);if(!Ie(n)&&!tt(n)&&(r=Z(r),n=Z(n)),!i&&Oe(r)&&!Oe(n))return u?(he.NODE_ENV!=="production"&&Xe(`Set operation on key "${String(o)}" failed: target is readonly.`,t[o]),!0):(r.value=n,!0)}const l=i?Number(o)<t.length:oe(t,o),a=Reflect.set(t,o,n,Oe(t)?t:s);return t===Z(s)&&(l?Tt(n,r)&<(t,"set",o,n,r):lt(t,"add",o,n)),a}deleteProperty(t,o){const n=oe(t,o),s=t[o],r=Reflect.deleteProperty(t,o);return r&&n&<(t,"delete",o,void 0,s),r}has(t,o){const n=Reflect.has(t,o);return(!Ye(o)||!ur.has(o))&&Te(t,"has",o),n}ownKeys(t){return Te(t,"iterate",j(t)?"length":Kt),Reflect.ownKeys(t)}}class hr extends fr{constructor(t=!1){super(!0,t)}set(t,o){return he.NODE_ENV!=="production"&&Xe(`Set operation on key "${String(o)}" failed: target is readonly.`,t),!0}deleteProperty(t,o){return he.NODE_ENV!=="production"&&Xe(`Delete operation on key "${String(o)}" failed: target is readonly.`,t),!0}}const sa=new pr,ra=new hr,ia=new pr(!0),la=new hr(!0),ss=e=>e,rn=e=>Reflect.getPrototypeOf(e);function aa(e,t,o){return function(...n){const s=this.__v_raw,r=Z(s),i=Ht(r),l=e==="entries"||e===Symbol.iterator&&i,a=e==="keys"&&i,u=s[e](...n),c=o?ss:t?lo:ot;return!t&&Te(r,"iterate",a?ts:Kt),{next(){const{value:d,done:p}=u.next();return p?{value:d,done:p}:{value:l?[c(d[0]),c(d[1])]:c(d),done:p}},[Symbol.iterator](){return this}}}}function ln(e){return function(...t){if(he.NODE_ENV!=="production"){const o=t[0]?`on key "${t[0]}" `:"";Xe(`${Ut(e)} operation ${o}failed: target is readonly.`,Z(this))}return e==="delete"?!1:e==="clear"?void 0:this}}function ca(e,t){const o={get(s){const r=this.__v_raw,i=Z(r),l=Z(s);e||(Tt(s,l)&&Te(i,"get",s),Te(i,"get",l));const{has:a}=rn(i),u=t?ss:e?lo:ot;if(a.call(i,s))return u(r.get(s));if(a.call(i,l))return u(r.get(l));r!==i&&r.get(s)},get size(){const s=this.__v_raw;return!e&&Te(Z(s),"iterate",Kt),s.size},has(s){const r=this.__v_raw,i=Z(r),l=Z(s);return e||(Tt(s,l)&&Te(i,"has",s),Te(i,"has",l)),s===l?r.has(s):r.has(s)||r.has(l)},forEach(s,r){const i=this,l=i.__v_raw,a=Z(l),u=t?ss:e?lo:ot;return!e&&Te(a,"iterate",Kt),l.forEach((c,d)=>s.call(r,u(c),u(d),i))}};return _e(o,e?{add:ln("add"),set:ln("set"),delete:ln("delete"),clear:ln("clear")}:{add(s){!t&&!Ie(s)&&!tt(s)&&(s=Z(s));const r=Z(this);return rn(r).has.call(r,s)||(r.add(s),lt(r,"add",s,s)),this},set(s,r){!t&&!Ie(r)&&!tt(r)&&(r=Z(r));const i=Z(this),{has:l,get:a}=rn(i);let u=l.call(i,s);u?he.NODE_ENV!=="production"&&gr(i,l,s):(s=Z(s),u=l.call(i,s));const c=a.call(i,s);return i.set(s,r),u?Tt(r,c)&<(i,"set",s,r,c):lt(i,"add",s,r),this},delete(s){const r=Z(this),{has:i,get:l}=rn(r);let a=i.call(r,s);a?he.NODE_ENV!=="production"&&gr(r,i,s):(s=Z(s),a=i.call(r,s));const u=l?l.call(r,s):void 0,c=r.delete(s);return a&<(r,"delete",s,void 0,u),c},clear(){const s=Z(this),r=s.size!==0,i=he.NODE_ENV!=="production"?Ht(s)?new Map(s):new Set(s):void 0,l=s.clear();return r&<(s,"clear",void 0,void 0,i),l}}),["keys","values","entries",Symbol.iterator].forEach(s=>{o[s]=aa(s,e,t)}),o}function an(e,t){const o=ca(e,t);return(n,s,r)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?n:Reflect.get(oe(o,s)&&s in n?o:n,s,r)}const da={get:an(!1,!1)},ua={get:an(!1,!0)},fa={get:an(!0,!1)},pa={get:an(!0,!0)};function gr(e,t,o){const n=Z(o);if(n!==o&&t.call(e,n)){const s=Bn(e);Xe(`Reactive ${s} contains both the raw and reactive versions of the same object${s==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const mr=new WeakMap,br=new WeakMap,_r=new WeakMap,vr=new WeakMap;function ha(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ga(e){return e.__v_skip||!Object.isExtensible(e)?0:ha(Bn(e))}function rs(e){return tt(e)?e:dn(e,!1,sa,da,mr)}function ma(e){return dn(e,!1,ia,ua,br)}function cn(e){return dn(e,!0,ra,fa,_r)}function at(e){return dn(e,!0,la,pa,vr)}function dn(e,t,o,n,s){if(!ce(e))return he.NODE_ENV!=="production"&&Xe(`value cannot be made ${t?"readonly":"reactive"}: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=ga(e);if(r===0)return e;const i=s.get(e);if(i)return i;const l=new Proxy(e,r===2?n:o);return s.set(e,l),l}function Vt(e){return tt(e)?Vt(e.__v_raw):!!(e&&e.__v_isReactive)}function tt(e){return!!(e&&e.__v_isReadonly)}function Ie(e){return!!(e&&e.__v_isShallow)}function un(e){return e?!!e.__v_raw:!1}function Z(e){const t=e&&e.__v_raw;return t?Z(t):e}function ba(e){return!oe(e,"__v_skip")&&Object.isExtensible(e)&&on(e,"__v_skip",!0),e}const ot=e=>ce(e)?rs(e):e,lo=e=>ce(e)?cn(e):e;function Oe(e){return e?e.__v_isRef===!0:!1}function te(e){return _a(e,!1)}function _a(e,t){return Oe(e)?e:new va(e,t)}class va{constructor(t,o){this.dep=new Qn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=o?t:Z(t),this._value=o?t:ot(t),this.__v_isShallow=o}get value(){return he.NODE_ENV!=="production"?this.dep.track({target:this,type:"get",key:"value"}):this.dep.track(),this._value}set value(t){const o=this._rawValue,n=this.__v_isShallow||Ie(t)||tt(t);t=n?t:Z(t),Tt(t,o)&&(this._rawValue=t,this._value=n?t:ot(t),he.NODE_ENV!=="production"?this.dep.trigger({target:this,type:"set",key:"value",newValue:t,oldValue:o}):this.dep.trigger())}}function ge(e){return Oe(e)?e.value:e}const ya={get:(e,t,o)=>t==="__v_raw"?e:ge(Reflect.get(e,t,o)),set:(e,t,o,n)=>{const s=e[t];return Oe(s)&&!Oe(o)?(s.value=o,!0):Reflect.set(e,t,o,n)}};function yr(e){return Vt(e)?e:new Proxy(e,ya)}class xa{constructor(t,o,n){this.fn=t,this.setter=o,this._value=void 0,this.dep=new Qn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ko-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!o,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&ue!==this)return nr(this,!0),!0}get value(){const t=he.NODE_ENV!=="production"?this.dep.track({target:this,type:"get",key:"value"}):this.dep.track();return ir(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter?this.setter(t):he.NODE_ENV!=="production"&&Xe("Write operation failed: computed value is readonly")}}function wa(e,t,o=!1){let n,s;return z(e)?n=e:(n=e.get,s=e.set),new xa(n,s,o)}const fn={},pn=new WeakMap;let zt;function Ea(e,t=!1,o=zt){if(o){let n=pn.get(o);n||pn.set(o,n=[]),n.push(e)}else he.NODE_ENV!=="production"&&!t&&Xe("onWatcherCleanup() was called when there was no active watcher to associate with.")}function ka(e,t,o=de){const{immediate:n,deep:s,once:r,scheduler:i,augmentJob:l,call:a}=o,u=I=>{(o.onWarn||Xe)("Invalid watch source: ",I,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},c=I=>s?I:Ie(I)||s===!1||s===0?wt(I,1):wt(I);let d,p,b,N,v=!1,L=!1;if(Oe(e)?(p=()=>e.value,v=Ie(e)):Vt(e)?(p=()=>c(e),v=!0):j(e)?(L=!0,v=e.some(I=>Vt(I)||Ie(I)),p=()=>e.map(I=>{if(Oe(I))return I.value;if(Vt(I))return c(I);if(z(I))return a?a(I,2):I();he.NODE_ENV!=="production"&&u(I)})):z(e)?t?p=a?()=>a(e,2):e:p=()=>{if(b){Qe();try{b()}finally{et()}}const I=zt;zt=d;try{return a?a(e,3,[N]):e(N)}finally{zt=I}}:(p=Ce,he.NODE_ENV!=="production"&&u(e)),t&&s){const I=p,P=s===!0?1/0:s;p=()=>wt(I(),P)}const R=Xl(),H=()=>{d.stop(),R&&R.active&&Hn(R.effects,d)};if(r&&t){const I=t;t=(...P)=>{I(...P),H()}}let B=L?new Array(e.length).fill(fn):fn;const me=I=>{if(!(!(d.flags&1)||!d.dirty&&!I))if(t){const P=d.run();if(s||v||(L?P.some((q,F)=>Tt(q,B[F])):Tt(P,B))){b&&b();const q=zt;zt=d;try{const F=[P,B===fn?void 0:L&&B[0]===fn?[]:B,N];B=P,a?a(t,3,F):t(...F)}finally{zt=q}}}else d.run()};return l&&l(me),d=new tr(p),d.scheduler=i?()=>i(me,!1):me,N=I=>Ea(I,!1,d),b=d.onStop=()=>{const I=pn.get(d);if(I){if(a)a(I,4);else for(const P of I)P();pn.delete(d)}},he.NODE_ENV!=="production"&&(d.onTrack=o.onTrack,d.onTrigger=o.onTrigger),t?n?me(!0):B=d.run():i?i(me.bind(null,!0),!0):d.run(),H.pause=d.pause.bind(d),H.resume=d.resume.bind(d),H.stop=H,H}function wt(e,t=1/0,o){if(t<=0||!ce(e)||e.__v_skip||(o=o||new Map,(o.get(e)||0)>=t))return e;if(o.set(e,t),t--,Oe(e))wt(e.value,t,o);else if(j(e))for(let n=0;n<e.length;n++)wt(e[n],t,o);else if(so(e)||Ht(e))e.forEach(n=>{wt(n,t,o)});else if(en(e)){for(const n in e)wt(e[n],t,o);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&wt(e[n],t,o)}return e}var m={};const Wt=[];function hn(e){Wt.push(e)}function gn(){Wt.pop()}let is=!1;function O(e,...t){if(is)return;is=!0,Qe();const o=Wt.length?Wt[Wt.length-1].component:null,n=o&&o.appContext.config.warnHandler,s=Na();if(n)ao(n,o,11,[e+t.map(r=>{var i,l;return(l=(i=r.toString)==null?void 0:i.call(r))!=null?l:JSON.stringify(r)}).join(""),o&&o.proxy,s.map(({vnode:r})=>`at <${Ko(o,r.type)}>`).join(`
|
|
2
2
|
`),s]);else{const r=[`[Vue warn]: ${e}`,...t];s.length&&r.push(`
|
|
3
|
-
`,...Oa(s)),console.warn(...r)}
|
|
4
|
-
`],...$a(o))}),t}function $a({vnode:e,recurseCount:t}){const o=t>0?`... (${t} recursive calls)`:"",n=e.component?e.component.parent==null:!1,s=` at <${Bo(e.component,e.type,n)}`,r=">"+o;return e.props?[s,...Sa(e.props),r]:[s+r]}function Sa(e){const t=[],o=Object.keys(e);return o.slice(0,3).forEach(n=>{t.push(...yr(n,e[n]))}),o.length>3&&t.push(" ..."),t}function yr(e,t,o){return me(t)?(t=JSON.stringify(t),o?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?o?t:[`${e}=${t}`]:Ne(t)?(t=yr(e,X(t.value),!0),o?t:[`${e}=Ref<`,t,">"]):z(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=X(t),o?t:[`${e}=`,t])}function Ca(e,t){m.NODE_ENV!=="production"&&e!==void 0&&(typeof e!="number"?O(`${t} is not a valid number - got ${JSON.stringify(e)}.`):isNaN(e)&&O(`${t} is NaN - the duration expression might be incorrect.`))}const is={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function io(e,t,o,n){try{return n?e(...n):e()}catch(s){Oo(s,t,o)}}function tt(e,t,o,n){if(z(e)){const s=io(e,t,o,n);return s&&Hn(s)&&s.catch(r=>{Oo(r,t,o)}),s}if(j(e)){const s=[];for(let r=0;r<e.length;r++)s.push(tt(e[r],t,o,n));return s}else m.NODE_ENV!=="production"&&O(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}`)}function Oo(e,t,o,n=!0){const s=t?t.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||le;if(t){let l=t.parent;const a=t.proxy,u=m.NODE_ENV!=="production"?is[o]:`https://vuejs.org/error-reference/#runtime-${o}`;for(;l;){const c=l.ec;if(c){for(let d=0;d<c.length;d++)if(c[d](e,a,u)===!1)return}l=l.parent}if(r){Xe(),io(r,null,10,[e,a,u]),Ze();return}}Ta(e,o,s,n,i)}function Ta(e,t,o,n=!0,s=!1){if(m.NODE_ENV!=="production"){const r=is[t];if(o&&pn(o),O(`Unhandled error${r?` during execution of ${r}`:""}`),o&&hn(),n)throw e;console.error(e)}else{if(s)throw e;console.error(e)}}const Pe=[];let at=-1;const lo=[];let Vt=null,ao=0;const xr=Promise.resolve();let gn=null;const Da=100;function ct(e){const t=gn||xr;return e?t.then(this?e.bind(this):e):t}function Va(e){let t=at+1,o=Pe.length;for(;t<o;){const n=t+o>>>1,s=Pe[n],r=$o(s);r<e||r===e&&s.flags&2?t=n+1:o=n}return t}function mn(e){if(!(e.flags&1)){const t=$o(e),o=Pe[Pe.length-1];!o||!(e.flags&2)&&t>=$o(o)?Pe.push(e):Pe.splice(Va(t),0,e),e.flags|=1,wr()}}function wr(){gn||(gn=xr.then(Or))}function Er(e){j(e)?lo.push(...e):Vt&&e.id===-1?Vt.splice(ao+1,0,e):e.flags&1||(lo.push(e),e.flags|=1),wr()}function kr(e,t,o=at+1){for(m.NODE_ENV!=="production"&&(t=t||new Map);o<Pe.length;o++){const n=Pe[o];if(n&&n.flags&2){if(e&&n.id!==e.uid||m.NODE_ENV!=="production"&&ls(t,n))continue;Pe.splice(o,1),o--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function Nr(e){if(lo.length){const t=[...new Set(lo)].sort((o,n)=>$o(o)-$o(n));if(lo.length=0,Vt){Vt.push(...t);return}for(Vt=t,m.NODE_ENV!=="production"&&(e=e||new Map),ao=0;ao<Vt.length;ao++){const o=Vt[ao];m.NODE_ENV!=="production"&&ls(e,o)||(o.flags&4&&(o.flags&=-2),o.flags&8||o(),o.flags&=-2)}Vt=null,ao=0}}const $o=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Or(e){m.NODE_ENV!=="production"&&(e=e||new Map);const t=m.NODE_ENV!=="production"?o=>ls(e,o):Se;try{for(at=0;at<Pe.length;at++){const o=Pe[at];if(o&&!(o.flags&8)){if(m.NODE_ENV!=="production"&&t(o))continue;o.flags&4&&(o.flags&=-2),io(o,o.i,o.i?15:14),o.flags&4||(o.flags&=-2)}}}finally{for(;at<Pe.length;at++){const o=Pe[at];o&&(o.flags&=-2)}at=-1,Pe.length=0,Nr(e),gn=null,(Pe.length||lo.length)&&Or(e)}}function ls(e,t){const o=e.get(t)||0;if(o>Da){const n=t.i,s=n&&Ds(n.type);return Oo(`Maximum recursive updates exceeded${s?` in component <${s}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}return e.set(t,o+1),!1}let ot=!1;const bn=new Map;m.NODE_ENV!=="production"&&(vo().__VUE_HMR_RUNTIME__={createRecord:as($r),rerender:as(Pa),reload:as(Ma)});const Kt=new Map;function Aa(e){const t=e.type.__hmrId;let o=Kt.get(t);o||($r(t,e.type),o=Kt.get(t)),o.instances.add(e)}function Ia(e){Kt.get(e.type.__hmrId).instances.delete(e)}function $r(e,t){return Kt.has(e)?!1:(Kt.set(e,{initialDef:_n(t),instances:new Set}),!0)}function _n(e){return Bi(e)?e.__vccOpts:e}function Pa(e,t){const o=Kt.get(e);o&&(o.initialDef.render=t,[...o.instances].forEach(n=>{t&&(n.render=t,_n(n.type).render=t),n.renderCache=[],ot=!0,n.job.flags&8||n.update(),ot=!1}))}function Ma(e,t){const o=Kt.get(e);if(!o)return;t=_n(t),Sr(o.initialDef,t);const n=[...o.instances];for(let s=0;s<n.length;s++){const r=n[s],i=_n(r.type);let l=bn.get(i);l||(i!==o.initialDef&&Sr(i,t),bn.set(i,l=new Set)),l.add(r),r.appContext.propsCache.delete(r.type),r.appContext.emitsCache.delete(r.type),r.appContext.optionsCache.delete(r.type),r.ceReload?(l.add(r),r.ceReload(t.styles),l.delete(r)):r.parent?mn(()=>{r.job.flags&8||(ot=!0,r.parent.update(),ot=!1,l.delete(r))}):r.appContext.reload?r.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required."),r.root.ce&&r!==r.root&&r.root.ce._removeChildStyle(i)}Er(()=>{bn.clear()})}function Sr(e,t){ge(e,t);for(const o in e)o!=="__file"&&!(o in t)&&delete e[o]}function as(e){return(t,o)=>{try{return e(t,o)}catch(n){console.error(n),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let dt,So=[],cs=!1;function Co(e,...t){dt?dt.emit(e,...t):cs||So.push({event:e,args:t})}function Cr(e,t){var o,n;dt=e,dt?(dt.enabled=!0,So.forEach(({event:s,args:r})=>dt.emit(s,...r)),So=[]):typeof window<"u"&&window.HTMLElement&&!((n=(o=window.navigator)==null?void 0:o.userAgent)!=null&&n.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(r=>{Cr(r,t)}),setTimeout(()=>{dt||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,cs=!0,So=[])},3e3)):(cs=!0,So=[])}function ja(e,t){Co("app:init",e,t,{Fragment:te,Text:jo,Comment:ke,Static:Lo})}function La(e){Co("app:unmount",e)}const Fa=ds("component:added"),Tr=ds("component:updated"),Ra=ds("component:removed"),Ha=e=>{dt&&typeof dt.cleanupBuffer=="function"&&!dt.cleanupBuffer(e)&&Ra(e)};function ds(e){return t=>{Co(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}const Ua=Dr("perf:start"),Ba=Dr("perf:end");function Dr(e){return(t,o,n)=>{Co(e,t.appContext.app,t.uid,t,o,n)}}function Ka(e,t,o){Co("component:emit",e.appContext.app,e,t,o)}let Oe=null,Vr=null;function vn(e){const t=Oe;return Oe=e,Vr=e&&e.type.__scopeId||null,t}function we(e,t=Oe,o){if(!t||e._n)return e;const n=(...s)=>{n._d&&Cn(-1);const r=vn(t);let i;try{i=e(...s)}finally{vn(r),n._d&&Cn(1)}return m.NODE_ENV!=="production"&&Tr(t),i};return n._n=!0,n._c=!0,n._d=!0,n}function Ar(e){Pl(e)&&O("Do not use built-in directive ids as custom directive id: "+e)}function ut(e,t){if(Oe===null)return m.NODE_ENV!=="production"&&O("withDirectives can only be used inside render functions."),e;const o=Vn(Oe),n=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[r,i,l,a=le]=t[s];r&&(z(r)&&(r={mounted:r,updated:r}),r.deep&&wt(i),n.push({dir:r,instance:o,value:i,oldValue:void 0,arg:l,modifiers:a}))}return e}function zt(e,t,o,n){const s=e.dirs,r=t&&t.dirs;for(let i=0;i<s.length;i++){const l=s[i];r&&(l.oldValue=r[i].value);let a=l.dir[n];a&&(Xe(),tt(a,o,8,[e.el,l,e,t]),Ze())}}const Ir=Symbol("_vte"),Pr=e=>e.__isTeleport,Wt=e=>e&&(e.disabled||e.disabled===""),Mr=e=>e&&(e.defer||e.defer===""),jr=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Lr=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,us=(e,t)=>{const o=e&&e.to;if(me(o))if(t){const n=t(o);return m.NODE_ENV!=="production"&&!n&&!Wt(e)&&O(`Failed to locate Teleport target with selector "${o}". Note the target element must exist before the component is mounted - i.e. the target cannot be rendered by the component itself, and ideally should be outside of the entire Vue component tree.`),n}else return m.NODE_ENV!=="production"&&O("Current renderer does not support string target for Teleports. (missing querySelector renderer option)"),null;else return m.NODE_ENV!=="production"&&!o&&!Wt(e)&&O(`Invalid Teleport target: ${o}`),o},Fr={name:"Teleport",__isTeleport:!0,process(e,t,o,n,s,r,i,l,a,u){const{mc:c,pc:d,pbc:p,o:{insert:b,querySelector:N,createText:v,createComment:F}}=u,R=Wt(t.props);let{shapeFlag:H,children:B,dynamicChildren:pe}=t;if(m.NODE_ENV!=="production"&&ot&&(a=!1,pe=null),e==null){const I=t.el=m.NODE_ENV!=="production"?F("teleport start"):v(""),L=t.anchor=m.NODE_ENV!=="production"?F("teleport end"):v("");b(I,o,n),b(L,o,n);const q=(x,P)=>{H&16&&c(B,x,P,s,r,i,l,a)},U=()=>{const x=t.target=us(t.props,N),P=Rr(x,t,v,b);x?(i!=="svg"&&jr(x)?i="svg":i!=="mathml"&&Lr(x)&&(i="mathml"),s&&s.isCE&&(s.ce._teleportTargets||(s.ce._teleportTargets=new Set)).add(x),R||(q(x,P),xn(t,!1))):m.NODE_ENV!=="production"&&!R&&O("Invalid Teleport target on mount:",x,`(${typeof x})`)};R&&(q(o,L),xn(t,!0)),Mr(t.props)?(t.el.__isMounted=!1,Le(()=>{U(),delete t.el.__isMounted},r)):U()}else{if(Mr(t.props)&&e.el.__isMounted===!1){Le(()=>{Fr.process(e,t,o,n,s,r,i,l,a,u)},r);return}t.el=e.el,t.targetStart=e.targetStart;const I=t.anchor=e.anchor,L=t.target=e.target,q=t.targetAnchor=e.targetAnchor,U=Wt(e.props),x=U?o:L,P=U?I:q;if(i==="svg"||jr(L)?i="svg":(i==="mathml"||Lr(L))&&(i="mathml"),pe?(p(e.dynamicChildren,pe,x,s,r,i,l),Mo(e,t,m.NODE_ENV==="production")):a||d(e,t,x,P,s,r,i,l,!1),R)U?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):yn(t,o,I,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const M=t.target=us(t.props,N);M?yn(t,M,null,u,0):m.NODE_ENV!=="production"&&O("Invalid Teleport target on update:",L,`(${typeof L})`)}else U&&yn(t,L,q,u,1);xn(t,R)}},remove(e,t,o,{um:n,o:{remove:s}},r){const{shapeFlag:i,children:l,anchor:a,targetStart:u,targetAnchor:c,target:d,props:p}=e;if(d&&(s(u),s(c)),r&&s(a),i&16){const b=r||!Wt(p);for(let N=0;N<l.length;N++){const v=l[N];n(v,t,o,b,!!v.dynamicChildren)}}},move:yn,hydrate:za};function yn(e,t,o,{o:{insert:n},m:s},r=2){r===0&&n(e.targetAnchor,t,o);const{el:i,anchor:l,shapeFlag:a,children:u,props:c}=e,d=r===2;if(d&&n(i,t,o),(!d||Wt(c))&&a&16)for(let p=0;p<u.length;p++)s(u[p],t,o,2);d&&n(l,t,o)}function za(e,t,o,n,s,r,{o:{nextSibling:i,parentNode:l,querySelector:a,insert:u,createText:c}},d){function p(v,F,R,H){F.anchor=d(i(v),F,l(v),o,n,s,r),F.targetStart=R,F.targetAnchor=H}const b=t.target=us(t.props,a),N=Wt(t.props);if(b){const v=b._lpa||b.firstChild;if(t.shapeFlag&16)if(N)p(e,t,v,v&&i(v));else{t.anchor=i(e);let F=v;for(;F;){if(F&&F.nodeType===8){if(F.data==="teleport start anchor")t.targetStart=F;else if(F.data==="teleport anchor"){t.targetAnchor=F,b._lpa=t.targetAnchor&&i(t.targetAnchor);break}}F=i(F)}t.targetAnchor||Rr(b,t,c,u),d(v&&i(v),t,b,o,n,s,r)}xn(t,N)}else N&&t.shapeFlag&16&&p(e,t,e,i(e));return t.anchor&&i(t.anchor)}const Wa=Fr;function xn(e,t){const o=e.ctx;if(o&&o.ut){let n,s;for(t?(n=e.el,s=e.anchor):(n=e.targetStart,s=e.targetAnchor);n&&n!==s;)n.nodeType===1&&n.setAttribute("data-v-owner",o.uid),n=n.nextSibling;o.ut()}}function Rr(e,t,o,n){const s=t.targetStart=o(""),r=t.targetAnchor=o("");return s[Ir]=r,e&&(n(s,e),n(r,e)),r}const Et=Symbol("_leaveCb"),wn=Symbol("_enterCb");function qa(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return At(()=>{e.isMounted=!0}),Xr(()=>{e.isUnmounting=!0}),e}const qe=[Function,Array],Hr={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:qe,onEnter:qe,onAfterEnter:qe,onEnterCancelled:qe,onBeforeLeave:qe,onLeave:qe,onAfterLeave:qe,onLeaveCancelled:qe,onBeforeAppear:qe,onAppear:qe,onAfterAppear:qe,onAppearCancelled:qe},Ur=e=>{const t=e.subTree;return t.component?Ur(t.component):t},Ja={name:"BaseTransition",props:Hr,setup(e,{slots:t}){const o=Ss(),n=qa();return()=>{const s=t.default&&Wr(t.default(),!0);if(!s||!s.length)return;const r=Br(s),i=X(e),{mode:l}=i;if(m.NODE_ENV!=="production"&&l&&l!=="in-out"&&l!=="out-in"&&l!=="default"&&O(`invalid <transition> mode: ${l}`),n.isLeaving)return ps(r);const a=zr(r);if(!a)return ps(r);let u=fs(a,i,n,o,d=>u=d);a.type!==ke&&To(a,u);let c=o.subTree&&zr(o.subTree);if(c&&c.type!==ke&&!Yt(c,a)&&Ur(o).type!==ke){let d=fs(c,i,n,o);if(To(c,d),l==="out-in"&&a.type!==ke)return n.isLeaving=!0,d.afterLeave=()=>{n.isLeaving=!1,o.job.flags&8||o.update(),delete d.afterLeave,c=void 0},ps(r);l==="in-out"&&a.type!==ke?d.delayLeave=(p,b,N)=>{const v=Kr(n,c);v[String(c.key)]=c,p[Et]=()=>{b(),p[Et]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{N(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return r}}};function Br(e){let t=e[0];if(e.length>1){let o=!1;for(const n of e)if(n.type!==ke){if(m.NODE_ENV!=="production"&&o){O("<transition> can only be used on a single element or component. Use <transition-group> for lists.");break}if(t=n,o=!0,m.NODE_ENV==="production")break}}return t}const Ga=Ja;function Kr(e,t){const{leavingVNodes:o}=e;let n=o.get(t.type);return n||(n=Object.create(null),o.set(t.type,n)),n}function fs(e,t,o,n,s){const{appear:r,mode:i,persisted:l=!1,onBeforeEnter:a,onEnter:u,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:p,onLeave:b,onAfterLeave:N,onLeaveCancelled:v,onBeforeAppear:F,onAppear:R,onAfterAppear:H,onAppearCancelled:B}=t,pe=String(e.key),I=Kr(o,e),L=(x,P)=>{x&&tt(x,n,9,P)},q=(x,P)=>{const M=P[1];L(x,P),j(x)?x.every(S=>S.length<=1)&&M():x.length<=1&&M()},U={mode:i,persisted:l,beforeEnter(x){let P=a;if(!o.isMounted)if(r)P=F||a;else return;x[Et]&&x[Et](!0);const M=I[pe];M&&Yt(e,M)&&M.el[Et]&&M.el[Et](),L(P,[x])},enter(x){let P=u,M=c,S=d;if(!o.isMounted)if(r)P=R||u,M=H||c,S=B||d;else return;let ce=!1;const ve=x[wn]=De=>{ce||(ce=!0,De?L(S,[x]):L(M,[x]),U.delayedLeave&&U.delayedLeave(),x[wn]=void 0)};P?q(P,[x,ve]):ve()},leave(x,P){const M=String(e.key);if(x[wn]&&x[wn](!0),o.isUnmounting)return P();L(p,[x]);let S=!1;const ce=x[Et]=ve=>{S||(S=!0,P(),ve?L(v,[x]):L(N,[x]),x[Et]=void 0,I[M]===e&&delete I[M])};I[M]=e,b?q(b,[x,ce]):ce()},clone(x){const P=fs(x,t,o,n,s);return s&&s(P),P}};return U}function ps(e){if(Vo(e))return e=pt(e),e.children=null,e}function zr(e){if(!Vo(e))return Pr(e.type)&&e.children?Br(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:o}=e;if(o){if(t&16)return o[0];if(t&32&&z(o.default))return o.default()}}function To(e,t){e.shapeFlag&6&&e.component?(e.transition=t,To(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 Wr(e,t=!1,o){let n=[],s=0;for(let r=0;r<e.length;r++){let i=e[r];const l=o==null?i.key:String(o)+String(i.key!=null?i.key:r);i.type===te?(i.patchFlag&128&&s++,n=n.concat(Wr(i.children,t,l))):(t||i.type!==ke)&&n.push(l!=null?pt(i,{key:l}):i)}if(s>1)for(let r=0;r<n.length;r++)n[r].patchFlag=-2;return n}function xe(e,t){return z(e)?ge({name:e.name},t,{setup:e}):e}function qr(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const Jr=new WeakSet,En=new WeakMap;function Do(e,t,o,n,s=!1){if(j(e)){e.forEach((v,F)=>Do(v,t&&(j(t)?t[F]:t),o,n,s));return}if(co(n)&&!s){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Do(e,t,o,n.component.subTree);return}const r=n.shapeFlag&4?Vn(n.component):n.el,i=s?null:r,{i:l,r:a}=e;if(m.NODE_ENV!=="production"&&!l){O("Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.");return}const u=t&&t.r,c=l.refs===le?l.refs={}:l.refs,d=l.setupState,p=X(d),b=d===le?qs:v=>m.NODE_ENV!=="production"&&(ee(p,v)&&!Ne(p[v])&&O(`Template ref "${v}" used on a non-ref value. It will not work in the production build.`),Jr.has(p[v]))?!1:ee(p,v),N=v=>m.NODE_ENV==="production"||!Jr.has(v);if(u!=null&&u!==a){if(Gr(t),me(u))c[u]=null,b(u)&&(d[u]=null);else if(Ne(u)){N(u)&&(u.value=null);const v=t;v.k&&(c[v.k]=null)}}if(z(a))io(a,l,12,[i,c]);else{const v=me(a),F=Ne(a);if(v||F){const R=()=>{if(e.f){const H=v?b(a)?d[a]:c[a]:N(a)||!e.k?a.value:c[e.k];if(s)j(H)&&Rn(H,r);else if(j(H))H.includes(r)||H.push(r);else if(v)c[a]=[r],b(a)&&(d[a]=c[a]);else{const B=[r];N(a)&&(a.value=B),e.k&&(c[e.k]=B)}}else v?(c[a]=i,b(a)&&(d[a]=i)):F?(N(a)&&(a.value=i),e.k&&(c[e.k]=i)):m.NODE_ENV!=="production"&&O("Invalid template ref type:",a,`(${typeof a})`)};if(i){const H=()=>{R(),En.delete(e)};H.id=-1,En.set(e,H),Le(H,o)}else Gr(e),R()}else m.NODE_ENV!=="production"&&O("Invalid template ref type:",a,`(${typeof a})`)}}function Gr(e){const t=En.get(e);t&&(t.flags|=8,En.delete(e))}vo().requestIdleCallback,vo().cancelIdleCallback;const co=e=>!!e.type.__asyncLoader,Vo=e=>e.type.__isKeepAlive;function Ya(e,t){Yr(e,"a",t)}function Xa(e,t){Yr(e,"da",t)}function Yr(e,t,o=$e){const n=e.__wdc||(e.__wdc=()=>{let s=o;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(kn(t,n,o),o){let s=o.parent;for(;s&&s.parent;)Vo(s.parent.vnode)&&Za(n,t,o,s),s=s.parent}}function Za(e,t,o,n){const s=kn(t,e,n,!0);hs(()=>{Rn(n[t],s)},o)}function kn(e,t,o=$e,n=!1){if(o){const s=o[e]||(o[e]=[]),r=t.__weh||(t.__weh=(...i)=>{Xe();const l=Ho(o),a=tt(t,o,e,i);return l(),Ze(),a});return n?s.unshift(r):s.push(r),r}else if(m.NODE_ENV!=="production"){const s=Rt(is[e].replace(/ hook$/,""));O(`${s} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`)}}const kt=e=>(t,o=$e)=>{(!Uo||e==="sp")&&kn(e,(...n)=>t(...n),o)},Qa=kt("bm"),At=kt("m"),ec=kt("bu"),tc=kt("u"),Xr=kt("bum"),hs=kt("um"),oc=kt("sp"),nc=kt("rtg"),sc=kt("rtc");function rc(e,t=$e){kn("ec",e,t)}const Zr="components";function ic(e,t){return ti(Zr,e,!0,t)||e}const Qr=Symbol.for("v-ndc");function ei(e){return me(e)?ti(Zr,e,!1)||e:e||Qr}function ti(e,t,o=!0,n=!1){const s=Oe||$e;if(s){const r=s.type;{const l=Ds(r,!1);if(l&&(l===t||l===Ve(t)||l===Ft(Ve(t))))return r}const i=oi(s[e]||r[e],t)||oi(s.appContext[e],t);return!i&&n?r:(m.NODE_ENV!=="production"&&o&&!i&&O(`Failed to resolve ${e.slice(0,-1)}: ${t}
|
|
5
|
-
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.`),i)}else m.NODE_ENV!=="production"&&O(`resolve${Ft(e.slice(0,-1))} can only be used in render() or setup().`)}function oi(e,t){return e&&(e[t]||e[Ve(t)]||e[Ft(Ve(t))])}function Me(e,t,o,n){let s;const r=o,i=j(e);if(i||me(e)){const l=i&&Dt(e);let a=!1,u=!1;l&&(a=!Ie(e),u=Qe(e),e=nn(e)),s=new Array(e.length);for(let c=0,d=e.length;c<d;c++)s[c]=t(a?u?ro(et(e[c])):et(e[c]):e[c],c,void 0,r)}else if(typeof e=="number"){m.NODE_ENV!=="production"&&!Number.isInteger(e)&&O(`The v-for range expect an integer value but got ${e}.`),s=new Array(e);for(let l=0;l<e;l++)s[l]=t(l+1,l,void 0,r)}else if(se(e))if(e[Symbol.iterator])s=Array.from(e,(l,a)=>t(l,a,void 0,r));else{const l=Object.keys(e);s=new Array(l.length);for(let a=0,u=l.length;a<u;a++){const c=l[a];s[a]=t(e[c],c,a,r)}}else s=[];return s}function ft(e,t,o={},n,s){if(Oe.ce||Oe.parent&&co(Oe.parent)&&Oe.parent.ce){const u=Object.keys(o).length>0;return t!=="default"&&(o.name=t),y(),be(te,null,[Y("slot",o,n&&n())],u?-2:64)}let r=e[t];m.NODE_ENV!=="production"&&r&&r.length>1&&(O("SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template."),r=()=>[]),r&&r._c&&(r._d=!1),y();const i=r&&ni(r(o)),l=o.key||i&&i.key,a=be(te,{key:(l&&!Je(l)?l:`_${t}`)+(!i&&n?"_fb":"")},i||(n?n():[]),i&&e._===1?64:-2);return r&&r._c&&(r._d=!0),a}function ni(e){return e.some(t=>Gt(t)?!(t.type===ke||t.type===te&&!ni(t.children)):!0)?e:null}const gs=e=>e?Fi(e)?Vn(e):gs(e.parent):null,qt=ge(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>m.NODE_ENV!=="production"?lt(e.props):e.props,$attrs:e=>m.NODE_ENV!=="production"?lt(e.attrs):e.attrs,$slots:e=>m.NODE_ENV!=="production"?lt(e.slots):e.slots,$refs:e=>m.NODE_ENV!=="production"?lt(e.refs):e.refs,$parent:e=>gs(e.parent),$root:e=>gs(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>ai(e),$forceUpdate:e=>e.f||(e.f=()=>{mn(e.update)}),$nextTick:e=>e.n||(e.n=ct.bind(e.proxy)),$watch:e=>yc.bind(e)}),ms=e=>e==="_"||e==="$",bs=(e,t)=>e!==le&&!e.__isScriptSetup&&ee(e,t),si={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:o,setupState:n,data:s,props:r,accessCache:i,type:l,appContext:a}=e;if(m.NODE_ENV!=="production"&&t==="__isVue")return!0;if(t[0]!=="$"){const p=i[t];if(p!==void 0)switch(p){case 1:return n[t];case 2:return s[t];case 4:return o[t];case 3:return r[t]}else{if(bs(n,t))return i[t]=1,n[t];if(s!==le&&ee(s,t))return i[t]=2,s[t];if(ee(r,t))return i[t]=3,r[t];if(o!==le&&ee(o,t))return i[t]=4,o[t];_s&&(i[t]=0)}}const u=qt[t];let c,d;if(u)return t==="$attrs"?(Ce(e.attrs,"get",""),m.NODE_ENV!=="production"&&$n()):m.NODE_ENV!=="production"&&t==="$slots"&&Ce(e,"get",t),u(e);if((c=l.__cssModules)&&(c=c[t]))return c;if(o!==le&&ee(o,t))return i[t]=4,o[t];if(d=a.config.globalProperties,ee(d,t))return d[t];m.NODE_ENV!=="production"&&Oe&&(!me(t)||t.indexOf("__v")!==0)&&(s!==le&&ms(t[0])&&ee(s,t)?O(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):e===Oe&&O(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:e},t,o){const{data:n,setupState:s,ctx:r}=e;return bs(s,t)?(s[t]=o,!0):m.NODE_ENV!=="production"&&s.__isScriptSetup&&ee(s,t)?(O(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):n!==le&&ee(n,t)?(n[t]=o,!0):ee(e.props,t)?(m.NODE_ENV!=="production"&&O(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in e?(m.NODE_ENV!=="production"&&O(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):(m.NODE_ENV!=="production"&&t in e.appContext.config.globalProperties?Object.defineProperty(r,t,{enumerable:!0,configurable:!0,value:o}):r[t]=o,!0)},has({_:{data:e,setupState:t,accessCache:o,ctx:n,appContext:s,props:r,type:i}},l){let a;return!!(o[l]||e!==le&&l[0]!=="$"&&ee(e,l)||bs(t,l)||ee(r,l)||ee(n,l)||ee(qt,l)||ee(s.config.globalProperties,l)||(a=i.__cssModules)&&a[l])},defineProperty(e,t,o){return o.get!=null?e._.accessCache[t]=0:ee(o,"value")&&this.set(e,t,o.value,null),Reflect.defineProperty(e,t,o)}};m.NODE_ENV!=="production"&&(si.ownKeys=e=>(O("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e)));function lc(e){const t={};return Object.defineProperty(t,"_",{configurable:!0,enumerable:!1,get:()=>e}),Object.keys(qt).forEach(o=>{Object.defineProperty(t,o,{configurable:!0,enumerable:!1,get:()=>qt[o](e),set:Se})}),t}function ac(e){const{ctx:t,propsOptions:[o]}=e;o&&Object.keys(o).forEach(n=>{Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>e.props[n],set:Se})})}function cc(e){const{ctx:t,setupState:o}=e;Object.keys(X(o)).forEach(n=>{if(!o.__isScriptSetup){if(ms(n[0])){O(`setup() return property ${JSON.stringify(n)} should not start with "$" or "_" which are reserved prefixes for Vue internals.`);return}Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>o[n],set:Se})}})}function ri(e){return j(e)?e.reduce((t,o)=>(t[o]=null,t),{}):e}function dc(){const e=Object.create(null);return(t,o)=>{e[o]?O(`${t} property "${o}" is already defined in ${e[o]}.`):e[o]=t}}let _s=!0;function uc(e){const t=ai(e),o=e.proxy,n=e.ctx;_s=!1,t.beforeCreate&&ii(t.beforeCreate,e,"bc");const{data:s,computed:r,methods:i,watch:l,provide:a,inject:u,created:c,beforeMount:d,mounted:p,beforeUpdate:b,updated:N,activated:v,deactivated:F,beforeDestroy:R,beforeUnmount:H,destroyed:B,unmounted:pe,render:I,renderTracked:L,renderTriggered:q,errorCaptured:U,serverPrefetch:x,expose:P,inheritAttrs:M,components:S,directives:ce,filters:ve}=t,De=m.NODE_ENV!=="production"?dc():null;if(m.NODE_ENV!=="production"){const[Z]=e.propsOptions;if(Z)for(const Q in Z)De("Props",Q)}if(u&&fc(u,n,De),i)for(const Z in i){const Q=i[Z];z(Q)?(m.NODE_ENV!=="production"?Object.defineProperty(n,Z,{value:Q.bind(o),configurable:!0,enumerable:!0,writable:!0}):n[Z]=Q.bind(o),m.NODE_ENV!=="production"&&De("Methods",Z)):m.NODE_ENV!=="production"&&O(`Method "${Z}" has type "${typeof Q}" in the component definition. Did you reference the function correctly?`)}if(s){m.NODE_ENV!=="production"&&!z(s)&&O("The data option must be a function. Plain object usage is no longer supported.");const Z=s.call(o,o);if(m.NODE_ENV!=="production"&&Hn(Z)&&O("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),!se(Z))m.NODE_ENV!=="production"&&O("data() should return an object.");else if(e.data=ss(Z),m.NODE_ENV!=="production")for(const Q in Z)De("Data",Q),ms(Q[0])||Object.defineProperty(n,Q,{configurable:!0,enumerable:!0,get:()=>Z[Q],set:Se})}if(_s=!0,r)for(const Z in r){const Q=r[Z],gt=z(Q)?Q.bind(o,o):z(Q.get)?Q.get.bind(o,o):Se;m.NODE_ENV!=="production"&>===Se&&O(`Computed property "${Z}" has no getter.`);const Bs=!z(Q)&&z(Q.set)?Q.set.bind(o):m.NODE_ENV!=="production"?()=>{O(`Write operation failed: computed property "${Z}" is readonly.`)}:Se,Jo=oe({get:gt,set:Bs});Object.defineProperty(n,Z,{enumerable:!0,configurable:!0,get:()=>Jo.value,set:go=>Jo.value=go}),m.NODE_ENV!=="production"&&De("Computed",Z)}if(l)for(const Z in l)li(l[Z],n,o,Z);if(a){const Z=z(a)?a.call(o):a;Reflect.ownKeys(Z).forEach(Q=>{fi(Q,Z[Q])})}c&&ii(c,e,"c");function Ee(Z,Q){j(Q)?Q.forEach(gt=>Z(gt.bind(o))):Q&&Z(Q.bind(o))}if(Ee(Qa,d),Ee(At,p),Ee(ec,b),Ee(tc,N),Ee(Ya,v),Ee(Xa,F),Ee(rc,U),Ee(sc,L),Ee(nc,q),Ee(Xr,H),Ee(hs,pe),Ee(oc,x),j(P))if(P.length){const Z=e.exposed||(e.exposed={});P.forEach(Q=>{Object.defineProperty(Z,Q,{get:()=>o[Q],set:gt=>o[Q]=gt,enumerable:!0})})}else e.exposed||(e.exposed={});I&&e.render===Se&&(e.render=I),M!=null&&(e.inheritAttrs=M),S&&(e.components=S),ce&&(e.directives=ce),x&&qr(e)}function fc(e,t,o=Se){j(e)&&(e=vs(e));for(const n in e){const s=e[n];let r;se(s)?"default"in s?r=Io(s.from||n,s.default,!0):r=Io(s.from||n):r=Io(s),Ne(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:i=>r.value=i}):t[n]=r,m.NODE_ENV!=="production"&&o("Inject",n)}}function ii(e,t,o){tt(j(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,o)}function li(e,t,o,n){let s=n.includes(".")?hi(o,n):()=>o[n];if(me(e)){const r=t[e];z(r)?Te(s,r):m.NODE_ENV!=="production"&&O(`Invalid watch handler specified by key "${e}"`,r)}else if(z(e))Te(s,e.bind(o));else if(se(e))if(j(e))e.forEach(r=>li(r,t,o,n));else{const r=z(e.handler)?e.handler.bind(o):t[e.handler];z(r)?Te(s,r,e):m.NODE_ENV!=="production"&&O(`Invalid watch handler specified by key "${e.handler}"`,r)}else m.NODE_ENV!=="production"&&O(`Invalid watch option: "${n}"`,e)}function ai(e){const t=e.type,{mixins:o,extends:n}=t,{mixins:s,optionsCache:r,config:{optionMergeStrategies:i}}=e.appContext,l=r.get(t);let a;return l?a=l:!s.length&&!o&&!n?a=t:(a={},s.length&&s.forEach(u=>Nn(a,u,i,!0)),Nn(a,t,i)),se(t)&&r.set(t,a),a}function Nn(e,t,o,n=!1){const{mixins:s,extends:r}=t;r&&Nn(e,r,o,!0),s&&s.forEach(i=>Nn(e,i,o,!0));for(const i in t)if(n&&i==="expose")m.NODE_ENV!=="production"&&O('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const l=pc[i]||o&&o[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const pc={data:ci,props:di,emits:di,methods:Ao,computed:Ao,beforeCreate:je,created:je,beforeMount:je,mounted:je,beforeUpdate:je,updated:je,beforeDestroy:je,beforeUnmount:je,destroyed:je,unmounted:je,activated:je,deactivated:je,errorCaptured:je,serverPrefetch:je,components:Ao,directives:Ao,watch:gc,provide:ci,inject:hc};function ci(e,t){return t?e?function(){return ge(z(e)?e.call(this,this):e,z(t)?t.call(this,this):t)}:t:e}function hc(e,t){return Ao(vs(e),vs(t))}function vs(e){if(j(e)){const t={};for(let o=0;o<e.length;o++)t[e[o]]=e[o];return t}return e}function je(e,t){return e?[...new Set([].concat(e,t))]:t}function Ao(e,t){return e?ge(Object.create(null),e,t):t}function di(e,t){return e?j(e)&&j(t)?[...new Set([...e,...t])]:ge(Object.create(null),ri(e),ri(t??{})):t}function gc(e,t){if(!e)return t;if(!t)return e;const o=ge(Object.create(null),e);for(const n in t)o[n]=je(e[n],t[n]);return o}function ui(){return{app:null,config:{isNativeTag:qs,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 mc=0;function bc(e,t){return function(n,s=null){z(n)||(n=ge({},n)),s!=null&&!se(s)&&(m.NODE_ENV!=="production"&&O("root props passed to app.mount() must be an object."),s=null);const r=ui(),i=new WeakSet,l=[];let a=!1;const u=r.app={_uid:mc++,_component:n,_props:s,_container:null,_context:r,_instance:null,version:Ki,get config(){return r.config},set config(c){m.NODE_ENV!=="production"&&O("app.config cannot be replaced. Modify individual options instead.")},use(c,...d){return i.has(c)?m.NODE_ENV!=="production"&&O("Plugin has already been applied to target app."):c&&z(c.install)?(i.add(c),c.install(u,...d)):z(c)?(i.add(c),c(u,...d)):m.NODE_ENV!=="production"&&O('A plugin must either be a function or an object with an "install" function.'),u},mixin(c){return r.mixins.includes(c)?m.NODE_ENV!=="production"&&O("Mixin has already been applied to target app"+(c.name?`: ${c.name}`:"")):r.mixins.push(c),u},component(c,d){return m.NODE_ENV!=="production"&&Ts(c,r.config),d?(m.NODE_ENV!=="production"&&r.components[c]&&O(`Component "${c}" has already been registered in target app.`),r.components[c]=d,u):r.components[c]},directive(c,d){return m.NODE_ENV!=="production"&&Ar(c),d?(m.NODE_ENV!=="production"&&r.directives[c]&&O(`Directive "${c}" has already been registered in target app.`),r.directives[c]=d,u):r.directives[c]},mount(c,d,p){if(a)m.NODE_ENV!=="production"&&O("App has already been mounted.\nIf you want to remount the same app, move your app creation logic into a factory function and create fresh app instances for each mount - e.g. `const createMyApp = () => createApp(App)`");else{m.NODE_ENV!=="production"&&c.__vue_app__&&O("There is already an app instance mounted on the host container.\n If you want to mount another app on the same host container, you need to unmount the previous app by calling `app.unmount()` first.");const b=u._ceVNode||Y(n,s);return b.appContext=r,p===!0?p="svg":p===!1&&(p=void 0),m.NODE_ENV!=="production"&&(r.reload=()=>{const N=pt(b);N.el=null,e(N,c,p)}),e(b,c,p),a=!0,u._container=c,c.__vue_app__=u,m.NODE_ENV!=="production"&&(u._instance=b.component,ja(u,Ki)),Vn(b.component)}},onUnmount(c){m.NODE_ENV!=="production"&&typeof c!="function"&&O(`Expected function as first argument to app.onUnmount(), but got ${typeof c}`),l.push(c)},unmount(){a?(tt(l,u._instance,16),e(null,u._container),m.NODE_ENV!=="production"&&(u._instance=null,La(u)),delete u._container.__vue_app__):m.NODE_ENV!=="production"&&O("Cannot unmount an app that is not mounted.")},provide(c,d){return m.NODE_ENV!=="production"&&c in r.provides&&(ee(r.provides,c)?O(`App already provides property with key "${String(c)}". It will be overwritten with the new value.`):O(`App already provides property with key "${String(c)}" inherited from its parent element. It will be overwritten with the new value.`)),r.provides[c]=d,u},runWithContext(c){const d=uo;uo=u;try{return c()}finally{uo=d}}};return u}}let uo=null;function fi(e,t){if(m.NODE_ENV!=="production"&&(!$e||$e.isMounted)&&O("provide() can only be used inside setup()."),$e){let o=$e.provides;const n=$e.parent&&$e.parent.provides;n===o&&(o=$e.provides=Object.create(n)),o[e]=t}}function Io(e,t,o=!1){const n=Ss();if(n||uo){let s=uo?uo._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return o&&z(t)?t.call(n&&n.proxy):t;m.NODE_ENV!=="production"&&O(`injection "${String(e)}" not found.`)}else m.NODE_ENV!=="production"&&O("inject() can only be used inside setup() or functional components.")}const _c=Symbol.for("v-scx"),vc=()=>{{const e=Io(_c);return e||m.NODE_ENV!=="production"&&O("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function Te(e,t,o){return m.NODE_ENV!=="production"&&!z(t)&&O("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),pi(e,t,o)}function pi(e,t,o=le){const{immediate:n,deep:s,flush:r,once:i}=o;m.NODE_ENV!=="production"&&!t&&(n!==void 0&&O('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),s!==void 0&&O('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),i!==void 0&&O('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const l=ge({},o);m.NODE_ENV!=="production"&&(l.onWarn=O);const a=t&&n||!t&&r!=="post";let u;if(Uo){if(r==="sync"){const b=vc();u=b.__watcherHandles||(b.__watcherHandles=[])}else if(!a){const b=()=>{};return b.stop=Se,b.resume=Se,b.pause=Se,b}}const c=$e;l.call=(b,N,v)=>tt(b,c,N,v);let d=!1;r==="post"?l.scheduler=b=>{Le(b,c&&c.suspense)}:r!=="sync"&&(d=!0,l.scheduler=(b,N)=>{N?b():mn(b)}),l.augmentJob=b=>{t&&(b.flags|=4),d&&(b.flags|=2,c&&(b.id=c.uid,b.i=c))};const p=ka(e,t,l);return Uo&&(u?u.push(p):a&&p()),p}function yc(e,t,o){const n=this.proxy,s=me(e)?e.includes(".")?hi(n,e):()=>n[e]:e.bind(n,n);let r;z(t)?r=t:(r=t.handler,o=t);const i=Ho(this),l=pi(s,r.bind(n),o);return i(),l}function hi(e,t){const o=t.split(".");return()=>{let n=e;for(let s=0;s<o.length&&n;s++)n=n[o[s]];return n}}const xc=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ve(t)}Modifiers`]||e[`${Re(t)}Modifiers`];function wc(e,t,...o){if(e.isUnmounted)return;const n=e.vnode.props||le;if(m.NODE_ENV!=="production"){const{emitsOptions:c,propsOptions:[d]}=e;if(c)if(!(t in c))(!d||!(Rt(Ve(t))in d))&&O(`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${Rt(Ve(t))}" prop.`);else{const p=c[t];z(p)&&(p(...o)||O(`Invalid event arguments: event validation failed for event "${t}".`))}}let s=o;const r=t.startsWith("update:"),i=r&&xc(n,t.slice(7));if(i&&(i.trim&&(s=o.map(c=>me(c)?c.trim():c)),i.number&&(s=o.map(on))),m.NODE_ENV!=="production"&&Ka(e,t,s),m.NODE_ENV!=="production"){const c=t.toLowerCase();c!==t&&n[Rt(c)]&&O(`Event "${c}" is emitted in component ${Bo(e,e.type)} but the handler is registered for "${t}". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "${Re(t)}" instead of "${t}".`)}let l,a=n[l=Rt(t)]||n[l=Rt(Ve(t))];!a&&r&&(a=n[l=Rt(Re(t))]),a&&tt(a,e,6,s);const u=n[l+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,tt(u,e,6,s)}}const Ec=new WeakMap;function gi(e,t,o=!1){const n=o?Ec:t.emitsCache,s=n.get(e);if(s!==void 0)return s;const r=e.emits;let i={},l=!1;if(!z(e)){const a=u=>{const c=gi(u,t,!0);c&&(l=!0,ge(i,c))};!o&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!r&&!l?(se(e)&&n.set(e,null),null):(j(r)?r.forEach(a=>i[a]=null):ge(i,r),se(e)&&n.set(e,i),i)}function On(e,t){return!e||!mo(t)?!1:(t=t.slice(2).replace(/Once$/,""),ee(e,t[0].toLowerCase()+t.slice(1))||ee(e,Re(t))||ee(e,t))}let ys=!1;function $n(){ys=!0}function mi(e){const{type:t,vnode:o,proxy:n,withProxy:s,propsOptions:[r],slots:i,attrs:l,emit:a,render:u,renderCache:c,props:d,data:p,setupState:b,ctx:N,inheritAttrs:v}=e,F=vn(e);let R,H;m.NODE_ENV!=="production"&&(ys=!1);try{if(o.shapeFlag&4){const I=s||n,L=m.NODE_ENV!=="production"&&b.__isScriptSetup?new Proxy(I,{get(q,U,x){return O(`Property '${String(U)}' was accessed via 'this'. Avoid using 'this' in templates.`),Reflect.get(q,U,x)}}):I;R=st(u.call(L,I,c,m.NODE_ENV!=="production"?lt(d):d,b,p,N)),H=l}else{const I=t;m.NODE_ENV!=="production"&&l===d&&$n(),R=st(I.length>1?I(m.NODE_ENV!=="production"?lt(d):d,m.NODE_ENV!=="production"?{get attrs(){return $n(),lt(l)},slots:i,emit:a}:{attrs:l,slots:i,emit:a}):I(m.NODE_ENV!=="production"?lt(d):d,null)),H=t.props?l:kc(l)}}catch(I){Fo.length=0,Oo(I,e,1),R=Y(ke)}let B=R,pe;if(m.NODE_ENV!=="production"&&R.patchFlag>0&&R.patchFlag&2048&&([B,pe]=bi(R)),H&&v!==!1){const I=Object.keys(H),{shapeFlag:L}=B;if(I.length){if(L&7)r&&I.some(Zo)&&(H=Nc(H,r)),B=pt(B,H,!1,!0);else if(m.NODE_ENV!=="production"&&!ys&&B.type!==ke){const q=Object.keys(l),U=[],x=[];for(let P=0,M=q.length;P<M;P++){const S=q[P];mo(S)?Zo(S)||U.push(S[2].toLowerCase()+S.slice(3)):x.push(S)}x.length&&O(`Extraneous non-props attributes (${x.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text or teleport root nodes.`),U.length&&O(`Extraneous non-emits event listeners (${U.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the "emits" option.`)}}}return o.dirs&&(m.NODE_ENV!=="production"&&!_i(B)&&O("Runtime directive used on component with non-element root node. The directives will not function as intended."),B=pt(B,null,!1,!0),B.dirs=B.dirs?B.dirs.concat(o.dirs):o.dirs),o.transition&&(m.NODE_ENV!=="production"&&!_i(B)&&O("Component inside <Transition> renders non-element root node that cannot be animated."),To(B,o.transition)),m.NODE_ENV!=="production"&&pe?pe(B):R=B,vn(F),R}const bi=e=>{const t=e.children,o=e.dynamicChildren,n=xs(t,!1);if(n){if(m.NODE_ENV!=="production"&&n.patchFlag>0&&n.patchFlag&2048)return bi(n)}else return[e,void 0];const s=t.indexOf(n),r=o?o.indexOf(n):-1,i=l=>{t[s]=l,o&&(r>-1?o[r]=l:l.patchFlag>0&&(e.dynamicChildren=[...o,l]))};return[st(n),i]};function xs(e,t=!0){let o;for(let n=0;n<e.length;n++){const s=e[n];if(Gt(s)){if(s.type!==ke||s.children==="v-if"){if(o)return;if(o=s,m.NODE_ENV!=="production"&&t&&o.patchFlag>0&&o.patchFlag&2048)return xs(o.children)}}else return}return o}const kc=e=>{let t;for(const o in e)(o==="class"||o==="style"||mo(o))&&((t||(t={}))[o]=e[o]);return t},Nc=(e,t)=>{const o={};for(const n in e)(!Zo(n)||!(n.slice(9)in t))&&(o[n]=e[n]);return o},_i=e=>e.shapeFlag&7||e.type===ke;function Oc(e,t,o){const{props:n,children:s,component:r}=e,{props:i,children:l,patchFlag:a}=t,u=r.emitsOptions;if(m.NODE_ENV!=="production"&&(s||l)&&ot||t.dirs||t.transition)return!0;if(o&&a>=0){if(a&1024)return!0;if(a&16)return n?vi(n,i,u):!!i;if(a&8){const c=t.dynamicProps;for(let d=0;d<c.length;d++){const p=c[d];if(i[p]!==n[p]&&!On(u,p))return!0}}}else return(s||l)&&(!l||!l.$stable)?!0:n===i?!1:n?i?vi(n,i,u):!0:!!i;return!1}function vi(e,t,o){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let s=0;s<n.length;s++){const r=n[s];if(t[r]!==e[r]&&!On(o,r))return!0}return!1}function $c({vnode:e,parent:t},o){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.el=e.el),n===e)(e=t.vnode).el=o,t=t.parent;else break}}const yi={},xi=()=>Object.create(yi),wi=e=>Object.getPrototypeOf(e)===yi;function Sc(e,t,o,n=!1){const s={},r=xi();e.propsDefaults=Object.create(null),Ei(e,t,s,r);for(const i in e.propsOptions[0])i in s||(s[i]=void 0);m.NODE_ENV!=="production"&&Oi(t||{},s,e),o?e.props=n?s:ma(s):e.type.props?e.props=s:e.props=r,e.attrs=r}function Cc(e){for(;e;){if(e.type.__hmrId)return!0;e=e.parent}}function Tc(e,t,o,n){const{props:s,attrs:r,vnode:{patchFlag:i}}=e,l=X(s),[a]=e.propsOptions;let u=!1;if(!(m.NODE_ENV!=="production"&&Cc(e))&&(n||i>0)&&!(i&16)){if(i&8){const c=e.vnode.dynamicProps;for(let d=0;d<c.length;d++){let p=c[d];if(On(e.emitsOptions,p))continue;const b=t[p];if(a)if(ee(r,p))b!==r[p]&&(r[p]=b,u=!0);else{const N=Ve(p);s[N]=ws(a,l,N,b,e,!1)}else b!==r[p]&&(r[p]=b,u=!0)}}}else{Ei(e,t,s,r)&&(u=!0);let c;for(const d in l)(!t||!ee(t,d)&&((c=Re(d))===d||!ee(t,c)))&&(a?o&&(o[d]!==void 0||o[c]!==void 0)&&(s[d]=ws(a,l,d,void 0,e,!0)):delete s[d]);if(r!==l)for(const d in r)(!t||!ee(t,d))&&(delete r[d],u=!0)}u&&it(e.attrs,"set",""),m.NODE_ENV!=="production"&&Oi(t||{},s,e)}function Ei(e,t,o,n){const[s,r]=e.propsOptions;let i=!1,l;if(t)for(let a in t){if(_o(a))continue;const u=t[a];let c;s&&ee(s,c=Ve(a))?!r||!r.includes(c)?o[c]=u:(l||(l={}))[c]=u:On(e.emitsOptions,a)||(!(a in n)||u!==n[a])&&(n[a]=u,i=!0)}if(r){const a=X(o),u=l||le;for(let c=0;c<r.length;c++){const d=r[c];o[d]=ws(s,a,d,u[d],e,!ee(u,d))}}return i}function ws(e,t,o,n,s,r){const i=e[o];if(i!=null){const l=ee(i,"default");if(l&&n===void 0){const a=i.default;if(i.type!==Function&&!i.skipFactory&&z(a)){const{propsDefaults:u}=s;if(o in u)n=u[o];else{const c=Ho(s);n=u[o]=a.call(null,t),c()}}else n=a;s.ce&&s.ce._setProp(o,n)}i[0]&&(r&&!l?n=!1:i[1]&&(n===""||n===Re(o))&&(n=!0))}return n}const Dc=new WeakMap;function ki(e,t,o=!1){const n=o?Dc:t.propsCache,s=n.get(e);if(s)return s;const r=e.props,i={},l=[];let a=!1;if(!z(e)){const c=d=>{a=!0;const[p,b]=ki(d,t,!0);ge(i,p),b&&l.push(...b)};!o&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!r&&!a)return se(e)&&n.set(e,to),to;if(j(r))for(let c=0;c<r.length;c++){m.NODE_ENV!=="production"&&!me(r[c])&&O("props must be strings when using array syntax.",r[c]);const d=Ve(r[c]);Ni(d)&&(i[d]=le)}else if(r){m.NODE_ENV!=="production"&&!se(r)&&O("invalid props options",r);for(const c in r){const d=Ve(c);if(Ni(d)){const p=r[c],b=i[d]=j(p)||z(p)?{type:p}:ge({},p),N=b.type;let v=!1,F=!0;if(j(N))for(let R=0;R<N.length;++R){const H=N[R],B=z(H)&&H.name;if(B==="Boolean"){v=!0;break}else B==="String"&&(F=!1)}else v=z(N)&&N.name==="Boolean";b[0]=v,b[1]=F,(v||ee(b,"default"))&&l.push(d)}}}const u=[i,l];return se(e)&&n.set(e,u),u}function Ni(e){return e[0]!=="$"&&!_o(e)?!0:(m.NODE_ENV!=="production"&&O(`Invalid prop name: "${e}" is a reserved property.`),!1)}function Vc(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function Oi(e,t,o){const n=X(t),s=o.propsOptions[0],r=Object.keys(e).map(i=>Ve(i));for(const i in s){let l=s[i];l!=null&&Ac(i,n[i],l,m.NODE_ENV!=="production"?lt(n):n,!r.includes(i))}}function Ac(e,t,o,n,s){const{type:r,required:i,validator:l,skipCheck:a}=o;if(i&&s){O('Missing required prop: "'+e+'"');return}if(!(t==null&&!i)){if(r!=null&&r!==!0&&!a){let u=!1;const c=j(r)?r:[r],d=[];for(let p=0;p<c.length&&!u;p++){const{valid:b,expectedType:N}=Pc(t,c[p]);d.push(N||""),u=b}if(!u){O(Mc(e,t,d));return}}l&&!l(t,n)&&O('Invalid prop: custom validator check failed for prop "'+e+'".')}}const Ic=vt("String,Number,Boolean,Function,Symbol,BigInt");function Pc(e,t){let o;const n=Vc(t);if(n==="null")o=e===null;else if(Ic(n)){const s=typeof e;o=s===n.toLowerCase(),!o&&s==="object"&&(o=e instanceof t)}else n==="Object"?o=se(e):n==="Array"?o=j(e):o=e instanceof t;return{valid:o,expectedType:n}}function Mc(e,t,o){if(o.length===0)return`Prop type [] for prop "${e}" won't match anything. Did you mean to use type Array instead?`;let n=`Invalid prop: type check failed for prop "${e}". Expected ${o.map(Ft).join(" | ")}`;const s=o[0],r=Un(t),i=$i(t,s),l=$i(t,r);return o.length===1&&Si(s)&&!jc(s,r)&&(n+=` with value ${i}`),n+=`, got ${r} `,Si(r)&&(n+=`with value ${l}.`),n}function $i(e,t){return t==="String"?`"${e}"`:t==="Number"?`${Number(e)}`:`${e}`}function Si(e){return["string","number","boolean"].some(o=>e.toLowerCase()===o)}function jc(...e){return e.some(t=>t.toLowerCase()==="boolean")}const Es=e=>e==="_"||e==="_ctx"||e==="$stable",ks=e=>j(e)?e.map(st):[st(e)],Lc=(e,t,o)=>{if(t._n)return t;const n=we((...s)=>(m.NODE_ENV!=="production"&&$e&&!(o===null&&Oe)&&!(o&&o.root!==$e.root)&&O(`Slot "${e}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`),ks(t(...s))),o);return n._c=!1,n},Ci=(e,t,o)=>{const n=e._ctx;for(const s in e){if(Es(s))continue;const r=e[s];if(z(r))t[s]=Lc(s,r,n);else if(r!=null){m.NODE_ENV!=="production"&&O(`Non-function value encountered for slot "${s}". Prefer function slots for better performance.`);const i=ks(r);t[s]=()=>i}}},Ti=(e,t)=>{m.NODE_ENV!=="production"&&!Vo(e.vnode)&&O("Non-function value encountered for default slot. Prefer function slots for better performance.");const o=ks(t);e.slots.default=()=>o},Ns=(e,t,o)=>{for(const n in t)(o||!Es(n))&&(e[n]=t[n])},Fc=(e,t,o)=>{const n=e.slots=xi();if(e.vnode.shapeFlag&32){const s=t._;s?(Ns(n,t,o),o&&tn(n,"_",s,!0)):Ci(t,n)}else t&&Ti(e,t)},Rc=(e,t,o)=>{const{vnode:n,slots:s}=e;let r=!0,i=le;if(n.shapeFlag&32){const l=t._;l?m.NODE_ENV!=="production"&&ot?(Ns(s,t,o),it(e,"set","$slots")):o&&l===1?r=!1:Ns(s,t,o):(r=!t.$stable,Ci(t,s)),i=t}else t&&(Ti(e,t),i={default:1});if(r)for(const l in s)!Es(l)&&i[l]==null&&delete s[l]};let Po,Nt;function fo(e,t){e.appContext.config.performance&&Sn()&&Nt.mark(`vue-${t}-${e.uid}`),m.NODE_ENV!=="production"&&Ua(e,t,Sn()?Nt.now():Date.now())}function po(e,t){if(e.appContext.config.performance&&Sn()){const o=`vue-${t}-${e.uid}`,n=o+":end",s=`<${Bo(e,e.type)}> ${t}`;Nt.mark(n),Nt.measure(s,o,n),Nt.clearMeasures(s),Nt.clearMarks(o),Nt.clearMarks(n)}m.NODE_ENV!=="production"&&Ba(e,t,Sn()?Nt.now():Date.now())}function Sn(){return Po!==void 0||(typeof window<"u"&&window.performance?(Po=!0,Nt=window.performance):Po=!1),Po}function Hc(){const e=[];if(m.NODE_ENV!=="production"&&e.length){const t=e.length>1;console.warn(`Feature flag${t?"s":""} ${e.join(", ")} ${t?"are":"is"} not explicitly defined. You are running the esm-bundler build of Vue, which expects these compile-time feature flags to be globally injected via the bundler config in order to get better tree-shaking in the production bundle.
|
|
3
|
+
`,...Oa(s)),console.warn(...r)}et(),is=!1}function Na(){let e=Wt[Wt.length-1];if(!e)return[];const t=[];for(;e;){const o=t[0];o&&o.vnode===e?o.recurseCount++:t.push({vnode:e,recurseCount:0});const n=e.component&&e.component.parent;e=n&&n.vnode}return t}function Oa(e){const t=[];return e.forEach((o,n)=>{t.push(...n===0?[]:[`
|
|
4
|
+
`],...$a(o))}),t}function $a({vnode:e,recurseCount:t}){const o=t>0?`... (${t} recursive calls)`:"",n=e.component?e.component.parent==null:!1,s=` at <${Ko(e.component,e.type,n)}`,r=">"+o;return e.props?[s,...Sa(e.props),r]:[s+r]}function Sa(e){const t=[],o=Object.keys(e);return o.slice(0,3).forEach(n=>{t.push(...xr(n,e[n]))}),o.length>3&&t.push(" ..."),t}function xr(e,t,o){return ve(t)?(t=JSON.stringify(t),o?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?o?t:[`${e}=${t}`]:Oe(t)?(t=xr(e,Z(t.value),!0),o?t:[`${e}=Ref<`,t,">"]):z(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Z(t),o?t:[`${e}=`,t])}function Ca(e,t){m.NODE_ENV!=="production"&&e!==void 0&&(typeof e!="number"?O(`${t} is not a valid number - got ${JSON.stringify(e)}.`):isNaN(e)&&O(`${t} is NaN - the duration expression might be incorrect.`))}const ls={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function ao(e,t,o,n){try{return n?e(...n):e()}catch(s){$o(s,t,o)}}function nt(e,t,o,n){if(z(e)){const s=ao(e,t,o,n);return s&&Un(s)&&s.catch(r=>{$o(r,t,o)}),s}if(j(e)){const s=[];for(let r=0;r<e.length;r++)s.push(nt(e[r],t,o,n));return s}else m.NODE_ENV!=="production"&&O(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}`)}function $o(e,t,o,n=!0){const s=t?t.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||de;if(t){let l=t.parent;const a=t.proxy,u=m.NODE_ENV!=="production"?ls[o]:`https://vuejs.org/error-reference/#runtime-${o}`;for(;l;){const c=l.ec;if(c){for(let d=0;d<c.length;d++)if(c[d](e,a,u)===!1)return}l=l.parent}if(r){Qe(),ao(r,null,10,[e,a,u]),et();return}}Ta(e,o,s,n,i)}function Ta(e,t,o,n=!0,s=!1){if(m.NODE_ENV!=="production"){const r=ls[t];if(o&&hn(o),O(`Unhandled error${r?` during execution of ${r}`:""}`),o&&gn(),n)throw e;console.error(e)}else{if(s)throw e;console.error(e)}}const Pe=[];let ct=-1;const co=[];let At=null,uo=0;const wr=Promise.resolve();let mn=null;const Da=100;function dt(e){const t=mn||wr;return e?t.then(this?e.bind(this):e):t}function Va(e){let t=ct+1,o=Pe.length;for(;t<o;){const n=t+o>>>1,s=Pe[n],r=So(s);r<e||r===e&&s.flags&2?t=n+1:o=n}return t}function bn(e){if(!(e.flags&1)){const t=So(e),o=Pe[Pe.length-1];!o||!(e.flags&2)&&t>=So(o)?Pe.push(e):Pe.splice(Va(t),0,e),e.flags|=1,Er()}}function Er(){mn||(mn=wr.then($r))}function kr(e){j(e)?co.push(...e):At&&e.id===-1?At.splice(uo+1,0,e):e.flags&1||(co.push(e),e.flags|=1),Er()}function Nr(e,t,o=ct+1){for(m.NODE_ENV!=="production"&&(t=t||new Map);o<Pe.length;o++){const n=Pe[o];if(n&&n.flags&2){if(e&&n.id!==e.uid||m.NODE_ENV!=="production"&&as(t,n))continue;Pe.splice(o,1),o--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function Or(e){if(co.length){const t=[...new Set(co)].sort((o,n)=>So(o)-So(n));if(co.length=0,At){At.push(...t);return}for(At=t,m.NODE_ENV!=="production"&&(e=e||new Map),uo=0;uo<At.length;uo++){const o=At[uo];m.NODE_ENV!=="production"&&as(e,o)||(o.flags&4&&(o.flags&=-2),o.flags&8||o(),o.flags&=-2)}At=null,uo=0}}const So=e=>e.id==null?e.flags&2?-1:1/0:e.id;function $r(e){m.NODE_ENV!=="production"&&(e=e||new Map);const t=m.NODE_ENV!=="production"?o=>as(e,o):Ce;try{for(ct=0;ct<Pe.length;ct++){const o=Pe[ct];if(o&&!(o.flags&8)){if(m.NODE_ENV!=="production"&&t(o))continue;o.flags&4&&(o.flags&=-2),ao(o,o.i,o.i?15:14),o.flags&4||(o.flags&=-2)}}}finally{for(;ct<Pe.length;ct++){const o=Pe[ct];o&&(o.flags&=-2)}ct=-1,Pe.length=0,Or(e),mn=null,(Pe.length||co.length)&&$r(e)}}function as(e,t){const o=e.get(t)||0;if(o>Da){const n=t.i,s=n&&Vs(n.type);return $o(`Maximum recursive updates exceeded${s?` in component <${s}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}return e.set(t,o+1),!1}let st=!1;const _n=new Map;m.NODE_ENV!=="production"&&(yo().__VUE_HMR_RUNTIME__={createRecord:cs(Sr),rerender:cs(Pa),reload:cs(Ma)});const qt=new Map;function Aa(e){const t=e.type.__hmrId;let o=qt.get(t);o||(Sr(t,e.type),o=qt.get(t)),o.instances.add(e)}function Ia(e){qt.get(e.type.__hmrId).instances.delete(e)}function Sr(e,t){return qt.has(e)?!1:(qt.set(e,{initialDef:vn(t),instances:new Set}),!0)}function vn(e){return Ki(e)?e.__vccOpts:e}function Pa(e,t){const o=qt.get(e);o&&(o.initialDef.render=t,[...o.instances].forEach(n=>{t&&(n.render=t,vn(n.type).render=t),n.renderCache=[],st=!0,n.job.flags&8||n.update(),st=!1}))}function Ma(e,t){const o=qt.get(e);if(!o)return;t=vn(t),Cr(o.initialDef,t);const n=[...o.instances];for(let s=0;s<n.length;s++){const r=n[s],i=vn(r.type);let l=_n.get(i);l||(i!==o.initialDef&&Cr(i,t),_n.set(i,l=new Set)),l.add(r),r.appContext.propsCache.delete(r.type),r.appContext.emitsCache.delete(r.type),r.appContext.optionsCache.delete(r.type),r.ceReload?(l.add(r),r.ceReload(t.styles),l.delete(r)):r.parent?bn(()=>{r.job.flags&8||(st=!0,r.parent.update(),st=!1,l.delete(r))}):r.appContext.reload?r.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required."),r.root.ce&&r!==r.root&&r.root.ce._removeChildStyle(i)}kr(()=>{_n.clear()})}function Cr(e,t){_e(e,t);for(const o in e)o!=="__file"&&!(o in t)&&delete e[o]}function cs(e){return(t,o)=>{try{return e(t,o)}catch(n){console.error(n),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let ut,Co=[],ds=!1;function To(e,...t){ut?ut.emit(e,...t):ds||Co.push({event:e,args:t})}function Tr(e,t){var o,n;ut=e,ut?(ut.enabled=!0,Co.forEach(({event:s,args:r})=>ut.emit(s,...r)),Co=[]):typeof window<"u"&&window.HTMLElement&&!((n=(o=window.navigator)==null?void 0:o.userAgent)!=null&&n.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(r=>{Tr(r,t)}),setTimeout(()=>{ut||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,ds=!0,Co=[])},3e3)):(ds=!0,Co=[])}function ja(e,t){To("app:init",e,t,{Fragment:se,Text:Lo,Comment:Ne,Static:Fo})}function La(e){To("app:unmount",e)}const Fa=us("component:added"),Dr=us("component:updated"),Ra=us("component:removed"),Ha=e=>{ut&&typeof ut.cleanupBuffer=="function"&&!ut.cleanupBuffer(e)&&Ra(e)};function us(e){return t=>{To(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}const Ua=Vr("perf:start"),Ba=Vr("perf:end");function Vr(e){return(t,o,n)=>{To(e,t.appContext.app,t.uid,t,o,n)}}function Ka(e,t,o){To("component:emit",e.appContext.app,e,t,o)}let $e=null,Ar=null;function yn(e){const t=$e;return $e=e,Ar=e&&e.type.__scopeId||null,t}function xe(e,t=$e,o){if(!t||e._n)return e;const n=(...s)=>{n._d&&Tn(-1);const r=yn(t);let i;try{i=e(...s)}finally{yn(r),n._d&&Tn(1)}return m.NODE_ENV!=="production"&&Dr(t),i};return n._n=!0,n._c=!0,n._d=!0,n}function Ir(e){Pl(e)&&O("Do not use built-in directive ids as custom directive id: "+e)}function ft(e,t){if($e===null)return m.NODE_ENV!=="production"&&O("withDirectives can only be used inside render functions."),e;const o=An($e),n=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[r,i,l,a=de]=t[s];r&&(z(r)&&(r={mounted:r,updated:r}),r.deep&&wt(i),n.push({dir:r,instance:o,value:i,oldValue:void 0,arg:l,modifiers:a}))}return e}function Jt(e,t,o,n){const s=e.dirs,r=t&&t.dirs;for(let i=0;i<s.length;i++){const l=s[i];r&&(l.oldValue=r[i].value);let a=l.dir[n];a&&(Qe(),nt(a,o,8,[e.el,l,e,t]),et())}}const Pr=Symbol("_vte"),Mr=e=>e.__isTeleport,Gt=e=>e&&(e.disabled||e.disabled===""),jr=e=>e&&(e.defer||e.defer===""),Lr=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Fr=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,fs=(e,t)=>{const o=e&&e.to;if(ve(o))if(t){const n=t(o);return m.NODE_ENV!=="production"&&!n&&!Gt(e)&&O(`Failed to locate Teleport target with selector "${o}". Note the target element must exist before the component is mounted - i.e. the target cannot be rendered by the component itself, and ideally should be outside of the entire Vue component tree.`),n}else return m.NODE_ENV!=="production"&&O("Current renderer does not support string target for Teleports. (missing querySelector renderer option)"),null;else return m.NODE_ENV!=="production"&&!o&&!Gt(e)&&O(`Invalid Teleport target: ${o}`),o},Rr={name:"Teleport",__isTeleport:!0,process(e,t,o,n,s,r,i,l,a,u){const{mc:c,pc:d,pbc:p,o:{insert:b,querySelector:N,createText:v,createComment:L}}=u,R=Gt(t.props);let{shapeFlag:H,children:B,dynamicChildren:me}=t;if(m.NODE_ENV!=="production"&&st&&(a=!1,me=null),e==null){const I=t.el=m.NODE_ENV!=="production"?L("teleport start"):v(""),P=t.anchor=m.NODE_ENV!=="production"?L("teleport end"):v("");b(I,o,n),b(P,o,n);const q=(x,M)=>{H&16&&c(B,x,M,s,r,i,l,a)},F=()=>{const x=t.target=fs(t.props,N),M=Hr(x,t,v,b);x?(i!=="svg"&&Lr(x)?i="svg":i!=="mathml"&&Fr(x)&&(i="mathml"),s&&s.isCE&&(s.ce._teleportTargets||(s.ce._teleportTargets=new Set)).add(x),R||(q(x,M),wn(t,!1))):m.NODE_ENV!=="production"&&!R&&O("Invalid Teleport target on mount:",x,`(${typeof x})`)};R&&(q(o,P),wn(t,!0)),jr(t.props)?(t.el.__isMounted=!1,Le(()=>{F(),delete t.el.__isMounted},r)):F()}else{if(jr(t.props)&&e.el.__isMounted===!1){Le(()=>{Rr.process(e,t,o,n,s,r,i,l,a,u)},r);return}t.el=e.el,t.targetStart=e.targetStart;const I=t.anchor=e.anchor,P=t.target=e.target,q=t.targetAnchor=e.targetAnchor,F=Gt(e.props),x=F?o:P,M=F?I:q;if(i==="svg"||Lr(P)?i="svg":(i==="mathml"||Fr(P))&&(i="mathml"),me?(p(e.dynamicChildren,me,x,s,r,i,l),jo(e,t,m.NODE_ENV==="production")):a||d(e,t,x,M,s,r,i,l,!1),R)F?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):xn(t,o,I,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const X=t.target=fs(t.props,N);X?xn(t,X,null,u,0):m.NODE_ENV!=="production"&&O("Invalid Teleport target on update:",P,`(${typeof P})`)}else F&&xn(t,P,q,u,1);wn(t,R)}},remove(e,t,o,{um:n,o:{remove:s}},r){const{shapeFlag:i,children:l,anchor:a,targetStart:u,targetAnchor:c,target:d,props:p}=e;if(d&&(s(u),s(c)),r&&s(a),i&16){const b=r||!Gt(p);for(let N=0;N<l.length;N++){const v=l[N];n(v,t,o,b,!!v.dynamicChildren)}}},move:xn,hydrate:za};function xn(e,t,o,{o:{insert:n},m:s},r=2){r===0&&n(e.targetAnchor,t,o);const{el:i,anchor:l,shapeFlag:a,children:u,props:c}=e,d=r===2;if(d&&n(i,t,o),(!d||Gt(c))&&a&16)for(let p=0;p<u.length;p++)s(u[p],t,o,2);d&&n(l,t,o)}function za(e,t,o,n,s,r,{o:{nextSibling:i,parentNode:l,querySelector:a,insert:u,createText:c}},d){function p(v,L,R,H){L.anchor=d(i(v),L,l(v),o,n,s,r),L.targetStart=R,L.targetAnchor=H}const b=t.target=fs(t.props,a),N=Gt(t.props);if(b){const v=b._lpa||b.firstChild;if(t.shapeFlag&16)if(N)p(e,t,v,v&&i(v));else{t.anchor=i(e);let L=v;for(;L;){if(L&&L.nodeType===8){if(L.data==="teleport start anchor")t.targetStart=L;else if(L.data==="teleport anchor"){t.targetAnchor=L,b._lpa=t.targetAnchor&&i(t.targetAnchor);break}}L=i(L)}t.targetAnchor||Hr(b,t,c,u),d(v&&i(v),t,b,o,n,s,r)}wn(t,N)}else N&&t.shapeFlag&16&&p(e,t,e,i(e));return t.anchor&&i(t.anchor)}const Wa=Rr;function wn(e,t){const o=e.ctx;if(o&&o.ut){let n,s;for(t?(n=e.el,s=e.anchor):(n=e.targetStart,s=e.targetAnchor);n&&n!==s;)n.nodeType===1&&n.setAttribute("data-v-owner",o.uid),n=n.nextSibling;o.ut()}}function Hr(e,t,o,n){const s=t.targetStart=o(""),r=t.targetAnchor=o("");return s[Pr]=r,e&&(n(s,e),n(r,e)),r}const Et=Symbol("_leaveCb"),En=Symbol("_enterCb");function qa(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return It(()=>{e.isMounted=!0}),Zr(()=>{e.isUnmounting=!0}),e}const qe=[Function,Array],Ur={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:qe,onEnter:qe,onAfterEnter:qe,onEnterCancelled:qe,onBeforeLeave:qe,onLeave:qe,onAfterLeave:qe,onLeaveCancelled:qe,onBeforeAppear:qe,onAppear:qe,onAfterAppear:qe,onAppearCancelled:qe},Br=e=>{const t=e.subTree;return t.component?Br(t.component):t},Ja={name:"BaseTransition",props:Ur,setup(e,{slots:t}){const o=Cs(),n=qa();return()=>{const s=t.default&&qr(t.default(),!0);if(!s||!s.length)return;const r=Kr(s),i=Z(e),{mode:l}=i;if(m.NODE_ENV!=="production"&&l&&l!=="in-out"&&l!=="out-in"&&l!=="default"&&O(`invalid <transition> mode: ${l}`),n.isLeaving)return hs(r);const a=Wr(r);if(!a)return hs(r);let u=ps(a,i,n,o,d=>u=d);a.type!==Ne&&Do(a,u);let c=o.subTree&&Wr(o.subTree);if(c&&c.type!==Ne&&!Qt(c,a)&&Br(o).type!==Ne){let d=ps(c,i,n,o);if(Do(c,d),l==="out-in"&&a.type!==Ne)return n.isLeaving=!0,d.afterLeave=()=>{n.isLeaving=!1,o.job.flags&8||o.update(),delete d.afterLeave,c=void 0},hs(r);l==="in-out"&&a.type!==Ne?d.delayLeave=(p,b,N)=>{const v=zr(n,c);v[String(c.key)]=c,p[Et]=()=>{b(),p[Et]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{N(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return r}}};function Kr(e){let t=e[0];if(e.length>1){let o=!1;for(const n of e)if(n.type!==Ne){if(m.NODE_ENV!=="production"&&o){O("<transition> can only be used on a single element or component. Use <transition-group> for lists.");break}if(t=n,o=!0,m.NODE_ENV==="production")break}}return t}const Ga=Ja;function zr(e,t){const{leavingVNodes:o}=e;let n=o.get(t.type);return n||(n=Object.create(null),o.set(t.type,n)),n}function ps(e,t,o,n,s){const{appear:r,mode:i,persisted:l=!1,onBeforeEnter:a,onEnter:u,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:p,onLeave:b,onAfterLeave:N,onLeaveCancelled:v,onBeforeAppear:L,onAppear:R,onAfterAppear:H,onAppearCancelled:B}=t,me=String(e.key),I=zr(o,e),P=(x,M)=>{x&&nt(x,n,9,M)},q=(x,M)=>{const X=M[1];P(x,M),j(x)?x.every(V=>V.length<=1)&&X():x.length<=1&&X()},F={mode:i,persisted:l,beforeEnter(x){let M=a;if(!o.isMounted)if(r)M=L||a;else return;x[Et]&&x[Et](!0);const X=I[me];X&&Qt(e,X)&&X.el[Et]&&X.el[Et](),P(M,[x])},enter(x){let M=u,X=c,V=d;if(!o.isMounted)if(r)M=R||u,X=H||c,V=B||d;else return;let fe=!1;const le=x[En]=U=>{fe||(fe=!0,U?P(V,[x]):P(X,[x]),F.delayedLeave&&F.delayedLeave(),x[En]=void 0)};M?q(M,[x,le]):le()},leave(x,M){const X=String(e.key);if(x[En]&&x[En](!0),o.isUnmounting)return M();P(p,[x]);let V=!1;const fe=x[Et]=le=>{V||(V=!0,M(),le?P(v,[x]):P(N,[x]),x[Et]=void 0,I[X]===e&&delete I[X])};I[X]=e,b?q(b,[x,fe]):fe()},clone(x){const M=ps(x,t,o,n,s);return s&&s(M),M}};return F}function hs(e){if(Ao(e))return e=ht(e),e.children=null,e}function Wr(e){if(!Ao(e))return Mr(e.type)&&e.children?Kr(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:o}=e;if(o){if(t&16)return o[0];if(t&32&&z(o.default))return o.default()}}function Do(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Do(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 qr(e,t=!1,o){let n=[],s=0;for(let r=0;r<e.length;r++){let i=e[r];const l=o==null?i.key:String(o)+String(i.key!=null?i.key:r);i.type===se?(i.patchFlag&128&&s++,n=n.concat(qr(i.children,t,l))):(t||i.type!==Ne)&&n.push(l!=null?ht(i,{key:l}):i)}if(s>1)for(let r=0;r<n.length;r++)n[r].patchFlag=-2;return n}function ke(e,t){return z(e)?_e({name:e.name},t,{setup:e}):e}function Jr(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const Gr=new WeakSet,kn=new WeakMap;function Vo(e,t,o,n,s=!1){if(j(e)){e.forEach((v,L)=>Vo(v,t&&(j(t)?t[L]:t),o,n,s));return}if(fo(n)&&!s){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Vo(e,t,o,n.component.subTree);return}const r=n.shapeFlag&4?An(n.component):n.el,i=s?null:r,{i:l,r:a}=e;if(m.NODE_ENV!=="production"&&!l){O("Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.");return}const u=t&&t.r,c=l.refs===de?l.refs={}:l.refs,d=l.setupState,p=Z(d),b=d===de?Js:v=>m.NODE_ENV!=="production"&&(oe(p,v)&&!Oe(p[v])&&O(`Template ref "${v}" used on a non-ref value. It will not work in the production build.`),Gr.has(p[v]))?!1:oe(p,v),N=v=>m.NODE_ENV==="production"||!Gr.has(v);if(u!=null&&u!==a){if(Yr(t),ve(u))c[u]=null,b(u)&&(d[u]=null);else if(Oe(u)){N(u)&&(u.value=null);const v=t;v.k&&(c[v.k]=null)}}if(z(a))ao(a,l,12,[i,c]);else{const v=ve(a),L=Oe(a);if(v||L){const R=()=>{if(e.f){const H=v?b(a)?d[a]:c[a]:N(a)||!e.k?a.value:c[e.k];if(s)j(H)&&Hn(H,r);else if(j(H))H.includes(r)||H.push(r);else if(v)c[a]=[r],b(a)&&(d[a]=c[a]);else{const B=[r];N(a)&&(a.value=B),e.k&&(c[e.k]=B)}}else v?(c[a]=i,b(a)&&(d[a]=i)):L?(N(a)&&(a.value=i),e.k&&(c[e.k]=i)):m.NODE_ENV!=="production"&&O("Invalid template ref type:",a,`(${typeof a})`)};if(i){const H=()=>{R(),kn.delete(e)};H.id=-1,kn.set(e,H),Le(H,o)}else Yr(e),R()}else m.NODE_ENV!=="production"&&O("Invalid template ref type:",a,`(${typeof a})`)}}function Yr(e){const t=kn.get(e);t&&(t.flags|=8,kn.delete(e))}yo().requestIdleCallback,yo().cancelIdleCallback;const fo=e=>!!e.type.__asyncLoader,Ao=e=>e.type.__isKeepAlive;function Ya(e,t){Xr(e,"a",t)}function Xa(e,t){Xr(e,"da",t)}function Xr(e,t,o=Se){const n=e.__wdc||(e.__wdc=()=>{let s=o;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Nn(t,n,o),o){let s=o.parent;for(;s&&s.parent;)Ao(s.parent.vnode)&&Za(n,t,o,s),s=s.parent}}function Za(e,t,o,n){const s=Nn(t,e,n,!0);gs(()=>{Hn(n[t],s)},o)}function Nn(e,t,o=Se,n=!1){if(o){const s=o[e]||(o[e]=[]),r=t.__weh||(t.__weh=(...i)=>{Qe();const l=Uo(o),a=nt(t,o,e,i);return l(),et(),a});return n?s.unshift(r):s.push(r),r}else if(m.NODE_ENV!=="production"){const s=Bt(ls[e].replace(/ hook$/,""));O(`${s} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`)}}const kt=e=>(t,o=Se)=>{(!Bo||e==="sp")&&Nn(e,(...n)=>t(...n),o)},Qa=kt("bm"),It=kt("m"),ec=kt("bu"),tc=kt("u"),Zr=kt("bum"),gs=kt("um"),oc=kt("sp"),nc=kt("rtg"),sc=kt("rtc");function rc(e,t=Se){Nn("ec",e,t)}const Qr="components";function ic(e,t){return oi(Qr,e,!0,t)||e}const ei=Symbol.for("v-ndc");function ti(e){return ve(e)?oi(Qr,e,!1)||e:e||ei}function oi(e,t,o=!0,n=!1){const s=$e||Se;if(s){const r=s.type;{const l=Vs(r,!1);if(l&&(l===t||l===Ve(t)||l===Ut(Ve(t))))return r}const i=ni(s[e]||r[e],t)||ni(s.appContext[e],t);return!i&&n?r:(m.NODE_ENV!=="production"&&o&&!i&&O(`Failed to resolve ${e.slice(0,-1)}: ${t}
|
|
5
|
+
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.`),i)}else m.NODE_ENV!=="production"&&O(`resolve${Ut(e.slice(0,-1))} can only be used in render() or setup().`)}function ni(e,t){return e&&(e[t]||e[Ve(t)]||e[Ut(Ve(t))])}function Me(e,t,o,n){let s;const r=o,i=j(e);if(i||ve(e)){const l=i&&Vt(e);let a=!1,u=!1;l&&(a=!Ie(e),u=tt(e),e=sn(e)),s=new Array(e.length);for(let c=0,d=e.length;c<d;c++)s[c]=t(a?u?lo(ot(e[c])):ot(e[c]):e[c],c,void 0,r)}else if(typeof e=="number"){m.NODE_ENV!=="production"&&!Number.isInteger(e)&&O(`The v-for range expect an integer value but got ${e}.`),s=new Array(e);for(let l=0;l<e;l++)s[l]=t(l+1,l,void 0,r)}else if(ce(e))if(e[Symbol.iterator])s=Array.from(e,(l,a)=>t(l,a,void 0,r));else{const l=Object.keys(e);s=new Array(l.length);for(let a=0,u=l.length;a<u;a++){const c=l[a];s[a]=t(e[c],c,a,r)}}else s=[];return s}function pt(e,t,o={},n,s){if($e.ce||$e.parent&&fo($e.parent)&&$e.parent.ce){const u=Object.keys(o).length>0;return t!=="default"&&(o.name=t),y(),ye(se,null,[Y("slot",o,n&&n())],u?-2:64)}let r=e[t];m.NODE_ENV!=="production"&&r&&r.length>1&&(O("SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template."),r=()=>[]),r&&r._c&&(r._d=!1),y();const i=r&&si(r(o)),l=o.key||i&&i.key,a=ye(se,{key:(l&&!Ye(l)?l:`_${t}`)+(!i&&n?"_fb":"")},i||(n?n():[]),i&&e._===1?64:-2);return r&&r._c&&(r._d=!0),a}function si(e){return e.some(t=>Zt(t)?!(t.type===Ne||t.type===se&&!si(t.children)):!0)?e:null}const ms=e=>e?Ri(e)?An(e):ms(e.parent):null,Yt=_e(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>m.NODE_ENV!=="production"?at(e.props):e.props,$attrs:e=>m.NODE_ENV!=="production"?at(e.attrs):e.attrs,$slots:e=>m.NODE_ENV!=="production"?at(e.slots):e.slots,$refs:e=>m.NODE_ENV!=="production"?at(e.refs):e.refs,$parent:e=>ms(e.parent),$root:e=>ms(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>ci(e),$forceUpdate:e=>e.f||(e.f=()=>{bn(e.update)}),$nextTick:e=>e.n||(e.n=dt.bind(e.proxy)),$watch:e=>yc.bind(e)}),bs=e=>e==="_"||e==="$",_s=(e,t)=>e!==de&&!e.__isScriptSetup&&oe(e,t),ri={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:o,setupState:n,data:s,props:r,accessCache:i,type:l,appContext:a}=e;if(m.NODE_ENV!=="production"&&t==="__isVue")return!0;if(t[0]!=="$"){const p=i[t];if(p!==void 0)switch(p){case 1:return n[t];case 2:return s[t];case 4:return o[t];case 3:return r[t]}else{if(_s(n,t))return i[t]=1,n[t];if(s!==de&&oe(s,t))return i[t]=2,s[t];if(oe(r,t))return i[t]=3,r[t];if(o!==de&&oe(o,t))return i[t]=4,o[t];vs&&(i[t]=0)}}const u=Yt[t];let c,d;if(u)return t==="$attrs"?(Te(e.attrs,"get",""),m.NODE_ENV!=="production"&&Sn()):m.NODE_ENV!=="production"&&t==="$slots"&&Te(e,"get",t),u(e);if((c=l.__cssModules)&&(c=c[t]))return c;if(o!==de&&oe(o,t))return i[t]=4,o[t];if(d=a.config.globalProperties,oe(d,t))return d[t];m.NODE_ENV!=="production"&&$e&&(!ve(t)||t.indexOf("__v")!==0)&&(s!==de&&bs(t[0])&&oe(s,t)?O(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):e===$e&&O(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:e},t,o){const{data:n,setupState:s,ctx:r}=e;return _s(s,t)?(s[t]=o,!0):m.NODE_ENV!=="production"&&s.__isScriptSetup&&oe(s,t)?(O(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):n!==de&&oe(n,t)?(n[t]=o,!0):oe(e.props,t)?(m.NODE_ENV!=="production"&&O(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in e?(m.NODE_ENV!=="production"&&O(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):(m.NODE_ENV!=="production"&&t in e.appContext.config.globalProperties?Object.defineProperty(r,t,{enumerable:!0,configurable:!0,value:o}):r[t]=o,!0)},has({_:{data:e,setupState:t,accessCache:o,ctx:n,appContext:s,props:r,type:i}},l){let a;return!!(o[l]||e!==de&&l[0]!=="$"&&oe(e,l)||_s(t,l)||oe(r,l)||oe(n,l)||oe(Yt,l)||oe(s.config.globalProperties,l)||(a=i.__cssModules)&&a[l])},defineProperty(e,t,o){return o.get!=null?e._.accessCache[t]=0:oe(o,"value")&&this.set(e,t,o.value,null),Reflect.defineProperty(e,t,o)}};m.NODE_ENV!=="production"&&(ri.ownKeys=e=>(O("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e)));function lc(e){const t={};return Object.defineProperty(t,"_",{configurable:!0,enumerable:!1,get:()=>e}),Object.keys(Yt).forEach(o=>{Object.defineProperty(t,o,{configurable:!0,enumerable:!1,get:()=>Yt[o](e),set:Ce})}),t}function ac(e){const{ctx:t,propsOptions:[o]}=e;o&&Object.keys(o).forEach(n=>{Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>e.props[n],set:Ce})})}function cc(e){const{ctx:t,setupState:o}=e;Object.keys(Z(o)).forEach(n=>{if(!o.__isScriptSetup){if(bs(n[0])){O(`setup() return property ${JSON.stringify(n)} should not start with "$" or "_" which are reserved prefixes for Vue internals.`);return}Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>o[n],set:Ce})}})}function ii(e){return j(e)?e.reduce((t,o)=>(t[o]=null,t),{}):e}function dc(){const e=Object.create(null);return(t,o)=>{e[o]?O(`${t} property "${o}" is already defined in ${e[o]}.`):e[o]=t}}let vs=!0;function uc(e){const t=ci(e),o=e.proxy,n=e.ctx;vs=!1,t.beforeCreate&&li(t.beforeCreate,e,"bc");const{data:s,computed:r,methods:i,watch:l,provide:a,inject:u,created:c,beforeMount:d,mounted:p,beforeUpdate:b,updated:N,activated:v,deactivated:L,beforeDestroy:R,beforeUnmount:H,destroyed:B,unmounted:me,render:I,renderTracked:P,renderTriggered:q,errorCaptured:F,serverPrefetch:x,expose:M,inheritAttrs:X,components:V,directives:fe,filters:le}=t,U=m.NODE_ENV!=="production"?dc():null;if(m.NODE_ENV!=="production"){const[ee]=e.propsOptions;if(ee)for(const Q in ee)U("Props",Q)}if(u&&fc(u,n,U),i)for(const ee in i){const Q=i[ee];z(Q)?(m.NODE_ENV!=="production"?Object.defineProperty(n,ee,{value:Q.bind(o),configurable:!0,enumerable:!0,writable:!0}):n[ee]=Q.bind(o),m.NODE_ENV!=="production"&&U("Methods",ee)):m.NODE_ENV!=="production"&&O(`Method "${ee}" has type "${typeof Q}" in the component definition. Did you reference the function correctly?`)}if(s){m.NODE_ENV!=="production"&&!z(s)&&O("The data option must be a function. Plain object usage is no longer supported.");const ee=s.call(o,o);if(m.NODE_ENV!=="production"&&Un(ee)&&O("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),!ce(ee))m.NODE_ENV!=="production"&&O("data() should return an object.");else if(e.data=rs(ee),m.NODE_ENV!=="production")for(const Q in ee)U("Data",Q),bs(Q[0])||Object.defineProperty(n,Q,{configurable:!0,enumerable:!0,get:()=>ee[Q],set:Ce})}if(vs=!0,r)for(const ee in r){const Q=r[ee],Ge=z(Q)?Q.bind(o,o):z(Q.get)?Q.get.bind(o,o):Ce;m.NODE_ENV!=="production"&&Ge===Ce&&O(`Computed property "${ee}" has no getter.`);const Go=!z(Q)&&z(Q.set)?Q.set.bind(o):m.NODE_ENV!=="production"?()=>{O(`Write operation failed: computed property "${ee}" is readonly.`)}:Ce,Ft=ie({get:Ge,set:Go});Object.defineProperty(n,ee,{enumerable:!0,configurable:!0,get:()=>Ft.value,set:Ct=>Ft.value=Ct}),m.NODE_ENV!=="production"&&U("Computed",ee)}if(l)for(const ee in l)ai(l[ee],n,o,ee);if(a){const ee=z(a)?a.call(o):a;Reflect.ownKeys(ee).forEach(Q=>{pi(Q,ee[Q])})}c&&li(c,e,"c");function ne(ee,Q){j(Q)?Q.forEach(Ge=>ee(Ge.bind(o))):Q&&ee(Q.bind(o))}if(ne(Qa,d),ne(It,p),ne(ec,b),ne(tc,N),ne(Ya,v),ne(Xa,L),ne(rc,F),ne(sc,P),ne(nc,q),ne(Zr,H),ne(gs,me),ne(oc,x),j(M))if(M.length){const ee=e.exposed||(e.exposed={});M.forEach(Q=>{Object.defineProperty(ee,Q,{get:()=>o[Q],set:Ge=>o[Q]=Ge,enumerable:!0})})}else e.exposed||(e.exposed={});I&&e.render===Ce&&(e.render=I),X!=null&&(e.inheritAttrs=X),V&&(e.components=V),fe&&(e.directives=fe),x&&Jr(e)}function fc(e,t,o=Ce){j(e)&&(e=ys(e));for(const n in e){const s=e[n];let r;ce(s)?"default"in s?r=Po(s.from||n,s.default,!0):r=Po(s.from||n):r=Po(s),Oe(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:i=>r.value=i}):t[n]=r,m.NODE_ENV!=="production"&&o("Inject",n)}}function li(e,t,o){nt(j(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,o)}function ai(e,t,o,n){let s=n.includes(".")?gi(o,n):()=>o[n];if(ve(e)){const r=t[e];z(r)?De(s,r):m.NODE_ENV!=="production"&&O(`Invalid watch handler specified by key "${e}"`,r)}else if(z(e))De(s,e.bind(o));else if(ce(e))if(j(e))e.forEach(r=>ai(r,t,o,n));else{const r=z(e.handler)?e.handler.bind(o):t[e.handler];z(r)?De(s,r,e):m.NODE_ENV!=="production"&&O(`Invalid watch handler specified by key "${e.handler}"`,r)}else m.NODE_ENV!=="production"&&O(`Invalid watch option: "${n}"`,e)}function ci(e){const t=e.type,{mixins:o,extends:n}=t,{mixins:s,optionsCache:r,config:{optionMergeStrategies:i}}=e.appContext,l=r.get(t);let a;return l?a=l:!s.length&&!o&&!n?a=t:(a={},s.length&&s.forEach(u=>On(a,u,i,!0)),On(a,t,i)),ce(t)&&r.set(t,a),a}function On(e,t,o,n=!1){const{mixins:s,extends:r}=t;r&&On(e,r,o,!0),s&&s.forEach(i=>On(e,i,o,!0));for(const i in t)if(n&&i==="expose")m.NODE_ENV!=="production"&&O('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const l=pc[i]||o&&o[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const pc={data:di,props:ui,emits:ui,methods:Io,computed:Io,beforeCreate:je,created:je,beforeMount:je,mounted:je,beforeUpdate:je,updated:je,beforeDestroy:je,beforeUnmount:je,destroyed:je,unmounted:je,activated:je,deactivated:je,errorCaptured:je,serverPrefetch:je,components:Io,directives:Io,watch:gc,provide:di,inject:hc};function di(e,t){return t?e?function(){return _e(z(e)?e.call(this,this):e,z(t)?t.call(this,this):t)}:t:e}function hc(e,t){return Io(ys(e),ys(t))}function ys(e){if(j(e)){const t={};for(let o=0;o<e.length;o++)t[e[o]]=e[o];return t}return e}function je(e,t){return e?[...new Set([].concat(e,t))]:t}function Io(e,t){return e?_e(Object.create(null),e,t):t}function ui(e,t){return e?j(e)&&j(t)?[...new Set([...e,...t])]:_e(Object.create(null),ii(e),ii(t??{})):t}function gc(e,t){if(!e)return t;if(!t)return e;const o=_e(Object.create(null),e);for(const n in t)o[n]=je(e[n],t[n]);return o}function fi(){return{app:null,config:{isNativeTag:Js,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 mc=0;function bc(e,t){return function(n,s=null){z(n)||(n=_e({},n)),s!=null&&!ce(s)&&(m.NODE_ENV!=="production"&&O("root props passed to app.mount() must be an object."),s=null);const r=fi(),i=new WeakSet,l=[];let a=!1;const u=r.app={_uid:mc++,_component:n,_props:s,_container:null,_context:r,_instance:null,version:zi,get config(){return r.config},set config(c){m.NODE_ENV!=="production"&&O("app.config cannot be replaced. Modify individual options instead.")},use(c,...d){return i.has(c)?m.NODE_ENV!=="production"&&O("Plugin has already been applied to target app."):c&&z(c.install)?(i.add(c),c.install(u,...d)):z(c)?(i.add(c),c(u,...d)):m.NODE_ENV!=="production"&&O('A plugin must either be a function or an object with an "install" function.'),u},mixin(c){return r.mixins.includes(c)?m.NODE_ENV!=="production"&&O("Mixin has already been applied to target app"+(c.name?`: ${c.name}`:"")):r.mixins.push(c),u},component(c,d){return m.NODE_ENV!=="production"&&Ds(c,r.config),d?(m.NODE_ENV!=="production"&&r.components[c]&&O(`Component "${c}" has already been registered in target app.`),r.components[c]=d,u):r.components[c]},directive(c,d){return m.NODE_ENV!=="production"&&Ir(c),d?(m.NODE_ENV!=="production"&&r.directives[c]&&O(`Directive "${c}" has already been registered in target app.`),r.directives[c]=d,u):r.directives[c]},mount(c,d,p){if(a)m.NODE_ENV!=="production"&&O("App has already been mounted.\nIf you want to remount the same app, move your app creation logic into a factory function and create fresh app instances for each mount - e.g. `const createMyApp = () => createApp(App)`");else{m.NODE_ENV!=="production"&&c.__vue_app__&&O("There is already an app instance mounted on the host container.\n If you want to mount another app on the same host container, you need to unmount the previous app by calling `app.unmount()` first.");const b=u._ceVNode||Y(n,s);return b.appContext=r,p===!0?p="svg":p===!1&&(p=void 0),m.NODE_ENV!=="production"&&(r.reload=()=>{const N=ht(b);N.el=null,e(N,c,p)}),e(b,c,p),a=!0,u._container=c,c.__vue_app__=u,m.NODE_ENV!=="production"&&(u._instance=b.component,ja(u,zi)),An(b.component)}},onUnmount(c){m.NODE_ENV!=="production"&&typeof c!="function"&&O(`Expected function as first argument to app.onUnmount(), but got ${typeof c}`),l.push(c)},unmount(){a?(nt(l,u._instance,16),e(null,u._container),m.NODE_ENV!=="production"&&(u._instance=null,La(u)),delete u._container.__vue_app__):m.NODE_ENV!=="production"&&O("Cannot unmount an app that is not mounted.")},provide(c,d){return m.NODE_ENV!=="production"&&c in r.provides&&(oe(r.provides,c)?O(`App already provides property with key "${String(c)}". It will be overwritten with the new value.`):O(`App already provides property with key "${String(c)}" inherited from its parent element. It will be overwritten with the new value.`)),r.provides[c]=d,u},runWithContext(c){const d=po;po=u;try{return c()}finally{po=d}}};return u}}let po=null;function pi(e,t){if(m.NODE_ENV!=="production"&&(!Se||Se.isMounted)&&O("provide() can only be used inside setup()."),Se){let o=Se.provides;const n=Se.parent&&Se.parent.provides;n===o&&(o=Se.provides=Object.create(n)),o[e]=t}}function Po(e,t,o=!1){const n=Cs();if(n||po){let s=po?po._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return o&&z(t)?t.call(n&&n.proxy):t;m.NODE_ENV!=="production"&&O(`injection "${String(e)}" not found.`)}else m.NODE_ENV!=="production"&&O("inject() can only be used inside setup() or functional components.")}const _c=Symbol.for("v-scx"),vc=()=>{{const e=Po(_c);return e||m.NODE_ENV!=="production"&&O("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function De(e,t,o){return m.NODE_ENV!=="production"&&!z(t)&&O("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),hi(e,t,o)}function hi(e,t,o=de){const{immediate:n,deep:s,flush:r,once:i}=o;m.NODE_ENV!=="production"&&!t&&(n!==void 0&&O('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),s!==void 0&&O('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),i!==void 0&&O('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const l=_e({},o);m.NODE_ENV!=="production"&&(l.onWarn=O);const a=t&&n||!t&&r!=="post";let u;if(Bo){if(r==="sync"){const b=vc();u=b.__watcherHandles||(b.__watcherHandles=[])}else if(!a){const b=()=>{};return b.stop=Ce,b.resume=Ce,b.pause=Ce,b}}const c=Se;l.call=(b,N,v)=>nt(b,c,N,v);let d=!1;r==="post"?l.scheduler=b=>{Le(b,c&&c.suspense)}:r!=="sync"&&(d=!0,l.scheduler=(b,N)=>{N?b():bn(b)}),l.augmentJob=b=>{t&&(b.flags|=4),d&&(b.flags|=2,c&&(b.id=c.uid,b.i=c))};const p=ka(e,t,l);return Bo&&(u?u.push(p):a&&p()),p}function yc(e,t,o){const n=this.proxy,s=ve(e)?e.includes(".")?gi(n,e):()=>n[e]:e.bind(n,n);let r;z(t)?r=t:(r=t.handler,o=t);const i=Uo(this),l=hi(s,r.bind(n),o);return i(),l}function gi(e,t){const o=t.split(".");return()=>{let n=e;for(let s=0;s<o.length&&n;s++)n=n[o[s]];return n}}const xc=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ve(t)}Modifiers`]||e[`${Re(t)}Modifiers`];function wc(e,t,...o){if(e.isUnmounted)return;const n=e.vnode.props||de;if(m.NODE_ENV!=="production"){const{emitsOptions:c,propsOptions:[d]}=e;if(c)if(!(t in c))(!d||!(Bt(Ve(t))in d))&&O(`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${Bt(Ve(t))}" prop.`);else{const p=c[t];z(p)&&(p(...o)||O(`Invalid event arguments: event validation failed for event "${t}".`))}}let s=o;const r=t.startsWith("update:"),i=r&&xc(n,t.slice(7));if(i&&(i.trim&&(s=o.map(c=>ve(c)?c.trim():c)),i.number&&(s=o.map(nn))),m.NODE_ENV!=="production"&&Ka(e,t,s),m.NODE_ENV!=="production"){const c=t.toLowerCase();c!==t&&n[Bt(c)]&&O(`Event "${c}" is emitted in component ${Ko(e,e.type)} but the handler is registered for "${t}". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "${Re(t)}" instead of "${t}".`)}let l,a=n[l=Bt(t)]||n[l=Bt(Ve(t))];!a&&r&&(a=n[l=Bt(Re(t))]),a&&nt(a,e,6,s);const u=n[l+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,nt(u,e,6,s)}}const Ec=new WeakMap;function mi(e,t,o=!1){const n=o?Ec:t.emitsCache,s=n.get(e);if(s!==void 0)return s;const r=e.emits;let i={},l=!1;if(!z(e)){const a=u=>{const c=mi(u,t,!0);c&&(l=!0,_e(i,c))};!o&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!r&&!l?(ce(e)&&n.set(e,null),null):(j(r)?r.forEach(a=>i[a]=null):_e(i,r),ce(e)&&n.set(e,i),i)}function $n(e,t){return!e||!bo(t)?!1:(t=t.slice(2).replace(/Once$/,""),oe(e,t[0].toLowerCase()+t.slice(1))||oe(e,Re(t))||oe(e,t))}let xs=!1;function Sn(){xs=!0}function bi(e){const{type:t,vnode:o,proxy:n,withProxy:s,propsOptions:[r],slots:i,attrs:l,emit:a,render:u,renderCache:c,props:d,data:p,setupState:b,ctx:N,inheritAttrs:v}=e,L=yn(e);let R,H;m.NODE_ENV!=="production"&&(xs=!1);try{if(o.shapeFlag&4){const I=s||n,P=m.NODE_ENV!=="production"&&b.__isScriptSetup?new Proxy(I,{get(q,F,x){return O(`Property '${String(F)}' was accessed via 'this'. Avoid using 'this' in templates.`),Reflect.get(q,F,x)}}):I;R=rt(u.call(P,I,c,m.NODE_ENV!=="production"?at(d):d,b,p,N)),H=l}else{const I=t;m.NODE_ENV!=="production"&&l===d&&Sn(),R=rt(I.length>1?I(m.NODE_ENV!=="production"?at(d):d,m.NODE_ENV!=="production"?{get attrs(){return Sn(),at(l)},slots:i,emit:a}:{attrs:l,slots:i,emit:a}):I(m.NODE_ENV!=="production"?at(d):d,null)),H=t.props?l:kc(l)}}catch(I){Ro.length=0,$o(I,e,1),R=Y(Ne)}let B=R,me;if(m.NODE_ENV!=="production"&&R.patchFlag>0&&R.patchFlag&2048&&([B,me]=_i(R)),H&&v!==!1){const I=Object.keys(H),{shapeFlag:P}=B;if(I.length){if(P&7)r&&I.some(Qo)&&(H=Nc(H,r)),B=ht(B,H,!1,!0);else if(m.NODE_ENV!=="production"&&!xs&&B.type!==Ne){const q=Object.keys(l),F=[],x=[];for(let M=0,X=q.length;M<X;M++){const V=q[M];bo(V)?Qo(V)||F.push(V[2].toLowerCase()+V.slice(3)):x.push(V)}x.length&&O(`Extraneous non-props attributes (${x.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text or teleport root nodes.`),F.length&&O(`Extraneous non-emits event listeners (${F.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the "emits" option.`)}}}return o.dirs&&(m.NODE_ENV!=="production"&&!vi(B)&&O("Runtime directive used on component with non-element root node. The directives will not function as intended."),B=ht(B,null,!1,!0),B.dirs=B.dirs?B.dirs.concat(o.dirs):o.dirs),o.transition&&(m.NODE_ENV!=="production"&&!vi(B)&&O("Component inside <Transition> renders non-element root node that cannot be animated."),Do(B,o.transition)),m.NODE_ENV!=="production"&&me?me(B):R=B,yn(L),R}const _i=e=>{const t=e.children,o=e.dynamicChildren,n=ws(t,!1);if(n){if(m.NODE_ENV!=="production"&&n.patchFlag>0&&n.patchFlag&2048)return _i(n)}else return[e,void 0];const s=t.indexOf(n),r=o?o.indexOf(n):-1,i=l=>{t[s]=l,o&&(r>-1?o[r]=l:l.patchFlag>0&&(e.dynamicChildren=[...o,l]))};return[rt(n),i]};function ws(e,t=!0){let o;for(let n=0;n<e.length;n++){const s=e[n];if(Zt(s)){if(s.type!==Ne||s.children==="v-if"){if(o)return;if(o=s,m.NODE_ENV!=="production"&&t&&o.patchFlag>0&&o.patchFlag&2048)return ws(o.children)}}else return}return o}const kc=e=>{let t;for(const o in e)(o==="class"||o==="style"||bo(o))&&((t||(t={}))[o]=e[o]);return t},Nc=(e,t)=>{const o={};for(const n in e)(!Qo(n)||!(n.slice(9)in t))&&(o[n]=e[n]);return o},vi=e=>e.shapeFlag&7||e.type===Ne;function Oc(e,t,o){const{props:n,children:s,component:r}=e,{props:i,children:l,patchFlag:a}=t,u=r.emitsOptions;if(m.NODE_ENV!=="production"&&(s||l)&&st||t.dirs||t.transition)return!0;if(o&&a>=0){if(a&1024)return!0;if(a&16)return n?yi(n,i,u):!!i;if(a&8){const c=t.dynamicProps;for(let d=0;d<c.length;d++){const p=c[d];if(i[p]!==n[p]&&!$n(u,p))return!0}}}else return(s||l)&&(!l||!l.$stable)?!0:n===i?!1:n?i?yi(n,i,u):!0:!!i;return!1}function yi(e,t,o){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let s=0;s<n.length;s++){const r=n[s];if(t[r]!==e[r]&&!$n(o,r))return!0}return!1}function $c({vnode:e,parent:t},o){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.el=e.el),n===e)(e=t.vnode).el=o,t=t.parent;else break}}const xi={},wi=()=>Object.create(xi),Ei=e=>Object.getPrototypeOf(e)===xi;function Sc(e,t,o,n=!1){const s={},r=wi();e.propsDefaults=Object.create(null),ki(e,t,s,r);for(const i in e.propsOptions[0])i in s||(s[i]=void 0);m.NODE_ENV!=="production"&&$i(t||{},s,e),o?e.props=n?s:ma(s):e.type.props?e.props=s:e.props=r,e.attrs=r}function Cc(e){for(;e;){if(e.type.__hmrId)return!0;e=e.parent}}function Tc(e,t,o,n){const{props:s,attrs:r,vnode:{patchFlag:i}}=e,l=Z(s),[a]=e.propsOptions;let u=!1;if(!(m.NODE_ENV!=="production"&&Cc(e))&&(n||i>0)&&!(i&16)){if(i&8){const c=e.vnode.dynamicProps;for(let d=0;d<c.length;d++){let p=c[d];if($n(e.emitsOptions,p))continue;const b=t[p];if(a)if(oe(r,p))b!==r[p]&&(r[p]=b,u=!0);else{const N=Ve(p);s[N]=Es(a,l,N,b,e,!1)}else b!==r[p]&&(r[p]=b,u=!0)}}}else{ki(e,t,s,r)&&(u=!0);let c;for(const d in l)(!t||!oe(t,d)&&((c=Re(d))===d||!oe(t,c)))&&(a?o&&(o[d]!==void 0||o[c]!==void 0)&&(s[d]=Es(a,l,d,void 0,e,!0)):delete s[d]);if(r!==l)for(const d in r)(!t||!oe(t,d))&&(delete r[d],u=!0)}u&<(e.attrs,"set",""),m.NODE_ENV!=="production"&&$i(t||{},s,e)}function ki(e,t,o,n){const[s,r]=e.propsOptions;let i=!1,l;if(t)for(let a in t){if(vo(a))continue;const u=t[a];let c;s&&oe(s,c=Ve(a))?!r||!r.includes(c)?o[c]=u:(l||(l={}))[c]=u:$n(e.emitsOptions,a)||(!(a in n)||u!==n[a])&&(n[a]=u,i=!0)}if(r){const a=Z(o),u=l||de;for(let c=0;c<r.length;c++){const d=r[c];o[d]=Es(s,a,d,u[d],e,!oe(u,d))}}return i}function Es(e,t,o,n,s,r){const i=e[o];if(i!=null){const l=oe(i,"default");if(l&&n===void 0){const a=i.default;if(i.type!==Function&&!i.skipFactory&&z(a)){const{propsDefaults:u}=s;if(o in u)n=u[o];else{const c=Uo(s);n=u[o]=a.call(null,t),c()}}else n=a;s.ce&&s.ce._setProp(o,n)}i[0]&&(r&&!l?n=!1:i[1]&&(n===""||n===Re(o))&&(n=!0))}return n}const Dc=new WeakMap;function Ni(e,t,o=!1){const n=o?Dc:t.propsCache,s=n.get(e);if(s)return s;const r=e.props,i={},l=[];let a=!1;if(!z(e)){const c=d=>{a=!0;const[p,b]=Ni(d,t,!0);_e(i,p),b&&l.push(...b)};!o&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!r&&!a)return ce(e)&&n.set(e,no),no;if(j(r))for(let c=0;c<r.length;c++){m.NODE_ENV!=="production"&&!ve(r[c])&&O("props must be strings when using array syntax.",r[c]);const d=Ve(r[c]);Oi(d)&&(i[d]=de)}else if(r){m.NODE_ENV!=="production"&&!ce(r)&&O("invalid props options",r);for(const c in r){const d=Ve(c);if(Oi(d)){const p=r[c],b=i[d]=j(p)||z(p)?{type:p}:_e({},p),N=b.type;let v=!1,L=!0;if(j(N))for(let R=0;R<N.length;++R){const H=N[R],B=z(H)&&H.name;if(B==="Boolean"){v=!0;break}else B==="String"&&(L=!1)}else v=z(N)&&N.name==="Boolean";b[0]=v,b[1]=L,(v||oe(b,"default"))&&l.push(d)}}}const u=[i,l];return ce(e)&&n.set(e,u),u}function Oi(e){return e[0]!=="$"&&!vo(e)?!0:(m.NODE_ENV!=="production"&&O(`Invalid prop name: "${e}" is a reserved property.`),!1)}function Vc(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function $i(e,t,o){const n=Z(t),s=o.propsOptions[0],r=Object.keys(e).map(i=>Ve(i));for(const i in s){let l=s[i];l!=null&&Ac(i,n[i],l,m.NODE_ENV!=="production"?at(n):n,!r.includes(i))}}function Ac(e,t,o,n,s){const{type:r,required:i,validator:l,skipCheck:a}=o;if(i&&s){O('Missing required prop: "'+e+'"');return}if(!(t==null&&!i)){if(r!=null&&r!==!0&&!a){let u=!1;const c=j(r)?r:[r],d=[];for(let p=0;p<c.length&&!u;p++){const{valid:b,expectedType:N}=Pc(t,c[p]);d.push(N||""),u=b}if(!u){O(Mc(e,t,d));return}}l&&!l(t,n)&&O('Invalid prop: custom validator check failed for prop "'+e+'".')}}const Ic=vt("String,Number,Boolean,Function,Symbol,BigInt");function Pc(e,t){let o;const n=Vc(t);if(n==="null")o=e===null;else if(Ic(n)){const s=typeof e;o=s===n.toLowerCase(),!o&&s==="object"&&(o=e instanceof t)}else n==="Object"?o=ce(e):n==="Array"?o=j(e):o=e instanceof t;return{valid:o,expectedType:n}}function Mc(e,t,o){if(o.length===0)return`Prop type [] for prop "${e}" won't match anything. Did you mean to use type Array instead?`;let n=`Invalid prop: type check failed for prop "${e}". Expected ${o.map(Ut).join(" | ")}`;const s=o[0],r=Bn(t),i=Si(t,s),l=Si(t,r);return o.length===1&&Ci(s)&&!jc(s,r)&&(n+=` with value ${i}`),n+=`, got ${r} `,Ci(r)&&(n+=`with value ${l}.`),n}function Si(e,t){return t==="String"?`"${e}"`:t==="Number"?`${Number(e)}`:`${e}`}function Ci(e){return["string","number","boolean"].some(o=>e.toLowerCase()===o)}function jc(...e){return e.some(t=>t.toLowerCase()==="boolean")}const ks=e=>e==="_"||e==="_ctx"||e==="$stable",Ns=e=>j(e)?e.map(rt):[rt(e)],Lc=(e,t,o)=>{if(t._n)return t;const n=xe((...s)=>(m.NODE_ENV!=="production"&&Se&&!(o===null&&$e)&&!(o&&o.root!==Se.root)&&O(`Slot "${e}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`),Ns(t(...s))),o);return n._c=!1,n},Ti=(e,t,o)=>{const n=e._ctx;for(const s in e){if(ks(s))continue;const r=e[s];if(z(r))t[s]=Lc(s,r,n);else if(r!=null){m.NODE_ENV!=="production"&&O(`Non-function value encountered for slot "${s}". Prefer function slots for better performance.`);const i=Ns(r);t[s]=()=>i}}},Di=(e,t)=>{m.NODE_ENV!=="production"&&!Ao(e.vnode)&&O("Non-function value encountered for default slot. Prefer function slots for better performance.");const o=Ns(t);e.slots.default=()=>o},Os=(e,t,o)=>{for(const n in t)(o||!ks(n))&&(e[n]=t[n])},Fc=(e,t,o)=>{const n=e.slots=wi();if(e.vnode.shapeFlag&32){const s=t._;s?(Os(n,t,o),o&&on(n,"_",s,!0)):Ti(t,n)}else t&&Di(e,t)},Rc=(e,t,o)=>{const{vnode:n,slots:s}=e;let r=!0,i=de;if(n.shapeFlag&32){const l=t._;l?m.NODE_ENV!=="production"&&st?(Os(s,t,o),lt(e,"set","$slots")):o&&l===1?r=!1:Os(s,t,o):(r=!t.$stable,Ti(t,s)),i=t}else t&&(Di(e,t),i={default:1});if(r)for(const l in s)!ks(l)&&i[l]==null&&delete s[l]};let Mo,Nt;function ho(e,t){e.appContext.config.performance&&Cn()&&Nt.mark(`vue-${t}-${e.uid}`),m.NODE_ENV!=="production"&&Ua(e,t,Cn()?Nt.now():Date.now())}function go(e,t){if(e.appContext.config.performance&&Cn()){const o=`vue-${t}-${e.uid}`,n=o+":end",s=`<${Ko(e,e.type)}> ${t}`;Nt.mark(n),Nt.measure(s,o,n),Nt.clearMeasures(s),Nt.clearMarks(o),Nt.clearMarks(n)}m.NODE_ENV!=="production"&&Ba(e,t,Cn()?Nt.now():Date.now())}function Cn(){return Mo!==void 0||(typeof window<"u"&&window.performance?(Mo=!0,Nt=window.performance):Mo=!1),Mo}function Hc(){const e=[];if(m.NODE_ENV!=="production"&&e.length){const t=e.length>1;console.warn(`Feature flag${t?"s":""} ${e.join(", ")} ${t?"are":"is"} not explicitly defined. You are running the esm-bundler build of Vue, which expects these compile-time feature flags to be globally injected via the bundler config in order to get better tree-shaking in the production bundle.
|
|
6
6
|
|
|
7
|
-
For more details, see https://link.vuejs.org/feature-flags.`)}}const Le=Wc;function Uc(e){return Bc(e)}function Bc(e,t){Hc();const o=vo();o.__VUE__=!0,m.NODE_ENV!=="production"&&Cr(o.__VUE_DEVTOOLS_GLOBAL_HOOK__,o);const{insert:n,remove:s,patchProp:r,createElement:i,createText:l,createComment:a,setText:u,setElementText:c,parentNode:d,nextSibling:p,setScopeId:b=Se,insertStaticContent:N}=e,v=(f,h,_,$=null,w=null,E=null,V=void 0,T=null,C=m.NODE_ENV!=="production"&&ot?!1:!!h.dynamicChildren)=>{if(f===h)return;f&&!Yt(f,h)&&($=Fn(f),jt(f,w,E,!0),f=null),h.patchFlag===-2&&(C=!1,h.dynamicChildren=null);const{type:k,ref:W,shapeFlag:A}=h;switch(k){case jo:F(f,h,_,$);break;case ke:R(f,h,_,$);break;case Lo:f==null?H(h,_,$,V):m.NODE_ENV!=="production"&&B(f,h,_,V);break;case te:ce(f,h,_,$,w,E,V,T,C);break;default:A&1?L(f,h,_,$,w,E,V,T,C):A&6?ve(f,h,_,$,w,E,V,T,C):A&64||A&128?k.process(f,h,_,$,w,E,V,T,C,Yo):m.NODE_ENV!=="production"&&O("Invalid VNode type:",k,`(${typeof k})`)}W!=null&&w?Do(W,f&&f.ref,E,h||f,!h):W==null&&f&&f.ref!=null&&Do(f.ref,null,E,f,!0)},F=(f,h,_,$)=>{if(f==null)n(h.el=l(h.children),_,$);else{const w=h.el=f.el;h.children!==f.children&&u(w,h.children)}},R=(f,h,_,$)=>{f==null?n(h.el=a(h.children||""),_,$):h.el=f.el},H=(f,h,_,$)=>{[f.el,f.anchor]=N(f.children,h,_,$,f.el,f.anchor)},B=(f,h,_,$)=>{if(h.children!==f.children){const w=p(f.anchor);I(f),[h.el,h.anchor]=N(h.children,_,w,$)}else h.el=f.el,h.anchor=f.anchor},pe=({el:f,anchor:h},_,$)=>{let w;for(;f&&f!==h;)w=p(f),n(f,_,$),f=w;n(h,_,$)},I=({el:f,anchor:h})=>{let _;for(;f&&f!==h;)_=p(f),s(f),f=_;s(h)},L=(f,h,_,$,w,E,V,T,C)=>{if(h.type==="svg"?V="svg":h.type==="math"&&(V="mathml"),f==null)q(h,_,$,w,E,V,T,C);else{const k=f.el&&f.el._isVueCE?f.el:null;try{k&&k._beginPatch(),P(f,h,w,E,V,T,C)}finally{k&&k._endPatch()}}},q=(f,h,_,$,w,E,V,T)=>{let C,k;const{props:W,shapeFlag:A,transition:K,dirs:J}=f;if(C=f.el=i(f.type,E,W&&W.is,W),A&8?c(C,f.children):A&16&&x(f.children,C,null,$,w,Os(f,E),V,T),J&&zt(f,null,$,"created"),U(C,f,f.scopeId,V,$),W){for(const he in W)he!=="value"&&!_o(he)&&r(C,he,null,W[he],E,$);"value"in W&&r(C,"value",null,W.value,E),(k=W.onVnodeBeforeMount)&&ht(k,$,f)}m.NODE_ENV!=="production"&&(tn(C,"__vnode",f,!0),tn(C,"__vueParentComponent",$,!0)),J&&zt(f,null,$,"beforeMount");const ne=Kc(w,K);ne&&K.beforeEnter(C),n(C,h,_),((k=W&&W.onVnodeMounted)||ne||J)&&Le(()=>{k&&ht(k,$,f),ne&&K.enter(C),J&&zt(f,null,$,"mounted")},w)},U=(f,h,_,$,w)=>{if(_&&b(f,_),$)for(let E=0;E<$.length;E++)b(f,$[E]);if(w){let E=w.subTree;if(m.NODE_ENV!=="production"&&E.patchFlag>0&&E.patchFlag&2048&&(E=xs(E.children)||E),h===E||Ai(E.type)&&(E.ssContent===h||E.ssFallback===h)){const V=w.vnode;U(f,V,V.scopeId,V.slotScopeIds,w.parent)}}},x=(f,h,_,$,w,E,V,T,C=0)=>{for(let k=C;k<f.length;k++){const W=f[k]=T?It(f[k]):st(f[k]);v(null,W,h,_,$,w,E,V,T)}},P=(f,h,_,$,w,E,V)=>{const T=h.el=f.el;m.NODE_ENV!=="production"&&(T.__vnode=h);let{patchFlag:C,dynamicChildren:k,dirs:W}=h;C|=f.patchFlag&16;const A=f.props||le,K=h.props||le;let J;if(_&&Jt(_,!1),(J=K.onVnodeBeforeUpdate)&&ht(J,_,h,f),W&&zt(h,f,_,"beforeUpdate"),_&&Jt(_,!0),m.NODE_ENV!=="production"&&ot&&(C=0,V=!1,k=null),(A.innerHTML&&K.innerHTML==null||A.textContent&&K.textContent==null)&&c(T,""),k?(M(f.dynamicChildren,k,T,_,$,Os(h,w),E),m.NODE_ENV!=="production"&&Mo(f,h)):V||gt(f,h,T,null,_,$,Os(h,w),E,!1),C>0){if(C&16)S(T,A,K,_,w);else if(C&2&&A.class!==K.class&&r(T,"class",null,K.class,w),C&4&&r(T,"style",A.style,K.style,w),C&8){const ne=h.dynamicProps;for(let he=0;he<ne.length;he++){const de=ne[he],Ue=A[de],Be=K[de];(Be!==Ue||de==="value")&&r(T,de,Ue,Be,w,_)}}C&1&&f.children!==h.children&&c(T,h.children)}else!V&&k==null&&S(T,A,K,_,w);((J=K.onVnodeUpdated)||W)&&Le(()=>{J&&ht(J,_,h,f),W&&zt(h,f,_,"updated")},$)},M=(f,h,_,$,w,E,V)=>{for(let T=0;T<h.length;T++){const C=f[T],k=h[T],W=C.el&&(C.type===te||!Yt(C,k)||C.shapeFlag&198)?d(C.el):_;v(C,k,W,null,$,w,E,V,!0)}},S=(f,h,_,$,w)=>{if(h!==_){if(h!==le)for(const E in h)!_o(E)&&!(E in _)&&r(f,E,h[E],null,w,$);for(const E in _){if(_o(E))continue;const V=_[E],T=h[E];V!==T&&E!=="value"&&r(f,E,T,V,w,$)}"value"in _&&r(f,"value",h.value,_.value,w)}},ce=(f,h,_,$,w,E,V,T,C)=>{const k=h.el=f?f.el:l(""),W=h.anchor=f?f.anchor:l("");let{patchFlag:A,dynamicChildren:K,slotScopeIds:J}=h;m.NODE_ENV!=="production"&&(ot||A&2048)&&(A=0,C=!1,K=null),J&&(T=T?T.concat(J):J),f==null?(n(k,_,$),n(W,_,$),x(h.children||[],_,W,w,E,V,T,C)):A>0&&A&64&&K&&f.dynamicChildren?(M(f.dynamicChildren,K,_,w,E,V,T),m.NODE_ENV!=="production"?Mo(f,h):(h.key!=null||w&&h===w.subTree)&&Mo(f,h,!0)):gt(f,h,_,W,w,E,V,T,C)},ve=(f,h,_,$,w,E,V,T,C)=>{h.slotScopeIds=T,f==null?h.shapeFlag&512?w.ctx.activate(h,_,$,V,C):De(h,_,$,w,E,V,C):Ee(f,h,C)},De=(f,h,_,$,w,E,V)=>{const T=f.component=ed(f,$,w);if(m.NODE_ENV!=="production"&&T.type.__hmrId&&Aa(T),m.NODE_ENV!=="production"&&(pn(f),fo(T,"mount")),Vo(f)&&(T.ctx.renderer=Yo),m.NODE_ENV!=="production"&&fo(T,"init"),od(T,!1,V),m.NODE_ENV!=="production"&&po(T,"init"),m.NODE_ENV!=="production"&&ot&&(f.el=null),T.asyncDep){if(w&&w.registerDep(T,Z,V),!f.el){const C=T.subTree=Y(ke);R(null,C,h,_),f.placeholder=C.el}}else Z(T,f,h,_,w,E,V);m.NODE_ENV!=="production"&&(hn(),po(T,"mount"))},Ee=(f,h,_)=>{const $=h.component=f.component;if(Oc(f,h,_))if($.asyncDep&&!$.asyncResolved){m.NODE_ENV!=="production"&&pn(h),Q($,h,_),m.NODE_ENV!=="production"&&hn();return}else $.next=h,$.update();else h.el=f.el,$.vnode=h},Z=(f,h,_,$,w,E,V)=>{const T=()=>{if(f.isMounted){let{next:A,bu:K,u:J,parent:ne,vnode:he}=f;{const bt=Di(f);if(bt){A&&(A.el=he.el,Q(f,A,V)),bt.asyncDep.then(()=>{f.isUnmounted||T()});return}}let de=A,Ue;m.NODE_ENV!=="production"&&pn(A||f.vnode),Jt(f,!1),A?(A.el=he.el,Q(f,A,V)):A=he,K&&no(K),(Ue=A.props&&A.props.onVnodeBeforeUpdate)&&ht(Ue,ne,A,he),Jt(f,!0),m.NODE_ENV!=="production"&&fo(f,"render");const Be=mi(f);m.NODE_ENV!=="production"&&po(f,"render");const mt=f.subTree;f.subTree=Be,m.NODE_ENV!=="production"&&fo(f,"patch"),v(mt,Be,d(mt.el),Fn(mt),f,w,E),m.NODE_ENV!=="production"&&po(f,"patch"),A.el=Be.el,de===null&&$c(f,Be.el),J&&Le(J,w),(Ue=A.props&&A.props.onVnodeUpdated)&&Le(()=>ht(Ue,ne,A,he),w),m.NODE_ENV!=="production"&&Tr(f),m.NODE_ENV!=="production"&&hn()}else{let A;const{el:K,props:J}=h,{bm:ne,m:he,parent:de,root:Ue,type:Be}=f,mt=co(h);Jt(f,!1),ne&&no(ne),!mt&&(A=J&&J.onVnodeBeforeMount)&&ht(A,de,h),Jt(f,!0);{Ue.ce&&Ue.ce._def.shadowRoot!==!1&&Ue.ce._injectChildStyle(Be),m.NODE_ENV!=="production"&&fo(f,"render");const bt=f.subTree=mi(f);m.NODE_ENV!=="production"&&po(f,"render"),m.NODE_ENV!=="production"&&fo(f,"patch"),v(null,bt,_,$,f,w,E),m.NODE_ENV!=="production"&&po(f,"patch"),h.el=bt.el}if(he&&Le(he,w),!mt&&(A=J&&J.onVnodeMounted)){const bt=h;Le(()=>ht(A,de,bt),w)}(h.shapeFlag&256||de&&co(de.vnode)&&de.vnode.shapeFlag&256)&&f.a&&Le(f.a,w),f.isMounted=!0,m.NODE_ENV!=="production"&&Fa(f),h=_=$=null}};f.scope.on();const C=f.effect=new er(T);f.scope.off();const k=f.update=C.run.bind(C),W=f.job=C.runIfDirty.bind(C);W.i=f,W.id=f.uid,C.scheduler=()=>mn(W),Jt(f,!0),m.NODE_ENV!=="production"&&(C.onTrack=f.rtc?A=>no(f.rtc,A):void 0,C.onTrigger=f.rtg?A=>no(f.rtg,A):void 0),k()},Q=(f,h,_)=>{h.component=f;const $=f.vnode.props;f.vnode=h,f.next=null,Tc(f,h.props,$,_),Rc(f,h.children,_),Xe(),kr(f),Ze()},gt=(f,h,_,$,w,E,V,T,C=!1)=>{const k=f&&f.children,W=f?f.shapeFlag:0,A=h.children,{patchFlag:K,shapeFlag:J}=h;if(K>0){if(K&128){Jo(k,A,_,$,w,E,V,T,C);return}else if(K&256){Bs(k,A,_,$,w,E,V,T,C);return}}J&8?(W&16&&Go(k,w,E),A!==k&&c(_,A)):W&16?J&16?Jo(k,A,_,$,w,E,V,T,C):Go(k,w,E,!0):(W&8&&c(_,""),J&16&&x(A,_,$,w,E,V,T,C))},Bs=(f,h,_,$,w,E,V,T,C)=>{f=f||to,h=h||to;const k=f.length,W=h.length,A=Math.min(k,W);let K;for(K=0;K<A;K++){const J=h[K]=C?It(h[K]):st(h[K]);v(f[K],J,_,null,w,E,V,T,C)}k>W?Go(f,w,E,!0,!1,A):x(h,_,$,w,E,V,T,C,A)},Jo=(f,h,_,$,w,E,V,T,C)=>{let k=0;const W=h.length;let A=f.length-1,K=W-1;for(;k<=A&&k<=K;){const J=f[k],ne=h[k]=C?It(h[k]):st(h[k]);if(Yt(J,ne))v(J,ne,_,null,w,E,V,T,C);else break;k++}for(;k<=A&&k<=K;){const J=f[A],ne=h[K]=C?It(h[K]):st(h[K]);if(Yt(J,ne))v(J,ne,_,null,w,E,V,T,C);else break;A--,K--}if(k>A){if(k<=K){const J=K+1,ne=J<W?h[J].el:$;for(;k<=K;)v(null,h[k]=C?It(h[k]):st(h[k]),_,ne,w,E,V,T,C),k++}}else if(k>K)for(;k<=A;)jt(f[k],w,E,!0),k++;else{const J=k,ne=k,he=new Map;for(k=ne;k<=K;k++){const Fe=h[k]=C?It(h[k]):st(h[k]);Fe.key!=null&&(m.NODE_ENV!=="production"&&he.has(Fe.key)&&O("Duplicate keys found during update:",JSON.stringify(Fe.key),"Make sure keys are unique."),he.set(Fe.key,k))}let de,Ue=0;const Be=K-ne+1;let mt=!1,bt=0;const Xo=new Array(Be);for(k=0;k<Be;k++)Xo[k]=0;for(k=J;k<=A;k++){const Fe=f[k];if(Ue>=Be){jt(Fe,w,E,!0);continue}let _t;if(Fe.key!=null)_t=he.get(Fe.key);else for(de=ne;de<=K;de++)if(Xo[de-ne]===0&&Yt(Fe,h[de])){_t=de;break}_t===void 0?jt(Fe,w,E,!0):(Xo[_t-ne]=k+1,_t>=bt?bt=_t:mt=!0,v(Fe,h[_t],_,null,w,E,V,T,C),Ue++)}const Tl=mt?zc(Xo):to;for(de=Tl.length-1,k=Be-1;k>=0;k--){const Fe=ne+k,_t=h[Fe],Dl=h[Fe+1],Vl=Fe+1<W?Dl.el||Dl.placeholder:$;Xo[k]===0?v(null,_t,_,Vl,w,E,V,T,C):mt&&(de<0||k!==Tl[de]?go(_t,_,Vl,2):de--)}}},go=(f,h,_,$,w=null)=>{const{el:E,type:V,transition:T,children:C,shapeFlag:k}=f;if(k&6){go(f.component.subTree,h,_,$);return}if(k&128){f.suspense.move(h,_,$);return}if(k&64){V.move(f,h,_,Yo);return}if(V===te){n(E,h,_);for(let A=0;A<C.length;A++)go(C[A],h,_,$);n(f.anchor,h,_);return}if(V===Lo){pe(f,h,_);return}if($!==2&&k&1&&T)if($===0)T.beforeEnter(E),n(E,h,_),Le(()=>T.enter(E),w);else{const{leave:A,delayLeave:K,afterLeave:J}=T,ne=()=>{f.ctx.isUnmounted?s(E):n(E,h,_)},he=()=>{E._isLeaving&&E[Et](!0),A(E,()=>{ne(),J&&J()})};K?K(E,ne,he):he()}else n(E,h,_)},jt=(f,h,_,$=!1,w=!1)=>{const{type:E,props:V,ref:T,children:C,dynamicChildren:k,shapeFlag:W,patchFlag:A,dirs:K,cacheIndex:J}=f;if(A===-2&&(w=!1),T!=null&&(Xe(),Do(T,null,_,f,!0),Ze()),J!=null&&(h.renderCache[J]=void 0),W&256){h.ctx.deactivate(f);return}const ne=W&1&&K,he=!co(f);let de;if(he&&(de=V&&V.onVnodeBeforeUnmount)&&ht(de,h,f),W&6)yh(f.component,_,$);else{if(W&128){f.suspense.unmount(_,$);return}ne&&zt(f,null,h,"beforeUnmount"),W&64?f.type.remove(f,h,_,Yo,$):k&&!k.hasOnce&&(E!==te||A>0&&A&64)?Go(k,h,_,!1,!0):(E===te&&A&384||!w&&W&16)&&Go(C,h,_),$&&Ks(f)}(he&&(de=V&&V.onVnodeUnmounted)||ne)&&Le(()=>{de&&ht(de,h,f),ne&&zt(f,null,h,"unmounted")},_)},Ks=f=>{const{type:h,el:_,anchor:$,transition:w}=f;if(h===te){m.NODE_ENV!=="production"&&f.patchFlag>0&&f.patchFlag&2048&&w&&!w.persisted?f.children.forEach(V=>{V.type===ke?s(V.el):Ks(V)}):vh(_,$);return}if(h===Lo){I(f);return}const E=()=>{s(_),w&&!w.persisted&&w.afterLeave&&w.afterLeave()};if(f.shapeFlag&1&&w&&!w.persisted){const{leave:V,delayLeave:T}=w,C=()=>V(_,E);T?T(f.el,E,C):C()}else E()},vh=(f,h)=>{let _;for(;f!==h;)_=p(f),s(f),f=_;s(h)},yh=(f,h,_)=>{m.NODE_ENV!=="production"&&f.type.__hmrId&&Ia(f);const{bum:$,scope:w,job:E,subTree:V,um:T,m:C,a:k}=f;Vi(C),Vi(k),$&&no($),w.stop(),E&&(E.flags|=8,jt(V,f,h,_)),T&&Le(T,h),Le(()=>{f.isUnmounted=!0},h),m.NODE_ENV!=="production"&&Ha(f)},Go=(f,h,_,$=!1,w=!1,E=0)=>{for(let V=E;V<f.length;V++)jt(f[V],h,_,$,w)},Fn=f=>{if(f.shapeFlag&6)return Fn(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const h=p(f.anchor||f.el),_=h&&h[Ir];return _?p(_):h};let zs=!1;const Cl=(f,h,_)=>{f==null?h._vnode&&jt(h._vnode,null,null,!0):v(h._vnode||null,f,h,null,null,null,_),h._vnode=f,zs||(zs=!0,kr(),Nr(),zs=!1)},Yo={p:v,um:jt,m:go,r:Ks,mt:De,mc:x,pc:gt,pbc:M,n:Fn,o:e};return{render:Cl,hydrate:void 0,createApp:bc(Cl)}}function Os({type:e,props:t},o){return o==="svg"&&e==="foreignObject"||o==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:o}function Jt({effect:e,job:t},o){o?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Kc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Mo(e,t,o=!1){const n=e.children,s=t.children;if(j(n)&&j(s))for(let r=0;r<n.length;r++){const i=n[r];let l=s[r];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=s[r]=It(s[r]),l.el=i.el),!o&&l.patchFlag!==-2&&Mo(i,l)),l.type===jo&&l.patchFlag!==-1&&(l.el=i.el),l.type===ke&&!l.el&&(l.el=i.el),m.NODE_ENV!=="production"&&l.el&&(l.el.__vnode=l)}}function zc(e){const t=e.slice(),o=[0];let n,s,r,i,l;const a=e.length;for(n=0;n<a;n++){const u=e[n];if(u!==0){if(s=o[o.length-1],e[s]<u){t[n]=s,o.push(n);continue}for(r=0,i=o.length-1;r<i;)l=r+i>>1,e[o[l]]<u?r=l+1:i=l;u<e[o[r]]&&(r>0&&(t[n]=o[r-1]),o[r]=n)}}for(r=o.length,i=o[r-1];r-- >0;)o[r]=i,i=t[i];return o}function Di(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Di(t)}function Vi(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const Ai=e=>e.__isSuspense;function Wc(e,t){t&&t.pendingBranch?j(e)?t.effects.push(...e):t.effects.push(e):Er(e)}const te=Symbol.for("v-fgt"),jo=Symbol.for("v-txt"),ke=Symbol.for("v-cmt"),Lo=Symbol.for("v-stc"),Fo=[];let Ke=null;function y(e=!1){Fo.push(Ke=e?null:[])}function qc(){Fo.pop(),Ke=Fo[Fo.length-1]||null}let Ro=1;function Cn(e,t=!1){Ro+=e,e<0&&Ke&&t&&(Ke.hasOnce=!0)}function Ii(e){return e.dynamicChildren=Ro>0?Ke||to:null,qc(),Ro>0&&Ke&&Ke.push(e),e}function D(e,t,o,n,s,r){return Ii(g(e,t,o,n,s,r,!0))}function be(e,t,o,n,s){return Ii(Y(e,t,o,n,s,!0))}function Gt(e){return e?e.__v_isVNode===!0:!1}function Yt(e,t){if(m.NODE_ENV!=="production"&&t.shapeFlag&6&&e.component){const o=bn.get(t.type);if(o&&o.has(e.component))return e.shapeFlag&=-257,t.shapeFlag&=-513,!1}return e.type===t.type&&e.key===t.key}const Jc=(...e)=>Mi(...e),Pi=({key:e})=>e??null,Tn=({ref:e,ref_key:t,ref_for:o})=>(typeof e=="number"&&(e=""+e),e!=null?me(e)||Ne(e)||z(e)?{i:Oe,r:e,k:t,f:!!o}:e:null);function g(e,t=null,o=null,n=0,s=null,r=e===te?0:1,i=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Pi(t),ref:t&&Tn(t),scopeId:Vr,slotScopeIds:null,children:o,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:n,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Oe};return l?($s(a,o),r&128&&e.normalize(a)):o&&(a.shapeFlag|=me(o)?8:16),m.NODE_ENV!=="production"&&a.key!==a.key&&O("VNode created with invalid key (NaN). VNode type:",a.type),Ro>0&&!i&&Ke&&(a.patchFlag>0||r&6)&&a.patchFlag!==32&&Ke.push(a),a}const Y=m.NODE_ENV!=="production"?Jc:Mi;function Mi(e,t=null,o=null,n=0,s=null,r=!1){if((!e||e===Qr)&&(m.NODE_ENV!=="production"&&!e&&O(`Invalid vnode type when creating vnode: ${e}.`),e=ke),Gt(e)){const l=pt(e,t,!0);return o&&$s(l,o),Ro>0&&!r&&Ke&&(l.shapeFlag&6?Ke[Ke.indexOf(e)]=l:Ke.push(l)),l.patchFlag=-2,l}if(Bi(e)&&(e=e.__vccOpts),t){t=Gc(t);let{class:l,style:a}=t;l&&!me(l)&&(t.class=ye(l)),se(a)&&(dn(a)&&!j(a)&&(a=ge({},a)),t.style=yt(a))}const i=me(e)?1:Ai(e)?128:Pr(e)?64:se(e)?4:z(e)?2:0;return m.NODE_ENV!=="production"&&i&4&&dn(e)&&(e=X(e),O("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
|
|
8
|
-
Component that was made reactive: `,e)),g(e,t,o,n,s,i,r,!0)}function Gc(e){return e?dn(e)||wi(e)?ge({},e):e:null}function pt(e,t,o=!1,n=!1){const{props:s,ref:r,patchFlag:i,children:l,transition:a}=e,u=t?Xc(s||{},t):s,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Pi(u),ref:t&&t.ref?o&&r?j(r)?r.concat(Tn(t)):[r,Tn(t)]:Tn(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:m.NODE_ENV!=="production"&&i===-1&&j(l)?l.map(ji):l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==te?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&pt(e.ssContent),ssFallback:e.ssFallback&&pt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&n&&To(c,a.clone(c)),c}function ji(e){const t=pt(e);return j(e.children)&&(t.children=e.children.map(ji)),t}function nt(e=" ",t=0){return Y(jo,null,e,t)}function Yc(e,t){const o=Y(Lo,null,e);return o.staticCount=t,o}function ie(e="",t=!1){return t?(y(),be(ke,null,e)):Y(ke,null,e)}function st(e){return e==null||typeof e=="boolean"?Y(ke):j(e)?Y(te,null,e.slice()):Gt(e)?It(e):Y(jo,null,String(e))}function It(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:pt(e)}function $s(e,t){let o=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(j(t))o=16;else if(typeof t=="object")if(n&65){const s=t.default;s&&(s._c&&(s._d=!1),$s(e,s()),s._c&&(s._d=!0));return}else{o=32;const s=t._;!s&&!wi(t)?t._ctx=Oe:s===3&&Oe&&(Oe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else z(t)?(t={default:t,_ctx:Oe},o=32):(t=String(t),n&64?(o=16,t=[nt(t)]):o=8);e.children=t,e.shapeFlag|=o}function Xc(...e){const t={};for(let o=0;o<e.length;o++){const n=e[o];for(const s in n)if(s==="class")t.class!==n.class&&(t.class=ye([t.class,n.class]));else if(s==="style")t.style=yt([t.style,n.style]);else if(mo(s)){const r=t[s],i=n[s];i&&r!==i&&!(j(r)&&r.includes(i))&&(t[s]=r?[].concat(r,i):i)}else s!==""&&(t[s]=n[s])}return t}function ht(e,t,o,n=null){tt(e,t,7,[o,n])}const Zc=ui();let Qc=0;function ed(e,t,o){const n=e.type,s=(t?t.appContext:e.appContext)||Zc,r={uid:Qc++,vnode:e,type:n,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Yl(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ki(n,s),emitsOptions:gi(n,s),emit:null,emitted:null,propsDefaults:le,inheritAttrs:n.inheritAttrs,ctx:le,data:le,props:le,attrs:le,slots:le,refs:le,setupState:le,setupContext:null,suspense:o,suspenseId:o?o.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 m.NODE_ENV!=="production"?r.ctx=lc(r):r.ctx={_:r},r.root=t?t.root:r,r.emit=wc.bind(null,r),e.ce&&e.ce(r),r}let $e=null;const Ss=()=>$e||Oe;let Dn,Cs;{const e=vo(),t=(o,n)=>{let s;return(s=e[o])||(s=e[o]=[]),s.push(n),r=>{s.length>1?s.forEach(i=>i(r)):s[0](r)}};Dn=t("__VUE_INSTANCE_SETTERS__",o=>$e=o),Cs=t("__VUE_SSR_SETTERS__",o=>Uo=o)}const Ho=e=>{const t=$e;return Dn(e),e.scope.on(),()=>{e.scope.off(),Dn(t)}},Li=()=>{$e&&$e.scope.off(),Dn(null)},td=vt("slot,component");function Ts(e,{isNativeTag:t}){(td(e)||t(e))&&O("Do not use built-in or reserved HTML elements as component id: "+e)}function Fi(e){return e.vnode.shapeFlag&4}let Uo=!1;function od(e,t=!1,o=!1){t&&Cs(t);const{props:n,children:s}=e.vnode,r=Fi(e);Sc(e,n,r,t),Fc(e,s,o||t);const i=r?nd(e,t):void 0;return t&&Cs(!1),i}function nd(e,t){const o=e.type;if(m.NODE_ENV!=="production"){if(o.name&&Ts(o.name,e.appContext.config),o.components){const s=Object.keys(o.components);for(let r=0;r<s.length;r++)Ts(s[r],e.appContext.config)}if(o.directives){const s=Object.keys(o.directives);for(let r=0;r<s.length;r++)Ar(s[r])}o.compilerOptions&&sd()&&O('"compilerOptions" is only supported when using a build of Vue that includes the runtime compiler. Since you are using a runtime-only build, the options should be passed via your build tool config instead.')}e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,si),m.NODE_ENV!=="production"&&ac(e);const{setup:n}=o;if(n){Xe();const s=e.setupContext=n.length>1?id(e):null,r=Ho(e),i=io(n,e,0,[m.NODE_ENV!=="production"?lt(e.props):e.props,s]),l=Hn(i);if(Ze(),r(),(l||e.sp)&&!co(e)&&qr(e),l){if(i.then(Li,Li),t)return i.then(a=>{Ri(e,a,t)}).catch(a=>{Oo(a,e,0)});if(e.asyncDep=i,m.NODE_ENV!=="production"&&!e.suspense){const a=Bo(e,o);O(`Component <${a}>: setup function returned a promise, but no <Suspense> boundary was found in the parent component tree. A component with async setup() must be nested in a <Suspense> in order to be rendered.`)}}else Ri(e,i,t)}else Hi(e,t)}function Ri(e,t,o){z(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:se(t)?(m.NODE_ENV!=="production"&&Gt(t)&&O("setup() should not return VNodes directly - return a render function instead."),m.NODE_ENV!=="production"&&(e.devtoolsRawSetupState=t),e.setupState=vr(t),m.NODE_ENV!=="production"&&cc(e)):m.NODE_ENV!=="production"&&t!==void 0&&O(`setup() should return an object. Received: ${t===null?"null":typeof t}`),Hi(e,o)}const sd=()=>!0;function Hi(e,t,o){const n=e.type;e.render||(e.render=n.render||Se);{const s=Ho(e);Xe();try{uc(e)}finally{Ze(),s()}}m.NODE_ENV!=="production"&&!n.render&&e.render===Se&&!t&&(n.template?O('Component provided template option but runtime compilation is not supported in this build of Vue. Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".'):O("Component is missing template or render function: ",n))}const Ui=m.NODE_ENV!=="production"?{get(e,t){return $n(),Ce(e,"get",""),e[t]},set(){return O("setupContext.attrs is readonly."),!1},deleteProperty(){return O("setupContext.attrs is readonly."),!1}}:{get(e,t){return Ce(e,"get",""),e[t]}};function rd(e){return new Proxy(e.slots,{get(t,o){return Ce(e,"get","$slots"),t[o]}})}function id(e){const t=o=>{if(m.NODE_ENV!=="production"&&(e.exposed&&O("expose() should be called only once per setup()."),o!=null)){let n=typeof o;n==="object"&&(j(o)?n="array":Ne(o)&&(n="ref")),n!=="object"&&O(`expose() should be passed a plain object, received ${n}.`)}e.exposed=o||{}};if(m.NODE_ENV!=="production"){let o,n;return Object.freeze({get attrs(){return o||(o=new Proxy(e.attrs,Ui))},get slots(){return n||(n=rd(e))},get emit(){return(s,...r)=>e.emit(s,...r)},expose:t})}else return{attrs:new Proxy(e.attrs,Ui),slots:e.slots,emit:e.emit,expose:t}}function Vn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(vr(ba(e.exposed)),{get(t,o){if(o in t)return t[o];if(o in qt)return qt[o](e)},has(t,o){return o in t||o in qt}})):e.proxy}const ld=/(?:^|[-_])\w/g,ad=e=>e.replace(ld,t=>t.toUpperCase()).replace(/[-_]/g,"");function Ds(e,t=!0){return z(e)?e.displayName||e.name:e.name||t&&e.__name}function Bo(e,t,o=!1){let n=Ds(t);if(!n&&t.__file){const s=t.__file.match(/([^/\\]+)\.\w+$/);s&&(n=s[1])}if(!n&&e){const s=r=>{for(const i in r)if(r[i]===t)return i};n=s(e.components)||e.parent&&s(e.parent.type.components)||s(e.appContext.components)}return n?ad(n):o?"App":"Anonymous"}function Bi(e){return z(e)&&"__vccOpts"in e}const oe=(e,t)=>{const o=wa(e,t,Uo);if(m.NODE_ENV!=="production"){const n=Ss();n&&n.appContext.config.warnRecursiveComputed&&(o._warnRecursive=!0)}return o};function cd(e,t,o){try{Cn(-1);const n=arguments.length;return n===2?se(t)&&!j(t)?Gt(t)?Y(e,null,[t]):Y(e,t):Y(e,null,t):(n>3?o=Array.prototype.slice.call(arguments,2):n===3&&Gt(o)&&(o=[o]),Y(e,t,o))}finally{Cn(1)}}function dd(){if(m.NODE_ENV==="production"||typeof window>"u")return;const e={style:"color:#3ba776"},t={style:"color:#1677ff"},o={style:"color:#f5222d"},n={style:"color:#eb2f96"},s={__vue_custom_formatter:!0,header(d){if(!se(d))return null;if(d.__isVue)return["div",e,"VueInstance"];if(Ne(d)){Xe();const p=d.value;return Ze(),["div",{},["span",e,c(d)],"<",l(p),">"]}else{if(Dt(d))return["div",{},["span",e,Ie(d)?"ShallowReactive":"Reactive"],"<",l(d),`>${Qe(d)?" (readonly)":""}`];if(Qe(d))return["div",{},["span",e,Ie(d)?"ShallowReadonly":"Readonly"],"<",l(d),">"]}return null},hasBody(d){return d&&d.__isVue},body(d){if(d&&d.__isVue)return["div",{},...r(d.$)]}};function r(d){const p=[];d.type.props&&d.props&&p.push(i("props",X(d.props))),d.setupState!==le&&p.push(i("setup",d.setupState)),d.data!==le&&p.push(i("data",X(d.data)));const b=a(d,"computed");b&&p.push(i("computed",b));const N=a(d,"inject");return N&&p.push(i("injected",N)),p.push(["div",{},["span",{style:n.style+";opacity:0.66"},"$ (internal): "],["object",{object:d}]]),p}function i(d,p){return p=ge({},p),Object.keys(p).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},d],["div",{style:"padding-left:1.25em"},...Object.keys(p).map(b=>["div",{},["span",n,b+": "],l(p[b],!1)])]]:["span",{}]}function l(d,p=!0){return typeof d=="number"?["span",t,d]:typeof d=="string"?["span",o,JSON.stringify(d)]:typeof d=="boolean"?["span",n,d]:se(d)?["object",{object:p?X(d):d}]:["span",o,String(d)]}function a(d,p){const b=d.type;if(z(b))return;const N={};for(const v in d.ctx)u(b,v,p)&&(N[v]=d.ctx[v]);return N}function u(d,p,b){const N=d[b];if(j(N)&&N.includes(p)||se(N)&&p in N||d.extends&&u(d.extends,p,b)||d.mixins&&d.mixins.some(v=>u(v,p,b)))return!0}function c(d){return Ie(d)?"ShallowRef":d.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(s):window.devtoolsFormatters=[s]}const Ki="3.5.25",ze=m.NODE_ENV!=="production"?O:Se;var Ae={};let Vs;const zi=typeof window<"u"&&window.trustedTypes;if(zi)try{Vs=zi.createPolicy("vue",{createHTML:e=>e})}catch(e){Ae.NODE_ENV!=="production"&&ze(`Error creating trusted types policy: ${e}`)}const Wi=Vs?e=>Vs.createHTML(e):e=>e,ud="http://www.w3.org/2000/svg",fd="http://www.w3.org/1998/Math/MathML",Ot=typeof document<"u"?document:null,qi=Ot&&Ot.createElement("template"),pd={insert:(e,t,o)=>{t.insertBefore(e,o||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,o,n)=>{const s=t==="svg"?Ot.createElementNS(ud,e):t==="mathml"?Ot.createElementNS(fd,e):o?Ot.createElement(e,{is:o}):Ot.createElement(e);return e==="select"&&n&&n.multiple!=null&&s.setAttribute("multiple",n.multiple),s},createText:e=>Ot.createTextNode(e),createComment:e=>Ot.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ot.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,o,n,s,r){const i=o?o.previousSibling:t.lastChild;if(s&&(s===r||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),o),!(s===r||!(s=s.nextSibling)););else{qi.innerHTML=Wi(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const l=qi.content;if(n==="svg"||n==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,o)}return[i?i.nextSibling:t.firstChild,o?o.previousSibling:t.lastChild]}},Pt="transition",Ko="animation",zo=Symbol("_vtc"),Ji={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},hd=ge({},Hr,Ji),As=(e=>(e.displayName="Transition",e.props=hd,e))((e,{slots:t})=>cd(Ga,gd(e),t)),Xt=(e,t=[])=>{j(e)?e.forEach(o=>o(...t)):e&&e(...t)},Gi=e=>e?j(e)?e.some(t=>t.length>1):e.length>1:!1;function gd(e){const t={};for(const S in e)S in Ji||(t[S]=e[S]);if(e.css===!1)return t;const{name:o="v",type:n,duration:s,enterFromClass:r=`${o}-enter-from`,enterActiveClass:i=`${o}-enter-active`,enterToClass:l=`${o}-enter-to`,appearFromClass:a=r,appearActiveClass:u=i,appearToClass:c=l,leaveFromClass:d=`${o}-leave-from`,leaveActiveClass:p=`${o}-leave-active`,leaveToClass:b=`${o}-leave-to`}=e,N=md(s),v=N&&N[0],F=N&&N[1],{onBeforeEnter:R,onEnter:H,onEnterCancelled:B,onLeave:pe,onLeaveCancelled:I,onBeforeAppear:L=R,onAppear:q=H,onAppearCancelled:U=B}=t,x=(S,ce,ve,De)=>{S._enterCancelled=De,Zt(S,ce?c:l),Zt(S,ce?u:i),ve&&ve()},P=(S,ce)=>{S._isLeaving=!1,Zt(S,d),Zt(S,b),Zt(S,p),ce&&ce()},M=S=>(ce,ve)=>{const De=S?q:H,Ee=()=>x(ce,S,ve);Xt(De,[ce,Ee]),Yi(()=>{Zt(ce,S?a:r),$t(ce,S?c:l),Gi(De)||Xi(ce,n,v,Ee)})};return ge(t,{onBeforeEnter(S){Xt(R,[S]),$t(S,r),$t(S,i)},onBeforeAppear(S){Xt(L,[S]),$t(S,a),$t(S,u)},onEnter:M(!1),onAppear:M(!0),onLeave(S,ce){S._isLeaving=!0;const ve=()=>P(S,ce);$t(S,d),S._enterCancelled?($t(S,p),el(S)):(el(S),$t(S,p)),Yi(()=>{S._isLeaving&&(Zt(S,d),$t(S,b),Gi(pe)||Xi(S,n,F,ve))}),Xt(pe,[S,ve])},onEnterCancelled(S){x(S,!1,void 0,!0),Xt(B,[S])},onAppearCancelled(S){x(S,!0,void 0,!0),Xt(U,[S])},onLeaveCancelled(S){P(S),Xt(I,[S])}})}function md(e){if(e==null)return null;if(se(e))return[Is(e.enter),Is(e.leave)];{const t=Is(e);return[t,t]}}function Is(e){const t=Kn(e);return Ae.NODE_ENV!=="production"&&Ca(t,"<transition> explicit duration"),t}function $t(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.add(o)),(e[zo]||(e[zo]=new Set)).add(t)}function Zt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const o=e[zo];o&&(o.delete(t),o.size||(e[zo]=void 0))}function Yi(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let bd=0;function Xi(e,t,o,n){const s=e._endId=++bd,r=()=>{s===e._endId&&n()};if(o!=null)return setTimeout(r,o);const{type:i,timeout:l,propCount:a}=_d(e,t);if(!i)return n();const u=i+"end";let c=0;const d=()=>{e.removeEventListener(u,p),r()},p=b=>{b.target===e&&++c>=a&&d()};setTimeout(()=>{c<a&&d()},l+1),e.addEventListener(u,p)}function _d(e,t){const o=window.getComputedStyle(e),n=N=>(o[N]||"").split(", "),s=n(`${Pt}Delay`),r=n(`${Pt}Duration`),i=Zi(s,r),l=n(`${Ko}Delay`),a=n(`${Ko}Duration`),u=Zi(l,a);let c=null,d=0,p=0;t===Pt?i>0&&(c=Pt,d=i,p=r.length):t===Ko?u>0&&(c=Ko,d=u,p=a.length):(d=Math.max(i,u),c=d>0?i>u?Pt:Ko:null,p=c?c===Pt?r.length:a.length:0);const b=c===Pt&&/\b(?:transform|all)(?:,|$)/.test(n(`${Pt}Property`).toString());return{type:c,timeout:d,propCount:p,hasTransform:b}}function Zi(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((o,n)=>Qi(o)+Qi(e[n])))}function Qi(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function el(e){return(e?e.ownerDocument:document).body.offsetHeight}function vd(e,t,o){const n=e[zo];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):o?e.setAttribute("class",t):e.className=t}const An=Symbol("_vod"),tl=Symbol("_vsh"),yd={name:"show",beforeMount(e,{value:t},{transition:o}){e[An]=e.style.display==="none"?"":e.style.display,o&&t?o.beforeEnter(e):Wo(e,t)},mounted(e,{value:t},{transition:o}){o&&t&&o.enter(e)},updated(e,{value:t,oldValue:o},{transition:n}){!t!=!o&&(n?t?(n.beforeEnter(e),Wo(e,!0),n.enter(e)):n.leave(e,()=>{Wo(e,!1)}):Wo(e,t))},beforeUnmount(e,{value:t}){Wo(e,t)}};function Wo(e,t){e.style.display=t?e[An]:"none",e[tl]=!t}const xd=Symbol(Ae.NODE_ENV!=="production"?"CSS_VAR_TEXT":""),wd=/(?:^|;)\s*display\s*:/;function Ed(e,t,o){const n=e.style,s=me(o);let r=!1;if(o&&!s){if(t)if(me(t))for(const i of t.split(";")){const l=i.slice(0,i.indexOf(":")).trim();o[l]==null&&In(n,l,"")}else for(const i in t)o[i]==null&&In(n,i,"");for(const i in o)i==="display"&&(r=!0),In(n,i,o[i])}else if(s){if(t!==o){const i=n[xd];i&&(o+=";"+i),n.cssText=o,r=wd.test(o)}}else t&&e.removeAttribute("style");An in e&&(e[An]=r?n.display:"",e[tl]&&(n.display="none"))}const kd=/[^\\];\s*$/,ol=/\s*!important$/;function In(e,t,o){if(j(o))o.forEach(n=>In(e,t,n));else if(o==null&&(o=""),Ae.NODE_ENV!=="production"&&kd.test(o)&&ze(`Unexpected semicolon at the end of '${t}' style value: '${o}'`),t.startsWith("--"))e.setProperty(t,o);else{const n=Nd(e,t);ol.test(o)?e.setProperty(Re(n),o.replace(ol,""),"important"):e[n]=o}}const nl=["Webkit","Moz","ms"],Ps={};function Nd(e,t){const o=Ps[t];if(o)return o;let n=Ve(t);if(n!=="filter"&&n in e)return Ps[t]=n;n=Ft(n);for(let s=0;s<nl.length;s++){const r=nl[s]+n;if(r in e)return Ps[t]=r}return t}const sl="http://www.w3.org/1999/xlink";function rl(e,t,o,n,s,r=Jl(t)){n&&t.startsWith("xlink:")?o==null?e.removeAttributeNS(sl,t.slice(6,t.length)):e.setAttributeNS(sl,t,o):o==null||r&&!Xs(o)?e.removeAttribute(t):e.setAttribute(t,r?"":Je(o)?String(o):o)}function il(e,t,o,n,s){if(t==="innerHTML"||t==="textContent"){o!=null&&(e[t]=t==="innerHTML"?Wi(o):o);return}const r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){const l=r==="OPTION"?e.getAttribute("value")||"":e.value,a=o==null?e.type==="checkbox"?"on":"":String(o);(l!==a||!("_value"in e))&&(e.value=a),o==null&&e.removeAttribute(t),e._value=o;return}let i=!1;if(o===""||o==null){const l=typeof e[t];l==="boolean"?o=Xs(o):o==null&&l==="string"?(o="",i=!0):l==="number"&&(o=0,i=!0)}try{e[t]=o}catch(l){Ae.NODE_ENV!=="production"&&!i&&ze(`Failed setting prop "${t}" on <${r.toLowerCase()}>: value ${o} is invalid.`,l)}i&&e.removeAttribute(s||t)}function Mt(e,t,o,n){e.addEventListener(t,o,n)}function Od(e,t,o,n){e.removeEventListener(t,o,n)}const ll=Symbol("_vei");function $d(e,t,o,n,s=null){const r=e[ll]||(e[ll]={}),i=r[t];if(n&&i)i.value=Ae.NODE_ENV!=="production"?cl(n,t):n;else{const[l,a]=Sd(t);if(n){const u=r[t]=Dd(Ae.NODE_ENV!=="production"?cl(n,t):n,s);Mt(e,l,u,a)}else i&&(Od(e,l,i,a),r[t]=void 0)}}const al=/(?:Once|Passive|Capture)$/;function Sd(e){let t;if(al.test(e)){t={};let n;for(;n=e.match(al);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Re(e.slice(2)),t]}let Ms=0;const Cd=Promise.resolve(),Td=()=>Ms||(Cd.then(()=>Ms=0),Ms=Date.now());function Dd(e,t){const o=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=o.attached)return;tt(Vd(n,o.value),t,5,[n])};return o.value=e,o.attached=Td(),o}function cl(e,t){return z(e)||j(e)?e:(ze(`Wrong type passed as event handler to ${t} - did you forget @ or : in front of your prop?
|
|
9
|
-
Expected function or array of functions, received type ${typeof e}.`),Se)}function Vd(e,t){if(j(t)){const o=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{o.call(e),e._stopped=!0},t.map(n=>s=>!s._stopped&&n&&n(s))}else return t}const dl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ad=(e,t,o,n,s,r)=>{const i=s==="svg";t==="class"?vd(e,n,i):t==="style"?Ed(e,o,n):mo(t)?Zo(t)||$d(e,t,o,n,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Id(e,t,n,i))?(il(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&rl(e,t,n,i,r,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!me(n))?il(e,Ve(t),n,r,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),rl(e,t,n,i))};function Id(e,t,o,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&dl(t)&&z(o));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return dl(t)&&me(o)?!1:t in e}const ul={};function Pd(e,t,o){let n=xe(e,t);Qo(n)&&(n=ge({},n,t));class s extends js{constructor(i){super(n,i,o)}}return s.def=n,s}const Md=typeof HTMLElement<"u"?HTMLElement:class{};class js extends Md{constructor(t,o={},n=yl){super(),this._def=t,this._props=o,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&n!==yl?this._root=this.shadowRoot:(Ae.NODE_ENV!=="production"&&this.shadowRoot&&ze("Custom element has pre-rendered declarative shadow root but is not defined as hydratable. Use `defineSSRCustomElement`."),t.shadowRoot!==!1?(this.attachShadow(ge({},t.shadowRootOptions,{mode:"open"})),this._root=this.shadowRoot):this._root=this)}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.parentNode||t.host);)if(t instanceof js){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(t=this._parent){t&&(this._instance.parent=t._instance,this._inheritParentContext(t))}_inheritParentContext(t=this._parent){t&&this._app&&Object.setPrototypeOf(this._app._context.provides,t._instance.provides)}disconnectedCallback(){this._connected=!1,ct(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(t){for(const o of t)this._setAttr(o.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let n=0;n<this.attributes.length;n++)this._setAttr(this.attributes[n].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});const t=(n,s=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:r,styles:i}=n;let l;if(r&&!j(r))for(const a in r){const u=r[a];(u===Number||u&&u.type===Number)&&(a in this._props&&(this._props[a]=Kn(this._props[a])),(l||(l=Object.create(null)))[Ve(a)]=!0)}this._numberProps=l,this._resolveProps(n),this.shadowRoot?this._applyStyles(i):Ae.NODE_ENV!=="production"&&i&&ze("Custom element style injection is not supported when using shadowRoot: false"),this._mount(n)},o=this._def.__asyncLoader;o?this._pendingResolve=o().then(n=>{n.configureApp=this._def.configureApp,t(this._def=n,!0)}):t(this._def)}_mount(t){Ae.NODE_ENV!=="production"&&!t.name&&(t.name="VueElement"),this._app=this._createApp(t),this._inheritParentContext(),t.configureApp&&t.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const o=this._instance&&this._instance.exposed;if(o)for(const n in o)ee(this,n)?Ae.NODE_ENV!=="production"&&ze(`Exposed property "${n}" already exists on custom element.`):Object.defineProperty(this,n,{get:()=>fe(o[n])})}_resolveProps(t){const{props:o}=t,n=j(o)?o:Object.keys(o||{});for(const s of Object.keys(this))s[0]!=="_"&&n.includes(s)&&this._setProp(s,this[s]);for(const s of n.map(Ve))Object.defineProperty(this,s,{get(){return this._getProp(s)},set(r){this._setProp(s,r,!0,!this._patching)}})}_setAttr(t){if(t.startsWith("data-v-"))return;const o=this.hasAttribute(t);let n=o?this.getAttribute(t):ul;const s=Ve(t);o&&this._numberProps&&this._numberProps[s]&&(n=Kn(n)),this._setProp(s,n,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,o,n=!0,s=!1){if(o!==this._props[t]&&(this._dirty=!0,o===ul?delete this._props[t]:(this._props[t]=o,t==="key"&&this._app&&(this._app._ceVNode.key=o)),s&&this._instance&&this._update(),n)){const r=this._ob;r&&(this._processMutations(r.takeRecords()),r.disconnect()),o===!0?this.setAttribute(Re(t),""):typeof o=="string"||typeof o=="number"?this.setAttribute(Re(t),o+""):o||this.removeAttribute(Re(t)),r&&r.observe(this,{attributes:!0})}}_update(){const t=this._createVNode();this._app&&(t.appContext=this._app._context),Kd(t,this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const o=Y(this._def,ge(t,this._props));return this._instance||(o.ce=n=>{this._instance=n,n.ce=this,n.isCE=!0,Ae.NODE_ENV!=="production"&&(n.ceReload=r=>{this._styles&&(this._styles.forEach(i=>this._root.removeChild(i)),this._styles.length=0),this._applyStyles(r),this._instance=null,this._update()});const s=(r,i)=>{this.dispatchEvent(new CustomEvent(r,Qo(i[0])?ge({detail:i},i[0]):{detail:i}))};n.emit=(r,...i)=>{s(r,i),Re(r)!==r&&s(Re(r),i)},this._setParent()}),o}_applyStyles(t,o){if(!t)return;if(o){if(o===this._def||this._styleChildren.has(o))return;this._styleChildren.add(o)}const n=this._nonce;for(let s=t.length-1;s>=0;s--){const r=document.createElement("style");if(n&&r.setAttribute("nonce",n),r.textContent=t[s],this.shadowRoot.prepend(r),Ae.NODE_ENV!=="production")if(o){if(o.__hmrId){this._childStyles||(this._childStyles=new Map);let i=this._childStyles.get(o.__hmrId);i||this._childStyles.set(o.__hmrId,i=[]),i.push(r)}}else(this._styles||(this._styles=[])).push(r)}}_parseSlots(){const t=this._slots={};let o;for(;o=this.firstChild;){const n=o.nodeType===1&&o.getAttribute("slot")||"default";(t[n]||(t[n]=[])).push(o),this.removeChild(o)}}_renderSlots(){const t=this._getSlots(),o=this._instance.type.__scopeId;for(let n=0;n<t.length;n++){const s=t[n],r=s.getAttribute("name")||"default",i=this._slots[r],l=s.parentNode;if(i)for(const a of i){if(o&&a.nodeType===1){const u=o+"-s",c=document.createTreeWalker(a,1);a.setAttribute(u,"");let d;for(;d=c.nextNode();)d.setAttribute(u,"")}l.insertBefore(a,s)}else for(;s.firstChild;)l.insertBefore(s.firstChild,s);l.removeChild(s)}}_getSlots(){const t=[this];this._teleportTargets&&t.push(...this._teleportTargets);const o=new Set;for(const n of t){const s=n.querySelectorAll("slot");for(let r=0;r<s.length;r++)o.add(s[r])}return Array.from(o)}_injectChildStyle(t){this._applyStyles(t.styles,t)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_removeChildStyle(t){if(Ae.NODE_ENV!=="production"&&(this._styleChildren.delete(t),this._childStyles&&t.__hmrId)){const o=this._childStyles.get(t.__hmrId);o&&(o.forEach(n=>this._root.removeChild(n)),o.length=0)}}}const ho=e=>{const t=e.props["onUpdate:modelValue"]||!1;return j(t)?o=>no(t,o):t};function jd(e){e.target.composing=!0}function fl(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const St=Symbol("_assign");function pl(e,t,o){return t&&(e=e.trim()),o&&(e=on(e)),e}const Pn={created(e,{modifiers:{lazy:t,trim:o,number:n}},s){e[St]=ho(s);const r=n||s.props&&s.props.type==="number";Mt(e,t?"change":"input",i=>{i.target.composing||e[St](pl(e.value,o,r))}),(o||r)&&Mt(e,"change",()=>{e.value=pl(e.value,o,r)}),t||(Mt(e,"compositionstart",jd),Mt(e,"compositionend",fl),Mt(e,"change",fl))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:o,modifiers:{lazy:n,trim:s,number:r}},i){if(e[St]=ho(i),e.composing)return;const l=(r||e.type==="number")&&!/^0\d/.test(e.value)?on(e.value):e.value,a=t??"";l!==a&&(document.activeElement===e&&e.type!=="range"&&(n&&t===o||s&&e.value.trim()===a)||(e.value=a))}},Ld={deep:!0,created(e,t,o){e[St]=ho(o),Mt(e,"change",()=>{const n=e._modelValue,s=qo(e),r=e.checked,i=e[St];if(j(n)){const l=zn(n,s),a=l!==-1;if(r&&!a)i(n.concat(s));else if(!r&&a){const u=[...n];u.splice(l,1),i(u)}}else if(oo(n)){const l=new Set(n);r?l.add(s):l.delete(s),i(l)}else i(ml(e,r))})},mounted:hl,beforeUpdate(e,t,o){e[St]=ho(o),hl(e,t,o)}};function hl(e,{value:t,oldValue:o},n){e._modelValue=t;let s;if(j(t))s=zn(t,n.props.value)>-1;else if(oo(t))s=t.has(n.props.value);else{if(t===o)return;s=yo(t,ml(e,!0))}e.checked!==s&&(e.checked=s)}const Mn={deep:!0,created(e,{value:t,modifiers:{number:o}},n){const s=oo(t);Mt(e,"change",()=>{const r=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>o?on(qo(i)):qo(i));e[St](e.multiple?s?new Set(r):r:r[0]),e._assigning=!0,ct(()=>{e._assigning=!1})}),e[St]=ho(n)},mounted(e,{value:t}){gl(e,t)},beforeUpdate(e,t,o){e[St]=ho(o)},updated(e,{value:t}){e._assigning||gl(e,t)}};function gl(e,t){const o=e.multiple,n=j(t);if(o&&!n&&!oo(t)){Ae.NODE_ENV!=="production"&&ze(`<select multiple v-model> expects an Array or Set value for its binding, but got ${Object.prototype.toString.call(t).slice(8,-1)}.`);return}for(let s=0,r=e.options.length;s<r;s++){const i=e.options[s],l=qo(i);if(o)if(n){const a=typeof l;a==="string"||a==="number"?i.selected=t.some(u=>String(u)===String(l)):i.selected=zn(t,l)>-1}else i.selected=t.has(l);else if(yo(qo(i),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!o&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}function qo(e){return"_value"in e?e._value:e.value}function ml(e,t){const o=t?"_trueValue":"_falseValue";return o in e?e[o]:t}const Fd=["ctrl","shift","alt","meta"],Rd={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)=>Fd.some(o=>e[`${o}Key`]&&!t.includes(o))},bl=(e,t)=>{const o=e._withMods||(e._withMods={}),n=t.join(".");return o[n]||(o[n]=((s,...r)=>{for(let i=0;i<t.length;i++){const l=Rd[t[i]];if(l&&l(s,t))return}return e(s,...r)}))},Hd={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Ud=(e,t)=>{const o=e._withKeys||(e._withKeys={}),n=t.join(".");return o[n]||(o[n]=(s=>{if(!("key"in s))return;const r=Re(s.key);if(t.some(i=>i===r||Hd[i]===r))return e(s)}))},Bd=ge({patchProp:Ad},pd);let _l;function vl(){return _l||(_l=Uc(Bd))}const Kd=((...e)=>{vl().render(...e)}),yl=((...e)=>{const t=vl().createApp(...e);Ae.NODE_ENV!=="production"&&(Wd(t),qd(t));const{mount:o}=t;return t.mount=n=>{const s=Jd(n);if(!s)return;const r=t._component;!z(r)&&!r.render&&!r.template&&(r.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const i=o(s,!1,zd(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),i},t});function zd(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Wd(e){Object.defineProperty(e.config,"isNativeTag",{value:t=>zl(t)||Wl(t)||ql(t),writable:!1})}function qd(e){{const t=e.config.isCustomElement;Object.defineProperty(e.config,"isCustomElement",{get(){return t},set(){ze("The `isCustomElement` config option is deprecated. Use `compilerOptions.isCustomElement` instead.")}});const o=e.config.compilerOptions,n='The `compilerOptions` config option is only respected when using a build of Vue.js that includes the runtime compiler (aka "full build"). Since you are using the runtime-only build, `compilerOptions` must be passed to `@vue/compiler-dom` in the build setup instead.\n- For vue-loader: pass it via vue-loader\'s `compilerOptions` loader option.\n- For vue-cli: see https://cli.vuejs.org/guide/webpack.html#modifying-options-of-a-loader\n- For vite: pass it via @vitejs/plugin-vue options. See https://github.com/vitejs/vite-plugin-vue/tree/main/packages/plugin-vue#example-for-passing-options-to-vuecompiler-sfc';Object.defineProperty(e.config,"compilerOptions",{get(){return ze(n),o},set(){ze(n)}})}}function Jd(e){if(me(e)){const t=document.querySelector(e);return Ae.NODE_ENV!=="production"&&!t&&ze(`Failed to mount app: mount target selector "${e}" returned null.`),t}return Ae.NODE_ENV!=="production"&&window.ShadowRoot&&e instanceof window.ShadowRoot&&e.mode==="closed"&&ze('mounting on a ShadowRoot with `{mode: "closed"}` may lead to unpredictable bugs'),e}var Gd={};function Yd(){dd()}Gd.NODE_ENV!=="production"&&Yd();const Xd=".icon[data-v-6fc289e2]{width:1em;height:1em;display:inline-block;vertical-align:middle}",_e=(e,t)=>{const o=e.__vccOpts||e;for(const[n,s]of t)o[n]=s;return o},Zd={},Qd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"icon"};function eu(e,t){return y(),D("svg",Qd,[...t[0]||(t[0]=[g("circle",{cx:"12",cy:"12",r:"10"},null,-1),g("line",{x1:"2",y1:"12",x2:"22",y2:"12"},null,-1),g("path",{d:"M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"},null,-1)])])}const Ls=_e(Zd,[["render",eu],["styles",[Xd]],["__scopeId","data-v-6fc289e2"]]),tu=".icon[data-v-4c3ea1ca]{width:1em;height:1em;display:inline-block;vertical-align:middle}",ou={},nu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"icon"};function su(e,t){return y(),D("svg",nu,[...t[0]||(t[0]=[g("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"},null,-1),g("line",{x1:"9",y1:"3",x2:"9",y2:"21"},null,-1),g("line",{x1:"3",y1:"9",x2:"21",y2:"9"},null,-1)])])}const xl=_e(ou,[["render",su],["styles",[tu]],["__scopeId","data-v-4c3ea1ca"]]),ru=".icon[data-v-65e4a862]{width:1em;height:1em;display:inline-block;vertical-align:middle}",iu={},lu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"icon"};function au(e,t){return y(),D("svg",lu,[...t[0]||(t[0]=[g("circle",{cx:"12",cy:"12",r:"3"},null,-1),g("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"},null,-1)])])}const wl=_e(iu,[["render",au],["styles",[ru]],["__scopeId","data-v-65e4a862"]]),cu={class:"loader-container"},du={class:"loader"},uu={class:"loader-text"},Fs=_e(xe({__name:"Loader",props:{message:{default:"Loading...",type:String},size:{default:"md",type:String}},setup(e){return(t,o)=>(y(),D("div",cu,[g("div",du,[o[0]||(o[0]=g("div",{class:"loader-circle"},null,-1)),g("div",uu,G(e.message),1)])]))}}),[["styles",[".loader-container[data-v-7b6a86d7]{display:flex;justify-content:center;align-items:center;min-height:100px;padding:20px}.loader[data-v-7b6a86d7]{text-align:center}.loader-circle[data-v-7b6a86d7]{display:inline-block;width:40px;height:40px;border:4px solid #f3f3f3;border-radius:50%;border-top:4px solid #3498db;animation:spin-7b6a86d7 1s linear infinite;margin-bottom:8px;transform-origin:center}.loader-text[data-v-7b6a86d7]{color:#666;font-size:14px}@keyframes spin-7b6a86d7{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]],["__scopeId","data-v-7b6a86d7"]]),fu={class:"tabs"},pu=["onClick"],hu={key:0,class:"tab-icon"},gu=["innerHTML"],mu={class:"tab-label"},bu=_e(xe({__name:"Tabs",props:{modelValue:{type:String},tabs:{type:Array}},emits:["update:modelValue"],setup(e,{emit:t}){const o=e,n=t,s=re(o.modelValue);return Te(s,r=>{n("update:modelValue",r)}),(r,i)=>(y(),D("div",fu,[(y(!0),D(te,null,Me(e.tabs,l=>(y(),D("button",{key:l.value,class:ye(["tab",{active:s.value===l.value}]),onClick:a=>s.value=l.value},[l.icon?(y(),D("span",hu,[typeof l.icon!="string"?(y(),be(ei(typeof l.icon=="string"?"span":l.icon),{key:0})):(y(),D("span",{key:1,innerHTML:l.icon},null,8,gu))])):ie("",!0),g("span",mu,G(l.label),1)],10,pu))),128))]))}}),[["styles",['@reference "tailwindcss";.tabs[data-v-ce7b728f]{@apply flex border-b border-slate-200 bg-white sticky top-0 z-10;}.tab[data-v-ce7b728f]{@apply flex items-center gap-2 px-4 py-2 text-sm font-medium text-slate-600 border-b-2 border-transparent transition-all duration-200 hover:text-slate-800 hover:bg-slate-50;}.tab.active[data-v-ce7b728f]{@apply text-blue-600 border-blue-500 bg-blue-50;}.tab-icon[data-v-ce7b728f]{@apply text-base flex items-center;width:16px;height:16px}.tab-icon[data-v-ce7b728f] svg{width:100%;height:100%}.tab-label[data-v-ce7b728f]{@apply whitespace-nowrap;}']],["__scopeId","data-v-ce7b728f"]]),El=Symbol("i18n-state");function _u(){const e=re(!0),t=re(""),o=re({}),n=re({}),s=re({}),r=re(null),i=b=>{r.value=b},l=b=>{const N=b.replace(/^\/+/,"").replace(/\\/g,"/");t.value=b;let v=o.value[N];v||(v=o.value[b]),!v&&b.startsWith("/")&&(v=o.value[b.slice(1)]),v?s.value={...v}:(console.warn("[i18n-state] No content found for file:",b,"or normalized:",N),s.value={})},a=async()=>{const b=new Blob([JSON.stringify(s.value,null,2)],{type:"application/json"}),N=URL.createObjectURL(b),v=document.createElement("a");v.href=N,v.download="translations.json",v.click(),URL.revokeObjectURL(N)},u=b=>{const N=b.target;if(N.files&&N.files.length>0){const v=N.files[0];if(v){const F=new FileReader;F.onload=R=>{try{s.value=JSON.parse(R.target?.result)}catch{console.error("Invalid JSON file")}},F.readAsText(v)}}},c=()=>{const b=n.value.defaultLocale;if(!b)return{};const F=(t.value.replace(/^\/+/,"").replace(/\\/g,"/").split("/").pop()??"").replace(/^[^.]*\./,`${b}.`);let R=o.value[F];if(R||(R=o.value[`/${F}`]),!R){const H=Object.keys(o.value).find(B=>B.includes(`${b}.json`)||B.endsWith(`/${b}.json`));H&&(R=o.value[H])}return R??{}},d=async()=>{if(!r.value){console.warn("[i18n-devtools] Bridge not ready for init"),e.value=!1;return}try{e.value=!0;const[b,N]=await Promise.all([r.value.getLocalesAndTranslations(),r.value.getConfigs()]);o.value=b,n.value=N,r.value.onLocalesUpdate(v=>{o.value=v,t.value&&o.value[t.value]&&(s.value={...o.value[t.value]})})}catch(b){console.error("[i18n-devtools] Failed to initialize:",b),e.value=!1}finally{e.value=!1,console.log("[i18n-devtools] Initialization complete")}},p=async()=>{if(!(!r.value||!t.value||!s.value))try{await r.value.saveTranslation(t.value,s.value),o.value[t.value]={...s.value}}catch(b){throw console.error("Failed to save translation:",b),b}};return{isLoading:e,selectedFile:t,locales:o,configs:n,selectedFileContent:s,bridge:an(r),setBridge:i,init:d,handleFileSelected:l,exportTranslations:a,importTranslations:u,getDefaultLocaleTranslation:c,saveCurrent:p}}function jn(){const e=Io(El);if(!e)throw new Error("I18n state not provided. Make sure to use createI18nState() and provide it in the root component.");return e}const vu={class:"config-card"},yu={class:"config-card__header"},xu={class:"config-card__icon"},wu={key:0},Eu={class:"config-card__title"},ku={class:"config-card__content"},Rs=_e(xe({__name:"ConfigCard",props:{title:{type:String},icon:{type:String}},setup(e){return(t,o)=>(y(),D("div",vu,[g("div",yu,[g("span",xu,[ft(t.$slots,"icon",{},()=>[e.icon?(y(),D("span",wu,G(e.icon),1)):ie("",!0)])]),g("h3",Eu,G(e.title),1)]),g("div",ku,[ft(t.$slots,"default",{},void 0)])]))}}),[["styles",['@reference "tailwindcss";.config-card[data-v-3db26d7b]{@apply rounded-lg shadow-xs border border-slate-200 overflow-hidden bg-white;}.config-card__header[data-v-3db26d7b]{@apply flex items-center p-4 pb-3 border-b border-slate-100 bg-slate-50;}.config-card__icon[data-v-3db26d7b]{@apply text-lg mr-2 flex items-center;}.config-card__title[data-v-3db26d7b]{@apply text-lg font-semibold text-slate-800;}.config-card__content[data-v-3db26d7b]{@apply p-4;}']],["__scopeId","data-v-3db26d7b"]]),Nu={class:"status-indicator"},Hs=_e(xe({__name:"StatusIndicator",props:{status:{type:String},label:{type:String},size:{default:"md",type:String}},setup(e){const t=e,o=oe(()=>{const s="status-indicator__dot",r=`status-indicator__dot--${t.size}`;switch(t.status){case"active":case"enabled":case"success":return`${s} ${r} status-indicator__dot--success`;case"inactive":case"disabled":return`${s} ${r} status-indicator__dot--disabled`;case"warning":return`${s} ${r} status-indicator__dot--warning`;case"error":return`${s} ${r} status-indicator__dot--error`;case"info":return`${s} ${r} status-indicator__dot--info`;default:return`${s} ${r} status-indicator__dot--default`}}),n=oe(()=>{switch(t.status){case"active":case"enabled":case"success":return"text-green-700";case"inactive":case"disabled":return"text-red-700";case"warning":return"text-yellow-700";case"error":return"text-red-700";case"info":return"text-blue-700";default:return"text-slate-700"}});return(s,r)=>(y(),D("div",Nu,[g("div",{class:ye(["status-indicator__dot",o.value])},null,2),g("span",{class:ye(["status-indicator__text",n.value])},G(e.label),3)]))}}),[["styles",['@reference "tailwindcss";.status-indicator[data-v-ceddd4fb]{@apply flex items-center gap-2;}.status-indicator__dot[data-v-ceddd4fb]{@apply rounded-full transition-all duration-200;}.status-indicator__dot--sm[data-v-ceddd4fb]{@apply w-2 h-2;}.status-indicator__dot--md[data-v-ceddd4fb]{@apply w-3 h-3;}.status-indicator__dot--lg[data-v-ceddd4fb]{@apply w-4 h-4;}.status-indicator__dot--success[data-v-ceddd4fb]{@apply bg-green-500;box-shadow:0 0 0 2px #22c55e33}.status-indicator__dot--disabled[data-v-ceddd4fb]{@apply bg-red-500;box-shadow:0 0 0 2px #ef444433}.status-indicator__dot--warning[data-v-ceddd4fb]{@apply bg-yellow-500;box-shadow:0 0 0 2px #eab30833}.status-indicator__dot--error[data-v-ceddd4fb]{@apply bg-red-500;box-shadow:0 0 0 2px #ef444433}.status-indicator__dot--info[data-v-ceddd4fb]{@apply bg-blue-500;box-shadow:0 0 0 2px #3b82f633}.status-indicator__dot--default[data-v-ceddd4fb]{@apply bg-slate-500;box-shadow:0 0 0 2px #64748b33}.status-indicator__text[data-v-ceddd4fb]{@apply text-sm font-medium;}']],["__scopeId","data-v-ceddd4fb"]]),Ou={class:"locale-table-container"},$u={class:"locale-table-wrapper"},Su={class:"locale-table"},Cu={class:"locale-table__header"},Tu={class:"header-content"},Du={class:"header-icon"},Vu={key:1},Au={class:"header-text"},Iu={class:"locale-table__body"},Pu={class:"locale-table__cell"},Mu={class:"locale-code"},ju={class:"locale-code__text"},Lu={class:"locale-table__cell"},Fu={class:"locale-name"},Ru={class:"locale-table__cell"},Hu={class:"locale-iso"},Uu={class:"locale-table__cell"},Bu={class:"direction-indicator"},Ku={class:"locale-table__cell"},zu={class:"base-url"},Wu={class:"locale-table__cell"},qu=_e(xe({__name:"LocaleTable",props:{locales:{type:Array}},setup(e){const t=[{key:"code",label:"Code",icon:"🏷️"},{key:"name",label:"Display Name",icon:"📝"},{key:"iso",label:"ISO Code",iconComponent:Ls},{key:"dir",label:"Direction",icon:"↔️"},{key:"baseUrl",label:"Base URL",icon:"🔗"},{key:"status",label:"Status",icon:"⚡"}];return(o,n)=>(y(),D("div",Ou,[g("div",$u,[g("table",Su,[g("thead",Cu,[g("tr",null,[(y(),D(te,null,Me(t,s=>g("th",{key:s.key,class:"locale-table__header-cell"},[g("div",Tu,[g("span",Du,[s.iconComponent?(y(),be(ei(s.iconComponent),{key:0})):(y(),D("span",Vu,G(s.icon),1))]),g("span",Au,G(s.label),1)])])),64))])]),g("tbody",Iu,[(y(!0),D(te,null,Me(e.locales,s=>(y(),D("tr",{key:s.code,class:"locale-table__row"},[g("td",Pu,[g("div",Mu,[g("span",ju,G(s.code),1)])]),g("td",Lu,[g("span",Fu,G(s.displayName||"—"),1)]),g("td",Ru,[g("span",Hu,G(s.iso||"—"),1)]),g("td",Uu,[g("div",Bu,[g("span",{class:ye(["direction-badge",`direction-badge--${s.dir||"ltr"}`])},G((s.dir||"ltr").toUpperCase()),3)])]),g("td",Ku,[g("span",zu,G(s.baseUrl||"—"),1)]),g("td",Wu,[Y(Hs,{status:s.disabled?"disabled":"active",label:s.disabled?"Disabled":"Active",size:"sm"},null,8,["status","label"])])]))),128))])])])]))}}),[["styles",['@reference "tailwindcss";.locale-table-container[data-v-96ef3218]{@apply border rounded-xl overflow-hidden shadow-xs bg-white;}.locale-table-wrapper[data-v-96ef3218]{@apply overflow-x-auto;}.locale-table[data-v-96ef3218]{@apply w-full border-collapse;}.locale-table__header[data-v-96ef3218]{@apply bg-gradient-to-r from-slate-50 to-blue-50;}.locale-table__header-cell[data-v-96ef3218]{@apply px-4 py-4 text-left;}.header-content[data-v-96ef3218]{@apply flex items-center gap-2;}.header-icon[data-v-96ef3218]{@apply text-lg flex items-center;}.header-text[data-v-96ef3218]{@apply text-sm font-semibold text-slate-700;}.locale-table__row[data-v-96ef3218]{@apply border-t border-slate-100 transition-colors duration-200 hover:bg-slate-50;}.locale-table__cell[data-v-96ef3218]{@apply px-4 py-4 text-sm;}.locale-code[data-v-96ef3218]{@apply inline-flex items-center;}.locale-code__text[data-v-96ef3218]{@apply font-mono text-sm px-3 py-1 bg-blue-50 text-blue-700 rounded-lg border border-blue-200;}.locale-name[data-v-96ef3218]{@apply text-slate-700 font-medium;}.locale-iso[data-v-96ef3218]{@apply text-slate-600 font-mono text-xs px-2 py-1 bg-slate-100 rounded-sm;}.direction-indicator[data-v-96ef3218]{@apply flex items-center;}.direction-badge[data-v-96ef3218]{@apply px-2 py-1 rounded-full text-xs font-medium;}.direction-badge--ltr[data-v-96ef3218]{@apply bg-purple-100 text-purple-800;}.direction-badge--rtl[data-v-96ef3218]{@apply bg-orange-100 text-orange-800;}.base-url[data-v-96ef3218]{@apply text-slate-600 font-mono text-xs;}.locale-table__row[data-v-96ef3218]{animation:slideInLeft-96ef3218 .3s ease-out}@keyframes slideInLeft-96ef3218{0%{opacity:0;transform:translate(-20px)}to{opacity:1;transform:translate(0)}}.locale-table__row[data-v-96ef3218]:nth-child(1){animation-delay:.1s}.locale-table__row[data-v-96ef3218]:nth-child(2){animation-delay:.2s}.locale-table__row[data-v-96ef3218]:nth-child(3){animation-delay:.3s}.locale-table__row[data-v-96ef3218]:nth-child(4){animation-delay:.4s}.locale-table__row[data-v-96ef3218]:nth-child(5){animation-delay:.5s}']],["__scopeId","data-v-96ef3218"]]),Ju={class:"config-view"},Gu={key:1,class:"space-y-6"},Yu={class:"settings-grid"},Xu={class:"config-row"},Zu={class:"config-value"},Qu={class:"config-row"},ef={class:"config-value capitalize"},tf={class:"config-row"},of={class:"config-value"},nf={class:"config-row"},sf={class:"settings-grid"},rf={class:"config-row"},lf={class:"config-row"},af={class:"config-value font-mono text-sm"},cf={class:"config-row"},df={class:"config-value font-mono text-sm text-blue-600"},uf={class:"config-row"},ff={class:"config-value font-mono text-sm"},pf=_e(xe({__name:"ConfigView",setup(e){const{isLoading:t,configs:o}=jn();return(n,s)=>(y(),D("div",Ju,[fe(t)?(y(),be(Fs,{key:0})):(y(),D("div",Gu,[Y(Rs,{title:"General Configuration"},{icon:we(()=>[Y(wl)]),default:we(()=>[g("div",Yu,[g("div",Xu,[s[0]||(s[0]=g("span",{class:"config-label"},"Default Locale",-1)),g("span",Zu,G(fe(o).defaultLocale||"—"),1)]),g("div",Qu,[s[1]||(s[1]=g("span",{class:"config-label"},"Routing Strategy",-1)),g("span",ef,G(fe(o).strategy||"—"),1)]),g("div",tf,[s[2]||(s[2]=g("span",{class:"config-label"},"Fallback Locale",-1)),g("span",of,G(fe(o).fallbackLocale||"—"),1)]),g("div",nf,[s[3]||(s[3]=g("span",{class:"config-label"},"Debug Mode",-1)),Y(Hs,{status:fe(o).debug?"enabled":"disabled",label:fe(o).debug?"Active":"Inactive"},null,8,["status","label"])])])]),_:1}),Y(Rs,{title:"Configured Locales"},{icon:we(()=>[Y(Ls)]),default:we(()=>[Y(qu,{locales:fe(o).locales||[]},null,8,["locales"])]),_:1}),Y(Rs,{title:"Advanced Configuration"},{icon:we(()=>[Y(xl)]),default:we(()=>[g("div",sf,[g("div",rf,[s[4]||(s[4]=g("span",{class:"config-label"},"Auto Language Detection",-1)),Y(Hs,{status:fe(o).autoDetectLanguage?"enabled":"disabled",label:fe(o).autoDetectLanguage?"Enabled":"Disabled"},null,8,["status","label"])]),g("div",lf,[s[5]||(s[5]=g("span",{class:"config-label"},"Translation Directory",-1)),g("span",af,G(fe(o).translationDir||"—"),1)]),g("div",cf,[s[6]||(s[6]=g("span",{class:"config-label"},"API Base URL",-1)),g("span",df,G(fe(o).apiBaseUrl||"—"),1)]),g("div",uf,[s[7]||(s[7]=g("span",{class:"config-label"},"Locale Cookie",-1)),g("span",ff,G(fe(o).localeCookie||"—"),1)])])]),_:1})]))]))}}),[["styles",['@reference "tailwindcss";.config-view[data-v-ce2afc6d]{@apply h-full overflow-auto p-4;}.settings-grid[data-v-ce2afc6d]{@apply grid gap-3;}.config-row[data-v-ce2afc6d]{@apply flex items-center justify-between py-2 px-3 rounded-lg bg-gray-50 hover:bg-gray-100 transition-colors;}.config-label[data-v-ce2afc6d]{@apply text-sm font-medium text-gray-600;}.config-value[data-v-ce2afc6d]{@apply text-sm text-gray-800;}']],["__scopeId","data-v-ce2afc6d"]]),hf=["innerHTML"],gf={key:1},mf={class:"chevron"},bf={class:"icon",viewBox:"0 0 24 24"},_f={key:0,d:"M19 9l-7 7-7-7",fill:"none",stroke:"currentColor","stroke-width":"2"},vf={key:1,d:"M9 5l7 7-7 7",fill:"none",stroke:"currentColor","stroke-width":"2"},yf={class:"folder-name"},xf={key:0,class:"folder-children"},wf=_e(xe({__name:"TreeItem",props:{node:{type:Object},depth:{type:Number},locale:{type:String},selectedFile:{type:String},defaultExpanded:{type:Boolean},selected:{type:Boolean}},emits:["fileSelected"],setup(e,{emit:t}){const o=e,n=t,s=re(o.defaultExpanded||!1),r=oe(()=>o.selectedFile===o.node.fullPath),i=oe(()=>({paddingLeft:`${o.depth*20+8}px`}));function l(){s.value=!s.value}function a(){n("fileSelected",o.node.fullPath,o.locale)}Te(()=>o.defaultExpanded,c=>{s.value=c===!0},{immediate:!0});function u(c,d){n("fileSelected",c,d)}return(c,d)=>{const p=ic("TreeItem",!0);return y(),D("div",null,[e.node.isFile?(y(),D("div",{key:0,class:ye(["file-item",{selected:r.value}]),style:yt(i.value),onClick:a},[d[0]||(d[0]=Yc('<span class="file-icon" data-v-42ac6ca2><svg class="icon" viewBox="0 0 24 24" data-v-42ac6ca2><g transform="translate(4 4) scale(0.8)" data-v-42ac6ca2><circle cx="12" cy="12" r="10" fill="none" stroke="currentColor" stroke-width="1.5" data-v-42ac6ca2></circle><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z" fill="none" stroke="currentColor" stroke-width="1" data-v-42ac6ca2></path><path d="M2 12h20M5 5.2l14 14M5 18.8l14-14" fill="none" stroke="currentColor" stroke-width="1" data-v-42ac6ca2></path></g></svg></span>',1)),g("span",{class:"file-name",innerHTML:e.node.name},null,8,hf)],6)):(y(),D("div",gf,[g("div",{class:ye(["folder-header",{expanded:s.value,selected:e.selected}]),style:yt(i.value),onClick:l},[g("span",mf,[(y(),D("svg",bf,[s.value?(y(),D("path",_f)):(y(),D("path",vf))]))]),d[1]||(d[1]=g("span",{class:"folder-icon"},[g("svg",{class:"icon",viewBox:"0 0 24 24"},[g("path",{d:"M20 6a2 2 0 0 0-2-2h-8L10 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2z",fill:"none",stroke:"currentColor","stroke-width":"2"})])],-1)),g("span",yf,G(e.node.name),1)],6),s.value?(y(),D("div",xf,[(y(!0),D(te,null,Me(e.node.children,b=>(y(),be(p,{key:b.fullPath,node:b,locale:e.locale,depth:e.depth+1,"selected-file":e.selectedFile,"default-expanded":!1,onFileSelected:u},null,8,["node","locale","depth","selected-file"]))),128))])):ie("",!0)]))])}}}),[["styles",['@reference "tailwindcss";.file-item[data-v-42ac6ca2]{@apply py-1 px-2 my-1 cursor-pointer flex items-center text-sm text-slate-700 bg-white rounded-md transition-all duration-200 border border-transparent;}.file-item[data-v-42ac6ca2]:hover{@apply bg-slate-50 transform translate-x-1;}.file-item.selected[data-v-42ac6ca2]{@apply bg-blue-50 border-blue-200 text-blue-700 font-medium;}.folder-header[data-v-42ac6ca2]{@apply py-1 px-2 my-1 cursor-pointer flex items-center text-sm text-slate-700 bg-white rounded-md transition-all duration-200 border border-transparent;}.folder-header[data-v-42ac6ca2]:hover{@apply bg-slate-50 transform translate-x-1;}.folder-header.expanded[data-v-42ac6ca2]{@apply font-medium text-blue-700;}.folder-header.selected[data-v-42ac6ca2]{@apply bg-blue-50 border-blue-200 text-blue-700 font-medium;}.icon[data-v-42ac6ca2]{@apply w-4 h-4 mr-2 shrink-0;}.chevron .icon[data-v-42ac6ca2]{@apply w-3 h-3 mr-2;}.folder-children[data-v-42ac6ca2]{@apply ml-3 border-l-2 border-slate-200 pl-3;}']],["__scopeId","data-v-42ac6ca2"]]),Ef={class:"flex flex-col h-full w-full bg-slate-50 rounded-lg overflow-hidden"},kf={class:"flex-1 min-h-0 overflow-y-auto overscroll-contain p-2"},Nf=_e(xe({__name:"LocalesList",props:{locales:{type:Object},selectedFile:{type:String}},emits:["fileSelected"],setup(e,{emit:t}){const o=e,n=t,s=oe(()=>{const a=Object.keys(o.locales),u=r(a),c={name:i(u)||"/",fullPath:u||"/",children:[]};a.forEach(p=>{const b=p.startsWith(u)?p.slice(u.length).split("/").filter(Boolean):p.split("/").filter(Boolean);let N=c;for(let v=0;v<b.length;v++){const F=b[v];if(!F)continue;const R=v===b.length-1;let H=N.children.find(B=>B.name===F);H||(H={name:F,fullPath:`${N.fullPath}/${F}`.replace(/\/+/g,"/"),isFile:R,children:[]},N.children.push(H)),H&&(N=H)}});const d=p=>{p.sort((b,N)=>b.isFile===N.isFile?b.name.localeCompare(N.name):b.isFile?1:-1);for(const b of p)d(b.children)};return d(c.children),c.children});function r(a){if(a.length===0)return"";const u=a.map(p=>p.split("/")),c=[],d=Math.min(...u.map(p=>p.length));for(let p=0;p<d;p++){const b=u[0]?.[p];if(b&&u.every(N=>N[p]===b))c.push(b);else break}return c.join("/")}function i(a){const u=a.split("/").filter(c=>c);return u[u.length-1]||""}function l(a){n("fileSelected",a)}return(a,u)=>(y(),D("div",Ef,[g("div",kf,[(y(!0),D(te,null,Me(s.value,c=>(y(),be(wf,{key:c.fullPath,locale:c.name,node:c,depth:0,"selected-file":e.selectedFile,"default-expanded":!1,onFileSelected:l},null,8,["locale","node","selected-file"]))),128))])]))}}),[["styles",['@reference "tailwindcss";']],["__scopeId","data-v-44e760cb"]]);function rt(e,t="",o={}){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const s=t?`${t}.${n}`:n,r=e[n];typeof r=="object"&&r!==null?Array.isArray(r)?r.forEach((i,l)=>{rt(i,`${s}.[]${l}`,o)}):rt(r,s,o):o[s]=r?.toString()??""}return o}const kl=e=>{const t={};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const n=o.split(".");let s=t,r=null,i=null;for(let l=0;l<n.length;l++){const a=n[l];if(!a)continue;const u=a.startsWith("[]"),c=u?Number(a.slice(2)):Number.NaN;if(l===n.length-1){if(typeof s=="object"&&s!==null&&a){const d=s,p=e[o];typeof p=="string"?p==="true"||p==="false"?d[a]=p==="true":!Number.isNaN(Number(p))&&p.trim()!==""?d[a]=Number(p):d[a]=p:d[a]=p}}else{(typeof s!="object"||s===null)&&(s={});const d=s;if(u){if(!Array.isArray(d)){const b=[];r!==null&&i!==null&&typeof i=="string"?r[i]=b:a&&(t[a]=b),s=b}const p=s;if(Number.isNaN(c))continue;p[c]===void 0&&(p[c]={}),r=p,i=c,s=p[c]}else a&&(d[a]===void 0&&(d[a]={}),r=d,i=a,s=d[a])}}}return t},Of={class:"diff-viewer"},$f={class:"filters"},Sf=["value"],Cf={class:"diff-list"},Tf={class:"key-row"},Df={class:"key-label"},Vf={class:"value-compare"},Af={class:"value old"},If={class:"value-content"},Pf={class:"value new"},Mf={class:"value-content"},jf={class:"value-content"},Lf=_e(xe({__name:"DiffViewer",props:{current:{type:Object},base:{type:Object}},setup(e){const t=e,o=re(["added","modified","removed"]),n=[{type:"added",label:"Added",class:"bg-green-100 text-green-800"},{type:"modified",label:"Modified",class:"bg-yellow-100 text-yellow-800"},{type:"removed",label:"Removed",class:"bg-red-100 text-red-800"}],s={added:"text-green-600",modified:"text-yellow-600",removed:"text-red-600"},r=oe(()=>{const a=rt(t.current),u=rt(t.base),c=new Set([...Object.keys(a),...Object.keys(u)]);return Array.from(c).map(d=>{const p=a[d],b=u[d];return!p&&b?{key:d,type:"removed",baseValue:b}:p&&!b?{key:d,type:"added",currentValue:p}:p!==b?{key:d,type:"modified",baseValue:b,currentValue:p}:null}).filter(Boolean)}),i=oe(()=>({added:r.value.filter(a=>a.type==="added").length,modified:r.value.filter(a=>a.type==="modified").length,removed:r.value.filter(a=>a.type==="removed").length})),l=oe(()=>r.value.filter(a=>o.value.includes(a.type)));return(a,u)=>(y(),D("div",Of,[g("div",$f,[(y(),D(te,null,Me(n,c=>g("label",{key:c.type,class:"filter-item"},[ut(g("input",{"onUpdate:modelValue":u[0]||(u[0]=d=>o.value=d),type:"checkbox",value:c.type,class:"sr-only"},null,8,Sf),[[Ld,o.value]]),g("span",{class:ye(["filter-badge",c.class])},G(c.label)+" ("+G(i.value[c.type])+") ",3)])),64))]),g("div",Cf,[(y(!0),D(te,null,Me(l.value,(c,d)=>(y(),D("div",{key:d,class:"diff-item"},[g("div",Tf,[g("span",Df,G(c.key),1),c.type?(y(),D("span",{key:0,class:ye(["change-type",s[c.type]])},G(c.type.toUpperCase()),3)):ie("",!0)]),g("div",Vf,[c.type==="modified"?(y(),D(te,{key:0},[g("div",Af,[u[1]||(u[1]=g("span",{class:"value-label"},"Default:",-1)),g("span",If,G(c.baseValue),1)]),g("div",Pf,[u[2]||(u[2]=g("span",{class:"value-label"},"Current:",-1)),g("span",Mf,G(c.currentValue),1)])],64)):(y(),D("div",{key:1,class:ye(["value",c.type])},[g("span",jf,G(c.currentValue||c.baseValue),1)],2))])]))),128))])]))}}),[["styles",['@reference "tailwindcss";.diff-viewer[data-v-78082a66]{@apply flex flex-col gap-4;}.filters[data-v-78082a66]{@apply flex gap-2;}.filter-item[data-v-78082a66]{@apply cursor-pointer;}.filter-badge[data-v-78082a66]{@apply px-3 py-1 rounded-full text-sm font-medium inline-flex items-center gap-2 transition-all;}.filter-item input:checked+.filter-badge[data-v-78082a66]{@apply ring-2 ring-inset ring-blue-500/50;}.diff-list[data-v-78082a66]{@apply space-y-4;}.diff-item[data-v-78082a66]{@apply bg-white rounded-lg shadow-xs border border-gray-100 p-4;}.key-row[data-v-78082a66]{@apply flex justify-between items-center mb-2;}.key-label[data-v-78082a66]{@apply font-mono text-sm text-gray-700 truncate;}.change-type[data-v-78082a66]{@apply text-xs font-semibold px-2 py-1 rounded-full;}.value-compare[data-v-78082a66]{@apply space-y-2;}.value[data-v-78082a66]{@apply p-2 rounded-md border border-transparent text-sm;}.value-label[data-v-78082a66]{@apply text-xs font-medium text-gray-500 mr-2;}.value-content[data-v-78082a66]{@apply break-words;}.old[data-v-78082a66]{@apply bg-red-50 border-red-200 text-red-700;}.new[data-v-78082a66]{@apply bg-green-50 border-green-200 text-green-700;}.added .value-content[data-v-78082a66]{@apply text-green-600;}.removed .value-content[data-v-78082a66]{@apply text-red-600 line-through;}']],["__scopeId","data-v-78082a66"]]),Ff={class:"text-sm font-medium text-gray-600 truncate"},Rf={key:1,class:"flex flex-col"},Hf={class:"text-sm font-medium text-gray-600"},Ln=xe({__name:"StatItem",props:{label:String,value:[String,Number],trend:Number,stacked:{type:Boolean,default:!1}},setup(e){const t=e,o=oe(()=>typeof t.value=="number"?t.value.toLocaleString():t.value),n=oe(()=>t.trend?t.trend>0?"text-green-500":"text-red-500":"");return(s,r)=>(y(),D("div",{class:ye(["p-3 bg-gray-50 rounded-lg transition-all duration-200 hover:bg-gray-100",e.stacked?"block":"flex items-center justify-between"])},[e.stacked?(y(),D("div",Rf,[g("span",Hf,G(e.label),1),g("span",{class:ye(["font-semibold mt-1",s.$attrs.class])},[nt(G(o.value)+" ",1),e.trend?(y(),D("span",{key:0,class:ye(["ml-2 text-xs",n.value])},G(e.trend)+"% ",3)):ie("",!0)],2)])):(y(),D(te,{key:0},[g("span",Ff,G(e.label),1),g("span",{class:ye(["font-semibold min-w-[60px] text-right",s.$attrs.class])},[nt(G(o.value)+" ",1),e.trend?(y(),D("span",{key:0,class:ye(["ml-2 text-xs",n.value])},G(e.trend)+"% ",3)):ie("",!0)],2)],64))],2))}}),Uf={class:"space-y-4 p-4 bg-white rounded-lg shadow-sm"},Bf={class:"grid grid-cols-2 gap-4"},Kf={key:0,class:"grid grid-cols-2 gap-4"},zf={class:"pt-4 mt-4 border-t border-gray-200"},Wf={class:"grid grid-cols-2 gap-4"},qf=_e(xe({__name:"Statistics",props:{content:{type:Object}},setup(e){const{getDefaultLocaleTranslation:t}=jn(),o=e,n=x=>typeof x=="string"?x.trim():"",s=x=>typeof x=="string",r=oe(()=>rt(o.content)),i=oe(()=>rt(t())),l=x=>oe(()=>Object.values(r.value).filter(P=>s(P)&&x(P)).length),a=oe(()=>Object.keys(r.value).length),u=oe(()=>Object.values(r.value).filter(x=>s(x)&&n(x)!=="").length),c=oe(()=>a.value?(u.value/a.value*100).toFixed(2):"0.00"),d=oe(()=>{const x={};return Object.values(r.value).forEach(P=>{s(P)&&(x[P]=(x[P]||0)+1)}),Object.values(x).filter(P=>P>1).length}),p=x=>oe(()=>{const P=Object.keys(r.value);return P.length<2?null:P.reduce((M,S)=>{const ce=r.value[M],ve=r.value[S],De=s(ce)?ce.length:0,Ee=s(ve)?ve.length:0;return x(De,Ee)?M:S})}),b=oe(()=>Object.keys(i.value).length),N=oe(()=>Object.keys(i.value).filter(x=>{const P=r.value[x];return s(P)&&n(P)!==""}).length),v=oe(()=>b.value?(N.value/b.value*100).toFixed(2):"0.00"),F=oe(()=>[{label:"Total Keys",value:a.value,class:"text-blue-600"},{label:"Translated Keys",value:`${u.value} (${c.value}%)`,class:"text-green-600"},{label:"Missing Translations",value:a.value-u.value,class:"text-red-600"},{label:"Duplicate Values",value:d.value,class:"text-orange-600"},{label:"Long Translations (>100 chars)",value:H?.value??0,class:"text-yellow-600"},{label:"Short Translations (<3 chars)",value:B?.value??0,class:"text-pink-600"},{label:"Keys with Special Chars",value:pe?.value??0,class:"text-indigo-600"},{label:"Keys with HTML Tags",value:I?.value??0,class:"text-teal-600"},{label:"Keys with Placeholders",value:L?.value??0,class:"text-cyan-600"}]),R=oe(()=>[{label:"Total Keys in Default",value:b.value,class:"text-blue-600"},{label:"Translated vs Default",value:`${N.value} (${v.value}%)`,class:"text-green-600"},{label:"Missing from Default",value:b.value-N.value,class:"text-red-600"},{label:"Extra Keys",value:Math.max(a.value-b.value,0),class:"text-orange-600"}]),[H,B,pe,I,L]=[x=>x.length>100,x=>x.length<3,x=>/[@#{}[\]]/.test(x),x=>/<[^>]+>/.test(x),x=>/\{[^}]+\}/.test(x)].map(x=>l(x)),q=p((x,P)=>x>P),U=p((x,P)=>x<P);return(x,P)=>(y(),D("div",Uf,[g("div",Bf,[(y(!0),D(te,null,Me(F.value,(M,S)=>(y(),be(Ln,{key:S,label:M.label,value:M.value,class:ye(M.class)},null,8,["label","value","class"]))),128))]),fe(q)||fe(U)?(y(),D("div",Kf,[fe(q)?(y(),be(Ln,{key:0,label:"Longest Key",value:fe(q),stacked:"",class:"text-purple-600 break-all"},null,8,["value"])):ie("",!0),fe(U)?(y(),be(Ln,{key:1,label:"Shortest Key",value:fe(U),stacked:"",class:"text-purple-600 break-all"},null,8,["value"])):ie("",!0)])):ie("",!0),g("div",zf,[P[0]||(P[0]=g("h3",{class:"text-lg font-semibold text-gray-800 mb-3"}," Comparison with Default Locale ",-1)),g("div",Wf,[(y(!0),D(te,null,Me(R.value,(M,S)=>(y(),be(Ln,{key:"compare-"+S,label:M.label,value:M.value,class:ye(M.class)},null,8,["label","value","class"]))),128))])]),Y(Lf,{ref:"diffModal",current:e.content,base:i.value},null,8,["current","base"])]))}}),[["styles",[".border-t[data-v-5a1d0272]{border-top-width:1px;border-top-color:#e5e7eb}.pt-4[data-v-5a1d0272]{padding-top:1rem}.mt-4[data-v-5a1d0272]{margin-top:1rem}.text-lg[data-v-5a1d0272]{font-size:1.125rem;line-height:1.75rem}.font-semibold[data-v-5a1d0272]{font-weight:600}.bg-white[data-v-5a1d0272]{background-color:#fff}.rounded-lg[data-v-5a1d0272]{border-radius:.5rem}.shadow[data-v-5a1d0272]{box-shadow:0 1px 3px #0000001a,0 1px 2px -1px #0000001a}.grid[data-v-5a1d0272]{display:grid}.gap-4[data-v-5a1d0272]{gap:1rem}"]],["__scopeId","data-v-5a1d0272"]]);class Nl{constructor({apiKey:t,driver:o,options:n={}}){if(this.clearBuffer=[],this.apiKey=t,this.driver=o,this.options=n,o==="yandex-cloud"&&!n.folderId)throw new Error("Yandex Cloud Translator requires folderId in options.")}async translate(t,o,n){if(console.debug("Translating text...",{text:t,fromLang:o,toLang:n}),t==="")return t;const s=this.clearText(t);let r;switch(this.driver){case"google":r=await this.googleTranslate(s,o,n);break;case"yandex":r=await this.yandexTranslate(s,o,n);break;case"deepl":r=await this.deeplTranslate(s,o,n);break;case"openai":r=await this.openaiTranslate(t,o,n);break;case"deepseek":r=await this.deepseekTranslate(t,o,n);break;case"google-free":r=await this.googleFreeTranslate(s,o,n);break;case"yandex-cloud":r=await this.yandexCloudTranslate(s,o,n);break;default:throw new Error(`Unsupported driver: ${this.driver}`)}const i=this.revertText(r);return console.debug("Text was translated",{finalText:i}),i}clearText(t){const o=/:[a-zA-Z0-9]+|<[^>]*>|\{['"][@$|{}]['"]\}/gu,n=t.match(o)||[];return this.clearBuffer=n,n.reduce((s,r,i)=>s.replace(r,` _r${i}_`),t)}revertText(t){return this.clearBuffer.reduce((n,s,r)=>n.replace(`_r${r}_`,s),t).replace(/ {2,}|^ |^\xA0|\xA0{2,}|\xA0$/gmu,"").replace(/ /g," ")}async googleTranslate(t,o,n){const s="https://translation.googleapis.com/language/translate/v2",r=new URLSearchParams({q:t,target:n,key:this.apiKey,format:"text",source:o}),l=await(await fetch(`${s}?${r.toString()}`)).json();if(l.error)throw new Error(`Google Translate error: ${l.error.message}`);return l.data.translations[0].translatedText}async yandexTranslate(t,o,n){const s="https://translate.api.cloud.yandex.net/translate/v2/translate",r={"Content-Type":"application/json",Authorization:`Api-Key ${this.apiKey}`},i=JSON.stringify({folderId:this.options.folderId,texts:[t],sourceLanguageCode:o,targetLanguageCode:n}),a=await(await fetch(s,{method:"POST",headers:r,body:i})).json();if(a.message)throw new Error(`Yandex Translate error: ${a.message}`);return a.translations[0].text}async deeplTranslate(t,o,n){const s="https://api.deepl.com/v2/translate",r=new URLSearchParams({auth_key:this.apiKey,text:t,target_lang:n.toUpperCase(),source_lang:o.toUpperCase()}),l=await(await fetch(s,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:r.toString()})).json();if(l.message)throw new Error(`DeepL Translate error: ${l.message}`);return l.translations[0].text}async openaiTranslate(t,o,n){const s="https://api.openai.com/v1/chat/completions",r={"Content-Type":"application/json",Authorization:`Bearer ${this.apiKey}`},i=JSON.stringify({model:this.options.model,messages:[{role:"system",content:`Translate the following text from ${o} to ${n}. Do not modify or translate placeholders like :placeholder, <tag>, or {special}.`},{role:"user",content:t}]}),a=await(await fetch(s,{method:"POST",headers:r,body:i})).json();if(a.error)throw new Error(`OpenAI Translate error: ${a.error.message}`);return a.choices[0].message.content}async deepseekTranslate(t,o,n){const s="https://api.deepseek.com/chat/completions",r={"Content-Type":"application/json",Authorization:`Bearer ${this.apiKey}`},i=JSON.stringify({model:this.options.model,messages:[{role:"system",content:`Translate the following text from ${o} to ${n}. Do not modify or translate placeholders like :placeholder, <tag>, or {special}.`},{role:"user",content:t}],stream:!1}),a=await(await fetch(s,{method:"POST",headers:r,body:i})).json();if(a.error)throw new Error(`DeepSeek Translate error: ${a.error.message}`);return a.choices[0].message.content}async googleFreeTranslate(t,o,n){const s="https://translate.google.com/translate_a/single",r=new URLSearchParams({client:"gtx",sl:o,tl:n,hl:"en",dt:"t",ie:"UTF-8",oe:"UTF-8",q:t,tk:this.generateToken(t)}),l=await(await fetch(`${s}?${r.toString()}`)).json();if(!l||!Array.isArray(l[0]))throw new Error("Invalid response from Google Free Translate");return l[0].map(a=>a[0]?a[0]:"").join("")}async yandexCloudTranslate(t,o,n){const s="https://translate.api.cloud.yandex.net/translate/v2/translate",r={"Content-Type":"application/json",Authorization:`Api-Key ${this.apiKey}`},i=JSON.stringify({folderId:this.options.folderId,texts:[t],sourceLanguageCode:o,targetLanguageCode:n}),a=await(await fetch(s,{method:"POST",headers:r,body:i})).json();if(a.message)throw new Error(`Yandex Cloud Translate error: ${a.message}`);return a.translations[0].text}generateToken(t){const n=[];for(let r=0;r<t.length;r++){const i=t.charCodeAt(r);i<128?n.push(i):i<2048?n.push(i>>6|192):(n.push(i>>12|224),n.push(i>>6&63|128)),n.push(i&63|128)}let s=0;for(let r=0;r<n.length;r++){const i=n[r];i!==void 0&&(s+=i,s=this.tokenTransform(s,"+-a^+6"))}return s=this.tokenTransform(s,"+-3^+b+-f"),s^=0,s<0&&(s=(s&2147483647)+2147483648),s%=1e6,`${s.toString()}.${s^0}`}tokenTransform(t,o){for(let n=0;n<o.length-2;n+=3){const s=o.charCodeAt(n+2)>=97?o.charCodeAt(n+2)-87:Number(o.charAt(n+2));o.charAt(n+1)==="+"?t=t>>>s:t=t<<s,o.charAt(n)==="+"?t=t+s&4294967295:t=t^s}return t}}const Jf={class:"pagination"},Gf=["disabled"],Yf=["onClick"],Xf={key:0,class:"pagination-ellipsis"},Zf=["onClick"],Qf={key:0,class:"pagination-ellipsis"},ep=["onClick"],tp=["disabled"],op=_e(xe({__name:"Pagination",props:{currentPage:{type:Number},totalPages:{type:Number}},emits:["update:page"],setup(e,{emit:t}){const o=e,n=t,s=oe(()=>[1,2].filter(a=>a<=o.totalPages)),r=oe(()=>[o.totalPages-1,o.totalPages].filter(a=>a>=1)),i=oe(()=>{const a=[],u=Math.max(1,o.currentPage-2),c=Math.min(o.totalPages,o.currentPage+2);for(let d=u;d<=c;d++)a.push(d);return a}),l=a=>{a>=1&&a<=o.totalPages&&n("update:page",a)};return(a,u)=>(y(),D("div",Jf,[g("button",{disabled:e.currentPage===1,class:"pagination-button",onClick:u[0]||(u[0]=c=>l(e.currentPage-1))}," Previous ",8,Gf),e.currentPage>3?(y(),D(te,{key:0},[(y(!0),D(te,null,Me(s.value,c=>(y(),D("button",{key:c,class:"pagination-button",onClick:d=>l(c)},G(c),9,Yf))),128)),e.currentPage>4?(y(),D("span",Xf,"...")):ie("",!0)],64)):ie("",!0),(y(!0),D(te,null,Me(i.value,c=>(y(),D("button",{key:c,class:ye(["pagination-button",{active:e.currentPage===c}]),onClick:d=>l(c)},G(c),11,Zf))),128)),e.currentPage<e.totalPages-2?(y(),D(te,{key:1},[e.currentPage<e.totalPages-3?(y(),D("span",Qf,"...")):ie("",!0),(y(!0),D(te,null,Me(r.value,c=>(y(),D("button",{key:c,class:"pagination-button",onClick:d=>l(c)},G(c),9,ep))),128))],64)):ie("",!0),g("button",{disabled:e.currentPage===e.totalPages||e.totalPages===0,class:"pagination-button",onClick:u[1]||(u[1]=c=>l(e.currentPage+1))}," Next ",8,tp)]))}}),[["styles",[".pagination[data-v-7a26b7d7]{display:flex;justify-content:center;align-items:center;gap:6px;margin-top:16px;flex-wrap:wrap}.pagination-button[data-v-7a26b7d7]{padding:6px 12px;min-width:32px;border:1px solid #ccc;border-radius:4px;background-color:#f8f9fa;cursor:pointer;font-size:13px;color:#333;text-align:center;transition:background-color .2s,border-color .2s}.pagination-button[data-v-7a26b7d7]:hover:not(:disabled){background-color:#e9ecef;border-color:#bbb}.pagination-button[data-v-7a26b7d7]:disabled{background-color:#e9ecef;cursor:not-allowed;color:#999}.pagination-button.active[data-v-7a26b7d7]{background-color:#007bff;border-color:#007bff;color:#fff}.pagination-ellipsis[data-v-7a26b7d7]{padding:6px 12px;font-size:13px;color:#666}"]],["__scopeId","data-v-7a26b7d7"]]),np={class:"translation-editor"},sp={class:"translation-list-container"},rp={class:"search-box"},ip={class:"translation-list"},lp={class:"key-header"},ap=["title"],cp=["onClick"],dp={class:"default-value"},up=["onUpdate:modelValue","placeholder"],fp={class:"pagination-wrapper"},Us=30,pp=_e(xe({__name:"TranslationEditor",props:{modelValue:{type:Object}},emits:["update:modelValue"],setup(e,{emit:t}){const o=e,n=t,{selectedFile:s,configs:r,getDefaultLocaleTranslation:i}=jn(),l=re(rt(o.modelValue)),a=re({}),u=re(""),c=re(1),d=re("disabled"),p=re(""),b=re({}),N=oe(()=>{const L=Object.keys(a.value);if(!u.value.trim())return F.value;const q=u.value.toLowerCase();return L.filter(U=>U.toLowerCase().includes(q)||a.value[U]?.toLowerCase().includes(q))}),v=oe(()=>Math.ceil(Object.keys(a.value).length/Us)),F=oe(()=>{const L=(c.value-1)*Us,q=L+Us;return Object.keys(a.value).slice(L,q)}),R=()=>{const L=i();a.value=rt(L)},H=()=>{n("update:modelValue",kl(l.value))},B=L=>{L>=1&&L<=v.value&&(c.value=L)},pe=async(L,q)=>{if(q)try{const U=r.value.defaultLocale,x=new Nl({apiKey:p.value,driver:d.value,options:b.value}),P=s.value.split("/").pop()??"";l.value[L]=await x.translate(q,U,P.replace(".json","")),H()}catch(U){console.error("Translation error:",U)}},I=()=>{const L=localStorage.getItem("translationSettings");if(L)try{const q=JSON.parse(L);d.value=q.driver||"disabled",p.value=q.token||"",b.value=q.options||{}}catch{localStorage.removeItem("translationSettings")}};return At(()=>{R(),I()}),Te(()=>o.modelValue,L=>{l.value=rt(L),R()}),Te(s,()=>{R(),c.value=1}),Te(()=>r.value.defaultLocale,()=>{R()}),(L,q)=>(y(),D("div",np,[g("div",sp,[g("div",rp,[ut(g("input",{"onUpdate:modelValue":q[0]||(q[0]=U=>u.value=U),placeholder:"Search keys or values...",class:"search-input"},null,512),[[Pn,u.value]])]),g("div",ip,[(y(!0),D(te,null,Me(N.value,U=>(y(),D("div",{key:U,class:ye(["translation-item",{missing:!l.value[U]?.trim()}])},[g("div",lp,[g("span",{class:"key-label",title:U},G(U),9,ap),d.value!=="disabled"?(y(),D("button",{key:0,class:"translate-btn",onClick:x=>pe(U,a.value[U]||"")},[...q[1]||(q[1]=[g("svg",{class:"translate-icon",viewBox:"0 0 24 24"},[g("path",{d:"M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z"})],-1)])],8,cp)):ie("",!0)]),g("div",dp,G(a.value[U]||"No default value"),1),ut(g("textarea",{"onUpdate:modelValue":x=>l.value[U]=x,class:"translation-input",placeholder:a.value[U],rows:"1",onInput:H},null,40,up),[[Pn,l.value[U]]])],2))),128))])]),g("div",fp,[u.value?ie("",!0):(y(),be(op,{key:0,"current-page":c.value,"total-pages":v.value,"onUpdate:page":B},null,8,["current-page","total-pages"]))])]))}}),[["styles",['@reference "tailwindcss";.translation-editor[data-v-593b161e]{@apply flex flex-col h-full w-full overflow-hidden bg-gray-50;}.translation-list-container[data-v-593b161e]{@apply flex-1 flex flex-col min-h-0 overflow-hidden;}.search-box[data-v-593b161e]{@apply bg-white p-2 border-b border-gray-200 shrink-0;}.search-input[data-v-593b161e]{@apply w-full p-2 border border-gray-300 rounded-lg text-sm focus:outline-hidden focus:ring-2 focus:ring-blue-500;}.translation-list[data-v-593b161e]{@apply flex-1 overflow-y-auto overflow-x-hidden p-2 space-y-3;overscroll-behavior:contain}.translation-item[data-v-593b161e]{@apply p-3 bg-white rounded-lg shadow-sm border border-gray-200;}.translation-item.missing[data-v-593b161e]{@apply border-l-4 border-l-yellow-500 bg-yellow-50/30;}.key-header[data-v-593b161e]{@apply flex justify-between items-center mb-1;}.key-label[data-v-593b161e]{@apply font-mono text-xs font-semibold text-slate-700 truncate select-all;}.default-value[data-v-593b161e]{@apply text-xs text-gray-500 mb-2 truncate opacity-80;}.translation-input[data-v-593b161e]{@apply w-full p-2 border border-gray-300 rounded text-sm min-h-[38px] focus:outline-hidden focus:ring-2 focus:ring-blue-500 focus:border-blue-500;}.translate-btn[data-v-593b161e]{@apply p-1 text-gray-400 hover:text-blue-600 transition-colors rounded hover:bg-gray-100;}.translate-icon[data-v-593b161e]{@apply w-4 h-4 fill-current;}.pagination-wrapper[data-v-593b161e]{@apply shrink-0 p-2 border-t border-gray-200 bg-white;}']],["__scopeId","data-v-593b161e"]]),hp=["disabled","type"],Qt=_e(xe({__name:"Button",props:{variant:{default:"primary",type:String},size:{default:"md",type:String},disabled:{type:Boolean,default:!1},type:{default:"button",type:String}},emits:["click"],setup(e,{emit:t}){const o=e,n=t,s=r=>{o.disabled||n("click",r)};return(r,i)=>(y(),D("button",{class:ye(["btn",`btn--${e.variant}`,`btn--${e.size}`,{"btn--disabled":e.disabled}]),disabled:e.disabled,type:e.type,onClick:s},[ft(r.$slots,"default",{},void 0)],10,hp))}}),[["styles",['@reference "tailwindcss";.btn[data-v-4f279bb7]{@apply inline-flex items-center justify-center font-medium rounded-md transition-all duration-200 focus:outline-hidden focus:ring-2 focus:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed;}.btn--sm[data-v-4f279bb7]{@apply px-2 py-1 text-xs;}.btn--md[data-v-4f279bb7]{@apply px-3 py-1.5 text-sm;}.btn--lg[data-v-4f279bb7]{@apply px-4 py-2 text-base;}.btn--primary[data-v-4f279bb7]{@apply bg-blue-600 text-white hover:bg-blue-700 focus:ring-blue-500;}.btn--secondary[data-v-4f279bb7]{@apply bg-slate-200 text-slate-700 hover:bg-slate-300 focus:ring-slate-500;}.btn--danger[data-v-4f279bb7]{@apply bg-red-600 text-white hover:bg-red-700 focus:ring-red-500;}.btn--ghost[data-v-4f279bb7]{@apply bg-transparent text-slate-700 hover:bg-slate-100 focus:ring-slate-500;}']],["__scopeId","data-v-4f279bb7"]]),gp={class:"action-bar"},mp={class:"action-bar__left"},bp=_e(xe({__name:"ActionBar",props:{showTranslateButton:{type:Boolean}},emits:["export","import","show-stats","translate-missing","save"],setup(e,{emit:t}){const o=t;return(n,s)=>(y(),D("div",gp,[g("div",mp,[Y(Qt,{class:"action-btn action-btn--export",title:"Export",variant:"ghost",onClick:s[0]||(s[0]=r=>o("export"))},{default:we(()=>[...s[5]||(s[5]=[g("span",{class:"action-btn__icon"},"📤",-1)])]),_:1}),Y(Qt,{class:"action-btn action-btn--import",title:"Import",variant:"ghost",onClick:s[1]||(s[1]=r=>o("import"))},{default:we(()=>[...s[6]||(s[6]=[g("span",{class:"action-btn__icon"},"📥",-1)])]),_:1}),Y(Qt,{class:"action-btn action-btn--stats",title:"Stats",variant:"ghost",onClick:s[2]||(s[2]=r=>o("show-stats"))},{default:we(()=>[...s[7]||(s[7]=[g("span",{class:"action-btn__icon"},"📊",-1)])]),_:1}),e.showTranslateButton?(y(),be(Qt,{key:0,class:"action-btn action-btn--translate",title:"Translate",variant:"ghost",onClick:s[3]||(s[3]=r=>o("translate-missing"))},{default:we(()=>[...s[8]||(s[8]=[g("span",{class:"action-btn__icon"},"🌐",-1)])]),_:1})):ie("",!0)]),Y(Qt,{class:"action-btn action-btn--save",title:"Save",variant:"primary",onClick:s[4]||(s[4]=r=>o("save"))},{default:we(()=>[...s[9]||(s[9]=[g("span",{class:"action-btn__icon"},"💾",-1)])]),_:1})]))}}),[["styles",['@reference "tailwindcss";.action-bar[data-v-75c609c9]{@apply flex items-center justify-between p-3 bg-white border-b border-slate-200;}.action-bar__left[data-v-75c609c9]{@apply flex items-center gap-2 flex-wrap;}.action-btn[data-v-75c609c9]{@apply flex items-center gap-1.5;}.action-btn__icon[data-v-75c609c9]{@apply text-sm;}']],["__scopeId","data-v-75c609c9"]]),_p={key:0,class:"resize-overlay"},vp=_e(xe({__name:"SplitPane",props:{storageKey:{type:String},defaultLeftWidth:{default:"300px",type:String},minLeftWidth:{default:150,type:Number},minRightWidth:{default:300,type:Number}},setup(e){const t=e,o=re(t.defaultLeftWidth),n=re(!1);At(()=>{if(t.storageKey){const l=localStorage.getItem(`split-pane-${t.storageKey}`);l&&(o.value=l)}});const s=()=>{n.value=!0,document.body.style.cursor="col-resize",window.addEventListener("mousemove",r),window.addEventListener("mouseup",i)},r=l=>{if(!n.value||!l.target.closest(".split-pane"))return;const u=l.clientX;u>=t.minLeftWidth&&(o.value=`${u}px`)},i=()=>{n.value&&(n.value=!1,document.body.style.cursor="",t.storageKey&&localStorage.setItem(`split-pane-${t.storageKey}`,o.value),window.removeEventListener("mousemove",r),window.removeEventListener("mouseup",i))};return(l,a)=>(y(),D("div",{class:"split-pane",onMouseup:i,onMouseleave:i},[g("div",{class:"split-pane__left",style:yt({width:o.value})},[ft(l.$slots,"left",{},void 0)],4),g("div",{class:"split-pane__divider",style:yt({left:o.value}),onMousedown:bl(s,["prevent"])},[...a[0]||(a[0]=[g("div",{class:"divider-handle"},null,-1)])],36),g("div",{class:"split-pane__right",style:yt({left:o.value,paddingLeft:"4px"})},[ft(l.$slots,"right",{},void 0)],4),n.value?(y(),D("div",_p)):ie("",!0)],32))}}),[["styles",['@reference "tailwindcss";.split-pane[data-v-d964db95]{@apply relative w-full h-full bg-white overflow-hidden;}.split-pane__left[data-v-d964db95]{@apply absolute top-0 bottom-0 left-0 border-r border-slate-200 overflow-hidden bg-white z-0;}.split-pane__divider[data-v-d964db95]{@apply absolute top-0 bottom-0 w-4 cursor-col-resize z-50 flex justify-center hover:bg-blue-50/50 transition-colors;margin-left:-2px}.divider-handle[data-v-d964db95]{@apply w-[1px] h-full bg-slate-200 transition-colors;}.split-pane__divider:hover .divider-handle[data-v-d964db95],.split-pane__divider:active .divider-handle[data-v-d964db95]{@apply bg-blue-500 w-[2px];}.split-pane__right[data-v-d964db95]{@apply absolute top-0 bottom-0 right-0 overflow-hidden bg-white z-0;}.resize-overlay[data-v-d964db95]{@apply fixed inset-0 z-[100] cursor-col-resize;}']],["__scopeId","data-v-d964db95"]]),yp={class:"header-content"},xp={class:"modal-title"},wp={class:"modal-body"},Ep={key:0,class:"modal-footer"},Ol=_e(xe({__name:"Modal",props:{show:{type:Boolean},title:{type:String},size:{default:"md",type:String},width:{type:String},height:{type:String},disableOutsideClick:{type:Boolean,default:!1},disableEsc:{type:Boolean,default:!1},showCloseButton:{type:Boolean,default:!0},headerClass:{type:String}},emits:["update:show","close"],setup(e,{emit:t}){const o=e,n=t,s={sm:{width:"400px",height:"auto"},md:{width:"600px",height:"70vh"},lg:{width:"800px",height:"80vh"},xl:{width:"90vw",height:"90vh"},custom:{width:o.width||"auto",height:o.height||"auto"}},r=oe(()=>o.size==="custom"?o.width:null),i=oe(()=>o.size==="custom"?o.height:null),l=()=>{n("update:show",!1),n("close")},a=()=>{o.disableOutsideClick||l()},u=()=>{o.disableEsc||l()},c=p=>{p.key==="Escape"&&u()},d=re("");return At(()=>{if(document.addEventListener("keydown",c),o.show){const p=document.querySelector("i18n-devtools-ui");p&&(d.value=p.style.overflow||"",p.style.overflow="hidden")}}),hs(()=>{document.removeEventListener("keydown",c);const p=document.querySelector("i18n-devtools-ui");p&&(p.style.overflow=d.value)}),Te(()=>o.show,p=>{const b=document.querySelector("i18n-devtools-ui");b&&(p?(d.value=b.style.overflow||"",b.style.overflow="hidden"):b.style.overflow=d.value)}),(p,b)=>(y(),be(Wa,{to:"body"},[Y(As,{name:"modal"},{default:we(()=>[e.show?(y(),D("div",{key:0,class:"modal-overlay",onClick:bl(a,["self"]),onKeydown:Ud(u,["esc"])},[g("div",{class:"modal-content",style:yt({width:r.value||s[e.size].width,height:i.value||s[e.size].height})},[g("div",{class:ye(["modal-header",e.headerClass])},[g("div",yp,[ft(p.$slots,"header",{},()=>[g("h3",xp,G(e.title),1)],!0)]),e.showCloseButton?(y(),D("button",{key:0,class:"modal-close-button","aria-label":"Close modal",onClick:l},[...b[0]||(b[0]=[g("svg",{class:"close-icon",viewBox:"0 0 24 24"},[g("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})],-1)])])):ie("",!0)],2),g("div",wp,[ft(p.$slots,"default",{},void 0,!0)]),p.$slots.footer?(y(),D("div",Ep,[ft(p.$slots,"footer",{},void 0,!0)])):ie("",!0)],4)],32)):ie("",!0)]),_:3})]))}}),[["styles",['@reference "tailwindcss";.modal-overlay[data-v-5cc833a6]{@apply fixed inset-0 bg-black/50 flex items-center justify-center p-4 z-[1000];-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.modal-content[data-v-5cc833a6]{@apply bg-white rounded-xl shadow-2xl flex flex-col;max-height:calc(100vh - 2rem)}.modal-header[data-v-5cc833a6]{@apply flex items-center justify-between px-6 py-4 border-b border-gray-100 shrink-0;}.header-content[data-v-5cc833a6]{@apply flex-1 min-w-0;}.modal-title[data-v-5cc833a6]{@apply text-xl font-semibold text-gray-900 truncate;}.modal-close-button[data-v-5cc833a6]{@apply p-2 ml-4 -mr-2 text-gray-400 hover:text-gray-600 transition-colors;}.close-icon[data-v-5cc833a6]{@apply w-6 h-6 fill-current;}.modal-body[data-v-5cc833a6]{@apply flex-1 p-6 overflow-y-auto;scrollbar-width:thin;scrollbar-color:theme("colors.gray.300") theme("colors.white")}.modal-body[data-v-5cc833a6]::-webkit-scrollbar{@apply w-2;}.modal-body[data-v-5cc833a6]::-webkit-scrollbar-track{@apply bg-gray-100 rounded-sm;}.modal-body[data-v-5cc833a6]::-webkit-scrollbar-thumb{@apply bg-gray-300 rounded-sm hover:bg-gray-400;}.modal-footer[data-v-5cc833a6]{@apply flex items-center justify-end px-6 py-4 space-x-3 border-t border-gray-100 shrink-0;}']],["__scopeId","data-v-5cc833a6"]]),kp={class:"i18n-view"},Np={class:"pane-inner"},Op={class:"pane-inner bg-white"},$p={key:0,class:"editor-layout"},Sp={class:"editor-header"},Cp={class:"breadcrumbs"},Tp={class:"breadcrumbs__path"},Dp={class:"action-bar-wrapper"},Vp={class:"editor-content-area"},Ap={class:"editor-scroll-container"},Ip={key:1,class:"empty-state"},Pp={class:"flex justify-end gap-2 mt-4"},Mp=_e(xe({__name:"I18nView",setup(e){const t=re("disabled"),o=re(""),n=re({}),{configs:s,isLoading:r,locales:i,selectedFile:l,selectedFileContent:a,handleFileSelected:u,exportTranslations:c,importTranslations:d,getDefaultLocaleTranslation:p,saveCurrent:b}=jn(),N=re(null),v=re({});At(()=>{x()}),Te(a,P=>{P&&(v.value={...P})},{deep:!0,immediate:!0});const F=oe(()=>i.value),R=()=>{N.value?.click()},H=async()=>{a.value={...v.value},await b()};Te(l,P=>{const M=P.replace(/^\/+/,"").replace(/\\/g,"/");v.value=i.value[M]??i.value[P]??(P.startsWith("/")?i.value[P.slice(1)]:{})??{}});const B=re(!1),pe=()=>{B.value=!0},I=re(!1),L=()=>{I.value=!0},q=async()=>{I.value=!1,await U()},U=async()=>{if(!v.value)return;const P=p(),M=rt(P),S=rt(v.value),ce=Object.keys(M).filter(ve=>!S[ve]);if(ce.length===0){alert("No missing keys.");return}try{const ve=s.value.defaultLocale,De=new Nl({apiKey:o.value,driver:t.value,options:n.value});for(const Ee of ce){const Z=M[Ee];if(Z){const Q=l.value.split("/").pop()??"";S[Ee]=await De.translate(Z,ve,Q.replace(".json",""))}}v.value=kl(S),alert("Translated.")}catch(ve){console.error(ve),alert("Error.")}},x=()=>{const P=localStorage.getItem("translationSettings");if(P)try{const M=JSON.parse(P);t.value=M.driver||"disabled",o.value=M.token||"",n.value=M.options||{}}catch{localStorage.removeItem("translationSettings")}};return(P,M)=>(y(),D("div",kp,[fe(r)?(y(),be(Fs,{key:0})):(y(),be(vp,{key:1,"storage-key":"tab-i18n-locales","default-left-width":"280px"},{left:we(()=>[g("div",Np,[Y(Nf,{locales:F.value,"selected-file":fe(l),onFileSelected:fe(u)},null,8,["locales","selected-file","onFileSelected"])])]),right:we(()=>[g("div",Op,[fe(l)?(y(),D("div",$p,[g("div",Sp,[g("div",Cp,[M[5]||(M[5]=g("span",{class:"breadcrumbs__icon"},"📄",-1)),g("span",Tp,G(fe(l)),1)]),g("div",Dp,[Y(bp,{"show-translate-button":t.value!=="disabled",onExport:fe(c),onImport:R,onShowStats:pe,onTranslateMissing:L,onSave:H},null,8,["show-translate-button","onExport"])])]),g("div",Vp,[g("div",Ap,[Y(pp,{modelValue:v.value,"onUpdate:modelValue":M[0]||(M[0]=S=>v.value=S),class:"h-full"},null,8,["modelValue"])])])])):(y(),D("div",Ip,[...M[6]||(M[6]=[g("div",{class:"empty-state__icon"}," 📁 ",-1),g("div",{class:"empty-state__title"}," No File Selected ",-1),g("div",{class:"empty-state__description"}," Select a file from the tree to edit ",-1)])]))])]),_:1})),B.value?(y(),be(Ol,{key:2,show:B.value,"onUpdate:show":M[1]||(M[1]=S=>B.value=S),title:"Statistics",size:"lg"},{default:we(()=>[v.value?(y(),be(qf,{key:0,content:v.value},null,8,["content"])):ie("",!0)]),_:1},8,["show"])):ie("",!0),I.value?(y(),be(Ol,{key:3,show:I.value,"onUpdate:show":M[3]||(M[3]=S=>I.value=S),title:"Confirm Translation",size:"md"},{default:we(()=>[M[9]||(M[9]=g("p",null,"Are you sure?",-1)),g("div",Pp,[Y(Qt,{variant:"danger",onClick:M[2]||(M[2]=S=>I.value=!1)},{default:we(()=>[...M[7]||(M[7]=[nt(" Cancel ",-1)])]),_:1}),Y(Qt,{variant:"primary",onClick:q},{default:we(()=>[...M[8]||(M[8]=[nt(" Confirm ",-1)])]),_:1})])]),_:1},8,["show"])):ie("",!0),ut(g("input",{ref_key:"file",ref:N,type:"file",accept:".json",onChange:M[4]||(M[4]=(...S)=>fe(d)&&fe(d)(...S))},null,544),[[yd,!1]])]))}}),[["styles",['@reference "tailwindcss";.i18n-view[data-v-8f020ee0]{@apply h-full w-full relative overflow-hidden;}.pane-inner[data-v-8f020ee0]{@apply w-full h-full overflow-hidden flex flex-col;}.editor-layout[data-v-8f020ee0]{@apply flex flex-col h-full w-full overflow-hidden;}.editor-header[data-v-8f020ee0]{@apply shrink-0 bg-white z-10;}.breadcrumbs[data-v-8f020ee0]{@apply px-4 py-2 bg-slate-50 border-b border-slate-200 text-xs font-mono text-slate-600 flex items-center gap-2;}.breadcrumbs__icon[data-v-8f020ee0]{@apply text-base;}.breadcrumbs__path[data-v-8f020ee0]{@apply truncate text-slate-700 font-medium;}.action-bar-wrapper[data-v-8f020ee0]{@apply border-b border-slate-200;}.editor-content-area[data-v-8f020ee0]{@apply flex-1 relative overflow-hidden;}.editor-scroll-container[data-v-8f020ee0]{@apply absolute inset-0 overflow-hidden;}.empty-state[data-v-8f020ee0],.welcome-card[data-v-8f020ee0]{@apply flex flex-col items-center justify-center h-full text-center p-8 text-slate-500;}.empty-state__icon[data-v-8f020ee0],.welcome-card__icon[data-v-8f020ee0]{@apply text-6xl mb-4 opacity-50;}.empty-state__title[data-v-8f020ee0],.welcome-card__title[data-v-8f020ee0]{@apply text-xl font-bold text-slate-700 mb-2;}']],["__scopeId","data-v-8f020ee0"]]),jp={class:"settings-card"},Lp={class:"settings-card__header"},Fp={class:"settings-card__icon"},Rp={key:0},Hp={class:"settings-card__title"},Up={class:"settings-card__content"},Bp=_e(xe({__name:"SettingsCard",props:{title:{type:String},icon:{type:String}},setup(e){return(t,o)=>(y(),D("div",jp,[g("div",Lp,[g("span",Fp,[ft(t.$slots,"icon",{},()=>[e.icon?(y(),D("span",Rp,G(e.icon),1)):ie("",!0)])]),g("h3",Hp,G(e.title),1)]),g("div",Up,[ft(t.$slots,"default",{},void 0)])]))}}),[["styles",['@reference "tailwindcss";.settings-card[data-v-502b3f8f]{@apply bg-white rounded-lg p-4 shadow-xs border border-slate-200 transition-all duration-200 hover:shadow-sm;}.settings-card__header[data-v-502b3f8f]{@apply flex items-center mb-4 pb-3 border-b border-slate-100;}.settings-card__icon[data-v-502b3f8f]{@apply text-lg mr-2 flex items-center;}.settings-card__title[data-v-502b3f8f]{@apply text-lg font-semibold text-slate-800;}.settings-card__content[data-v-502b3f8f]{@apply space-y-4;}']],["__scopeId","data-v-502b3f8f"]]),Kp={class:"translation-controls"},zp={class:"translation-controls__content"},Wp={class:"control-group"},qp={class:"control-select"},Jp=["value"],Gp={key:0,class:"control-group"},Yp={key:0,class:"driver-options"},Xp={key:0,class:"control-group"},Zp={key:1,class:"control-group"},Qp={class:"control-select"},eh={key:2,class:"control-group"},th={class:"control-select"},oh=["value"],nh={key:3,class:"control-group"},sh={class:"control-select"},rh=_e(xe({__name:"TranslationControls",props:{driver:{type:String},apiToken:{type:String},options:{type:Object}},emits:["update:driver","update:apiToken","update:options"],setup(e,{emit:t}){const o=e,n=t,s=re(o.driver),r=re(o.apiToken),i=re({...o.options});Te(()=>o.driver,async u=>{u!==s.value&&(await ct(),s.value=u)}),Te(()=>o.apiToken,async u=>{u!==r.value&&(await ct(),r.value=u)}),Te(()=>o.options,async u=>{JSON.stringify(u)!==JSON.stringify(i.value)&&(await ct(),i.value={...u})},{deep:!0}),Te(s,async u=>{u!==o.driver&&(await ct(),n("update:driver",u))}),Te(r,async u=>{u!==o.apiToken&&(await ct(),n("update:apiToken",u))}),Te(i,async u=>{JSON.stringify(u)!==JSON.stringify(o.options)&&(await ct(),n("update:options",{...u}))},{deep:!0});const l=[{label:"Disabled",value:"disabled"},{label:"OpenAI",value:"openai"},{label:"Google",value:"google"},{label:"Google Free",value:"google-free"},{label:"DeepL",value:"deepl"},{label:"DeepSeek",value:"deepseek"},{label:"Yandex",value:"yandex"},{label:"Yandex Cloud",value:"yandex-cloud"}],a=["gpt-5","gpt-5-mini","gpt-5-nano","gpt-5-chat-latest","gpt-5-2025-08-07","gpt-5-mini-2025-08-07","gpt-5-nano-2025-08-07","gpt-4.1","gpt-4.1-mini","gpt-4.1-nano","gpt-4.1-2025-04-14","gpt-4.1-mini-2025-04-14","gpt-4.1-nano-2025-04-14","o3","o3-mini","o3-pro","o3-deep-research","o3-2025-04-16","o3-mini-2025-01-31","o3-pro-2025-06-10","o3-deep-research-2025-06-26","o4-mini","o4-mini-deep-research","o4-mini-2025-04-16","o4-mini-deep-research-2025-06-26","o1","o1-mini","o1-pro","o1-2024-12-17","o1-mini-2024-09-12","o1-pro-2025-03-19","gpt-4o","gpt-4o-mini","gpt-4o-2024-05-13","gpt-4o-mini-2024-07-18","gpt-4o-2024-08-06","gpt-4o-2024-11-20","gpt-4o-2025-03-11","chatgpt-4o-latest","gpt-4o-realtime-preview","gpt-4o-audio-preview","gpt-4o-mini-realtime-preview","gpt-4o-mini-audio-preview","gpt-4o-realtime-preview-2024-10-01","gpt-4o-audio-preview-2024-10-01","gpt-4o-realtime-preview-2024-12-17","gpt-4o-audio-preview-2024-12-17","gpt-4o-mini-realtime-preview-2024-12-17","gpt-4o-mini-audio-preview-2024-12-17","gpt-4o-realtime-preview-2025-06-03","gpt-4o-audio-preview-2025-06-03","gpt-4o-search-preview","gpt-4o-mini-search-preview","gpt-4o-search-preview-2025-03-11","gpt-4o-mini-search-preview-2025-03-11","gpt-4o-transcribe","gpt-4o-mini-transcribe","gpt-4o-mini-tts","gpt-4","gpt-4-turbo","gpt-4-turbo-preview","gpt-4-0613","gpt-4-1106-preview","gpt-4-0125-preview","gpt-4-turbo-2024-04-09","gpt-3.5-turbo","gpt-3.5-turbo-16k","gpt-3.5-turbo-instruct","gpt-3.5-turbo-instruct-0914","gpt-3.5-turbo-1106","gpt-3.5-turbo-0125"];return(u,c)=>(y(),D("div",Kp,[g("div",zp,[g("div",Wp,[c[8]||(c[8]=g("label",{class:"control-label"},[g("span",{class:"control-icon"},"🔧"),nt(" Translation Service ")],-1)),g("div",qp,[ut(g("select",{"onUpdate:modelValue":c[0]||(c[0]=d=>s.value=d),class:"select-input"},[c[6]||(c[6]=g("option",{value:"",disabled:"",hidden:""}," Select a translation driver ",-1)),(y(),D(te,null,Me(l,d=>g("option",{key:d.value,value:d.value},G(d.label),9,Jp)),64))],512),[[Mn,s.value]]),c[7]||(c[7]=g("div",{class:"select-arrow"}," ▼ ",-1))])]),Y(As,{name:"fade-slide"},{default:we(()=>[s.value!=="disabled"?(y(),D("div",Gp,[c[9]||(c[9]=g("label",{class:"control-label"},[g("span",{class:"control-icon"},"🔑"),nt(" API Authorization ")],-1)),ut(g("input",{"onUpdate:modelValue":c[1]||(c[1]=d=>r.value=d),type:"password",placeholder:"Enter your secure API token",class:"styled-input"},null,512),[[Pn,r.value]])])):ie("",!0)]),_:1}),Y(As,{name:"fade-slide"},{default:we(()=>[s.value!=="disabled"?(y(),D("div",Yp,[s.value==="yandex-cloud"?(y(),D("div",Xp,[c[10]||(c[10]=g("label",{class:"control-label"},[g("span",{class:"control-icon"},"📁"),nt(" Cloud Folder ID ")],-1)),ut(g("input",{"onUpdate:modelValue":c[2]||(c[2]=d=>i.value.folderId=d),type:"text",placeholder:"Yandex Cloud folder identifier",class:"styled-input"},null,512),[[Pn,i.value.folderId]])])):ie("",!0),s.value==="deepl"?(y(),D("div",Zp,[c[13]||(c[13]=g("label",{class:"control-label"},[g("span",{class:"control-icon"},"🎚️"),nt(" Tone Formality ")],-1)),g("div",Qp,[ut(g("select",{"onUpdate:modelValue":c[3]||(c[3]=d=>i.value.formality=d),class:"select-input"},[...c[11]||(c[11]=[g("option",{value:"default"}," Neutral (Default) ",-1),g("option",{value:"more"}," Formal Tone ",-1),g("option",{value:"less"}," Casual Tone ",-1)])],512),[[Mn,i.value.formality]]),c[12]||(c[12]=g("div",{class:"select-arrow"}," ▼ ",-1))])])):ie("",!0),s.value==="openai"?(y(),D("div",eh,[c[15]||(c[15]=g("label",{class:"control-label"},[g("span",{class:"control-icon"},"🤖"),nt(" AI Model Selection ")],-1)),g("div",th,[ut(g("select",{"onUpdate:modelValue":c[4]||(c[4]=d=>i.value.model=d),class:"select-input"},[(y(),D(te,null,Me(a,d=>g("option",{key:d,value:d},G(d),9,oh)),64))],512),[[Mn,i.value.model]]),c[14]||(c[14]=g("div",{class:"select-arrow"}," ▼ ",-1))])])):ie("",!0),s.value==="deepseek"?(y(),D("div",nh,[c[18]||(c[18]=g("label",{class:"control-label"},[g("span",{class:"control-icon"},"🧠"),nt(" Reasoning Model ")],-1)),g("div",sh,[ut(g("select",{"onUpdate:modelValue":c[5]||(c[5]=d=>i.value.model=d),class:"select-input"},[...c[16]||(c[16]=[g("option",{value:"deepseek-chat"}," Chat Optimized ",-1),g("option",{value:"deepseek-reasoner"}," Advanced Reasoning ",-1)])],512),[[Mn,i.value.model]]),c[17]||(c[17]=g("div",{class:"select-arrow"}," ▼ ",-1))])])):ie("",!0)])):ie("",!0)]),_:1})])]))}}),[["styles",['@reference "tailwindcss";.translation-controls[data-v-946f5883],.translation-controls__content[data-v-946f5883]{@apply space-y-4;}.control-group[data-v-946f5883]{@apply space-y-2;}.control-label[data-v-946f5883]{@apply flex items-center text-sm font-medium text-slate-600;}.control-icon[data-v-946f5883]{@apply mr-2;}.control-select[data-v-946f5883]{@apply relative rounded-lg border border-slate-200 transition-all duration-200 hover:border-blue-400;}.select-input[data-v-946f5883]{@apply w-full px-3 py-2 pr-8 bg-transparent outline-hidden appearance-none text-slate-700 rounded-lg text-sm;}.select-arrow[data-v-946f5883]{@apply absolute right-2 top-1/2 -translate-y-1/2 text-slate-400 pointer-events-none text-xs;}.styled-input[data-v-946f5883]{@apply w-full px-3 py-2 rounded-lg border border-slate-200 outline-hidden transition-all duration-200 focus:ring-2 focus:ring-blue-200 focus:border-blue-400 placeholder-slate-400 text-sm;}.driver-options[data-v-946f5883]{@apply pl-4 border-l-2 border-blue-100 ml-2 space-y-3;}.fade-slide-enter-active[data-v-946f5883],.fade-slide-leave-active[data-v-946f5883]{transition:all .3s ease}.fade-slide-enter-from[data-v-946f5883],.fade-slide-leave-to[data-v-946f5883]{opacity:0;transform:translate(10px)}']],["__scopeId","data-v-946f5883"]]),ih={class:"settings-view"},lh={class:"space-y-6"},$l="translationSettings",ah=_e(xe({__name:"SettingsView",setup(e){const t=re("disabled"),o=re(""),n=re({folderId:"",formality:"default",model:"gpt-3.5-turbo"});return At(()=>{const s=localStorage.getItem($l);if(s){const{driver:r,token:i,options:l}=JSON.parse(s);t.value=r,o.value=i,n.value=l||{}}}),Te([t,o,n],async()=>{await ct();const s={driver:t.value,token:o.value,options:n.value};localStorage.setItem($l,JSON.stringify(s))},{deep:!0}),(s,r)=>(y(),D("div",ih,[g("div",lh,[Y(Bp,{title:"Auto-Translation Engine",icon:"🌐"},{default:we(()=>[Y(rh,{driver:t.value,"onUpdate:driver":r[0]||(r[0]=i=>t.value=i),"api-token":o.value,"onUpdate:apiToken":r[1]||(r[1]=i=>o.value=i),options:n.value,"onUpdate:options":r[2]||(r[2]=i=>n.value=i)},null,8,["driver","api-token","options"])]),_:1})])]))}}),[["styles",['@reference "tailwindcss";.settings-view[data-v-8ffb2606]{@apply h-full overflow-auto p-4;}']],["__scopeId","data-v-8ffb2606"]]),ch={class:"i18n-devtools"},dh={class:"header"},uh={class:"content-area"},fh={class:"view-container"},ph=_e(xe({__name:"App.ce",props:{bridge:{type:Object,required:!1}},setup(e){const t=e,o=_u();fi(El,o);const n=re("i18n"),s=[{label:"i18n",value:"i18n",icon:Ls},{label:"Settings",value:"settings",icon:wl},{label:"Server Info",value:"config",icon:xl}],r=async l=>{o.bridge.value||(console.log("[i18n-devtools] Bridge received, initializing..."),o.setBridge(l),await o.init())};Te(()=>t.bridge,l=>{l&&r(l)},{immediate:!0});const i=oe(()=>o.isLoading.value||!o.bridge.value);return At(()=>{t.bridge?r(t.bridge):console.log("[i18n-devtools] Waiting for bridge...")}),(l,a)=>(y(),D("div",ch,[i.value?(y(),be(Fs,{key:0})):(y(),D(te,{key:1},[g("div",dh,[Y(bu,{modelValue:n.value,"onUpdate:modelValue":a[0]||(a[0]=u=>n.value=u),tabs:s},null,8,["modelValue"])]),g("div",uh,[g("div",fh,[n.value==="i18n"?(y(),be(Mp,{key:0})):ie("",!0),n.value==="settings"?(y(),be(ah,{key:1})):ie("",!0),n.value==="config"?(y(),be(pf,{key:2})):ie("",!0)])])],64))]))}}),[["styles",['@layer theme,base,components,utilities;@layer theme{@theme default{ --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; --font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif; --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; --color-red-50: oklch(97.1% .013 17.38); --color-red-100: oklch(93.6% .032 17.717); --color-red-200: oklch(88.5% .062 18.334); --color-red-300: oklch(80.8% .114 19.571); --color-red-400: oklch(70.4% .191 22.216); --color-red-500: oklch(63.7% .237 25.331); --color-red-600: oklch(57.7% .245 27.325); --color-red-700: oklch(50.5% .213 27.518); --color-red-800: oklch(44.4% .177 26.899); --color-red-900: oklch(39.6% .141 25.723); --color-red-950: oklch(25.8% .092 26.042); --color-orange-50: oklch(98% .016 73.684); --color-orange-100: oklch(95.4% .038 75.164); --color-orange-200: oklch(90.1% .076 70.697); --color-orange-300: oklch(83.7% .128 66.29); --color-orange-400: oklch(75% .183 55.934); --color-orange-500: oklch(70.5% .213 47.604); --color-orange-600: oklch(64.6% .222 41.116); --color-orange-700: oklch(55.3% .195 38.402); --color-orange-800: oklch(47% .157 37.304); --color-orange-900: oklch(40.8% .123 38.172); --color-orange-950: oklch(26.6% .079 36.259); --color-amber-50: oklch(98.7% .022 95.277); --color-amber-100: oklch(96.2% .059 95.617); --color-amber-200: oklch(92.4% .12 95.746); --color-amber-300: oklch(87.9% .169 91.605); --color-amber-400: oklch(82.8% .189 84.429); --color-amber-500: oklch(76.9% .188 70.08); --color-amber-600: oklch(66.6% .179 58.318); --color-amber-700: oklch(55.5% .163 48.998); --color-amber-800: oklch(47.3% .137 46.201); --color-amber-900: oklch(41.4% .112 45.904); --color-amber-950: oklch(27.9% .077 45.635); --color-yellow-50: oklch(98.7% .026 102.212); --color-yellow-100: oklch(97.3% .071 103.193); --color-yellow-200: oklch(94.5% .129 101.54); --color-yellow-300: oklch(90.5% .182 98.111); --color-yellow-400: oklch(85.2% .199 91.936); --color-yellow-500: oklch(79.5% .184 86.047); --color-yellow-600: oklch(68.1% .162 75.834); --color-yellow-700: oklch(55.4% .135 66.442); --color-yellow-800: oklch(47.6% .114 61.907); --color-yellow-900: oklch(42.1% .095 57.708); --color-yellow-950: oklch(28.6% .066 53.813); --color-lime-50: oklch(98.6% .031 120.757); --color-lime-100: oklch(96.7% .067 122.328); --color-lime-200: oklch(93.8% .127 124.321); --color-lime-300: oklch(89.7% .196 126.665); --color-lime-400: oklch(84.1% .238 128.85); --color-lime-500: oklch(76.8% .233 130.85); --color-lime-600: oklch(64.8% .2 131.684); --color-lime-700: oklch(53.2% .157 131.589); --color-lime-800: oklch(45.3% .124 130.933); --color-lime-900: oklch(40.5% .101 131.063); --color-lime-950: oklch(27.4% .072 132.109); --color-green-50: oklch(98.2% .018 155.826); --color-green-100: oklch(96.2% .044 156.743); --color-green-200: oklch(92.5% .084 155.995); --color-green-300: oklch(87.1% .15 154.449); --color-green-400: oklch(79.2% .209 151.711); --color-green-500: oklch(72.3% .219 149.579); --color-green-600: oklch(62.7% .194 149.214); --color-green-700: oklch(52.7% .154 150.069); --color-green-800: oklch(44.8% .119 151.328); --color-green-900: oklch(39.3% .095 152.535); --color-green-950: oklch(26.6% .065 152.934); --color-emerald-50: oklch(97.9% .021 166.113); --color-emerald-100: oklch(95% .052 163.051); --color-emerald-200: oklch(90.5% .093 164.15); --color-emerald-300: oklch(84.5% .143 164.978); --color-emerald-400: oklch(76.5% .177 163.223); --color-emerald-500: oklch(69.6% .17 162.48); --color-emerald-600: oklch(59.6% .145 163.225); --color-emerald-700: oklch(50.8% .118 165.612); --color-emerald-800: oklch(43.2% .095 166.913); --color-emerald-900: oklch(37.8% .077 168.94); --color-emerald-950: oklch(26.2% .051 172.552); --color-teal-50: oklch(98.4% .014 180.72); --color-teal-100: oklch(95.3% .051 180.801); --color-teal-200: oklch(91% .096 180.426); --color-teal-300: oklch(85.5% .138 181.071); --color-teal-400: oklch(77.7% .152 181.912); --color-teal-500: oklch(70.4% .14 182.503); --color-teal-600: oklch(60% .118 184.704); --color-teal-700: oklch(51.1% .096 186.391); --color-teal-800: oklch(43.7% .078 188.216); --color-teal-900: oklch(38.6% .063 188.416); --color-teal-950: oklch(27.7% .046 192.524); --color-cyan-50: oklch(98.4% .019 200.873); --color-cyan-100: oklch(95.6% .045 203.388); --color-cyan-200: oklch(91.7% .08 205.041); --color-cyan-300: oklch(86.5% .127 207.078); --color-cyan-400: oklch(78.9% .154 211.53); --color-cyan-500: oklch(71.5% .143 215.221); --color-cyan-600: oklch(60.9% .126 221.723); --color-cyan-700: oklch(52% .105 223.128); --color-cyan-800: oklch(45% .085 224.283); --color-cyan-900: oklch(39.8% .07 227.392); --color-cyan-950: oklch(30.2% .056 229.695); --color-sky-50: oklch(97.7% .013 236.62); --color-sky-100: oklch(95.1% .026 236.824); --color-sky-200: oklch(90.1% .058 230.902); --color-sky-300: oklch(82.8% .111 230.318); --color-sky-400: oklch(74.6% .16 232.661); --color-sky-500: oklch(68.5% .169 237.323); --color-sky-600: oklch(58.8% .158 241.966); --color-sky-700: oklch(50% .134 242.749); --color-sky-800: oklch(44.3% .11 240.79); --color-sky-900: oklch(39.1% .09 240.876); --color-sky-950: oklch(29.3% .066 243.157); --color-blue-50: oklch(97% .014 254.604); --color-blue-100: oklch(93.2% .032 255.585); --color-blue-200: oklch(88.2% .059 254.128); --color-blue-300: oklch(80.9% .105 251.813); --color-blue-400: oklch(70.7% .165 254.624); --color-blue-500: oklch(62.3% .214 259.815); --color-blue-600: oklch(54.6% .245 262.881); --color-blue-700: oklch(48.8% .243 264.376); --color-blue-800: oklch(42.4% .199 265.638); --color-blue-900: oklch(37.9% .146 265.522); --color-blue-950: oklch(28.2% .091 267.935); --color-indigo-50: oklch(96.2% .018 272.314); --color-indigo-100: oklch(93% .034 272.788); --color-indigo-200: oklch(87% .065 274.039); --color-indigo-300: oklch(78.5% .115 274.713); --color-indigo-400: oklch(67.3% .182 276.935); --color-indigo-500: oklch(58.5% .233 277.117); --color-indigo-600: oklch(51.1% .262 276.966); --color-indigo-700: oklch(45.7% .24 277.023); --color-indigo-800: oklch(39.8% .195 277.366); --color-indigo-900: oklch(35.9% .144 278.697); --color-indigo-950: oklch(25.7% .09 281.288); --color-violet-50: oklch(96.9% .016 293.756); --color-violet-100: oklch(94.3% .029 294.588); --color-violet-200: oklch(89.4% .057 293.283); --color-violet-300: oklch(81.1% .111 293.571); --color-violet-400: oklch(70.2% .183 293.541); --color-violet-500: oklch(60.6% .25 292.717); --color-violet-600: oklch(54.1% .281 293.009); --color-violet-700: oklch(49.1% .27 292.581); --color-violet-800: oklch(43.2% .232 292.759); --color-violet-900: oklch(38% .189 293.745); --color-violet-950: oklch(28.3% .141 291.089); --color-purple-50: oklch(97.7% .014 308.299); --color-purple-100: oklch(94.6% .033 307.174); --color-purple-200: oklch(90.2% .063 306.703); --color-purple-300: oklch(82.7% .119 306.383); --color-purple-400: oklch(71.4% .203 305.504); --color-purple-500: oklch(62.7% .265 303.9); --color-purple-600: oklch(55.8% .288 302.321); --color-purple-700: oklch(49.6% .265 301.924); --color-purple-800: oklch(43.8% .218 303.724); --color-purple-900: oklch(38.1% .176 304.987); --color-purple-950: oklch(29.1% .149 302.717); --color-fuchsia-50: oklch(97.7% .017 320.058); --color-fuchsia-100: oklch(95.2% .037 318.852); --color-fuchsia-200: oklch(90.3% .076 319.62); --color-fuchsia-300: oklch(83.3% .145 321.434); --color-fuchsia-400: oklch(74% .238 322.16); --color-fuchsia-500: oklch(66.7% .295 322.15); --color-fuchsia-600: oklch(59.1% .293 322.896); --color-fuchsia-700: oklch(51.8% .253 323.949); --color-fuchsia-800: oklch(45.2% .211 324.591); --color-fuchsia-900: oklch(40.1% .17 325.612); --color-fuchsia-950: oklch(29.3% .136 325.661); --color-pink-50: oklch(97.1% .014 343.198); --color-pink-100: oklch(94.8% .028 342.258); --color-pink-200: oklch(89.9% .061 343.231); --color-pink-300: oklch(82.3% .12 346.018); --color-pink-400: oklch(71.8% .202 349.761); --color-pink-500: oklch(65.6% .241 354.308); --color-pink-600: oklch(59.2% .249 .584); --color-pink-700: oklch(52.5% .223 3.958); --color-pink-800: oklch(45.9% .187 3.815); --color-pink-900: oklch(40.8% .153 2.432); --color-pink-950: oklch(28.4% .109 3.907); --color-rose-50: oklch(96.9% .015 12.422); --color-rose-100: oklch(94.1% .03 12.58); --color-rose-200: oklch(89.2% .058 10.001); --color-rose-300: oklch(81% .117 11.638); --color-rose-400: oklch(71.2% .194 13.428); --color-rose-500: oklch(64.5% .246 16.439); --color-rose-600: oklch(58.6% .253 17.585); --color-rose-700: oklch(51.4% .222 16.935); --color-rose-800: oklch(45.5% .188 13.697); --color-rose-900: oklch(41% .159 10.272); --color-rose-950: oklch(27.1% .105 12.094); --color-slate-50: oklch(98.4% .003 247.858); --color-slate-100: oklch(96.8% .007 247.896); --color-slate-200: oklch(92.9% .013 255.508); --color-slate-300: oklch(86.9% .022 252.894); --color-slate-400: oklch(70.4% .04 256.788); --color-slate-500: oklch(55.4% .046 257.417); --color-slate-600: oklch(44.6% .043 257.281); --color-slate-700: oklch(37.2% .044 257.287); --color-slate-800: oklch(27.9% .041 260.031); --color-slate-900: oklch(20.8% .042 265.755); --color-slate-950: oklch(12.9% .042 264.695); --color-gray-50: oklch(98.5% .002 247.839); --color-gray-100: oklch(96.7% .003 264.542); --color-gray-200: oklch(92.8% .006 264.531); --color-gray-300: oklch(87.2% .01 258.338); --color-gray-400: oklch(70.7% .022 261.325); --color-gray-500: oklch(55.1% .027 264.364); --color-gray-600: oklch(44.6% .03 256.802); --color-gray-700: oklch(37.3% .034 259.733); --color-gray-800: oklch(27.8% .033 256.848); --color-gray-900: oklch(21% .034 264.665); --color-gray-950: oklch(13% .028 261.692); --color-zinc-50: oklch(98.5% 0 0); --color-zinc-100: oklch(96.7% .001 286.375); --color-zinc-200: oklch(92% .004 286.32); --color-zinc-300: oklch(87.1% .006 286.286); --color-zinc-400: oklch(70.5% .015 286.067); --color-zinc-500: oklch(55.2% .016 285.938); --color-zinc-600: oklch(44.2% .017 285.786); --color-zinc-700: oklch(37% .013 285.805); --color-zinc-800: oklch(27.4% .006 286.033); --color-zinc-900: oklch(21% .006 285.885); --color-zinc-950: oklch(14.1% .005 285.823); --color-neutral-50: oklch(98.5% 0 0); --color-neutral-100: oklch(97% 0 0); --color-neutral-200: oklch(92.2% 0 0); --color-neutral-300: oklch(87% 0 0); --color-neutral-400: oklch(70.8% 0 0); --color-neutral-500: oklch(55.6% 0 0); --color-neutral-600: oklch(43.9% 0 0); --color-neutral-700: oklch(37.1% 0 0); --color-neutral-800: oklch(26.9% 0 0); --color-neutral-900: oklch(20.5% 0 0); --color-neutral-950: oklch(14.5% 0 0); --color-stone-50: oklch(98.5% .001 106.423); --color-stone-100: oklch(97% .001 106.424); --color-stone-200: oklch(92.3% .003 48.717); --color-stone-300: oklch(86.9% .005 56.366); --color-stone-400: oklch(70.9% .01 56.259); --color-stone-500: oklch(55.3% .013 58.071); --color-stone-600: oklch(44.4% .011 73.639); --color-stone-700: oklch(37.4% .01 67.558); --color-stone-800: oklch(26.8% .007 34.298); --color-stone-900: oklch(21.6% .006 56.043); --color-stone-950: oklch(14.7% .004 49.25); --color-black: #000; --color-white: #fff; --spacing: .25rem; --breakpoint-sm: 40rem; --breakpoint-md: 48rem; --breakpoint-lg: 64rem; --breakpoint-xl: 80rem; --breakpoint-2xl: 96rem; --container-3xs: 16rem; --container-2xs: 18rem; --container-xs: 20rem; --container-sm: 24rem; --container-md: 28rem; --container-lg: 32rem; --container-xl: 36rem; --container-2xl: 42rem; --container-3xl: 48rem; --container-4xl: 56rem; --container-5xl: 64rem; --container-6xl: 72rem; --container-7xl: 80rem; --text-xs: .75rem; --text-xs--line-height: calc(1 / .75); --text-sm: .875rem; --text-sm--line-height: calc(1.25 / .875); --text-base: 1rem; --text-base--line-height: 1.5 ; --text-lg: 1.125rem; --text-lg--line-height: calc(1.75 / 1.125); --text-xl: 1.25rem; --text-xl--line-height: calc(1.75 / 1.25); --text-2xl: 1.5rem; --text-2xl--line-height: calc(2 / 1.5); --text-3xl: 1.875rem; --text-3xl--line-height: 1.2 ; --text-4xl: 2.25rem; --text-4xl--line-height: calc(2.5 / 2.25); --text-5xl: 3rem; --text-5xl--line-height: 1; --text-6xl: 3.75rem; --text-6xl--line-height: 1; --text-7xl: 4.5rem; --text-7xl--line-height: 1; --text-8xl: 6rem; --text-8xl--line-height: 1; --text-9xl: 8rem; --text-9xl--line-height: 1; --font-weight-thin: 100; --font-weight-extralight: 200; --font-weight-light: 300; --font-weight-normal: 400; --font-weight-medium: 500; --font-weight-semibold: 600; --font-weight-bold: 700; --font-weight-extrabold: 800; --font-weight-black: 900; --tracking-tighter: -.05em; --tracking-tight: -.025em; --tracking-normal: 0em; --tracking-wide: .025em; --tracking-wider: .05em; --tracking-widest: .1em; --leading-tight: 1.25; --leading-snug: 1.375; --leading-normal: 1.5; --leading-relaxed: 1.625; --leading-loose: 2; --radius-xs: .125rem; --radius-sm: .25rem; --radius-md: .375rem; --radius-lg: .5rem; --radius-xl: .75rem; --radius-2xl: 1rem; --radius-3xl: 1.5rem; --radius-4xl: 2rem; --shadow-2xs: 0 1px rgb(0 0 0 / .05); --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / .05); --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1); --shadow-md: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1); --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1); --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1); --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / .25); --inset-shadow-2xs: inset 0 1px rgb(0 0 0 / .05); --inset-shadow-xs: inset 0 1px 1px rgb(0 0 0 / .05); --inset-shadow-sm: inset 0 2px 4px rgb(0 0 0 / .05); --drop-shadow-xs: 0 1px 1px rgb(0 0 0 / .05); --drop-shadow-sm: 0 1px 2px rgb(0 0 0 / .15); --drop-shadow-md: 0 3px 3px rgb(0 0 0 / .12); --drop-shadow-lg: 0 4px 4px rgb(0 0 0 / .15); --drop-shadow-xl: 0 9px 7px rgb(0 0 0 / .1); --drop-shadow-2xl: 0 25px 25px rgb(0 0 0 / .15); --text-shadow-2xs: 0px 1px 0px rgb(0 0 0 / .15); --text-shadow-xs: 0px 1px 1px rgb(0 0 0 / .2); --text-shadow-sm: 0px 1px 0px rgb(0 0 0 / .075), 0px 1px 1px rgb(0 0 0 / .075), 0px 2px 2px rgb(0 0 0 / .075); --text-shadow-md: 0px 1px 1px rgb(0 0 0 / .1), 0px 1px 2px rgb(0 0 0 / .1), 0px 2px 4px rgb(0 0 0 / .1); --text-shadow-lg: 0px 1px 2px rgb(0 0 0 / .1), 0px 3px 2px rgb(0 0 0 / .1), 0px 4px 8px rgb(0 0 0 / .1); --ease-in: cubic-bezier(.4, 0, 1, 1); --ease-out: cubic-bezier(0, 0, .2, 1); --ease-in-out: cubic-bezier(.4, 0, .2, 1); --animate-spin: spin 1s linear infinite; --animate-ping: ping 1s cubic-bezier(0, 0, .2, 1) infinite; --animate-pulse: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite; --animate-bounce: bounce 1s infinite; @keyframes spin { to { transform: rotate(360deg); } } @keyframes ping { 75%, 100% { transform: scale(2); opacity: 0; } } @keyframes pulse { 50% { opacity: .5; } } @keyframes bounce { 0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(.8, 0, 1, 1); } 50% { transform: none; animation-timing-function: cubic-bezier(0, 0, .2, 1); } } --blur-xs: 4px; --blur-sm: 8px; --blur-md: 12px; --blur-lg: 16px; --blur-xl: 24px; --blur-2xl: 40px; --blur-3xl: 64px; --perspective-dramatic: 100px; --perspective-near: 300px; --perspective-normal: 500px; --perspective-midrange: 800px; --perspective-distant: 1200px; --aspect-video: 16 / 9; --default-transition-duration: .15s; --default-transition-timing-function: cubic-bezier(.4, 0, .2, 1); --default-font-family: --theme(--font-sans, initial); --default-font-feature-settings: --theme( --font-sans--font-feature-settings, initial ); --default-font-variation-settings: --theme( --font-sans--font-variation-settings, initial ); --default-mono-font-family: --theme(--font-mono, initial); --default-mono-font-feature-settings: --theme( --font-mono--font-feature-settings, initial ); --default-mono-font-variation-settings: --theme( --font-mono--font-variation-settings, initial ); }@theme default inline reference{ --blur: 8px; --shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1); --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / .05); --drop-shadow: 0 1px 2px rgb(0 0 0 / .1), 0 1px 1px rgb(0 0 0 / .06); --radius: .25rem; --max-width-prose: 65ch; }}@layer base{*,:after,:before,::backdrop,::file-selector-button{box-sizing:border-box;margin:0;padding:0;border:0 solid}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;tab-size:4;font-family:--theme(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:--theme(--default-font-feature-settings,normal);font-variation-settings:--theme(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:--theme(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:--theme(--default-mono-font-feature-settings,normal);font-variation-settings:--theme(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea,::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;border-radius:0;background-color:transparent;opacity:1}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not (-webkit-appearance: -apple-pay-button)) or (contain-intrinsic-size: 1px){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]),::file-selector-button{appearance:button}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer utilities{@tailwind utilities;}.i18n-devtools{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif}:host{display:block;width:100%;height:100vh;overflow:hidden}.i18n-devtools{@apply antialiased text-slate-700 bg-white flex flex-col w-full h-full overflow-hidden;}.header{@apply shrink-0 border-b border-slate-200 bg-white z-20 relative;}.content-area{@apply flex-1 relative w-full h-full overflow-hidden;}.view-container{@apply absolute inset-0 w-full h-full overflow-hidden;}']]]);function hh(e){const{adapter:t,locales:o=[],defaultLocale:n="en",translationDir:s="src/locales"}=e,r=()=>{const i={},l=t.getRouteCache();for(const[a,u]of Object.entries(l)){if(!u||typeof u!="object"||Array.isArray(u)||Object.keys(u).length===0)continue;const c=a.indexOf(":");if(c===-1)continue;const d=a.substring(0,c),p=a.substring(c+1);i[p==="index"?eo.buildSourceRootPath(d):eo.buildSourcePagePath(p,d)]=u}return i};return{async getLocalesAndTranslations(){return r()},async getConfigs(){return{defaultLocale:n||t.getCurrentLocale?.()||"en",fallbackLocale:t.getFallbackLocale?.()||n||"en",locales:o||[],translationDir:s||"locales"}},async saveTranslation(i,l){try{const a=i.replace(/^\/+/,"").replace(/\/+/g,"/"),u=Al.parseTranslationRelativePath(a);if(u.type==="page")t.addRouteTranslations(u.locale,u.pageName,l,!1);else if(u.type==="root")t.addTranslations(u.locale,l,!1);else throw new Error(`Unknown file path format: ${i}`);const c=s?`${s}/${a}`:a;try{const d=await fetch("/__i18n_api/save",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({file:c,content:l})});if(!d.ok){const p=await d.json().catch(()=>({error:"Unknown error"}));throw new Error(p.error||`Network response was not ok: ${d.statusText}`)}console.log(`[i18n-bridge] Saved to disk: ${c}`)}catch(d){if(typeof localStorage<"u"){console.warn("[i18n-bridge] Server save failed, falling back to localStorage:",d);const p=`i18n_save_${i}`;localStorage.setItem(p,JSON.stringify(l,null,2))}else throw d}}catch(a){throw new Error(`Failed to save: ${a instanceof Error?a.message:String(a)}`)}},onLocalesUpdate(i){return t.subscribe(()=>{i(r())})}}}function gh(){return Date.now().toString(36)+Math.random().toString(36).substring(2)}function mh(){const e=new Map,t=new Set;window.addEventListener("message",n=>{const s=n.data;if(!(!s||s.jsonrpc!=="2.0"))if("id"in s&&s.id&&e.has(s.id)){const r=e.get(s.id);if(r){const{resolve:i,reject:l}=r;e.delete(s.id),s.error?l(new Error(s.error.message)):i(s.result)}}else"method"in s&&s.method==="localesUpdate"&&t.forEach(r=>{r(s.params)})});const o=(n,s)=>new Promise((r,i)=>{const l=gh();e.set(l,{resolve:r,reject:i});const a={jsonrpc:"2.0",id:l,method:n,params:s};window.parent.postMessage(a,"*")});return{getLocalesAndTranslations:()=>o("getLocalesAndTranslations"),getConfigs:()=>o("getConfigs"),saveTranslation:(n,s)=>o("saveTranslation",{file:n,content:s}),onLocalesUpdate:n=>(t.add(n),()=>{t.delete(n)})}}function bh(e,t){const o=async s=>{if(s.source!==e)return;const r=s.data;if(!r||r.jsonrpc!=="2.0"||!r.id)return;const i={jsonrpc:"2.0",id:r.id};try{switch(r.method){case"getLocalesAndTranslations":i.result=await t.getLocalesAndTranslations();break;case"getConfigs":i.result=await t.getConfigs();break;case"saveTranslation":{const l=r.params;await t.saveTranslation(l.file,l.content),i.result=!0;break}default:throw new Error(`Method ${r.method} not found`)}}catch(l){const a=l instanceof Error?l.message:String(l);i.error={code:-32603,message:a}}e.postMessage(i,"*")};window.addEventListener("message",o);const n=t.onLocalesUpdate(s=>{const r={jsonrpc:"2.0",method:"localesUpdate",params:s};e.postMessage(r,"*")});return()=>{window.removeEventListener("message",o),n()}}const Sl=Pd(ph);function _h(){customElements.get("i18n-devtools-ui")||customElements.define("i18n-devtools-ui",Sl)}We.I18nDevToolsElement=Sl,We.createBridge=hh,We.createRpcClient=mh,We.register=_h,We.setupRpcHost=bh,Object.defineProperty(We,Symbol.toStringTag,{value:"Module"})}));
|
|
7
|
+
For more details, see https://link.vuejs.org/feature-flags.`)}}const Le=Wc;function Uc(e){return Bc(e)}function Bc(e,t){Hc();const o=yo();o.__VUE__=!0,m.NODE_ENV!=="production"&&Tr(o.__VUE_DEVTOOLS_GLOBAL_HOOK__,o);const{insert:n,remove:s,patchProp:r,createElement:i,createText:l,createComment:a,setText:u,setElementText:c,parentNode:d,nextSibling:p,setScopeId:b=Ce,insertStaticContent:N}=e,v=(f,h,_,$=null,w=null,E=null,D=void 0,C=null,S=m.NODE_ENV!=="production"&&st?!1:!!h.dynamicChildren)=>{if(f===h)return;f&&!Qt(f,h)&&($=Rn(f),Rt(f,w,E,!0),f=null),h.patchFlag===-2&&(S=!1,h.dynamicChildren=null);const{type:k,ref:W,shapeFlag:A}=h;switch(k){case Lo:L(f,h,_,$);break;case Ne:R(f,h,_,$);break;case Fo:f==null?H(h,_,$,D):m.NODE_ENV!=="production"&&B(f,h,_,D);break;case se:fe(f,h,_,$,w,E,D,C,S);break;default:A&1?P(f,h,_,$,w,E,D,C,S):A&6?le(f,h,_,$,w,E,D,C,S):A&64||A&128?k.process(f,h,_,$,w,E,D,C,S,Xo):m.NODE_ENV!=="production"&&O("Invalid VNode type:",k,`(${typeof k})`)}W!=null&&w?Vo(W,f&&f.ref,E,h||f,!h):W==null&&f&&f.ref!=null&&Vo(f.ref,null,E,f,!0)},L=(f,h,_,$)=>{if(f==null)n(h.el=l(h.children),_,$);else{const w=h.el=f.el;h.children!==f.children&&u(w,h.children)}},R=(f,h,_,$)=>{f==null?n(h.el=a(h.children||""),_,$):h.el=f.el},H=(f,h,_,$)=>{[f.el,f.anchor]=N(f.children,h,_,$,f.el,f.anchor)},B=(f,h,_,$)=>{if(h.children!==f.children){const w=p(f.anchor);I(f),[h.el,h.anchor]=N(h.children,_,w,$)}else h.el=f.el,h.anchor=f.anchor},me=({el:f,anchor:h},_,$)=>{let w;for(;f&&f!==h;)w=p(f),n(f,_,$),f=w;n(h,_,$)},I=({el:f,anchor:h})=>{let _;for(;f&&f!==h;)_=p(f),s(f),f=_;s(h)},P=(f,h,_,$,w,E,D,C,S)=>{if(h.type==="svg"?D="svg":h.type==="math"&&(D="mathml"),f==null)q(h,_,$,w,E,D,C,S);else{const k=f.el&&f.el._isVueCE?f.el:null;try{k&&k._beginPatch(),M(f,h,w,E,D,C,S)}finally{k&&k._endPatch()}}},q=(f,h,_,$,w,E,D,C)=>{let S,k;const{props:W,shapeFlag:A,transition:K,dirs:G}=f;if(S=f.el=i(f.type,E,W&&W.is,W),A&8?c(S,f.children):A&16&&x(f.children,S,null,$,w,$s(f,E),D,C),G&&Jt(f,null,$,"created"),F(S,f,f.scopeId,D,$),W){for(const be in W)be!=="value"&&!vo(be)&&r(S,be,null,W[be],E,$);"value"in W&&r(S,"value",null,W.value,E),(k=W.onVnodeBeforeMount)&>(k,$,f)}m.NODE_ENV!=="production"&&(on(S,"__vnode",f,!0),on(S,"__vueParentComponent",$,!0)),G&&Jt(f,null,$,"beforeMount");const ae=Kc(w,K);ae&&K.beforeEnter(S),n(S,h,_),((k=W&&W.onVnodeMounted)||ae||G)&&Le(()=>{k&>(k,$,f),ae&&K.enter(S),G&&Jt(f,null,$,"mounted")},w)},F=(f,h,_,$,w)=>{if(_&&b(f,_),$)for(let E=0;E<$.length;E++)b(f,$[E]);if(w){let E=w.subTree;if(m.NODE_ENV!=="production"&&E.patchFlag>0&&E.patchFlag&2048&&(E=ws(E.children)||E),h===E||Ii(E.type)&&(E.ssContent===h||E.ssFallback===h)){const D=w.vnode;F(f,D,D.scopeId,D.slotScopeIds,w.parent)}}},x=(f,h,_,$,w,E,D,C,S=0)=>{for(let k=S;k<f.length;k++){const W=f[k]=C?Pt(f[k]):rt(f[k]);v(null,W,h,_,$,w,E,D,C)}},M=(f,h,_,$,w,E,D)=>{const C=h.el=f.el;m.NODE_ENV!=="production"&&(C.__vnode=h);let{patchFlag:S,dynamicChildren:k,dirs:W}=h;S|=f.patchFlag&16;const A=f.props||de,K=h.props||de;let G;if(_&&Xt(_,!1),(G=K.onVnodeBeforeUpdate)&>(G,_,h,f),W&&Jt(h,f,_,"beforeUpdate"),_&&Xt(_,!0),m.NODE_ENV!=="production"&&st&&(S=0,D=!1,k=null),(A.innerHTML&&K.innerHTML==null||A.textContent&&K.textContent==null)&&c(C,""),k?(X(f.dynamicChildren,k,C,_,$,$s(h,w),E),m.NODE_ENV!=="production"&&jo(f,h)):D||Ge(f,h,C,null,_,$,$s(h,w),E,!1),S>0){if(S&16)V(C,A,K,_,w);else if(S&2&&A.class!==K.class&&r(C,"class",null,K.class,w),S&4&&r(C,"style",A.style,K.style,w),S&8){const ae=h.dynamicProps;for(let be=0;be<ae.length;be++){const pe=ae[be],Ue=A[pe],Be=K[pe];(Be!==Ue||pe==="value")&&r(C,pe,Ue,Be,w,_)}}S&1&&f.children!==h.children&&c(C,h.children)}else!D&&k==null&&V(C,A,K,_,w);((G=K.onVnodeUpdated)||W)&&Le(()=>{G&>(G,_,h,f),W&&Jt(h,f,_,"updated")},$)},X=(f,h,_,$,w,E,D)=>{for(let C=0;C<h.length;C++){const S=f[C],k=h[C],W=S.el&&(S.type===se||!Qt(S,k)||S.shapeFlag&198)?d(S.el):_;v(S,k,W,null,$,w,E,D,!0)}},V=(f,h,_,$,w)=>{if(h!==_){if(h!==de)for(const E in h)!vo(E)&&!(E in _)&&r(f,E,h[E],null,w,$);for(const E in _){if(vo(E))continue;const D=_[E],C=h[E];D!==C&&E!=="value"&&r(f,E,C,D,w,$)}"value"in _&&r(f,"value",h.value,_.value,w)}},fe=(f,h,_,$,w,E,D,C,S)=>{const k=h.el=f?f.el:l(""),W=h.anchor=f?f.anchor:l("");let{patchFlag:A,dynamicChildren:K,slotScopeIds:G}=h;m.NODE_ENV!=="production"&&(st||A&2048)&&(A=0,S=!1,K=null),G&&(C=C?C.concat(G):G),f==null?(n(k,_,$),n(W,_,$),x(h.children||[],_,W,w,E,D,C,S)):A>0&&A&64&&K&&f.dynamicChildren?(X(f.dynamicChildren,K,_,w,E,D,C),m.NODE_ENV!=="production"?jo(f,h):(h.key!=null||w&&h===w.subTree)&&jo(f,h,!0)):Ge(f,h,_,W,w,E,D,C,S)},le=(f,h,_,$,w,E,D,C,S)=>{h.slotScopeIds=C,f==null?h.shapeFlag&512?w.ctx.activate(h,_,$,D,S):U(h,_,$,w,E,D,S):ne(f,h,S)},U=(f,h,_,$,w,E,D)=>{const C=f.component=ed(f,$,w);if(m.NODE_ENV!=="production"&&C.type.__hmrId&&Aa(C),m.NODE_ENV!=="production"&&(hn(f),ho(C,"mount")),Ao(f)&&(C.ctx.renderer=Xo),m.NODE_ENV!=="production"&&ho(C,"init"),od(C,!1,D),m.NODE_ENV!=="production"&&go(C,"init"),m.NODE_ENV!=="production"&&st&&(f.el=null),C.asyncDep){if(w&&w.registerDep(C,ee,D),!f.el){const S=C.subTree=Y(Ne);R(null,S,h,_),f.placeholder=S.el}}else ee(C,f,h,_,w,E,D);m.NODE_ENV!=="production"&&(gn(),go(C,"mount"))},ne=(f,h,_)=>{const $=h.component=f.component;if(Oc(f,h,_))if($.asyncDep&&!$.asyncResolved){m.NODE_ENV!=="production"&&hn(h),Q($,h,_),m.NODE_ENV!=="production"&&gn();return}else $.next=h,$.update();else h.el=f.el,$.vnode=h},ee=(f,h,_,$,w,E,D)=>{const C=()=>{if(f.isMounted){let{next:A,bu:K,u:G,parent:ae,vnode:be}=f;{const bt=Vi(f);if(bt){A&&(A.el=be.el,Q(f,A,D)),bt.asyncDep.then(()=>{f.isUnmounted||C()});return}}let pe=A,Ue;m.NODE_ENV!=="production"&&hn(A||f.vnode),Xt(f,!1),A?(A.el=be.el,Q(f,A,D)):A=be,K&&ro(K),(Ue=A.props&&A.props.onVnodeBeforeUpdate)&>(Ue,ae,A,be),Xt(f,!0),m.NODE_ENV!=="production"&&ho(f,"render");const Be=bi(f);m.NODE_ENV!=="production"&&go(f,"render");const mt=f.subTree;f.subTree=Be,m.NODE_ENV!=="production"&&ho(f,"patch"),v(mt,Be,d(mt.el),Rn(mt),f,w,E),m.NODE_ENV!=="production"&&go(f,"patch"),A.el=Be.el,pe===null&&$c(f,Be.el),G&&Le(G,w),(Ue=A.props&&A.props.onVnodeUpdated)&&Le(()=>gt(Ue,ae,A,be),w),m.NODE_ENV!=="production"&&Dr(f),m.NODE_ENV!=="production"&&gn()}else{let A;const{el:K,props:G}=h,{bm:ae,m:be,parent:pe,root:Ue,type:Be}=f,mt=fo(h);Xt(f,!1),ae&&ro(ae),!mt&&(A=G&&G.onVnodeBeforeMount)&>(A,pe,h),Xt(f,!0);{Ue.ce&&Ue.ce._def.shadowRoot!==!1&&Ue.ce._injectChildStyle(Be),m.NODE_ENV!=="production"&&ho(f,"render");const bt=f.subTree=bi(f);m.NODE_ENV!=="production"&&go(f,"render"),m.NODE_ENV!=="production"&&ho(f,"patch"),v(null,bt,_,$,f,w,E),m.NODE_ENV!=="production"&&go(f,"patch"),h.el=bt.el}if(be&&Le(be,w),!mt&&(A=G&&G.onVnodeMounted)){const bt=h;Le(()=>gt(A,pe,bt),w)}(h.shapeFlag&256||pe&&fo(pe.vnode)&&pe.vnode.shapeFlag&256)&&f.a&&Le(f.a,w),f.isMounted=!0,m.NODE_ENV!=="production"&&Fa(f),h=_=$=null}};f.scope.on();const S=f.effect=new tr(C);f.scope.off();const k=f.update=S.run.bind(S),W=f.job=S.runIfDirty.bind(S);W.i=f,W.id=f.uid,S.scheduler=()=>bn(W),Xt(f,!0),m.NODE_ENV!=="production"&&(S.onTrack=f.rtc?A=>ro(f.rtc,A):void 0,S.onTrigger=f.rtg?A=>ro(f.rtg,A):void 0),k()},Q=(f,h,_)=>{h.component=f;const $=f.vnode.props;f.vnode=h,f.next=null,Tc(f,h.props,$,_),Rc(f,h.children,_),Qe(),Nr(f),et()},Ge=(f,h,_,$,w,E,D,C,S=!1)=>{const k=f&&f.children,W=f?f.shapeFlag:0,A=h.children,{patchFlag:K,shapeFlag:G}=h;if(K>0){if(K&128){Ft(k,A,_,$,w,E,D,C,S);return}else if(K&256){Go(k,A,_,$,w,E,D,C,S);return}}G&8?(W&16&&Yo(k,w,E),A!==k&&c(_,A)):W&16?G&16?Ft(k,A,_,$,w,E,D,C,S):Yo(k,w,E,!0):(W&8&&c(_,""),G&16&&x(A,_,$,w,E,D,C,S))},Go=(f,h,_,$,w,E,D,C,S)=>{f=f||no,h=h||no;const k=f.length,W=h.length,A=Math.min(k,W);let K;for(K=0;K<A;K++){const G=h[K]=S?Pt(h[K]):rt(h[K]);v(f[K],G,_,null,w,E,D,C,S)}k>W?Yo(f,w,E,!0,!1,A):x(h,_,$,w,E,D,C,S,A)},Ft=(f,h,_,$,w,E,D,C,S)=>{let k=0;const W=h.length;let A=f.length-1,K=W-1;for(;k<=A&&k<=K;){const G=f[k],ae=h[k]=S?Pt(h[k]):rt(h[k]);if(Qt(G,ae))v(G,ae,_,null,w,E,D,C,S);else break;k++}for(;k<=A&&k<=K;){const G=f[A],ae=h[K]=S?Pt(h[K]):rt(h[K]);if(Qt(G,ae))v(G,ae,_,null,w,E,D,C,S);else break;A--,K--}if(k>A){if(k<=K){const G=K+1,ae=G<W?h[G].el:$;for(;k<=K;)v(null,h[k]=S?Pt(h[k]):rt(h[k]),_,ae,w,E,D,C,S),k++}}else if(k>K)for(;k<=A;)Rt(f[k],w,E,!0),k++;else{const G=k,ae=k,be=new Map;for(k=ae;k<=K;k++){const Fe=h[k]=S?Pt(h[k]):rt(h[k]);Fe.key!=null&&(m.NODE_ENV!=="production"&&be.has(Fe.key)&&O("Duplicate keys found during update:",JSON.stringify(Fe.key),"Make sure keys are unique."),be.set(Fe.key,k))}let pe,Ue=0;const Be=K-ae+1;let mt=!1,bt=0;const Zo=new Array(Be);for(k=0;k<Be;k++)Zo[k]=0;for(k=G;k<=A;k++){const Fe=f[k];if(Ue>=Be){Rt(Fe,w,E,!0);continue}let _t;if(Fe.key!=null)_t=be.get(Fe.key);else for(pe=ae;pe<=K;pe++)if(Zo[pe-ae]===0&&Qt(Fe,h[pe])){_t=pe;break}_t===void 0?Rt(Fe,w,E,!0):(Zo[_t-ae]=k+1,_t>=bt?bt=_t:mt=!0,v(Fe,h[_t],_,null,w,E,D,C,S),Ue++)}const Tl=mt?zc(Zo):no;for(pe=Tl.length-1,k=Be-1;k>=0;k--){const Fe=ae+k,_t=h[Fe],Dl=h[Fe+1],Vl=Fe+1<W?Dl.el||Dl.placeholder:$;Zo[k]===0?v(null,_t,_,Vl,w,E,D,C,S):mt&&(pe<0||k!==Tl[pe]?Ct(_t,_,Vl,2):pe--)}}},Ct=(f,h,_,$,w=null)=>{const{el:E,type:D,transition:C,children:S,shapeFlag:k}=f;if(k&6){Ct(f.component.subTree,h,_,$);return}if(k&128){f.suspense.move(h,_,$);return}if(k&64){D.move(f,h,_,Xo);return}if(D===se){n(E,h,_);for(let A=0;A<S.length;A++)Ct(S[A],h,_,$);n(f.anchor,h,_);return}if(D===Fo){me(f,h,_);return}if($!==2&&k&1&&C)if($===0)C.beforeEnter(E),n(E,h,_),Le(()=>C.enter(E),w);else{const{leave:A,delayLeave:K,afterLeave:G}=C,ae=()=>{f.ctx.isUnmounted?s(E):n(E,h,_)},be=()=>{E._isLeaving&&E[Et](!0),A(E,()=>{ae(),G&&G()})};K?K(E,ae,be):be()}else n(E,h,_)},Rt=(f,h,_,$=!1,w=!1)=>{const{type:E,props:D,ref:C,children:S,dynamicChildren:k,shapeFlag:W,patchFlag:A,dirs:K,cacheIndex:G}=f;if(A===-2&&(w=!1),C!=null&&(Qe(),Vo(C,null,_,f,!0),et()),G!=null&&(h.renderCache[G]=void 0),W&256){h.ctx.deactivate(f);return}const ae=W&1&&K,be=!fo(f);let pe;if(be&&(pe=D&&D.onVnodeBeforeUnmount)&>(pe,h,f),W&6)xh(f.component,_,$);else{if(W&128){f.suspense.unmount(_,$);return}ae&&Jt(f,null,h,"beforeUnmount"),W&64?f.type.remove(f,h,_,Xo,$):k&&!k.hasOnce&&(E!==se||A>0&&A&64)?Yo(k,h,_,!1,!0):(E===se&&A&384||!w&&W&16)&&Yo(S,h,_),$&&zs(f)}(be&&(pe=D&&D.onVnodeUnmounted)||ae)&&Le(()=>{pe&>(pe,h,f),ae&&Jt(f,null,h,"unmounted")},_)},zs=f=>{const{type:h,el:_,anchor:$,transition:w}=f;if(h===se){m.NODE_ENV!=="production"&&f.patchFlag>0&&f.patchFlag&2048&&w&&!w.persisted?f.children.forEach(D=>{D.type===Ne?s(D.el):zs(D)}):yh(_,$);return}if(h===Fo){I(f);return}const E=()=>{s(_),w&&!w.persisted&&w.afterLeave&&w.afterLeave()};if(f.shapeFlag&1&&w&&!w.persisted){const{leave:D,delayLeave:C}=w,S=()=>D(_,E);C?C(f.el,E,S):S()}else E()},yh=(f,h)=>{let _;for(;f!==h;)_=p(f),s(f),f=_;s(h)},xh=(f,h,_)=>{m.NODE_ENV!=="production"&&f.type.__hmrId&&Ia(f);const{bum:$,scope:w,job:E,subTree:D,um:C,m:S,a:k}=f;Ai(S),Ai(k),$&&ro($),w.stop(),E&&(E.flags|=8,Rt(D,f,h,_)),C&&Le(C,h),Le(()=>{f.isUnmounted=!0},h),m.NODE_ENV!=="production"&&Ha(f)},Yo=(f,h,_,$=!1,w=!1,E=0)=>{for(let D=E;D<f.length;D++)Rt(f[D],h,_,$,w)},Rn=f=>{if(f.shapeFlag&6)return Rn(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const h=p(f.anchor||f.el),_=h&&h[Pr];return _?p(_):h};let Ws=!1;const Cl=(f,h,_)=>{f==null?h._vnode&&Rt(h._vnode,null,null,!0):v(h._vnode||null,f,h,null,null,null,_),h._vnode=f,Ws||(Ws=!0,Nr(),Or(),Ws=!1)},Xo={p:v,um:Rt,m:Ct,r:zs,mt:U,mc:x,pc:Ge,pbc:X,n:Rn,o:e};return{render:Cl,hydrate:void 0,createApp:bc(Cl)}}function $s({type:e,props:t},o){return o==="svg"&&e==="foreignObject"||o==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:o}function Xt({effect:e,job:t},o){o?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Kc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function jo(e,t,o=!1){const n=e.children,s=t.children;if(j(n)&&j(s))for(let r=0;r<n.length;r++){const i=n[r];let l=s[r];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=s[r]=Pt(s[r]),l.el=i.el),!o&&l.patchFlag!==-2&&jo(i,l)),l.type===Lo&&l.patchFlag!==-1&&(l.el=i.el),l.type===Ne&&!l.el&&(l.el=i.el),m.NODE_ENV!=="production"&&l.el&&(l.el.__vnode=l)}}function zc(e){const t=e.slice(),o=[0];let n,s,r,i,l;const a=e.length;for(n=0;n<a;n++){const u=e[n];if(u!==0){if(s=o[o.length-1],e[s]<u){t[n]=s,o.push(n);continue}for(r=0,i=o.length-1;r<i;)l=r+i>>1,e[o[l]]<u?r=l+1:i=l;u<e[o[r]]&&(r>0&&(t[n]=o[r-1]),o[r]=n)}}for(r=o.length,i=o[r-1];r-- >0;)o[r]=i,i=t[i];return o}function Vi(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Vi(t)}function Ai(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const Ii=e=>e.__isSuspense;function Wc(e,t){t&&t.pendingBranch?j(e)?t.effects.push(...e):t.effects.push(e):kr(e)}const se=Symbol.for("v-fgt"),Lo=Symbol.for("v-txt"),Ne=Symbol.for("v-cmt"),Fo=Symbol.for("v-stc"),Ro=[];let Ke=null;function y(e=!1){Ro.push(Ke=e?null:[])}function qc(){Ro.pop(),Ke=Ro[Ro.length-1]||null}let Ho=1;function Tn(e,t=!1){Ho+=e,e<0&&Ke&&t&&(Ke.hasOnce=!0)}function Pi(e){return e.dynamicChildren=Ho>0?Ke||no:null,qc(),Ho>0&&Ke&&Ke.push(e),e}function T(e,t,o,n,s,r){return Pi(g(e,t,o,n,s,r,!0))}function ye(e,t,o,n,s){return Pi(Y(e,t,o,n,s,!0))}function Zt(e){return e?e.__v_isVNode===!0:!1}function Qt(e,t){if(m.NODE_ENV!=="production"&&t.shapeFlag&6&&e.component){const o=_n.get(t.type);if(o&&o.has(e.component))return e.shapeFlag&=-257,t.shapeFlag&=-513,!1}return e.type===t.type&&e.key===t.key}const Jc=(...e)=>ji(...e),Mi=({key:e})=>e??null,Dn=({ref:e,ref_key:t,ref_for:o})=>(typeof e=="number"&&(e=""+e),e!=null?ve(e)||Oe(e)||z(e)?{i:$e,r:e,k:t,f:!!o}:e:null);function g(e,t=null,o=null,n=0,s=null,r=e===se?0:1,i=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Mi(t),ref:t&&Dn(t),scopeId:Ar,slotScopeIds:null,children:o,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:n,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:$e};return l?(Ss(a,o),r&128&&e.normalize(a)):o&&(a.shapeFlag|=ve(o)?8:16),m.NODE_ENV!=="production"&&a.key!==a.key&&O("VNode created with invalid key (NaN). VNode type:",a.type),Ho>0&&!i&&Ke&&(a.patchFlag>0||r&6)&&a.patchFlag!==32&&Ke.push(a),a}const Y=m.NODE_ENV!=="production"?Jc:ji;function ji(e,t=null,o=null,n=0,s=null,r=!1){if((!e||e===ei)&&(m.NODE_ENV!=="production"&&!e&&O(`Invalid vnode type when creating vnode: ${e}.`),e=Ne),Zt(e)){const l=ht(e,t,!0);return o&&Ss(l,o),Ho>0&&!r&&Ke&&(l.shapeFlag&6?Ke[Ke.indexOf(e)]=l:Ke.push(l)),l.patchFlag=-2,l}if(Ki(e)&&(e=e.__vccOpts),t){t=Gc(t);let{class:l,style:a}=t;l&&!ve(l)&&(t.class=Ee(l)),ce(a)&&(un(a)&&!j(a)&&(a=_e({},a)),t.style=yt(a))}const i=ve(e)?1:Ii(e)?128:Mr(e)?64:ce(e)?4:z(e)?2:0;return m.NODE_ENV!=="production"&&i&4&&un(e)&&(e=Z(e),O("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
|
|
8
|
+
Component that was made reactive: `,e)),g(e,t,o,n,s,i,r,!0)}function Gc(e){return e?un(e)||Ei(e)?_e({},e):e:null}function ht(e,t,o=!1,n=!1){const{props:s,ref:r,patchFlag:i,children:l,transition:a}=e,u=t?Xc(s||{},t):s,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Mi(u),ref:t&&t.ref?o&&r?j(r)?r.concat(Dn(t)):[r,Dn(t)]:Dn(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:m.NODE_ENV!=="production"&&i===-1&&j(l)?l.map(Li):l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==se?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ht(e.ssContent),ssFallback:e.ssFallback&&ht(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&n&&Do(c,a.clone(c)),c}function Li(e){const t=ht(e);return j(e.children)&&(t.children=e.children.map(Li)),t}function Je(e=" ",t=0){return Y(Lo,null,e,t)}function Yc(e,t){const o=Y(Fo,null,e);return o.staticCount=t,o}function re(e="",t=!1){return t?(y(),ye(Ne,null,e)):Y(Ne,null,e)}function rt(e){return e==null||typeof e=="boolean"?Y(Ne):j(e)?Y(se,null,e.slice()):Zt(e)?Pt(e):Y(Lo,null,String(e))}function Pt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ht(e)}function Ss(e,t){let o=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(j(t))o=16;else if(typeof t=="object")if(n&65){const s=t.default;s&&(s._c&&(s._d=!1),Ss(e,s()),s._c&&(s._d=!0));return}else{o=32;const s=t._;!s&&!Ei(t)?t._ctx=$e:s===3&&$e&&($e.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else z(t)?(t={default:t,_ctx:$e},o=32):(t=String(t),n&64?(o=16,t=[Je(t)]):o=8);e.children=t,e.shapeFlag|=o}function Xc(...e){const t={};for(let o=0;o<e.length;o++){const n=e[o];for(const s in n)if(s==="class")t.class!==n.class&&(t.class=Ee([t.class,n.class]));else if(s==="style")t.style=yt([t.style,n.style]);else if(bo(s)){const r=t[s],i=n[s];i&&r!==i&&!(j(r)&&r.includes(i))&&(t[s]=r?[].concat(r,i):i)}else s!==""&&(t[s]=n[s])}return t}function gt(e,t,o,n=null){nt(e,t,7,[o,n])}const Zc=fi();let Qc=0;function ed(e,t,o){const n=e.type,s=(t?t.appContext:e.appContext)||Zc,r={uid:Qc++,vnode:e,type:n,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Yl(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Ni(n,s),emitsOptions:mi(n,s),emit:null,emitted:null,propsDefaults:de,inheritAttrs:n.inheritAttrs,ctx:de,data:de,props:de,attrs:de,slots:de,refs:de,setupState:de,setupContext:null,suspense:o,suspenseId:o?o.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 m.NODE_ENV!=="production"?r.ctx=lc(r):r.ctx={_:r},r.root=t?t.root:r,r.emit=wc.bind(null,r),e.ce&&e.ce(r),r}let Se=null;const Cs=()=>Se||$e;let Vn,Ts;{const e=yo(),t=(o,n)=>{let s;return(s=e[o])||(s=e[o]=[]),s.push(n),r=>{s.length>1?s.forEach(i=>i(r)):s[0](r)}};Vn=t("__VUE_INSTANCE_SETTERS__",o=>Se=o),Ts=t("__VUE_SSR_SETTERS__",o=>Bo=o)}const Uo=e=>{const t=Se;return Vn(e),e.scope.on(),()=>{e.scope.off(),Vn(t)}},Fi=()=>{Se&&Se.scope.off(),Vn(null)},td=vt("slot,component");function Ds(e,{isNativeTag:t}){(td(e)||t(e))&&O("Do not use built-in or reserved HTML elements as component id: "+e)}function Ri(e){return e.vnode.shapeFlag&4}let Bo=!1;function od(e,t=!1,o=!1){t&&Ts(t);const{props:n,children:s}=e.vnode,r=Ri(e);Sc(e,n,r,t),Fc(e,s,o||t);const i=r?nd(e,t):void 0;return t&&Ts(!1),i}function nd(e,t){const o=e.type;if(m.NODE_ENV!=="production"){if(o.name&&Ds(o.name,e.appContext.config),o.components){const s=Object.keys(o.components);for(let r=0;r<s.length;r++)Ds(s[r],e.appContext.config)}if(o.directives){const s=Object.keys(o.directives);for(let r=0;r<s.length;r++)Ir(s[r])}o.compilerOptions&&sd()&&O('"compilerOptions" is only supported when using a build of Vue that includes the runtime compiler. Since you are using a runtime-only build, the options should be passed via your build tool config instead.')}e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ri),m.NODE_ENV!=="production"&&ac(e);const{setup:n}=o;if(n){Qe();const s=e.setupContext=n.length>1?id(e):null,r=Uo(e),i=ao(n,e,0,[m.NODE_ENV!=="production"?at(e.props):e.props,s]),l=Un(i);if(et(),r(),(l||e.sp)&&!fo(e)&&Jr(e),l){if(i.then(Fi,Fi),t)return i.then(a=>{Hi(e,a,t)}).catch(a=>{$o(a,e,0)});if(e.asyncDep=i,m.NODE_ENV!=="production"&&!e.suspense){const a=Ko(e,o);O(`Component <${a}>: setup function returned a promise, but no <Suspense> boundary was found in the parent component tree. A component with async setup() must be nested in a <Suspense> in order to be rendered.`)}}else Hi(e,i,t)}else Ui(e,t)}function Hi(e,t,o){z(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ce(t)?(m.NODE_ENV!=="production"&&Zt(t)&&O("setup() should not return VNodes directly - return a render function instead."),m.NODE_ENV!=="production"&&(e.devtoolsRawSetupState=t),e.setupState=yr(t),m.NODE_ENV!=="production"&&cc(e)):m.NODE_ENV!=="production"&&t!==void 0&&O(`setup() should return an object. Received: ${t===null?"null":typeof t}`),Ui(e,o)}const sd=()=>!0;function Ui(e,t,o){const n=e.type;e.render||(e.render=n.render||Ce);{const s=Uo(e);Qe();try{uc(e)}finally{et(),s()}}m.NODE_ENV!=="production"&&!n.render&&e.render===Ce&&!t&&(n.template?O('Component provided template option but runtime compilation is not supported in this build of Vue. Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".'):O("Component is missing template or render function: ",n))}const Bi=m.NODE_ENV!=="production"?{get(e,t){return Sn(),Te(e,"get",""),e[t]},set(){return O("setupContext.attrs is readonly."),!1},deleteProperty(){return O("setupContext.attrs is readonly."),!1}}:{get(e,t){return Te(e,"get",""),e[t]}};function rd(e){return new Proxy(e.slots,{get(t,o){return Te(e,"get","$slots"),t[o]}})}function id(e){const t=o=>{if(m.NODE_ENV!=="production"&&(e.exposed&&O("expose() should be called only once per setup()."),o!=null)){let n=typeof o;n==="object"&&(j(o)?n="array":Oe(o)&&(n="ref")),n!=="object"&&O(`expose() should be passed a plain object, received ${n}.`)}e.exposed=o||{}};if(m.NODE_ENV!=="production"){let o,n;return Object.freeze({get attrs(){return o||(o=new Proxy(e.attrs,Bi))},get slots(){return n||(n=rd(e))},get emit(){return(s,...r)=>e.emit(s,...r)},expose:t})}else return{attrs:new Proxy(e.attrs,Bi),slots:e.slots,emit:e.emit,expose:t}}function An(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(yr(ba(e.exposed)),{get(t,o){if(o in t)return t[o];if(o in Yt)return Yt[o](e)},has(t,o){return o in t||o in Yt}})):e.proxy}const ld=/(?:^|[-_])\w/g,ad=e=>e.replace(ld,t=>t.toUpperCase()).replace(/[-_]/g,"");function Vs(e,t=!0){return z(e)?e.displayName||e.name:e.name||t&&e.__name}function Ko(e,t,o=!1){let n=Vs(t);if(!n&&t.__file){const s=t.__file.match(/([^/\\]+)\.\w+$/);s&&(n=s[1])}if(!n&&e){const s=r=>{for(const i in r)if(r[i]===t)return i};n=s(e.components)||e.parent&&s(e.parent.type.components)||s(e.appContext.components)}return n?ad(n):o?"App":"Anonymous"}function Ki(e){return z(e)&&"__vccOpts"in e}const ie=(e,t)=>{const o=wa(e,t,Bo);if(m.NODE_ENV!=="production"){const n=Cs();n&&n.appContext.config.warnRecursiveComputed&&(o._warnRecursive=!0)}return o};function cd(e,t,o){try{Tn(-1);const n=arguments.length;return n===2?ce(t)&&!j(t)?Zt(t)?Y(e,null,[t]):Y(e,t):Y(e,null,t):(n>3?o=Array.prototype.slice.call(arguments,2):n===3&&Zt(o)&&(o=[o]),Y(e,t,o))}finally{Tn(1)}}function dd(){if(m.NODE_ENV==="production"||typeof window>"u")return;const e={style:"color:#3ba776"},t={style:"color:#1677ff"},o={style:"color:#f5222d"},n={style:"color:#eb2f96"},s={__vue_custom_formatter:!0,header(d){if(!ce(d))return null;if(d.__isVue)return["div",e,"VueInstance"];if(Oe(d)){Qe();const p=d.value;return et(),["div",{},["span",e,c(d)],"<",l(p),">"]}else{if(Vt(d))return["div",{},["span",e,Ie(d)?"ShallowReactive":"Reactive"],"<",l(d),`>${tt(d)?" (readonly)":""}`];if(tt(d))return["div",{},["span",e,Ie(d)?"ShallowReadonly":"Readonly"],"<",l(d),">"]}return null},hasBody(d){return d&&d.__isVue},body(d){if(d&&d.__isVue)return["div",{},...r(d.$)]}};function r(d){const p=[];d.type.props&&d.props&&p.push(i("props",Z(d.props))),d.setupState!==de&&p.push(i("setup",d.setupState)),d.data!==de&&p.push(i("data",Z(d.data)));const b=a(d,"computed");b&&p.push(i("computed",b));const N=a(d,"inject");return N&&p.push(i("injected",N)),p.push(["div",{},["span",{style:n.style+";opacity:0.66"},"$ (internal): "],["object",{object:d}]]),p}function i(d,p){return p=_e({},p),Object.keys(p).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},d],["div",{style:"padding-left:1.25em"},...Object.keys(p).map(b=>["div",{},["span",n,b+": "],l(p[b],!1)])]]:["span",{}]}function l(d,p=!0){return typeof d=="number"?["span",t,d]:typeof d=="string"?["span",o,JSON.stringify(d)]:typeof d=="boolean"?["span",n,d]:ce(d)?["object",{object:p?Z(d):d}]:["span",o,String(d)]}function a(d,p){const b=d.type;if(z(b))return;const N={};for(const v in d.ctx)u(b,v,p)&&(N[v]=d.ctx[v]);return N}function u(d,p,b){const N=d[b];if(j(N)&&N.includes(p)||ce(N)&&p in N||d.extends&&u(d.extends,p,b)||d.mixins&&d.mixins.some(v=>u(v,p,b)))return!0}function c(d){return Ie(d)?"ShallowRef":d.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(s):window.devtoolsFormatters=[s]}const zi="3.5.25",ze=m.NODE_ENV!=="production"?O:Ce;var Ae={};let As;const Wi=typeof window<"u"&&window.trustedTypes;if(Wi)try{As=Wi.createPolicy("vue",{createHTML:e=>e})}catch(e){Ae.NODE_ENV!=="production"&&ze(`Error creating trusted types policy: ${e}`)}const qi=As?e=>As.createHTML(e):e=>e,ud="http://www.w3.org/2000/svg",fd="http://www.w3.org/1998/Math/MathML",Ot=typeof document<"u"?document:null,Ji=Ot&&Ot.createElement("template"),pd={insert:(e,t,o)=>{t.insertBefore(e,o||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,o,n)=>{const s=t==="svg"?Ot.createElementNS(ud,e):t==="mathml"?Ot.createElementNS(fd,e):o?Ot.createElement(e,{is:o}):Ot.createElement(e);return e==="select"&&n&&n.multiple!=null&&s.setAttribute("multiple",n.multiple),s},createText:e=>Ot.createTextNode(e),createComment:e=>Ot.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ot.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,o,n,s,r){const i=o?o.previousSibling:t.lastChild;if(s&&(s===r||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),o),!(s===r||!(s=s.nextSibling)););else{Ji.innerHTML=qi(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const l=Ji.content;if(n==="svg"||n==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,o)}return[i?i.nextSibling:t.firstChild,o?o.previousSibling:t.lastChild]}},Mt="transition",zo="animation",Wo=Symbol("_vtc"),Gi={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},hd=_e({},Ur,Gi),Is=(e=>(e.displayName="Transition",e.props=hd,e))((e,{slots:t})=>cd(Ga,gd(e),t)),eo=(e,t=[])=>{j(e)?e.forEach(o=>o(...t)):e&&e(...t)},Yi=e=>e?j(e)?e.some(t=>t.length>1):e.length>1:!1;function gd(e){const t={};for(const V in e)V in Gi||(t[V]=e[V]);if(e.css===!1)return t;const{name:o="v",type:n,duration:s,enterFromClass:r=`${o}-enter-from`,enterActiveClass:i=`${o}-enter-active`,enterToClass:l=`${o}-enter-to`,appearFromClass:a=r,appearActiveClass:u=i,appearToClass:c=l,leaveFromClass:d=`${o}-leave-from`,leaveActiveClass:p=`${o}-leave-active`,leaveToClass:b=`${o}-leave-to`}=e,N=md(s),v=N&&N[0],L=N&&N[1],{onBeforeEnter:R,onEnter:H,onEnterCancelled:B,onLeave:me,onLeaveCancelled:I,onBeforeAppear:P=R,onAppear:q=H,onAppearCancelled:F=B}=t,x=(V,fe,le,U)=>{V._enterCancelled=U,to(V,fe?c:l),to(V,fe?u:i),le&&le()},M=(V,fe)=>{V._isLeaving=!1,to(V,d),to(V,b),to(V,p),fe&&fe()},X=V=>(fe,le)=>{const U=V?q:H,ne=()=>x(fe,V,le);eo(U,[fe,ne]),Xi(()=>{to(fe,V?a:r),$t(fe,V?c:l),Yi(U)||Zi(fe,n,v,ne)})};return _e(t,{onBeforeEnter(V){eo(R,[V]),$t(V,r),$t(V,i)},onBeforeAppear(V){eo(P,[V]),$t(V,a),$t(V,u)},onEnter:X(!1),onAppear:X(!0),onLeave(V,fe){V._isLeaving=!0;const le=()=>M(V,fe);$t(V,d),V._enterCancelled?($t(V,p),tl(V)):(tl(V),$t(V,p)),Xi(()=>{V._isLeaving&&(to(V,d),$t(V,b),Yi(me)||Zi(V,n,L,le))}),eo(me,[V,le])},onEnterCancelled(V){x(V,!1,void 0,!0),eo(B,[V])},onAppearCancelled(V){x(V,!0,void 0,!0),eo(F,[V])},onLeaveCancelled(V){M(V),eo(I,[V])}})}function md(e){if(e==null)return null;if(ce(e))return[Ps(e.enter),Ps(e.leave)];{const t=Ps(e);return[t,t]}}function Ps(e){const t=zn(e);return Ae.NODE_ENV!=="production"&&Ca(t,"<transition> explicit duration"),t}function $t(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.add(o)),(e[Wo]||(e[Wo]=new Set)).add(t)}function to(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const o=e[Wo];o&&(o.delete(t),o.size||(e[Wo]=void 0))}function Xi(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let bd=0;function Zi(e,t,o,n){const s=e._endId=++bd,r=()=>{s===e._endId&&n()};if(o!=null)return setTimeout(r,o);const{type:i,timeout:l,propCount:a}=_d(e,t);if(!i)return n();const u=i+"end";let c=0;const d=()=>{e.removeEventListener(u,p),r()},p=b=>{b.target===e&&++c>=a&&d()};setTimeout(()=>{c<a&&d()},l+1),e.addEventListener(u,p)}function _d(e,t){const o=window.getComputedStyle(e),n=N=>(o[N]||"").split(", "),s=n(`${Mt}Delay`),r=n(`${Mt}Duration`),i=Qi(s,r),l=n(`${zo}Delay`),a=n(`${zo}Duration`),u=Qi(l,a);let c=null,d=0,p=0;t===Mt?i>0&&(c=Mt,d=i,p=r.length):t===zo?u>0&&(c=zo,d=u,p=a.length):(d=Math.max(i,u),c=d>0?i>u?Mt:zo:null,p=c?c===Mt?r.length:a.length:0);const b=c===Mt&&/\b(?:transform|all)(?:,|$)/.test(n(`${Mt}Property`).toString());return{type:c,timeout:d,propCount:p,hasTransform:b}}function Qi(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((o,n)=>el(o)+el(e[n])))}function el(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function tl(e){return(e?e.ownerDocument:document).body.offsetHeight}function vd(e,t,o){const n=e[Wo];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):o?e.setAttribute("class",t):e.className=t}const In=Symbol("_vod"),ol=Symbol("_vsh"),yd={name:"show",beforeMount(e,{value:t},{transition:o}){e[In]=e.style.display==="none"?"":e.style.display,o&&t?o.beforeEnter(e):qo(e,t)},mounted(e,{value:t},{transition:o}){o&&t&&o.enter(e)},updated(e,{value:t,oldValue:o},{transition:n}){!t!=!o&&(n?t?(n.beforeEnter(e),qo(e,!0),n.enter(e)):n.leave(e,()=>{qo(e,!1)}):qo(e,t))},beforeUnmount(e,{value:t}){qo(e,t)}};function qo(e,t){e.style.display=t?e[In]:"none",e[ol]=!t}const xd=Symbol(Ae.NODE_ENV!=="production"?"CSS_VAR_TEXT":""),wd=/(?:^|;)\s*display\s*:/;function Ed(e,t,o){const n=e.style,s=ve(o);let r=!1;if(o&&!s){if(t)if(ve(t))for(const i of t.split(";")){const l=i.slice(0,i.indexOf(":")).trim();o[l]==null&&Pn(n,l,"")}else for(const i in t)o[i]==null&&Pn(n,i,"");for(const i in o)i==="display"&&(r=!0),Pn(n,i,o[i])}else if(s){if(t!==o){const i=n[xd];i&&(o+=";"+i),n.cssText=o,r=wd.test(o)}}else t&&e.removeAttribute("style");In in e&&(e[In]=r?n.display:"",e[ol]&&(n.display="none"))}const kd=/[^\\];\s*$/,nl=/\s*!important$/;function Pn(e,t,o){if(j(o))o.forEach(n=>Pn(e,t,n));else if(o==null&&(o=""),Ae.NODE_ENV!=="production"&&kd.test(o)&&ze(`Unexpected semicolon at the end of '${t}' style value: '${o}'`),t.startsWith("--"))e.setProperty(t,o);else{const n=Nd(e,t);nl.test(o)?e.setProperty(Re(n),o.replace(nl,""),"important"):e[n]=o}}const sl=["Webkit","Moz","ms"],Ms={};function Nd(e,t){const o=Ms[t];if(o)return o;let n=Ve(t);if(n!=="filter"&&n in e)return Ms[t]=n;n=Ut(n);for(let s=0;s<sl.length;s++){const r=sl[s]+n;if(r in e)return Ms[t]=r}return t}const rl="http://www.w3.org/1999/xlink";function il(e,t,o,n,s,r=Jl(t)){n&&t.startsWith("xlink:")?o==null?e.removeAttributeNS(rl,t.slice(6,t.length)):e.setAttributeNS(rl,t,o):o==null||r&&!Zs(o)?e.removeAttribute(t):e.setAttribute(t,r?"":Ye(o)?String(o):o)}function ll(e,t,o,n,s){if(t==="innerHTML"||t==="textContent"){o!=null&&(e[t]=t==="innerHTML"?qi(o):o);return}const r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){const l=r==="OPTION"?e.getAttribute("value")||"":e.value,a=o==null?e.type==="checkbox"?"on":"":String(o);(l!==a||!("_value"in e))&&(e.value=a),o==null&&e.removeAttribute(t),e._value=o;return}let i=!1;if(o===""||o==null){const l=typeof e[t];l==="boolean"?o=Zs(o):o==null&&l==="string"?(o="",i=!0):l==="number"&&(o=0,i=!0)}try{e[t]=o}catch(l){Ae.NODE_ENV!=="production"&&!i&&ze(`Failed setting prop "${t}" on <${r.toLowerCase()}>: value ${o} is invalid.`,l)}i&&e.removeAttribute(s||t)}function jt(e,t,o,n){e.addEventListener(t,o,n)}function Od(e,t,o,n){e.removeEventListener(t,o,n)}const al=Symbol("_vei");function $d(e,t,o,n,s=null){const r=e[al]||(e[al]={}),i=r[t];if(n&&i)i.value=Ae.NODE_ENV!=="production"?dl(n,t):n;else{const[l,a]=Sd(t);if(n){const u=r[t]=Dd(Ae.NODE_ENV!=="production"?dl(n,t):n,s);jt(e,l,u,a)}else i&&(Od(e,l,i,a),r[t]=void 0)}}const cl=/(?:Once|Passive|Capture)$/;function Sd(e){let t;if(cl.test(e)){t={};let n;for(;n=e.match(cl);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Re(e.slice(2)),t]}let js=0;const Cd=Promise.resolve(),Td=()=>js||(Cd.then(()=>js=0),js=Date.now());function Dd(e,t){const o=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=o.attached)return;nt(Vd(n,o.value),t,5,[n])};return o.value=e,o.attached=Td(),o}function dl(e,t){return z(e)||j(e)?e:(ze(`Wrong type passed as event handler to ${t} - did you forget @ or : in front of your prop?
|
|
9
|
+
Expected function or array of functions, received type ${typeof e}.`),Ce)}function Vd(e,t){if(j(t)){const o=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{o.call(e),e._stopped=!0},t.map(n=>s=>!s._stopped&&n&&n(s))}else return t}const ul=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ad=(e,t,o,n,s,r)=>{const i=s==="svg";t==="class"?vd(e,n,i):t==="style"?Ed(e,o,n):bo(t)?Qo(t)||$d(e,t,o,n,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Id(e,t,n,i))?(ll(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&il(e,t,n,i,r,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!ve(n))?ll(e,Ve(t),n,r,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),il(e,t,n,i))};function Id(e,t,o,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&ul(t)&&z(o));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return ul(t)&&ve(o)?!1:t in e}const fl={};function Pd(e,t,o){let n=ke(e,t);en(n)&&(n=_e({},n,t));class s extends Ls{constructor(i){super(n,i,o)}}return s.def=n,s}const Md=typeof HTMLElement<"u"?HTMLElement:class{};class Ls extends Md{constructor(t,o={},n=xl){super(),this._def=t,this._props=o,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&n!==xl?this._root=this.shadowRoot:(Ae.NODE_ENV!=="production"&&this.shadowRoot&&ze("Custom element has pre-rendered declarative shadow root but is not defined as hydratable. Use `defineSSRCustomElement`."),t.shadowRoot!==!1?(this.attachShadow(_e({},t.shadowRootOptions,{mode:"open"})),this._root=this.shadowRoot):this._root=this)}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.parentNode||t.host);)if(t instanceof Ls){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(t=this._parent){t&&(this._instance.parent=t._instance,this._inheritParentContext(t))}_inheritParentContext(t=this._parent){t&&this._app&&Object.setPrototypeOf(this._app._context.provides,t._instance.provides)}disconnectedCallback(){this._connected=!1,dt(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(t){for(const o of t)this._setAttr(o.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let n=0;n<this.attributes.length;n++)this._setAttr(this.attributes[n].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});const t=(n,s=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:r,styles:i}=n;let l;if(r&&!j(r))for(const a in r){const u=r[a];(u===Number||u&&u.type===Number)&&(a in this._props&&(this._props[a]=zn(this._props[a])),(l||(l=Object.create(null)))[Ve(a)]=!0)}this._numberProps=l,this._resolveProps(n),this.shadowRoot?this._applyStyles(i):Ae.NODE_ENV!=="production"&&i&&ze("Custom element style injection is not supported when using shadowRoot: false"),this._mount(n)},o=this._def.__asyncLoader;o?this._pendingResolve=o().then(n=>{n.configureApp=this._def.configureApp,t(this._def=n,!0)}):t(this._def)}_mount(t){Ae.NODE_ENV!=="production"&&!t.name&&(t.name="VueElement"),this._app=this._createApp(t),this._inheritParentContext(),t.configureApp&&t.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const o=this._instance&&this._instance.exposed;if(o)for(const n in o)oe(this,n)?Ae.NODE_ENV!=="production"&&ze(`Exposed property "${n}" already exists on custom element.`):Object.defineProperty(this,n,{get:()=>ge(o[n])})}_resolveProps(t){const{props:o}=t,n=j(o)?o:Object.keys(o||{});for(const s of Object.keys(this))s[0]!=="_"&&n.includes(s)&&this._setProp(s,this[s]);for(const s of n.map(Ve))Object.defineProperty(this,s,{get(){return this._getProp(s)},set(r){this._setProp(s,r,!0,!this._patching)}})}_setAttr(t){if(t.startsWith("data-v-"))return;const o=this.hasAttribute(t);let n=o?this.getAttribute(t):fl;const s=Ve(t);o&&this._numberProps&&this._numberProps[s]&&(n=zn(n)),this._setProp(s,n,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,o,n=!0,s=!1){if(o!==this._props[t]&&(this._dirty=!0,o===fl?delete this._props[t]:(this._props[t]=o,t==="key"&&this._app&&(this._app._ceVNode.key=o)),s&&this._instance&&this._update(),n)){const r=this._ob;r&&(this._processMutations(r.takeRecords()),r.disconnect()),o===!0?this.setAttribute(Re(t),""):typeof o=="string"||typeof o=="number"?this.setAttribute(Re(t),o+""):o||this.removeAttribute(Re(t)),r&&r.observe(this,{attributes:!0})}}_update(){const t=this._createVNode();this._app&&(t.appContext=this._app._context),Kd(t,this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const o=Y(this._def,_e(t,this._props));return this._instance||(o.ce=n=>{this._instance=n,n.ce=this,n.isCE=!0,Ae.NODE_ENV!=="production"&&(n.ceReload=r=>{this._styles&&(this._styles.forEach(i=>this._root.removeChild(i)),this._styles.length=0),this._applyStyles(r),this._instance=null,this._update()});const s=(r,i)=>{this.dispatchEvent(new CustomEvent(r,en(i[0])?_e({detail:i},i[0]):{detail:i}))};n.emit=(r,...i)=>{s(r,i),Re(r)!==r&&s(Re(r),i)},this._setParent()}),o}_applyStyles(t,o){if(!t)return;if(o){if(o===this._def||this._styleChildren.has(o))return;this._styleChildren.add(o)}const n=this._nonce;for(let s=t.length-1;s>=0;s--){const r=document.createElement("style");if(n&&r.setAttribute("nonce",n),r.textContent=t[s],this.shadowRoot.prepend(r),Ae.NODE_ENV!=="production")if(o){if(o.__hmrId){this._childStyles||(this._childStyles=new Map);let i=this._childStyles.get(o.__hmrId);i||this._childStyles.set(o.__hmrId,i=[]),i.push(r)}}else(this._styles||(this._styles=[])).push(r)}}_parseSlots(){const t=this._slots={};let o;for(;o=this.firstChild;){const n=o.nodeType===1&&o.getAttribute("slot")||"default";(t[n]||(t[n]=[])).push(o),this.removeChild(o)}}_renderSlots(){const t=this._getSlots(),o=this._instance.type.__scopeId;for(let n=0;n<t.length;n++){const s=t[n],r=s.getAttribute("name")||"default",i=this._slots[r],l=s.parentNode;if(i)for(const a of i){if(o&&a.nodeType===1){const u=o+"-s",c=document.createTreeWalker(a,1);a.setAttribute(u,"");let d;for(;d=c.nextNode();)d.setAttribute(u,"")}l.insertBefore(a,s)}else for(;s.firstChild;)l.insertBefore(s.firstChild,s);l.removeChild(s)}}_getSlots(){const t=[this];this._teleportTargets&&t.push(...this._teleportTargets);const o=new Set;for(const n of t){const s=n.querySelectorAll("slot");for(let r=0;r<s.length;r++)o.add(s[r])}return Array.from(o)}_injectChildStyle(t){this._applyStyles(t.styles,t)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_removeChildStyle(t){if(Ae.NODE_ENV!=="production"&&(this._styleChildren.delete(t),this._childStyles&&t.__hmrId)){const o=this._childStyles.get(t.__hmrId);o&&(o.forEach(n=>this._root.removeChild(n)),o.length=0)}}}const mo=e=>{const t=e.props["onUpdate:modelValue"]||!1;return j(t)?o=>ro(t,o):t};function jd(e){e.target.composing=!0}function pl(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const St=Symbol("_assign");function hl(e,t,o){return t&&(e=e.trim()),o&&(e=nn(e)),e}const Mn={created(e,{modifiers:{lazy:t,trim:o,number:n}},s){e[St]=mo(s);const r=n||s.props&&s.props.type==="number";jt(e,t?"change":"input",i=>{i.target.composing||e[St](hl(e.value,o,r))}),(o||r)&&jt(e,"change",()=>{e.value=hl(e.value,o,r)}),t||(jt(e,"compositionstart",jd),jt(e,"compositionend",pl),jt(e,"change",pl))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:o,modifiers:{lazy:n,trim:s,number:r}},i){if(e[St]=mo(i),e.composing)return;const l=(r||e.type==="number")&&!/^0\d/.test(e.value)?nn(e.value):e.value,a=t??"";l!==a&&(document.activeElement===e&&e.type!=="range"&&(n&&t===o||s&&e.value.trim()===a)||(e.value=a))}},Ld={deep:!0,created(e,t,o){e[St]=mo(o),jt(e,"change",()=>{const n=e._modelValue,s=Jo(e),r=e.checked,i=e[St];if(j(n)){const l=Wn(n,s),a=l!==-1;if(r&&!a)i(n.concat(s));else if(!r&&a){const u=[...n];u.splice(l,1),i(u)}}else if(so(n)){const l=new Set(n);r?l.add(s):l.delete(s),i(l)}else i(bl(e,r))})},mounted:gl,beforeUpdate(e,t,o){e[St]=mo(o),gl(e,t,o)}};function gl(e,{value:t,oldValue:o},n){e._modelValue=t;let s;if(j(t))s=Wn(t,n.props.value)>-1;else if(so(t))s=t.has(n.props.value);else{if(t===o)return;s=xo(t,bl(e,!0))}e.checked!==s&&(e.checked=s)}const jn={deep:!0,created(e,{value:t,modifiers:{number:o}},n){const s=so(t);jt(e,"change",()=>{const r=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>o?nn(Jo(i)):Jo(i));e[St](e.multiple?s?new Set(r):r:r[0]),e._assigning=!0,dt(()=>{e._assigning=!1})}),e[St]=mo(n)},mounted(e,{value:t}){ml(e,t)},beforeUpdate(e,t,o){e[St]=mo(o)},updated(e,{value:t}){e._assigning||ml(e,t)}};function ml(e,t){const o=e.multiple,n=j(t);if(o&&!n&&!so(t)){Ae.NODE_ENV!=="production"&&ze(`<select multiple v-model> expects an Array or Set value for its binding, but got ${Object.prototype.toString.call(t).slice(8,-1)}.`);return}for(let s=0,r=e.options.length;s<r;s++){const i=e.options[s],l=Jo(i);if(o)if(n){const a=typeof l;a==="string"||a==="number"?i.selected=t.some(u=>String(u)===String(l)):i.selected=Wn(t,l)>-1}else i.selected=t.has(l);else if(xo(Jo(i),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!o&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}function Jo(e){return"_value"in e?e._value:e.value}function bl(e,t){const o=t?"_trueValue":"_falseValue";return o in e?e[o]:t}const Fd=["ctrl","shift","alt","meta"],Rd={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)=>Fd.some(o=>e[`${o}Key`]&&!t.includes(o))},_l=(e,t)=>{const o=e._withMods||(e._withMods={}),n=t.join(".");return o[n]||(o[n]=((s,...r)=>{for(let i=0;i<t.length;i++){const l=Rd[t[i]];if(l&&l(s,t))return}return e(s,...r)}))},Hd={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Ud=(e,t)=>{const o=e._withKeys||(e._withKeys={}),n=t.join(".");return o[n]||(o[n]=(s=>{if(!("key"in s))return;const r=Re(s.key);if(t.some(i=>i===r||Hd[i]===r))return e(s)}))},Bd=_e({patchProp:Ad},pd);let vl;function yl(){return vl||(vl=Uc(Bd))}const Kd=((...e)=>{yl().render(...e)}),xl=((...e)=>{const t=yl().createApp(...e);Ae.NODE_ENV!=="production"&&(Wd(t),qd(t));const{mount:o}=t;return t.mount=n=>{const s=Jd(n);if(!s)return;const r=t._component;!z(r)&&!r.render&&!r.template&&(r.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const i=o(s,!1,zd(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),i},t});function zd(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Wd(e){Object.defineProperty(e.config,"isNativeTag",{value:t=>zl(t)||Wl(t)||ql(t),writable:!1})}function qd(e){{const t=e.config.isCustomElement;Object.defineProperty(e.config,"isCustomElement",{get(){return t},set(){ze("The `isCustomElement` config option is deprecated. Use `compilerOptions.isCustomElement` instead.")}});const o=e.config.compilerOptions,n='The `compilerOptions` config option is only respected when using a build of Vue.js that includes the runtime compiler (aka "full build"). Since you are using the runtime-only build, `compilerOptions` must be passed to `@vue/compiler-dom` in the build setup instead.\n- For vue-loader: pass it via vue-loader\'s `compilerOptions` loader option.\n- For vue-cli: see https://cli.vuejs.org/guide/webpack.html#modifying-options-of-a-loader\n- For vite: pass it via @vitejs/plugin-vue options. See https://github.com/vitejs/vite-plugin-vue/tree/main/packages/plugin-vue#example-for-passing-options-to-vuecompiler-sfc';Object.defineProperty(e.config,"compilerOptions",{get(){return ze(n),o},set(){ze(n)}})}}function Jd(e){if(ve(e)){const t=document.querySelector(e);return Ae.NODE_ENV!=="production"&&!t&&ze(`Failed to mount app: mount target selector "${e}" returned null.`),t}return Ae.NODE_ENV!=="production"&&window.ShadowRoot&&e instanceof window.ShadowRoot&&e.mode==="closed"&&ze('mounting on a ShadowRoot with `{mode: "closed"}` may lead to unpredictable bugs'),e}var Gd={};function Yd(){dd()}Gd.NODE_ENV!=="production"&&Yd();const Xd=".icon[data-v-cb601f5b]{width:1em;height:1em;display:inline-block;vertical-align:middle}",we=(e,t)=>{const o=e.__vccOpts||e;for(const[n,s]of t)o[n]=s;return o},Zd={},Qd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"icon"};function eu(e,t){return y(),T("svg",Qd,[...t[0]||(t[0]=[g("circle",{cx:"12",cy:"12",r:"10"},null,-1),g("line",{x1:"2",y1:"12",x2:"22",y2:"12"},null,-1),g("path",{d:"M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"},null,-1)])])}const Fs=we(Zd,[["render",eu],["styles",[Xd]],["__scopeId","data-v-cb601f5b"]]),tu=".icon[data-v-222b9c4f]{width:1em;height:1em;display:inline-block;vertical-align:middle}",ou={},nu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"icon"};function su(e,t){return y(),T("svg",nu,[...t[0]||(t[0]=[g("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"},null,-1),g("line",{x1:"9",y1:"3",x2:"9",y2:"21"},null,-1),g("line",{x1:"3",y1:"9",x2:"21",y2:"9"},null,-1)])])}const wl=we(ou,[["render",su],["styles",[tu]],["__scopeId","data-v-222b9c4f"]]),ru=".icon[data-v-35100ed2]{width:1em;height:1em;display:inline-block;vertical-align:middle}",iu={},lu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"icon"};function au(e,t){return y(),T("svg",lu,[...t[0]||(t[0]=[g("circle",{cx:"12",cy:"12",r:"3"},null,-1),g("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"},null,-1)])])}const El=we(iu,[["render",au],["styles",[ru]],["__scopeId","data-v-35100ed2"]]),cu={class:"loader-container"},du={class:"loader"},uu={class:"loader-text"},Rs=we(ke({__name:"Loader",props:{message:{default:"Loading...",type:String},size:{default:"md",type:String}},setup(e){return(t,o)=>(y(),T("div",cu,[g("div",du,[o[0]||(o[0]=g("div",{class:"loader-circle"},null,-1)),g("div",uu,J(e.message),1)])]))}}),[["styles",[".loader-container[data-v-698edd61]{display:flex;justify-content:center;align-items:center;min-height:100px;padding:20px}.loader[data-v-698edd61]{text-align:center}.loader-circle[data-v-698edd61]{display:inline-block;width:40px;height:40px;border:4px solid #f3f3f3;border-radius:50%;border-top:4px solid #3498db;animation:spin-698edd61 1s linear infinite;margin-bottom:8px;transform-origin:center}.loader-text[data-v-698edd61]{color:#666;font-size:14px}@keyframes spin-698edd61{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]],["__scopeId","data-v-698edd61"]]),fu={class:"tabs"},pu=["onClick"],hu={key:0,class:"tab-icon"},gu=["innerHTML"],mu={class:"tab-label"},bu=we(ke({__name:"Tabs",props:{modelValue:{type:String},tabs:{type:Array}},emits:["update:modelValue"],setup(e,{emit:t}){const o=e,n=t,s=te(o.modelValue);return De(s,r=>{n("update:modelValue",r)}),(r,i)=>(y(),T("div",fu,[(y(!0),T(se,null,Me(e.tabs,l=>(y(),T("button",{key:l.value,class:Ee(["tab",{active:s.value===l.value}]),onClick:a=>s.value=l.value},[l.icon?(y(),T("span",hu,[typeof l.icon!="string"?(y(),ye(ti(typeof l.icon=="string"?"span":l.icon),{key:0})):(y(),T("span",{key:1,innerHTML:l.icon},null,8,gu))])):re("",!0),g("span",mu,J(l.label),1)],10,pu))),128))]))}}),[["styles",['@reference "tailwindcss";.tabs[data-v-ee3b4a90]{@apply flex border-b border-slate-200 bg-white sticky top-0 z-10;}.tab[data-v-ee3b4a90]{@apply flex items-center gap-2 px-4 py-2 text-sm font-medium text-slate-600 border-b-2 border-transparent transition-all duration-200 hover:text-slate-800 hover:bg-slate-50;}.tab.active[data-v-ee3b4a90]{@apply text-blue-600 border-blue-500 bg-blue-50;}.tab-icon[data-v-ee3b4a90]{@apply text-base flex items-center;width:16px;height:16px}.tab-icon[data-v-ee3b4a90] svg{width:100%;height:100%}.tab-label[data-v-ee3b4a90]{@apply whitespace-nowrap;}']],["__scopeId","data-v-ee3b4a90"]]),kl=Symbol("i18n-state");function _u(){const e=te(!0),t=te(""),o=te({}),n=te({}),s=te({}),r=te(null),i=b=>{r.value=b},l=b=>{const N=b.replace(/^\/+/,"").replace(/\\/g,"/");t.value=b;let v=o.value[N];v||(v=o.value[b]),!v&&b.startsWith("/")&&(v=o.value[b.slice(1)]),v?s.value={...v}:(console.warn("[i18n-state] No content found for file:",b,"or normalized:",N),s.value={})},a=async()=>{const b=new Blob([JSON.stringify(s.value,null,2)],{type:"application/json"}),N=URL.createObjectURL(b),v=document.createElement("a");v.href=N,v.download="translations.json",v.click(),URL.revokeObjectURL(N)},u=b=>{const N=b.target;if(N.files&&N.files.length>0){const v=N.files[0];if(v){const L=new FileReader;L.onload=R=>{try{s.value=JSON.parse(R.target?.result)}catch{console.error("Invalid JSON file")}},L.readAsText(v)}}},c=()=>{const b=n.value.defaultLocale;if(!b)return{};const L=(t.value.replace(/^\/+/,"").replace(/\\/g,"/").split("/").pop()??"").replace(/^[^.]*\./,`${b}.`);let R=o.value[L];if(R||(R=o.value[`/${L}`]),!R){const H=Object.keys(o.value).find(B=>B.includes(`${b}.json`)||B.endsWith(`/${b}.json`));H&&(R=o.value[H])}return R??{}},d=async()=>{if(!r.value){console.warn("[i18n-devtools] Bridge not ready for init"),e.value=!1;return}try{e.value=!0;const[b,N]=await Promise.all([r.value.getLocalesAndTranslations(),r.value.getConfigs()]);o.value=b,n.value=N,r.value.onLocalesUpdate(v=>{o.value=v,t.value&&o.value[t.value]&&(s.value={...o.value[t.value]})})}catch(b){console.error("[i18n-devtools] Failed to initialize:",b),e.value=!1}finally{e.value=!1,console.log("[i18n-devtools] Initialization complete")}},p=async()=>{if(!(!r.value||!t.value||!s.value))try{await r.value.saveTranslation(t.value,s.value),o.value[t.value]={...s.value}}catch(b){throw console.error("Failed to save translation:",b),b}};return{isLoading:e,selectedFile:t,locales:o,configs:n,selectedFileContent:s,bridge:cn(r),setBridge:i,init:d,handleFileSelected:l,exportTranslations:a,importTranslations:u,getDefaultLocaleTranslation:c,saveCurrent:p}}function Ln(){const e=Po(kl);if(!e)throw new Error("I18n state not provided. Make sure to use createI18nState() and provide it in the root component.");return e}const vu={class:"config-card"},yu={class:"config-card__header"},xu={class:"config-card__icon"},wu={key:0},Eu={class:"config-card__title"},ku={class:"config-card__content"},Hs=we(ke({__name:"ConfigCard",props:{title:{type:String},icon:{type:String}},setup(e){return(t,o)=>(y(),T("div",vu,[g("div",yu,[g("span",xu,[pt(t.$slots,"icon",{},()=>[e.icon?(y(),T("span",wu,J(e.icon),1)):re("",!0)])]),g("h3",Eu,J(e.title),1)]),g("div",ku,[pt(t.$slots,"default",{},void 0)])]))}}),[["styles",['@reference "tailwindcss";.config-card[data-v-3db26d7b]{@apply rounded-lg shadow-xs border border-slate-200 overflow-hidden bg-white;}.config-card__header[data-v-3db26d7b]{@apply flex items-center p-4 pb-3 border-b border-slate-100 bg-slate-50;}.config-card__icon[data-v-3db26d7b]{@apply text-lg mr-2 flex items-center;}.config-card__title[data-v-3db26d7b]{@apply text-lg font-semibold text-slate-800;}.config-card__content[data-v-3db26d7b]{@apply p-4;}']],["__scopeId","data-v-3db26d7b"]]),Nu={class:"status-indicator"},Us=we(ke({__name:"StatusIndicator",props:{status:{type:String},label:{type:String},size:{default:"md",type:String}},setup(e){const t=e,o=ie(()=>{const s="status-indicator__dot",r=`status-indicator__dot--${t.size}`;switch(t.status){case"active":case"enabled":case"success":return`${s} ${r} status-indicator__dot--success`;case"inactive":case"disabled":return`${s} ${r} status-indicator__dot--disabled`;case"warning":return`${s} ${r} status-indicator__dot--warning`;case"error":return`${s} ${r} status-indicator__dot--error`;case"info":return`${s} ${r} status-indicator__dot--info`;default:return`${s} ${r} status-indicator__dot--default`}}),n=ie(()=>{switch(t.status){case"active":case"enabled":case"success":return"text-green-700";case"inactive":case"disabled":return"text-red-700";case"warning":return"text-yellow-700";case"error":return"text-red-700";case"info":return"text-blue-700";default:return"text-slate-700"}});return(s,r)=>(y(),T("div",Nu,[g("div",{class:Ee(["status-indicator__dot",o.value])},null,2),g("span",{class:Ee(["status-indicator__text",n.value])},J(e.label),3)]))}}),[["styles",['@reference "tailwindcss";.status-indicator[data-v-2b2d1e70]{@apply flex items-center gap-2;}.status-indicator__dot[data-v-2b2d1e70]{@apply rounded-full transition-all duration-200;}.status-indicator__dot--sm[data-v-2b2d1e70]{@apply w-2 h-2;}.status-indicator__dot--md[data-v-2b2d1e70]{@apply w-3 h-3;}.status-indicator__dot--lg[data-v-2b2d1e70]{@apply w-4 h-4;}.status-indicator__dot--success[data-v-2b2d1e70]{@apply bg-green-500;box-shadow:0 0 0 2px #22c55e33}.status-indicator__dot--disabled[data-v-2b2d1e70]{@apply bg-red-500;box-shadow:0 0 0 2px #ef444433}.status-indicator__dot--warning[data-v-2b2d1e70]{@apply bg-yellow-500;box-shadow:0 0 0 2px #eab30833}.status-indicator__dot--error[data-v-2b2d1e70]{@apply bg-red-500;box-shadow:0 0 0 2px #ef444433}.status-indicator__dot--info[data-v-2b2d1e70]{@apply bg-blue-500;box-shadow:0 0 0 2px #3b82f633}.status-indicator__dot--default[data-v-2b2d1e70]{@apply bg-slate-500;box-shadow:0 0 0 2px #64748b33}.status-indicator__text[data-v-2b2d1e70]{@apply text-sm font-medium;}']],["__scopeId","data-v-2b2d1e70"]]),Ou={class:"locale-table-container"},$u={class:"locale-table-wrapper"},Su={class:"locale-table"},Cu={class:"locale-table__header"},Tu={class:"header-content"},Du={class:"header-icon"},Vu={key:1},Au={class:"header-text"},Iu={class:"locale-table__body"},Pu={class:"locale-table__cell"},Mu={class:"locale-code"},ju={class:"locale-code__text"},Lu={class:"locale-table__cell"},Fu={class:"locale-name"},Ru={class:"locale-table__cell"},Hu={class:"locale-iso"},Uu={class:"locale-table__cell"},Bu={class:"direction-indicator"},Ku={class:"locale-table__cell"},zu={class:"base-url"},Wu={class:"locale-table__cell"},qu=we(ke({__name:"LocaleTable",props:{locales:{type:Array}},setup(e){const t=[{key:"code",label:"Code",icon:"🏷️"},{key:"name",label:"Display Name",icon:"📝"},{key:"iso",label:"ISO Code",iconComponent:Fs},{key:"dir",label:"Direction",icon:"↔️"},{key:"baseUrl",label:"Base URL",icon:"🔗"},{key:"status",label:"Status",icon:"⚡"}];return(o,n)=>(y(),T("div",Ou,[g("div",$u,[g("table",Su,[g("thead",Cu,[g("tr",null,[(y(),T(se,null,Me(t,s=>g("th",{key:s.key,class:"locale-table__header-cell"},[g("div",Tu,[g("span",Du,[s.iconComponent?(y(),ye(ti(s.iconComponent),{key:0})):(y(),T("span",Vu,J(s.icon),1))]),g("span",Au,J(s.label),1)])])),64))])]),g("tbody",Iu,[(y(!0),T(se,null,Me(e.locales,s=>(y(),T("tr",{key:s.code,class:"locale-table__row"},[g("td",Pu,[g("div",Mu,[g("span",ju,J(s.code),1)])]),g("td",Lu,[g("span",Fu,J(s.displayName||"—"),1)]),g("td",Ru,[g("span",Hu,J(s.iso||"—"),1)]),g("td",Uu,[g("div",Bu,[g("span",{class:Ee(["direction-badge",`direction-badge--${s.dir||"ltr"}`])},J((s.dir||"ltr").toUpperCase()),3)])]),g("td",Ku,[g("span",zu,J(s.baseUrl||"—"),1)]),g("td",Wu,[Y(Us,{status:s.disabled?"disabled":"active",label:s.disabled?"Disabled":"Active",size:"sm"},null,8,["status","label"])])]))),128))])])])]))}}),[["styles",['@reference "tailwindcss";.locale-table-container[data-v-db56cefc]{@apply border rounded-xl overflow-hidden shadow-xs bg-white;}.locale-table-wrapper[data-v-db56cefc]{@apply overflow-x-auto;}.locale-table[data-v-db56cefc]{@apply w-full border-collapse;}.locale-table__header[data-v-db56cefc]{@apply bg-gradient-to-r from-slate-50 to-blue-50;}.locale-table__header-cell[data-v-db56cefc]{@apply px-4 py-4 text-left;}.header-content[data-v-db56cefc]{@apply flex items-center gap-2;}.header-icon[data-v-db56cefc]{@apply text-lg flex items-center;}.header-text[data-v-db56cefc]{@apply text-sm font-semibold text-slate-700;}.locale-table__row[data-v-db56cefc]{@apply border-t border-slate-100 transition-colors duration-200 hover:bg-slate-50;}.locale-table__cell[data-v-db56cefc]{@apply px-4 py-4 text-sm;}.locale-code[data-v-db56cefc]{@apply inline-flex items-center;}.locale-code__text[data-v-db56cefc]{@apply font-mono text-sm px-3 py-1 bg-blue-50 text-blue-700 rounded-lg border border-blue-200;}.locale-name[data-v-db56cefc]{@apply text-slate-700 font-medium;}.locale-iso[data-v-db56cefc]{@apply text-slate-600 font-mono text-xs px-2 py-1 bg-slate-100 rounded-sm;}.direction-indicator[data-v-db56cefc]{@apply flex items-center;}.direction-badge[data-v-db56cefc]{@apply px-2 py-1 rounded-full text-xs font-medium;}.direction-badge--ltr[data-v-db56cefc]{@apply bg-purple-100 text-purple-800;}.direction-badge--rtl[data-v-db56cefc]{@apply bg-orange-100 text-orange-800;}.base-url[data-v-db56cefc]{@apply text-slate-600 font-mono text-xs;}.locale-table__row[data-v-db56cefc]{animation:slideInLeft-db56cefc .3s ease-out}@keyframes slideInLeft-db56cefc{0%{opacity:0;transform:translate(-20px)}to{opacity:1;transform:translate(0)}}.locale-table__row[data-v-db56cefc]:nth-child(1){animation-delay:.1s}.locale-table__row[data-v-db56cefc]:nth-child(2){animation-delay:.2s}.locale-table__row[data-v-db56cefc]:nth-child(3){animation-delay:.3s}.locale-table__row[data-v-db56cefc]:nth-child(4){animation-delay:.4s}.locale-table__row[data-v-db56cefc]:nth-child(5){animation-delay:.5s}']],["__scopeId","data-v-db56cefc"]]),Ju={class:"config-view"},Gu={key:1,class:"space-y-6"},Yu={class:"settings-grid"},Xu={class:"config-row"},Zu={class:"config-value"},Qu={class:"config-row"},ef={class:"config-value capitalize"},tf={class:"config-row"},of={class:"config-value"},nf={class:"config-row"},sf={class:"settings-grid"},rf={class:"config-row"},lf={class:"config-row"},af={class:"config-value font-mono text-sm"},cf={class:"config-row"},df={class:"config-value font-mono text-sm text-blue-600"},uf={class:"config-row"},ff={class:"config-value font-mono text-sm"},pf=we(ke({__name:"ConfigView",setup(e){const{isLoading:t,configs:o}=Ln();return(n,s)=>(y(),T("div",Ju,[ge(t)?(y(),ye(Rs,{key:0})):(y(),T("div",Gu,[Y(Hs,{title:"General Configuration"},{icon:xe(()=>[Y(El)]),default:xe(()=>[g("div",Yu,[g("div",Xu,[s[0]||(s[0]=g("span",{class:"config-label"},"Default Locale",-1)),g("span",Zu,J(ge(o).defaultLocale||"—"),1)]),g("div",Qu,[s[1]||(s[1]=g("span",{class:"config-label"},"Routing Strategy",-1)),g("span",ef,J(ge(o).strategy||"—"),1)]),g("div",tf,[s[2]||(s[2]=g("span",{class:"config-label"},"Fallback Locale",-1)),g("span",of,J(ge(o).fallbackLocale||"—"),1)]),g("div",nf,[s[3]||(s[3]=g("span",{class:"config-label"},"Debug Mode",-1)),Y(Us,{status:ge(o).debug?"enabled":"disabled",label:ge(o).debug?"Active":"Inactive"},null,8,["status","label"])])])]),_:1}),Y(Hs,{title:"Configured Locales"},{icon:xe(()=>[Y(Fs)]),default:xe(()=>[Y(qu,{locales:ge(o).locales||[]},null,8,["locales"])]),_:1}),Y(Hs,{title:"Advanced Configuration"},{icon:xe(()=>[Y(wl)]),default:xe(()=>[g("div",sf,[g("div",rf,[s[4]||(s[4]=g("span",{class:"config-label"},"Auto Language Detection",-1)),Y(Us,{status:ge(o).autoDetectLanguage?"enabled":"disabled",label:ge(o).autoDetectLanguage?"Enabled":"Disabled"},null,8,["status","label"])]),g("div",lf,[s[5]||(s[5]=g("span",{class:"config-label"},"Translation Directory",-1)),g("span",af,J(ge(o).translationDir||"—"),1)]),g("div",cf,[s[6]||(s[6]=g("span",{class:"config-label"},"API Base URL",-1)),g("span",df,J(ge(o).apiBaseUrl||"—"),1)]),g("div",uf,[s[7]||(s[7]=g("span",{class:"config-label"},"Locale Cookie",-1)),g("span",ff,J(ge(o).localeCookie||"—"),1)])])]),_:1})]))]))}}),[["styles",['@reference "tailwindcss";.config-view[data-v-5c5d226b]{@apply h-full overflow-auto p-4;}.settings-grid[data-v-5c5d226b]{@apply grid gap-3;}.config-row[data-v-5c5d226b]{@apply flex items-center justify-between py-2 px-3 rounded-lg bg-gray-50 hover:bg-gray-100 transition-colors;}.config-label[data-v-5c5d226b]{@apply text-sm font-medium text-gray-600;}.config-value[data-v-5c5d226b]{@apply text-sm text-gray-800;}']],["__scopeId","data-v-5c5d226b"]]),hf=["innerHTML"],gf={key:1},mf={class:"chevron"},bf={class:"icon",viewBox:"0 0 24 24"},_f={key:0,d:"M19 9l-7 7-7-7",fill:"none",stroke:"currentColor","stroke-width":"2"},vf={key:1,d:"M9 5l7 7-7 7",fill:"none",stroke:"currentColor","stroke-width":"2"},yf={class:"folder-name"},xf={key:0,class:"folder-children"},wf=we(ke({__name:"TreeItem",props:{node:{type:Object},depth:{type:Number},locale:{type:String},selectedFile:{type:String},defaultExpanded:{type:Boolean},selected:{type:Boolean}},emits:["fileSelected"],setup(e,{emit:t}){const o=e,n=t,s=te(o.defaultExpanded||!1),r=ie(()=>o.selectedFile===o.node.fullPath),i=ie(()=>({paddingLeft:`${o.depth*20+8}px`}));function l(){s.value=!s.value}function a(){n("fileSelected",o.node.fullPath,o.locale)}De(()=>o.defaultExpanded,c=>{s.value=c===!0},{immediate:!0});function u(c,d){n("fileSelected",c,d)}return(c,d)=>{const p=ic("TreeItem",!0);return y(),T("div",null,[e.node.isFile?(y(),T("div",{key:0,class:Ee(["file-item",{selected:r.value}]),style:yt(i.value),onClick:a},[d[0]||(d[0]=Yc('<span class="file-icon" data-v-07620783><svg class="icon" viewBox="0 0 24 24" data-v-07620783><g transform="translate(4 4) scale(0.8)" data-v-07620783><circle cx="12" cy="12" r="10" fill="none" stroke="currentColor" stroke-width="1.5" data-v-07620783></circle><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z" fill="none" stroke="currentColor" stroke-width="1" data-v-07620783></path><path d="M2 12h20M5 5.2l14 14M5 18.8l14-14" fill="none" stroke="currentColor" stroke-width="1" data-v-07620783></path></g></svg></span>',1)),g("span",{class:"file-name",innerHTML:e.node.name},null,8,hf)],6)):(y(),T("div",gf,[g("div",{class:Ee(["folder-header",{expanded:s.value,selected:e.selected}]),style:yt(i.value),onClick:l},[g("span",mf,[(y(),T("svg",bf,[s.value?(y(),T("path",_f)):(y(),T("path",vf))]))]),d[1]||(d[1]=g("span",{class:"folder-icon"},[g("svg",{class:"icon",viewBox:"0 0 24 24"},[g("path",{d:"M20 6a2 2 0 0 0-2-2h-8L10 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2z",fill:"none",stroke:"currentColor","stroke-width":"2"})])],-1)),g("span",yf,J(e.node.name),1)],6),s.value?(y(),T("div",xf,[(y(!0),T(se,null,Me(e.node.children,b=>(y(),ye(p,{key:b.fullPath,node:b,locale:e.locale,depth:e.depth+1,"selected-file":e.selectedFile,"default-expanded":!1,onFileSelected:u},null,8,["node","locale","depth","selected-file"]))),128))])):re("",!0)]))])}}}),[["styles",['@reference "tailwindcss";.file-item[data-v-07620783]{@apply py-1 px-2 my-1 cursor-pointer flex items-center text-sm text-slate-700 bg-white rounded-md transition-all duration-200 border border-transparent;}.file-item[data-v-07620783]:hover{@apply bg-slate-50 transform translate-x-1;}.file-item.selected[data-v-07620783]{@apply bg-blue-50 border-blue-200 text-blue-700 font-medium;}.folder-header[data-v-07620783]{@apply py-1 px-2 my-1 cursor-pointer flex items-center text-sm text-slate-700 bg-white rounded-md transition-all duration-200 border border-transparent;}.folder-header[data-v-07620783]:hover{@apply bg-slate-50 transform translate-x-1;}.folder-header.expanded[data-v-07620783]{@apply font-medium text-blue-700;}.folder-header.selected[data-v-07620783]{@apply bg-blue-50 border-blue-200 text-blue-700 font-medium;}.icon[data-v-07620783]{@apply w-4 h-4 mr-2 shrink-0;}.chevron .icon[data-v-07620783]{@apply w-3 h-3 mr-2;}.folder-children[data-v-07620783]{@apply ml-3 border-l-2 border-slate-200 pl-3;}']],["__scopeId","data-v-07620783"]]),Ef={class:"flex flex-col h-full w-full bg-slate-50 rounded-lg overflow-hidden"},kf={class:"flex-1 min-h-0 overflow-y-auto overscroll-contain p-2"},Nf=we(ke({__name:"LocalesList",props:{locales:{type:Object},selectedFile:{type:String}},emits:["fileSelected"],setup(e,{emit:t}){const o=e,n=t,s=ie(()=>{const a=Object.keys(o.locales),u=r(a),c={name:i(u)||"/",fullPath:u||"/",children:[]};a.forEach(p=>{const b=p.startsWith(u)?p.slice(u.length).split("/").filter(Boolean):p.split("/").filter(Boolean);let N=c;for(let v=0;v<b.length;v++){const L=b[v];if(!L)continue;const R=v===b.length-1;let H=N.children.find(B=>B.name===L);H||(H={name:L,fullPath:`${N.fullPath}/${L}`.replace(/\/+/g,"/"),isFile:R,children:[]},N.children.push(H)),H&&(N=H)}});const d=p=>{p.sort((b,N)=>b.isFile===N.isFile?b.name.localeCompare(N.name):b.isFile?1:-1);for(const b of p)d(b.children)};return d(c.children),c.children});function r(a){if(a.length===0)return"";const u=a.map(p=>p.split("/")),c=[],d=Math.min(...u.map(p=>p.length));for(let p=0;p<d;p++){const b=u[0]?.[p];if(b&&u.every(N=>N[p]===b))c.push(b);else break}return c.join("/")}function i(a){const u=a.split("/").filter(c=>c);return u[u.length-1]||""}function l(a){n("fileSelected",a)}return(a,u)=>(y(),T("div",Ef,[g("div",kf,[(y(!0),T(se,null,Me(s.value,c=>(y(),ye(wf,{key:c.fullPath,locale:c.name,node:c,depth:0,"selected-file":e.selectedFile,"default-expanded":!1,onFileSelected:l},null,8,["locale","node","selected-file"]))),128))])]))}}),[["styles",['@reference "tailwindcss";']],["__scopeId","data-v-44e760cb"]]);function it(e,t="",o={}){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const s=t?`${t}.${n}`:n,r=e[n];typeof r=="object"&&r!==null?Array.isArray(r)?r.forEach((i,l)=>{it(i,`${s}.[]${l}`,o)}):it(r,s,o):o[s]=r?.toString()??""}return o}const Nl=e=>{const t={};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const n=o.split(".");let s=t,r=null,i=null;for(let l=0;l<n.length;l++){const a=n[l];if(!a)continue;const u=a.startsWith("[]"),c=u?Number(a.slice(2)):Number.NaN;if(l===n.length-1){if(typeof s=="object"&&s!==null&&a){const d=s,p=e[o];typeof p=="string"?p==="true"||p==="false"?d[a]=p==="true":!Number.isNaN(Number(p))&&p.trim()!==""?d[a]=Number(p):d[a]=p:d[a]=p}}else{(typeof s!="object"||s===null)&&(s={});const d=s;if(u){if(!Array.isArray(d)){const b=[];r!==null&&i!==null&&typeof i=="string"?r[i]=b:a&&(t[a]=b),s=b}const p=s;if(Number.isNaN(c))continue;p[c]===void 0&&(p[c]={}),r=p,i=c,s=p[c]}else a&&(d[a]===void 0&&(d[a]={}),r=d,i=a,s=d[a])}}}return t},Of={class:"diff-viewer"},$f={class:"filters"},Sf=["value"],Cf={class:"diff-list"},Tf={class:"key-row"},Df={class:"key-label"},Vf={class:"value-compare"},Af={class:"value old"},If={class:"value-content"},Pf={class:"value new"},Mf={class:"value-content"},jf={class:"value-content"},Lf=we(ke({__name:"DiffViewer",props:{current:{type:Object},base:{type:Object}},setup(e){const t=e,o=te(["added","modified","removed"]),n=[{type:"added",label:"Added",class:"bg-green-100 text-green-800"},{type:"modified",label:"Modified",class:"bg-yellow-100 text-yellow-800"},{type:"removed",label:"Removed",class:"bg-red-100 text-red-800"}],s={added:"text-green-600",modified:"text-yellow-600",removed:"text-red-600"},r=ie(()=>{const a=it(t.current),u=it(t.base),c=new Set([...Object.keys(a),...Object.keys(u)]);return Array.from(c).map(d=>{const p=a[d],b=u[d];return!p&&b?{key:d,type:"removed",baseValue:b}:p&&!b?{key:d,type:"added",currentValue:p}:p!==b?{key:d,type:"modified",baseValue:b,currentValue:p}:null}).filter(Boolean)}),i=ie(()=>({added:r.value.filter(a=>a.type==="added").length,modified:r.value.filter(a=>a.type==="modified").length,removed:r.value.filter(a=>a.type==="removed").length})),l=ie(()=>r.value.filter(a=>o.value.includes(a.type)));return(a,u)=>(y(),T("div",Of,[g("div",$f,[(y(),T(se,null,Me(n,c=>g("label",{key:c.type,class:"filter-item"},[ft(g("input",{"onUpdate:modelValue":u[0]||(u[0]=d=>o.value=d),type:"checkbox",value:c.type,class:"sr-only"},null,8,Sf),[[Ld,o.value]]),g("span",{class:Ee(["filter-badge",c.class])},J(c.label)+" ("+J(i.value[c.type])+") ",3)])),64))]),g("div",Cf,[(y(!0),T(se,null,Me(l.value,(c,d)=>(y(),T("div",{key:d,class:"diff-item"},[g("div",Tf,[g("span",Df,J(c.key),1),c.type?(y(),T("span",{key:0,class:Ee(["change-type",s[c.type]])},J(c.type.toUpperCase()),3)):re("",!0)]),g("div",Vf,[c.type==="modified"?(y(),T(se,{key:0},[g("div",Af,[u[1]||(u[1]=g("span",{class:"value-label"},"Default:",-1)),g("span",If,J(c.baseValue),1)]),g("div",Pf,[u[2]||(u[2]=g("span",{class:"value-label"},"Current:",-1)),g("span",Mf,J(c.currentValue),1)])],64)):(y(),T("div",{key:1,class:Ee(["value",c.type])},[g("span",jf,J(c.currentValue||c.baseValue),1)],2))])]))),128))])]))}}),[["styles",['@reference "tailwindcss";.diff-viewer[data-v-dd0c3edc]{@apply flex flex-col gap-4;}.filters[data-v-dd0c3edc]{@apply flex gap-2;}.filter-item[data-v-dd0c3edc]{@apply cursor-pointer;}.filter-badge[data-v-dd0c3edc]{@apply px-3 py-1 rounded-full text-sm font-medium inline-flex items-center gap-2 transition-all;}.filter-item input:checked+.filter-badge[data-v-dd0c3edc]{@apply ring-2 ring-inset ring-blue-500/50;}.diff-list[data-v-dd0c3edc]{@apply space-y-4;}.diff-item[data-v-dd0c3edc]{@apply bg-white rounded-lg shadow-xs border border-gray-100 p-4;}.key-row[data-v-dd0c3edc]{@apply flex justify-between items-center mb-2;}.key-label[data-v-dd0c3edc]{@apply font-mono text-sm text-gray-700 truncate;}.change-type[data-v-dd0c3edc]{@apply text-xs font-semibold px-2 py-1 rounded-full;}.value-compare[data-v-dd0c3edc]{@apply space-y-2;}.value[data-v-dd0c3edc]{@apply p-2 rounded-md border border-transparent text-sm;}.value-label[data-v-dd0c3edc]{@apply text-xs font-medium text-gray-500 mr-2;}.value-content[data-v-dd0c3edc]{@apply break-words;}.old[data-v-dd0c3edc]{@apply bg-red-50 border-red-200 text-red-700;}.new[data-v-dd0c3edc]{@apply bg-green-50 border-green-200 text-green-700;}.added .value-content[data-v-dd0c3edc]{@apply text-green-600;}.removed .value-content[data-v-dd0c3edc]{@apply text-red-600 line-through;}']],["__scopeId","data-v-dd0c3edc"]]),Ff={class:"text-sm font-medium text-gray-600 truncate"},Rf={key:1,class:"flex flex-col"},Hf={class:"text-sm font-medium text-gray-600"},Fn=ke({__name:"StatItem",props:{label:String,value:[String,Number],trend:Number,stacked:{type:Boolean,default:!1}},setup(e){const t=e,o=ie(()=>typeof t.value=="number"?t.value.toLocaleString():t.value),n=ie(()=>t.trend?t.trend>0?"text-green-500":"text-red-500":"");return(s,r)=>(y(),T("div",{class:Ee(["p-3 bg-gray-50 rounded-lg transition-all duration-200 hover:bg-gray-100",e.stacked?"block":"flex items-center justify-between"])},[e.stacked?(y(),T("div",Rf,[g("span",Hf,J(e.label),1),g("span",{class:Ee(["font-semibold mt-1",s.$attrs.class])},[Je(J(o.value)+" ",1),e.trend?(y(),T("span",{key:0,class:Ee(["ml-2 text-xs",n.value])},J(e.trend)+"% ",3)):re("",!0)],2)])):(y(),T(se,{key:0},[g("span",Ff,J(e.label),1),g("span",{class:Ee(["font-semibold min-w-[60px] text-right",s.$attrs.class])},[Je(J(o.value)+" ",1),e.trend?(y(),T("span",{key:0,class:Ee(["ml-2 text-xs",n.value])},J(e.trend)+"% ",3)):re("",!0)],2)],64))],2))}}),Uf={class:"space-y-4 p-4 bg-white rounded-lg shadow-sm"},Bf={class:"grid grid-cols-2 gap-4"},Kf={key:0,class:"grid grid-cols-2 gap-4"},zf={class:"pt-4 mt-4 border-t border-gray-200"},Wf={class:"grid grid-cols-2 gap-4"},qf=we(ke({__name:"Statistics",props:{content:{type:Object}},setup(e){const{getDefaultLocaleTranslation:t}=Ln(),o=e,n=x=>typeof x=="string"?x.trim():"",s=x=>typeof x=="string",r=ie(()=>it(o.content)),i=ie(()=>it(t())),l=x=>ie(()=>Object.values(r.value).filter(M=>s(M)&&x(M)).length),a=ie(()=>Object.keys(r.value).length),u=ie(()=>Object.values(r.value).filter(x=>s(x)&&n(x)!=="").length),c=ie(()=>a.value?(u.value/a.value*100).toFixed(2):"0.00"),d=ie(()=>{const x={};return Object.values(r.value).forEach(M=>{s(M)&&(x[M]=(x[M]||0)+1)}),Object.values(x).filter(M=>M>1).length}),p=x=>ie(()=>{const M=Object.keys(r.value);return M.length<2?null:M.reduce((X,V)=>{const fe=r.value[X],le=r.value[V],U=s(fe)?fe.length:0,ne=s(le)?le.length:0;return x(U,ne)?X:V})}),b=ie(()=>Object.keys(i.value).length),N=ie(()=>Object.keys(i.value).filter(x=>{const M=r.value[x];return s(M)&&n(M)!==""}).length),v=ie(()=>b.value?(N.value/b.value*100).toFixed(2):"0.00"),L=ie(()=>[{label:"Total Keys",value:a.value,class:"text-blue-600"},{label:"Translated Keys",value:`${u.value} (${c.value}%)`,class:"text-green-600"},{label:"Missing Translations",value:a.value-u.value,class:"text-red-600"},{label:"Duplicate Values",value:d.value,class:"text-orange-600"},{label:"Long Translations (>100 chars)",value:H?.value??0,class:"text-yellow-600"},{label:"Short Translations (<3 chars)",value:B?.value??0,class:"text-pink-600"},{label:"Keys with Special Chars",value:me?.value??0,class:"text-indigo-600"},{label:"Keys with HTML Tags",value:I?.value??0,class:"text-teal-600"},{label:"Keys with Placeholders",value:P?.value??0,class:"text-cyan-600"}]),R=ie(()=>[{label:"Total Keys in Default",value:b.value,class:"text-blue-600"},{label:"Translated vs Default",value:`${N.value} (${v.value}%)`,class:"text-green-600"},{label:"Missing from Default",value:b.value-N.value,class:"text-red-600"},{label:"Extra Keys",value:Math.max(a.value-b.value,0),class:"text-orange-600"}]),[H,B,me,I,P]=[x=>x.length>100,x=>x.length<3,x=>/[@#{}[\]]/.test(x),x=>/<[^>]+>/.test(x),x=>/\{[^}]+\}/.test(x)].map(x=>l(x)),q=p((x,M)=>x>M),F=p((x,M)=>x<M);return(x,M)=>(y(),T("div",Uf,[g("div",Bf,[(y(!0),T(se,null,Me(L.value,(X,V)=>(y(),ye(Fn,{key:V,label:X.label,value:X.value,class:Ee(X.class)},null,8,["label","value","class"]))),128))]),ge(q)||ge(F)?(y(),T("div",Kf,[ge(q)?(y(),ye(Fn,{key:0,label:"Longest Key",value:ge(q),stacked:"",class:"text-purple-600 break-all"},null,8,["value"])):re("",!0),ge(F)?(y(),ye(Fn,{key:1,label:"Shortest Key",value:ge(F),stacked:"",class:"text-purple-600 break-all"},null,8,["value"])):re("",!0)])):re("",!0),g("div",zf,[M[0]||(M[0]=g("h3",{class:"text-lg font-semibold text-gray-800 mb-3"},"Comparison with Default Locale",-1)),g("div",Wf,[(y(!0),T(se,null,Me(R.value,(X,V)=>(y(),ye(Fn,{key:"compare-"+V,label:X.label,value:X.value,class:Ee(X.class)},null,8,["label","value","class"]))),128))])]),Y(Lf,{ref:"diffModal",current:e.content,base:i.value},null,8,["current","base"])]))}}),[["styles",[".border-t[data-v-ed929ce0]{border-top-width:1px;border-top-color:#e5e7eb}.pt-4[data-v-ed929ce0]{padding-top:1rem}.mt-4[data-v-ed929ce0]{margin-top:1rem}.text-lg[data-v-ed929ce0]{font-size:1.125rem;line-height:1.75rem}.font-semibold[data-v-ed929ce0]{font-weight:600}.bg-white[data-v-ed929ce0]{background-color:#fff}.rounded-lg[data-v-ed929ce0]{border-radius:.5rem}.shadow[data-v-ed929ce0]{box-shadow:0 1px 3px #0000001a,0 1px 2px -1px #0000001a}.grid[data-v-ed929ce0]{display:grid}.gap-4[data-v-ed929ce0]{gap:1rem}"]],["__scopeId","data-v-ed929ce0"]]);class Ol{constructor({apiKey:t,driver:o,options:n={}}){if(this.clearBuffer=[],this.apiKey=t,this.driver=o,this.options=n,o==="yandex-cloud"&&!n.folderId)throw new Error("Yandex Cloud Translator requires folderId in options.")}async translate(t,o,n){if(console.debug("Translating text...",{text:t,fromLang:o,toLang:n}),t==="")return t;const s=this.clearText(t);let r;switch(this.driver){case"google":r=await this.googleTranslate(s,o,n);break;case"yandex":r=await this.yandexTranslate(s,o,n);break;case"deepl":r=await this.deeplTranslate(s,o,n);break;case"openai":r=await this.openaiTranslate(t,o,n);break;case"deepseek":r=await this.deepseekTranslate(t,o,n);break;case"google-free":r=await this.googleFreeTranslate(s,o,n);break;case"yandex-cloud":r=await this.yandexCloudTranslate(s,o,n);break;default:throw new Error(`Unsupported driver: ${this.driver}`)}const i=this.revertText(r);return console.debug("Text was translated",{finalText:i}),i}clearText(t){const o=/:[a-zA-Z0-9]+|<[^>]*>|\{['"][@$|{}]['"]\}/gu,n=t.match(o)||[];return this.clearBuffer=n,n.reduce((s,r,i)=>s.replace(r,` _r${i}_`),t)}revertText(t){return this.clearBuffer.reduce((n,s,r)=>n.replace(`_r${r}_`,s),t).replace(/ {2,}|^ |^\xA0|\xA0{2,}|\xA0$/gmu,"").replace(/ /g," ")}async googleTranslate(t,o,n){const s="https://translation.googleapis.com/language/translate/v2",r=new URLSearchParams({q:t,target:n,key:this.apiKey,format:"text",source:o}),l=await(await fetch(`${s}?${r.toString()}`)).json();if(l.error)throw new Error(`Google Translate error: ${l.error.message}`);return l.data.translations[0].translatedText}async yandexTranslate(t,o,n){const s="https://translate.api.cloud.yandex.net/translate/v2/translate",r={"Content-Type":"application/json",Authorization:`Api-Key ${this.apiKey}`},i=JSON.stringify({folderId:this.options.folderId,texts:[t],sourceLanguageCode:o,targetLanguageCode:n}),a=await(await fetch(s,{method:"POST",headers:r,body:i})).json();if(a.message)throw new Error(`Yandex Translate error: ${a.message}`);return a.translations[0].text}async deeplTranslate(t,o,n){const s="https://api.deepl.com/v2/translate",r=new URLSearchParams({auth_key:this.apiKey,text:t,target_lang:n.toUpperCase(),source_lang:o.toUpperCase()}),l=await(await fetch(s,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:r.toString()})).json();if(l.message)throw new Error(`DeepL Translate error: ${l.message}`);return l.translations[0].text}async openaiTranslate(t,o,n){const s="https://api.openai.com/v1/chat/completions",r={"Content-Type":"application/json",Authorization:`Bearer ${this.apiKey}`},i=JSON.stringify({model:this.options.model,messages:[{role:"system",content:`Translate the following text from ${o} to ${n}. Do not modify or translate placeholders like :placeholder, <tag>, or {special}.`},{role:"user",content:t}]}),a=await(await fetch(s,{method:"POST",headers:r,body:i})).json();if(a.error)throw new Error(`OpenAI Translate error: ${a.error.message}`);return a.choices[0].message.content}async deepseekTranslate(t,o,n){const s="https://api.deepseek.com/chat/completions",r={"Content-Type":"application/json",Authorization:`Bearer ${this.apiKey}`},i=JSON.stringify({model:this.options.model,messages:[{role:"system",content:`Translate the following text from ${o} to ${n}. Do not modify or translate placeholders like :placeholder, <tag>, or {special}.`},{role:"user",content:t}],stream:!1}),a=await(await fetch(s,{method:"POST",headers:r,body:i})).json();if(a.error)throw new Error(`DeepSeek Translate error: ${a.error.message}`);return a.choices[0].message.content}async googleFreeTranslate(t,o,n){const s="https://translate.google.com/translate_a/single",r=new URLSearchParams({client:"gtx",sl:o,tl:n,hl:"en",dt:"t",ie:"UTF-8",oe:"UTF-8",q:t,tk:this.generateToken(t)}),l=await(await fetch(`${s}?${r.toString()}`)).json();if(!l||!Array.isArray(l[0]))throw new Error("Invalid response from Google Free Translate");return l[0].map(a=>a[0]?a[0]:"").join("")}async yandexCloudTranslate(t,o,n){const s="https://translate.api.cloud.yandex.net/translate/v2/translate",r={"Content-Type":"application/json",Authorization:`Api-Key ${this.apiKey}`},i=JSON.stringify({folderId:this.options.folderId,texts:[t],sourceLanguageCode:o,targetLanguageCode:n}),a=await(await fetch(s,{method:"POST",headers:r,body:i})).json();if(a.message)throw new Error(`Yandex Cloud Translate error: ${a.message}`);return a.translations[0].text}generateToken(t){const n=[];for(let r=0;r<t.length;r++){const i=t.charCodeAt(r);i<128?n.push(i):i<2048?n.push(i>>6|192):(n.push(i>>12|224),n.push(i>>6&63|128)),n.push(i&63|128)}let s=0;for(let r=0;r<n.length;r++){const i=n[r];i!==void 0&&(s+=i,s=this.tokenTransform(s,"+-a^+6"))}return s=this.tokenTransform(s,"+-3^+b+-f"),s^=0,s<0&&(s=(s&2147483647)+2147483648),s%=1e6,`${s.toString()}.${s^0}`}tokenTransform(t,o){for(let n=0;n<o.length-2;n+=3){const s=o.charCodeAt(n+2)>=97?o.charCodeAt(n+2)-87:Number(o.charAt(n+2));o.charAt(n+1)==="+"?t=t>>>s:t=t<<s,o.charAt(n)==="+"?t=t+s&4294967295:t=t^s}return t}}const Jf={class:"pagination"},Gf=["disabled"],Yf=["onClick"],Xf={key:0,class:"pagination-ellipsis"},Zf=["onClick"],Qf={key:0,class:"pagination-ellipsis"},ep=["onClick"],tp=["disabled"],op=we(ke({__name:"Pagination",props:{currentPage:{type:Number},totalPages:{type:Number}},emits:["update:page"],setup(e,{emit:t}){const o=e,n=t,s=ie(()=>[1,2].filter(a=>a<=o.totalPages)),r=ie(()=>[o.totalPages-1,o.totalPages].filter(a=>a>=1)),i=ie(()=>{const a=[],u=Math.max(1,o.currentPage-2),c=Math.min(o.totalPages,o.currentPage+2);for(let d=u;d<=c;d++)a.push(d);return a}),l=a=>{a>=1&&a<=o.totalPages&&n("update:page",a)};return(a,u)=>(y(),T("div",Jf,[g("button",{disabled:e.currentPage===1,class:"pagination-button",onClick:u[0]||(u[0]=c=>l(e.currentPage-1))},"Previous",8,Gf),e.currentPage>3?(y(),T(se,{key:0},[(y(!0),T(se,null,Me(s.value,c=>(y(),T("button",{key:c,class:"pagination-button",onClick:d=>l(c)},J(c),9,Yf))),128)),e.currentPage>4?(y(),T("span",Xf,"...")):re("",!0)],64)):re("",!0),(y(!0),T(se,null,Me(i.value,c=>(y(),T("button",{key:c,class:Ee(["pagination-button",{active:e.currentPage===c}]),onClick:d=>l(c)},J(c),11,Zf))),128)),e.currentPage<e.totalPages-2?(y(),T(se,{key:1},[e.currentPage<e.totalPages-3?(y(),T("span",Qf,"...")):re("",!0),(y(!0),T(se,null,Me(r.value,c=>(y(),T("button",{key:c,class:"pagination-button",onClick:d=>l(c)},J(c),9,ep))),128))],64)):re("",!0),g("button",{disabled:e.currentPage===e.totalPages||e.totalPages===0,class:"pagination-button",onClick:u[1]||(u[1]=c=>l(e.currentPage+1))},"Next",8,tp)]))}}),[["styles",[".pagination[data-v-7293a66d]{display:flex;justify-content:center;align-items:center;gap:6px;margin-top:16px;flex-wrap:wrap}.pagination-button[data-v-7293a66d]{padding:6px 12px;min-width:32px;border:1px solid #ccc;border-radius:4px;background-color:#f8f9fa;cursor:pointer;font-size:13px;color:#333;text-align:center;transition:background-color .2s,border-color .2s}.pagination-button[data-v-7293a66d]:hover:not(:disabled){background-color:#e9ecef;border-color:#bbb}.pagination-button[data-v-7293a66d]:disabled{background-color:#e9ecef;cursor:not-allowed;color:#999}.pagination-button.active[data-v-7293a66d]{background-color:#007bff;border-color:#007bff;color:#fff}.pagination-ellipsis[data-v-7293a66d]{padding:6px 12px;font-size:13px;color:#666}"]],["__scopeId","data-v-7293a66d"]]),np={class:"translation-editor"},sp={class:"translation-list-container"},rp={class:"search-box"},ip={class:"translation-list"},lp={class:"key-header"},ap=["title"],cp=["onClick"],dp={class:"default-value"},up=["onUpdate:modelValue","placeholder"],fp={class:"pagination-wrapper"},Bs=30,pp=we(ke({__name:"TranslationEditor",props:{modelValue:{type:Object}},emits:["update:modelValue"],setup(e,{emit:t}){const o=e,n=t,{selectedFile:s,configs:r,getDefaultLocaleTranslation:i}=Ln(),l=te(it(o.modelValue)),a=te({}),u=te(""),c=te(1),d=te("disabled"),p=te(""),b=te({}),N=ie(()=>{const P=Object.keys(a.value);if(!u.value.trim())return L.value;const q=u.value.toLowerCase();return P.filter(F=>F.toLowerCase().includes(q)||a.value[F]?.toLowerCase().includes(q))}),v=ie(()=>Math.ceil(Object.keys(a.value).length/Bs)),L=ie(()=>{const P=(c.value-1)*Bs,q=P+Bs;return Object.keys(a.value).slice(P,q)}),R=()=>{const P=i();a.value=it(P)},H=()=>{n("update:modelValue",Nl(l.value))},B=P=>{P>=1&&P<=v.value&&(c.value=P)},me=async(P,q)=>{if(q)try{const F=r.value.defaultLocale,x=new Ol({apiKey:p.value,driver:d.value,options:b.value}),M=s.value.split("/").pop()??"";l.value[P]=await x.translate(q,F,M.replace(".json","")),H()}catch(F){console.error("Translation error:",F)}},I=()=>{const P=localStorage.getItem("translationSettings");if(P)try{const q=JSON.parse(P);d.value=q.driver||"disabled",p.value=q.token||"",b.value=q.options||{}}catch{localStorage.removeItem("translationSettings")}};return It(()=>{R(),I()}),De(()=>o.modelValue,P=>{l.value=it(P),R()}),De(s,()=>{R(),c.value=1}),De(()=>r.value.defaultLocale,()=>{R()}),(P,q)=>(y(),T("div",np,[g("div",sp,[g("div",rp,[ft(g("input",{"onUpdate:modelValue":q[0]||(q[0]=F=>u.value=F),placeholder:"Search keys or values...",class:"search-input"},null,512),[[Mn,u.value]])]),g("div",ip,[(y(!0),T(se,null,Me(N.value,F=>(y(),T("div",{key:F,class:Ee(["translation-item",{missing:!l.value[F]?.trim()}])},[g("div",lp,[g("span",{class:"key-label",title:F},J(F),9,ap),d.value!=="disabled"?(y(),T("button",{key:0,class:"translate-btn",onClick:x=>me(F,a.value[F]||"")},[...q[1]||(q[1]=[g("svg",{class:"translate-icon",viewBox:"0 0 24 24"},[g("path",{d:"M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z"})],-1)])],8,cp)):re("",!0)]),g("div",dp,J(a.value[F]||"No default value"),1),ft(g("textarea",{"onUpdate:modelValue":x=>l.value[F]=x,class:"translation-input",placeholder:a.value[F],rows:"1",onInput:H},null,40,up),[[Mn,l.value[F]]])],2))),128))])]),g("div",fp,[u.value?re("",!0):(y(),ye(op,{key:0,"current-page":c.value,"total-pages":v.value,"onUpdate:page":B},null,8,["current-page","total-pages"]))])]))}}),[["styles",['@reference "tailwindcss";.translation-editor[data-v-e32e5b02]{@apply flex flex-col h-full w-full overflow-hidden bg-gray-50;}.translation-list-container[data-v-e32e5b02]{@apply flex-1 flex flex-col min-h-0 overflow-hidden;}.search-box[data-v-e32e5b02]{@apply bg-white p-2 border-b border-gray-200 shrink-0;}.search-input[data-v-e32e5b02]{@apply w-full p-2 border border-gray-300 rounded-lg text-sm focus:outline-hidden focus:ring-2 focus:ring-blue-500;}.translation-list[data-v-e32e5b02]{@apply flex-1 overflow-y-auto overflow-x-hidden p-2 space-y-3;overscroll-behavior:contain}.translation-item[data-v-e32e5b02]{@apply p-3 bg-white rounded-lg shadow-sm border border-gray-200;}.translation-item.missing[data-v-e32e5b02]{@apply border-l-4 border-l-yellow-500 bg-yellow-50/30;}.key-header[data-v-e32e5b02]{@apply flex justify-between items-center mb-1;}.key-label[data-v-e32e5b02]{@apply font-mono text-xs font-semibold text-slate-700 truncate select-all;}.default-value[data-v-e32e5b02]{@apply text-xs text-gray-500 mb-2 truncate opacity-80;}.translation-input[data-v-e32e5b02]{@apply w-full p-2 border border-gray-300 rounded text-sm min-h-[38px] focus:outline-hidden focus:ring-2 focus:ring-blue-500 focus:border-blue-500;}.translate-btn[data-v-e32e5b02]{@apply p-1 text-gray-400 hover:text-blue-600 transition-colors rounded hover:bg-gray-100;}.translate-icon[data-v-e32e5b02]{@apply w-4 h-4 fill-current;}.pagination-wrapper[data-v-e32e5b02]{@apply shrink-0 p-2 border-t border-gray-200 bg-white;}']],["__scopeId","data-v-e32e5b02"]]),hp=["disabled","type"],Lt=we(ke({__name:"Button",props:{variant:{default:"primary",type:String},size:{default:"md",type:String},disabled:{type:Boolean,default:!1},type:{default:"button",type:String}},emits:["click"],setup(e,{emit:t}){const o=e,n=t,s=r=>{o.disabled||n("click",r)};return(r,i)=>(y(),T("button",{class:Ee(["btn",`btn--${e.variant}`,`btn--${e.size}`,{"btn--disabled":e.disabled}]),disabled:e.disabled,type:e.type,onClick:s},[pt(r.$slots,"default",{},void 0)],10,hp))}}),[["styles",['@reference "tailwindcss";.btn[data-v-2799155b]{@apply inline-flex items-center justify-center font-medium rounded-md transition-all duration-200 focus:outline-hidden focus:ring-2 focus:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed;}.btn--sm[data-v-2799155b]{@apply px-2 py-1 text-xs;}.btn--md[data-v-2799155b]{@apply px-3 py-1.5 text-sm;}.btn--lg[data-v-2799155b]{@apply px-4 py-2 text-base;}.btn--primary[data-v-2799155b]{@apply bg-blue-600 text-white hover:bg-blue-700 focus:ring-blue-500;}.btn--secondary[data-v-2799155b]{@apply bg-slate-200 text-slate-700 hover:bg-slate-300 focus:ring-slate-500;}.btn--danger[data-v-2799155b]{@apply bg-red-600 text-white hover:bg-red-700 focus:ring-red-500;}.btn--ghost[data-v-2799155b]{@apply bg-transparent text-slate-700 hover:bg-slate-100 focus:ring-slate-500;}']],["__scopeId","data-v-2799155b"]]),gp={class:"action-bar"},mp={class:"action-bar__left"},bp=we(ke({__name:"ActionBar",props:{showTranslateButton:{type:Boolean}},emits:["export","import","show-stats","translate-missing","save"],setup(e,{emit:t}){const o=t;return(n,s)=>(y(),T("div",gp,[g("div",mp,[Y(Lt,{class:"action-btn action-btn--export",title:"Export",variant:"ghost",onClick:s[0]||(s[0]=r=>o("export"))},{default:xe(()=>[...s[5]||(s[5]=[g("span",{class:"action-btn__icon"},"📤",-1)])]),_:1}),Y(Lt,{class:"action-btn action-btn--import",title:"Import",variant:"ghost",onClick:s[1]||(s[1]=r=>o("import"))},{default:xe(()=>[...s[6]||(s[6]=[g("span",{class:"action-btn__icon"},"📥",-1)])]),_:1}),Y(Lt,{class:"action-btn action-btn--stats",title:"Stats",variant:"ghost",onClick:s[2]||(s[2]=r=>o("show-stats"))},{default:xe(()=>[...s[7]||(s[7]=[g("span",{class:"action-btn__icon"},"📊",-1)])]),_:1}),e.showTranslateButton?(y(),ye(Lt,{key:0,class:"action-btn action-btn--translate",title:"Translate",variant:"ghost",onClick:s[3]||(s[3]=r=>o("translate-missing"))},{default:xe(()=>[...s[8]||(s[8]=[g("span",{class:"action-btn__icon"},"🌐",-1)])]),_:1})):re("",!0)]),Y(Lt,{class:"action-btn action-btn--save",title:"Save",variant:"primary",onClick:s[4]||(s[4]=r=>o("save"))},{default:xe(()=>[...s[9]||(s[9]=[g("span",{class:"action-btn__icon"},"💾",-1)])]),_:1})]))}}),[["styles",['@reference "tailwindcss";.action-bar[data-v-7df22d1b]{@apply flex items-center justify-between p-3 bg-white border-b border-slate-200;}.action-bar__left[data-v-7df22d1b]{@apply flex items-center gap-2 flex-wrap;}.action-btn[data-v-7df22d1b]{@apply flex items-center gap-1.5;}.action-btn__icon[data-v-7df22d1b]{@apply text-sm;}']],["__scopeId","data-v-7df22d1b"]]),_p={key:0,class:"resize-overlay"},vp=we(ke({__name:"SplitPane",props:{storageKey:{type:String},defaultLeftWidth:{default:"300px",type:String},minLeftWidth:{default:150,type:Number},minRightWidth:{default:300,type:Number}},setup(e){const t=e,o=te(t.defaultLeftWidth),n=te(!1);It(()=>{if(t.storageKey){const l=localStorage.getItem(`split-pane-${t.storageKey}`);l&&(o.value=l)}});const s=()=>{n.value=!0,document.body.style.cursor="col-resize",window.addEventListener("mousemove",r),window.addEventListener("mouseup",i)},r=l=>{if(!n.value||!l.target.closest(".split-pane"))return;const u=l.clientX;u>=t.minLeftWidth&&(o.value=`${u}px`)},i=()=>{n.value&&(n.value=!1,document.body.style.cursor="",t.storageKey&&localStorage.setItem(`split-pane-${t.storageKey}`,o.value),window.removeEventListener("mousemove",r),window.removeEventListener("mouseup",i))};return(l,a)=>(y(),T("div",{class:"split-pane",onMouseup:i,onMouseleave:i},[g("div",{class:"split-pane__left",style:yt({width:o.value})},[pt(l.$slots,"left",{},void 0)],4),g("div",{class:"split-pane__divider",style:yt({left:o.value}),onMousedown:_l(s,["prevent"])},[...a[0]||(a[0]=[g("div",{class:"divider-handle"},null,-1)])],36),g("div",{class:"split-pane__right",style:yt({left:o.value,paddingLeft:"4px"})},[pt(l.$slots,"right",{},void 0)],4),n.value?(y(),T("div",_p)):re("",!0)],32))}}),[["styles",['@reference "tailwindcss";.split-pane[data-v-c062fd52]{@apply relative w-full h-full bg-white overflow-hidden;}.split-pane__left[data-v-c062fd52]{@apply absolute top-0 bottom-0 left-0 border-r border-slate-200 overflow-hidden bg-white z-0;}.split-pane__divider[data-v-c062fd52]{@apply absolute top-0 bottom-0 w-4 cursor-col-resize z-50 flex justify-center hover:bg-blue-50/50 transition-colors;margin-left:-2px}.divider-handle[data-v-c062fd52]{@apply w-[1px] h-full bg-slate-200 transition-colors;}.split-pane__divider:hover .divider-handle[data-v-c062fd52],.split-pane__divider:active .divider-handle[data-v-c062fd52]{@apply bg-blue-500 w-[2px];}.split-pane__right[data-v-c062fd52]{@apply absolute top-0 bottom-0 right-0 overflow-hidden bg-white z-0;}.resize-overlay[data-v-c062fd52]{@apply fixed inset-0 z-[100] cursor-col-resize;}']],["__scopeId","data-v-c062fd52"]]),yp={class:"header-content"},xp={class:"modal-title"},wp={class:"modal-body"},Ep={key:0,class:"modal-footer"},Ks=we(ke({__name:"Modal",props:{show:{type:Boolean},title:{type:String},size:{default:"md",type:String},width:{type:String},height:{type:String},disableOutsideClick:{type:Boolean,default:!1},disableEsc:{type:Boolean,default:!1},showCloseButton:{type:Boolean,default:!0},headerClass:{type:String}},emits:["update:show","close"],setup(e,{emit:t}){const o=e,n=t,s={sm:{width:"400px",height:"auto"},md:{width:"600px",height:"70vh"},lg:{width:"800px",height:"80vh"},xl:{width:"90vw",height:"90vh"},custom:{width:o.width||"auto",height:o.height||"auto"}},r=ie(()=>o.size==="custom"?o.width:null),i=ie(()=>o.size==="custom"?o.height:null),l=()=>{n("update:show",!1),n("close")},a=()=>{o.disableOutsideClick||l()},u=()=>{o.disableEsc||l()},c=p=>{p.key==="Escape"&&u()},d=te("");return It(()=>{if(document.addEventListener("keydown",c),o.show){const p=document.querySelector("i18n-devtools-ui");p&&(d.value=p.style.overflow||"",p.style.overflow="hidden")}}),gs(()=>{document.removeEventListener("keydown",c);const p=document.querySelector("i18n-devtools-ui");p&&(p.style.overflow=d.value)}),De(()=>o.show,p=>{const b=document.querySelector("i18n-devtools-ui");b&&(p?(d.value=b.style.overflow||"",b.style.overflow="hidden"):b.style.overflow=d.value)}),(p,b)=>(y(),ye(Wa,{to:"body"},[Y(Is,{name:"modal"},{default:xe(()=>[e.show?(y(),T("div",{key:0,class:"modal-overlay",onClick:_l(a,["self"]),onKeydown:Ud(u,["esc"])},[g("div",{class:"modal-content",style:yt({width:r.value||s[e.size].width,height:i.value||s[e.size].height})},[g("div",{class:Ee(["modal-header",e.headerClass])},[g("div",yp,[pt(p.$slots,"header",{},()=>[g("h3",xp,J(e.title),1)],!0)]),e.showCloseButton?(y(),T("button",{key:0,class:"modal-close-button","aria-label":"Close modal",onClick:l},[...b[0]||(b[0]=[g("svg",{class:"close-icon",viewBox:"0 0 24 24"},[g("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})],-1)])])):re("",!0)],2),g("div",wp,[pt(p.$slots,"default",{},void 0,!0)]),p.$slots.footer?(y(),T("div",Ep,[pt(p.$slots,"footer",{},void 0,!0)])):re("",!0)],4)],32)):re("",!0)]),_:3})]))}}),[["styles",['@reference "tailwindcss";.modal-overlay[data-v-321f093f]{@apply fixed inset-0 bg-black/50 flex items-center justify-center p-4 z-[1000];-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.modal-content[data-v-321f093f]{@apply bg-white rounded-xl shadow-2xl flex flex-col;max-height:calc(100vh - 2rem)}.modal-header[data-v-321f093f]{@apply flex items-center justify-between px-6 py-4 border-b border-gray-100 shrink-0;}.header-content[data-v-321f093f]{@apply flex-1 min-w-0;}.modal-title[data-v-321f093f]{@apply text-xl font-semibold text-gray-900 truncate;}.modal-close-button[data-v-321f093f]{@apply p-2 ml-4 -mr-2 text-gray-400 hover:text-gray-600 transition-colors;}.close-icon[data-v-321f093f]{@apply w-6 h-6 fill-current;}.modal-body[data-v-321f093f]{@apply flex-1 p-6 overflow-y-auto;scrollbar-width:thin;scrollbar-color:theme("colors.gray.300") theme("colors.white")}.modal-body[data-v-321f093f]::-webkit-scrollbar{@apply w-2;}.modal-body[data-v-321f093f]::-webkit-scrollbar-track{@apply bg-gray-100 rounded-sm;}.modal-body[data-v-321f093f]::-webkit-scrollbar-thumb{@apply bg-gray-300 rounded-sm hover:bg-gray-400;}.modal-footer[data-v-321f093f]{@apply flex items-center justify-end px-6 py-4 space-x-3 border-t border-gray-100 shrink-0;}']],["__scopeId","data-v-321f093f"]]),kp={class:"i18n-view"},Np={class:"pane-inner"},Op={class:"pane-inner bg-white"},$p={key:0,class:"editor-layout"},Sp={class:"editor-header"},Cp={class:"breadcrumbs"},Tp={class:"breadcrumbs__path"},Dp={class:"action-bar-wrapper"},Vp={class:"editor-content-area"},Ap={class:"editor-scroll-container"},Ip={key:1,class:"empty-state"},Pp={class:"flex justify-end gap-2 mt-4"},Mp={class:"flex justify-end gap-2 mt-4"},jp=we(ke({__name:"I18nView",setup(e){const t=te("disabled"),o=te(""),n=te({}),{configs:s,isLoading:r,locales:i,selectedFile:l,selectedFileContent:a,handleFileSelected:u,exportTranslations:c,importTranslations:d,getDefaultLocaleTranslation:p,saveCurrent:b}=Ln(),N=te(null),v=te({});It(()=>{fe()}),De(a,le=>{le&&(v.value={...le})},{deep:!0,immediate:!0});const L=ie(()=>i.value),R=()=>{N.value?.click()},H=async()=>{a.value={...v.value},await b()};De(l,le=>{const U=le.replace(/^\/+/,"").replace(/\\/g,"/");v.value=i.value[U]??i.value[le]??(le.startsWith("/")?i.value[le.slice(1)]:{})??{}});const B=te(!1),me=()=>{B.value=!0},I=te(!1),P=te(!1),q=te(""),F=te(""),x=(le,U)=>{q.value=le,F.value=U,P.value=!0},M=()=>{I.value=!0},X=async()=>{I.value=!1,await V()},V=async()=>{if(!v.value)return;const le=p(),U=it(le),ne=it(v.value),ee=Object.keys(U).filter(Q=>!ne[Q]);if(ee.length===0){x("Translation","No missing keys.");return}try{const Q=s.value.defaultLocale,Ge=new Ol({apiKey:o.value,driver:t.value,options:n.value}),Go=l.value.split("/").pop()??"";await Promise.all(ee.map(async Ft=>{const Ct=U[Ft];Ct&&(ne[Ft]=await Ge.translate(Ct,Q,Go.replace(".json","")))})),v.value=Nl(ne),x("Translation","Translated.")}catch(Q){console.error(Q),x("Translation","Error.")}},fe=()=>{const le=localStorage.getItem("translationSettings");if(le)try{const U=JSON.parse(le);t.value=U.driver||"disabled",o.value=U.token||"",n.value=U.options||{}}catch{localStorage.removeItem("translationSettings")}};return(le,U)=>(y(),T("div",kp,[ge(r)?(y(),ye(Rs,{key:0})):(y(),ye(vp,{key:1,"storage-key":"tab-i18n-locales","default-left-width":"280px"},{left:xe(()=>[g("div",Np,[Y(Nf,{locales:L.value,"selected-file":ge(l),onFileSelected:ge(u)},null,8,["locales","selected-file","onFileSelected"])])]),right:xe(()=>[g("div",Op,[ge(l)?(y(),T("div",$p,[g("div",Sp,[g("div",Cp,[U[7]||(U[7]=g("span",{class:"breadcrumbs__icon"},"📄",-1)),g("span",Tp,J(ge(l)),1)]),g("div",Dp,[Y(bp,{"show-translate-button":t.value!=="disabled",onExport:ge(c),onImport:R,onShowStats:me,onTranslateMissing:M,onSave:H},null,8,["show-translate-button","onExport"])])]),g("div",Vp,[g("div",Ap,[Y(pp,{modelValue:v.value,"onUpdate:modelValue":U[0]||(U[0]=ne=>v.value=ne),class:"h-full"},null,8,["modelValue"])])])])):(y(),T("div",Ip,[...U[8]||(U[8]=[g("div",{class:"empty-state__icon"},"📁",-1),g("div",{class:"empty-state__title"},"No File Selected",-1),g("div",{class:"empty-state__description"},"Select a file from the tree to edit",-1)])]))])]),_:1})),B.value?(y(),ye(Ks,{key:2,show:B.value,"onUpdate:show":U[1]||(U[1]=ne=>B.value=ne),title:"Statistics",size:"lg"},{default:xe(()=>[v.value?(y(),ye(qf,{key:0,content:v.value},null,8,["content"])):re("",!0)]),_:1},8,["show"])):re("",!0),I.value?(y(),ye(Ks,{key:3,show:I.value,"onUpdate:show":U[3]||(U[3]=ne=>I.value=ne),title:"Confirm Translation",size:"md"},{default:xe(()=>[U[11]||(U[11]=g("p",null,"Are you sure?",-1)),g("div",Pp,[Y(Lt,{variant:"danger",onClick:U[2]||(U[2]=ne=>I.value=!1)},{default:xe(()=>[...U[9]||(U[9]=[Je(" Cancel ",-1)])]),_:1}),Y(Lt,{variant:"primary",onClick:X},{default:xe(()=>[...U[10]||(U[10]=[Je(" Confirm ",-1)])]),_:1})])]),_:1},8,["show"])):re("",!0),P.value?(y(),ye(Ks,{key:4,show:P.value,"onUpdate:show":U[5]||(U[5]=ne=>P.value=ne),title:q.value,size:"sm"},{default:xe(()=>[g("p",null,J(F.value),1),g("div",Mp,[Y(Lt,{variant:"primary",onClick:U[4]||(U[4]=ne=>P.value=!1)},{default:xe(()=>[...U[12]||(U[12]=[Je(" OK ",-1)])]),_:1})])]),_:1},8,["show","title"])):re("",!0),ft(g("input",{ref_key:"file",ref:N,type:"file",accept:".json",onChange:U[6]||(U[6]=(...ne)=>ge(d)&&ge(d)(...ne))},null,544),[[yd,!1]])]))}}),[["styles",['@reference "tailwindcss";.i18n-view[data-v-ca899ea1]{@apply h-full w-full relative overflow-hidden;}.pane-inner[data-v-ca899ea1]{@apply w-full h-full overflow-hidden flex flex-col;}.editor-layout[data-v-ca899ea1]{@apply flex flex-col h-full w-full overflow-hidden;}.editor-header[data-v-ca899ea1]{@apply shrink-0 bg-white z-10;}.breadcrumbs[data-v-ca899ea1]{@apply px-4 py-2 bg-slate-50 border-b border-slate-200 text-xs font-mono text-slate-600 flex items-center gap-2;}.breadcrumbs__icon[data-v-ca899ea1]{@apply text-base;}.breadcrumbs__path[data-v-ca899ea1]{@apply truncate text-slate-700 font-medium;}.action-bar-wrapper[data-v-ca899ea1]{@apply border-b border-slate-200;}.editor-content-area[data-v-ca899ea1]{@apply flex-1 relative overflow-hidden;}.editor-scroll-container[data-v-ca899ea1]{@apply absolute inset-0 overflow-hidden;}.empty-state[data-v-ca899ea1],.welcome-card[data-v-ca899ea1]{@apply flex flex-col items-center justify-center h-full text-center p-8 text-slate-500;}.empty-state__icon[data-v-ca899ea1],.welcome-card__icon[data-v-ca899ea1]{@apply text-6xl mb-4 opacity-50;}.empty-state__title[data-v-ca899ea1],.welcome-card__title[data-v-ca899ea1]{@apply text-xl font-bold text-slate-700 mb-2;}']],["__scopeId","data-v-ca899ea1"]]),Lp={class:"settings-card"},Fp={class:"settings-card__header"},Rp={class:"settings-card__icon"},Hp={key:0},Up={class:"settings-card__title"},Bp={class:"settings-card__content"},Kp=we(ke({__name:"SettingsCard",props:{title:{type:String},icon:{type:String}},setup(e){return(t,o)=>(y(),T("div",Lp,[g("div",Fp,[g("span",Rp,[pt(t.$slots,"icon",{},()=>[e.icon?(y(),T("span",Hp,J(e.icon),1)):re("",!0)])]),g("h3",Up,J(e.title),1)]),g("div",Bp,[pt(t.$slots,"default",{},void 0)])]))}}),[["styles",['@reference "tailwindcss";.settings-card[data-v-502b3f8f]{@apply bg-white rounded-lg p-4 shadow-xs border border-slate-200 transition-all duration-200 hover:shadow-sm;}.settings-card__header[data-v-502b3f8f]{@apply flex items-center mb-4 pb-3 border-b border-slate-100;}.settings-card__icon[data-v-502b3f8f]{@apply text-lg mr-2 flex items-center;}.settings-card__title[data-v-502b3f8f]{@apply text-lg font-semibold text-slate-800;}.settings-card__content[data-v-502b3f8f]{@apply space-y-4;}']],["__scopeId","data-v-502b3f8f"]]),zp={class:"translation-controls"},Wp={class:"translation-controls__content"},qp={class:"control-group"},Jp={class:"control-select"},Gp=["value"],Yp={key:0,class:"control-group"},Xp={key:0,class:"driver-options"},Zp={key:0,class:"control-group"},Qp={key:1,class:"control-group"},eh={class:"control-select"},th={key:2,class:"control-group"},oh={class:"control-select"},nh=["value"],sh={key:3,class:"control-group"},rh={class:"control-select"},ih=we(ke({__name:"TranslationControls",props:{driver:{type:String},apiToken:{type:String},options:{type:Object}},emits:["update:driver","update:apiToken","update:options"],setup(e,{emit:t}){const o=e,n=t,s=te(o.driver),r=te(o.apiToken),i=te({...o.options});De(()=>o.driver,async u=>{u!==s.value&&(await dt(),s.value=u)}),De(()=>o.apiToken,async u=>{u!==r.value&&(await dt(),r.value=u)}),De(()=>o.options,async u=>{JSON.stringify(u)!==JSON.stringify(i.value)&&(await dt(),i.value={...u})},{deep:!0}),De(s,async u=>{u!==o.driver&&(await dt(),n("update:driver",u))}),De(r,async u=>{u!==o.apiToken&&(await dt(),n("update:apiToken",u))}),De(i,async u=>{JSON.stringify(u)!==JSON.stringify(o.options)&&(await dt(),n("update:options",{...u}))},{deep:!0});const l=[{label:"Disabled",value:"disabled"},{label:"OpenAI",value:"openai"},{label:"Google",value:"google"},{label:"Google Free",value:"google-free"},{label:"DeepL",value:"deepl"},{label:"DeepSeek",value:"deepseek"},{label:"Yandex",value:"yandex"},{label:"Yandex Cloud",value:"yandex-cloud"}],a=["gpt-5","gpt-5-mini","gpt-5-nano","gpt-5-chat-latest","gpt-5-2025-08-07","gpt-5-mini-2025-08-07","gpt-5-nano-2025-08-07","gpt-4.1","gpt-4.1-mini","gpt-4.1-nano","gpt-4.1-2025-04-14","gpt-4.1-mini-2025-04-14","gpt-4.1-nano-2025-04-14","o3","o3-mini","o3-pro","o3-deep-research","o3-2025-04-16","o3-mini-2025-01-31","o3-pro-2025-06-10","o3-deep-research-2025-06-26","o4-mini","o4-mini-deep-research","o4-mini-2025-04-16","o4-mini-deep-research-2025-06-26","o1","o1-mini","o1-pro","o1-2024-12-17","o1-mini-2024-09-12","o1-pro-2025-03-19","gpt-4o","gpt-4o-mini","gpt-4o-2024-05-13","gpt-4o-mini-2024-07-18","gpt-4o-2024-08-06","gpt-4o-2024-11-20","gpt-4o-2025-03-11","chatgpt-4o-latest","gpt-4o-realtime-preview","gpt-4o-audio-preview","gpt-4o-mini-realtime-preview","gpt-4o-mini-audio-preview","gpt-4o-realtime-preview-2024-10-01","gpt-4o-audio-preview-2024-10-01","gpt-4o-realtime-preview-2024-12-17","gpt-4o-audio-preview-2024-12-17","gpt-4o-mini-realtime-preview-2024-12-17","gpt-4o-mini-audio-preview-2024-12-17","gpt-4o-realtime-preview-2025-06-03","gpt-4o-audio-preview-2025-06-03","gpt-4o-search-preview","gpt-4o-mini-search-preview","gpt-4o-search-preview-2025-03-11","gpt-4o-mini-search-preview-2025-03-11","gpt-4o-transcribe","gpt-4o-mini-transcribe","gpt-4o-mini-tts","gpt-4","gpt-4-turbo","gpt-4-turbo-preview","gpt-4-0613","gpt-4-1106-preview","gpt-4-0125-preview","gpt-4-turbo-2024-04-09","gpt-3.5-turbo","gpt-3.5-turbo-16k","gpt-3.5-turbo-instruct","gpt-3.5-turbo-instruct-0914","gpt-3.5-turbo-1106","gpt-3.5-turbo-0125"];return(u,c)=>(y(),T("div",zp,[g("div",Wp,[g("div",qp,[c[8]||(c[8]=g("label",{class:"control-label"},[g("span",{class:"control-icon"},"🔧"),Je(" Translation Service ")],-1)),g("div",Jp,[ft(g("select",{"onUpdate:modelValue":c[0]||(c[0]=d=>s.value=d),class:"select-input"},[c[6]||(c[6]=g("option",{value:"",disabled:"",hidden:""},"Select a translation driver",-1)),(y(),T(se,null,Me(l,d=>g("option",{key:d.value,value:d.value},J(d.label),9,Gp)),64))],512),[[jn,s.value]]),c[7]||(c[7]=g("div",{class:"select-arrow"},"▼",-1))])]),Y(Is,{name:"fade-slide"},{default:xe(()=>[s.value!=="disabled"?(y(),T("div",Yp,[c[9]||(c[9]=g("label",{class:"control-label"},[g("span",{class:"control-icon"},"🔑"),Je(" API Authorization ")],-1)),ft(g("input",{"onUpdate:modelValue":c[1]||(c[1]=d=>r.value=d),type:"password",placeholder:"Enter your secure API token",class:"styled-input"},null,512),[[Mn,r.value]])])):re("",!0)]),_:1}),Y(Is,{name:"fade-slide"},{default:xe(()=>[s.value!=="disabled"?(y(),T("div",Xp,[s.value==="yandex-cloud"?(y(),T("div",Zp,[c[10]||(c[10]=g("label",{class:"control-label"},[g("span",{class:"control-icon"},"📁"),Je(" Cloud Folder ID ")],-1)),ft(g("input",{"onUpdate:modelValue":c[2]||(c[2]=d=>i.value.folderId=d),type:"text",placeholder:"Yandex Cloud folder identifier",class:"styled-input"},null,512),[[Mn,i.value.folderId]])])):re("",!0),s.value==="deepl"?(y(),T("div",Qp,[c[13]||(c[13]=g("label",{class:"control-label"},[g("span",{class:"control-icon"},"🎚️"),Je(" Tone Formality ")],-1)),g("div",eh,[ft(g("select",{"onUpdate:modelValue":c[3]||(c[3]=d=>i.value.formality=d),class:"select-input"},[...c[11]||(c[11]=[g("option",{value:"default"},"Neutral (Default)",-1),g("option",{value:"more"},"Formal Tone",-1),g("option",{value:"less"},"Casual Tone",-1)])],512),[[jn,i.value.formality]]),c[12]||(c[12]=g("div",{class:"select-arrow"},"▼",-1))])])):re("",!0),s.value==="openai"?(y(),T("div",th,[c[15]||(c[15]=g("label",{class:"control-label"},[g("span",{class:"control-icon"},"🤖"),Je(" AI Model Selection ")],-1)),g("div",oh,[ft(g("select",{"onUpdate:modelValue":c[4]||(c[4]=d=>i.value.model=d),class:"select-input"},[(y(),T(se,null,Me(a,d=>g("option",{key:d,value:d},J(d),9,nh)),64))],512),[[jn,i.value.model]]),c[14]||(c[14]=g("div",{class:"select-arrow"},"▼",-1))])])):re("",!0),s.value==="deepseek"?(y(),T("div",sh,[c[18]||(c[18]=g("label",{class:"control-label"},[g("span",{class:"control-icon"},"🧠"),Je(" Reasoning Model ")],-1)),g("div",rh,[ft(g("select",{"onUpdate:modelValue":c[5]||(c[5]=d=>i.value.model=d),class:"select-input"},[...c[16]||(c[16]=[g("option",{value:"deepseek-chat"},"Chat Optimized",-1),g("option",{value:"deepseek-reasoner"},"Advanced Reasoning",-1)])],512),[[jn,i.value.model]]),c[17]||(c[17]=g("div",{class:"select-arrow"},"▼",-1))])])):re("",!0)])):re("",!0)]),_:1})])]))}}),[["styles",['@reference "tailwindcss";.translation-controls[data-v-6b271e91],.translation-controls__content[data-v-6b271e91]{@apply space-y-4;}.control-group[data-v-6b271e91]{@apply space-y-2;}.control-label[data-v-6b271e91]{@apply flex items-center text-sm font-medium text-slate-600;}.control-icon[data-v-6b271e91]{@apply mr-2;}.control-select[data-v-6b271e91]{@apply relative rounded-lg border border-slate-200 transition-all duration-200 hover:border-blue-400;}.select-input[data-v-6b271e91]{@apply w-full px-3 py-2 pr-8 bg-transparent outline-hidden appearance-none text-slate-700 rounded-lg text-sm;}.select-arrow[data-v-6b271e91]{@apply absolute right-2 top-1/2 -translate-y-1/2 text-slate-400 pointer-events-none text-xs;}.styled-input[data-v-6b271e91]{@apply w-full px-3 py-2 rounded-lg border border-slate-200 outline-hidden transition-all duration-200 focus:ring-2 focus:ring-blue-200 focus:border-blue-400 placeholder-slate-400 text-sm;}.driver-options[data-v-6b271e91]{@apply pl-4 border-l-2 border-blue-100 ml-2 space-y-3;}.fade-slide-enter-active[data-v-6b271e91],.fade-slide-leave-active[data-v-6b271e91]{transition:all .3s ease}.fade-slide-enter-from[data-v-6b271e91],.fade-slide-leave-to[data-v-6b271e91]{opacity:0;transform:translate(10px)}']],["__scopeId","data-v-6b271e91"]]),lh={class:"settings-view"},ah={class:"space-y-6"},$l="translationSettings",ch=we(ke({__name:"SettingsView",setup(e){const t=te("disabled"),o=te(""),n=te({folderId:"",formality:"default",model:"gpt-3.5-turbo"});return It(()=>{const s=localStorage.getItem($l);if(s){const{driver:r,token:i,options:l}=JSON.parse(s);t.value=r,o.value=i,n.value=l||{}}}),De([t,o,n],async()=>{await dt();const s={driver:t.value,token:o.value,options:n.value};localStorage.setItem($l,JSON.stringify(s))},{deep:!0}),(s,r)=>(y(),T("div",lh,[g("div",ah,[Y(Kp,{title:"Auto-Translation Engine",icon:"🌐"},{default:xe(()=>[Y(ih,{driver:t.value,"onUpdate:driver":r[0]||(r[0]=i=>t.value=i),"api-token":o.value,"onUpdate:apiToken":r[1]||(r[1]=i=>o.value=i),options:n.value,"onUpdate:options":r[2]||(r[2]=i=>n.value=i)},null,8,["driver","api-token","options"])]),_:1})])]))}}),[["styles",['@reference "tailwindcss";.settings-view[data-v-fa384528]{@apply h-full overflow-auto p-4;}']],["__scopeId","data-v-fa384528"]]),dh={class:"i18n-devtools"},uh={class:"header"},fh={class:"content-area"},ph={class:"view-container"},hh=we(ke({__name:"App.ce",props:{bridge:{type:Object,required:!1}},setup(e){const t=e,o=_u();pi(kl,o);const n=te("i18n"),s=[{label:"i18n",value:"i18n",icon:Fs},{label:"Settings",value:"settings",icon:El},{label:"Server Info",value:"config",icon:wl}],r=async l=>{o.bridge.value||(console.log("[i18n-devtools] Bridge received, initializing..."),o.setBridge(l),await o.init())};De(()=>t.bridge,l=>{l&&r(l)},{immediate:!0});const i=ie(()=>o.isLoading.value||!o.bridge.value);return It(()=>{t.bridge?r(t.bridge):console.log("[i18n-devtools] Waiting for bridge...")}),(l,a)=>(y(),T("div",dh,[i.value?(y(),ye(Rs,{key:0})):(y(),T(se,{key:1},[g("div",uh,[Y(bu,{modelValue:n.value,"onUpdate:modelValue":a[0]||(a[0]=u=>n.value=u),tabs:s},null,8,["modelValue"])]),g("div",fh,[g("div",ph,[n.value==="i18n"?(y(),ye(jp,{key:0})):re("",!0),n.value==="settings"?(y(),ye(ch,{key:1})):re("",!0),n.value==="config"?(y(),ye(pf,{key:2})):re("",!0)])])],64))]))}}),[["styles",['@layer theme,base,components,utilities;@layer theme{@theme default{ --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; --font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif; --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; --color-red-50: oklch(97.1% .013 17.38); --color-red-100: oklch(93.6% .032 17.717); --color-red-200: oklch(88.5% .062 18.334); --color-red-300: oklch(80.8% .114 19.571); --color-red-400: oklch(70.4% .191 22.216); --color-red-500: oklch(63.7% .237 25.331); --color-red-600: oklch(57.7% .245 27.325); --color-red-700: oklch(50.5% .213 27.518); --color-red-800: oklch(44.4% .177 26.899); --color-red-900: oklch(39.6% .141 25.723); --color-red-950: oklch(25.8% .092 26.042); --color-orange-50: oklch(98% .016 73.684); --color-orange-100: oklch(95.4% .038 75.164); --color-orange-200: oklch(90.1% .076 70.697); --color-orange-300: oklch(83.7% .128 66.29); --color-orange-400: oklch(75% .183 55.934); --color-orange-500: oklch(70.5% .213 47.604); --color-orange-600: oklch(64.6% .222 41.116); --color-orange-700: oklch(55.3% .195 38.402); --color-orange-800: oklch(47% .157 37.304); --color-orange-900: oklch(40.8% .123 38.172); --color-orange-950: oklch(26.6% .079 36.259); --color-amber-50: oklch(98.7% .022 95.277); --color-amber-100: oklch(96.2% .059 95.617); --color-amber-200: oklch(92.4% .12 95.746); --color-amber-300: oklch(87.9% .169 91.605); --color-amber-400: oklch(82.8% .189 84.429); --color-amber-500: oklch(76.9% .188 70.08); --color-amber-600: oklch(66.6% .179 58.318); --color-amber-700: oklch(55.5% .163 48.998); --color-amber-800: oklch(47.3% .137 46.201); --color-amber-900: oklch(41.4% .112 45.904); --color-amber-950: oklch(27.9% .077 45.635); --color-yellow-50: oklch(98.7% .026 102.212); --color-yellow-100: oklch(97.3% .071 103.193); --color-yellow-200: oklch(94.5% .129 101.54); --color-yellow-300: oklch(90.5% .182 98.111); --color-yellow-400: oklch(85.2% .199 91.936); --color-yellow-500: oklch(79.5% .184 86.047); --color-yellow-600: oklch(68.1% .162 75.834); --color-yellow-700: oklch(55.4% .135 66.442); --color-yellow-800: oklch(47.6% .114 61.907); --color-yellow-900: oklch(42.1% .095 57.708); --color-yellow-950: oklch(28.6% .066 53.813); --color-lime-50: oklch(98.6% .031 120.757); --color-lime-100: oklch(96.7% .067 122.328); --color-lime-200: oklch(93.8% .127 124.321); --color-lime-300: oklch(89.7% .196 126.665); --color-lime-400: oklch(84.1% .238 128.85); --color-lime-500: oklch(76.8% .233 130.85); --color-lime-600: oklch(64.8% .2 131.684); --color-lime-700: oklch(53.2% .157 131.589); --color-lime-800: oklch(45.3% .124 130.933); --color-lime-900: oklch(40.5% .101 131.063); --color-lime-950: oklch(27.4% .072 132.109); --color-green-50: oklch(98.2% .018 155.826); --color-green-100: oklch(96.2% .044 156.743); --color-green-200: oklch(92.5% .084 155.995); --color-green-300: oklch(87.1% .15 154.449); --color-green-400: oklch(79.2% .209 151.711); --color-green-500: oklch(72.3% .219 149.579); --color-green-600: oklch(62.7% .194 149.214); --color-green-700: oklch(52.7% .154 150.069); --color-green-800: oklch(44.8% .119 151.328); --color-green-900: oklch(39.3% .095 152.535); --color-green-950: oklch(26.6% .065 152.934); --color-emerald-50: oklch(97.9% .021 166.113); --color-emerald-100: oklch(95% .052 163.051); --color-emerald-200: oklch(90.5% .093 164.15); --color-emerald-300: oklch(84.5% .143 164.978); --color-emerald-400: oklch(76.5% .177 163.223); --color-emerald-500: oklch(69.6% .17 162.48); --color-emerald-600: oklch(59.6% .145 163.225); --color-emerald-700: oklch(50.8% .118 165.612); --color-emerald-800: oklch(43.2% .095 166.913); --color-emerald-900: oklch(37.8% .077 168.94); --color-emerald-950: oklch(26.2% .051 172.552); --color-teal-50: oklch(98.4% .014 180.72); --color-teal-100: oklch(95.3% .051 180.801); --color-teal-200: oklch(91% .096 180.426); --color-teal-300: oklch(85.5% .138 181.071); --color-teal-400: oklch(77.7% .152 181.912); --color-teal-500: oklch(70.4% .14 182.503); --color-teal-600: oklch(60% .118 184.704); --color-teal-700: oklch(51.1% .096 186.391); --color-teal-800: oklch(43.7% .078 188.216); --color-teal-900: oklch(38.6% .063 188.416); --color-teal-950: oklch(27.7% .046 192.524); --color-cyan-50: oklch(98.4% .019 200.873); --color-cyan-100: oklch(95.6% .045 203.388); --color-cyan-200: oklch(91.7% .08 205.041); --color-cyan-300: oklch(86.5% .127 207.078); --color-cyan-400: oklch(78.9% .154 211.53); --color-cyan-500: oklch(71.5% .143 215.221); --color-cyan-600: oklch(60.9% .126 221.723); --color-cyan-700: oklch(52% .105 223.128); --color-cyan-800: oklch(45% .085 224.283); --color-cyan-900: oklch(39.8% .07 227.392); --color-cyan-950: oklch(30.2% .056 229.695); --color-sky-50: oklch(97.7% .013 236.62); --color-sky-100: oklch(95.1% .026 236.824); --color-sky-200: oklch(90.1% .058 230.902); --color-sky-300: oklch(82.8% .111 230.318); --color-sky-400: oklch(74.6% .16 232.661); --color-sky-500: oklch(68.5% .169 237.323); --color-sky-600: oklch(58.8% .158 241.966); --color-sky-700: oklch(50% .134 242.749); --color-sky-800: oklch(44.3% .11 240.79); --color-sky-900: oklch(39.1% .09 240.876); --color-sky-950: oklch(29.3% .066 243.157); --color-blue-50: oklch(97% .014 254.604); --color-blue-100: oklch(93.2% .032 255.585); --color-blue-200: oklch(88.2% .059 254.128); --color-blue-300: oklch(80.9% .105 251.813); --color-blue-400: oklch(70.7% .165 254.624); --color-blue-500: oklch(62.3% .214 259.815); --color-blue-600: oklch(54.6% .245 262.881); --color-blue-700: oklch(48.8% .243 264.376); --color-blue-800: oklch(42.4% .199 265.638); --color-blue-900: oklch(37.9% .146 265.522); --color-blue-950: oklch(28.2% .091 267.935); --color-indigo-50: oklch(96.2% .018 272.314); --color-indigo-100: oklch(93% .034 272.788); --color-indigo-200: oklch(87% .065 274.039); --color-indigo-300: oklch(78.5% .115 274.713); --color-indigo-400: oklch(67.3% .182 276.935); --color-indigo-500: oklch(58.5% .233 277.117); --color-indigo-600: oklch(51.1% .262 276.966); --color-indigo-700: oklch(45.7% .24 277.023); --color-indigo-800: oklch(39.8% .195 277.366); --color-indigo-900: oklch(35.9% .144 278.697); --color-indigo-950: oklch(25.7% .09 281.288); --color-violet-50: oklch(96.9% .016 293.756); --color-violet-100: oklch(94.3% .029 294.588); --color-violet-200: oklch(89.4% .057 293.283); --color-violet-300: oklch(81.1% .111 293.571); --color-violet-400: oklch(70.2% .183 293.541); --color-violet-500: oklch(60.6% .25 292.717); --color-violet-600: oklch(54.1% .281 293.009); --color-violet-700: oklch(49.1% .27 292.581); --color-violet-800: oklch(43.2% .232 292.759); --color-violet-900: oklch(38% .189 293.745); --color-violet-950: oklch(28.3% .141 291.089); --color-purple-50: oklch(97.7% .014 308.299); --color-purple-100: oklch(94.6% .033 307.174); --color-purple-200: oklch(90.2% .063 306.703); --color-purple-300: oklch(82.7% .119 306.383); --color-purple-400: oklch(71.4% .203 305.504); --color-purple-500: oklch(62.7% .265 303.9); --color-purple-600: oklch(55.8% .288 302.321); --color-purple-700: oklch(49.6% .265 301.924); --color-purple-800: oklch(43.8% .218 303.724); --color-purple-900: oklch(38.1% .176 304.987); --color-purple-950: oklch(29.1% .149 302.717); --color-fuchsia-50: oklch(97.7% .017 320.058); --color-fuchsia-100: oklch(95.2% .037 318.852); --color-fuchsia-200: oklch(90.3% .076 319.62); --color-fuchsia-300: oklch(83.3% .145 321.434); --color-fuchsia-400: oklch(74% .238 322.16); --color-fuchsia-500: oklch(66.7% .295 322.15); --color-fuchsia-600: oklch(59.1% .293 322.896); --color-fuchsia-700: oklch(51.8% .253 323.949); --color-fuchsia-800: oklch(45.2% .211 324.591); --color-fuchsia-900: oklch(40.1% .17 325.612); --color-fuchsia-950: oklch(29.3% .136 325.661); --color-pink-50: oklch(97.1% .014 343.198); --color-pink-100: oklch(94.8% .028 342.258); --color-pink-200: oklch(89.9% .061 343.231); --color-pink-300: oklch(82.3% .12 346.018); --color-pink-400: oklch(71.8% .202 349.761); --color-pink-500: oklch(65.6% .241 354.308); --color-pink-600: oklch(59.2% .249 .584); --color-pink-700: oklch(52.5% .223 3.958); --color-pink-800: oklch(45.9% .187 3.815); --color-pink-900: oklch(40.8% .153 2.432); --color-pink-950: oklch(28.4% .109 3.907); --color-rose-50: oklch(96.9% .015 12.422); --color-rose-100: oklch(94.1% .03 12.58); --color-rose-200: oklch(89.2% .058 10.001); --color-rose-300: oklch(81% .117 11.638); --color-rose-400: oklch(71.2% .194 13.428); --color-rose-500: oklch(64.5% .246 16.439); --color-rose-600: oklch(58.6% .253 17.585); --color-rose-700: oklch(51.4% .222 16.935); --color-rose-800: oklch(45.5% .188 13.697); --color-rose-900: oklch(41% .159 10.272); --color-rose-950: oklch(27.1% .105 12.094); --color-slate-50: oklch(98.4% .003 247.858); --color-slate-100: oklch(96.8% .007 247.896); --color-slate-200: oklch(92.9% .013 255.508); --color-slate-300: oklch(86.9% .022 252.894); --color-slate-400: oklch(70.4% .04 256.788); --color-slate-500: oklch(55.4% .046 257.417); --color-slate-600: oklch(44.6% .043 257.281); --color-slate-700: oklch(37.2% .044 257.287); --color-slate-800: oklch(27.9% .041 260.031); --color-slate-900: oklch(20.8% .042 265.755); --color-slate-950: oklch(12.9% .042 264.695); --color-gray-50: oklch(98.5% .002 247.839); --color-gray-100: oklch(96.7% .003 264.542); --color-gray-200: oklch(92.8% .006 264.531); --color-gray-300: oklch(87.2% .01 258.338); --color-gray-400: oklch(70.7% .022 261.325); --color-gray-500: oklch(55.1% .027 264.364); --color-gray-600: oklch(44.6% .03 256.802); --color-gray-700: oklch(37.3% .034 259.733); --color-gray-800: oklch(27.8% .033 256.848); --color-gray-900: oklch(21% .034 264.665); --color-gray-950: oklch(13% .028 261.692); --color-zinc-50: oklch(98.5% 0 0); --color-zinc-100: oklch(96.7% .001 286.375); --color-zinc-200: oklch(92% .004 286.32); --color-zinc-300: oklch(87.1% .006 286.286); --color-zinc-400: oklch(70.5% .015 286.067); --color-zinc-500: oklch(55.2% .016 285.938); --color-zinc-600: oklch(44.2% .017 285.786); --color-zinc-700: oklch(37% .013 285.805); --color-zinc-800: oklch(27.4% .006 286.033); --color-zinc-900: oklch(21% .006 285.885); --color-zinc-950: oklch(14.1% .005 285.823); --color-neutral-50: oklch(98.5% 0 0); --color-neutral-100: oklch(97% 0 0); --color-neutral-200: oklch(92.2% 0 0); --color-neutral-300: oklch(87% 0 0); --color-neutral-400: oklch(70.8% 0 0); --color-neutral-500: oklch(55.6% 0 0); --color-neutral-600: oklch(43.9% 0 0); --color-neutral-700: oklch(37.1% 0 0); --color-neutral-800: oklch(26.9% 0 0); --color-neutral-900: oklch(20.5% 0 0); --color-neutral-950: oklch(14.5% 0 0); --color-stone-50: oklch(98.5% .001 106.423); --color-stone-100: oklch(97% .001 106.424); --color-stone-200: oklch(92.3% .003 48.717); --color-stone-300: oklch(86.9% .005 56.366); --color-stone-400: oklch(70.9% .01 56.259); --color-stone-500: oklch(55.3% .013 58.071); --color-stone-600: oklch(44.4% .011 73.639); --color-stone-700: oklch(37.4% .01 67.558); --color-stone-800: oklch(26.8% .007 34.298); --color-stone-900: oklch(21.6% .006 56.043); --color-stone-950: oklch(14.7% .004 49.25); --color-black: #000; --color-white: #fff; --spacing: .25rem; --breakpoint-sm: 40rem; --breakpoint-md: 48rem; --breakpoint-lg: 64rem; --breakpoint-xl: 80rem; --breakpoint-2xl: 96rem; --container-3xs: 16rem; --container-2xs: 18rem; --container-xs: 20rem; --container-sm: 24rem; --container-md: 28rem; --container-lg: 32rem; --container-xl: 36rem; --container-2xl: 42rem; --container-3xl: 48rem; --container-4xl: 56rem; --container-5xl: 64rem; --container-6xl: 72rem; --container-7xl: 80rem; --text-xs: .75rem; --text-xs--line-height: calc(1 / .75); --text-sm: .875rem; --text-sm--line-height: calc(1.25 / .875); --text-base: 1rem; --text-base--line-height: 1.5 ; --text-lg: 1.125rem; --text-lg--line-height: calc(1.75 / 1.125); --text-xl: 1.25rem; --text-xl--line-height: calc(1.75 / 1.25); --text-2xl: 1.5rem; --text-2xl--line-height: calc(2 / 1.5); --text-3xl: 1.875rem; --text-3xl--line-height: 1.2 ; --text-4xl: 2.25rem; --text-4xl--line-height: calc(2.5 / 2.25); --text-5xl: 3rem; --text-5xl--line-height: 1; --text-6xl: 3.75rem; --text-6xl--line-height: 1; --text-7xl: 4.5rem; --text-7xl--line-height: 1; --text-8xl: 6rem; --text-8xl--line-height: 1; --text-9xl: 8rem; --text-9xl--line-height: 1; --font-weight-thin: 100; --font-weight-extralight: 200; --font-weight-light: 300; --font-weight-normal: 400; --font-weight-medium: 500; --font-weight-semibold: 600; --font-weight-bold: 700; --font-weight-extrabold: 800; --font-weight-black: 900; --tracking-tighter: -.05em; --tracking-tight: -.025em; --tracking-normal: 0em; --tracking-wide: .025em; --tracking-wider: .05em; --tracking-widest: .1em; --leading-tight: 1.25; --leading-snug: 1.375; --leading-normal: 1.5; --leading-relaxed: 1.625; --leading-loose: 2; --radius-xs: .125rem; --radius-sm: .25rem; --radius-md: .375rem; --radius-lg: .5rem; --radius-xl: .75rem; --radius-2xl: 1rem; --radius-3xl: 1.5rem; --radius-4xl: 2rem; --shadow-2xs: 0 1px rgb(0 0 0 / .05); --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / .05); --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1); --shadow-md: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1); --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1); --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1); --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / .25); --inset-shadow-2xs: inset 0 1px rgb(0 0 0 / .05); --inset-shadow-xs: inset 0 1px 1px rgb(0 0 0 / .05); --inset-shadow-sm: inset 0 2px 4px rgb(0 0 0 / .05); --drop-shadow-xs: 0 1px 1px rgb(0 0 0 / .05); --drop-shadow-sm: 0 1px 2px rgb(0 0 0 / .15); --drop-shadow-md: 0 3px 3px rgb(0 0 0 / .12); --drop-shadow-lg: 0 4px 4px rgb(0 0 0 / .15); --drop-shadow-xl: 0 9px 7px rgb(0 0 0 / .1); --drop-shadow-2xl: 0 25px 25px rgb(0 0 0 / .15); --text-shadow-2xs: 0px 1px 0px rgb(0 0 0 / .15); --text-shadow-xs: 0px 1px 1px rgb(0 0 0 / .2); --text-shadow-sm: 0px 1px 0px rgb(0 0 0 / .075), 0px 1px 1px rgb(0 0 0 / .075), 0px 2px 2px rgb(0 0 0 / .075); --text-shadow-md: 0px 1px 1px rgb(0 0 0 / .1), 0px 1px 2px rgb(0 0 0 / .1), 0px 2px 4px rgb(0 0 0 / .1); --text-shadow-lg: 0px 1px 2px rgb(0 0 0 / .1), 0px 3px 2px rgb(0 0 0 / .1), 0px 4px 8px rgb(0 0 0 / .1); --ease-in: cubic-bezier(.4, 0, 1, 1); --ease-out: cubic-bezier(0, 0, .2, 1); --ease-in-out: cubic-bezier(.4, 0, .2, 1); --animate-spin: spin 1s linear infinite; --animate-ping: ping 1s cubic-bezier(0, 0, .2, 1) infinite; --animate-pulse: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite; --animate-bounce: bounce 1s infinite; @keyframes spin { to { transform: rotate(360deg); } } @keyframes ping { 75%, 100% { transform: scale(2); opacity: 0; } } @keyframes pulse { 50% { opacity: .5; } } @keyframes bounce { 0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(.8, 0, 1, 1); } 50% { transform: none; animation-timing-function: cubic-bezier(0, 0, .2, 1); } } --blur-xs: 4px; --blur-sm: 8px; --blur-md: 12px; --blur-lg: 16px; --blur-xl: 24px; --blur-2xl: 40px; --blur-3xl: 64px; --perspective-dramatic: 100px; --perspective-near: 300px; --perspective-normal: 500px; --perspective-midrange: 800px; --perspective-distant: 1200px; --aspect-video: 16 / 9; --default-transition-duration: .15s; --default-transition-timing-function: cubic-bezier(.4, 0, .2, 1); --default-font-family: --theme(--font-sans, initial); --default-font-feature-settings: --theme( --font-sans--font-feature-settings, initial ); --default-font-variation-settings: --theme( --font-sans--font-variation-settings, initial ); --default-mono-font-family: --theme(--font-mono, initial); --default-mono-font-feature-settings: --theme( --font-mono--font-feature-settings, initial ); --default-mono-font-variation-settings: --theme( --font-mono--font-variation-settings, initial ); }@theme default inline reference{ --blur: 8px; --shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1); --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / .05); --drop-shadow: 0 1px 2px rgb(0 0 0 / .1), 0 1px 1px rgb(0 0 0 / .06); --radius: .25rem; --max-width-prose: 65ch; }}@layer base{*,:after,:before,::backdrop,::file-selector-button{box-sizing:border-box;margin:0;padding:0;border:0 solid}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;tab-size:4;font-family:--theme(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:--theme(--default-font-feature-settings,normal);font-variation-settings:--theme(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:--theme(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:--theme(--default-mono-font-feature-settings,normal);font-variation-settings:--theme(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea,::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;border-radius:0;background-color:transparent;opacity:1}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not (-webkit-appearance: -apple-pay-button)) or (contain-intrinsic-size: 1px){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]),::file-selector-button{appearance:button}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer utilities{@tailwind utilities;}.i18n-devtools{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif}:host{display:block;width:100%;height:100vh;overflow:hidden}.i18n-devtools{@apply antialiased text-slate-700 bg-white flex flex-col w-full h-full overflow-hidden;}.header{@apply shrink-0 border-b border-slate-200 bg-white z-20 relative;}.content-area{@apply flex-1 relative w-full h-full overflow-hidden;}.view-container{@apply absolute inset-0 w-full h-full overflow-hidden;}']]]);function gh(e){const{adapter:t,locales:o=[],defaultLocale:n="en",translationDir:s="src/locales"}=e,r=()=>{const i={},l=t.getRouteCache();for(const[a,u]of Object.entries(l)){if(!u||typeof u!="object"||Array.isArray(u)||Object.keys(u).length===0)continue;const c=a.indexOf(":");if(c===-1)continue;const d=a.substring(0,c),p=a.substring(c+1);i[p==="index"?oo.buildSourceRootPath(d):oo.buildSourcePagePath(p,d)]=u}return i};return{async getLocalesAndTranslations(){return r()},async getConfigs(){return{defaultLocale:n||t.getCurrentLocale?.()||"en",fallbackLocale:t.getFallbackLocale?.()||n||"en",locales:o||[],translationDir:s||"locales"}},async saveTranslation(i,l){try{const a=i.replace(/^\/+/,"").replace(/\/+/g,"/"),u=Al.parseTranslationRelativePath(a);if(u.type==="page")t.addRouteTranslations(u.locale,u.pageName,l,!1);else if(u.type==="root")t.addTranslations(u.locale,l,!1);else throw new Error(`Unknown file path format: ${i}`);const c=s?`${s}/${a}`:a;try{const d=await fetch("/__i18n_api/save",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({file:c,content:l})});if(!d.ok){const p=await d.json().catch(()=>({error:"Unknown error"}));throw new Error(p.error||`Network response was not ok: ${d.statusText}`)}console.log(`[i18n-bridge] Saved to disk: ${c}`)}catch(d){if(typeof localStorage<"u"){console.warn("[i18n-bridge] Server save failed, falling back to localStorage:",d);const p=`i18n_save_${i}`;localStorage.setItem(p,JSON.stringify(l,null,2))}else throw d}}catch(a){throw new Error(`Failed to save: ${a instanceof Error?a.message:String(a)}`)}},onLocalesUpdate(i){return t.subscribe(()=>{i(r())})}}}function mh(){return Date.now().toString(36)+Math.random().toString(36).substring(2)}function bh(){const e=new Map,t=new Set;window.addEventListener("message",n=>{const s=n.data;if(!(!s||s.jsonrpc!=="2.0"))if("id"in s&&s.id&&e.has(s.id)){const r=e.get(s.id);if(r){const{resolve:i,reject:l}=r;e.delete(s.id),s.error?l(new Error(s.error.message)):i(s.result)}}else"method"in s&&s.method==="localesUpdate"&&t.forEach(r=>{r(s.params)})});const o=(n,s)=>new Promise((r,i)=>{const l=mh();e.set(l,{resolve:r,reject:i});const a={jsonrpc:"2.0",id:l,method:n,params:s};window.parent.postMessage(a,"*")});return{getLocalesAndTranslations:()=>o("getLocalesAndTranslations"),getConfigs:()=>o("getConfigs"),saveTranslation:(n,s)=>o("saveTranslation",{file:n,content:s}),onLocalesUpdate:n=>(t.add(n),()=>{t.delete(n)})}}function _h(e,t){const o=async s=>{if(s.source!==e)return;const r=s.data;if(!r||r.jsonrpc!=="2.0"||!r.id)return;const i={jsonrpc:"2.0",id:r.id};try{switch(r.method){case"getLocalesAndTranslations":i.result=await t.getLocalesAndTranslations();break;case"getConfigs":i.result=await t.getConfigs();break;case"saveTranslation":{const l=r.params;await t.saveTranslation(l.file,l.content),i.result=!0;break}default:throw new Error(`Method ${r.method} not found`)}}catch(l){const a=l instanceof Error?l.message:String(l);i.error={code:-32603,message:a}}e.postMessage(i,"*")};window.addEventListener("message",o);const n=t.onLocalesUpdate(s=>{const r={jsonrpc:"2.0",method:"localesUpdate",params:s};e.postMessage(r,"*")});return()=>{window.removeEventListener("message",o),n()}}const Sl=Pd(hh);function vh(){customElements.get("i18n-devtools-ui")||customElements.define("i18n-devtools-ui",Sl)}We.I18nDevToolsElement=Sl,We.createBridge=gh,We.createRpcClient=bh,We.register=vh,We.setupRpcHost=_h,Object.defineProperty(We,Symbol.toStringTag,{value:"Module"})}));
|
|
10
10
|
//# sourceMappingURL=index.umd.js.map
|